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