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

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

Vue.use(Vuex);

export const getStoreConfig = () => ({
  actions,
  mutations,
  getters,
  state: state(),
});

export default () => new Vuex.Store(getStoreConfig());