secubox-openwrt/luci-app-client-guardian/htdocs/luci-static/resources
CyberMind-FR c8b261ea5a fix(client-guardian): correct API module imports in logs and alerts views
- Changed from L.require('client-guardian.api') to 'require client-guardian/api as API'
- Updated all api. references to API. in both files
- Resolves "api.getLogs is not a function" and "api.getAlerts is not a function" errors

The L.require() pattern doesn't work properly with async module loading in LuCI.
Using the proper 'require' directive ensures the module is loaded correctly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-31 10:56:53 +01:00
..
client-guardian chore: align modules with secubox theme v0.4 2025-12-29 22:13:38 +01:00
view/client-guardian fix(client-guardian): correct API module imports in logs and alerts views 2025-12-31 10:56:53 +01:00