refactor: 整体重构 (#1381)

* feat: pnpm new

* Refactor build and release workflows, update dependencies

Switch build scripts and workflows from npm to pnpm, update build and artifact paths, and simplify release workflow by removing version detection and changelog steps. Add new dependencies (silk-wasm, express, ws, node-pty-prebuilt-multiarch), update exports in package.json files, and add vite config for napcat-framework. Also, rename manifest.json for framework package and fix static asset copying in shell build config.
This commit is contained in:
手瓜一十雪
2025-11-13 15:39:42 +08:00
committed by GitHub
parent e2486606f9
commit 4360775eff
778 changed files with 2356 additions and 26391 deletions

View File

@@ -0,0 +1,112 @@
import {
BugIcon2,
FileIcon,
InfoIcon,
LogIcon,
RouteIcon,
SettingsIcon,
SignalTowerIcon,
TerminalIcon,
} from '@/components/icons';
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 WebUI',
description: 'NapCat WebUI.',
navItems: [
{
label: '基础信息',
icon: (
<div className='w-5 h-5'>
<RouteIcon />
</div>
),
href: '/',
},
{
label: '网络配置',
icon: (
<div className='w-5 h-5'>
<SignalTowerIcon />
</div>
),
href: '/network',
},
{
label: '其他配置',
icon: (
<div className='w-5 h-5'>
<SettingsIcon />
</div>
),
href: '/config',
},
{
label: '猫猫日志',
icon: (
<div className='w-5 h-5'>
<LogIcon />
</div>
),
href: '/logs',
},
{
label: '接口调试',
icon: (
<div className='w-5 h-5'>
<BugIcon2 />
</div>
),
items: [
{
label: 'HTTP',
href: '/debug/http',
},
{
label: 'Websocket',
href: '/debug/ws',
},
],
},
{
label: '文件管理',
icon: (
<div className='w-5 h-5'>
<FileIcon />
</div>
),
href: '/file_manager',
},
{
label: '系统终端',
icon: (
<div className='w-5 h-5'>
<TerminalIcon />
</div>
),
href: '/terminal',
},
{
label: '关于我们',
icon: (
<div className='w-5 h-5'>
<InfoIcon />
</div>
),
href: '/about',
},
] as MenuItem[],
links: {
github: 'https://github.com/NapNeko/NapCatQQ',
docs: 'https://napcat.napneko.icu/',
},
};