大麦
|
be5aac7d56
|
chore: 整理构建文件
- 移除备份文件
- 清理未跟踪文件
|
2026-03-10 22:21:17 +08:00 |
|
大麦
|
440cd41271
|
feat: 增加打开本地文件功能
## ✨ 新功能
- 添加「📂 打开文件」按钮
- 使用 rfd 文件选择对话框
- 支持 PDF, EPUB, MOBI, TXT, Markdown, 代码文件
## 🛠 技术实现
- 添加 rfd = "0.14" 依赖
- 实现 open_local_file() 异步函数
- 添加 DocumentViewer 组件显示文档信息
- 自动将打开的文件添加到书库
## 🎨 UI 改进
- 侧边栏添加打开文件按钮
- 文档查看器显示格式、页数、大小
- 错误处理与友好提示
---
📅 开发日期:2026-03-10
|
2026-03-10 21:36:37 +08:00 |
|
大麦
|
e9a5f0a57e
|
ci: 添加最小化测试 workflow
Build Windows / Build Windows (push) Failing after 3s
Test Workflow / Test Environment (push) Successful in 3s
目的:
- 诊断 Gitea Actions 环境变量
- 检查可用命令
- 测试网络连接
v0.2.12
|
2026-03-10 19:46:55 +08:00 |
|
大麦
|
075eedc13b
|
ci: 使用 git clone 替代 actions/checkout
Build Windows / Build Windows (push) Failing after 2s
原因:
- actions/checkout@v4 可能在 Gitea 中不兼容
修复:
- 使用 git clone 直接获取代码
- 使用 ${{ gitea.sha }} 指定 commit
|
2026-03-10 19:46:20 +08:00 |
|
大麦
|
5b3d1af415
|
ci: 修复 Gitea Actions 语法 + 添加 checkout 步骤
Build Windows / Build Windows (push) Failing after 36s
问题:
- Gitea Actions 使用 ${{ gitea.xxx }} 而非 ${{ github.xxx }}
- 缺少 actions/checkout@v4 步骤获取代码
修复:
- 添加 checkout 步骤
- 修正 Gitea 语法
|
2026-03-10 19:40:12 +08:00 |
|
大麦
|
41508bcc7f
|
ci: 修复 xwin 编译 - 添加 Windows MSVC 目标
Build Windows / Build Windows (push) Failing after 8m30s
问题:
- xwin 编译时需要 x86_64-pc-windows-msvc 目标
- 错误:can't find crate for std
修复:
- 在安装 xwin 前添加 rustup target add x86_64-pc-windows-msvc
- 使用官方 xwin crate(非 git 版本)
- 添加 xwin download 步骤下载预编译 CRT
|
2026-03-10 19:28:48 +08:00 |
|
大麦
|
7af1c37577
|
ci: 使用 xwin 代替 MinGW
Build Windows / Build Windows (push) Failing after 18m42s
问题:
- apt-get 安装 MinGW 依赖失败
- x86_64-w64-mingw32-posix-runtime 包不存在
解决方案:
- 使用 xwin 下载预编译的 MinGW CRT
- 使用 Cargo 安装 xwin 工具链
- 专门针对 Windows MSVC 编译
优势:
- 无需系统安装 MinGW
- 预编译的 CRT 更稳定
- Rust 标准的交叉编译方式
|
2026-03-10 18:23:17 +08:00 |
|
大麦
|
f8cd6b1d17
|
ci: 修复 MinGW 包名错误
Build Windows / Build Windows (push) Failing after 15m35s
- 使用正确的 Debian 包名:gcc-mingw-w64-x86-64
- 移除不存在的 x86_64-w64-mingw32-posix-runtime 包
|
2026-03-10 18:03:23 +08:00 |
|
大麦
|
df48965e02
|
ci: 修复 Runner 无 sudo 问题
Build Windows / Build Windows (push) Failing after 1m11s
- 移除所有 sudo 命令(容器以 root 运行)
- apt-get 不需要 sudo
|
2026-03-10 17:55:49 +08:00 |
|
大麦
|
cd19407f29
|
ci: 完全不依赖 GitHub 的 workflow
Build Windows / Build Windows (push) Failing after 5m35s
- 使用 git clone 代替 actions/checkout
- 所有操作使用基础命令
- 不依赖任何 GitHub Actions
适用场景:
- Gitea Actions 无法访问 GitHub
- 完全离线环境
- 安全要求高的环境
v0.2.4
|
2026-03-10 17:04:09 +08:00 |
|
大麦
|
e321271734
|
ci: 修复 Gitea Actions - 移除 GitHub 专用 action
Build Windows / Build Windows (push) Failing after 41s
问题:dtolnay/rust-action 需要 GitHub 认证
解决:使用基础命令安装 Rust
修复内容:
- 使用 rustup 官方脚本安装 Rust
- 使用 apt 安装 MinGW 和 GTK 依赖
- 使用 Gitea API 直接上传 Release
|
2026-03-10 16:57:28 +08:00 |
|
大麦
|
0dd7c30b62
|
ci: 简化 Gitea Actions workflow
Build Release / Build Windows (push) Failing after 6m22s
- 使用更兼容的语法
- 简化编译步骤
- 直接使用 Gitea API 上传 Release 而不是 GitHub Actions
v0.3.0
|
2026-03-10 16:52:25 +08:00 |
|
大麦
|
7cc5e141c7
|
ci: 优化 Gitea Actions Workflow 配置
Release Build / Build Windows (push) Failing after 17s
Release Build / Build Linux (push) Failing after 55s
Release Build / Build macOS (push) Has been cancelled
- 添加 GITEA_TOKEN 全局变量
- 使用 dtolnay/rust-action 编译
- 安装必要依赖
- 使用 ncipollo/release-action 上传
- 修复上传问题
|
2026-03-10 16:46:41 +08:00 |
|
大麦
|
5c3e7ccbfd
|
docs: 添加 Windows 交叉编译脚本和 Gitea Actions 配置指南
Release Build / Build Windows (push) Failing after 3m18s
Release Build / Build Linux (push) Failing after 33s
Release Build / Build macOS (push) Has been cancelled
- scripts/build-windows.sh: Windows 交叉编译脚本
- docs/GITEA_ACTIONS.md: Gitea Actions Runner 配置指南
使用方式:
1. 配置 Gitea Actions Runner (参考 docs/GITEA_ACTIONS.md)
2. 或手动运行 ./scripts/build-windows.sh --upload
v0.2.1
|
2026-03-10 16:10:51 +08:00 |
|
大麦
|
3a6f2f29cd
|
ci: 添加 Gitea Actions 自动编译工作流
- 支持 Windows/Linux/macOS 三平台
- 使用交叉编译 (ubuntu + mingw)
- 自动打包并上传 Release
- 触发器:Git tag 推送
平台支持:
- Windows: x86_64-pc-windows-gnu (mingw)
- Linux: x86_64-unknown-linux-gnu
- macOS: x86_64-apple-darwin
|
2026-03-10 16:08:21 +08:00 |
|
大麦
|
1b0bff2beb
|
ci: 添加 GitHub Actions 自动编译工作流
- 跨平台自动编译
- macOS (Intel/Apple Silicon)
- Linux (gnu/musl)
- Windows (msvc/gnu)
- 自动发布 Release
GitHub Actions 将自动编译所有平台版本并上传到 Release。
|
2026-03-10 15:59:37 +08:00 |
|
大麦
|
93f2f02d46
|
feat: 完成 Issue #14-15 主题商店与跨平台打包
## Phase 4 - 性能与生态 (续)
### Issue #14: 个性化主题商店 ✅
- ThemeManager 主题管理器
- 4 种内置主题 (深色/浅色/护眼/高对比度)
- 主题安装/卸载功能
- 自定义主题配置
- CSS 变量系统
### Issue #15: 跨平台打包发布 ✅
- build-release.sh 打包脚本
- 支持 macOS (DMG + App Bundle)
- 支持 Linux (AppImage + tar.gz)
- 支持 Windows (NSIS + ZIP)
- Cargo 发布配置优化 (LTO, strip)
- 自动生成 RELEASE.md
## 完成状态
✅ Phase 2: 4/4 Issues
✅ Phase 3: 4/4 Issues
✅ Phase 4: 3/3 Issues
🎉 ReadFlow MVP 全部完成!
v0.2.0
|
2026-03-10 14:33:36 +08:00 |
|
大麦
|
600f205c87
|
feat: 完成 Phase 2-4 核心功能
## Phase 2 - 核心功能 (P0)
- Issue #5: EPUB/MOBI/AZW3 格式支持 ✅
- 修复 mobi 库 API 调用 (content_raw → content_as_string)
- 修复 title()/author() 返回类型
- 添加元数据提取功能
- Issue #6: Markdown 阅读模式 ✅
- 实现 parse_markdown_with_metadata
- 支持 Front Matter (YAML) 解析
- 使用 pulldown-cmark 解析引擎
- 支持代码文件高亮
- Issue #7: 双语翻译功能 ✅
- 实现 TranslationService (阿里百炼/DeepL/Ollama)
- 语言自动检测
- 双语对照 HTML 渲染 (并排/段落交错模式)
- Issue #8: 笔记与书签系统 ✅
- BookmarkManager (高亮/下划线/波浪线/边注)
- NoteManager (阅读笔记/想法/问题/总结)
- 阅读统计 (时长/会话数/笔记数)
- 导出 Markdown/CSV/Anki
## Phase 3 - 高级功能 (P1)
- Issue #9: 代码阅读器 ✅
- 支持 20+ 编程语言
- syntect 语法高亮
- 行号显示/代码折叠
- Issue #10: 全文双语对照 ✅
- 段落级翻译对照
- 并排/交错两种模式
- 响应式布局
- Issue #11: 阅读进度同步 ✅
- 本地进度追踪
- 云端同步支持
- 多设备冲突解决
- Issue #12: 插件系统 ✅
- 插件加载/卸载/启用/禁用
- 插件依赖管理
- 内置主题/快捷键插件
## Phase 4 - 性能与生态 (P1)
- Issue #13: 性能优化 ✅
- PerformanceProfiler 性能分析
- CacheManager LRU 缓存
- 性能监控与优化建议
## 技术栈更新
- 新增依赖:reqwest, uuid, chrono(serde)
- 核心模块:8 个 (document/translation/bookmark/note/code_reader/progress/plugin/performance)
- 代码量:~5000 行
---
🚀 ReadFlow MVP 核心功能全部完成!
|
2026-03-10 14:29:56 +08:00 |
|
大麦
|
00fa25aeeb
|
feat: 实现 PDF 文档阅读功能
- 实现 DocumentEngine,支持 PDF/EPUB/MOBI/TXT/Markdown/代码文件格式
- 添加文档格式自动检测功能
- 实现文档渲染为 HTML
- 实现全文搜索功能
- 添加 CLI/TUI 用户界面
- 修复 tracing-subscriber feature 依赖问题
|
2026-03-09 07:55:09 +08:00 |
|
Rong
|
28be3b8509
|
feat: 项目基础框架搭建 - Phase 1 Issue #1
- 创建 Cargo.toml 依赖配置
- 实现配置管理模块 (config/)
- 实现核心服务模块 (core/)
- 文档处理引擎
- 翻译服务
- 实现基础设施模块 (infrastructure/)
- 存储模块
- 实现 UI 模块 (ui/)
- 集成 logging (tracing)
项目结构:
├── Cargo.toml
├── src/
│ ├── main.rs
│ ├── config/mod.rs
│ ├── core/
│ │ ├── mod.rs
│ │ ├── document.rs
│ │ └── translation.rs
│ ├── infrastructure/
│ │ ├── mod.rs
│ │ └── storage.rs
│ └── ui/
│ └── mod.rs
|
2026-03-08 23:58:43 +08:00 |
|
|
|
8dc2be2108
|
Initial commit
|
2026-03-08 15:46:28 +00:00 |
|