mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
Merge branch 'master' of bitbucket.org:ascribe/onion
This commit is contained in:
commit
620506b17c
20
README.md
20
README.md
@ -9,16 +9,24 @@ The code is JavaScript ECMA 6.
|
||||
|
||||
Getting started
|
||||
===============
|
||||
|
||||
Install some nice extensions for Chrom(e|ium):
|
||||
- [Allow-Control-Allow-Origin](https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi):
|
||||
we need this to open connection to external hosts ([staging.ascribe.io](http://staging.ascribe.io/) in our case)
|
||||
- [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi)
|
||||
|
||||
```bash
|
||||
git clone git@bitbucket.org:ascribe/onion.git
|
||||
cd onion
|
||||
npm install
|
||||
npm run watch
|
||||
|
||||
python -mSimpleHTTPServer
|
||||
```
|
||||
|
||||
|
||||
|
||||
Code Conventions
|
||||
============
|
||||
================
|
||||
For this project, we're using:
|
||||
|
||||
* 4 Spaces
|
||||
@ -28,10 +36,16 @@ For this project, we're using:
|
||||
* We use `let` instead of `var`: [SA Post](http://stackoverflow.com/questions/762011/javascript-let-keyword-vs-var-keyword)
|
||||
|
||||
|
||||
Troubleshooting
|
||||
===============
|
||||
|
||||
Q: OMG nothing works
|
||||
A: try `npm install`. Someone may have updated some dependencies
|
||||
|
||||
|
||||
Reading list
|
||||
============
|
||||
|
||||
|
||||
Start here
|
||||
----------
|
||||
|
||||
|
@ -27,6 +27,7 @@ let PieceList = React.createClass({
|
||||
|
||||
let page = this.props.query.page || this.state.page;
|
||||
PieceListActions.fetchPieceList(page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc);
|
||||
PieceListStore.listen(this.onChange);
|
||||
},
|
||||
|
||||
componentWillUnmount() {
|
||||
|
Loading…
Reference in New Issue
Block a user