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'; 14 15import WebSocketPlugin from './plugins/WebSocketPlugin'; 16 17Vue.use(Vuex); 18 19export default new Vuex.Store({ 20 state: {}, 21 mutations: {}, 22 actions: {}, 23 modules: { 24 global: GlobalStore, 25 authentication: AuthenticationStore, 26 localUsers: LocalUserManagementStore, 27 overview: OverviewStore, 28 firmware: FirmwareStore, 29 hostBootSettings: BootSettingsStore, 30 controls: ControlStore, 31 powerControl: PowerControlStore, 32 networkSettings: NetworkSettingStore, 33 eventLog: EventLogStore 34 }, 35 plugins: [WebSocketPlugin] 36}); 37