blob: 1f8e61beff0804a601ceae42df5ef1d4aeed26e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import Vue from 'vue';
import Vuex from 'vuex';
import batchCommentsModule from '~/batch_comments/stores/modules/batch_comments';
import diffsModule from '~/diffs/store/modules';
import notesModule from '~/notes/stores/modules';
import mrPageModule from './modules';
import findingsDrawer from './drawer';
Vue.use(Vuex);
export const createModules = () => ({
page: mrPageModule(),
notes: notesModule(),
diffs: diffsModule(),
batchComments: batchCommentsModule(),
findingsDrawer: findingsDrawer(),
});
export const createStore = () =>
new Vuex.Store({
modules: createModules(),
});
export default createStore();
|