1
0
mirror of https://github.com/ascribe/onion.git synced 2024-11-15 09:35:10 +01:00

Merge branch 'master' of bitbucket.org:ascribe/onion

This commit is contained in:
Tim Daubenschütz 2015-05-26 13:14:44 +02:00
commit 620506b17c
2 changed files with 18 additions and 3 deletions

View File

@ -9,16 +9,24 @@ The code is JavaScript ECMA 6.
Getting started 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 ```bash
git clone git@bitbucket.org:ascribe/onion.git git clone git@bitbucket.org:ascribe/onion.git
cd onion cd onion
npm install npm install
npm run watch npm run watch
python -mSimpleHTTPServer
``` ```
Code Conventions Code Conventions
============ ================
For this project, we're using: For this project, we're using:
* 4 Spaces * 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) * 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 Reading list
============ ============
Start here Start here
---------- ----------

View File

@ -27,6 +27,7 @@ let PieceList = React.createClass({
let page = this.props.query.page || this.state.page; let page = this.props.query.page || this.state.page;
PieceListActions.fetchPieceList(page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc); PieceListActions.fetchPieceList(page, this.state.pageSize, this.state.search, this.state.orderBy, this.state.orderAsc);
PieceListStore.listen(this.onChange);
}, },
componentWillUnmount() { componentWillUnmount() {