System Hub enhancements: - Add cron-based scheduled backup configuration (daily/weekly/monthly) - Add backup schedule RPCD methods (get_backup_schedule, set_backup_schedule) - Add live streaming logs with LIVE badge, play/pause, 2s refresh - Add real component installation detection from secubox state field - Add service running status detection for components - Add category-based icons for components (security, network, monitoring) - Fix status emoji display (✅ ⚠️ ❓) for Quick Status Indicators UI improvements: - New Scheduled Backups card in backup page with enable/disable toggle - Time picker for backup schedule (hour/minute selectors) - Day of week/month selectors for weekly/monthly backups - Live indicator badge with pulse animation for logs - Play/Pause button for log streaming control - New log highlighting with fade-in animation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
184 lines
2.9 KiB
CSS
184 lines
2.9 KiB
CSS
.sh-backup-view {
|
|
padding: 28px;
|
|
}
|
|
|
|
.sh-backup-hero {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
padding: 24px;
|
|
border-radius: 20px;
|
|
background: var(--sh-gradient-soft);
|
|
border: 1px solid var(--sh-border);
|
|
box-shadow: var(--sh-shadow);
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.sh-hero-eyebrow {
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.2em;
|
|
color: var(--sh-text-secondary);
|
|
margin-bottom: 6px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.sh-backup-hero h1 {
|
|
margin: 0 0 6px;
|
|
font-size: 26px;
|
|
}
|
|
|
|
.sh-backup-hero p {
|
|
margin: 0;
|
|
color: var(--sh-text-secondary);
|
|
}
|
|
|
|
.sh-hero-badges {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.sh-hero-badge {
|
|
padding: 12px 18px;
|
|
border-radius: 16px;
|
|
background: rgba(15,23,42,0.5);
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
min-width: 140px;
|
|
}
|
|
|
|
.sh-hero-badge .label {
|
|
display: block;
|
|
font-size: 11px;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--sh-text-secondary);
|
|
}
|
|
|
|
.sh-hero-badge strong {
|
|
font-size: 18px;
|
|
}
|
|
|
|
.sh-backup-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.sh-text-muted {
|
|
color: var(--sh-text-secondary);
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.sh-upload {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
margin: 16px 0;
|
|
border: 1px dashed var(--sh-border);
|
|
border-radius: 14px;
|
|
color: var(--sh-text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.sh-upload:hover {
|
|
background: rgba(255,255,255,0.04);
|
|
}
|
|
|
|
.sh-upload input {
|
|
display: none;
|
|
}
|
|
|
|
.sh-action-row {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
/* Schedule form styles */
|
|
.sh-schedule-form {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.sh-toggle-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
margin-bottom: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sh-toggle-main input[type="checkbox"] {
|
|
width: 20px;
|
|
height: 20px;
|
|
accent-color: var(--sh-accent, #6366f1);
|
|
}
|
|
|
|
.sh-schedule-options {
|
|
transition: opacity 0.2s ease;
|
|
}
|
|
|
|
.sh-form-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.sh-form-row > label {
|
|
min-width: 100px;
|
|
font-size: 14px;
|
|
color: var(--sh-text-secondary);
|
|
}
|
|
|
|
.sh-select {
|
|
padding: 8px 12px;
|
|
border-radius: 10px;
|
|
border: 1px solid var(--sh-border);
|
|
background: rgba(15,23,42,0.6);
|
|
color: var(--sh-text-primary);
|
|
font-size: 14px;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.sh-select:focus {
|
|
outline: none;
|
|
border-color: var(--sh-accent, #6366f1);
|
|
}
|
|
|
|
.sh-select-time {
|
|
min-width: 70px;
|
|
}
|
|
|
|
.sh-time-picker {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.sh-time-picker span {
|
|
font-size: 18px;
|
|
color: var(--sh-text-secondary);
|
|
}
|
|
|
|
.sh-badge-success {
|
|
background: linear-gradient(135deg, rgba(34,197,94,0.2), rgba(22,163,74,0.2)) !important;
|
|
color: #22c55e !important;
|
|
border: 1px solid rgba(34,197,94,0.3) !important;
|
|
}
|
|
|
|
.sh-badge-muted {
|
|
background: rgba(100,116,139,0.2) !important;
|
|
color: #94a3b8 !important;
|
|
}
|
|
|
|
.sh-last-backup {
|
|
font-style: italic;
|
|
opacity: 0.8;
|
|
}
|