feat: operator auth (Bearer+WS 4401), atomic saves, WS heartbeat, Loot viewer (files+creds+screenshots), auth gate, WS reconnect backoff, empty-state hero, toasts
This commit is contained in:
@@ -903,3 +903,49 @@ body {
|
||||
gap: 0.3rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Loot viewer ── */
|
||||
.loot-tabs { display: flex; gap: 0.5rem; }
|
||||
.loot-body { padding: 0.75rem; max-height: 420px; overflow-y: auto; }
|
||||
.loot-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
|
||||
.loot-table th { text-align: left; color: var(--text-dim, #64748b); font-weight: 600; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border-color, #1e293b); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
|
||||
.loot-table td { padding: 0.45rem 0.5rem; border-bottom: 1px solid rgba(30,41,59,0.5); color: #e2e8f0; vertical-align: middle; }
|
||||
.loot-thumb { width: 56px; height: 36px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 1px solid var(--border-color, #1e293b); }
|
||||
.loot-thumb:hover { border-color: var(--accent-emerald, #10b981); }
|
||||
.loot-thumb-cell { width: 64px; }
|
||||
.loot-file-icon { font-size: 1.4rem; color: var(--text-dim, #64748b); }
|
||||
.loot-mime { font-size: 0.7rem; color: var(--text-dim, #64748b); }
|
||||
.loot-cred-group { margin-bottom: 0.75rem; }
|
||||
.loot-cred-host { font-weight: 600; color: #e2e8f0; padding: 0.4rem 0; border-bottom: 1px solid var(--border-color, #1e293b); margin-bottom: 0.4rem; }
|
||||
.loot-cred-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0; font-size: 0.85rem; }
|
||||
.loot-cred-val { background: rgba(15,23,42,0.8); padding: 0.2rem 0.5rem; border-radius: 4px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; color: #e2e8f0; }
|
||||
.loot-cred-time { color: var(--text-dim, #64748b); font-size: 0.75rem; min-width: 60px; text-align: right; }
|
||||
.loot-lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 60px rgba(0,0,0,0.8); }
|
||||
|
||||
/* ── Toasts ── */
|
||||
.toast-stack { position: fixed; top: 70px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none; }
|
||||
.toast { display: flex; align-items: center; gap: 0.5rem; background: rgba(15,23,42,0.95); border: 1px solid var(--border-color, #1e293b); border-left: 3px solid var(--accent-blue, #3b82f6); color: #e2e8f0; padding: 0.6rem 0.9rem; border-radius: 8px; font-size: 0.85rem; box-shadow: 0 4px 20px rgba(0,0,0,0.5); animation: toastIn 0.25s ease-out; pointer-events: auto; max-width: 340px; }
|
||||
.toast-success { border-left-color: var(--accent-emerald, #10b981); }
|
||||
.toast-error { border-left-color: #ef4444; }
|
||||
.toast-out { opacity: 0; transform: translateX(20px); transition: all 0.4s ease; }
|
||||
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
|
||||
|
||||
/* ── Auth gate ── */
|
||||
.auth-overlay { position: fixed; inset: 0; background: rgba(2,6,23,0.92); backdrop-filter: blur(6px); z-index: 10000; display: flex; align-items: center; justify-content: center; }
|
||||
.auth-card { background: rgba(15,23,42,0.95); border: 1px solid var(--border-color, #1e293b); border-radius: 14px; padding: 2rem; width: 340px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
|
||||
.auth-icon { font-size: 2.2rem; color: var(--accent-emerald, #10b981); margin-bottom: 0.75rem; }
|
||||
.auth-card h2 { margin: 0 0 0.4rem; color: #f1f5f9; }
|
||||
.auth-card p { color: var(--text-dim, #64748b); font-size: 0.85rem; margin: 0 0 1rem; }
|
||||
.auth-error { color: #ef4444 !important; margin-top: 0.6rem !important; }
|
||||
|
||||
/* ── Empty state hero ── */
|
||||
.empty-hero { grid-column: 1 / -1; text-align: center; padding: 3rem 2rem; background: rgba(15,23,42,0.5); border: 1px dashed var(--border-color, #1e293b); border-radius: 14px; }
|
||||
.empty-hero-icon { font-size: 3rem; color: var(--accent-emerald, #10b981); margin-bottom: 1rem; animation: pulse 2s infinite; }
|
||||
.empty-hero h2 { color: #f1f5f9; margin: 0 0 0.5rem; }
|
||||
.empty-hero p { color: var(--text-dim, #64748b); max-width: 520px; margin: 0 auto 1.25rem; }
|
||||
.empty-cmd { display: flex; align-items: center; justify-content: center; gap: 0.75rem; flex-wrap: wrap; }
|
||||
.empty-cmd code { background: rgba(2,6,23,0.9); border: 1px solid var(--border-color, #1e293b); padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.9rem; color: var(--accent-emerald, #10b981); }
|
||||
.empty-hint { margin-top: 1rem; font-size: 0.8rem; }
|
||||
.empty-qr { margin-top: 1.25rem; display: flex; justify-content: center; }
|
||||
.empty-qr img, .empty-qr canvas { border-radius: 8px; background: #fff; padding: 8px; }
|
||||
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }
|
||||
|
||||
Reference in New Issue
Block a user