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 ControlStore from './modules/Control/ControlStore'; 10import PowerConsumptionStore from './modules/Control/PowerConsumptionStore'; 11import PowerCapStore from './modules/Control/PowerCapStore'; 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 controls: ControlStore, 30 powerConsumption: PowerConsumptionStore, 31 powerCap: PowerCapStore, 32 networkSettings: NetworkSettingStore, 33 eventLog: EventLogStore 34 }, 35 plugins: [WebSocketPlugin] 36}); 37