2015-09-04 12:10:08 +02:00
|
|
|
var redux = require('redux');
|
|
|
|
var thunkMiddleware = require('redux-thunk');
|
|
|
|
var loggerMiddleware = require('redux-logger');
|
|
|
|
var reducers = require('./reducers');
|
2015-09-11 16:25:45 +02:00
|
|
|
var loggerMiddleware = require('./middlewares/logger');
|
2015-09-04 12:10:08 +02:00
|
|
|
|
|
|
|
var createStore = redux.applyMiddleware(
|
2015-09-11 16:25:45 +02:00
|
|
|
thunkMiddleware,
|
|
|
|
loggerMiddleware
|
2015-09-04 12:10:08 +02:00
|
|
|
)(redux.createStore);
|
|
|
|
|
|
|
|
var appReducer = redux.combineReducers({
|
|
|
|
profile: reducers.profile,
|
|
|
|
processOpts: reducers.processOpts,
|
2015-09-16 17:26:56 +02:00
|
|
|
desktopApps: reducers.desktopApps,
|
|
|
|
theme: reducers.theme
|
2015-09-04 12:10:08 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = createStore(appReducer);
|