From 71ecc2840eb80e0a0ad67cdc6fa6ba879d58da7c Mon Sep 17 00:00:00 2001 From: Arthur Lu Date: Thu, 12 Oct 2023 17:27:37 +0000 Subject: [PATCH] add local copy of w3.css fallback, change how the dashboard and api is proxied --- README.md | 2 +- account.html | 1 + config.html | 1 + index.html | 1 + login.html | 1 + scripts/instance.js | 1 + scripts/utils.js | 15 +-- settings.html | 2 +- template.vars.js | 2 +- w3.css | 235 ++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 246 insertions(+), 15 deletions(-) create mode 100644 w3.css diff --git a/README.md b/README.md index 570e9d3..3e5c1db 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ After this step, the Dashboard should be available on the `Dashboard Host` at po ## Configuration - Dashboard 1. In `Dashboard Host`, navigate to this repo's root folder -2. Rename `template.vars.js` to `vars.js` and assign the `API` variable with the value of the API's URL. This will likely be `dashboard./api` +2. Rename `template.vars.js` to `vars.js` and assign the `API` variable with the value of the API's URL. This will likely be `paas./api` ## Installation - API diff --git a/account.html b/account.html index a61e263..462da7a 100644 --- a/account.html +++ b/account.html @@ -5,6 +5,7 @@ proxmox - dashboard + diff --git a/config.html b/config.html index c0c0d8a..86ab3b6 100644 --- a/config.html +++ b/config.html @@ -5,6 +5,7 @@ proxmox - dashboard + diff --git a/index.html b/index.html index 10e77a4..367e967 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ proxmox - dashboard + diff --git a/login.html b/login.html index c93df16..6278892 100644 --- a/login.html +++ b/login.html @@ -5,6 +5,7 @@ proxmox - dashboard + diff --git a/scripts/instance.js b/scripts/instance.js index 2ba792d..9fbbc5d 100644 --- a/scripts/instance.js +++ b/scripts/instance.js @@ -7,6 +7,7 @@ class InstanceCard extends HTMLElement { super(); this.attachShadow({ mode: "open" }); this.shadowRoot.innerHTML = ` +