debian-mirror-gitlab/app/assets/javascripts/serverless/store/index.js

19 lines
400 B
JavaScript
Raw Normal View History

2019-07-07 11:18:12 +05:30
import Vue from 'vue';
import Vuex from 'vuex';
import * as actions from './actions';
import * as getters from './getters';
import mutations from './mutations';
import createState from './state';
Vue.use(Vuex);
2020-10-24 23:57:45 +05:30
export const createStore = (entryPointData = {}) =>
2019-07-07 11:18:12 +05:30
new Vuex.Store({
actions,
getters,
mutations,
2020-10-24 23:57:45 +05:30
state: createState(entryPointData),
2019-07-07 11:18:12 +05:30
});
2020-10-24 23:57:45 +05:30
export default createStore;