This repository has been archived by the owner on Apr 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from blockstack/develop
Version 0.6.0 Release
- Loading branch information
Showing
28 changed files
with
512 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Changelog | ||
|
||
# 0.6.0 - April 19, 2019 | ||
|
||
- Added a new Webpack-based generator. It's similar to the 'default' generator that uses browserify, but may result in smaller bundle sizes and an easier development environment. | ||
- Updated React generator to use blockstack.js v19.1.0 and uses the new `UserSession` API. | ||
- Updated the default generator to use blockstack.js v19.1.0 and uses the new `UserSession` API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,39 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Hello, Blockstack!</title> | ||
<link rel="icon" type="image/x-icon" href="favicon.ico" /> | ||
<link rel="stylesheet" href="bootstrap.min.css" /> | ||
<link rel="stylesheet" href="app.css" /> | ||
<script src="bundle.js"></script> | ||
<script src="app.js"></script> | ||
</head> | ||
<body> | ||
<div class="site-wrapper"> | ||
<div class="site-wrapper-inner"> | ||
<div class="panel-landing" id="section-1"> | ||
<h1 class="landing-heading">Hello, Blockstack!</h1> | ||
<p class="lead"> | ||
<a href="#" class="btn btn-primary btn-lg" id="signin-button"> | ||
Sign In with Blockstack | ||
</a> | ||
</p> | ||
</div> | ||
<div class="panel-welcome hide" id="section-2"> | ||
<div class="avatar-section"> | ||
<img src="https://s3.amazonaws.com/onename/avatar-placeholder.png" class="img-rounded avatar" id="avatar-image"> | ||
<div class="site-wrapper-inner"> | ||
<div class="panel-landing" id="section-1"> | ||
<h1 class="landing-heading">Hello, Blockstack!</h1> | ||
<p class="lead"> | ||
<a href="#" class="btn btn-primary btn-lg" id="signin-button"> | ||
Sign In with Blockstack | ||
</a> | ||
</p> | ||
</div> | ||
<div class="panel-welcome hide" id="section-2"> | ||
<div class="avatar-section"> | ||
<img src="https://s3.amazonaws.com/onename/avatar-placeholder.png" class="img-rounded avatar" id="avatar-image"> | ||
</div> | ||
<h1>Hello, <span id="heading-name">Anonymous</span>!</h1> | ||
<p class="lead"> | ||
<a href="#" class="btn btn-primary btn-lg" id="signout-button"> | ||
Logout | ||
</a> | ||
</p> | ||
</div> | ||
<h1>Hello, <span id="heading-name">Anonymous</span>!</h1> | ||
<p class="lead"> | ||
<a href="#" class="btn btn-primary btn-lg" id="signout-button"> | ||
Logout | ||
</a> | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
const express = require('express') | ||
const opn = require('opn') | ||
const open = require('open') | ||
|
||
const app = express() | ||
const port = 5000 | ||
|
||
function allowCrossDomain(req, res, next) { | ||
function allowCrossDomain (req, res, next) { | ||
res.header('Access-Control-Allow-Origin', '*') | ||
res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE') | ||
res.header('Access-Control-Allow-Headers', 'Content-Type') | ||
next() | ||
} | ||
|
||
app.use(allowCrossDomain) | ||
app.use('/', express.static(__dirname + '/public')) | ||
app.listen(port, (err) => { | ||
if (err) { | ||
return console.log('something bad happened', err) | ||
} | ||
console.log(`server is listening on ${port}`) | ||
opn(`http://localhost:${port}`) | ||
}) | ||
app.use('/', express.static(`${__dirname}/public`)) | ||
|
||
app.listen(port, async (err) => { | ||
if (err) { console.error('Something bad happend', err) } | ||
|
||
console.log(`App running at: http://localhost:${port}`) | ||
await open(`http://localhost:${port}`) | ||
}) |
Oops, something went wrong.