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 OverviewStore from './modules/Overview/OverviewStore'; 10import FirmwareStore from './modules/Configuration/FirmwareStore'; 11import BootSettingsStore from './modules/Control/BootSettingsStore'; 12import ControlStore from './modules/Control/ControlStore'; 13import PowerControlStore from './modules/Control/PowerControlStore'; 14import NetworkSettingStore from './modules/Configuration/NetworkSettingsStore'; 15import EventLogStore from './modules/Health/EventLogStore'; 16import SensorsStore from './modules/Health/SensorsStore'; 17import ServerLedStore from './modules/Control/ServerLedStore'; 18import SystemStore from './modules/Health/SystemStore'; 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 overview: OverviewStore, 34 firmware: FirmwareStore, 35 hostBootSettings: BootSettingsStore, 36 controls: ControlStore, 37 powerControl: PowerControlStore, 38 networkSettings: NetworkSettingStore, 39 eventLog: EventLogStore, 40 sensors: SensorsStore, 41 sslCertificates: SslCertificatesStore, 42 serverLed: ServerLedStore, 43 system: SystemStore 44 }, 45 plugins: [WebSocketPlugin] 46}); 47