feat: 添加新插件支持及多项功能改进

- 新增磁盘加密、打印审计和剪贴板管控插件支持
- 优化水印插件显示效果,支持中文及更多Unicode字符
- 改进硬件资产收集逻辑,更准确获取磁盘和显卡信息
- 增强API错误处理,添加详细日志记录
- 完善前端界面,新增插件管理页面
- 修复多个UI问题,优化页面过渡效果
- 添加环境变量覆盖配置功能
- 实现插件状态管理API
- 更新文档和变更日志
- 添加安装程序脚本支持
This commit is contained in:
iven
2026-04-10 22:21:05 +08:00
parent 3d39f0e426
commit b5333d8c93
101 changed files with 4487 additions and 661 deletions

View File

@@ -0,0 +1,18 @@
-- 015_plugin_control.sql: Add missing plugins to plugin_state CHECK constraint
-- SQLite doesn't support ALTER TABLE ... ALTER CONSTRAINT, so we recreate the table.
-- Drop old table if exists and recreate with expanded plugin list
DROP TABLE IF EXISTS plugin_state;
CREATE TABLE IF NOT EXISTS plugin_state (
id INTEGER PRIMARY KEY AUTOINCREMENT,
plugin_name TEXT NOT NULL UNIQUE CHECK(plugin_name IN (
'web_filter', 'usage_timer', 'software_blocker',
'popup_blocker', 'usb_file_audit', 'watermark',
'disk_encryption', 'usb_audit', 'print_audit', 'clipboard_control'
)),
enabled INTEGER NOT NULL DEFAULT 1,
target_type TEXT NOT NULL DEFAULT 'global',
target_id TEXT,
updated_at TEXT NOT NULL DEFAULT (datetime('now'))
);