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

View File

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