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