refactor: 优化设置面板和模型提示文案

- 移除设置面板中的规则配置标签页
   - 更新模型选择器提示文案为"FPGA专属微调模型"
This commit is contained in:
Roe-xin
2026-03-10 14:23:37 +08:00
parent f5dd7534f0
commit 840436eb36
2 changed files with 2 additions and 14 deletions

View File

@ -18,7 +18,7 @@ export function getModelSelectorContent(
<img src="${maxIcon || ""}" class="model-icon" alt="Max" style="display: ${maxIcon ? "block" : "none"};">
<span class="model-label">Max</span>
</div>
<span class="tooltiptext">IC Coder自研顶尖微调模型</span>
<span class="tooltiptext">IC Coder自研FPGA专属微调模型</span>
</div>
`;
}

View File

@ -3,11 +3,6 @@ import {
getGeneralSettingsComponentStyles,
getGeneralSettingsComponentScript,
} from "./generalSettingsComponent";
import {
getRulesSettingsComponentContent,
getRulesSettingsComponentStyles,
getRulesSettingsComponentScript,
} from "./rulesSettingsComponent";
/**
* 获取设置面板的 HTML 内容
@ -31,18 +26,13 @@ export function getSettingsComponentContent(): string {
<button class="settings-nav-item active" data-tab="general" onclick="switchSettingsTab('general')">
通用
</button>
<button class="settings-nav-item" data-tab="rules" onclick="switchSettingsTab('rules')">
规则
</button>
</div>
<div class="settings-content">
<div class="settings-tab-content active" id="generalSettings">
${getGeneralSettingsComponentContent()}
</div>
<div class="settings-tab-content" id="rulesSettings">
${getRulesSettingsComponentContent()}
</div>
</div>
</div>
</div>
@ -186,7 +176,6 @@ export function getSettingsComponentStyles(): string {
}
${getGeneralSettingsComponentStyles()}
${getRulesSettingsComponentStyles()}
`;
}
@ -196,7 +185,6 @@ export function getSettingsComponentStyles(): string {
export function getSettingsComponentScript(): string {
return `
${getGeneralSettingsComponentScript()}
${getRulesSettingsComponentScript()}
// 打开设置面板
function openSettingsModal() {