2018-05-09 12:01:36 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import state from './state';
|
|
|
|
import * as actions from './actions';
|
|
|
|
import * as getters from './getters';
|
|
|
|
import mutations from './mutations';
|
|
|
|
import commitModule from './modules/commit';
|
2018-11-08 19:23:39 +05:30
|
|
|
import pipelines from './modules/pipelines';
|
|
|
|
import mergeRequests from './modules/merge_requests';
|
2018-05-09 12:01:36 +05:30
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
export const createStore = () =>
|
|
|
|
new Vuex.Store({
|
|
|
|
state: state(),
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
getters,
|
|
|
|
modules: {
|
|
|
|
commit: commitModule,
|
|
|
|
pipelines,
|
|
|
|
mergeRequests,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default createStore();
|