2020-04-08 14:13:33 +05:30
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
2021-04-29 21:17:54 +05:30
|
|
|
import batchCommentsModule from '~/batch_comments/stores/modules/batch_comments';
|
2020-04-08 14:13:33 +05:30
|
|
|
import diffsModule from '~/diffs/store/modules';
|
|
|
|
import notesModule from '~/notes/stores/modules';
|
|
|
|
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
|
|
|
export default function createDiffsStore() {
|
|
|
|
return new Vuex.Store({
|
|
|
|
modules: {
|
2021-11-11 11:23:49 +05:30
|
|
|
page: {
|
|
|
|
namespaced: true,
|
|
|
|
state: {
|
|
|
|
activeTab: 'notes',
|
|
|
|
},
|
|
|
|
},
|
2020-04-08 14:13:33 +05:30
|
|
|
diffs: diffsModule(),
|
|
|
|
notes: notesModule(),
|
2021-04-29 21:17:54 +05:30
|
|
|
batchComments: batchCommentsModule(),
|
2020-04-08 14:13:33 +05:30
|
|
|
},
|
|
|
|
});
|
|
|
|
}
|