feat: add 2FA, secure cookies and publishing tools
All checks were successful
CI / Validate frontend and API (push) Successful in 3m5s
CI / Build and publish Docker images (push) Successful in 1m42s

This commit is contained in:
Cauê Faleiros
2026-11-06 10:29:37 -03:00
parent fff63f5efa
commit 50905eefd7
40 changed files with 3493 additions and 215 deletions

View File

@@ -943,6 +943,33 @@ a.m-row:active, button.m-row:active { background: var(--bg-3) }
.notification small { flex: none; color: var(--fg-3); font-size: 12px; white-space: nowrap }
.notification-empty .ph { width: 36px; height: 36px; color: var(--fg-3); margin-bottom: 8px }
.notification-empty h2 { font-size: 20px; margin-bottom: 6px }
/* ---------- two-factor authentication ---------- */
.twofa-section { margin-top: 28px; max-width: 760px }
.twofa-card { display: grid; gap: 14px }
.twofa-head { display: flex; gap: 12px; align-items: flex-start }
.twofa-icon { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue) }
.twofa-setup { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start }
.twofa-secret { display: block; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; font-size: 13px; margin: 6px 0 14px }
.twofa-form { display: grid; gap: 10px; margin-top: 8px }
.twofa-code-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0 }
.twofa-code-grid code { padding: 8px 10px; border-radius: 8px; background: var(--bg-2); text-align: center; letter-spacing: .08em; font-size: 13px }
@media (max-width: 760px) {
.twofa-setup { grid-template-columns: 1fr }
.twofa-code-grid { grid-template-columns: 1fr }
}
/* ---------- bulk selection ---------- */
.check { width: 18px; height: 18px; border: 1.5px solid var(--fg-3); border-radius: 5px; display: inline-grid; place-items: center; color: var(--white); background: transparent; transition: background-color .15s, border-color .15s, opacity .15s }
.check[aria-checked="true"] { background: var(--blue); border-color: var(--blue) }
.check:disabled { opacity: .35 }
.check .ph { width: 12px; height: 12px }
.bulkbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: -8px 0 16px; border-radius: 10px; background: var(--bg-2); font-size: 13px }
.bulkbar .sp { flex: 1 }
.impersonation-banner { position: fixed; z-index: 300; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; width: max-content; max-width: calc(100vw - 24px); padding: 7px 8px 7px 16px; border-radius: 980px; background: var(--fg); color: var(--bg); box-shadow: var(--menu-shadow); font-size: 13px }
.impersonation-banner b { font-weight: 600 }
.impersonation-banner button { min-height: 28px; padding: 4px 12px; border-radius: 980px; background: var(--bg); color: var(--fg); font-size: 13px; font-weight: 600; white-space: nowrap }
@media (max-width: 760px) {
.reviews-layout { grid-template-columns: 1fr }
.review-average { font-size: 36px }