mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-11 02:33:51 +08:00
feat: 将 Code Index MCP 提供者的按钮更改为下拉选择框,优化用户界面
This commit is contained in:
@@ -993,14 +993,10 @@ function renderCliSettingsSection() {
|
|||||||
t('cli.codeIndexMcp') +
|
t('cli.codeIndexMcp') +
|
||||||
'</label>' +
|
'</label>' +
|
||||||
'<div class="cli-setting-control">' +
|
'<div class="cli-setting-control">' +
|
||||||
'<div class="flex items-center bg-muted rounded-lg p-0.5">' +
|
'<select class="cli-setting-select" onchange="setCodeIndexMcpProvider(this.value)">' +
|
||||||
'<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\')">' +
|
'<option value="codexlens"' + (codeIndexMcpProvider === 'codexlens' ? ' selected' : '') + '>CodexLens</option>' +
|
||||||
'CodexLens' +
|
'<option value="ace"' + (codeIndexMcpProvider === 'ace' ? ' selected' : '') + '>ACE (Augment)</option>' +
|
||||||
'</button>' +
|
'</select>' +
|
||||||
'<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\')">' +
|
|
||||||
'ACE' +
|
|
||||||
'</button>' +
|
|
||||||
'</div>' +
|
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<p class="cli-setting-desc">' + t('cli.codeIndexMcpDesc') + '</p>' +
|
'<p class="cli-setting-desc">' + t('cli.codeIndexMcpDesc') + '</p>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
|||||||
Reference in New Issue
Block a user