Add manual plugin manager registration support

Introduces backend and frontend logic to manually register the plugin manager if not already loaded. Adds a new API endpoint and frontend UI prompt to guide users through registration after plugin installation when necessary.
This commit is contained in:
手瓜一十雪
2026-01-29 15:44:26 +08:00
parent f5a18374c9
commit f3549adf8f
4 changed files with 87 additions and 1 deletions

View File

@@ -4,7 +4,8 @@ import {
SetPluginStatusHandler,
UninstallPluginHandler,
GetPluginConfigHandler,
SetPluginConfigHandler
SetPluginConfigHandler,
RegisterPluginManagerHandler
} from '@/napcat-webui-backend/src/api/Plugin';
import {
GetPluginStoreListHandler,
@@ -20,6 +21,7 @@ router.post('/SetStatus', SetPluginStatusHandler);
router.post('/Uninstall', UninstallPluginHandler);
router.get('/Config', GetPluginConfigHandler);
router.post('/Config', SetPluginConfigHandler);
router.post('/RegisterManager', RegisterPluginManagerHandler);
// 插件商店相关路由
router.get('/Store/List', GetPluginStoreListHandler);