1import Vue from 'vue'; 2import Vuex from 'vuex'; 3 4import GlobalStore from './modules/GlobalStore'; 5import AuthenticationStore from './modules/Authentication/AuthenticanStore'; 6import LocalUserManagementStore from './modules/AccessControl/LocalUserMangementStore'; 7import OverviewStore from './modules/Overview/OverviewStore'; 8import FirmwareStore from './modules/Configuration/FirmwareStore'; 9import BootSettingsStore from './modules/Control/BootSettingsStore'; 10import ControlStore from './modules/Control/ControlStore'; 11import PowerControlStore from './modules/Control/PowerControlStore'; 12import NetworkSettingStore from './modules/Configuration/NetworkSettingsStore'; 13import EventLogStore from './modules/Health/EventLogStore'; 14import SensorsStore from './modules/Health/SensorsStore'; 15 16import WebSocketPlugin from './plugins/WebSocketPlugin'; 17 18Vue.use(Vuex); 19 20export default new Vuex.Store({ 21 state: {}, 22 mutations: {}, 23 actions: {}, 24 modules: { 25 global: GlobalStore, 26 authentication: AuthenticationStore, 27 localUsers: LocalUserManagementStore, 28 overview: OverviewStore, 29 firmware: FirmwareStore, 30 hostBootSettings: BootSettingsStore, 31 controls: ControlStore, 32 powerControl: PowerControlStore, 33 networkSettings: NetworkSettingStore, 34 eventLog: EventLogStore, 35 sensors: SensorsStore 36 }, 37 plugins: [WebSocketPlugin] 38}); 39