mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-29 09:55:56 +08:00
feat: 新增 PATH 智能分析功能 — 冲突检测 + 工具清单
- scan_conflicts: 检测不同目录中的同名可执行文件(遮蔽冲突) - scan_tools: 扫描各目录提供的可执行文件,支持关键词搜索 - Rust scanner.rs 后端,前端 AnalyzeDialog 弹窗 - 工具栏新增「分析」按钮 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -20,6 +20,7 @@ interface ToolBarProps {
|
||||
onHelp: () => void;
|
||||
onLanguage: () => void;
|
||||
onDarkMode: () => void;
|
||||
onAnalyze: () => void;
|
||||
}
|
||||
|
||||
export function ToolBar(props: ToolBarProps) {
|
||||
@@ -66,6 +67,9 @@ export function ToolBar(props: ToolBarProps) {
|
||||
<button className={btnClass} style={btnStyle} onClick={props.onLanguage}>
|
||||
{t('button.language')}
|
||||
</button>
|
||||
<button className={btnClass} style={btnStyle} onClick={props.onAnalyze}>
|
||||
{t('button.analyze')}
|
||||
</button>
|
||||
<button className={btnClass} style={btnStyle} onClick={props.onDarkMode}>
|
||||
{t('button.darkMode')}
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user