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 <yoshiemuranaka@gmail.com>
Signed-off-by: Derick Montague <derick.montague@ibm.com>
Change-Id: I35e89bdc09e1aa35a6215ef952409a8ed16dd9e1
diff --git a/src/store/api.js b/src/store/api.js
index da6f398..463e0d8 100644
--- a/src/store/api.js
+++ b/src/store/api.js
@@ -4,10 +4,6 @@
withCredentials: true
});
-// TODO: Permanent authentication solution
-// Using defaults to set auth for sending
-// auth object in header
-
export default {
get(path) {
return api.get(path);
@@ -26,6 +22,5 @@
},
all(promises) {
return Axios.all(promises);
- },
- defaults: api.defaults
+ }
};