Commit Graph
1694 Commits
Author SHA1 Message Date
Orion 5483e3b494 🐛 修复主题静态资源错误回退
同步测试分支已验证的静态资源 404 回归修复,避免缺失或越界资源被 SPA 首页兜底为 200。
2026-08-07 09:24:35 +08:00
orion c25c495657 🐛 修复主题静态资源错误回退
避免缺失或越界的主题资源被全局 SPA 404 回退误返回首页 200,保持静态资源请求的明确 404 语义。

- 为主题资源回退增加显式 404 响应
- 增加缺失资源与路径穿越回归测试
2026-08-07 09:23:56 +08:00
Orion 3c427b5408 🔀 合并 FileCodeBox 2.5.4 安全更新到生产分支
Deploy VitePress site to Pages / build (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
Create release / release-please (push) Has been cancelled
Build and push Docker image / buildx (push) Has been cancelled
2026-08-07 09:10:07 +08:00
orion 0be5a31a59 🔀 合并 FileCodeBox 2.5.4 安全更新
同步官方 2.5.4 的初始化、安全、容量控制与上传校验,并保留 2026 主题、动态资源缓存和管理后台统计能力。

- 使用原子领取和容量预留,补齐文件校验、限流、令牌轮换与路径防护
- 保留三主题构建、2026 静态资源隔离及 TransferStats 生命周期记录
- 已通过容器生产镜像构建、23 项安全与分享回归测试、Python 编译检查和 Dockerfile 检查
2026-08-07 09:09:42 +08:00
vastsa f76d1e9841 docs: refresh readme and docs screenshots
Replace legacy PNG assets with new WebP banners and UI captures, and point Chinese/English readme plus docs pages at the updated images.
2026-07-24 16:34:24 +08:00
github-actions[bot] 287b647da1 chore(master): release 2.5.4 (#501)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 14:35:42 +00:00
Lan fbcd4a5b2b Merge pull request #500 from vastsa/fix/docker-run-as-root
fix: run Docker as root for volume compatibility
2026-07-23 22:35:20 +08:00
vastsa fc0cbeb4f0 fix: run Docker image as root for data volume compatibility
Revert the non-root container user so existing deployments with
root-owned data volumes keep working without a manual chown step.
2026-07-23 22:35:00 +08:00
github-actions[bot] 24bf6e1a81 chore(master): release 2.5.3 (#499)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 14:23:38 +00:00
Lan 0ee2f046dd Merge pull request #498 from vastsa/fix/security-hardening-gaps
fix: magic-byte file checks, admin login rate limit, non-root Docker
2026-07-23 22:23:11 +08:00
vastsa eda0a3127a fix: add magic-byte checks, login rate limits, and non-root Docker
Close the remaining security gaps: validate upload content against
file signatures, rate-limit admin login failures with configurable
thresholds, and run the container as uid 1000 instead of root.
2026-07-23 22:23:04 +08:00
github-actions[bot] c11059b851 chore(master): release 2.5.2 (#497)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-23 11:42:06 +00:00
Lan ae7702603a Merge pull request #496 from vastsa/fix/pr494-security-patches
fix: harden share expiry, download token, quota SQL, and CORS
2026-07-23 19:41:40 +08:00
vastsa a41693f90d fix: harden share expiry, download token, quota SQL, and CORS
Apply the useful security fixes from PR #494 with review corrections:
validate expire_style through a shared helper, accept previous download
token window, detect SQL dialect via Tortoise capabilities, close remote
download sessions on client abort, and disable invalid CORS credentials.
2026-07-23 19:38:50 +08:00
orion 8698a224dd 🔀 合并手机导航与日期布局修复到生产分支
从已验证的 test/custom-admin-ui 分支合并导航对比度和趋势日期单行布局修复。\n\n- 测试环境已通过 48 组响应式与明暗模式回归\n- 320/390px 日期单行且无溢出\n- 浅色与深色导航对比度均通过专项验证
2026-07-21 17:58:05 +08:00
orion d47d0edbce 🐛 修复手机导航对比度与趋势日期布局
针对 iPhone Safari 中侧栏半透明合成导致导航文字和图标发灰的问题,提高移动导航可读性,并恢复趋势日期的手机单行布局。

- 导航抽屉改为不透明实色背景,遮罩只作用于右侧内容
- 提高品牌、菜单、关闭按钮和退出登录的文字图标对比度
- 强化当前菜单选中态,兼顾浅色与深色模式
- 手机端开始和结束日期恢复同一行并保持 44px 控件高度
- 已通过架构检查、类型检查、ESLint 和生产构建
2026-07-21 17:49:03 +08:00
Orion 1bba4f59aa 🔀 合并测试环境性能优化到生产分支
Build and push Docker image / buildx (push) Has been cancelled
Deploy VitePress site to Pages / build (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
从已验证并已推送的 test/custom-admin-ui 分支合并静态资源压缩和统一主题资源路由改动。

- 保留生产 Dockerfile 使用前端 main 分支
- 不带入测试环境专用构建配置
- 测试环境已通过 48 组响应式与明暗模式回归
2026-07-21 17:33:31 +08:00
Orion 6bed5fb76d Revert "⚡ 启用压缩并兼容统一主题资源路径"
This reverts commit f093a8ac6d.
2026-07-21 17:33:11 +08:00
orion f093a8ac6d ⚡ 启用压缩并兼容统一主题资源路径
Deploy VitePress site to Pages / build (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
Build and push Docker image / buildx (push) Has been cancelled
为 FastAPI 应用启用 Gzip,并兼容 Vite 在 /theme-assets/ 基址下生成的 assets 子路径。

- 压缩超过 1KB 的静态资源和 API 响应,保留不可变缓存策略
- 同时兼容 /theme-assets/<file> 与 /theme-assets/assets/<file>
- 保留 /assets 旧入口,避免影响历史主题
- 已通过 Python 编译检查
2026-07-21 17:29:21 +08:00
orion 0f075aaeed Merge remote-tracking branch 'refs/remotes/localgitea/main' 2026-07-21 17:28:45 +08:00
orion 5e4c3ed5e3 ⚡ 启用压缩并兼容统一主题资源路径
为 FastAPI 应用启用 Gzip,并兼容 Vite 在 /theme-assets/ 基址下生成的 assets 子路径。

- 压缩超过 1KB 的静态资源和 API 响应,保留不可变缓存策略
- 同时兼容 /theme-assets/<file> 与 /theme-assets/assets/<file>
- 保留 /assets 旧入口,避免影响历史主题
- 已通过 Python 编译检查
2026-07-21 17:08:02 +08:00
orion 2fe835d8d2 ⚡ 补充分割低频组件与响应式渲染优化
根据全站性能审计继续降低低频组件请求、重复 DOM 与重复缓存 URL 成本。

- 二维码组件改为详情弹窗实际渲染时异步加载
- 文件管理仅挂载当前断点对应的移动列表或桌面表格
- Vite 静态与动态资源统一使用 /theme-assets/ 前缀
- 已通过架构检查、类型检查、ESLint 和生产构建
2026-07-21 17:07:44 +08:00
orion aa3743b42d ⚡ 全面优化 2026 前端响应式体验与加载性能
完成 FileCodeBox 2026 全站桌面端、平板和移动端的视觉交互复核,补齐文件选择后的批量操作闭环,并降低公共首屏的字体与低频依赖成本。

- 为移动文件列表增加全选、已选数量、批量编辑、策略与删除固定栏,并补充详情删除和空筛选重置
- 优化设置保存栏、分区导航、发送过期控件、仪表盘日期与图表操作、分页和记录抽屉
- 为后台侧栏增加遮罩、滚动锁定、Escape 关闭和焦点返回,完善登录密码可见性与国际化
- 移除全站强制 DingTalk 字体,按需加载 JSZip、Marked 和 DOMPurify,并停止空闲提示定时器
- 已通过架构检查、Vue 类型检查、ESLint、生产构建、48 组多视口明暗模式矩阵及核心流程回归
2026-07-21 16:44:45 +08:00
orion ae0425aff3 Merge pull request 'Test/custom admin ui' (#3) from test/custom-admin-ui into main
Reviewed-on: orion/FileCodeBoxFronted2026#3
2026-07-21 15:14:22 +08:00
Lan 59ed733f3a support text direct downloads (#490)
## 合入说明

- 修复 `GET /share/select/` 文本分享直链错误走存储层导致“已删除/过期”的问题
- 文本分享返回 UTF-8 plain text 附件下载
- 补充回归测试,不影响现有文件下载与次数扣减逻辑

## 评估结论

有必要合入:master 仍复现该缺陷,改动小、无冲突、测试通过。
2026-07-21 14:52:36 +08:00
github-actions[bot] cf6d364c2b chore(master): release 2.5.1 (#492)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-21 06:49:57 +00:00
vastsa 00f3abd3b2 fix: patch CVE dependencies and path traversal risks
Upgrade aiohttp and related packages, harden local file and storage path checks, tighten password/JWT comparisons, and default Docker forwarded IP trust to empty.
2026-07-21 14:49:30 +08:00
orion fa6b484d17 ♿ 完善文件历史表格键盘滚动可访问性
为文件管理页的历史文件表格补充可聚焦的滚动区域语义,避免窄视口下横向滚动内容无法通过键盘访问。

- 为历史文件表格滚动容器增加 region 角色和可访问名称
- 保持现有表格、分页和文件操作逻辑不变
- 已通过架构检查、Vue 类型检查、Vite 生产构建和 diff 检查
2026-07-21 11:46:50 +08:00
orion 6d781cab58 🐛 修复设置标签导航退出管理员页面问题
修复 2026 管理后台系统设置页的分区导航与 Hash 路由冲突,避免点击顶部标签后被 Vue Router 解析为公共路由并离开管理员页面。

- 将设置分区的普通 Hash 链接改为同页滚动按钮,不修改当前后台路由
- 保留管理员布局和登录会话,并兼容 reduced-motion 设置
- 修复公共页管理员入口显示原始 i18n key 的问题
- 已通过架构检查、Vue 类型检查和 Vite 生产构建
2026-07-21 11:36:06 +08:00
orion b60c003ec2 ✨ 优化 2026 前端无障碍与响应式体验
完善 2026 主题的移动端与桌面端交互体验,修复多项可访问性和信息展示问题。

- 允许浏览器缩放,补充焦点样式、按钮名称、表单标签和对话框键盘焦点管理\n- 支持 reduced-motion,扩大公共页、后台导航、记录列表和分页控件的触控区域\n- 优化系统设置分区导航、密码显示、字段语义和底部粘性保存栏\n- 压缩移动文件列表操作区,改善桌面表格滚动可达性和统计值截断\n- 优化仪表盘指标、趋势摘要、进度条语义及中英文文案
2026-07-21 11:05:23 +08:00
Lan c676458370 docs: recommend BokeBox in project readme 2026-07-17 19:26:42 +08:00
monlor f2277e1649 support text direct downloads 2026-07-15 15:12:24 +08:00
Lan f20a7a5704 docs: improve documentation experience 2026-07-12 00:08:34 +08:00
Lan fe1a7727f7 docs: simplify project readme 2026-07-11 23:00:24 +08:00
Lan a30e52ba9d docs: redesign project readme 2026-07-11 22:48:52 +08:00
Lan ab5178a73a docs: clarify frontend release permissions 2026-07-11 21:59:07 +08:00
github-actions[bot] 9219b74333 chore(master): release 2.5.0 (#487)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-11 13:55:08 +00:00
Lan 46883c90ff fix: harden automated release workflow 2026-07-11 21:53:57 +08:00
Lan ee8f9082ab feat: automate version releases 2026-07-11 21:49:04 +08:00
Lan 818dd47b2a feat: add global storage capacity limit 2026-07-11 17:50:26 +08:00
Lan 93ff291366 feat: configure admin session lifetime (#484) 2026-07-10 19:21:00 +08:00
Lan 2c51384c80 fix: build frontend on native Docker platform 2026-07-10 17:48:54 +08:00
Lan 8d7d856c62 fix: harden share retrieval and admin visibility (#482, #480) 2026-07-10 17:39:53 +08:00
orion bcc26e4bc2 🧪 测试环境构建测试前端分支 2026-07-10 16:09:36 +08:00
orion 2f020f5d42 🔀 同步远程测试分支 2026-07-10 16:07:50 +08:00
orion 1225fee430 🔀 合并前端测试验证改动 2026-07-10 16:07:33 +08:00
orion bfc114659d ✨ 优化展开动画与趋势控制布局 2026-07-10 15:54:03 +08:00
orion 2cb36c5bbf ✨ 平滑趋势图缩放与刻度动画 2026-07-10 15:35:03 +08:00
orion fd58320c8b 📈 修正趋势图整数刻度对齐 2026-07-10 15:20:20 +08:00
orion 377af94a3c Merge pull request 'Main' (#2) from main into test/custom-admin-ui
Reviewed-on: orion/FileCodeBoxFronted2026#2
2026-07-10 15:11:30 +08:00