|
|
@ -1,11 +1,15 @@ |
|
|
|
import inputReducer from '../reducers/input'; |
|
|
|
import inputReducer from '../reducers/input'; |
|
|
|
import consoleReducer from '../reducers/console'; |
|
|
|
import consoleReducer from '../reducers/console'; |
|
|
|
import settingReducer from '../reducers/setting'; |
|
|
|
import settingReducer from '../reducers/setting'; |
|
|
|
|
|
|
|
import followReducer from '../reducers/follow'; |
|
|
|
|
|
|
|
import completionReducer from '../reducers/completion'; |
|
|
|
|
|
|
|
|
|
|
|
const defaultState = { |
|
|
|
const defaultState = { |
|
|
|
input: inputReducer(undefined, {}), |
|
|
|
input: inputReducer(undefined, {}), |
|
|
|
console: consoleReducer(undefined, {}), |
|
|
|
console: consoleReducer(undefined, {}), |
|
|
|
setting: settingReducer(undefined, {}), |
|
|
|
setting: settingReducer(undefined, {}), |
|
|
|
|
|
|
|
follow: followReducer(undefined, {}), |
|
|
|
|
|
|
|
completion: completionReducer(undefined, {}), |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
export default function reducer(state = defaultState, action = {}) { |
|
|
|
export default function reducer(state = defaultState, action = {}) { |
|
|
@ -13,5 +17,7 @@ export default function reducer(state = defaultState, action = {}) { |
|
|
|
input: inputReducer(state.input, action), |
|
|
|
input: inputReducer(state.input, action), |
|
|
|
console: consoleReducer(state.console, action), |
|
|
|
console: consoleReducer(state.console, action), |
|
|
|
setting: settingReducer(state.setting, action), |
|
|
|
setting: settingReducer(state.setting, action), |
|
|
|
|
|
|
|
follow: followReducer(state.follow, action), |
|
|
|
|
|
|
|
completion: completionReducer(state.completion, action), |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|