Welcome to mirror list, hosted at ThFree Co, Russian Federation.

create_diffs_store.js « diffs « frontend « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6ffba1fe03528faefc65ed2c737e7f76fedf96f6 (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
25
26
import Vue from 'vue';
// eslint-disable-next-line no-restricted-imports
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 findingsDrawer from '~/mr_notes/stores/drawer';

Vue.use(Vuex);

export default function createDiffsStore() {
  return new Vuex.Store({
    modules: {
      page: {
        namespaced: true,
        state: {
          activeTab: 'notes',
        },
      },
      diffs: diffsModule(),
      notes: notesModule(),
      batchComments: batchCommentsModule(),
      findingsDrawer: findingsDrawer(),
    },
  });
}