Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 1 | import Vue from 'vue'; |
| 2 | import Vuex from 'vuex'; |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 3 | |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 4 | import GlobalStore from './modules/GlobalStore'; |
| 5 | import AuthenticationStore from './modules/Authentication/AuthenticanStore'; |
| 6 | import LocalUserManagementStore from './modules/AccessControl/LocalUserMangementStore'; |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 7 | import OverviewStore from './modules/Overview/OverviewStore'; |
| 8 | import FirmwareStore from './modules/Configuration/FirmwareStore'; |
Yoshie Muranaka | c05ff64 | 2020-02-26 14:23:15 -0800 | [diff] [blame] | 9 | import BootSettingsStore from './modules/Control/BootSettingsStore'; |
Yoshie Muranaka | c11d389 | 2020-02-19 08:07:40 -0800 | [diff] [blame] | 10 | import ControlStore from './modules/Control/ControlStore'; |
Dixsie Wolmers | 4c69f5b | 2020-02-26 11:23:52 -0600 | [diff] [blame] | 11 | import PowerControlStore from './modules/Control/PowerControlStore'; |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 12 | import NetworkSettingStore from './modules/Configuration/NetworkSettingsStore'; |
| 13 | import EventLogStore from './modules/Health/EventLogStore'; |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame^] | 14 | import SensorsStore from './modules/Health/SensorsStore'; |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 15 | |
Yoshie Muranaka | dc04feb | 2019-12-04 08:41:22 -0800 | [diff] [blame] | 16 | import WebSocketPlugin from './plugins/WebSocketPlugin'; |
| 17 | |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 18 | Vue.use(Vuex); |
| 19 | |
| 20 | export default new Vuex.Store({ |
| 21 | state: {}, |
| 22 | mutations: {}, |
| 23 | actions: {}, |
Yoshie Muranaka | 35080ac | 2020-01-17 15:38:57 -0600 | [diff] [blame] | 24 | modules: { |
Yoshie Muranaka | b8b6f79 | 2019-12-03 14:47:32 -0800 | [diff] [blame] | 25 | global: GlobalStore, |
Derick Montague | e080a1a | 2019-12-04 16:30:08 -0600 | [diff] [blame] | 26 | authentication: AuthenticationStore, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 27 | localUsers: LocalUserManagementStore, |
| 28 | overview: OverviewStore, |
| 29 | firmware: FirmwareStore, |
Yoshie Muranaka | c05ff64 | 2020-02-26 14:23:15 -0800 | [diff] [blame] | 30 | hostBootSettings: BootSettingsStore, |
Yoshie Muranaka | c11d389 | 2020-02-19 08:07:40 -0800 | [diff] [blame] | 31 | controls: ControlStore, |
Dixsie Wolmers | 4c69f5b | 2020-02-26 11:23:52 -0600 | [diff] [blame] | 32 | powerControl: PowerControlStore, |
Dixsie Wolmers | f65ee34 | 2020-01-22 19:47:56 -0600 | [diff] [blame] | 33 | networkSettings: NetworkSettingStore, |
Yoshie Muranaka | 30abccb | 2020-03-11 12:44:24 -0700 | [diff] [blame^] | 34 | eventLog: EventLogStore, |
| 35 | sensors: SensorsStore |
Yoshie Muranaka | dc04feb | 2019-12-04 08:41:22 -0800 | [diff] [blame] | 36 | }, |
| 37 | plugins: [WebSocketPlugin] |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 38 | }); |