summaryrefslogtreecommitdiff
path: root/vue.config.js
diff options
context:
space:
mode:
authorYoshie Muranaka <yoshiemuranaka@gmail.com>2019-12-04 19:41:22 +0300
committerYoshie Muranaka <yoshiemuranaka@gmail.com>2020-01-29 00:32:25 +0300
commitdc04feb5596a85619e98d2d594b065e92c8b8fa4 (patch)
treea1c78936b4ca86f40af3f085b220acd76a45d0b9 /vue.config.js
parent8d129109ec70a946ca5db879cd81f216ff3c804e (diff)
downloadwebui-vue-dc04feb5596a85619e98d2d594b065e92c8b8fa4.tar.xz
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
Diffstat (limited to 'vue.config.js')
-rw-r--r--vue.config.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/vue.config.js b/vue.config.js
index 9e1e1e1a..429b273e 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -1,11 +1,24 @@
const CompressionPlugin = require('compression-webpack-plugin');
module.exports = {
+ css: {
+ loaderOptions: {
+ scss: {
+ prependData: `
+ @import "@/assets/styles/_obmc-custom.scss";
+ `
+ }
+ }
+ },
devServer: {
+ https: true,
proxy: {
'/': {
target: process.env.BASE_URL,
onProxyRes: proxyRes => {
+ // This header is igorned in the browser so removing
+ // it so we don't see warnings in the browser console
+ delete proxyRes.headers['strict-transport-security'];
if (proxyRes.headers['set-cookie']) {
// Need to remove 'Secure' flag on set-cookie value so browser
// can create cookie for local development