From dc04feb5596a85619e98d2d594b065e92c8b8fa4 Mon Sep 17 00:00:00 2001 From: Yoshie Muranaka Date: Wed, 4 Dec 2019 08:41:22 -0800 Subject: Add host status plugin - Create WebSocket and get host state changes from server - Changed webpack devServer to https to allow for secure WebSocket creation (wss) - Updates to AppHeader to visually indicate changes in host state - Cleaned up api.js file - Check if user is logged in when creating WebSocket - Adds check if user is already authenticated so WebSocket is created when browser refreshed. - Add appliation header styles - Add sass loader config changes to allow sass variables to be used in single file components URL must use https protocol when running locally or the page will not load. Signed-off-by: Yoshie Muranaka Signed-off-by: Derick Montague Change-Id: I35e89bdc09e1aa35a6215ef952409a8ed16dd9e1 --- src/store/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/store/index.js') diff --git a/src/store/index.js b/src/store/index.js index 4ef1c9d0..889e52b4 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -5,6 +5,8 @@ import GlobalStore from './modules/GlobalStore'; import AuthenticationStore from './modules/Authentication/AuthenticanStore'; import LocalUserManagementStore from './modules/AccessControl/LocalUserMangementStore'; +import WebSocketPlugin from './plugins/WebSocketPlugin'; + Vue.use(Vuex); export default new Vuex.Store({ @@ -15,5 +17,6 @@ export default new Vuex.Store({ global: GlobalStore, authentication: AuthenticationStore, localUsers: LocalUserManagementStore - } + }, + plugins: [WebSocketPlugin] }); -- cgit v1.2.3