调整扩展市场主菜单入口
This commit is contained in:
@@ -1094,6 +1094,16 @@ function App() {
|
||||
return;
|
||||
}
|
||||
|
||||
if (
|
||||
key === "skills" ||
|
||||
key === "agents" ||
|
||||
key === "mcpLibrary" ||
|
||||
key === "workflow"
|
||||
) {
|
||||
setActiveTab(key);
|
||||
return;
|
||||
}
|
||||
|
||||
if (key === "toolIntegration" || key === "systemSettings") {
|
||||
setActiveTab("settings");
|
||||
return;
|
||||
@@ -1114,10 +1124,6 @@ function App() {
|
||||
client: "overview",
|
||||
sessions: "aiChat",
|
||||
automation: "automation",
|
||||
skills: "overview",
|
||||
agents: "overview",
|
||||
mcpLibrary: "overview",
|
||||
workflow: "overview",
|
||||
mcp: "systemSettings",
|
||||
settings: "systemSettings",
|
||||
dependencies: "systemSettings",
|
||||
|
||||
@@ -32,6 +32,10 @@ export type NavKey =
|
||||
| "knowledge"
|
||||
| "document"
|
||||
| "dataFetch"
|
||||
| "skills"
|
||||
| "agents"
|
||||
| "mcpLibrary"
|
||||
| "workflow"
|
||||
| "toolIntegration"
|
||||
| "systemSettings";
|
||||
|
||||
@@ -39,10 +43,6 @@ export type LegacyTabKey =
|
||||
| "client"
|
||||
| "sessions"
|
||||
| "automation"
|
||||
| "skills"
|
||||
| "agents"
|
||||
| "mcpLibrary"
|
||||
| "workflow"
|
||||
| "mcp"
|
||||
| "settings"
|
||||
| "dependencies"
|
||||
@@ -96,6 +96,13 @@ const workspaceItems: NavItem[] = [
|
||||
{ key: "dataFetch", label: "智能取数", icon: <DatabaseOutlined /> },
|
||||
];
|
||||
|
||||
const marketplaceItems: NavItem[] = [
|
||||
{ key: "skills", label: "技能库", icon: <BuildOutlined /> },
|
||||
{ key: "agents", label: "智能体", icon: <RobotOutlined /> },
|
||||
{ key: "mcpLibrary", label: "MCP 库", icon: <ApiOutlined /> },
|
||||
{ key: "workflow", label: "工作流", icon: <ProjectOutlined /> },
|
||||
];
|
||||
|
||||
const settingItems: NavItem[] = [
|
||||
{ key: "toolIntegration", label: "工具集成", icon: <ToolOutlined /> },
|
||||
{ key: "systemSettings", label: "系统设置", icon: <SettingOutlined /> },
|
||||
@@ -105,10 +112,6 @@ function getLegacyItems(isMacOS: boolean): LegacyItem[] {
|
||||
const items: LegacyItem[] = [
|
||||
{ key: "client", label: "客户端", icon: <AppstoreOutlined /> },
|
||||
{ key: "sessions", label: "会话", icon: <TeamOutlined /> },
|
||||
{ key: "skills", label: "技能库", icon: <BuildOutlined /> },
|
||||
{ key: "agents", label: "智能体", icon: <RobotOutlined /> },
|
||||
{ key: "mcpLibrary", label: "MCP 库", icon: <ApiOutlined /> },
|
||||
{ key: "workflow", label: "工作流", icon: <ProjectOutlined /> },
|
||||
{ key: "mcp", label: "MCP", icon: <ApiOutlined /> },
|
||||
{ key: "settings", label: "设置", icon: <SettingOutlined /> },
|
||||
{ key: "dependencies", label: "依赖", icon: <FolderOutlined /> },
|
||||
@@ -240,6 +243,13 @@ export default function AppSidebar({
|
||||
)}
|
||||
</section>
|
||||
|
||||
<section className={styles.navSection}>
|
||||
<div className={styles.sectionTitle}>扩展市场</div>
|
||||
{marketplaceItems.map((item) =>
|
||||
renderNavItem(item, activeNavKey, onNavSelect),
|
||||
)}
|
||||
</section>
|
||||
|
||||
<section className={styles.navSection}>
|
||||
<div className={styles.sectionTitle}>设置</div>
|
||||
{settingItems.map((item) =>
|
||||
|
||||
Reference in New Issue
Block a user