upgrade alt version. Please do npm install and check if altjs is at version 0.16.5

This commit is contained in:
Tim Daubenschütz 2015-05-22 11:25:21 +02:00
parent 4815b650c5
commit 29d9572a37
6 changed files with 12 additions and 27 deletions

View File

@ -1,23 +0,0 @@
import alt from '../alt';
import PieceListFetcher from '../fetchers/piece_list_fetcher';
class UserActions {
constructor() {
this.generateActions(
'updateCurrentUser'
);
}
fetchCurrentUser() {
UserFetcher.fetchOne()
.then((res) => {
this.actions.updateCurrentUser(res['users'][0]);
})
.catch((err) => {
console.log(err);
});
}
};
export default alt.createActions(UserActions);

View File

@ -11,6 +11,9 @@ let Table = React.createClass({
columnList: React.PropTypes.arrayOf(React.PropTypes.instanceOf(TableColumnModel))
},
render() {
console.log(this.props);
if(this.props.itemList && this.props.itemList.length > 0) {
return (
<div className="ascribe-table">

View File

@ -22,7 +22,7 @@ let EditionList = React.createClass({
render() {
return (
<AltContainer store={EditionListStore} actions={EditionListActions}>
<Table></Table>
</AltContainer>
);
}

View File

@ -34,7 +34,13 @@ let PieceList = React.createClass({
];
return (
<AltContainer store={PieceListStore} actions={PieceListActions}>
<AltContainer
store={PieceListStore}
actions={PieceListActions}
transform={(x) => {
console.log('@@@@@@@', x);
return { a: 1, b: 2 };
}}>
<Table columnList={columnList} />
<Pagination currentPage={this.props.query.page} />
</AltContainer>

View File

@ -14,7 +14,6 @@ class PieceListStore {
}
onUpdatePieceList({ page, pageSize, search, itemList, orderBy, orderAsc }) {
console.log('onUpdatePieceList', arguments);
this.page = page;
this.pageSize = pageSize;
this.search = search;

View File

@ -26,7 +26,7 @@
"watchify": "^3.1.2"
},
"dependencies": {
"alt": "^0.15.6",
"alt": "^0.16.5",
"classnames": "^1.2.2",
"isomorphic-fetch": "^2.0.2",
"object-assign": "^2.0.0",