blob: d54a9ea7f4c36df353c87d32da36d25cfcc63c08 [file] [log] [blame]
import Vue from 'vue';
import Vuex from 'vuex';
import actions from './actions';
import getters from './getters';
import global, { State as GlobalState } from './modules/_global';
import options, { State as OptionsState } from './modules/options';
import dashboard, { State as DashboardState } from './modules/dashboard';
import alarm, { State as AlarmState } from './modules/alarm';
import trace, { State as TraceState } from './modules/trace';
import topo, { State as TopoState } from './modules/topo';
Vue.use(Vuex);
export default new Vuex.Store({
actions,
getters,
modules: {
global,
options,
dashboard,
alarm,
trace,
topo,
},
});
export interface State {
options: OptionsState;
global: GlobalState;
dashboard: DashboardState;
alarm: AlarmState;
trace: TraceState;
topo: TopoState;
}