debian-mirror-gitlab/app/assets/javascripts/monitoring/stores/index.js

26 lines
450 B
JavaScript
Raw Normal View History

2019-09-04 21:01:54 +05:30
import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
2020-01-01 13:55:28 +05:30
import * as getters from './getters';
2019-09-04 21:01:54 +05:30
import mutations from './mutations';
import state from './state';
Vue.use(Vuex);
2020-04-22 19:07:51 +05:30
export const monitoringDashboard = {
namespaced: true,
actions,
getters,
mutations,
state,
};
2019-09-04 21:01:54 +05:30
export const createStore = () =>
new Vuex.Store({
modules: {
2020-04-22 19:07:51 +05:30
monitoringDashboard,
2019-09-04 21:01:54 +05:30
},
});
export default createStore();