feat(secubox-app-webapp): Complete dashboard features and change URL to /secubox/

- Improve Services tab with pgrep-based status detection
- Add service enable/disable toggle buttons
- Add port forwards table to Firewall tab
- Add process list to System tab
- Add CrowdSec alerts table
- Reorganize quick actions into grouped layout
- Add Flush DNS, Sync NTP, and LuCI Admin shortcuts
- Change URL path from /secubox-dashboard/ to /secubox/
- Bump version to 1.4.1 (v2.4)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-01-21 13:59:32 +01:00
parent 845f15222b
commit a1d66157fc
3 changed files with 1008 additions and 87 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-webapp
PKG_VERSION:=1.2.0
PKG_VERSION:=1.4.1
PKG_RELEASE:=1
PKG_LICENSE:=MIT
PKG_MAINTAINER:=CyberMind.FR <contact@cybermind.fr>
@ -37,8 +37,8 @@ define Package/secubox-app-webapp/install
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/etc/config/secubox-webapp $(1)/etc/config/secubox-webapp
$(INSTALL_DIR) $(1)/www/secubox-dashboard
$(INSTALL_DATA) ./files/www/secubox-dashboard/index.html $(1)/www/secubox-dashboard/index.html
$(INSTALL_DIR) $(1)/www/secubox
$(INSTALL_DATA) ./files/www/secubox-dashboard/index.html $(1)/www/secubox/index.html
$(INSTALL_DIR) $(1)/usr/share/rpcd/acl.d
$(INSTALL_DATA) ./files/usr/share/rpcd/acl.d/secubox-dashboard.json $(1)/usr/share/rpcd/acl.d/secubox-dashboard.json
@ -64,8 +64,8 @@ uci commit uhttpd
/etc/init.d/rpcd restart
/etc/init.d/uhttpd restart
echo "SecuBox Dashboard installed at /www/secubox-dashboard/"
echo "Access via: http://<router-ip>/secubox-dashboard/"
echo "SecuBox Dashboard installed at /www/secubox/"
echo "Access via: http://<router-ip>/secubox/"
exit 0
endef

View File

@ -17,7 +17,7 @@ Commands:
check Check rpcd/uhttpd configuration
info Show access URLs
Dashboard URL: http://<router-ip>/secubox-dashboard/
Dashboard URL: http://<router-ip>/secubox/
EOF
}
@ -60,7 +60,7 @@ cmd_status() {
fi
# Check dashboard files
if [ -f /www/secubox-dashboard/index.html ]; then
if [ -f /www/secubox/index.html ]; then
echo "Dashboard: installed"
else
echo "Dashboard: not found"
@ -69,7 +69,7 @@ cmd_status() {
echo ""
echo "=== Access URL ==="
local lan_ip=$(uci -q get network.lan.ipaddr || echo "192.168.1.1")
echo "http://$lan_ip/secubox-dashboard/"
echo "http://$lan_ip/secubox/"
}
cmd_enable() {
@ -147,7 +147,7 @@ cmd_info() {
echo "║ SecuBox Dashboard - Access Information ║"
echo "╠════════════════════════════════════════════════════════════╣"
echo "║ ║"
printf "║ Dashboard: %-46s ║\n" "http://$lan_ip/secubox-dashboard/"
printf "║ Dashboard: %-46s ║\n" "http://$lan_ip/secubox/"
printf "║ UBUS API: %-46s ║\n" "http://$lan_ip/ubus"
echo "║ ║"
echo "║ Login: Use OpenWrt root credentials ║"