refactor: 优化设置面板和模型提示文案
- 移除设置面板中的规则配置标签页 - 更新模型选择器提示文案为"FPGA专属微调模型"
This commit is contained in:
@ -18,7 +18,7 @@ export function getModelSelectorContent(
|
|||||||
<img src="${maxIcon || ""}" class="model-icon" alt="Max" style="display: ${maxIcon ? "block" : "none"};">
|
<img src="${maxIcon || ""}" class="model-icon" alt="Max" style="display: ${maxIcon ? "block" : "none"};">
|
||||||
<span class="model-label">Max</span>
|
<span class="model-label">Max</span>
|
||||||
</div>
|
</div>
|
||||||
<span class="tooltiptext">IC Coder自研顶尖微调模型</span>
|
<span class="tooltiptext">IC Coder自研FPGA专属微调模型</span>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,11 +3,6 @@ import {
|
|||||||
getGeneralSettingsComponentStyles,
|
getGeneralSettingsComponentStyles,
|
||||||
getGeneralSettingsComponentScript,
|
getGeneralSettingsComponentScript,
|
||||||
} from "./generalSettingsComponent";
|
} from "./generalSettingsComponent";
|
||||||
import {
|
|
||||||
getRulesSettingsComponentContent,
|
|
||||||
getRulesSettingsComponentStyles,
|
|
||||||
getRulesSettingsComponentScript,
|
|
||||||
} from "./rulesSettingsComponent";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取设置面板的 HTML 内容
|
* 获取设置面板的 HTML 内容
|
||||||
@ -31,18 +26,13 @@ export function getSettingsComponentContent(): string {
|
|||||||
<button class="settings-nav-item active" data-tab="general" onclick="switchSettingsTab('general')">
|
<button class="settings-nav-item active" data-tab="general" onclick="switchSettingsTab('general')">
|
||||||
通用
|
通用
|
||||||
</button>
|
</button>
|
||||||
<button class="settings-nav-item" data-tab="rules" onclick="switchSettingsTab('rules')">
|
|
||||||
规则
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="settings-content">
|
<div class="settings-content">
|
||||||
<div class="settings-tab-content active" id="generalSettings">
|
<div class="settings-tab-content active" id="generalSettings">
|
||||||
${getGeneralSettingsComponentContent()}
|
${getGeneralSettingsComponentContent()}
|
||||||
</div>
|
</div>
|
||||||
<div class="settings-tab-content" id="rulesSettings">
|
|
||||||
${getRulesSettingsComponentContent()}
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -186,7 +176,6 @@ export function getSettingsComponentStyles(): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
${getGeneralSettingsComponentStyles()}
|
${getGeneralSettingsComponentStyles()}
|
||||||
${getRulesSettingsComponentStyles()}
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -196,7 +185,6 @@ export function getSettingsComponentStyles(): string {
|
|||||||
export function getSettingsComponentScript(): string {
|
export function getSettingsComponentScript(): string {
|
||||||
return `
|
return `
|
||||||
${getGeneralSettingsComponentScript()}
|
${getGeneralSettingsComponentScript()}
|
||||||
${getRulesSettingsComponentScript()}
|
|
||||||
|
|
||||||
// 打开设置面板
|
// 打开设置面板
|
||||||
function openSettingsModal() {
|
function openSettingsModal() {
|
||||||
|
|||||||
Reference in New Issue
Block a user