NapCatQQ/packages/napcat-webui-backend
手瓜一十雪 699b46acbd Improve plugin status handling and dirname lookup
Enhanced setPluginStatus to support enabling/disabling plugins by both package name and dirname, improving robustness when plugins are not loaded. Also removed redundant directory name matching logic from findDirnameById in the web UI backend.

Register plugin after installation in PluginStore

Adds logic to immediately register a plugin with the plugin manager after installation, both in the standard and SSE install handlers. This ensures newly installed plugins are available without requiring a restart or manual reload.

Refactor plugin path handling in plugin manager

Simplifies plugin directory and data path resolution by using pluginPath from the plugin context instead of fileId. Streamlines plugin uninstall and reload logic, removing redundant file system scans and improving code clarity.

Refactor plugin API to use package id and improve UX

Standardized plugin management APIs and frontend to use 'id' (package name) instead of ambiguous 'name' or 'filename'. Added support for a 'plugin' display field in package.json and improved plugin store UI to show install/update status. Refactored backend and frontend logic for enabling, disabling, uninstalling, and configuring plugins to use consistent identifiers, and enhanced type definitions and documentation for better maintainability.
2026-01-29 16:42:15 +08:00
..
src Improve plugin status handling and dirname lookup 2026-01-29 16:42:15 +08:00
index.ts Support preferred WebUI port via environment variable 2026-01-18 12:19:03 +08:00
package.json Refactor font handling and theme config, switch to CodeMirror editor 2025-12-24 18:02:54 +08:00
Readme.md refactor: 整体重构 (#1381) 2025-11-13 15:39:42 +08:00
tsconfig.json Refactor TypeScript configs to use shared base 2025-11-15 14:00:27 +08:00
webui.json Add flexible IP access control to WebUI config 2026-01-26 19:46:15 +08:00

The Path of NapCatQQ

Tiny WebUi Backend for NapCatQQ