2019-05-27 18:30:36 -04:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import * as actions from './actions';
|
2019-12-11 04:08:12 -05:00
|
|
|
import * as getters from './getters';
|
2019-05-27 18:30:36 -04:00
|
|
|
import mutations from './mutations';
|
|
|
|
import state from './state';
|
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2020-03-31 05:08:16 -04:00
|
|
|
export const monitoringDashboard = {
|
|
|
|
namespaced: true,
|
|
|
|
actions,
|
|
|
|
getters,
|
|
|
|
mutations,
|
|
|
|
state,
|
|
|
|
};
|
|
|
|
|
2020-05-22 14:08:21 -04:00
|
|
|
export const createStore = (initState = {}) =>
|
2019-05-27 18:30:36 -04:00
|
|
|
new Vuex.Store({
|
|
|
|
modules: {
|
2020-05-22 14:08:21 -04:00
|
|
|
monitoringDashboard: {
|
|
|
|
...monitoringDashboard,
|
|
|
|
state: {
|
|
|
|
...state(),
|
|
|
|
...initState,
|
|
|
|
},
|
|
|
|
},
|
2019-05-27 18:30:36 -04:00
|
|
|
},
|
|
|
|
});
|