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