From d07c08c609c6aef0170e60fa55f97adad59877c7 Mon Sep 17 00:00:00 2001 From: 237899745 <237899745@users.noreply.git.workyai.cn> Date: Tue, 21 Jul 2026 17:11:18 +0800 Subject: [PATCH] feat: refine web workspace UI --- design-qa.md | 8 + frontend/app.html | 468 +++++++++++----------- frontend/app.js | 23 ++ frontend/workspace.css | 855 +++++++++++++++++++++++++++++++++++++++++ 4 files changed, 1121 insertions(+), 233 deletions(-) create mode 100644 design-qa.md diff --git a/design-qa.md b/design-qa.md new file mode 100644 index 0000000..640a9de --- /dev/null +++ b/design-qa.md @@ -0,0 +1,8 @@ +# Design QA + +final result: passed + +- File workspace: verified at 1280x720 with a full-height drop target and unboxed icon layout. +- Share center: verified resource tabs, filters, compact table, and direct-link empty state. +- Settings center: verified storage, appearance, and security tabs plus the seven-day traffic chart. +- Runtime: no browser console warnings or errors during the final visual pass. diff --git a/frontend/app.html b/frontend/app.html index 562f9ff..fedc89d 100644 --- a/frontend/app.html +++ b/frontend/app.html @@ -2014,6 +2014,10 @@ +
@@ -2507,9 +2511,9 @@
- +
-
+

设置中心 @@ -2517,8 +2521,20 @@

管理存储策略、主题外观与账号安全

+ + -
+

存储管理

@@ -2660,7 +2676,7 @@
-
+

本地存储

@@ -2695,7 +2711,7 @@
-
+

OSS存储

@@ -2796,12 +2812,12 @@
-
+

下载流量额度与统计

-
-
+
+
管理员设置的下载流量限制会在这里实时展示,单位自动按 B/KB/MB/GB/TB 切换
@@ -2841,7 +2857,7 @@ {{ downloadTrafficReport.error }}
-
+
当前限制
@@ -2871,7 +2887,7 @@
-
+
额度使用率 {{ downloadTrafficUsagePercentage }}% @@ -2881,7 +2897,7 @@
-
+
今天使用
@@ -2914,48 +2930,72 @@
-
-
- 按天用量明细(最近 {{ downloadTrafficReport.days }} 天) - 峰值: {{ formatReportDateLabel(downloadTrafficReport.summary.peak_day.date) }} / {{ formatBytes(downloadTrafficReport.summary.peak_day.bytes_used || 0) }} -
-
- 说明:预览/在线播放同样计入下载流量;OSS 明细来自访问日志,通常有 5-15 分钟延迟。 -
+
+
+
+
+ 近 7 天流量趋势 + 每天的下载流量变化 +
+ + 峰值 {{ formatBytes(downloadTrafficReport.summary.peak_day.bytes_used || 0) }} + +
+
+ 报表加载中... +
+
暂无下载流量记录
+
+
+ {{ formatBytes(row.bytes_used || 0) }} +
+ +
+ {{ formatReportDateLabel(row.date) }} +
+
+
-
- 报表加载中... -
-
- 暂无下载流量记录 -
-
- - - - - - - - - - - - - - - -
日期下载流量下载次数
{{ formatReportDateLabel(row.date) }}{{ formatBytes(row.bytes_used || 0) }}{{ row.download_count || 0 }}
-
+
+
+
+ 按天用量明细 + 最近 {{ downloadTrafficReport.days }} 天 +
+
+
暂无下载流量记录
+
+ + + + + + + + + + + + + + + +
日期下载流量次数
{{ formatReportDateLabel(row.date) }}{{ formatBytes(row.bytes_used || 0) }}{{ row.download_count || 0 }}
+
+
+
+
+ + 预览和在线播放同样计入下载流量;OSS 明细来自访问日志,通常有 5-15 分钟延迟。
-

+

在线设备

-
+
可查看当前账号已登录设备,并支持远程强制下线 @@ -3013,8 +3053,8 @@
-

界面设置

-
+

界面设置

+
主题模式 选择你喜欢的界面风格 @@ -3049,9 +3089,9 @@
-

账号设置

+

账号设置

-