chore: import gateway, exchange secrets, env example

This commit is contained in:
AdrianoDev
2026-04-27 17:33:32 +02:00
parent 8e8f8d642b
commit 9676f22a8e
5 changed files with 264 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
const rows = document.querySelectorAll("tr[data-path]");
async function poll() {
for (const row of rows) {
const dot = row.querySelector(".status");
try {
const r = await fetch(`${row.dataset.path}/health`, {
method: "GET",
cache: "no-store",
});
dot.classList.toggle("ok", r.ok);
dot.classList.toggle("err", !r.ok);
dot.setAttribute("aria-label", r.ok ? "ok" : "error");
} catch {
dot.classList.remove("ok");
dot.classList.add("err");
dot.setAttribute("aria-label", "unreachable");
}
}
}
poll();
setInterval(poll, 5000);