This repository has been archived by the owner on Dec 30, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
173 additions
and
219 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
var path = require('path'); | ||
var express = require('express'); | ||
var app = express(); | ||
var path = require('path') | ||
var express = require('express') | ||
var app = express() | ||
|
||
app.use(express.static(__dirname + '/dist')); | ||
app.use(express.static(__dirname + '/dist')) | ||
|
||
app.get('*', function(req, res) { | ||
res.sendFile(path.join(__dirname, 'dist/index.html')); | ||
}); | ||
app.get('*', function (req, res) { | ||
res.sendFile(path.join(__dirname, 'dist/index.html')) | ||
}) | ||
|
||
app.listen(8000, 'localhost', function(err) { | ||
app.listen(8000, 'localhost', function (err) { | ||
if (err) { | ||
console.log(err); | ||
console.log(err) | ||
} | ||
console.info("==> 🌎 Listening on port %s. Open up http://localhost:%s/ in your browser.", 8000, 8000); | ||
}); | ||
console.info('==> 🌎 Listening on port %s. Open up http://localhost:%s/ in your browser.', 8000, 8000) | ||
}) |
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,12 +1,12 @@ | ||
import React, {PropTypes} from 'react'; | ||
import React, {PropTypes} from 'react' | ||
|
||
const App = ({children}) => | ||
<div> | ||
{children} | ||
</div>; | ||
</div> | ||
|
||
App.propTypes = typeof __DEV__ && { | ||
children: PropTypes.object.isRequired | ||
}; | ||
} | ||
|
||
export default App; | ||
export default App |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
import 'babel-polyfill'; | ||
import 'normalize.css'; | ||
import './globals.css'; | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import 'babel-polyfill' | ||
import 'normalize.css' | ||
import './globals.css' | ||
import React from 'react' | ||
import ReactDOM from 'react-dom' | ||
// only for GitHub pages | ||
// do prefer import { browserHistory } from 'react-router' | ||
import Router, {hashHistory} from 'react-router'; | ||
import attachFastClick from 'fastclick'; | ||
import routes from './routes'; | ||
import Router, {hashHistory} from 'react-router' | ||
import attachFastClick from 'fastclick' | ||
import routes from './routes' | ||
|
||
// Remove 300ms tap delay on mobile devices | ||
attachFastClick.attach(document.body); | ||
attachFastClick.attach(document.body) | ||
|
||
// Expose globally | ||
window.React = React; | ||
window.React = React | ||
|
||
ReactDOM.render( | ||
<Router | ||
children={routes} | ||
history={hashHistory} />, | ||
document.getElementById('root')); | ||
document.getElementById('root')) |
Oops, something went wrong.