secubox-openwrt/deploy-modules-v2.sh
CyberMind-FR 3dcc89d3a3 feat: SecuBox modules v2 - Responsive cards with versions and actions
Major improvements to modules page:
- Responsive grid layout with modern card design
- Module versions display (v0.0.9)
- Category filter tabs (All, Security, Monitoring, Network, System)
- Quick actions (Start/Stop/Restart/Dashboard)
- Real-time status indicators with animations
- Emoji icons properly displayed
- Auto-refresh every 30 seconds

Changes:
- modules.js: Complete rewrite with responsive cards
- modules.css: New CSS with theme support and animations
- secubox config: Added emoji icons and version fields
- RPCD backend: Added version field to module data

Features:
 Responsive 3-column grid (auto-adapts to screen size)
🎯 Category filtering with animated tabs
▶️ One-click start/stop/restart actions
📊 Dashboard quick links for each module
💫 Smooth animations and hover effects
🌓 Full dark/light theme support
📱 Mobile-friendly design

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-26 16:51:59 +01:00

43 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
# Deploy SecuBox Modules v2 - Responsive cards with versions and actions
ROUTER="root@192.168.8.191"
echo "🚀 Deploying SecuBox Modules v2 to $ROUTER"
echo ""
echo "📦 Deploying modules view and CSS..."
scp luci-app-secubox/htdocs/luci-static/resources/view/secubox/modules.js \
"$ROUTER:/www/luci-static/resources/view/secubox/"
scp luci-app-secubox/htdocs/luci-static/resources/secubox/modules.css \
"$ROUTER:/www/luci-static/resources/secubox/"
echo "📝 Deploying updated config with versions..."
scp luci-app-secubox/root/etc/config/secubox \
"$ROUTER:/etc/config/secubox"
echo "🔧 Deploying updated RPCD backend..."
scp luci-app-secubox/root/usr/libexec/rpcd/luci.secubox \
"$ROUTER:/usr/libexec/rpcd/"
echo "🔄 Setting permissions and restarting services..."
ssh "$ROUTER" "chmod +x /usr/libexec/rpcd/luci.secubox"
ssh "$ROUTER" "chmod 644 /www/luci-static/resources/view/secubox/modules.js"
ssh "$ROUTER" "chmod 644 /www/luci-static/resources/secubox/modules.css"
ssh "$ROUTER" "/etc/init.d/rpcd restart"
echo ""
echo "✅ Modules v2 deployed successfully!"
echo ""
echo "🎨 New features:"
echo " • Responsive grid layout"
echo " • Module versions (v0.0.9)"
echo " • Category filter tabs"
echo " • Start/Stop/Restart actions"
echo " • Dashboard quick links"
echo " • Real-time status indicators"
echo " • Modern card design with icons"
echo ""
echo "👉 Refresh your browser (Ctrl+Shift+R) and go to SecuBox → Modules"