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

index.js « store « self_monitor « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1144fff759a0b22c61f18c80958d5e6196a67703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import Vue from 'vue';
import Vuex from 'vuex';
import createState from './state';
import * as actions from './actions';
import mutations from './mutations';

Vue.use(Vuex);

export const createStore = (initialState) =>
  new Vuex.Store({
    modules: {
      selfMonitoring: {
        namespaced: true,
        state: createState(initialState),
        actions,
        mutations,
      },
    },
  });

export default createStore;