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