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