mirror of
https://github.com/zoriya/flood.git
synced 2025-12-21 06:35:14 +00:00
Update formatting for importing functions
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { createStore, applyMiddleware } from 'redux';
|
import {createStore, applyMiddleware} from 'redux';
|
||||||
import { Provider } from 'react-redux';
|
import {Provider} from 'react-redux';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import thunkMiddleware from 'redux-thunk';
|
import thunkMiddleware from 'redux-thunk';
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import _ from 'lodash';
|
|||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import { addTorrents } from '../../actions/ClientActions';
|
import {addTorrents} from '../../actions/ClientActions';
|
||||||
import TextboxRepeater from '../forms/TextboxRepeater';
|
import TextboxRepeater from '../forms/TextboxRepeater';
|
||||||
|
|
||||||
const methodsToBind = [
|
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 CSSTransitionGroup from 'react-addons-css-transition-group';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import AddTorrents from './AddTorrents';
|
import AddTorrents from './AddTorrents';
|
||||||
import { dismissModal } from '../../actions/UIActions';
|
import {dismissModal} from '../../actions/UIActions';
|
||||||
import Icon from '../icons/Icon';
|
import Icon from '../icons/Icon';
|
||||||
import uiSelector from '../../selectors/uiSelector';
|
import uiSelector from '../../selectors/uiSelector';
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { connect } from 'react-redux';
|
import {connect} from 'react-redux';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
|
|
||||||
import clientSelector from '../../selectors/clientSelector';
|
import clientSelector from '../../selectors/clientSelector';
|
||||||
import { fetchTransferData } from '../../actions/ClientActions';
|
import {getTransferData} from '../../actions/ClientActions';
|
||||||
import format from '../../helpers/formatData';
|
import format from '../../util/formatData';
|
||||||
import Icon from '../icons/Icon';
|
import Icon from '../icons/Icon';
|
||||||
import LineChart from './LineChart';
|
import LineChart from './LineChart';
|
||||||
|
|
||||||
@@ -100,7 +100,7 @@ class ClientStats extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getTransferData() {
|
getTransferData() {
|
||||||
this.props.dispatch(fetchTransferData());
|
this.props.dispatch(getTransferData());
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
import { connect } from 'react-redux';
|
import {connect} from 'react-redux';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import Action from '../components/action-bar/Action';
|
import Action from '../components/action-bar/Action';
|
||||||
import { addTorrent, startTorrent, stopTorrent } from '../actions/ClientActions';
|
import {addTorrent, startTorrent, stopTorrent} from '../actions/ClientActions';
|
||||||
import { displayModal } from '../actions/UIActions';
|
import {displayModal} from '../actions/UIActions';
|
||||||
import { setTorrentsSort } from '../actions/UIActions';
|
import {setTorrentsSort} from '../actions/UIActions';
|
||||||
import SortDropdown from '../components/action-bar/SortDropdown';
|
import SortDropdown from '../components/action-bar/SortDropdown';
|
||||||
import uiSelector from '../selectors/uiSelector';
|
import uiSelector from '../selectors/uiSelector';
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import { connect } from 'react-redux';
|
import {connect} from 'react-redux';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import ClientStats from '../components/sidebar/ClientStats';
|
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 StatusFilters from '../components/sidebar/StatusFilters';
|
||||||
import SearchBox from '../components/sidebar/SearchBox';
|
import SearchBox from '../components/sidebar/SearchBox';
|
||||||
import UIActions from '../actions/UIActions';
|
import UIActions from '../actions/UIActions';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { combineReducers } from 'redux';
|
import {combineReducers} from 'redux';
|
||||||
|
|
||||||
import client from './clientReducer';
|
import client from './clientReducer';
|
||||||
import torrents from './torrentsReducer';
|
import torrents from './torrentsReducer';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { selectTorrents } from '../util/selectTorrents';
|
import {selectTorrents} from '../util/selectTorrents';
|
||||||
|
|
||||||
const initialState = {
|
const initialState = {
|
||||||
selectedTorrents: [],
|
selectedTorrents: [],
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createSelector } from 'reselect';
|
import {createSelector} from 'reselect';
|
||||||
|
|
||||||
const clientSelector = (state) => {
|
const clientSelector = (state) => {
|
||||||
return state.client;
|
return state.client;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { createSelector } from 'reselect';
|
import {createSelector} from 'reselect';
|
||||||
|
|
||||||
import clientSelector from './clientSelector';
|
import clientSelector from './clientSelector';
|
||||||
import torrentSelector from './torrentSelector';
|
import torrentSelector from './torrentSelector';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { createSelector } from 'reselect';
|
import {createSelector} from 'reselect';
|
||||||
import { filterTorrents } from '../util/filterTorrents';
|
import {filterTorrents} from '../util/filterTorrents';
|
||||||
import { searchTorrents } from '../util/searchTorrents';
|
import {searchTorrents} from '../util/searchTorrents';
|
||||||
import { sortTorrents } from '../util/sortTorrents';
|
import {sortTorrents} from '../util/sortTorrents';
|
||||||
|
|
||||||
const torrentListSearchString = state => state.ui.torrentList.searchString;
|
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;
|
const fetchingData = state => state.ui.fetchingData;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user