tt-help-cli-ycl 1.4.57 → 1.4.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/watch/public/app.js +18 -29
package/package.json
CHANGED
package/src/watch/public/app.js
CHANGED
|
@@ -194,7 +194,7 @@ function renderStats() {
|
|
|
194
194
|
flashEl("statUserUpdateTasks", d.userUpdateTasks || 0, { full: true });
|
|
195
195
|
flashEl("statRawJobs", d.rawJobs || 0);
|
|
196
196
|
flashEl("statCommentTask", d.commentTaskCount || 0, { full: true });
|
|
197
|
-
flashEl("statTags", d.tagHighScore || 0);
|
|
197
|
+
flashEl("statTags", d.tagHighScore || 0, { full: true });
|
|
198
198
|
// 同步子页面 stats
|
|
199
199
|
const pendingTotal = document.getElementById("pendingStatTotal");
|
|
200
200
|
if (pendingTotal) pendingTotal.textContent = formatStatNum(d.totalUsers);
|
|
@@ -1361,6 +1361,10 @@ function navigateToSettings() {
|
|
|
1361
1361
|
// ========== LLM 配置页面 ==========
|
|
1362
1362
|
|
|
1363
1363
|
function hideAllPages() {
|
|
1364
|
+
if (_wdRefreshTimer) {
|
|
1365
|
+
clearInterval(_wdRefreshTimer);
|
|
1366
|
+
_wdRefreshTimer = null;
|
|
1367
|
+
}
|
|
1364
1368
|
document.getElementById("mainPage").classList.add("hidden");
|
|
1365
1369
|
document.getElementById("pendingPage").classList.remove("active");
|
|
1366
1370
|
document.getElementById("userUpdatePage").classList.remove("active");
|
|
@@ -3399,11 +3403,15 @@ function navigateToWatchdog() {
|
|
|
3399
3403
|
}
|
|
3400
3404
|
|
|
3401
3405
|
let _wdData = null;
|
|
3406
|
+
let _wdRefreshTimer = null;
|
|
3402
3407
|
|
|
3403
3408
|
function showWatchdogPage() {
|
|
3404
3409
|
hideAllPages();
|
|
3405
3410
|
document.getElementById("watchdogPage").classList.add("active");
|
|
3406
3411
|
fetchWatchdogData();
|
|
3412
|
+
// 每 10s 自动刷新
|
|
3413
|
+
if (_wdRefreshTimer) clearInterval(_wdRefreshTimer);
|
|
3414
|
+
_wdRefreshTimer = setInterval(fetchWatchdogData, 10000);
|
|
3407
3415
|
}
|
|
3408
3416
|
|
|
3409
3417
|
async function fetchWatchdogData() {
|
|
@@ -3487,16 +3495,7 @@ function renderWatchdogDashboard(clients, clientCommands) {
|
|
|
3487
3495
|
el.innerHTML = styled(
|
|
3488
3496
|
"div",
|
|
3489
3497
|
"color:#666;padding:30px;text-align:center",
|
|
3490
|
-
"
|
|
3491
|
-
tag(
|
|
3492
|
-
"button",
|
|
3493
|
-
{
|
|
3494
|
-
onclick: "fetchWatchdogData()",
|
|
3495
|
-
style:
|
|
3496
|
-
"margin-top:12px;padding:6px 14px;background:#60a5fa;color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:12px",
|
|
3497
|
-
},
|
|
3498
|
-
"🔄 刷新",
|
|
3499
|
-
),
|
|
3498
|
+
"暂无客户端连接,等待看门狗上线...(每10秒自动刷新)",
|
|
3500
3499
|
);
|
|
3501
3500
|
return;
|
|
3502
3501
|
}
|
|
@@ -3507,24 +3506,14 @@ function renderWatchdogDashboard(clients, clientCommands) {
|
|
|
3507
3506
|
})
|
|
3508
3507
|
.join("");
|
|
3509
3508
|
|
|
3510
|
-
el.innerHTML =
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
"🔄 刷新",
|
|
3519
|
-
) +
|
|
3520
|
-
styled(
|
|
3521
|
-
"div",
|
|
3522
|
-
{
|
|
3523
|
-
style:
|
|
3524
|
-
"display:grid;grid-template-columns:repeat(auto-fill,minmax(440px,1fr));gap:16px",
|
|
3525
|
-
},
|
|
3526
|
-
cards,
|
|
3527
|
-
);
|
|
3509
|
+
el.innerHTML = styled(
|
|
3510
|
+
"div",
|
|
3511
|
+
{
|
|
3512
|
+
style:
|
|
3513
|
+
"display:grid;grid-template-columns:repeat(auto-fill,minmax(440px,1fr));gap:16px",
|
|
3514
|
+
},
|
|
3515
|
+
cards,
|
|
3516
|
+
);
|
|
3528
3517
|
}
|
|
3529
3518
|
|
|
3530
3519
|
function renderClientCard(c, clientCommands) {
|