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

36 lines
978 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';
2019-12-26 22:10:19 +05:30
import clientsideModule from './modules/clientside';
2020-06-23 00:09:42 +05:30
import routerModule from './modules/router';
2018-05-09 12:01:36 +05:30
Vue.use(Vuex);
2020-06-23 00:09:42 +05:30
export const createStoreOptions = () => ({
state: state(),
actions,
mutations,
getters,
modules: {
commit: commitModule,
pipelines,
mergeRequests,
branches,
fileTemplates: fileTemplates(),
rightPane: paneModule(),
clientside: clientsideModule(),
router: routerModule,
},
});
export const createStore = () => new Vuex.Store(createStoreOptions());