Skip to content

Commit a742fa0

Browse files
author
catlog22
committed
feat: 将 Code Index MCP 提供者的按钮更改为下拉选择框,优化用户界面
1 parent 6894c7e commit a742fa0

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ccw/src/templates/dashboard-js/views/cli-manager.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -993,14 +993,10 @@ function renderCliSettingsSection() {
993993
t('cli.codeIndexMcp') +
994994
'</label>' +
995995
'<div class="cli-setting-control">' +
996-
'<div class="flex items-center bg-muted rounded-lg p-0.5">' +
997-
'<button class="code-mcp-btn px-3 py-1.5 text-xs font-medium rounded-md transition-all ' + (codeIndexMcpProvider === 'codexlens' ? 'bg-primary text-primary-foreground shadow-sm' : 'text-muted-foreground hover:text-foreground') + '" onclick="setCodeIndexMcpProvider(\'codexlens\')">' +
998-
'CodexLens' +
999-
'</button>' +
1000-
'<button class="code-mcp-btn px-3 py-1.5 text-xs font-medium rounded-md transition-all ' + (codeIndexMcpProvider === 'ace' ? 'bg-primary text-primary-foreground shadow-sm' : 'text-muted-foreground hover:text-foreground') + '" onclick="setCodeIndexMcpProvider(\'ace\')">' +
1001-
'ACE' +
1002-
'</button>' +
1003-
'</div>' +
996+
'<select class="cli-setting-select" onchange="setCodeIndexMcpProvider(this.value)">' +
997+
'<option value="codexlens"' + (codeIndexMcpProvider === 'codexlens' ? ' selected' : '') + '>CodexLens</option>' +
998+
'<option value="ace"' + (codeIndexMcpProvider === 'ace' ? ' selected' : '') + '>ACE (Augment)</option>' +
999+
'</select>' +
10041000
'</div>' +
10051001
'<p class="cli-setting-desc">' + t('cli.codeIndexMcpDesc') + '</p>' +
10061002
'</div>' +

0 commit comments

Comments
 (0)