feat(about): Hermes config/upgrade/uninstall use modal dialogs with logs

配置按钮: 弹出模态框显示当前 Hermes 配置(Provider/URL/Key/Model),
  带"前往配置向导"按钮跳转 setup 页面
升级按钮: 确认模态框 → 进度条+实时日志(监听 hermes-install-log 事件)
卸载按钮: 两步确认(是否卸载 → 是否清除配置) → 进度条+日志
所有操作完成后自动刷新 Hermes 卡片数据
新增 6 个 i18n 键
This commit is contained in:
晴天
2026-04-13 10:35:37 +08:00
parent d8d671a221
commit 3fc73b485b
2 changed files with 100 additions and 38 deletions

View File

@@ -31,6 +31,11 @@ export default {
hermesUninstallCleanConfig: _('是否同时清除配置文件?(选「取消」保留配置)', 'Also remove config files? (Cancel to keep)', '是否同時清除配置文件?(選「取消」保留配置)'),
hermesUninstallOk: _('Hermes Agent 已卸载', 'Hermes Agent uninstalled', 'Hermes Agent 已卸載'),
hermesUninstallFail: _('卸载失败: {error}', 'Uninstall failed: {error}', '卸載失敗: {error}'),
hermesConfigFile: _('配置文件', 'Config file', '配置文件', '設定ファイル', '설정 파일'),
hermesGoSetup: _('前往配置向导', 'Go to Setup Wizard', '前往配置嚮導'),
hermesUpgradeConfirm: _('确定要升级 Hermes Agent 吗?将从 GitHub 重新安装最新版本。', 'Are you sure you want to upgrade Hermes Agent? This will reinstall the latest version from GitHub.', '確定要升級 Hermes Agent 嗎?將從 GitHub 重新安裝最新版本。'),
hermesUninstallCleanConfigHint: _('同时清除配置文件和虚拟环境', 'Also removing config files and virtual environment', '同時清除配置文件和虛擬環境'),
notSet: _('未设置', 'Not set', '未設置', '未設定', '미설정'),
aheadOfRecommended: _('当前版本高于推荐稳定版: {ver}', 'Current version is ahead of recommended stable: {ver}', '目前版本高於推薦穩定版: {ver}'),
rollbackToRecommended: _('回退到推荐版', 'Rollback to recommended', '回退到推薦版'),
recommendedStable: _('推荐稳定版: {ver}', 'Recommended stable: {ver}', '推薦穩定版: {ver}', '推奨安定版: {ver}', '권장 안정 버전: {ver}'),