refactor(mcp): Oh-My-Pi 配置移至首位

将 Oh-My-Pi 客户端配置排在第一,同步调整骨架屏形状数组顺序。
This commit is contained in:
xfy 2026-07-28 16:15:23 +08:00
parent ee1732214e
commit 2d995d6eaa
2 changed files with 2 additions and 2 deletions

View File

@ -306,10 +306,10 @@ pub async fn get_mcp_client_configs(token: String) -> Result<McpClientConfigs, S
);
// (标题, 内容, 语言)JSON 配置用 json 语法高亮CLI 一行命令用 bash。
let entries: [(&str, String, &str); 6] = [
("Oh-My-Pi~/.pi/agent/mcp.json 或 .pi/mcp.json", c.omp_json, "json"),
("Claude Code.mcp.json / ~/.claude.json", c.claude_code_json, "json"),
("Cursor~/.cursor/mcp.json", c.cursor_json, "json"),
("Clinecline_mcp_settings.json", c.cline_json, "json"),
("Oh-My-Pi~/.pi/agent/mcp.json 或 .pi/mcp.json", c.omp_json, "json"),
("通用(单 server entry", c.generic_json, "json"),
("Claude Code CLI", c.claude_cli, "bash"),
];

View File

@ -55,10 +55,10 @@ const LIFETIME_OPTIONS: &[(TokenLifetime, &str)] = &[
/// 而非千篇一律的等高块。
#[cfg(target_arch = "wasm32")]
const CONFIG_SKELETON_SHAPES: &[(&str, &str)] = &[
("width: 320px;", "height: 152px;"), // Oh-My-Pi JSON
("width: 260px;", "height: 168px;"), // Claude Code JSON
("width: 200px;", "height: 136px;"), // Cursor JSON
("width: 220px;", "height: 168px;"), // Cline JSON
("width: 320px;", "height: 152px;"), // Oh-My-Pi JSON
("width: 160px;", "height: 104px;"), // 通用 JSON
("width: 140px;", "height: 56px;"), // CLI 一行命令
];