From 3e2a497cd4fee6a0d2d67d3c0fb93b2b74e3b46f Mon Sep 17 00:00:00 2001 From: yuyx <237899745@qq.com> Date: Thu, 27 Nov 2025 22:16:28 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E5=B0=86app.html=E5=85=A8?= =?UTF-8?q?=E9=9D=A2=E6=94=B9=E4=B8=BA=E6=9A=97=E8=89=B2=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加CSS变量系统(背景色、边框色、文字颜色、强调色) - 页面背景改为深色渐变效果 - 卡片、弹窗使用毛玻璃效果(backdrop-filter blur) - 导航栏改为暗色玻璃样式 - 表单、按钮、表格全部适配暗色主题 - 添加自定义滚动条样式 - 统一警告/成功/错误提示框为半透明风格 - 全局替换浅色背景和文字颜色 与index.html保持一致的暗色毛玻璃设计风格 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- frontend/app.html | 687 +++++++++++++++++++++++++++++++--------------- 1 file changed, 459 insertions(+), 228 deletions(-) diff --git a/frontend/app.html b/frontend/app.html index 0cef047..6399905 100644 --- a/frontend/app.html +++ b/frontend/app.html @@ -107,16 +107,56 @@ @@ -686,11 +917,11 @@
-
+
验证码
- 点击图片刷新验证码 + 点击图片刷新验证码
邮箱未验证?点击重发激活邮件 @@ -761,23 +992,23 @@
-
+
- + 当前存储: {{ storageTypeText }}
-
+
配额使用情况 {{ localUsedFormatted }} / {{ localQuotaFormatted }} ({{ quotaPercentage }}%)
-
+
@@ -785,11 +1016,11 @@
-
+
- / + /
-
-
导入配置文件
-
点击选择或拖拽 .inf 文件
+
导入配置文件
+
点击选择或拖拽 .inf 文件
@@ -1180,7 +1411,7 @@
- + 配置后可通过 HTTP 直接下载,例如: 基础URL/文件路径。
@@ -1207,7 +1438,7 @@
- 当前模式 + 当前模式 正在切换到 {{ storageSwitchTarget === 'sftp' ? 'SFTP 存储' : '本地存储' }}...
-
本地存储适合快速读写,SFTP 适合独立服务器空间
+
本地存储适合快速读写,SFTP 适合独立服务器空间
-
+
-
+
-
+
-
+
本地存储
- 当前 + 当前
-
更快的读写,适合日常上传下载。
+
更快的读写,适合日常上传下载。
-
配额使用
-
{{ localUsedFormatted }} / {{ localQuotaFormatted }}
-
+
配额使用
+
{{ localUsedFormatted }} / {{ localQuotaFormatted }}
+
+
-
+
SFTP 存储
当前
-
使用你自己的服务器空间,独立存储更灵活。
-
+
使用你自己的服务器空间,独立存储更灵活。
+
已配置: {{ user.ftp_host }}:{{ user.ftp_port }}
-
+
先填写 SFTP 连接信息再切换
-
+
- 空间统计 + 空间统计
-
+
{{ sftpUsageError }}
{{ sftpUsage.totalSizeFormatted }} - ({{ sftpUsage.fileCount }} 文件) + ({{ sftpUsage.fileCount }} 文件)
-
点击刷新查看
+
点击刷新查看
-
+
本地存储速度快但受配额限制;SFTP 需先配置连接,切换过程中可继续查看文件列表。
@@ -1342,19 +1573,19 @@ 本地存储 -
+
- 存储方式: + 存储方式: 本地存储 - + 仅本地
- 配额使用: + 配额使用: {{ localUsedFormatted }} / {{ localQuotaFormatted }} ({{ quotaPercentage }}%) -
+
+
说明: 管理员已将您的存储权限设置为"仅本地存储",您的文件存储在服务器本地,速度快但有配额限制。如需使用SFTP存储,请联系管理员修改权限设置。
@@ -1376,14 +1607,14 @@

SFTP存储

-
+
-
+
仅 SFTP 模式
-
+
{{ user.has_ftp_config ? '已配置服务器,可正常使用 SFTP 存储。' : '还未配置 SFTP,请先填写连接信息。' }}
@@ -1393,19 +1624,19 @@
-
-
+
+
服务器信息
-
+
{{ user.ftp_host }}:{{ user.ftp_port }}
-
+
-
+
空间使用统计
-
+
{{ sftpUsageError }}
@@ -1436,24 +1667,24 @@
{{ sftpUsage.totalSizeFormatted }}
总使用空间
-
-
{{ sftpUsage.fileCount }}
-
文件数
+
+
{{ sftpUsage.fileCount }}
+
文件数
-
-
{{ sftpUsage.dirCount }}
-
文件夹数
+
+
{{ sftpUsage.dirCount }}
+
文件夹数
-
- +
+ 点击"刷新"按钮统计 SFTP 空间使用情况
-
+
数据存储在你的 SFTP 服务器上,如需切换回本地请联系管理员调整权限。
@@ -1519,7 +1750,7 @@
{{ share.share_path }}
-
+
访问: {{ share.view_count }} | 下载: {{ share.download_count }}
@@ -1529,7 +1760,7 @@ -
@@ -1557,11 +1788,11 @@ {{ share.view_count }} {{ share.download_count }} - 永久有效 + 永久有效 {{ formatExpireTime(share.expires_at) }} - @@ -1691,7 +1922,7 @@
-
+
安全可分配配额
@@ -1709,13 +1940,13 @@
+ style="margin-top: 20px; padding: 15px; background: rgba(245, 158, 11, 0.15); border-left: 4px solid #f59e0b; border-radius: 6px; color: #fbbf24;"> 警告: 磁盘使用率已超过90%,建议及时清理空间或扩容!
+ style="margin-top: 20px; padding: 15px; background: rgba(239, 68, 68, 0.15); border-left: 4px solid #ef4444; border-radius: 6px; color: #fca5a5;"> 配额超分配: 用户配额总和 ({{ formatBytes(serverStorageStats.totalUserQuotas) }}) 已超过磁盘总容量 ({{ formatBytes(serverStorageStats.totalDisk) }})!
@@ -1737,7 +1968,7 @@ - 修改后需要重启服务才能生效 + 修改后需要重启服务才能生效

SMTP 邮件配置(用于注册激活和找回密码)

@@ -1810,13 +2041,13 @@ {{ getOverallStatusText(healthCheck.overallStatus) }}
- 通过: {{ healthCheck.summary.pass }} + 通过: {{ healthCheck.summary.pass }} 警告: {{ healthCheck.summary.warning }} - 失败: {{ healthCheck.summary.fail }} + 失败: {{ healthCheck.summary.fail }} 信息: {{ healthCheck.summary.info }}
-
+
上次检测: {{ new Date(healthCheck.lastCheck).toLocaleString() }}
@@ -1825,10 +2056,10 @@
-

安全配置

+

安全配置

+ style="display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px;">
{{ check.name }}
-
{{ check.message }}
+
{{ check.message }}
{{ check.suggestion }}
@@ -1850,10 +2081,10 @@
-

服务状态

+

服务状态

+ style="display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px;">
{{ check.name }}
-
{{ check.message }}
+
{{ check.message }}
{{ check.suggestion }}
@@ -1875,10 +2106,10 @@
-

运行配置

+

运行配置

+ style="display: flex; align-items: flex-start; gap: 12px; padding: 12px; background: rgba(255,255,255,0.03); border-radius: 8px;">
{{ check.name }}
-
{{ check.message }}
+
{{ check.message }}
{{ check.suggestion }}
@@ -1901,7 +2132,7 @@
-
+

点击"刷新检测"按钮开始系统健康检测

@@ -1925,9 +2156,9 @@
-
+
- +
- +
- +
@@ -1958,7 +2189,7 @@
-
+
共 {{ systemLogs.total }} 条日志,第 {{ systemLogs.page }}/{{ systemLogs.totalPages }} 页
@@ -1967,7 +2198,7 @@
-
+
{{ formatLogTime(log.created_at) }}
@@ -1977,15 +2208,15 @@
-
+
{{ getLogCategoryText(log.category) }}
{{ log.action }}
-
{{ log.message }}
-
+
{{ log.message }}
+
{{ log.username }} {{ log.ip_address }}
@@ -1994,13 +2225,13 @@
-
+

暂无日志记录

-
+

加载中...

@@ -2010,7 +2241,7 @@ - + {{ systemLogs.page }} / {{ systemLogs.totalPages }}