refactor: 优化eslint配置,提升代码质量 (#1341)

* feat: 统一并标准化eslint

* lint: napcat.webui

* lint: napcat.webui

* lint: napcat.core

* build: fix

* lint: napcat.webui

* refactor: 重构eslint

* Update README.md
This commit is contained in:
时瑾
2025-11-03 16:30:45 +08:00
committed by GitHub
parent d5b8f886d6
commit 06f6a542f5
651 changed files with 37981 additions and 37587 deletions

View File

@@ -6,10 +6,10 @@ import {
RouteIcon,
SettingsIcon,
SignalTowerIcon,
TerminalIcon
} from '@/components/icons'
TerminalIcon,
} from '@/components/icons';
export type SiteConfig = typeof siteConfig
export type SiteConfig = typeof siteConfig;
export interface MenuItem {
label: string
icon?: React.ReactNode
@@ -26,87 +26,87 @@ export const siteConfig = {
{
label: '基础信息',
icon: (
<div className="w-5 h-5">
<div className='w-5 h-5'>
<RouteIcon />
</div>
),
href: '/'
href: '/',
},
{
label: '网络配置',
icon: (
<div className="w-5 h-5">
<div className='w-5 h-5'>
<SignalTowerIcon />
</div>
),
href: '/network'
href: '/network',
},
{
label: '其他配置',
icon: (
<div className="w-5 h-5">
<div className='w-5 h-5'>
<SettingsIcon />
</div>
),
href: '/config'
href: '/config',
},
{
label: '猫猫日志',
icon: (
<div className="w-5 h-5">
<div className='w-5 h-5'>
<LogIcon />
</div>
),
href: '/logs'
href: '/logs',
},
{
label: '接口调试',
icon: (
<div className="w-5 h-5">
<div className='w-5 h-5'>
<BugIcon2 />
</div>
),
items: [
{
label: 'HTTP',
href: '/debug/http'
href: '/debug/http',
},
{
label: 'Websocket',
href: '/debug/ws'
}
]
href: '/debug/ws',
},
],
},
{
label: '文件管理',
icon: (
<div className="w-5 h-5">
<div className='w-5 h-5'>
<FileIcon />
</div>
),
href: '/file_manager'
href: '/file_manager',
},
{
label: '系统终端',
icon: (
<div className="w-5 h-5">
<div className='w-5 h-5'>
<TerminalIcon />
</div>
),
href: '/terminal'
href: '/terminal',
},
{
label: '关于我们',
icon: (
<div className="w-5 h-5">
<div className='w-5 h-5'>
<InfoIcon />
</div>
),
href: '/about'
}
href: '/about',
},
] as MenuItem[],
links: {
github: 'https://github.com/NapNeko/NapCatQQ',
docs: 'https://napcat.napneko.icu/'
}
}
docs: 'https://napcat.napneko.icu/',
},
};