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