[HLCC-ICE-000001][ZY-CONTRIB-20260723-001] feat: 以来光者贡献链启用冰朔第五域个人子频道
This commit is contained in:
commit
5615453e4e
660 changed files with 122355 additions and 0 deletions
14
server-tools/jd-app-hub/app.js
Normal file
14
server-tools/jd-app-hub/app.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
fetch("api/status", { cache: "no-store" })
|
||||
.then((response) => response.ok ? response.json() : Promise.reject(new Error("status unavailable")))
|
||||
.then((status) => {
|
||||
const live = document.querySelector("#live-status");
|
||||
const node = document.querySelector("#node-state");
|
||||
live.textContent = "运行正常";
|
||||
live.classList.add("ok");
|
||||
node.textContent = `${status.node_id} · 在线`;
|
||||
node.classList.add("ok");
|
||||
})
|
||||
.catch(() => {
|
||||
document.querySelector("#live-status").textContent = "状态暂不可用";
|
||||
document.querySelector("#node-state").textContent = "节点状态暂不可用";
|
||||
});
|
||||
Loading…
Reference in a new issue