2018-03-20 10:12:48 -04:00
|
|
|
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-05-11 12:27:09 -04:00
|
|
|
import pipelines from './modules/pipelines';
|
2018-05-11 05:37:10 -04:00
|
|
|
import mergeRequests from './modules/merge_requests';
|
2018-08-07 11:15:56 -04:00
|
|
|
import branches from './modules/branches';
|
2018-08-16 07:41:21 -04:00
|
|
|
import fileTemplates from './modules/file_templates';
|
2018-09-27 17:57:30 -04:00
|
|
|
import paneModule from './modules/pane';
|
2018-03-20 10:12:48 -04:00
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2018-05-29 08:09:19 -04:00
|
|
|
export const createStore = () =>
|
|
|
|
new Vuex.Store({
|
|
|
|
state: state(),
|
|
|
|
actions,
|
|
|
|
mutations,
|
|
|
|
getters,
|
|
|
|
modules: {
|
|
|
|
commit: commitModule,
|
|
|
|
pipelines,
|
2018-06-01 07:12:18 -04:00
|
|
|
mergeRequests,
|
2018-08-07 11:15:56 -04:00
|
|
|
branches,
|
2018-08-30 05:43:41 -04:00
|
|
|
fileTemplates: fileTemplates(),
|
2018-09-27 17:57:30 -04:00
|
|
|
rightPane: paneModule(),
|
2018-05-29 08:09:19 -04:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default createStore();
|