debian-mirror-gitlab/spec/frontend/diffs/create_diffs_store.js
2020-04-08 14:13:33 +05:30

15 lines
321 B
JavaScript

import Vue from 'vue';
import Vuex from 'vuex';
import diffsModule from '~/diffs/store/modules';
import notesModule from '~/notes/stores/modules';
Vue.use(Vuex);
export default function createDiffsStore() {
return new Vuex.Store({
modules: {
diffs: diffsModule(),
notes: notesModule(),
},
});
}