misc_pterodactyl-panel/resources/assets/scripts/store/index.js
Dane Everitt 4c4f6d3afe
Fix login
2018-07-15 16:57:00 -07:00

24 lines
588 B
JavaScript

import Vue from 'vue';
import Vuex from 'vuex';
import server from "./modules/server";
import auth from "./modules/auth";
Vue.use(Vuex);
const store = new Vuex.Store({
strict: process.env.NODE_ENV !== 'production',
modules: { auth, server },
});
if (module.hot) {
module.hot.accept(['./modules/auth'], () => {
const newAuthModule = require('./modules/auth').default;
const newServerModule = require('./modules/server').default;
store.hotUpdate({
modules: { newAuthModule, newServerModule },
});
});
}
export default store;