2019-04-05 22:02:39 -04:00
|
|
|
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-07-21 11:09:40 -04:00
|
|
|
export const createStore = (entryPointData = {}) =>
|
2019-04-05 22:02:39 -04:00
|
|
|
new Vuex.Store({
|
|
|
|
actions,
|
|
|
|
getters,
|
|
|
|
mutations,
|
2020-07-21 11:09:40 -04:00
|
|
|
state: createState(entryPointData),
|
2019-04-05 22:02:39 -04:00
|
|
|
});
|
|
|
|
|
2020-07-21 11:09:40 -04:00
|
|
|
export default createStore;
|