blob: 8a444a6347da342994ed4f86ec717ab47272b89d [file] [log] [blame]
Derick Montaguefded0d12019-12-11 06:16:40 -06001import Vue from 'vue';
2import Vuex from 'vuex';
Derick Montaguea2988f42020-01-17 13:46:30 -06003
Derick Montaguefded0d12019-12-11 06:16:40 -06004import GlobalStore from './modules/GlobalStore';
5import AuthenticationStore from './modules/Authentication/AuthenticanStore';
6import LocalUserManagementStore from './modules/AccessControl/LocalUserMangementStore';
Dixsie Wolmersf65ee342020-01-22 19:47:56 -06007import OverviewStore from './modules/Overview/OverviewStore';
8import FirmwareStore from './modules/Configuration/FirmwareStore';
Yoshie Muranakac11d3892020-02-19 08:07:40 -08009import ControlStore from './modules/Control/ControlStore';
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060010import PowerConsumptionStore from './modules/Control/PowerConsumptionStore';
11import PowerCapStore from './modules/Control/PowerCapStore';
12import NetworkSettingStore from './modules/Configuration/NetworkSettingsStore';
13import EventLogStore from './modules/Health/EventLogStore';
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060014
Yoshie Muranakadc04feb2019-12-04 08:41:22 -080015import WebSocketPlugin from './plugins/WebSocketPlugin';
16
Derick Montaguea2988f42020-01-17 13:46:30 -060017Vue.use(Vuex);
18
19export default new Vuex.Store({
20 state: {},
21 mutations: {},
22 actions: {},
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060023 modules: {
Yoshie Muranakab8b6f792019-12-03 14:47:32 -080024 global: GlobalStore,
Derick Montaguee080a1a2019-12-04 16:30:08 -060025 authentication: AuthenticationStore,
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060026 localUsers: LocalUserManagementStore,
27 overview: OverviewStore,
28 firmware: FirmwareStore,
Yoshie Muranakac11d3892020-02-19 08:07:40 -080029 controls: ControlStore,
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060030 powerConsumption: PowerConsumptionStore,
31 powerCap: PowerCapStore,
32 networkSettings: NetworkSettingStore,
33 eventLog: EventLogStore
Yoshie Muranakadc04feb2019-12-04 08:41:22 -080034 },
35 plugins: [WebSocketPlugin]
Derick Montaguea2988f42020-01-17 13:46:30 -060036});