feat: refactor market

This commit is contained in:
WangCham
2026-05-09 11:49:44 +08:00
parent f306c762c8
commit fffc862fe6
18 changed files with 1021 additions and 116 deletions
@@ -7,9 +7,7 @@ import {
Workflow,
BookMarked,
Puzzle,
Store,
Hexagon,
Mountain,
PlusCircle,
} from 'lucide-react';
const t = (key: string) => {
@@ -98,10 +96,10 @@ export const sidebarConfigList = [
section: 'extensions',
}),
new SidebarChildVO({
id: 'market',
name: t('sidebar.pluginMarket'),
icon: <Store className="text-blue-500" />,
route: '/home/market',
id: 'add-extension',
name: t('sidebar.addExtension'),
icon: <PlusCircle className="text-blue-500" />,
route: '/home/add-extension',
description: t('plugins.description'),
helpLink: {
en_US: 'https://link.langbot.app/en/docs/plugins',
@@ -110,29 +108,4 @@ export const sidebarConfigList = [
},
section: 'extensions',
}),
new SidebarChildVO({
id: 'mcp',
name: t('sidebar.mcpServers'),
icon: <Hexagon className="text-blue-500" />,
route: '/home/mcp',
description: t('mcp.title'),
helpLink: {
en_US: '',
zh_Hans: '',
},
section: 'extensions',
}),
new SidebarChildVO({
id: 'skills',
name: t('skills.title'),
icon: <Mountain className="text-blue-500" />,
route: '/home/skills',
description: t('skills.description'),
helpLink: {
en_US: '',
zh_Hans: '',
ja_JP: '',
},
section: 'extensions',
}),
];
];