2016-11-20 18:39:18 +00:00
|
|
|
import { combineReducers } from 'redux-immutable';
|
|
|
|
import timelines from './timelines';
|
|
|
|
import meta from './meta';
|
|
|
|
import alerts from './alerts';
|
2016-09-19 21:25:59 +00:00
|
|
|
import { loadingBarReducer } from 'react-redux-loading-bar';
|
2016-11-20 18:39:18 +00:00
|
|
|
import modal from './modal';
|
|
|
|
import user_lists from './user_lists';
|
|
|
|
import accounts from './accounts';
|
2017-05-03 00:04:16 +00:00
|
|
|
import accounts_counters from './accounts_counters';
|
2016-11-20 18:39:18 +00:00
|
|
|
import statuses from './statuses';
|
|
|
|
import relationships from './relationships';
|
2017-01-09 13:00:55 +00:00
|
|
|
import settings from './settings';
|
2017-01-16 12:27:58 +00:00
|
|
|
import status_lists from './status_lists';
|
2017-01-20 00:00:14 +00:00
|
|
|
import cards from './cards';
|
2017-02-14 19:59:26 +00:00
|
|
|
import reports from './reports';
|
2017-06-11 15:07:35 +00:00
|
|
|
import contexts from './contexts';
|
2016-08-24 15:56:44 +00:00
|
|
|
|
2017-07-07 22:06:02 +00:00
|
|
|
const reducers = {
|
2016-08-31 14:15:12 +00:00
|
|
|
timelines,
|
|
|
|
meta,
|
2016-11-20 18:39:18 +00:00
|
|
|
alerts,
|
2016-09-19 21:25:59 +00:00
|
|
|
loadingBar: loadingBarReducer,
|
2016-10-24 16:07:40 +00:00
|
|
|
modal,
|
2016-10-27 19:59:56 +00:00
|
|
|
user_lists,
|
2017-01-16 12:27:58 +00:00
|
|
|
status_lists,
|
2016-10-30 14:06:43 +00:00
|
|
|
accounts,
|
2017-05-03 00:04:16 +00:00
|
|
|
accounts_counters,
|
2016-10-30 14:06:43 +00:00
|
|
|
statuses,
|
2016-11-13 12:04:18 +00:00
|
|
|
relationships,
|
2017-01-20 00:00:14 +00:00
|
|
|
settings,
|
2017-02-14 19:59:26 +00:00
|
|
|
cards,
|
2017-05-20 15:31:47 +00:00
|
|
|
reports,
|
2017-06-11 15:07:35 +00:00
|
|
|
contexts,
|
2017-07-07 22:06:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export function createReducer(asyncReducers) {
|
|
|
|
return combineReducers({
|
|
|
|
...reducers,
|
|
|
|
...asyncReducers,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export default combineReducers(reducers);
|