Files
NebulaShell/store/@{FutureOSS}/hot-reload.disabled
qwen.ai[bot] 27a1eb8a3c ### User query:
这次提交的标题

### Changes made to the code/files:

Title: Remove PHP dependencies and refactor UI rendering to pure HTML templates

Key features implemented:
- Refactored dashboard plugin to remove PHP dependency and implement pure HTML/CSS/JS template rendering
- Updated log-terminal plugin to replace PHP-based UI with native Python HTML template generation
- Modified package manager plugin to eliminate PHP view files and use direct HTML string construction
- Removed all PHP view template files across dashboard, log-terminal, and package manager plugins
- Updated .gitignore to include additional build artifacts and environment files
- Enhanced dashboard with real-time metrics, system information, and network statistics without external PHP processing

The overall change migrates the system from requiring PHP for UI rendering to using pure Python-based HTML template generation, simplifying deployment and removing external dependencies.
2026-04-25 09:55:28 +00:00
..
2026-04-25 09:55:28 +00:00
2026-04-17 23:15:15 +08:00
2026-04-17 23:15:15 +08:00
2026-04-17 23:15:15 +08:00

hot-reload 热插拔

运行时加载、卸载、更新插件,无需重启服务。

功能

  • 运行时加载新插件
  • 运行时卸载插件
  • 运行时更新插件(热重载)
  • 自动监听文件变化(可选)
  • 模块缓存清理

使用

from pathlib import Path

# 加载新插件
hot_reload.load_plugin(Path("store/@{Author/new-plugin"))

# 卸载插件
hot_reload.unload_plugin("plugin-name")

# 更新插件
hot_reload.reload_plugin("plugin-name", Path("store/@{Author/plugin-name"))

注意事项

  • 插件必须实现 init(), start(), stop()
  • 卸载时会调用 stop()
  • 更新时先 stop()init() + start()