2019-06-03 03:31:38 +00:00
|
|
|
import Vue from 'vue';
|
|
|
|
import Vuex from 'vuex';
|
|
|
|
|
2019-11-15 01:37:17 +00:00
|
|
|
import initUiStore from './ui/ui';
|
2019-06-03 03:31:38 +00:00
|
|
|
import initAuthStore from './auth/auth';
|
|
|
|
import initReleasesStore from './releases/releases';
|
2019-11-11 02:20:00 +00:00
|
|
|
import initSitesStore from './sites/sites';
|
2019-11-09 03:43:58 +00:00
|
|
|
import initNetworksStore from './networks/networks';
|
2019-11-10 03:20:22 +00:00
|
|
|
import initActorsStore from './actors/actors';
|
2019-11-11 04:18:28 +00:00
|
|
|
import initTagsStore from './tags/tags';
|
2019-06-03 03:31:38 +00:00
|
|
|
|
|
|
|
function initStore(router) {
|
|
|
|
Vue.use(Vuex);
|
|
|
|
|
|
|
|
const store = new Vuex.Store();
|
|
|
|
|
2019-11-15 01:37:17 +00:00
|
|
|
store.registerModule('ui', initUiStore(store, router));
|
2019-06-03 03:31:38 +00:00
|
|
|
store.registerModule('auth', initAuthStore(store, router));
|
|
|
|
store.registerModule('releases', initReleasesStore(store, router));
|
2019-11-10 03:20:22 +00:00
|
|
|
store.registerModule('actors', initActorsStore(store, router));
|
2019-11-11 02:20:00 +00:00
|
|
|
store.registerModule('sites', initSitesStore(store, router));
|
2019-11-09 03:43:58 +00:00
|
|
|
store.registerModule('networks', initNetworksStore(store, router));
|
2019-11-11 04:18:28 +00:00
|
|
|
store.registerModule('tags', initTagsStore(store, router));
|
2019-06-03 03:31:38 +00:00
|
|
|
|
|
|
|
return store;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default initStore;
|