feat(setup): simplify Hermes install — remove extras, add inline logs

1. 移除可选组件(extras)选择 UI,只安装核心包,提高安装成功率
2. 安装过程中内嵌显示实时日志 + 进度条 + 百分比
3. 安装前显示安装说明(uv 管理器、核心包、扩展后装提示)
4. 进度条样式优化:渐变色、更粗、更圆润
5. 日志面板优化:等宽字体、空状态提示、min-height
6. 新增 4 个 i18n 键(installDescSimple/installInfoUv/installInfoCore/installInfoExtrasLater)
This commit is contained in:
晴天
2026-04-13 10:43:58 +08:00
parent 3fc73b485b
commit b676db6a46
3 changed files with 56 additions and 75 deletions

View File

@@ -1786,40 +1786,44 @@
/* === Hermes Setup — Progress Bar === */
.hermes-progress {
height: 6px;
height: 8px;
background: var(--bg-tertiary);
border-radius: 3px;
border-radius: 4px;
overflow: hidden;
margin-bottom: 16px;
}
.hermes-progress-bar {
height: 100%;
background: var(--accent);
border-radius: 3px;
transition: width 0.3s ease;
background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 80%, #fff));
border-radius: 4px;
transition: width 0.4s ease;
}
/* === Hermes Setup — Log Panel === */
.hermes-log-panel {
margin-top: 12px;
border: 1px solid var(--border-primary);
border-radius: var(--radius-md, 8px);
overflow: hidden;
}
.hermes-log-content {
max-height: 240px;
max-height: 260px;
min-height: 80px;
overflow-y: auto;
padding: 12px 16px;
background: var(--bg-tertiary);
font-family: var(--font-mono, monospace);
font-family: var(--font-mono, 'JetBrains Mono', 'Fira Code', monospace);
font-size: 12px;
line-height: 1.7;
line-height: 1.8;
color: var(--text-secondary);
}
.hermes-log-content div {
white-space: pre-wrap;
word-break: break-all;
}
.hermes-log-content:empty::before {
content: '等待日志...';
color: var(--text-tertiary);
font-style: italic;
}
/* === Hermes Setup — Form === */
.hermes-form {