21 lines
539 B
JavaScript
21 lines
539 B
JavaScript
import Vue from 'vue';
|
|
import Vuex from 'vuex';
|
|
|
|
import initAuthStore from './auth/auth';
|
|
import initReleasesStore from './releases/releases';
|
|
import initNetworksStore from './networks/networks';
|
|
|
|
function initStore(router) {
|
|
Vue.use(Vuex);
|
|
|
|
const store = new Vuex.Store();
|
|
|
|
store.registerModule('auth', initAuthStore(store, router));
|
|
store.registerModule('releases', initReleasesStore(store, router));
|
|
store.registerModule('networks', initNetworksStore(store, router));
|
|
|
|
return store;
|
|
}
|
|
|
|
export default initStore;
|