Fix dashboard to track server state

This commit is contained in:
Dane Everitt 2018-07-15 17:53:40 -07:00
parent 8b3713e3ff
commit 7f5485d648
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
5 changed files with 95 additions and 31 deletions

View file

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