secubox-openwrt/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard
CyberMind-FR 4078b4d7a4 feat: Add LAPI auto-repair and SecuBox theming to CrowdSec Dashboard (v0.6.0-r27)
- Add repair_lapi() RPCD method to auto-fix LAPI configuration issues:
  - Creates /srv/crowdsec/data directory if missing
  - Fixes data_dir and db_path in config.yaml
  - Re-registers localhost machine if needed
  - Restarts CrowdSec and verifies LAPI is working

- Fix register_bouncer() to handle existing bouncers:
  - Deletes existing bouncer before re-registering
  - Gets fresh API key on re-registration

- Fix update_firewall_bouncer_config() UCI path:
  - Changed from crowdsec.bouncer.$key to crowdsec.@bouncer[0].$key
  - Added api_key to allowed parameters

- Rewrite metrics.js with SecuBox cyber-card theming:
  - Use Theme.init() for proper theme initialization
  - Replace cs-* classes with cyber-* classes
  - Add CSS variable fallbacks for light/dark theme support
  - Fix hub data parsing for proper component counts

- Add theme require to wizard.js

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 14:11:16 +01:00
..
alerts.js fix(luci-app-crowdsec-dashboard): Fix API instantiation error 2026-01-06 15:56:33 +01:00
bouncers.js feat: Firewall Bouncer Management UI in Bouncers Page 2026-01-06 20:25:15 +01:00
decisions.js fix: Add missing API utility functions and fix data structure handling (v0.6.0-r9) 2026-01-07 11:01:54 +01:00
metrics.js feat: Add LAPI auto-repair and SecuBox theming to CrowdSec Dashboard (v0.6.0-r27) 2026-01-08 14:11:16 +01:00
overview.js fix: Add missing API utility functions and fix data structure handling (v0.6.0-r9) 2026-01-07 11:01:54 +01:00
settings.js fix: String concatenation with DOM elements in CrowdSec views 2026-01-06 19:24:55 +01:00
waf.js fix: String concatenation with DOM elements in CrowdSec views 2026-01-06 19:24:55 +01:00
wizard.js feat: Add LAPI auto-repair and SecuBox theming to CrowdSec Dashboard (v0.6.0-r27) 2026-01-08 14:11:16 +01:00