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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
633 B
JavaScript
Raw Normal View History

2018-11-08 19:23:39 +05:30
import Vue from 'vue';
import Vuex from 'vuex';
2020-06-23 00:09:42 +05:30
import batchCommentsModule from '~/batch_comments/stores/modules/batch_comments';
2018-11-08 19:23:39 +05:30
import diffsModule from '~/diffs/store/modules';
2021-03-11 19:13:27 +05:30
import notesModule from '~/notes/stores/modules';
2018-11-08 19:23:39 +05:30
import mrPageModule from './modules';
2023-06-20 00:43:36 +05:30
import findingsDrawer from './drawer';
2018-11-08 19:23:39 +05:30
Vue.use(Vuex);
2022-08-13 15:12:31 +05:30
export const createModules = () => ({
page: mrPageModule(),
notes: notesModule(),
diffs: diffsModule(),
batchComments: batchCommentsModule(),
2023-06-20 00:43:36 +05:30
findingsDrawer: findingsDrawer(),
2022-08-13 15:12:31 +05:30
});
2018-12-05 23:21:45 +05:30
export const createStore = () =>
new Vuex.Store({
2022-08-13 15:12:31 +05:30
modules: createModules(),
2018-12-05 23:21:45 +05:30
});
export default createStore();