From 2dd79a3358afe5cf418254ae75b9bbe53f4bc6f5 Mon Sep 17 00:00:00 2001 From: John Furrow Date: Sat, 21 Nov 2015 14:32:17 -0800 Subject: [PATCH] Update formatting for importing functions --- client/source/scripts/app.js | 4 ++-- client/source/scripts/components/modals/AddTorrents.js | 2 +- client/source/scripts/components/modals/Modals.js | 4 ++-- client/source/scripts/components/sidebar/ClientStats.js | 8 ++++---- client/source/scripts/containers/ActionBar.js | 8 ++++---- client/source/scripts/containers/Sidebar.js | 4 ++-- client/source/scripts/reducers/rootReducer.js | 2 +- client/source/scripts/reducers/torrentsReducer.js | 2 +- client/source/scripts/selectors/clientSelector.js | 2 +- client/source/scripts/selectors/rootSelector.js | 2 +- client/source/scripts/selectors/torrentSelector.js | 8 ++++---- client/source/scripts/selectors/uiSelector.js | 2 +- 12 files changed, 24 insertions(+), 24 deletions(-) diff --git a/client/source/scripts/app.js b/client/source/scripts/app.js index 3c056abe..4508d76f 100644 --- a/client/source/scripts/app.js +++ b/client/source/scripts/app.js @@ -1,5 +1,5 @@ -import { createStore, applyMiddleware } from 'redux'; -import { Provider } from 'react-redux'; +import {createStore, applyMiddleware} from 'redux'; +import {Provider} from 'react-redux'; import React from 'react'; import ReactDOM from 'react-dom'; import thunkMiddleware from 'redux-thunk'; diff --git a/client/source/scripts/components/modals/AddTorrents.js b/client/source/scripts/components/modals/AddTorrents.js index f3dc50a2..1a66b080 100644 --- a/client/source/scripts/components/modals/AddTorrents.js +++ b/client/source/scripts/components/modals/AddTorrents.js @@ -2,7 +2,7 @@ import _ from 'lodash'; import classnames from 'classnames'; import React from 'react'; -import { addTorrents } from '../../actions/ClientActions'; +import {addTorrents} from '../../actions/ClientActions'; import TextboxRepeater from '../forms/TextboxRepeater'; const methodsToBind = [ diff --git a/client/source/scripts/components/modals/Modals.js b/client/source/scripts/components/modals/Modals.js index 2cf27459..e89f8d7c 100644 --- a/client/source/scripts/components/modals/Modals.js +++ b/client/source/scripts/components/modals/Modals.js @@ -1,9 +1,9 @@ -import { connect } from 'react-redux'; +import {connect} from 'react-redux'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import React from 'react'; import AddTorrents from './AddTorrents'; -import { dismissModal } from '../../actions/UIActions'; +import {dismissModal} from '../../actions/UIActions'; import Icon from '../icons/Icon'; import uiSelector from '../../selectors/uiSelector'; diff --git a/client/source/scripts/components/sidebar/ClientStats.js b/client/source/scripts/components/sidebar/ClientStats.js index 0ea3cab2..c906bcde 100644 --- a/client/source/scripts/components/sidebar/ClientStats.js +++ b/client/source/scripts/components/sidebar/ClientStats.js @@ -1,10 +1,10 @@ -import { connect } from 'react-redux'; +import {connect} from 'react-redux'; import React from 'react'; import ReactDOM from 'react-dom'; import clientSelector from '../../selectors/clientSelector'; -import { fetchTransferData } from '../../actions/ClientActions'; -import format from '../../helpers/formatData'; +import {getTransferData} from '../../actions/ClientActions'; +import format from '../../util/formatData'; import Icon from '../icons/Icon'; import LineChart from './LineChart'; @@ -100,7 +100,7 @@ class ClientStats extends React.Component { } getTransferData() { - this.props.dispatch(fetchTransferData()); + this.props.dispatch(getTransferData()); } render() { diff --git a/client/source/scripts/containers/ActionBar.js b/client/source/scripts/containers/ActionBar.js index 3bb7d6fb..fa948861 100644 --- a/client/source/scripts/containers/ActionBar.js +++ b/client/source/scripts/containers/ActionBar.js @@ -1,10 +1,10 @@ -import { connect } from 'react-redux'; +import {connect} from 'react-redux'; import React from 'react'; import Action from '../components/action-bar/Action'; -import { addTorrent, startTorrent, stopTorrent } from '../actions/ClientActions'; -import { displayModal } from '../actions/UIActions'; -import { setTorrentsSort } from '../actions/UIActions'; +import {addTorrent, startTorrent, stopTorrent} from '../actions/ClientActions'; +import {displayModal} from '../actions/UIActions'; +import {setTorrentsSort} from '../actions/UIActions'; import SortDropdown from '../components/action-bar/SortDropdown'; import uiSelector from '../selectors/uiSelector'; diff --git a/client/source/scripts/containers/Sidebar.js b/client/source/scripts/containers/Sidebar.js index 1a9655a8..60a737f7 100644 --- a/client/source/scripts/containers/Sidebar.js +++ b/client/source/scripts/containers/Sidebar.js @@ -1,8 +1,8 @@ -import { connect } from 'react-redux'; +import {connect} from 'react-redux'; import React from 'react'; import ClientStats from '../components/sidebar/ClientStats'; -import { setTorrentsFilter, setTorrentsSearch } from '../actions/UIActions'; +import {setTorrentsFilter, setTorrentsSearch} from '../actions/UIActions'; import StatusFilters from '../components/sidebar/StatusFilters'; import SearchBox from '../components/sidebar/SearchBox'; import UIActions from '../actions/UIActions'; diff --git a/client/source/scripts/reducers/rootReducer.js b/client/source/scripts/reducers/rootReducer.js index 3b88ee36..e6f3bde1 100644 --- a/client/source/scripts/reducers/rootReducer.js +++ b/client/source/scripts/reducers/rootReducer.js @@ -1,4 +1,4 @@ -import { combineReducers } from 'redux'; +import {combineReducers} from 'redux'; import client from './clientReducer'; import torrents from './torrentsReducer'; diff --git a/client/source/scripts/reducers/torrentsReducer.js b/client/source/scripts/reducers/torrentsReducer.js index 4aa1a281..bea88ab9 100644 --- a/client/source/scripts/reducers/torrentsReducer.js +++ b/client/source/scripts/reducers/torrentsReducer.js @@ -1,4 +1,4 @@ -import { selectTorrents } from '../util/selectTorrents'; +import {selectTorrents} from '../util/selectTorrents'; const initialState = { selectedTorrents: [], diff --git a/client/source/scripts/selectors/clientSelector.js b/client/source/scripts/selectors/clientSelector.js index 8a5b0239..4282be19 100644 --- a/client/source/scripts/selectors/clientSelector.js +++ b/client/source/scripts/selectors/clientSelector.js @@ -1,4 +1,4 @@ -import { createSelector } from 'reselect'; +import {createSelector} from 'reselect'; const clientSelector = (state) => { return state.client; diff --git a/client/source/scripts/selectors/rootSelector.js b/client/source/scripts/selectors/rootSelector.js index 3bef9194..611a9164 100644 --- a/client/source/scripts/selectors/rootSelector.js +++ b/client/source/scripts/selectors/rootSelector.js @@ -1,4 +1,4 @@ -import { createSelector } from 'reselect'; +import {createSelector} from 'reselect'; import clientSelector from './clientSelector'; import torrentSelector from './torrentSelector'; diff --git a/client/source/scripts/selectors/torrentSelector.js b/client/source/scripts/selectors/torrentSelector.js index 3caf6579..fce2408c 100644 --- a/client/source/scripts/selectors/torrentSelector.js +++ b/client/source/scripts/selectors/torrentSelector.js @@ -1,7 +1,7 @@ -import { createSelector } from 'reselect'; -import { filterTorrents } from '../util/filterTorrents'; -import { searchTorrents } from '../util/searchTorrents'; -import { sortTorrents } from '../util/sortTorrents'; +import {createSelector} from 'reselect'; +import {filterTorrents} from '../util/filterTorrents'; +import {searchTorrents} from '../util/searchTorrents'; +import {sortTorrents} from '../util/sortTorrents'; const torrentListSearchString = state => state.ui.torrentList.searchString; diff --git a/client/source/scripts/selectors/uiSelector.js b/client/source/scripts/selectors/uiSelector.js index 78542f88..07b16a18 100644 --- a/client/source/scripts/selectors/uiSelector.js +++ b/client/source/scripts/selectors/uiSelector.js @@ -1,4 +1,4 @@ -import { createSelector } from 'reselect'; +import {createSelector} from 'reselect'; const fetchingData = state => state.ui.fetchingData;