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