mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-29 09:55:56 +08:00
21af2683ac
## 审查修复 (18 项)
- TitleBar 版本号改为动态 import package.json
- CLI profile_apply 加 verify_and_save 原子性保护
- CLI 新增 profile rename 子命令
- cmd_clean 默认清理 system+user 两个 hive
- Rust import_csv 加 BOM/header 处理
- exportToJson/exportToCsv 保留 enabled 状态
- CLI version 使用 env!("CARGO_PKG_VERSION")
- export_paths 返回 Result, 未知格式报错
- importFromContent 未知扩展名 throw Error
- profile 文件名加路径遍历/Win保留字校验
- 数据路径统一到 ~/.patheditor/
## clippy (18 处修复)
- backup/scanner/system/profiles: empty_line_after_doc_comments
- profiles: needless_borrow ×5, unnecessary_map_or
- scanner: collapsible_if
- cli: nonminimal_bool ×6, implicit_saturating_sub, to_string_in_format_args
- 零警告通过
## 测试 (33 条新增)
- Rust: backup(3) + disabled(1) + fs(13) + scanner(4) + profiles(1) = 25 条
- 前端: merge-preview(2) + analyze-dialog(1) + import-parity(5) = 8 条
- Rust 10→35, 前端 72→80
## Scanner 并行化
- std::thread::scope 多线程并行扫描目录,N 倍性能提升
## expand_env_vars UTF-16 修复
- 非法码点编码为 \u{XXXX} 而非静默丢弃
## 开源标配
- CODE_OF_CONDUCT.md (Contributor Covenant 2.1)
- SECURITY.md (漏洞报告流程)
- .github/PULL_REQUEST_TEMPLATE.md
- CONTRIBUTING.md (贡献指南)
- CHANGELOG.md (v4.0~v5.0)
## E2E 测试 (4 条新增)
- keyboard / analyze / profiles / import-export
- IPC mock 扩展 scan/profiles 命令
## CI
- Rust job 目录调整为 workspace 根
## 其他
- rustdoc: 8 个 pub fn 补文档注释
- 帮助文本 v4.0→v5.0
- 前后端导入逻辑加交叉引用注释
- .gitignore 添加 target/
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
104 lines
3.4 KiB
JSON
104 lines
3.4 KiB
JSON
{
|
|
"app": {
|
|
"name": "PathEditor",
|
|
"nameReadonly": "PathEditor (Read-only)"
|
|
},
|
|
"tab": {
|
|
"system": "System Variables",
|
|
"user": "User Variables",
|
|
"merged": "Merge Preview"
|
|
},
|
|
"button": {
|
|
"new": "New",
|
|
"edit": "Edit",
|
|
"browse": "Browse...",
|
|
"delete": "Delete",
|
|
"moveUp": "Move Up",
|
|
"moveDown": "Move Down",
|
|
"clean": "Clean",
|
|
"import": "Import",
|
|
"export": "Export",
|
|
"save": "OK",
|
|
"cancel": "Cancel",
|
|
"help": "Help",
|
|
"analyze": "Analyze",
|
|
"profiles": "Profiles",
|
|
"undo": "Undo",
|
|
"redo": "Redo",
|
|
"darkMode": "Dark Mode",
|
|
"lightMode": "Light Mode",
|
|
"language": "Language",
|
|
"retry": "Retry"
|
|
},
|
|
"merge": {
|
|
"system": "System",
|
|
"user": "User",
|
|
"source": "Source"
|
|
},
|
|
"status": {
|
|
"normal": "Ready",
|
|
"readonly": "Read-only mode — Administrator privileges required for editing",
|
|
"saving": "Saving...",
|
|
"saved": "Saved successfully",
|
|
"saved_without_backup": "Saved (backup failed)",
|
|
"error": "Operation failed",
|
|
"warning_backup": "Backup creation failed, save will proceed without backup",
|
|
"deleted": "Deleted {{count}} path(s)",
|
|
"loaded": "Loaded {{sysCount}} system and {{userCount}} user paths",
|
|
"dragFolderOnly": "Only folders can be dropped",
|
|
"loading": "Loading...",
|
|
"modified": "Modified",
|
|
"readonly_label": "Read-only",
|
|
"light": "Light",
|
|
"dark": "Dark",
|
|
"adminWarning": "Running without administrator privileges, some features are disabled"
|
|
},
|
|
"dialog": {
|
|
"newPath": "New Path",
|
|
"editPath": "Edit Path",
|
|
"pathLabel": "Enter path:",
|
|
"selectDir": "Select Directory",
|
|
"importTitle": "Import Paths",
|
|
"exportTitle": "Export Paths",
|
|
"importTarget": "Import Target",
|
|
"importSystem": "System Only",
|
|
"importUser": "User Only",
|
|
"importBoth": "Both",
|
|
"helpTitle": "Help",
|
|
"languageTitle": "Select Language",
|
|
"backupTitle": "Backup Confirmation",
|
|
"backupMessage": "Back up registry before saving?",
|
|
"confirm": "Confirm",
|
|
"cancel": "Cancel",
|
|
"search": "Search paths..."
|
|
},
|
|
"analyze": {
|
|
"title": "PATH Analysis",
|
|
"conflicts": "Conflicts",
|
|
"tools": "Tools",
|
|
"scanning": "Scanning...",
|
|
"noConflicts": "No executable conflicts found",
|
|
"noTools": "No matching executables found",
|
|
"priority": "Prioritized",
|
|
"shadowed": "Shadowed",
|
|
"searchPlaceholder": "Search executable name...",
|
|
"conflictCount": "{{count}} file conflict(s) found"
|
|
},
|
|
"profile": {
|
|
"title": "PATH Profiles",
|
|
"saveCurrent": "Save Current as Profile",
|
|
"namePlaceholder": "Profile name...",
|
|
"save": "Save",
|
|
"load": "Load",
|
|
"apply": "Apply",
|
|
"delete": "Delete",
|
|
"rename": "Rename",
|
|
"noProfiles": "No saved profiles",
|
|
"applyConfirm": "This will overwrite current PATH with profile \"{{name}}\" and write to registry. Confirm?",
|
|
"deleted": "Profile \"{{name}}\" deleted"
|
|
},
|
|
"help": {
|
|
"content": "PathEditor v5.0 — Windows System Environment Variable (PATH) Editor\n\nFeatures:\n• Create/Edit/Delete path entries\n• Move Up/Down to adjust priority\n• One-click cleanup of invalid & duplicate paths\n• Import/Export JSON, CSV, TXT formats\n• Full Undo/Redo support\n\nShortcuts:\n• Ctrl+N New\n• Ctrl+S Save\n• Ctrl+Z Undo\n• Ctrl+Y Redo\n• Ctrl+F Search\n• Delete Delete selected\n• F1 Help\n\nAuthor: 刘航宇\nGitHub: https://github.com/LHY0125/PathEditor"
|
|
}
|
|
}
|