2018-06-21 08:22:40 -04:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
2020-06-01 02:08:21 -04:00
|
|
|
import batchCommentsModule from '~/batch_comments/stores/modules/batch_comments';
|
2018-06-21 08:22:40 -04:00
|
|
|
import diffsModule from '~/diffs/store/modules';
|
2021-02-14 13:09:20 -05:00
|
|
|
import notesModule from '~/notes/stores/modules';
|
2018-06-21 08:22:40 -04:00
|
|
|
import mrPageModule from './modules';
|
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2018-10-06 13:16:40 -04:00
|
|
|
export const createStore = () =>
|
|
|
|
new Vuex.Store({
|
|
|
|
modules: {
|
2019-08-11 19:57:30 -04:00
|
|
|
page: mrPageModule(),
|
2018-10-06 13:16:40 -04:00
|
|
|
notes: notesModule(),
|
|
|
|
diffs: diffsModule(),
|
2020-06-01 02:08:21 -04:00
|
|
|
batchComments: batchCommentsModule(),
|
2018-10-06 13:16:40 -04:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default createStore();
|