secubox-openwrt/package/secubox/luci-app-vhost-manager/htdocs/luci-static/resources/vhost-manager/dashboard.css
CyberMind-FR 31a87c5d7a feat(structure): reorganize luci-app packages into package/secubox/ + appstore migration
Major structural reorganization and feature additions:

## Folder Reorganization
- Move 17 luci-app-* packages to package/secubox/ (except luci-app-secubox core hub)
- Update all tooling to support new structure:
  - secubox-tools/quick-deploy.sh: search both locations
  - secubox-tools/validate-modules.sh: validate both directories
  - secubox-tools/fix-permissions.sh: fix permissions in both locations
  - .github/workflows/test-validate.yml: build from both paths
- Update README.md links to new package/secubox/ paths

## AppStore Migration (Complete)
- Add catalog entries for all remaining luci-app packages:
  - network-tweaks.json: Network optimization tools
  - secubox-bonus.json: Documentation & demos hub
- Total: 24 apps in AppStore catalog (22 existing + 2 new)
- New category: 'documentation' for docs/demos/tutorials

## VHost Manager v2.0 Enhancements
- Add profile activation system for Internal Services and Redirects
- Implement createVHost() API wrapper for template-based deployment
- Fix Virtual Hosts view rendering with proper LuCI patterns
- Fix RPCD backend shell script errors (remove invalid local declarations)
- Extend backend validation for nginx return directives (redirect support)
- Add section_id parameter for named VHost profiles
- Add Remove button to Redirects page for feature parity
- Update README to v2.0 with comprehensive feature documentation

## Network Tweaks Dashboard
- Close button added to component details modal

Files changed: 340+ (336 renames with preserved git history)
Packages affected: 19 luci-app, 2 secubox-app, 1 theme, 4 tools

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-01 14:59:38 +01:00

180 lines
3.2 KiB
CSS

.vhost-page {
padding: 24px;
display: flex;
flex-direction: column;
gap: 24px;
background: var(--sh-bg-primary, #0a0f1f);
color: var(--sh-text-primary, #e2e8f0);
}
.vhost-nav-tabs {
position: sticky;
top: 0;
z-index: 5;
}
.vhost-card-grid {
display: grid;
gap: 16px;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.vhost-card {
background: var(--sh-bg-card, rgba(17, 24, 39, 0.92));
border: 1px solid var(--sh-border, rgba(148, 163, 184, 0.2));
border-radius: 16px;
padding: 20px;
display: flex;
flex-direction: column;
gap: 12px;
box-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}
.vhost-card-title {
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
font-size: 16px;
}
.vhost-card-meta {
font-family: 'JetBrains Mono', monospace;
font-size: 13px;
color: var(--sh-text-secondary, #94a3b8);
word-break: break-all;
}
.vhost-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 4px 12px;
border-radius: 999px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.08em;
border: 1px solid rgba(255, 255, 255, 0.16);
}
.vhost-pill.success {
border-color: rgba(34, 197, 94, 0.35);
color: #34d399;
}
.vhost-pill.warn {
border-color: rgba(245, 158, 11, 0.35);
color: #fbbf24;
}
.vhost-pill.danger {
border-color: rgba(248, 113, 113, 0.35);
color: #f87171;
}
.vhost-table {
width: 100%;
border-collapse: collapse;
}
.vhost-table th,
.vhost-table td {
padding: 12px 10px;
border-bottom: 1px solid rgba(148, 163, 184, 0.15);
text-align: left;
}
.vhost-table th {
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--sh-text-secondary, #94a3b8);
}
.vhost-table tbody tr:hover {
background: rgba(59, 130, 246, 0.08);
}
.vhost-empty {
padding: 30px;
text-align: center;
border: 1px dashed rgba(148, 163, 184, 0.4);
border-radius: 12px;
color: var(--sh-text-secondary, #94a3b8);
}
.vhost-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.vhost-form-grid {
display: grid;
gap: 16px;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
margin-top: 12px;
}
.vhost-form-grid label {
display: block;
font-size: 12px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--sh-text-secondary, #94a3b8);
margin-bottom: 6px;
}
.vhost-form-grid input,
.vhost-form-grid select {
width: 100%;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid rgba(148, 163, 184, 0.25);
background: rgba(15, 23, 42, 0.6);
color: var(--sh-text-primary, #f8fafc);
font-size: 14px;
}
.vhost-log-terminal {
background: #050816;
border-radius: 12px;
border: 1px solid rgba(15, 118, 230, 0.4);
box-shadow: inset 0 0 24px rgba(14, 165, 233, 0.12);
font-family: 'JetBrains Mono', monospace;
color: #12f7d6;
font-size: 12px;
line-height: 1.5;
max-height: 420px;
overflow: auto;
padding: 16px;
}
.vhost-status-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.vhost-status-item {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
color: var(--sh-text-secondary, #a0aec0);
}
.vhost-status-item strong {
color: var(--sh-text-primary, #f1f5f9);
}
.vhost-filter-tags {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.vhost-filter-tags .vhost-pill {
padding: 4px 10px;
}