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

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

Vue.use(Vuex);

const createState = () => ({
  awards: [],
  awardPath: '',
  currentUserId: null,
  canAwardEmoji: false,
});

export default () =>
  new Vuex.Store({
    state: createState(),
    actions,
    mutations,
  });