debian-mirror-gitlab/app/assets/javascripts/packages/details/store/index.js
2020-10-24 23:57:45 +05:30

20 lines
394 B
JavaScript

import Vue from 'vue';
import Vuex from 'vuex';
import fetchPackageVersions from './actions';
import * as getters from './getters';
import mutations from './mutations';
Vue.use(Vuex);
export default (initialState = {}) =>
new Vuex.Store({
actions: {
fetchPackageVersions,
},
getters,
mutations,
state: {
isLoading: false,
...initialState,
},
});