feat(watcher): Ajout watcher de fichiers temps réel
- Migration 0006: colonne watcher_enabled
- Crate notify pour surveillance FS temps réel (FSEvents/inotify)
- Watcher redémarré toutes les 30s si config change
- Détection instantanée création/modification/suppression
- Création job immédiate quand fichier détecté
- API: support watcher_enabled dans UpdateMonitoringRequest
- Backoffice: toggle Watcher avec indicateur ⚡
- Fonctionne en parallèle du scheduler auto-scan
Usage: Activer Watcher + Auto-scan pour réactivité max
This commit is contained in:
@@ -1234,3 +1234,27 @@ tr.job-highlighted td {
|
||||
font-size: 0.75rem;
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
/* Watcher toggle styles */
|
||||
.watcher-toggle {
|
||||
background: hsl(45 93% 90% / 0.3);
|
||||
border: 1px solid hsl(45 93% 47% / 0.3);
|
||||
border-radius: 4px;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
.watcher-toggle.active {
|
||||
background: hsl(45 93% 90% / 0.6);
|
||||
border-color: hsl(45 93% 47% / 0.6);
|
||||
}
|
||||
|
||||
.toggle-hint {
|
||||
margin-left: 4px;
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
.monitor-options {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user