gitlab-org--gitlab-foss/app/assets/javascripts/ide/stores/index.js

33 lines
812 B
JavaScript
Raw Normal View History

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';
import mergeRequests from './modules/merge_requests';
2018-08-07 11:15:56 -04:00
import branches from './modules/branches';
import fileTemplates from './modules/file_templates';
import paneModule from './modules/pane';
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,
mergeRequests,
2018-08-07 11:15:56 -04:00
branches,
2018-08-30 05:43:41 -04:00
fileTemplates: fileTemplates(),
rightPane: paneModule(),
2018-05-29 08:09:19 -04:00
},
});
export default createStore();