32 lines
1.0 KiB
TypeScript
32 lines
1.0 KiB
TypeScript
import { chartsReducer, ChartsState } from './Charts'
|
|
import { combineReducers } from 'redux'
|
|
import { connectionManagerReducer, ConnectionManagerState } from './ConnectionManager'
|
|
import { connectionReducer, ConnectionState } from './Connection'
|
|
import { GlobalState, globalState } from './Global'
|
|
import { publishReducer, PublishState } from './Publish'
|
|
import { settingsReducer, SettingsState } from './Settings'
|
|
import { sidebarReducer, SidebarState } from './Sidebar'
|
|
import { treeReducer, TreeState } from './Tree'
|
|
|
|
export interface AppState {
|
|
globalState: GlobalState
|
|
tree: TreeState
|
|
settings: SettingsState
|
|
publish: PublishState
|
|
charts: ChartsState
|
|
sidebar: SidebarState
|
|
connection: ConnectionState
|
|
connectionManager: ConnectionManagerState
|
|
}
|
|
|
|
export default combineReducers({
|
|
globalState,
|
|
charts: chartsReducer,
|
|
publish: publishReducer,
|
|
sidebar: sidebarReducer,
|
|
connection: connectionReducer,
|
|
settings: settingsReducer,
|
|
tree: treeReducer,
|
|
connectionManager: connectionManagerReducer,
|
|
})
|