Files
NapCatQQ/packages/napcat-webui-frontend/src/config/site.tsx
T
手瓜一十雪 ed1872a349 Add plugin management to WebUI backend and frontend
Implemented backend API and router for plugin management (list, reload, enable/disable, uninstall) and exposed corresponding frontend controller and dashboard page. Updated navigation and site config to include plugin management. Refactored plugin manager adapter for public methods and improved plugin metadata handling.
2026-01-17 16:14:46 +08:00

84 lines
1.7 KiB
TypeScript

import {
LuActivity,
LuFileText,
LuFolderOpen,
LuInfo,
LuLayoutDashboard,
LuSettings,
LuSignal,
LuTerminal,
LuZap,
LuPackage,
} from 'react-icons/lu';
export type SiteConfig = typeof siteConfig;
export interface MenuItem {
label: string;
icon?: React.ReactNode;
autoOpen?: boolean;
href?: string;
items?: MenuItem[];
customIcon?: string;
}
export const siteConfig = {
name: 'NapCat',
description: 'NapCat WebUI.',
navItems: [
{
label: '基础信息',
icon: <LuLayoutDashboard className='w-5 h-5' />,
href: '/',
},
{
label: '网络配置',
icon: <LuSignal className='w-5 h-5' />,
href: '/network',
},
{
label: '其他配置',
icon: <LuSettings className='w-5 h-5' />,
href: '/config',
},
{
label: '猫猫日志',
icon: <LuFileText className='w-5 h-5' />,
href: '/logs',
},
{
label: '接口调试',
icon: <LuActivity className='w-5 h-5' />,
href: '/debug/http',
},
{
label: '实时调试',
icon: <LuZap className='w-5 h-5' />,
href: '/debug/ws',
},
{
label: '文件管理',
icon: <LuFolderOpen className='w-5 h-5' />,
href: '/file_manager',
},
{
label: '插件管理',
icon: <LuPackage className='w-5 h-5' />,
href: '/plugins',
},
{
label: '系统终端',
icon: <LuTerminal className='w-5 h-5' />,
href: '/terminal',
},
{
label: '关于我们',
icon: <LuInfo className='w-5 h-5' />,
href: '/about',
},
] as MenuItem[],
links: {
github: 'https://github.com/NapNeko/NapCatQQ',
docs: 'https://napcat.napneko.icu/',
},
};