xref: /openbmc/webui-vue/src/store/index.js (revision 8f030bac11637fcd0a005907b558d7accbff68bd)
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';
21import ChassisStore from './modules/Health/ChassisStore';
22import BmcStore from './modules/Health/BmcStore';
23import ProcessorStore from './modules/Health/ProcessorStore';
24import SecuritySettingsStore from './modules/Configuration/SecuritySettingsStore';
25
26import WebSocketPlugin from './plugins/WebSocketPlugin';
27import DateTimeStore from './modules/Configuration/DateTimeSettingsStore';
28import VirtualMediaStore from './modules/Control/VirtualMediaStore';
29
30Vue.use(Vuex);
31
32export default new Vuex.Store({
33  state: {},
34  mutations: {},
35  actions: {},
36  modules: {
37    global: GlobalStore,
38    authentication: AuthenticationStore,
39    dateTime: DateTimeStore,
40    ldap: LdapStore,
41    localUsers: LocalUserManagementStore,
42    firmware: FirmwareStore,
43    hostBootSettings: BootSettingsStore,
44    controls: ControlStore,
45    powerControl: PowerControlStore,
46    powerSupply: PowerSupplyStore,
47    networkSettings: NetworkSettingStore,
48    eventLog: EventLogStore,
49    sensors: SensorsStore,
50    sslCertificates: SslCertificatesStore,
51    serverLed: ServerLedStore,
52    system: SystemStore,
53    memory: MemoryStore,
54    fan: FanStore,
55    chassis: ChassisStore,
56    bmc: BmcStore,
57    processors: ProcessorStore,
58    virtualMedia: VirtualMediaStore,
59    securitySettings: SecuritySettingsStore,
60  },
61  plugins: [WebSocketPlugin],
62});
63