精修 WebUI 第五轮:交互能力与功能性升级

- 新增 Toast 通知系统:右下角浮出(移动端横铺底部),4 类(success/error/warn/info)+ 关闭按钮 + 自动消失 + hover 暂停消失
- 关键操作接入 Toast:保存配置 / 加载配置 / 启动失败 / 设备操作(连接/断开/WiFi 启用)成功失败提示
- 日志关键词分类着色:行级 span,自动识别 ERROR/WARN/SUCCESS/DEBUG/INFO(含中英文与 emoji 标记);DocumentFragment 批量渲染保持性能
- 配置面板加跨标签搜索:workspaceHeader 内嵌搜索框,输入即时按 label/hint/key 过滤所有 row 与 sectionTitle,搜索时自动展开所有 panel;空结果显示空状态;带清空按钮
- 首屏统计骨架屏:未到数据前 statValue 显示 shimmer 占位;pollStats 成功后自动移除
- 移动端复查:inline2 在小屏取消连体边框;workspaceHeader 改纵向布局,搜索框占满宽;secondaryActions 分隔线隐藏;btnTheme 推到右侧
- cache-bust v7 → v8
This commit is contained in:
Codex committed 2026-05-21 09:29:38 +08:00
1 parent aa5065590a
commit 96cba09c49
3 files changed
+559 -27

No files matched your search

+12 -3
View File
@@ -15,7 +15,7 @@
} catch (e) {}
})();
</script>
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v7" />
<link rel="stylesheet" href="styles.css?v=console-20260520-theme-v8" />
</head>
<body>
<div class="app">
@@ -186,8 +186,17 @@
<div class="workspaceEyebrow">Configuration</div>
<h2 class="workspaceTitle">运行策略工作区</h2>
</div>
<div class="workspaceHint">配置项按当前标签自然铺排,短页不再继承长页高度。</div>
<div class="workspaceSearch">
<span class="workspaceSearchIcon" aria-hidden="true">
<svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>
</span>
<input id="configSearch" type="search" placeholder="搜索配置项 (按标签 / 提示文本)" autocomplete="off" />
<button id="configSearchClear" type="button" class="workspaceSearchClear" aria-label="清空搜索" hidden>
<svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 6 6 18"/><path d="m6 6 12 12"/></svg>
</button>
</div>
</div>
<div id="configSearchEmpty" class="hint configSearchEmpty" hidden>未找到匹配的配置项。</div>
<div class="panels">
<div class="panel active" data-panel="device" role="tabpanel">
@@ -1222,6 +1231,6 @@
</main>
</div>
<script src="app.js?v=console-20260520-theme-v7"></script>
<script src="app.js?v=console-20260520-theme-v8"></script>
</body>
</html>