Added comprehensive Advanced Settings view to luci-app-secubox-admin: ## New Features ### Advanced Settings Editor (advanced-settings.js) - **Quick Config Panel**: One-click access to common configurations - AppStore, Network, Firewall, DHCP - Direct catalog.json editing - **System Subsets Overview**: Visual status of 7 system categories - Authentication, Network, Security, Monitoring - Applications, Storage, System - Real-time status indicators with emojis - **UCI Config Editor**: Live editor for /etc/config/* files - File selector dropdown - Load/Save/Clear operations - Syntax highlighting support - **JSON Editor**: Advanced editor for JSON configuration files - catalog.json direct editing - Format and Validate buttons - Real-time syntax validation - **Danger Zone**: Safe system operations - Reload UCI configuration - Restart services (uhttpd, rpcd, uhttpd) - Backup configuration (download) - **Cyberpunk Theme**: Consistent neon terminal aesthetic - Dual console layout - Animated status indicators - Responsive design ## Changes ### New Files - htdocs/luci-static/resources/view/secubox-admin/advanced-settings.js - Complete advanced configuration editor - ~500 lines with comprehensive error handling - Integrated with existing cyberpunk.css ### Modified Files - root/usr/share/luci/menu.d/luci-app-secubox-admin.json - Added "⚙️ Advanced Settings" menu entry (order: 60) - Path: secubox-admin/advanced-settings - Makefile - Incremented PKG_RELEASE: 9 → 10 ## Technical Details **UCI Integration**: - Uses L.uci for configuration loading - Supports all /etc/config/* files - Real-time load/save with error handling **JSON Editing**: - Validates JSON syntax before saving - Pretty-print formatting - Error messages with line numbers **System Subsets**: - Dynamic status detection via RPC calls - Color-coded indicators (success/warning/info) - Quick navigation to related settings **Safety Features**: - Confirmation dialogs for destructive operations - Backup before critical changes - Error recovery mechanisms **Access Points**: - Menu: SecuBox → Admin Control → ⚙️ Advanced Settings - URL: http://router/cgi-bin/luci/admin/secubox/admin/advanced/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
82 lines
1.5 KiB
JSON
82 lines
1.5 KiB
JSON
{
|
|
"admin/secubox/admin": {
|
|
"title": "Admin Control",
|
|
"order": 5,
|
|
"action": {
|
|
"type": "firstchild"
|
|
}
|
|
},
|
|
"admin/secubox/admin/dashboard": {
|
|
"title": "Control Panel",
|
|
"order": 10,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "secubox-admin/dashboard"
|
|
}
|
|
},
|
|
"admin/secubox/admin/cyber-dashboard": {
|
|
"title": "🔮 Cyber Console",
|
|
"order": 15,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "secubox-admin/cyber-dashboard"
|
|
}
|
|
},
|
|
"admin/secubox/admin/apps": {
|
|
"title": "Apps Manager",
|
|
"order": 20,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "secubox-admin/apps"
|
|
}
|
|
},
|
|
"admin/secubox/admin/updates": {
|
|
"title": "Updates",
|
|
"order": 25,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "secubox-admin/updates"
|
|
}
|
|
},
|
|
"admin/secubox/admin/catalog-sources": {
|
|
"title": "Catalog Sources",
|
|
"order": 27,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "secubox-admin/catalog-sources"
|
|
}
|
|
},
|
|
"admin/secubox/admin/settings": {
|
|
"title": "App Settings",
|
|
"order": 30,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "secubox-admin/settings"
|
|
}
|
|
},
|
|
"admin/secubox/admin/health": {
|
|
"title": "System Health",
|
|
"order": 40,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "secubox-admin/health"
|
|
}
|
|
},
|
|
"admin/secubox/admin/logs": {
|
|
"title": "System Logs",
|
|
"order": 50,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "secubox-admin/logs"
|
|
}
|
|
},
|
|
"admin/secubox/admin/advanced": {
|
|
"title": "⚙️ Advanced Settings",
|
|
"order": 60,
|
|
"action": {
|
|
"type": "view",
|
|
"path": "secubox-admin/advanced-settings"
|
|
}
|
|
}
|
|
}
|