Refactor plugin manager with modular loader and types

Refactors the plugin manager by extracting configuration, loader, and type definitions into separate modules under the 'plugin' directory. Introduces a new PluginLoader class for scanning and loading plugins, and updates the main manager to use modularized logic and improved type safety. This change improves maintainability, separation of concerns, and extensibility for plugin management.
This commit is contained in:
手瓜一十雪
2026-01-30 11:50:22 +08:00
parent 8b8f9987a1
commit 6a9437cb3b
9 changed files with 1615 additions and 664 deletions

View File

@@ -36,11 +36,6 @@ export const siteConfig = {
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' />,
@@ -76,6 +71,11 @@ export const siteConfig = {
icon: <LuTerminal className='w-5 h-5' />,
href: '/terminal',
},
{
label: '系统配置',
icon: <LuSettings className='w-5 h-5' />,
href: '/config',
},
{
label: '关于我们',
icon: <LuInfo className='w-5 h-5' />,