deploy / deploy (push) Successful in 48s
- Site à part (admin/, build:admin → dist-admin/), jamais dans l'app publique : tableau de bord, membres (suspendre / réactiver), avis (retirer), commentaires (supprimer), journal. Motif obligatoire. Session en mémoire seulement, 1 h maximum, déconnexion après 15 min d'inactivité. - Connexion : mot de passe + code de double authentification obligatoire (jeton aal2). - Fonction Edge « admin » : secret X-Admin-Gate (ajouté par nginx sur le VPS, sinon 404), jeton aal2, liste admin.admins ; accès à la base par connexion directe. Alertes e-mail si SMTP_PASSWORD est configuré. - Schéma « admin » (20261130150000, appliqué) non exposé par l'API : admins, journal en ajout seulement (modification, suppression et vidage refusés), fonctions de la console. - nginx : admin.conf sur 127.0.0.1:8081 (CSP stricte, sans cache, noindex), relais vers la fonction avec le secret lu dans /etc/nginx/bobinoo-admin-gate.conf (hors dépôt). Publié par « tailscale serve ». - Déploiement : build de la console et copie dans chaque release. Guide : docs/admin.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
62 lines
1.7 KiB
CSS
62 lines
1.7 KiB
CSS
@import 'tailwindcss';
|
|
|
|
/* Mêmes couleurs que l'app (thème sombre), coins droits */
|
|
@theme {
|
|
--font-sans: 'Epilogue Variable', 'Epilogue', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
|
--color-bg: #090909;
|
|
--color-surface: #121212;
|
|
--color-surface-2: #1b1b1b;
|
|
--color-line: #2b2b2b;
|
|
--color-line-strong: #424242;
|
|
--color-ink: #f2f2f0;
|
|
--color-ink-2: #c4c4c4;
|
|
--color-ink-3: #989898;
|
|
--color-accent: #53bfb6;
|
|
--color-on-accent: #062b28;
|
|
--color-danger: #f97066;
|
|
--color-on-danger: #2b0a06;
|
|
--color-scrim: rgb(0 0 0 / 0.7);
|
|
--radius-sm: 0.125rem;
|
|
--radius-md: 0.125rem;
|
|
--radius-lg: 0.125rem;
|
|
--radius-xl: 0.125rem;
|
|
}
|
|
|
|
@layer base {
|
|
html {
|
|
background: var(--color-bg);
|
|
color: var(--color-ink);
|
|
color-scheme: dark;
|
|
}
|
|
body {
|
|
font-family: var(--font-sans);
|
|
-webkit-font-smoothing: antialiased;
|
|
-webkit-tap-highlight-color: transparent;
|
|
}
|
|
button,
|
|
a {
|
|
touch-action: manipulation;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.field {
|
|
@apply w-full rounded-md border border-line-strong bg-surface px-3 py-2.5 text-ink outline-none placeholder:text-ink-3 focus:border-accent;
|
|
}
|
|
.btn {
|
|
@apply inline-flex items-center justify-center gap-2 rounded-md px-4 py-2.5 text-sm font-semibold transition-colors disabled:opacity-50;
|
|
}
|
|
.btn-primary {
|
|
@apply bg-accent text-on-accent active:opacity-80;
|
|
}
|
|
.btn-ghost {
|
|
@apply border border-line-strong text-ink active:bg-surface-2;
|
|
}
|
|
.btn-danger {
|
|
@apply border border-danger text-danger active:bg-danger active:text-on-danger;
|
|
}
|
|
.badge {
|
|
@apply inline-flex items-center rounded-sm border border-line-strong px-1.5 py-0.5 text-[11px] font-medium text-ink-2;
|
|
}
|
|
}
|