Commit Graph

124 Commits

Author SHA1 Message Date
MarSeventh
013eb7cfee 尺寸提取功能优化 2026-01-30 17:15:22 +08:00
MarSeventh
a03766a9f9 update v2.5.7 2026-01-30 16:14:19 +08:00
MarSeventh
88c617395f update v2.5.6 2026-01-29 19:59:29 +08:00
Zhang Chao
cdfd983f42 fix(s3/storage): 恢复因合并异常丢失的S3 CDN代码,导致功能失效的问题 2026-01-27 04:20:24 +00:00
MarSeventh
5d34052a1f update v2.5.5 2026-01-25 15:29:35 +08:00
MarSeventh
1625d32ff3 update v2.5.4 2026-01-23 22:40:21 +08:00
MarSeventh
9d4d9fb7bf update v2.5.4 2026-01-23 21:58:25 +08:00
MarSeventh
7d2b8a5f60 update v2.5.4 2026-01-23 20:50:26 +08:00
MarSeventh
1233e3cbe7 chore: fix nasty build artifact conflicts 2026-01-23 20:44:04 +08:00
MarSeventh
4fe586412a Feat:优化备份恢复使用体验 2026-01-23 20:27:36 +08:00
zcwwww1996
84be024140 Feat: 为 S3 存储渠道添加 CDN 加速支持
新增功能:
- 支持为 S3 渠道配置自定义 CDN 域名
- 上传时自动生成完整的 CDN 文件路径并存储到 metadata
- 读取文件时优先使用 CDN,失败时自动回退到 S3 API
- 管理面板支持配置和查看 CDN 域名
- 文件详情页面新增 S3 CDN URL 标签页
2026-01-23 19:50:11 +08:00
MarSeventh
0a22cf9844 Feat:上传支持指定渠道名;webdav支持设置上传渠道 2026-01-10 14:31:14 +08:00
MarSeventh
1ca7a284a5 Fix:HuggingFace渠道文件命名和读取问题 2026-01-08 19:51:34 +08:00
MarSeventh
18ebe4876c Feat:支持自定义上传页面logo跳转链接;管理端支持跳转到指定页码;一些使用细节优化 2026-01-08 12:03:57 +08:00
MarSeventh
67c4355c13 Feat:支持上传前转换为webp格式 2026-01-07 22:40:53 +08:00
MarSeventh
6583fcc926 Feat:telegram渠道支持设置代理;优化上传设置页面使用体验 2026-01-07 18:37:03 +08:00
MarSeventh
bdc94f80a2 Feat:telegram渠道支持设置代理;优化上传设置页面使用体验 2026-01-07 17:44:33 +08:00
axibayuit
0426591d4d feat: 公开浏览功能增强 & Discord API 429重试 2026-01-03 00:35:27 +08:00
MarSeventh
51f4ab6659 Feat:优化访客图库展示效果,支持根目录展示;Bug:修复Telegram渠道无法关闭服务端压缩重试的问题 2026-01-01 15:57:49 +08:00
MarSeventh
71100c8181 Feat:优化上传错误处理;优化上传时清除文件的逻辑;优化Telegram渠道上传体验 2026-01-01 01:10:19 +08:00
axibayuit
579d835255 fix: remove duplicate url variable declaration in commitUpload.js 2025-12-31 21:46:40 +08:00
axibayuit
2292a4eda6 feat: 添加公开浏览功能后端API
- 新增 /api/public/list 公开列表API
- others.js 添加 publicBrowse 配置支持
- 支持配置允许公开访问的目录
- 后端强制权限校验,隐藏敏感元数据
2025-12-31 18:12:29 +08:00
MarSeventh
77e04fa2a7 Feat:新增discord/huggingface渠道支持;优化telegram大文件上传体验 2025-12-31 09:23:38 +08:00
axibayuit
d0947e8770 fix: improve HuggingFace large file upload
- Fix commitUpload missing url parameter for endUpload
- Implement incremental SHA256 hash algorithm for large files
- Use 4MB chunks for SHA256 calculation to reduce memory pressure
- Support files of any size without memory overflow
2025-12-30 21:00:18 +08:00
axibayuit
9898364227 fix: use fetchUploadConfig instead of getUploadConfig 2025-12-30 20:45:58 +08:00
axibayuit
e973c65e9c feat(huggingface): implement direct upload for large files (>20MB)
- Add frontend direct upload to HuggingFace S3, bypassing CF Workers limits
- Add /api/huggingface/getUploadUrl endpoint to get LFS upload URLs
- Add /api/huggingface/commitUpload endpoint to commit file references
- Support multipart upload for very large files
- SHA256 computed in frontend to avoid CF Workers CPU timeout
- Small files (<20MB) still use proxy upload through CF Workers
2025-12-30 20:42:38 +08:00
axibayuit
7ef6fd48ac feat: add HuggingFace storage channel support
- Add HuggingFace API wrapper class (huggingfaceAPI.js)
- Support upload, download, delete operations via HuggingFace Hub API
- Support public repos (unlimited storage) and private repos (100GB limit)
- Private repos: server proxies requests with Authorization header
- Auto-create repo if not exists (with write token)
- Add HuggingFace to auto-retry channel list
- Environment variables: HF_TOKEN, HF_REPO, HF_PRIVATE
- Support load balancing for multiple HuggingFace channels
2025-12-30 17:46:11 +08:00
axibayuit
5393e04631 feat(discord): add delete message support for Discord channel 2025-12-30 15:57:17 +08:00
axibayuit
1eec7f66b4 fix: Discord 渠道配置添加 isNitro 字段持久化支持 2025-12-30 15:44:30 +08:00
axibayuit
24d88fd9a1 feat: 添加 Discord 渠道支持
- 新增 Discord API 封装类 (discordAPI.js)
- 支持 Discord 文件上传(10MB 限制,超过自动切换其他渠道)
- 支持 Discord 文件读取和代理 URL(国内访问)
- 前端添加 Discord 渠道配置 UI(负载均衡、表单验证)
- 支持环境变量配置:DISCORD_BOT_TOKEN, DISCORD_CHANNEL_ID, DISCORD_PROXY_URL
- 修复 sysConfig.js 中 Discord 渠道过滤
2025-12-30 15:08:19 +08:00
axibayuit
155aacab63 perf: 优化容量统计,从索引元数据读取,减少 KV 写入操作 2025-12-29 23:20:04 +08:00
axibayuit
368178d094 fix: 修复容量统计重复计算问题,使用 readIndex 统一获取文件列表并去重 2025-12-29 21:36:38 +08:00
axibayuit
f5f65b29fd fix: preserve quota config for env-based channels 2025-12-29 20:37:34 +08:00
axibayuit
3d77585ec5 feat: add storage quota limit for S3/R2 channels
- Add quota counter tracking (usedMB, fileCount) per channel
- Filter channels by quota threshold in fetchUploadConfig()
- Update quota on upload (endUpload) and delete
- Add /api/manage/quota API for stats and recalculation
- Fix null check in delete when file record not found
- Fix R2 channel name from hardcoded to actual channel.name
2025-12-29 19:55:20 +08:00
MarSeventh
17645df56e Feat:取消粘贴上传文件类型限制;美化上传界面展示效果 2025-12-27 23:59:09 +08:00
MarSeventh
4ddfd58bc5 Feat:后端接口跨域请求处理逻辑优化 2025-12-25 19:51:36 +08:00
MarSeventh
dee7d9555c Feat:移除官方图像审查渠道 2025-12-18 19:08:55 +08:00
MarSeventh
a66b431fd4 Bug:修复移动文件时的路径错误 2025-11-27 00:42:11 +08:00
MarSeventh
23fab7cbe3 Feat:优化标签管理使用体验 2025-11-19 08:54:21 +08:00
MarSeventh
0e4a9b5edf Feat:支持标签管理;支持深色模式跟随系统 2025-11-18 12:45:23 +08:00
MarSeventh
8f89140b7e Feat:支持标签管理;支持深色模式跟随系统 2025-11-18 12:26:54 +08:00
Se@n
c7c7b5054f Fix: Tag deletion timeout issue
- Change cache purging from synchronous to asynchronous
- Prevents "Delete Failed" false positives when Cloudflare API is slow
- Tags are now deleted immediately while cache purges in background
- Uses waitUntil() for non-blocking cache operations
2025-10-11 13:10:55 +08:00
sean908
a86e8b522d Feat: Add tag management system
- Add tag CRUD APIs (single file and batch operations)
  - Add tag autocomplete endpoint
  - Add tag search support in file listing
  - Update database schema with tags column
  - Add tag validation and normalization utilities
  - Initialize Tags:[] for all new uploads
2025-10-10 14:43:11 +08:00
MarSeventh
af285ef23e Bug:修复APITokens保存失效问题 2025-09-15 22:58:08 +08:00
MarSeventh
e330d44780 Feat:支持IOS端播放telegram渠道大体积视频,支持进度调整 2025-08-29 15:33:08 +08:00
MarSeventh
e12dd3f8e6 Feat:支持WebDAV功能 2025-08-28 16:56:14 +08:00
MarSeventh
81740fa2c2 Feat:适配D1数据库 2025-08-22 18:20:10 +08:00
初衷
b569036079 feat:同步代码 2025-08-20 08:53:33 +08:00
MarSeventh
cb5ba4a978 Opt:优化索引更新策略 2025-08-15 18:12:15 +08:00
初衷
a7c9923ac3 fix:修复语法错误 2025-08-14 15:17:24 +08:00