From 16582494af22fd366682f6352100afffa0609f1e Mon Sep 17 00:00:00 2001 From: Mihail Slobodyanuk Date: Sat, 10 Dec 2022 14:36:42 +0200 Subject: [PATCH 1/6] Fixed tabs, formatted index.html and fixed markup issues --- contrib/ui/mesh-ui/ui/index.html | 1323 ++++++++++++++++++------------ 1 file changed, 797 insertions(+), 526 deletions(-) diff --git a/contrib/ui/mesh-ui/ui/index.html b/contrib/ui/mesh-ui/ui/index.html index 4d0265fb..760e08ef 100755 --- a/contrib/ui/mesh-ui/ui/index.html +++ b/contrib/ui/mesh-ui/ui/index.html @@ -1,34 +1,35 @@ - - - - + - RiV-mesh - - + + + + + RiV-mesh + + -
-
- -
- - - +
+ - -
-
- -
- - - + +
+ +
+ + + + From 8da27aad4fcd3c7aca3764ebe9533a2370995125 Mon Sep 17 00:00:00 2001 From: Mihail Slobodyanuk Date: Sat, 10 Dec 2022 15:12:38 +0200 Subject: [PATCH 2/6] Remove interface name from multicast peer string showing on edit form RIVM-14 --- contrib/ui/mesh-ui/ui/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/contrib/ui/mesh-ui/ui/index.html b/contrib/ui/mesh-ui/ui/index.html index 760e08ef..f1a4c3a8 100755 --- a/contrib/ui/mesh-ui/ui/index.html +++ b/contrib/ui/mesh-ui/ui/index.html @@ -13,6 +13,10 @@ function setFieldValue(id, value) { //console.log(`setFieldValue(${id}, ${value})`); + if(id === 'peers') { + const reg =/%[^\]]*/gm; + value = value.replace(reg,""); + } var field = document.getElementById(id); field.innerHTML = value; } @@ -973,4 +977,4 @@
- + \ No newline at end of file From d6eceef4e3ecc09b774f2ff73e63439775f620d1 Mon Sep 17 00:00:00 2001 From: Mihail Slobodyanuk Date: Sun, 11 Dec 2022 12:37:47 +0200 Subject: [PATCH 3/6] Added footer with service and UI version RIVM-15 --- contrib/ui/mesh-ui/ui/index.html | 17 +++++++++++++---- contrib/ui/mesh-ui/webview.go | 3 +++ 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/contrib/ui/mesh-ui/ui/index.html b/contrib/ui/mesh-ui/ui/index.html index f1a4c3a8..08a04873 100755 --- a/contrib/ui/mesh-ui/ui/index.html +++ b/contrib/ui/mesh-ui/ui/index.html @@ -273,7 +273,6 @@ .column { max-height: 350px; - display: flex; flex-direction: column; justify-content: space-between; @@ -321,11 +320,15 @@ img { display: block; } + + html, body { + height: 100vh; + } -
+
-
+ -