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