Skip to content

Commit 651b6f9

Browse files
committed
refactor(web-ui): refine docs panel layout and trim copy
- toolbar grid: 3 equal columns, fix right-heavy span4/8/8 imbalance - summary strip: 3 equal columns, drop empty 4th slot - command box: remove nested border/background on install-command - install/registry action tabs: segmented control styling - faq: drop rules card, troubleshooting-only with stretch alignment - remove 'currently installed commands' card and its computed - converge i18n: drop docs.subtitle / section.*Note / rule.* / installed.* - regenerate web-ui-render.precompiled.js from updated template
1 parent 304c819 commit 651b6f9

9 files changed

Lines changed: 82 additions & 202 deletions

File tree

web-ui/modules/app.computed.dashboard.mjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ export function createDashboardComputed() {
174174
};
175175
});
176176
},
177-
currentInstalledCommandCards() {
178-
const targets = Array.isArray(this.installTargetCards) ? this.installTargetCards : [];
179-
return targets.filter((target) => target && target.installed === true);
180-
},
181177
installRegistryPreview() {
182178
return this.resolveInstallRegistryUrl(this.installRegistryPreset, this.installRegistryCustom);
183179
},

web-ui/modules/i18n/locales/en.mjs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -619,23 +619,15 @@ const en = Object.freeze({
619619

620620
// Docs panel
621621
'docs.title': 'CLI Install',
622-
'docs.subtitle': 'Install commands for Claude Code / Gemini CLI / CodeBuddy Code / Codex CLI / KiloCode CLI.',
623622
'docs.section.commands': 'Commands',
624-
'docs.section.commandsNote': 'Copy and run directly.',
625-
'docs.installed.title': 'Currently installed commands',
626-
'docs.installed.count': '{count} installed',
627-
'docs.installed.empty': 'No installed commands detected',
628623
'docs.section.faq': 'FAQ',
629-
'docs.section.faqNote': 'Common issues and tips.',
630624
'docs.command.aria': '{name} command',
631625
'docs.registryHintPrefix': 'Command will append:',
632626
'docs.registryHintCustom': 'Enter a full URL (http/https) to append as registry.',
633627
'docs.registry.tencent': 'Tencent Cloud',
634628
'docs.meta.bin': 'bin: {bin}',
635629
'docs.termuxLabel': 'Termux',
636630
'docs.termuxAria': 'Termux Codex CLI command',
637-
'docs.rule.1': 'Commands depend on package manager, registry and action.',
638-
'docs.rule.2': 'Custom registry is used for install/update only.',
639631
'docs.tip.win.1': 'If PowerShell reports permission errors (EACCES/EPERM), run the install command as Administrator.',
640632
'docs.tip.win.2': 'If the command is still not found after install, reopen the terminal and run: where codex / where claude / where gemini / where codebuddy.',
641633
'docs.tip.win.3': 'If your network blocks npm, try switching registry presets (npmmirror / Tencent / Custom).',

web-ui/modules/i18n/locales/ja.mjs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -621,23 +621,15 @@ const ja = Object.freeze({
621621

622622
// Docs panel
623623
'docs.title': 'CLI インストールドキュメント',
624-
'docs.subtitle': 'Claude Code / Gemini CLI / CodeBuddy Code / Codex CLI / KiloCode CLI コマンドを表示。',
625624
'docs.section.commands': 'インストールコマンド',
626-
'docs.section.commandsNote': 'コマンドは直接コピーできます。',
627-
'docs.installed.title': '現在インストール済みのコマンド',
628-
'docs.installed.count': '{count} 個インストール済み',
629-
'docs.installed.empty': 'インストール済みコマンドは検出されていません',
630625
'docs.section.faq': 'よくある質問',
631-
'docs.section.faqNote': 'よくある質問は以下をご覧ください。',
632626
'docs.command.aria': '{name} コマンド',
633627
'docs.registryHintPrefix': 'コマンドに付加:',
634628
'docs.registryHintCustom': '完全な URL(http/https 含む)を入力してください。コマンドに自動付加されます。',
635629
'docs.registry.tencent': 'Tencent Cloud',
636630
'docs.meta.bin': 'bin: {bin}',
637631
'docs.termuxLabel': 'Termux',
638632
'docs.termuxAria': 'Termux Codex CLI command',
639-
'docs.rule.1': 'コマンドは現在のパッケージマネージャー、ミラー、操作に基づいて生成されます。',
640-
'docs.rule.2': 'カスタムミラーはインストールとアップグレードにのみ使用されます。',
641633
'docs.tip.win.1': 'PowerShell で権限不足(EACCES/EPERM)エラーが発生した場合は、管理者としてインストールコマンドを実行してください。',
642634
'docs.tip.win.2': 'インストール後にコマンドが見つからない場合は、ターミナルを再起動して実行:where codex / where claude / where gemini / where codebuddy。',
643635
'docs.tip.win.3': '企業ネットワークで制限がある場合は、ミラーソース(npmmirror / Tencent Cloud / カスタム)を切り替えてください。',

web-ui/modules/i18n/locales/vi.mjs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -826,23 +826,15 @@ const vi = Object.freeze({
826826
'modal.openclaw.quick.optionsHint': 'Khi tắt ghi đè, chỉ điền các trường còn thiếu.',
827827
'modal.openclaw.quick.writeToEditor': 'Ghi vào editor',
828828
'docs.title': 'Cài CLI',
829-
'docs.subtitle': 'Lệnh cài đặt cho Claude Code / Gemini CLI / CodeBuddy Code / Codex CLI / KiloCode CLI.',
830829
'docs.section.commands': 'Lệnh',
831-
'docs.section.commandsNote': 'Sao chép và chạy trực tiếp.',
832-
'docs.installed.title': 'Lệnh hiện đã cài đặt',
833-
'docs.installed.count': 'Đã cài {count}',
834-
'docs.installed.empty': 'Chưa phát hiện lệnh đã cài',
835830
'docs.section.faq': 'FAQ',
836-
'docs.section.faqNote': 'Vấn đề phổ biến và mẹo.',
837831
'docs.command.aria': 'Lệnh {name}',
838832
'docs.registryHintPrefix': 'Lệnh sẽ thêm:',
839833
'docs.registryHintCustom': 'Nhập URL đầy đủ (http/https) để thêm làm registry.',
840834
'docs.registry.tencent': 'Tencent Cloud',
841835
'docs.meta.bin': 'bin: {bin}',
842836
'docs.termuxLabel': 'Termux',
843837
'docs.termuxAria': 'Lệnh Codex CLI cho Termux',
844-
'docs.rule.1': 'Lệnh phụ thuộc vào trình quản lý gói, registry và hành động.',
845-
'docs.rule.2': 'Registry tùy chỉnh chỉ dùng cho cài đặt/cập nhật.',
846838
'docs.tip.win.1': 'Nếu PowerShell báo lỗi quyền (EACCES/EPERM), chạy lệnh cài đặt với quyền Administrator.',
847839
'docs.tip.win.2': 'Nếu lệnh không tìm thấy sau cài đặt, mở lại terminal và chạy: where codex / where claude.',
848840
'docs.tip.win.3': 'Nếu mạng chặn npm, thử chuyển registry (npmmirror / Tencent / Tùy chỉnh).',

web-ui/modules/i18n/locales/zh-tw.mjs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -619,23 +619,15 @@ const zhTw = Object.freeze({
619619

620620
// Docs panel
621621
'docs.title': 'CLI 安裝文檔',
622-
'docs.subtitle': '查看 Claude Code / Gemini CLI / CodeBuddy Code / Codex CLI / KiloCode CLI 命令。',
623622
'docs.section.commands': '安裝命令',
624-
'docs.section.commandsNote': '命令可直接複製。',
625-
'docs.installed.title': '目前已安裝命令',
626-
'docs.installed.count': '已安裝 {count} 個',
627-
'docs.installed.empty': '未偵測到已安裝命令',
628623
'docs.section.faq': '常見問題',
629-
'docs.section.faqNote': '常見問題見下。',
630624
'docs.command.aria': '{name} 命令',
631625
'docs.registryHintPrefix': '命令將附加:',
632626
'docs.registryHintCustom': '請輸入完整 URL(含 http/https),將自動附加到命令。',
633627
'docs.registry.tencent': '騰訊雲',
634628
'docs.meta.bin': 'bin: {bin}',
635629
'docs.termuxLabel': 'Termux',
636630
'docs.termuxAria': 'Termux Codex CLI command',
637-
'docs.rule.1': '命令按目前包管理器、鏡像與操作生成。',
638-
'docs.rule.2': '自訂鏡像僅用於安裝與升級。',
639631
'docs.tip.win.1': 'PowerShell 報權限不足(EACCES/EPERM)時,請以管理員身份執行安裝命令。',
640632
'docs.tip.win.2': '安裝後若仍提示找不到命令,重開終端並執行:where codex / where claude / where gemini / where codebuddy。',
641633
'docs.tip.win.3': '公司網路受限時,可先切換鏡像源快捷項(npmmirror / 騰訊雲 / 自訂)。',

web-ui/modules/i18n/locales/zh.mjs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -619,23 +619,15 @@ const zh = Object.freeze({
619619

620620
// Docs panel
621621
'docs.title': 'CLI 安装文档',
622-
'docs.subtitle': '查看 Claude Code / Gemini CLI / CodeBuddy Code / Codex CLI / KiloCode CLI 命令。',
623622
'docs.section.commands': '安装命令',
624-
'docs.section.commandsNote': '命令可直接复制。',
625-
'docs.installed.title': '当前已安装命令',
626-
'docs.installed.count': '已安装 {count} 个',
627-
'docs.installed.empty': '未检测到已安装命令',
628623
'docs.section.faq': '常见问题',
629-
'docs.section.faqNote': '常见问题见下。',
630624
'docs.command.aria': '{name} 命令',
631625
'docs.registryHintPrefix': '命令将附加:',
632626
'docs.registryHintCustom': '请输入完整 URL(含 http/https),将自动附加到命令。',
633627
'docs.registry.tencent': '腾讯云',
634628
'docs.meta.bin': 'bin: {bin}',
635629
'docs.termuxLabel': 'Termux',
636630
'docs.termuxAria': 'Termux Codex CLI command',
637-
'docs.rule.1': '命令按当前包管理器、镜像与操作生成。',
638-
'docs.rule.2': '自定义镜像仅用于安装与升级。',
639631
'docs.tip.win.1': 'PowerShell 报权限不足(EACCES/EPERM)时,请以管理员身份执行安装命令。',
640632
'docs.tip.win.2': '安装后若仍提示找不到命令,重开终端并执行:where codex / where claude / where gemini / where codebuddy。',
641633
'docs.tip.win.3': '公司网络受限时,可先切换镜像源快捷项(npmmirror / 腾讯云 / 自定义)。',

web-ui/partials/index/panel-docs.html

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
<div class="selector-section">
88
<div class="selector-header">
99
<span class="selector-title">{{ t('docs.title') }}</span>
10-
<div class="skills-panel-note docs-section-note">{{ t('docs.subtitle') }}</div>
1110
</div>
1211

1312
<div class="docs-toolbar-grid">
@@ -54,28 +53,11 @@
5453
<strong class="docs-summary-value">{{ installRegistryPreview || 'npmmirror' }}</strong>
5554
</div>
5655
</div>
57-
58-
<div class="docs-installed-card">
59-
<div class="docs-installed-head">
60-
<span class="docs-installed-title">{{ t('docs.installed.title') }}</span>
61-
<span class="docs-installed-count">{{ currentInstalledCommandCards.length ? t('docs.installed.count', { count: currentInstalledCommandCards.length }) : t('docs.installed.empty') }}</span>
62-
</div>
63-
<div v-if="currentInstalledCommandCards.length" class="docs-installed-list">
64-
<div v-for="target in currentInstalledCommandCards" :key="'docs-installed-' + target.id" class="docs-installed-item">
65-
<div class="docs-installed-main">
66-
<span class="docs-installed-name">{{ target.name }}</span>
67-
<span class="docs-installed-version">{{ target.version || '—' }}</span>
68-
</div>
69-
<code class="docs-installed-command">{{ target.commandPath || target.bin }}</code>
70-
</div>
71-
</div>
72-
</div>
7356
</div>
7457

7558
<div class="selector-section">
7659
<div class="selector-header">
7760
<span class="selector-title">{{ t('docs.section.commands') }}</span>
78-
<div class="skills-panel-note docs-section-note">{{ t('docs.section.commandsNote') }}</div>
7961
</div>
8062

8163
<div class="install-list docs-install-list">
@@ -108,7 +90,6 @@
10890
<div class="selector-section">
10991
<div class="selector-header">
11092
<span class="selector-title">{{ t('docs.section.faq') }}</span>
111-
<div class="skills-panel-note docs-section-note">{{ t('docs.section.faqNote') }}</div>
11293
</div>
11394

11495
<div class="docs-help-grid">
@@ -118,13 +99,6 @@
11899
<li v-for="tip in installTroubleshootingTips" :key="tip">{{ tip }}</li>
119100
</ul>
120101
</div>
121-
<div class="docs-note-card">
122-
<div class="docs-note-title">{{ t('common.rules') }}</div>
123-
<ul class="docs-static-list">
124-
<li>{{ t('docs.rule.1') }}</li>
125-
<li>{{ t('docs.rule.2') }}</li>
126-
</ul>
127-
</div>
128102
</div>
129103
</div>
130104
</div>

0 commit comments

Comments
 (0)