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