xref: /openbmc/webui-vue/src/store/index.js (revision 84ec88f9)
1import Vue from 'vue';
2import Vuex from 'vuex';
3
4import GlobalStore from './modules/GlobalStore';
5import AuthenticationStore from './modules/Authentication/AuthenticanStore';
6import SessionsStore from './modules/SecurityAndAccess/SessionsStore';
7import LdapStore from './modules/SecurityAndAccess/LdapStore';
8import UserManagementStore from './modules/SecurityAndAccess/UserManagementStore';
9import CertificatesStore from './modules/SecurityAndAccess/CertificatesStore';
10import FirmwareStore from './modules/Operations/FirmwareStore';
11import BootSettingsStore from './modules/Operations/BootSettingsStore';
12import ControlStore from './modules/Operations/ControlStore';
13import PowerControlStore from './modules/ResourceManagement/PowerControlStore';
14import PowerPolicyStore from './modules/Settings/PowerPolicyStore';
15import NetworkStore from './modules/Settings/NetworkStore';
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 AssemblyStore from './modules/HardwareStatus/AssemblyStore';
27import PostCodeLogsStore from './modules/Logs/PostCodeLogsStore';
28import PoliciesStore from './modules/SecurityAndAccess/PoliciesStore';
29import FactoryResetStore from './modules/Operations/FactoryResetStore';
30
31import WebSocketPlugin from './plugins/WebSocketPlugin';
32import DateTimeStore from './modules/Settings/DateTimeStore';
33import VirtualMediaStore from './modules/Operations/VirtualMediaStore';
34
35Vue.use(Vuex);
36
37export default new Vuex.Store({
38  state: {},
39  mutations: {},
40  actions: {},
41  modules: {
42    global: GlobalStore,
43    authentication: AuthenticationStore,
44    sessions: SessionsStore,
45    dateTime: DateTimeStore,
46    ldap: LdapStore,
47    userManagement: UserManagementStore,
48    firmware: FirmwareStore,
49    serverBootSettings: BootSettingsStore,
50    controls: ControlStore,
51    powerControl: PowerControlStore,
52    powerPolicy: PowerPolicyStore,
53    powerSupply: PowerSupplyStore,
54    network: NetworkStore,
55    eventLog: EventLogStore,
56    sensors: SensorsStore,
57    serverLed: ServerLedStore,
58    certificates: CertificatesStore,
59    system: SystemStore,
60    memory: MemoryStore,
61    fan: FanStore,
62    chassis: ChassisStore,
63    bmc: BmcStore,
64    processors: ProcessorStore,
65    assemblies: AssemblyStore,
66    postCodeLogs: PostCodeLogsStore,
67    virtualMedia: VirtualMediaStore,
68    policies: PoliciesStore,
69    factoryReset: FactoryResetStore,
70  },
71  plugins: [WebSocketPlugin],
72});
73