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