add pause resume controls to ui

This commit is contained in:
Your Name committed 2026-06-23 02:38:08 +08:00
1 parent 3c7cb45bec
commit d81e00ddbc
13 files changed
+367 -12

No files matched your search

+2
View File
@@ -42,6 +42,8 @@ const UI_COPY = Object.freeze({
starting: "启动中",
startingMeta: "正在向后端发送启动请求",
failed: "启动失败",
paused: "已暂停",
pausedMeta: "运行进程已暂停,点击继续可恢复",
stopping: "停止中",
stoppingMeta: "已请求后端停止运行",
meta: (pid, uptimeSeconds) => `PID ${pid ?? "-"} / 运行时长 ${fmtDuration(uptimeSeconds)}`,