From 8ee9bda37bc39ee6d3dfab9067a8a1917bb00a28 Mon Sep 17 00:00:00 2001 From: vrde Date: Wed, 20 May 2015 16:44:45 +0200 Subject: [PATCH] Fix spacing --- js/actions/piece_list_actions.js | 1 + js/actions/user_actions.js | 1 + js/components/ascribe_app.js | 1 - js/components/piece.js | 3 ++- js/components/piece_list.js | 1 + js/components/table.js | 1 + js/components/table_header.js | 3 ++- js/components/table_item.js | 3 ++- js/components/table_item_text.js | 3 ++- js/fetchers/piece_list_fetcher.js | 3 ++- js/fetchers/user_fetcher.js | 1 + js/mixins/table_column_mixin.js | 3 ++- js/routes.js | 1 + js/stores/piece_list_store.js | 1 + js/stores/user_store.js | 1 + js/utils/fetch_api_utils.js | 3 ++- 16 files changed, 22 insertions(+), 8 deletions(-) diff --git a/js/actions/piece_list_actions.js b/js/actions/piece_list_actions.js index 51158285..7d4f7c4d 100644 --- a/js/actions/piece_list_actions.js +++ b/js/actions/piece_list_actions.js @@ -1,6 +1,7 @@ import alt from '../alt'; import PieceListFetcher from '../fetchers/piece_list_fetcher'; + class PieceListActions { constructor() { this.generateActions( diff --git a/js/actions/user_actions.js b/js/actions/user_actions.js index e2a83adf..34e80f52 100644 --- a/js/actions/user_actions.js +++ b/js/actions/user_actions.js @@ -1,6 +1,7 @@ import alt from '../alt'; import UserFetcher from '../fetchers/user_fetcher'; + class UserActions { constructor() { this.generateActions( diff --git a/js/components/ascribe_app.js b/js/components/ascribe_app.js index 5f548ca3..093b06dd 100644 --- a/js/components/ascribe_app.js +++ b/js/components/ascribe_app.js @@ -2,7 +2,6 @@ import React from 'react'; import Router from 'react-router'; import Header from '../components/header'; - let Link = Router.Link; let RouteHandler = Router.RouteHandler; diff --git a/js/components/piece.js b/js/components/piece.js index 80faf6b8..bd268115 100644 --- a/js/components/piece.js +++ b/js/components/piece.js @@ -1,5 +1,6 @@ import React from 'react'; + let Piece = React.createClass({ render() { return ( @@ -8,4 +9,4 @@ let Piece = React.createClass({ } }); -export default Piece; \ No newline at end of file +export default Piece; diff --git a/js/components/piece_list.js b/js/components/piece_list.js index 088b6dde..b1d1b1e3 100644 --- a/js/components/piece_list.js +++ b/js/components/piece_list.js @@ -11,6 +11,7 @@ import TableItemText from './table_item_text'; let Link = Router.Link; + let PieceList = React.createClass({ componentDidMount() { diff --git a/js/components/table.js b/js/components/table.js index 329bf14d..8c33d981 100644 --- a/js/components/table.js +++ b/js/components/table.js @@ -3,6 +3,7 @@ import React from 'react'; import TableItem from './table_item'; import TableHeader from './table_header'; + let Table = React.createClass({ propTypes: { columnMap: React.PropTypes.object.isRequired diff --git a/js/components/table_header.js b/js/components/table_header.js index ef92ea28..c9936f6d 100644 --- a/js/components/table_header.js +++ b/js/components/table_header.js @@ -3,6 +3,7 @@ import React from 'react'; import TableColumnMixin from '../mixins/table_column_mixin'; import GeneralUtils from '../utils/general_utils'; + let TableHeader = React.createClass({ mixins: [TableColumnMixin], propTypes: { @@ -33,4 +34,4 @@ let TableHeader = React.createClass({ } }); -export default TableHeader; \ No newline at end of file +export default TableHeader; diff --git a/js/components/table_item.js b/js/components/table_item.js index c1f06872..0a47670a 100644 --- a/js/components/table_item.js +++ b/js/components/table_item.js @@ -4,6 +4,7 @@ import TableColumnMixin from '../mixins/table_column_mixin'; import TableItemImg from './table_item_img'; import TableItemText from './table_item_text'; + let TableItem = React.createClass({ mixins: [TableColumnMixin], @@ -54,4 +55,4 @@ let TableItem = React.createClass({ } }); -export default TableItem; \ No newline at end of file +export default TableItem; diff --git a/js/components/table_item_text.js b/js/components/table_item_text.js index dc9e9171..1badbefd 100644 --- a/js/components/table_item_text.js +++ b/js/components/table_item_text.js @@ -1,5 +1,6 @@ import React from 'react'; + let TableItemText = React.createClass({ propTypes: { content: React.PropTypes.string.isRequired @@ -14,4 +15,4 @@ let TableItemText = React.createClass({ } }); -export default TableItemText; \ No newline at end of file +export default TableItemText; diff --git a/js/fetchers/piece_list_fetcher.js b/js/fetchers/piece_list_fetcher.js index 4e4b7567..3618b50f 100644 --- a/js/fetchers/piece_list_fetcher.js +++ b/js/fetchers/piece_list_fetcher.js @@ -3,6 +3,7 @@ import fetch from 'isomorphic-fetch'; import AppConstants from '../constants/application_constants'; import FetchApiUtils from '../utils/fetch_api_utils'; + let PieceListFetcher = { /** * Fetches a list of pieces from the API. @@ -27,4 +28,4 @@ let PieceListFetcher = { } }; -export default PieceListFetcher; \ No newline at end of file +export default PieceListFetcher; diff --git a/js/fetchers/user_fetcher.js b/js/fetchers/user_fetcher.js index 5bf33529..2c53f39e 100644 --- a/js/fetchers/user_fetcher.js +++ b/js/fetchers/user_fetcher.js @@ -3,6 +3,7 @@ import fetch from 'isomorphic-fetch'; import AppConstants from '../constants/application_constants'; import FetchApiUtils from '../utils/fetch_api_utils'; + let UserFetcher = { /** * Fetch one user from the API. diff --git a/js/mixins/table_column_mixin.js b/js/mixins/table_column_mixin.js index 946b8262..d2bf8977 100644 --- a/js/mixins/table_column_mixin.js +++ b/js/mixins/table_column_mixin.js @@ -1,5 +1,6 @@ import GeneralUtils from '../utils/general_utils'; + let TableColumnMixin = { /** * Generates the bootstrap grid column declarations automatically using @@ -20,4 +21,4 @@ let TableColumnMixin = { } }; -export default TableColumnMixin; \ No newline at end of file +export default TableColumnMixin; diff --git a/js/routes.js b/js/routes.js index fe9262ba..4817b069 100644 --- a/js/routes.js +++ b/js/routes.js @@ -7,6 +7,7 @@ import Piece from './components/piece'; let Route = Router.Route; + let routes = ( diff --git a/js/stores/piece_list_store.js b/js/stores/piece_list_store.js index b3fe0039..52d9667c 100644 --- a/js/stores/piece_list_store.js +++ b/js/stores/piece_list_store.js @@ -1,6 +1,7 @@ import alt from '../alt'; import PieceListActions from '../actions/piece_list_actions'; + class PieceListStore { constructor() { this.itemList = []; // rename this to pieceList after figuring out AltContainer transform diff --git a/js/stores/user_store.js b/js/stores/user_store.js index 00e4bfbf..45fbec57 100644 --- a/js/stores/user_store.js +++ b/js/stores/user_store.js @@ -1,6 +1,7 @@ import alt from '../alt'; import UserAction from '../actions/user_actions'; + class UserStore{ constructor() { this.currentUser = {} diff --git a/js/utils/fetch_api_utils.js b/js/utils/fetch_api_utils.js index 57fa12fa..82ad9d94 100644 --- a/js/utils/fetch_api_utils.js +++ b/js/utils/fetch_api_utils.js @@ -1,5 +1,6 @@ import GeneralUtils from './general_utils'; + // TODO: Create Unittests that test all functions let FetchApiUtils = { @@ -42,4 +43,4 @@ let FetchApiUtils = { } }; -export default FetchApiUtils; \ No newline at end of file +export default FetchApiUtils;