blob: 272169900c9d2a6fb5f82453fc1bb3245df37ace [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 Muranakac05ff642020-02-26 14:23:15 -08009import BootSettingsStore from './modules/Control/BootSettingsStore';
Yoshie Muranakac11d3892020-02-19 08:07:40 -080010import ControlStore from './modules/Control/ControlStore';
Dixsie Wolmers4c69f5b2020-02-26 11:23:52 -060011import PowerControlStore from './modules/Control/PowerControlStore';
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060012import 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 Muranakac05ff642020-02-26 14:23:15 -080029 hostBootSettings: BootSettingsStore,
Yoshie Muranakac11d3892020-02-19 08:07:40 -080030 controls: ControlStore,
Dixsie Wolmers4c69f5b2020-02-26 11:23:52 -060031 powerControl: PowerControlStore,
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060032 networkSettings: NetworkSettingStore,
33 eventLog: EventLogStore
Yoshie Muranakadc04feb2019-12-04 08:41:22 -080034 },
35 plugins: [WebSocketPlugin]
Derick Montaguea2988f42020-01-17 13:46:30 -060036});