summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/deploy_freeze/store/index.js
blob: ca7ea8c783c5bb20939c4a2de72b700fc562e6a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
import mutations from './mutations';
import createState from './state';

Vue.use(Vuex);

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