summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/icon/call.pngbin0 -> 2155 bytes
-rw-r--r--static/icon/directions.pngbin0 -> 1673 bytes
-rw-r--r--static/serverping.js21
-rw-r--r--static/style.css6
-rw-r--r--static/themes/Catppuccin Latte.css (renamed from static/themes/Catpuccin Latte.css)0
5 files changed, 21 insertions, 6 deletions
diff --git a/static/icon/call.png b/static/icon/call.png
new file mode 100644
index 0000000..c91bece
--- /dev/null
+++ b/static/icon/call.png
Binary files differ
diff --git a/static/icon/directions.png b/static/icon/directions.png
new file mode 100644
index 0000000..699da40
--- /dev/null
+++ b/static/icon/directions.png
Binary files differ
diff --git a/static/serverping.js b/static/serverping.js
index 5fe285d..a94fe50 100644
--- a/static/serverping.js
+++ b/static/serverping.js
@@ -160,6 +160,16 @@ function number_format(int){
return new Intl.NumberFormat().format(int);
}
+window.fetch = (function(fetch) {
+ return function(fn, t){
+ const begin = Date.now();
+ return fetch.apply(this, arguments).then(function(response) {
+ response.ping = Date.now() - begin;
+ return response;
+ });
+ };
+})(window.fetch);
+
// parse initial server list
fetch_server(window.location.origin);
@@ -187,25 +197,24 @@ async function fetch_server(server){
list.push(server);
var data = null;
- var ping = new Date().getTime();
try{
- data = await fetch(
+ var payload = await fetch(
server + "/ami4get"
);
- if(data.status !== 200){
+ if(payload.status !== 200){
// endpoint is not available
errors++;
div_failedreqs.textContent = number_format(errors);
- console.warn(server + ": Invalid HTTP code " + data.status);
+ console.warn(server + ": Invalid HTTP code " + payload.status);
return;
}
- data = await data.json();
- data.server.ping = new Date().getTime() - ping;
+ data = await payload.json();
+ data.server.ping = payload.ping;
}catch(error){
diff --git a/static/style.css b/static/style.css
index bb76c2e..2ea2d73 100644
--- a/static/style.css
+++ b/static/style.css
@@ -499,6 +499,7 @@ h3,h4,h5,h6{
text-align:center;
display:block;
text-align:left;
+ white-space:nowrap;
}
.favicon-dropdown img{
@@ -1247,6 +1248,11 @@ table tr a:last-child{
padding-left:20px;
}
+.instances .go-back{
+ margin-top:17px;
+ display:inline-block;
+}
+
/*
Responsive image
diff --git a/static/themes/Catpuccin Latte.css b/static/themes/Catppuccin Latte.css
index 7c70549..7c70549 100644
--- a/static/themes/Catpuccin Latte.css
+++ b/static/themes/Catppuccin Latte.css