feat(settings): 合并内外两个'关于' + 一键导出错误日志#286
Merged
Merged
Conversation
用户反馈: 1. 设置侧栏内有"关于" tab,弹窗里也有一个"关于",重复入口让人混乱 2. 需要"一键导出错误日志"功能,让用户选择保存位置,跨 macOS/Windows ## 设置"关于"合并 (T2) - Settings.tsx 删 'about' 从 SettingsSectionId / SECTION_ORDER / 渲染分支 + 整个 AboutSection 函数(保留 settings.about i18n 块以防其他引用) - SettingsModal.tsx 的 AboutMini 接管所有内容: - 新增 source GitHub 链接(迁自 AboutSection) - 新增 QQ 群行(含 1078960553 群号 + 复制按钮,逻辑迁自 AboutSection) - 保留原有 docs / feedback / privacy / localFirst pill / AboutUpdateControl ## 一键导出错误日志 (T3) - Cargo.toml + package.json 引入 tauri-plugin-dialog(拿原生 save dialog) - lib.rs:plugin init + log_dir_path 改 pub fn 让 commands.rs 能调 - commands.rs:新增 export_error_log(target_path) — std::fs::copy log_dir_path()/openless.log → target_path(mac: ~/Library/Logs/OpenLess/openless.log,windows: %LOCALAPPDATA%\OpenLess\Logs\openless.log) - ipc.ts:exportErrorLog wrapper —— save dialog 选路径 → invoke 后端复制 - AboutMini 新增"导出错误日志"行:busy / ok / err 状态 + 实际保存路径 tooltip ## 5 个 locale 同步 modal.about 块统一新增 10 个 key(保证 typeof zhCN 类型完整不破坏编译): - source / qq / qqDesc / copyQq - exportErrorLog / exportErrorLogDesc / exportErrorLogBtn - exporting / exportSuccess / exportFailed zh-CN / zh-TW / en 用产品惯用术语;ja / ko 沿用 Beta 翻译风格。 ## 验证 - npx tsc --noEmit 通过(5 locale 类型一致) - vite build 通过 - cargo check 通过(plugin-dialog 与锁定的 tauri ~2.10 兼容)
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
appergb
pushed a commit
that referenced
this pull request
May 6, 2026
Release run 25419948896 三平台 (Linux / Win / mac arm64) 都挂在
tauri build 启动检查:
Found version mismatched Tauri packages.
tauri (v2.10.3) : @tauri-apps/api (v2.11.0)
根因翻转:
- 之前 (PR #281) Rust crate 漂上 2.11 而 npm 没发,所以锁 ~2.10 把 Rust
拉下来。
- 这次 PR #286 加 @tauri-apps/plugin-dialog 时 npm 解析把
@tauri-apps/api 升到 2.11.0(plugin-dialog 依赖 ^2.11.0),
Rust 还锁 ~2.10 → 反向 mismatch。
修复:
- Cargo.toml 锁 ~2.11
- cargo update 让 tauri / tauri-runtime / tauri-runtime-wry 三件套都升到
2.11.0(连带 wry 0.54.4 → 0.55.1 等 transitive 依赖)。
后续如果 Tauri 团队再发 2.12 而 npm 滞后,回头看 PR #281 同款做法处理。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
用户反馈
T2 合并"关于"
T3 一键导出错误日志
跨平台支持:log 路径 mac `~/Library/Logs/OpenLess/openless.log`、windows `%LOCALAPPDATA%\OpenLess\Logs\openless.log`,前端调用一致。
5 locale 同步翻译(10 个新 key)
`source / qq / qqDesc / copyQq / exportErrorLog / exportErrorLogDesc / exportErrorLogBtn / exporting / exportSuccess / exportFailed` 同时加到 zh-CN / en / zh-TW / ja / ko,保证 `typeof zhCN` 类型完整不破坏编译。
验证
解耦说明
保留 `settings.about.*` i18n 块(即使 UI 不再用),避免破坏其他可能引用;下个清理 PR 再统一删。
PR Type
Bug fix, Enhancement
Description
Merge duplicate About sections into modal
Add one-click error log export via native dialog
Add QQ group number copy with visual feedback
Update all locale files with new keys
Diagram Walkthrough
File Walkthrough
10 files
Add export_error_log commandRegister dialog plugin and log commandMerge About content and add log export UIAdd English i18n keys for About and log exportAdd Japanese i18n keys for About and log exportAdd Korean i18n keys for About and log exportAdd Simplified Chinese i18n keys for About and log exportAdd Traditional Chinese i18n keys for About and log exportAdd exportErrorLog IPC wrapper with save dialogRemove About section and tab2 files
Add @tauri-apps/plugin-dialog dependencyAdd tauri-plugin-dialog dependency