Commit Graph

66 Commits

Author SHA1 Message Date
1e0d408dd2 v0.3.12: 统一环境变量管理 + 去重
- CHROMIUM_PATH 从3处散落移到 config/index.ts 统一管理
- startup-validator 移除冗余 CORS_ORIGIN 检查 (main.ts 已处理)
- docker run 补充 JWT_SECRET/ADMIN_PASSWORD/COOKIE_ENCRYPTION_KEY
- 云盘常量统一到 cloud-constants.ts (图标/标签/颜色)
2026-05-17 14:13:51 +08:00
77a8c5126f v0.3.11: 统一云盘常量到 cloud-constants.ts (图标/标签/颜色) 2026-05-17 14:10:39 +08:00
7d2d883b81 v0.3.10: cloud-types API 图标从内联SVG改为PNG路径 /icons/xxx.png 2026-05-17 14:02:21 +08:00
514922f21a v0.3.9: 替换占位图标为原始高清云盘图标 2026-05-17 13:42:41 +08:00
25ad1802dc v0.3.8: 修复网盘图标(icons/)未包含在Vite构建产物中 2026-05-17 13:34:59 +08:00
8cd4dabb60 v0.3.7: 恢复前端Vue源码 + 修复AdminDashboard 401根源 2026-05-17 13:26:36 +08:00
09be4c307e v0.3.6: 恢复丢失的11个模块 + 接线基础设施
恢复内容:
- quark驱动拆解为7个子模块 (quark-api/auth/share/storage/cleanup/rename/ad-cleanup)
- 工具模块: utils/crypto, utils/logger, utils/proxy-agent
- 配置校验: config/startup-validator
- 接线: main.ts(checkStartup), credential.service.ts(加密Cookie), admin.routes.ts(代理测试)
- quark.driver.ts 从1533行巨兽瘦身到130行壳子
2026-05-17 06:05:47 +08:00
64b00661a2 v0.3.5: restore full push notification system (14 channels)
Restored from v0.2.4:
- notifiers/: 14 push channels (bark/serverchan/telegram/lark/webhook/wechat/discord/smtp/...)
- push-user.service.ts: multi-user push config linked to cloud_configs.promotion_account
- notification.service.ts: full dispatcher with per-config + global fallback

New integrations:
- cloud.service.ts: notifyConfigEvent on save_success/cookie_expire/save_fail
- admin.routes.ts: 7 new API endpoints for push users, notify providers, channel test
- database.ts: migration for cloud_configs.notify_config column

How it works:
- Configure push channels in /admin/system-configs (global_notify_config JSON)
- Or per-cloud: link push_users.account = cloud_configs.promotion_account
- Notify events: save_success (green), cookie_expire (red), save_fail >=3 consecutive (yellow)
2026-05-17 05:15:26 +08:00
29e0fcbd43 v0.3.4: redis_status returns Chinese labels for frontend color
- db-status endpoint: redis_status returns 已连接/未连接/错误 instead of English
- Frontend compares k.redis_status === "已连接" → green text-success badge
- English connected was not matching, always showed yellow text-warning
2026-05-17 04:40:53 +08:00
b852d9577a v0.3.3: fix db_size N/A + fix test-redis missing await
- db-status endpoint: fallback to config.dbPath when system_config db_path is empty
- test-redis endpoint: handler wasnt async, causing Promise serialization to {} instead of result
- Both endpoint handlers now properly async with await
2026-05-17 04:31:14 +08:00
9a4751692f v0.3.2: fix 401 on save-records fetch + fix 429 rate limiter behind proxy
- AdminDashboard: M() now sends admin_token from localStorage with fetch
- rate-limit: keyGenerator uses req.ip instead of req.socket.remoteAddress
  (Express trust proxy reads X-Forwarded-For for real client IP)
- main.ts: moved global rateLimiter after express.static so static files
  (JS/CSS/admin page/favicon) are never rate-limited
2026-05-17 04:20:30 +08:00
e57298471a v0.3.1-hotfix: 修复 AdminDashboard TDZ 错误 (x 声明提升)
- 问题: qu(()=>x.value) 在 const x=Ce("dashboard") 之前调用
- 修复: 将 const x 声明提升到 setup() 顶部
2026-05-17 03:58:46 +08:00
3d6add4636 v0.3.1: 修复仪表盘缓存问题 + 版本号同步
- 修复: admin.html 无缓存, /assets/ immutable + 1年缓存
- 修复: 清理过期 index-Bz21yOih.js 残留文件
- 版本: VERSION → 0.3.1 (唯一来源)
2026-05-17 03:44:43 +08:00
d5aa799acc v0.3.1: 版本号架构重构 — VERSION为唯一真相来源
- 新增 src/version.ts: 从文件读取版本(APP_VERSION_FILE → /app/VERSION)
- main.ts 改为 import { VERSION } from './version'(不再读 package.json)
- Dockerfile 构建时 COPY VERSION 到 /app/VERSION
- 新增 build.sh: 一键读取VERSION→构建→打标签
- docker-compose.yml: 清理重复/损坏内容, 添加 pansou network-alias
- package.json version 设为 0.0.0 (不再作为真相来源)
- 清理 .env 和 compose 注释中的过期版本号
2026-05-17 03:26:00 +08:00
96b989ec25 v0.2.8: XSS净化 + 速率限制修复
- 搜索关键词存储前HTML标签剥离
- 速率限制keyGenerator改用getClientIP(读X-Forwarded-For)
- 搜索限流从150/min降至60/min
- 清理数据库中历史XSS条目
2026-05-17 02:32:48 +08:00
83cbfaf03f v0.2.7: 修复Redis连接 + 启动管理后台
- 修复Redis认证 (配置密码)
- 启动Python管理后台 (端口9531, 15个功能开关)
- 统一版本号 0.2.7
- 更新docker-compose.yml (镜像版本/Redis URL/Admin服务)
2026-05-17 02:22:18 +08:00