From 8408d0119738dfefd40a9fb8e897d4592aab770c Mon Sep 17 00:00:00 2001 From: O96u Date: Tue, 1 Sep 2026 21:31:02 +0800 Subject: [PATCH] =?UTF-8?q?release:=20v1.2.6=20=E2=80=94=20=E6=96=B0=20UI?= =?UTF-8?q?=20=E4=BD=93=E9=AA=8C=E4=BC=98=E5=8C=96=E4=B8=8E=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E6=A0=87=E8=AF=86=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 14 ++ README.en.md | 12 +- README.md | 10 +- app/components/ImagePreviewModal.vue | 80 +++--- app/components/PaginationBar.vue | 230 +++++++++--------- app/components/gallery/GalleryFilterBar.vue | 13 + app/components/settings/SettingsLogsPanel.vue | 82 +++---- .../SettingsUserPreferencesFields.vue | 182 +++++++------- app/components/storage/StorageBackendCard.vue | 10 +- app/components/storage/StorageBackendForm.vue | 2 + app/pages/gallery.vue | 40 ++- app/pages/storage.vue | 1 + docs-site/en/guide/api.md | 2 +- docs-site/en/guide/changelog.md | 14 ++ docs-site/en/guide/configuration.md | 2 +- docs-site/en/guide/getting-started.md | 4 +- docs-site/en/guide/index.md | 14 +- docs-site/en/guide/storage.md | 6 +- docs-site/en/guide/users-and-permissions.md | 8 +- docs-site/guide/api.md | 2 +- docs-site/guide/changelog.md | 14 ++ docs-site/guide/configuration.md | 4 +- docs-site/guide/getting-started.md | 4 +- docs-site/guide/index.md | 18 +- docs-site/guide/storage.md | 6 +- docs-site/guide/users-and-permissions.md | 8 +- docs/screenshots/api.png | Bin 96323 -> 127633 bytes docs/screenshots/gallery.png | Bin 0 -> 154762 bytes docs/screenshots/logs.png | Bin 55830 -> 103347 bytes docs/screenshots/settings-en.png | Bin 108191 -> 63963 bytes docs/screenshots/settings.png | Bin 95217 -> 63963 bytes docs/screenshots/stats.png | Bin 119017 -> 154762 bytes docs/screenshots/storage.png | Bin 28663 -> 71394 bytes package-lock.json | 4 +- package.json | 2 +- server/api/admin/storage/index.post.ts | 2 + server/utils/storage-backends.test.ts | 40 +++ server/utils/storage-backends.ts | 30 ++- 38 files changed, 491 insertions(+), 369 deletions(-) create mode 100644 docs/screenshots/gallery.png create mode 100644 server/utils/storage-backends.test.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 5f92ce2..57866db 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,20 @@ ## [Unreleased] +## [1.2.6] - 2026-09-01 + +### 新增 + +- 设置、API、图库、存储页 UI 重构(侧栏导航、统计卡片、在线调试等) +- 图库筛选增加存储后端下拉 +- 新建对象存储后端按类型生成存储标识:`r2-*`、`cos-*`、`oss-*`、`s3-*` + +### 改进 + +- 操作日志表格:操作/来源标签同行展示,路径列省略号截断、无横向滚动条 +- 存储后端卡片:存储标识与类型同一行左对齐排列 +- README 与文档站截图、导航说明同步新界面 + ## [1.2.5] - 2026-08-31 ### 新增 diff --git a/README.en.md b/README.en.md index 3ce6b9d..486d553 100644 --- a/README.en.md +++ b/README.en.md @@ -31,20 +31,20 @@ **main** has no public demo. **cloudflare** branch live demo: [pic.roven.cc](https://pic.roven.cc) -| Home | Storage | +| API | Gallery | | :--: | :-----: | -| ![Home](docs/screenshots/upload.png) | ![Storage](docs/screenshots/storage.png) | +| ![API](docs/screenshots/api.png) | ![Gallery](docs/screenshots/gallery.png) | -| Stats | Settings | -| :---: | :-------: | -| ![Stats](docs/screenshots/stats.png) | ![Settings](docs/screenshots/settings-en.png) | +| Storage | Settings | +| :-----: | :-------: | +| ![Storage](docs/screenshots/storage.png) | ![Settings](docs/screenshots/settings-en.png) | ## Features - **Drag, click, or Ctrl+V paste** — server-side WebP, Referer hotlink protection - **Multi-user** — login with slider captcha, optional registration; users see only their images - **Multi-backend storage** — local disk + S3-compatible (R2 / COS / OSS / AWS); hybrid `proxy` / `public` URLs -- **Gallery & stats** — browse, search, batch delete; upload trends and source breakdown +- **Gallery** — browse, search, filter by storage/source, grid/list views, batch delete; stats overview and source breakdown - **API & Twikoo** — global / per-user tokens; `POST /api/index.php` compatible - **Zero-config Docker** — first-run web wizard, no secrets upfront diff --git a/README.md b/README.md index bb498d4..9691286 100644 --- a/README.md +++ b/README.md @@ -31,20 +31,20 @@ **main** 分支暂无公网演示;**cloudflare** 分支在线体验:[pic.roven.cc](https://pic.roven.cc) -| 首页 | 存储 | +| API | 图库 | | :--: | :--: | -| ![首页](docs/screenshots/upload.png) | ![存储](docs/screenshots/storage.png) | +| ![API](docs/screenshots/api.png) | ![图库](docs/screenshots/gallery.png) | -| 统计 | 设置 | +| 存储 | 设置 | | :--: | :--: | -| ![统计](docs/screenshots/stats.png) | ![设置](docs/screenshots/settings.png) | +| ![存储](docs/screenshots/storage.png) | ![设置](docs/screenshots/settings.png) | ## 特性 - **拖拽 / 点击 / Ctrl+V 粘贴**上传;服务端 WebP 压缩、Referer 防盗链 - **多用户**:账号密码登录(滑动验证)、可选开放注册;普通用户仅见自己的图片 - **多后端存储**:本地磁盘 + S3 兼容(R2 / COS / OSS / AWS);混合直链 `proxy` / `public` -- **图库与统计**:浏览、搜索、批量删除;上传趋势与来源分布 +- **图库**:浏览、搜索、按存储/来源筛选、网格/列表切换、批量删除;统计概览与来源分布 - **API 与 Twikoo**:全局 / 个人 Token;`POST /api/index.php` 兼容 - **Docker 零配置**:首次访问 Web 引导创建管理员 diff --git a/app/components/ImagePreviewModal.vue b/app/components/ImagePreviewModal.vue index 1965419..9e01e44 100644 --- a/app/components/ImagePreviewModal.vue +++ b/app/components/ImagePreviewModal.vue @@ -218,17 +218,17 @@ function onImageLoad(event: Event) { #body >
-
- -
+
+ +
-
-
+
+
{{ t('image.previewOriginalName') }} @@ -330,40 +330,40 @@ function onImageLoad(event: Event) { />
-
+
-
-

- {{ t('image.previewLinks') }} -

-
- -
-
- - -
+
+

+ {{ t('image.previewLinks') }} +

+
+ +
+
+ +
+