chore: enable WebUI ESLint

This commit is contained in:
Stellar鱼
2026-05-26 17:12:13 +08:00
committed by Xubin Ren
parent a4a2c55120
commit 1eddc129a1
6 changed files with 1257 additions and 42 deletions
@@ -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);