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

33 lines
812 B
JavaScript
Raw Normal View History

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-11-18 11:00:15 +05:30
import branches from './modules/branches';
2018-11-20 20:47:30 +05:30
import fileTemplates from './modules/file_templates';
2018-12-05 23:21:45 +05:30
import paneModule from './modules/pane';
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,
2018-11-18 11:00:15 +05:30
branches,
2018-11-20 20:47:30 +05:30
fileTemplates: fileTemplates(),
2018-12-05 23:21:45 +05:30
rightPane: paneModule(),
2018-11-08 19:23:39 +05:30
},
});
export default createStore();