feat: module viewLogs — streaming journalctl via WebSocket
- module.json : métadonnées du module (nav_href, nav_icon, nav_color, nav_label_key) - backend/go.mod : dépendance sur core/backend via replace directive - backend/logs.go : implémente modules.Module, routes /api/logs/units et /ws/logs - Utilise r.RunOnTarget et r.StreamOnTarget du Registry (pas d'accès internal) - Streaming journalctl -f via WebSocket - Enregistrement du nav item via r.RegisterNavItem - frontend/logs.html : page de visualisation des journaux - Composant logsPage Alpine.js inline (autonome, indépendant de core app.js) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
15e1a32a7b
4 changed files with 349 additions and 0 deletions
12
module.json
Normal file
12
module.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"id": "viewLogs",
|
||||
"name": "Journaux",
|
||||
"description": "Consultation des journaux système via journalctl en temps réel",
|
||||
"version": "1.0.0",
|
||||
"author": "proxmoxPanel",
|
||||
"core_min_version": "1.0.0",
|
||||
"nav_href": "/viewLogs/logs.html",
|
||||
"nav_icon": "lnid-scroll-angular-1",
|
||||
"nav_color": "#38bdf8",
|
||||
"nav_label_key": "nav.logs"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue