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