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