blob: 6bad517c57ec58f533fe62906dd55e8bb7e5ed61 [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 Wolmers4c69f5b2020-02-26 11:23:52 -060010import PowerControlStore from './modules/Control/PowerControlStore';
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060011import 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,
Yoshie Muranakac11d3892020-02-19 08:07:40 -080028 controls: ControlStore,
Dixsie Wolmers4c69f5b2020-02-26 11:23:52 -060029 powerControl: PowerControlStore,
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060030 networkSettings: NetworkSettingStore,
31 eventLog: EventLogStore
Yoshie Muranakadc04feb2019-12-04 08:41:22 -080032 },
33 plugins: [WebSocketPlugin]
Derick Montaguea2988f42020-01-17 13:46:30 -060034});