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