blob: cb63e5451d8a9bdfd6d07a67dc8ec9fa120eb604 [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';
9import PowerConsumptionStore from './modules/Control/PowerConsumptionStore';
10import PowerCapStore from './modules/Control/PowerCapStore';
11import NetworkSettingStore from './modules/Configuration/NetworkSettingsStore';
12import EventLogStore from './modules/Health/EventLogStore';
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060013
Yoshie Muranakadc04feb2019-12-04 08:41:22 -080014import WebSocketPlugin from './plugins/WebSocketPlugin';
15
Derick Montaguea2988f42020-01-17 13:46:30 -060016Vue.use(Vuex);
17
18export default new Vuex.Store({
19 state: {},
20 mutations: {},
21 actions: {},
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060022 modules: {
Yoshie Muranakab8b6f792019-12-03 14:47:32 -080023 global: GlobalStore,
Derick Montaguee080a1a2019-12-04 16:30:08 -060024 authentication: AuthenticationStore,
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060025 localUsers: LocalUserManagementStore,
26 overview: OverviewStore,
27 firmware: FirmwareStore,
28 powerConsumption: PowerConsumptionStore,
29 powerCap: PowerCapStore,
30 networkSettings: NetworkSettingStore,
31 eventLog: EventLogStore
Yoshie Muranakadc04feb2019-12-04 08:41:22 -080032 },
33 plugins: [WebSocketPlugin]
Derick Montaguea2988f42020-01-17 13:46:30 -060034});