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