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'; 19import MemoryStore from './modules/Health/MemoryStore'; 20 21import WebSocketPlugin from './plugins/WebSocketPlugin'; 22 23Vue.use(Vuex); 24 25export default new Vuex.Store({ 26 state: {}, 27 mutations: {}, 28 actions: {}, 29 modules: { 30 global: GlobalStore, 31 authentication: AuthenticationStore, 32 ldap: LdapStore, 33 localUsers: LocalUserManagementStore, 34 firmware: FirmwareStore, 35 hostBootSettings: BootSettingsStore, 36 controls: ControlStore, 37 powerControl: PowerControlStore, 38 powerSupply: PowerSupplyStore, 39 networkSettings: NetworkSettingStore, 40 eventLog: EventLogStore, 41 sensors: SensorsStore, 42 sslCertificates: SslCertificatesStore, 43 serverLed: ServerLedStore, 44 system: SystemStore, 45 memory: MemoryStore 46 }, 47 plugins: [WebSocketPlugin] 48}); 49