chore: enable WebUI ESLint

This commit is contained in:
Stellar鱼 authored and Xubin Ren committed 2026-05-26 17:12:13 +08:00
1 parent a4a2c55120
commit 1eddc129a1
6 files changed
+1257 -42

No files matched your search

@@ -286,7 +286,6 @@ function RunElapsedStrip({
const showTimer = startedAt != null;
const stripLabel = goalStateStripPreview(goalState, t);
const showGoal = !!stripLabel?.trim();
if (!showTimer && !showGoal) return null;
const objectiveFull = goalState?.objective?.trim() ?? "";
const summaryFull = goalState?.ui_summary?.trim() ?? "";
@@ -349,6 +348,8 @@ function RunElapsedStrip({
};
}, [goalPanelOpen]);
if (!showTimer && !showGoal) return null;
const elapsed =
startedAt != null ? Math.max(0, Math.floor(Date.now() / 1000 - startedAt)) : 0;
const m = Math.floor(elapsed / 60);