2018-06-21 08:22:40 -04:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
import notesModule from '~/notes/stores/modules';
|
|
|
|
import diffsModule from '~/diffs/store/modules';
|
|
|
|
import mrPageModule from './modules';
|
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
2018-10-06 13:16:40 -04:00
|
|
|
export const createStore = () =>
|
|
|
|
new Vuex.Store({
|
|
|
|
modules: {
|
|
|
|
page: mrPageModule,
|
|
|
|
notes: notesModule(),
|
|
|
|
diffs: diffsModule(),
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
export default createStore();
|