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 22:25:59 +01: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 01:04:16 +01: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 16:07:35 +01:00
|
|
|
import contexts from './contexts';
|
2016-08-24 16:56:44 +01:00
|
|
|
|
2017-07-07 23:06:02 +01:00
|
|
|
const reducers = {
|
2016-08-31 15:15:12 +01:00
|
|
|
timelines,
|
|
|
|
meta,
|
2016-11-20 18:39:18 +00:00
|
|
|
alerts,
|
2016-09-19 22:25:59 +01:00
|
|
|
loadingBar: loadingBarReducer,
|
2016-10-24 17:07:40 +01:00
|
|
|
modal,
|
2016-10-27 20:59:56 +01: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 01:04:16 +01: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 16:31:47 +01:00
|
|
|
reports,
|
2017-06-11 16:07:35 +01:00
|
|
|
contexts,
|
2017-07-07 23:06:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export function createReducer(asyncReducers) {
|
|
|
|
return combineReducers({
|
|
|
|
...reducers,
|
|
|
|
...asyncReducers,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
export default combineReducers(reducers);
|