Add cool stuff

This commit is contained in:
KenwoodFox
2026-06-17 23:17:48 -04:00
parent 8df14aa846
commit 8266d27038
3 changed files with 12 additions and 30 deletions

View File

@@ -21,7 +21,7 @@
.grafana-embed iframe {
display: block;
width: 100%;
height: 200px;
height: 400px;
border: 0;
background: #000000;
}

View File

@@ -34,32 +34,14 @@
<section class="panel graphs-panel">
<h2 class="panel-title">Graphs</h2>
<div class="grafana-embed">
<iframe
src="https://grafana.kitsunehosting.net/d-solo/ffp84u9sdyccgb/amateur-radio?orgId=2&timezone=browser&refresh=auto&theme=light&panelId=1&__feature.dashboardSceneSolo"
width="450"
height="200"
title="Amateur radio graph 1"
loading="lazy"
></iframe>
</div>
<iframe src="https://grafana.kitsunehosting.net/d-solo/ffp84u9sdyccgb/amateur-radio?orgId=2&timezone=browser&refresh=auto&theme=light&panelId=3&__feature.dashboardSceneSolo" width="450" height="400" frameborder="0"></iframe>
</div>
<div class="grafana-embed">
<iframe
src="https://grafana.kitsunehosting.net/d-solo/ffp84u9sdyccgb/amateur-radio?orgId=2&timezone=browser&refresh=auto&theme=light&panelId=1&__feature.dashboardSceneSolo"
width="450"
height="200"
title="Amateur radio graph 2"
loading="lazy"
></iframe>
</div>
<iframe src="https://grafana.kitsunehosting.net/d-solo/ffp84u9sdyccgb/amateur-radio?orgId=2&timezone=browser&refresh=auto&theme=light&panelId=2&__feature.dashboardSceneSolo" width="450" height="400" frameborder="0"></iframe>
</div>
<div class="grafana-embed">
<iframe
src="https://grafana.kitsunehosting.net/d-solo/ffp84u9sdyccgb/amateur-radio?orgId=2&timezone=browser&refresh=auto&theme=light&panelId=1&__feature.dashboardSceneSolo"
width="450"
height="200"
title="Amateur radio graph 3"
loading="lazy"
></iframe>
</div>
<iframe src="https://grafana.kitsunehosting.net/d-solo/ffp84u9sdyccgb/amateur-radio?orgId=2&timezone=browser&refresh=auto&theme=light&panelId=1&__feature.dashboardSceneSolo" width="450" height="400" frameborder="0"></iframe>
</div>
</section>
</td>
<td width="40%">

View File

@@ -106,13 +106,13 @@
statListeners.textContent = formatListeners(listeners);
}
if (statStatus) {
statStatus.textContent = formatStatus(data.status);
var statusText = formatStatus(data.status);
statStatus.textContent = statusText;
statStatus.classList.remove("stat-value--ok", "stat-value--bad");
var status = String(data.status || "").toLowerCase();
if (status === "online" || status === "ok" || status === "up") {
statStatus.classList.add("stat-value--ok");
} else if (status === "offline" || status === "down" || status === "error") {
if (statusText !== "---" && String(data.status).toLowerCase() !== "online") {
statStatus.classList.add("stat-value--bad");
} else if (statusText !== "---") {
statStatus.classList.add("stat-value--ok");
}
}
}