mirror of
https://github.com/zoriya/flood.git
synced 2025-12-20 22:25:16 +00:00
Update formatting for importing functions
This commit is contained in:
@@ -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';
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { combineReducers } from 'redux';
|
||||
import {combineReducers} from 'redux';
|
||||
|
||||
import client from './clientReducer';
|
||||
import torrents from './torrentsReducer';
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { selectTorrents } from '../util/selectTorrents';
|
||||
import {selectTorrents} from '../util/selectTorrents';
|
||||
|
||||
const initialState = {
|
||||
selectedTorrents: [],
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import {createSelector} from 'reselect';
|
||||
|
||||
const clientSelector = (state) => {
|
||||
return state.client;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import {createSelector} from 'reselect';
|
||||
|
||||
import clientSelector from './clientSelector';
|
||||
import torrentSelector from './torrentSelector';
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { createSelector } from 'reselect';
|
||||
import {createSelector} from 'reselect';
|
||||
|
||||
const fetchingData = state => state.ui.fetchingData;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user