Commit Graph
67 Commits
Author SHA1 Message Date
axibayuit cbe352cac8 fix: simplify HuggingFace upload - direct PUT without encoding 2025-12-30 18:58:06 +08:00
axibayuit 82d03cf0b9 fix: use multipart form upload for HuggingFace to avoid CPU timeout 2025-12-30 18:48:25 +08:00
axibayuit a5251f898c fix: use direct binary upload instead of base64 to avoid CPU timeout 2025-12-30 18:44:42 +08:00
axibayuit ad8c5ac9cd fix: use correct HuggingFace commit API format with base64 encoding 2025-12-30 18:22:17 +08:00
axibayuit ffd0b0d3da fix: use simple upload API for HuggingFace 2025-12-30 18:06:09 +08:00
axibayuit 2a95a975bc fix: update HuggingFace API to use LFS upload method 2025-12-30 18:05:05 +08:00
axibayuit 2df7e1ebea 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 9ef46f45ce feat(discord): add delete message support for Discord channel 2025-12-30 15:57:17 +08:00
axibayuit 9a0ab93790 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 562f9d3b5b perf: 优化容量检查,未启用时跳过KV读取 2025-12-30 00:14:56 +08:00
axibayuit 5c11f477af perf: 优化容量统计,从索引元数据读取,减少 KV 写入操作 2025-12-29 23:20:04 +08:00
axibayuit 1da5ea0dbf 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
jenken827 bf6906e54e feat: 支持svg和ico文件的上传 2025-12-06 15:15:13 +08:00
MarSeventh 36eecf3782 Feat:支持标签管理;支持深色模式跟随系统 2025-11-18 12:26:54 +08:00
sean908 797f63b00a 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 95c40cd501 Bug:修复list接口渠道过滤失败问题 2025-09-15 10:09:34 +08:00
MarSeventh f54f0ea3e1 Feat:支持WebDAV功能 2025-08-28 16:56:14 +08:00
MarSeventh 1ca13a474b Opt:优化大文件上传稳定性 2025-08-24 15:07:11 +08:00
MarSeventh 817a8be1e2 Feat:适配D1数据库 2025-08-23 12:01:19 +08:00
MarSeventh 76bcd24b6a Feat:适配D1数据库 2025-08-23 11:35:11 +08:00
MarSeventh 567cda2312 Feat:适配D1数据库 2025-08-22 18:20:10 +08:00
初衷 50c87b1601 feat:同步代码 2025-08-20 08:53:33 +08:00
初衷 755f787d97 Revert "fix:去除KV检查和KV提示"
This reverts commit 2a9fa4ef8f.
2025-08-20 08:43:14 +08:00
初衷 2a9fa4ef8f fix:去除KV检查和KV提示 2025-08-19 18:21:16 +08:00
GH Action - Upstream Sync 0754b7288e Merge branch 'main' of https://github.com/MarSeventh/CloudFlare-ImgBed 2025-08-16 01:21:21 +00:00
MarSeventh f1f14675fa Opt:优化索引更新策略 2025-08-15 18:12:15 +08:00
初衷 6e9f948603 fix:修复索引系统的问题。update remade 2025-08-14 15:12:37 +08:00
初衷 95ec6d2a1a fix:找到问题,修复问题 2025-08-14 13:36:12 +08:00
初衷 e119d5eedb fix:添加debug查询。优化查询D1逻辑 2025-08-14 11:34:10 +08:00
初衷 b7556272c0 debug:添加测试数据库 2025-08-14 11:04:01 +08:00
GH Action - Upstream Sync 6e4555d81f Merge branch 'main' of https://github.com/MarSeventh/CloudFlare-ImgBed 2025-08-14 01:25:03 +00:00
初衷 d2c05adf1b fix:批量修复env.img_url转为getDatabase 2025-08-14 09:23:03 +08:00
初衷 f3fda327da debug:添加调试信息 2025-08-13 23:22:33 +08:00
初衷 148b97092b debug:添加调试信息 2025-08-13 22:49:35 +08:00
初衷 55315b778e debug:调试恢复功能和登录功能 2025-08-13 21:33:06 +08:00
初衷 dbea752676 fix:所有模块导入/导出的兼容性问题 2025-08-13 19:09:01 +08:00
初衷 a49c1b75a3 fix:语法兼容性修复 2025-08-13 18:12:11 +08:00
初衷 d3291b82f8 fix:修复更多兼容方法 2025-08-13 17:56:34 +08:00
初衷 4b728d058b fix:将ES6+语法改为ES5兼容的写法 2025-08-13 17:52:12 +08:00
初衷 581b704e21 fix:优化代码处理构建报错问题 2025-08-13 17:12:42 +08:00
MarSeventh db21671f9d Opt:优化中间件架构 2025-08-13 17:00:03 +08:00
初衷 e901a08af9 feat:现有的 KV 存储数据迁移到 D1 数据库 2025-08-13 16:26:04 +08:00
初衷 32514a8c80 fix:优化代码 2025-08-13 11:17:27 +08:00
MarSeventh 243a1064e7 Feat:支持上传失败自动重试;list接口在索引构建不成功时支持使用传统方式返回文件列表 2025-08-11 21:50:24 +08:00
MarSeventh 70e02fd1b9 Feat:优化random和cusConfig操作的响应速度,优化大文件上传成功率 2025-08-01 11:06:12 +08:00
MarSeventh 6433416b79 Feat:支持备份和恢复;支持API-Token鉴权;支持指定部分默认上传设置 2025-07-31 18:45:14 +08:00
MarSeventh 39821164ea Feat:支持备份和恢复;支持API-Token鉴权;支持指定部分默认上传设置 2025-07-31 18:25:58 +08:00
MarSeventh 889f3b723b Feat:支持备份和恢复;支持API-Token鉴权;支持指定部分默认上传设置 2025-07-31 18:21:17 +08:00
MarSeventh 06d9dac77e Feat:支持备份和恢复;支持APIToken鉴权;支持指定部分默认上传设置 2025-07-31 18:11:49 +08:00
MarSeventh bab8dd35a6 Feat:支持备份和恢复;支持APIToken鉴权;支持指定部分默认上传设置 2025-07-31 16:22:25 +08:00