From b166bdaa06fa45fc9991fe750c677f31844843fd Mon Sep 17 00:00:00 2001
From: mrvnklm <24477241+mrvnklm@users.noreply.github.com>
Date: Wed, 17 Nov 2021 11:14:08 +0100
Subject: [PATCH] improved instance discovery
fixes #56
---
web/assets/style.css | 21 ++++--
web/index.html | 174 ++++++++++++++++++++++---------------------
2 files changed, 107 insertions(+), 88 deletions(-)
diff --git a/web/assets/style.css b/web/assets/style.css
index c0675c7..aaf208a 100644
--- a/web/assets/style.css
+++ b/web/assets/style.css
@@ -1,4 +1,5 @@
-html,body {
+html,
+body {
font-family: Roboto, sans-serif;
-moz-osx-font-smoothing: grayscale;
-webkit-font-smoothing: antialiased;
@@ -43,8 +44,16 @@ html,body {
text-overflow: ellipsis;
color: rgb(var(--pure-material-onprimary-rgb, 255, 255, 255));
background-color: rgb(var(--pure-material-primary-rgb, 3, 169, 244));
- box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
- font-family: var(--pure-material-font, "Roboto", "Segoe UI", BlinkMacSystemFont, system-ui, -apple-system);
+ box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14),
+ 0 1px 5px 0 rgba(0, 0, 0, 0.12);
+ font-family: var(
+ --pure-material-font,
+ "Roboto",
+ "Segoe UI",
+ BlinkMacSystemFont,
+ system-ui,
+ -apple-system
+ );
font-size: 16px;
font-weight: 600;
line-height: 36px;
@@ -91,7 +100,8 @@ html,body {
/* Hover, Focus */
.pure-material-button-contained:hover,
.pure-material-button-contained:focus {
- box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12);
+ box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.14),
+ 0 1px 10px 0 rgba(0, 0, 0, 0.12);
}
.pure-material-button-contained:hover::before {
@@ -108,7 +118,8 @@ html,body {
/* Active */
.pure-material-button-contained:active {
- box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2), 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
+ box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),
+ 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12);
}
.pure-material-button-contained:active::after {
diff --git a/web/index.html b/web/index.html
index d85535a..823e304 100644
--- a/web/index.html
+++ b/web/index.html
@@ -1,102 +1,111 @@
-
- Home Assistant
-
-
-
-
-
+
- fetch(url + "/auth/providers")
- .then((response) => {
- if (response.ok) {
- document.getElementById("url").value = url;
- document.getElementById("url").disabled = true;
- document.getElementById("check-wrapper").style.display = "block";
- document.getElementById("url-wrapper").style.display = "none";
- showCheckmark = true;
- ipcRenderer.send("ha-instance", url);
- }
- })
- .catch((err) => {});
- }
-
-
-
-
-
+
+
-
-
-
-
Add Instance via URL
+
+
-
-
-
+
+