-
@@ -617,21 +667,36 @@ function switchTab(id: 'overview' | 'files' | 'usage' | 'mcp' | 'storage' | 'rec
{{ cleanupResult }}
-
-
- | 文件 | 类型 | 大小 | 时间 | |
-
-
-
- | {{ f.name }} |
- {{ f.kind || '-' }} |
- {{ fmtSize(f.size) }} |
- {{ fmtTime(f.mtime) }} |
- 删除 |
-
- | {{ fileUser ? '该用户暂无文件' : '请先选择用户' }} |
-
-
+
+
@@ -1248,6 +1313,88 @@ function switchTab(id: 'overview' | 'files' | 'usage' | 'mcp' | 'storage' | 'rec
}
}
+/* ===== 文件管理:缩略图/类型徽标/分页 ===== */
+.adm-fscroll {
+ overflow-x: auto;
+ -webkit-overflow-scrolling: touch;
+
+ .adm-table {
+ min-width: 860px;
+
+ th {
+ white-space: nowrap;
+ }
+ }
+}
+
+.adm-thumbcol,
+.adm-thumbcell {
+ width: 116px;
+ padding-top: 8px !important;
+ padding-bottom: 8px !important;
+}
+
+.adm-thumb {
+ width: 100px;
+ height: 100px;
+ object-fit: cover;
+ border-radius: 8px;
+ border: 1px solid rgba(128, 128, 128, 0.22);
+ background: rgba(128, 128, 128, 0.06);
+ display: block;
+ cursor: zoom-in;
+}
+
+.adm-ftype {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 100px;
+ height: 64px;
+ border-radius: 8px;
+ background: rgba(128, 128, 128, 0.1);
+ font-weight: 700;
+ font-size: 13px;
+ letter-spacing: 0.5px;
+ color: rgba(128, 128, 128, 0.95);
+ text-transform: uppercase;
+}
+
+.adm-ops {
+ white-space: nowrap;
+
+ a + a {
+ margin-left: 10px;
+ }
+}
+
+.adm-dl {
+ color: #18a058;
+ text-decoration: none;
+
+ &:hover {
+ text-decoration: underline;
+ }
+}
+
+.adm-pager {
+ display: inline-flex;
+ align-items: center;
+ gap: 8px;
+}
+
+.adm-pager-b {
+ display: flex;
+ justify-content: center;
+ margin-top: 14px;
+}
+
+.adm-pageinfo {
+ font-size: 12.5px;
+ opacity: 0.75;
+ white-space: nowrap;
+}
+
.adm-userbar {
display: flex;
align-items: center;
diff --git a/src/pages/Home.page.vue b/src/pages/Home.page.vue
index 4a1df5d..5b60b66 100644
--- a/src/pages/Home.page.vue
+++ b/src/pages/Home.page.vue
@@ -11,6 +11,8 @@ import { useRecentTools } from '@/composable/recent-tools';
// 近期新功能亮点(手动维护,新工具上线时加一条)
// ★铁规则:每完成一批新功能/新工具,必须在这里最前面加条目(新→旧),否则首页看不到
const NEW_FEATURES = [
+ { path: '/admin', icon: '📁', name: '后台文件管理', desc: '默认聚合所有用户文件与AI生成图片,每页50条自动分页显示总记录数,图片100×100缩略图、其他文件显示类型,全部支持单独下载' },
+ { path: '/ai-gen', icon: '🗂️', name: '图片历史铁规则', desc: '所有生图功能右侧 50×50 缩略图历史竖排、点击看大图,按登录账号/机器码只看本人的,生成即保存到后台指定目录,全部功能历史最多显示100条' },
{ path: '/face-swap', icon: '🎭', name: 'AI 换脸', desc: '上传源人脸与目标照片,本地 AI 一键换脸(insightface 人脸检测+inswapper),授权功能支持免费试用' },
{ path: '/poster-maker', icon: '🖼️', name: 'AI 海报生成', desc: '42套模板10分类(含校园师生款)、文字图片可旋转、整页自适应不滚动,改文字换图片AI生成配图,一键导出 PNG' },
{ path: '/ai-gen', icon: '🎨', name: 'AI 生图', desc: '10款内置模型一键出图,四组86个现成提示词(通用/自媒体/电商/软件类),中文自动转英文发送' },
diff --git a/src/tools/ai-gen/ai-gen.vue b/src/tools/ai-gen/ai-gen.vue
index 84b8732..2cc7c17 100644
--- a/src/tools/ai-gen/ai-gen.vue
+++ b/src/tools/ai-gen/ai-gen.vue
@@ -1,5 +1,6 @@
+
+