Add plugin enable/disable config and status management

Introduces a persistent plugins.json config to track enabled/disabled status for plugins, updates the plugin manager to respect this config when loading plugins, and adds API and frontend support for toggling plugin status. The backend now reports plugin status as 'active', 'stopped', or 'disabled', and the frontend displays these states with appropriate labels. Also updates the built-in plugin package.json with author info.
This commit is contained in:
手瓜一十雪
2026-01-17 16:24:46 +08:00
parent 559c14b702
commit d3b23065b1
5 changed files with 400 additions and 137 deletions

View File

@@ -5,7 +5,7 @@ export interface PluginItem {
version: string;
description: string;
author: string;
status: 'active' | 'disabled';
status: 'active' | 'disabled' | 'stopped';
filename?: string;
}