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>
273 lines
4.6 KiB
CSS
273 lines
4.6 KiB
CSS
.sh-logs-view {
|
|
padding: 28px;
|
|
background: radial-gradient(circle at top, rgba(248,113,113,0.08), transparent),
|
|
radial-gradient(circle at bottom, rgba(14,165,233,0.08), transparent),
|
|
var(--sh-bg);
|
|
border-radius: 22px;
|
|
}
|
|
|
|
.sh-logs-hero {
|
|
background: linear-gradient(135deg, rgba(248,113,113,0.16), rgba(248,159,99,0.16));
|
|
border-radius: 22px;
|
|
padding: 24px;
|
|
border: 1px solid var(--sh-border);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 18px;
|
|
box-shadow: 0 25px 40px rgba(0,0,0,0.35);
|
|
}
|
|
|
|
.sh-logs-hero h1 {
|
|
margin: 0;
|
|
font-size: 26px;
|
|
}
|
|
|
|
.sh-logs-hero p {
|
|
margin: 6px 0 0;
|
|
color: var(--sh-text-secondary);
|
|
}
|
|
|
|
.sh-log-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
|
|
gap: 12px;
|
|
min-width: 280px;
|
|
}
|
|
|
|
.sh-log-stat {
|
|
background: rgba(15,23,42,0.45);
|
|
border-radius: 16px;
|
|
padding: 12px;
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
text-align: center;
|
|
}
|
|
|
|
.sh-log-stat .label {
|
|
display: block;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
color: var(--sh-text-secondary);
|
|
letter-spacing: 0.12em;
|
|
}
|
|
|
|
.sh-log-stat .value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
}
|
|
|
|
.sh-log-stat.danger .value {
|
|
color: #f87171;
|
|
}
|
|
|
|
.sh-log-stat.warn .value {
|
|
color: #fbbf24;
|
|
}
|
|
|
|
.sh-log-controls {
|
|
margin: 26px 0 20px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 16px;
|
|
align-items: center;
|
|
}
|
|
|
|
.sh-log-search {
|
|
flex: 1;
|
|
min-width: 260px;
|
|
}
|
|
|
|
.sh-log-search input {
|
|
width: 100%;
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(255,255,255,0.12);
|
|
background: rgba(255,255,255,0.02);
|
|
padding: 12px 16px;
|
|
color: var(--sh-text-primary);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.sh-log-selectors {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.sh-log-selectors select {
|
|
border-radius: 12px;
|
|
border: 1px solid rgba(255,255,255,0.12);
|
|
background: rgba(15,23,42,0.8);
|
|
color: var(--sh-text-primary);
|
|
padding: 10px 14px;
|
|
}
|
|
|
|
.sh-toggle {
|
|
display: flex;
|
|
gap: 6px;
|
|
align-items: center;
|
|
font-size: 13px;
|
|
color: var(--sh-text-secondary);
|
|
}
|
|
|
|
.sh-toggle input {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.sh-btn {
|
|
border-radius: 12px;
|
|
padding: 10px 18px;
|
|
border: 1px solid rgba(255,255,255,0.12);
|
|
background: rgba(99,102,241,0.18);
|
|
color: white;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sh-btn-primary {
|
|
background: linear-gradient(135deg,#6366f1,#a855f7);
|
|
border-color: transparent;
|
|
}
|
|
|
|
.sh-btn-success {
|
|
background: linear-gradient(135deg,#22c55e,#16a34a);
|
|
border-color: transparent;
|
|
}
|
|
|
|
.sh-btn-danger {
|
|
background: linear-gradient(135deg,#ef4444,#dc2626);
|
|
border-color: transparent;
|
|
}
|
|
|
|
/* Live indicator animations */
|
|
@keyframes pulse {
|
|
0%, 100% { opacity: 1; }
|
|
50% { opacity: 0.7; }
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; background: rgba(34, 197, 94, 0.3); }
|
|
to { opacity: 1; background: transparent; }
|
|
}
|
|
|
|
.sh-log-new {
|
|
border-left: 3px solid #22c55e;
|
|
}
|
|
|
|
.sh-logs-body {
|
|
display: grid;
|
|
grid-template-columns: 3fr 1fr;
|
|
gap: 20px;
|
|
}
|
|
|
|
.sh-log-panel {
|
|
background: var(--sh-bg-card);
|
|
border-radius: 20px;
|
|
padding: 16px;
|
|
border: 1px solid var(--sh-border);
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.3);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.sh-log-filters {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.sh-log-stream {
|
|
background: rgba(0,0,0,0.35);
|
|
border-radius: 16px;
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
padding: 14px;
|
|
height: 520px;
|
|
overflow-y: auto;
|
|
font-family: 'JetBrains Mono', monospace;
|
|
font-size: 13px;
|
|
color: var(--sh-text-primary);
|
|
}
|
|
|
|
.sh-log-line {
|
|
display: flex;
|
|
gap: 14px;
|
|
padding: 6px 4px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.03);
|
|
}
|
|
|
|
.sh-log-line.error {
|
|
background: rgba(248,113,113,0.08);
|
|
}
|
|
|
|
.sh-log-line.warning {
|
|
background: rgba(251,191,36,0.08);
|
|
}
|
|
|
|
.sh-log-index {
|
|
color: var(--sh-text-muted);
|
|
min-width: 40px;
|
|
text-align: right;
|
|
}
|
|
|
|
.sh-log-message {
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
.sh-log-side {
|
|
background: rgba(15,23,42,0.85);
|
|
border-radius: 20px;
|
|
padding: 18px;
|
|
border: 1px solid rgba(255,255,255,0.08);
|
|
box-shadow: 0 20px 40px rgba(0,0,0,0.25);
|
|
}
|
|
|
|
.sh-log-side h3 {
|
|
margin: 0 0 12px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.sh-log-side ul {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.sh-log-side li {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 14px;
|
|
border-bottom: 1px dashed rgba(255,255,255,0.1);
|
|
padding-bottom: 6px;
|
|
}
|
|
|
|
.sh-log-side strong {
|
|
font-family: 'JetBrains Mono', monospace;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.sh-logs-body {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
.sh-logs-view {
|
|
padding: 16px;
|
|
}
|
|
|
|
.sh-log-controls {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.sh-log-selectors {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
}
|