blob: 08ada05e7375395382c7e19a860b1a5401f8db4f [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 Muranaka30abccb2020-03-11 12:44:24 -070014import SensorsStore from './modules/Health/SensorsStore';
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060015
Yoshie Muranakadc04feb2019-12-04 08:41:22 -080016import WebSocketPlugin from './plugins/WebSocketPlugin';
17
Derick Montaguea2988f42020-01-17 13:46:30 -060018Vue.use(Vuex);
19
20export default new Vuex.Store({
21 state: {},
22 mutations: {},
23 actions: {},
Yoshie Muranaka35080ac2020-01-17 15:38:57 -060024 modules: {
Yoshie Muranakab8b6f792019-12-03 14:47:32 -080025 global: GlobalStore,
Derick Montaguee080a1a2019-12-04 16:30:08 -060026 authentication: AuthenticationStore,
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060027 localUsers: LocalUserManagementStore,
28 overview: OverviewStore,
29 firmware: FirmwareStore,
Yoshie Muranakac05ff642020-02-26 14:23:15 -080030 hostBootSettings: BootSettingsStore,
Yoshie Muranakac11d3892020-02-19 08:07:40 -080031 controls: ControlStore,
Dixsie Wolmers4c69f5b2020-02-26 11:23:52 -060032 powerControl: PowerControlStore,
Dixsie Wolmersf65ee342020-01-22 19:47:56 -060033 networkSettings: NetworkSettingStore,
Yoshie Muranaka30abccb2020-03-11 12:44:24 -070034 eventLog: EventLogStore,
35 sensors: SensorsStore
Yoshie Muranakadc04feb2019-12-04 08:41:22 -080036 },
37 plugins: [WebSocketPlugin]
Derick Montaguea2988f42020-01-17 13:46:30 -060038});