Corrections du testeur « connexion, réglages, double authentification »
deploy / deploy (push) Successful in 39s
deploy / deploy (push) Successful in 39s
- Double authentification : le QR code s'affiche (SVG brut du serveur converti en image) ; un code faux à l'activation affiche « Code incorrect ou expiré » au lieu d'une erreur 422 ; la désactivation demande confirmation - Mode découverte : « Écrire un avis » demande un compte avant de taper (le texte n'est plus perdu) ; le bouton retour depuis l'écran de connexion ramène au mode découverte au lieu de quitter le site ; Sauvegarde / Stockage / Zone sensible masqués (l'import annonçait un succès sans rien importer) ; accueil vide avec un texte propre au mode découverte ; mention « reste sur ton téléphone » retirée - Pages légales et 404 : suivent l'apparence choisie dans l'app (clair / sombre) - Actions irréversibles (effacer, supprimer, bloquer, quitter une liste) : bouton rouge - « Oui / Non » traduits dans le signalement de bug ; tutoiement partout - Écran de connexion sur mobile : marge du haut rétablie ; invitation à créer un compte : le focus va au bouton Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
40 files changed
+176
-45
No files matched your search
@@ -7,6 +7,7 @@
|
||||
<meta name="robots" content="noindex" />
|
||||
<link rel="icon" href="/icons/favicon.svg" type="image/svg+xml" />
|
||||
<link rel="stylesheet" href="/pages.css" />
|
||||
<script src="/theme-boot.js"></script>
|
||||
</head>
|
||||
<body class="notfound">
|
||||
<main>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<meta name="robots" content="index" />
|
||||
<link rel="icon" href="/icons/favicon.svg" type="image/svg+xml" />
|
||||
<link rel="stylesheet" href="/pages.css" />
|
||||
<script src="/theme-boot.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<meta name="robots" content="index" />
|
||||
<link rel="icon" href="/icons/favicon.svg" type="image/svg+xml" />
|
||||
<link rel="stylesheet" href="/pages.css" />
|
||||
<script src="/theme-boot.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
|
||||
+13
-1
@@ -15,8 +15,9 @@
|
||||
--accent: #00746d;
|
||||
--on-accent: #ffffff;
|
||||
}
|
||||
/* Sombre : selon l'appareil, sauf si l'app a été réglée sur « Clair » ; ou si elle a été réglée sur « Sombre » */
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
:root:not([data-theme='light']) {
|
||||
--bg: #090909;
|
||||
--ink: #f2f2f0;
|
||||
--ink-2: #c4c4c4;
|
||||
@@ -26,6 +27,17 @@
|
||||
--on-accent: #062b28;
|
||||
}
|
||||
}
|
||||
:root[data-theme='dark'] {
|
||||
--bg: #090909;
|
||||
--ink: #f2f2f0;
|
||||
--ink-2: #c4c4c4;
|
||||
--ink-3: #989898;
|
||||
--line: #2b2b2b;
|
||||
--accent: #53bfb6;
|
||||
--on-accent: #062b28;
|
||||
}
|
||||
:root[data-theme='light'] { color-scheme: light; }
|
||||
:root[data-theme='dark'] { color-scheme: dark; }
|
||||
* { box-sizing: border-box; }
|
||||
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 'Epilogue', system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
|
||||
main { max-width: 680px; margin: 0 auto; padding: 40px 20px 80px; }
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<meta name="robots" content="index" />
|
||||
<link rel="icon" href="/icons/favicon.svg" type="image/svg+xml" />
|
||||
<link rel="stylesheet" href="/pages.css" />
|
||||
<script src="/theme-boot.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
<meta name="robots" content="index" />
|
||||
<link rel="icon" href="/icons/favicon.svg" type="image/svg+xml" />
|
||||
<link rel="stylesheet" href="/pages.css" />
|
||||
<script src="/theme-boot.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
|
||||
@@ -40,12 +40,20 @@ export default function Root() {
|
||||
const [ask, setAsk] = useState(false)
|
||||
// Écran de connexion demandé depuis le mode découverte (« Se connecter » / « Créer un compte »)
|
||||
const [authMode, setAuthMode] = useState<'login' | 'signup'>('login')
|
||||
// Écran de connexion ouvert depuis le mode découverte : « retour » y ramène (au lieu de quitter le site)
|
||||
const [fromGuest, setFromGuest] = useState(false)
|
||||
const leaveGuest = (mode: 'login' | 'signup') => {
|
||||
writeGuest(false)
|
||||
setAsk(false)
|
||||
setAuthMode(mode)
|
||||
setFromGuest(true)
|
||||
setGuest(false)
|
||||
}
|
||||
const backToGuest = () => {
|
||||
writeGuest(true)
|
||||
setFromGuest(false)
|
||||
setGuest(true)
|
||||
}
|
||||
// Double authentification : un compte protégé doit saisir son code avant d'entrer.
|
||||
// Résultat de la vérification, rattaché au jeton vérifié : un nouveau jeton (connexion, code validé) est revérifié.
|
||||
const [mfa, setMfa] = useState<{ token: string; factor: string | null }>()
|
||||
@@ -129,6 +137,7 @@ export default function Root() {
|
||||
key={authMode}
|
||||
notice={notice}
|
||||
initialMode={authMode}
|
||||
onBack={fromGuest ? backToGuest : undefined}
|
||||
onExplore={() => {
|
||||
writeGuest(true)
|
||||
setGuest(true)
|
||||
|
||||
@@ -2,6 +2,7 @@ import { t } from '../i18n'
|
||||
import { LanguageSelect } from '../i18n/react'
|
||||
import { Eye, EyeOff, Loader2 } from 'lucide-react'
|
||||
import { useEffect, useState, type FormEvent, type ReactNode } from 'react'
|
||||
import { useBackToClose } from '../lib/backNav'
|
||||
import { PASSWORD_MIN, requestPasswordReset, signIn, signInWithGoogle, signOut, signUp, updatePassword, verifyTotp } from '../lib/cloud/auth'
|
||||
import { USERNAME_RE } from '../lib/cloud/social'
|
||||
import { cx } from '../lib/utils'
|
||||
@@ -33,7 +34,9 @@ function PasswordField({ value, onChange, placeholder, autoComplete }: { value:
|
||||
|
||||
function Shell({ children, subtitle }: { children: ReactNode; subtitle: string }) {
|
||||
return (
|
||||
<div className="safe-top safe-bottom flex min-h-dvh flex-col items-center justify-center bg-bg px-5 py-10">
|
||||
// Marges du téléphone (encoche, barre d'accueil) à part : sinon elles remplaçaient l'espace du haut
|
||||
<div className="safe-top safe-bottom bg-bg">
|
||||
<div className="flex min-h-dvh flex-col items-center justify-center px-5 py-10">
|
||||
<div className="w-full max-w-sm">
|
||||
<h1 className="text-center text-[2.4rem] font-bold leading-none">
|
||||
Bobin<span className="text-accent">oo</span>
|
||||
@@ -45,11 +48,25 @@ function Shell({ children, subtitle }: { children: ReactNode; subtitle: string }
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/** Écran de connexion / inscription (affiché quand les comptes sont activés et qu'on n'est pas connecté). */
|
||||
export default function AuthScreen({ notice, onExplore, initialMode = 'login' }: { notice?: string; /** Mode découverte : regarder l'app sans compte */ onExplore?: () => void; initialMode?: 'login' | 'signup' }) {
|
||||
export default function AuthScreen({
|
||||
notice,
|
||||
onExplore,
|
||||
initialMode = 'login',
|
||||
onBack,
|
||||
}: {
|
||||
notice?: string
|
||||
/** Mode découverte : regarder l'app sans compte */
|
||||
onExplore?: () => void
|
||||
initialMode?: 'login' | 'signup'
|
||||
/** Ouvert depuis le mode découverte : le bouton « retour » du navigateur y ramène */
|
||||
onBack?: () => void
|
||||
}) {
|
||||
useBackToClose(() => onBack?.(), !!onBack)
|
||||
const [mode, setMode] = useState<Mode>(initialMode)
|
||||
const [email, setEmail] = useState('')
|
||||
const [username, setUsername] = useState('')
|
||||
@@ -283,7 +300,7 @@ export function NewPasswordScreen({ onDone }: { onDone: () => void }) {
|
||||
export function TotpField({ value, onChange, autoFocus }: { value: string; onChange: (v: string) => void; autoFocus?: boolean }) {
|
||||
return (
|
||||
<input
|
||||
className="field text-center text-xl tracking-[0.3em] tabular-nums"
|
||||
className="field text-center text-xl tracking-[0.3em] tabular-nums placeholder:text-base placeholder:tracking-normal"
|
||||
inputMode="numeric"
|
||||
autoComplete="one-time-code"
|
||||
pattern="[0-9 ]{6,7}"
|
||||
|
||||
@@ -10,10 +10,12 @@ interface Props {
|
||||
confirmLabel?: string
|
||||
onConfirm: () => void
|
||||
onCancel: () => void
|
||||
/** Action irréversible (effacer, supprimer, bloquer…) : bouton rouge */
|
||||
danger?: boolean
|
||||
}
|
||||
|
||||
/** Fenêtre « Êtes-vous sûr ? » intégrée à l'app (plus fiable que window.confirm sur mobile). */
|
||||
export default function ConfirmDialog({ open, title, message, confirmLabel = t('common.confirm'), onConfirm, onCancel }: Props) {
|
||||
export default function ConfirmDialog({ open, title, message, confirmLabel = t('common.confirm'), onConfirm, onCancel, danger }: Props) {
|
||||
useEscape(onCancel, open)
|
||||
useBackToClose(onCancel, open)
|
||||
const titleId = useId()
|
||||
@@ -36,7 +38,7 @@ export default function ConfirmDialog({ open, title, message, confirmLabel = t('
|
||||
<button onClick={onCancel} className="btn btn-ghost" autoFocus>
|
||||
{t('common.cancel')}
|
||||
</button>
|
||||
<button onClick={onConfirm} className="btn btn-primary">
|
||||
<button onClick={onConfirm} className={danger ? 'btn bg-danger text-on-danger' : 'btn btn-primary'}>
|
||||
{confirmLabel}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -172,6 +172,7 @@ function ListDetail({ list, onBack, onOpen }: { list: CustomList; onBack: () =>
|
||||
title={t('confirm.title')}
|
||||
message={t('lists.deleteConfirm', { name: list.name })}
|
||||
confirmLabel={t('common.delete')}
|
||||
danger
|
||||
onConfirm={async () => {
|
||||
setConfirm(false)
|
||||
await deleteList(list.id)
|
||||
|
||||
@@ -3,6 +3,7 @@ import { useEffect, useState, type FormEvent } from 'react'
|
||||
import { t } from '../i18n'
|
||||
import { enrollTotp, listTotpFactors, removeTotp, verifyTotp } from '../lib/cloud/auth'
|
||||
import { TotpField } from './AuthScreen'
|
||||
import ConfirmDialog from './ConfirmDialog'
|
||||
|
||||
/** Réglages → Mon compte : activer / désactiver la double authentification (application d'authentification). */
|
||||
export default function TwoFactor({ onMessage }: { onMessage: (kind: 'ok' | 'error', text: string) => void }) {
|
||||
@@ -11,6 +12,7 @@ export default function TwoFactor({ onMessage }: { onMessage: (kind: 'ok' | 'err
|
||||
const [setup, setSetup] = useState<{ id: string; qr: string; secret: string }>()
|
||||
const [code, setCode] = useState('')
|
||||
const [busy, setBusy] = useState(false)
|
||||
const [confirmOff, setConfirmOff] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
let alive = true
|
||||
@@ -52,6 +54,7 @@ export default function TwoFactor({ onMessage }: { onMessage: (kind: 'ok' | 'err
|
||||
}
|
||||
|
||||
const disable = async () => {
|
||||
setConfirmOff(false)
|
||||
if (!factor) return
|
||||
setBusy(true)
|
||||
try {
|
||||
@@ -74,7 +77,7 @@ export default function TwoFactor({ onMessage }: { onMessage: (kind: 'ok' | 'err
|
||||
<span className="mt-0.5 block text-xs text-ink-3">{factor === undefined ? '…' : factor ? t('mfa.on') : t('mfa.off')}</span>
|
||||
</span>
|
||||
{factor !== undefined && !setup && (
|
||||
<button onClick={() => void (factor ? disable() : start())} disabled={busy} className="btn btn-ghost shrink-0 px-3 py-1.5 text-sm">
|
||||
<button onClick={() => (factor ? setConfirmOff(true) : void start())} disabled={busy} className="btn btn-ghost shrink-0 px-3 py-1.5 text-sm">
|
||||
{busy && <Loader2 size={14} className="animate-spin" />}
|
||||
{factor ? t('mfa.disable') : t('mfa.enable')}
|
||||
</button>
|
||||
@@ -104,6 +107,7 @@ export default function TwoFactor({ onMessage }: { onMessage: (kind: 'ok' | 'err
|
||||
</div>
|
||||
</form>
|
||||
)}
|
||||
<ConfirmDialog open={confirmOff} title={t('mfa.disable')} message={t('mfa.disableConfirm')} confirmLabel={t('mfa.disable')} onConfirm={() => void disable()} onCancel={() => setConfirmOff(false)} danger />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -8,7 +8,7 @@ export default function GuestPrompt({ onSignIn, onSignUp, onClose }: { onSignIn:
|
||||
useEscape(onClose)
|
||||
useBackToClose(onClose)
|
||||
return (
|
||||
<div className="fixed inset-0 z-[80] flex items-end justify-center bg-black/60 sm:items-center" onClick={onClose}>
|
||||
<div className="fixed inset-0 z-[80] flex items-end justify-center bg-scrim sm:items-center" onClick={onClose}>
|
||||
<div
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
@@ -27,7 +27,7 @@ export default function GuestPrompt({ onSignIn, onSignUp, onClose }: { onSignIn:
|
||||
</h2>
|
||||
<p className="mt-1.5 text-sm leading-relaxed text-ink-2">{t('guest.promptText')}</p>
|
||||
<div className="mt-6 space-y-2">
|
||||
<button onClick={onSignUp} className="btn btn-primary w-full py-3">
|
||||
<button onClick={onSignUp} className="btn btn-primary w-full py-3" autoFocus>
|
||||
{t('auth.signupTab')}
|
||||
</button>
|
||||
<button onClick={onSignIn} className="btn btn-ghost w-full py-3">
|
||||
|
||||
@@ -83,6 +83,7 @@ export default function SelectionBar({ selected, onDone }: Props) {
|
||||
title={t('confirm.title')}
|
||||
message={t('select.deleteConfirm', { count: selected.length })}
|
||||
confirmLabel={t('common.delete')}
|
||||
danger
|
||||
onConfirm={() => void run(() => actions.deleteItems(ids))}
|
||||
onCancel={() => setPanel(null)}
|
||||
/>
|
||||
|
||||
@@ -340,6 +340,7 @@ export default function ProfileView({ username, onClose }: { username: string; o
|
||||
title={t('block.confirmTitle', { name: profile?.displayName ?? '' })}
|
||||
message={t('block.confirmText')}
|
||||
confirmLabel={t('block.block')}
|
||||
danger
|
||||
onConfirm={doBlock}
|
||||
onCancel={() => setConfirmBlock(false)}
|
||||
/>
|
||||
|
||||
@@ -403,6 +403,7 @@ export function SharedListSheet({ id, onClose }: { id: string; onClose: () => vo
|
||||
title={t('confirm.title')}
|
||||
message={list ? (confirm === 'delete' ? t('shared.deleteConfirm', { name: list.name }) : t('shared.leaveConfirm', { name: list.name })) : undefined}
|
||||
confirmLabel={confirm === 'delete' ? t('common.delete') : t('shared.leaveShort')}
|
||||
danger
|
||||
onCancel={() => setConfirm(null)}
|
||||
onConfirm={async () => {
|
||||
if (!list) return
|
||||
|
||||
@@ -260,8 +260,6 @@ export default function AddTitle({
|
||||
</span>
|
||||
</button>
|
||||
)}
|
||||
|
||||
<p className="mt-6 text-center text-[11px] leading-relaxed text-ink-3">{t('search.privacy', { source: hasKey ? 'TMDB / AniList' : 'AniList' })}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -58,7 +58,9 @@ interface Props {
|
||||
* Vu / En cours / À voir, note, coup de cœur, avis, épisodes, casting et note moyenne du public.
|
||||
*/
|
||||
export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson, focus: initialFocus, onDone }: Props) {
|
||||
const { items, settings, add, update, lists, patchMany } = useMedia()
|
||||
const { items, settings, add, update, lists, patchMany, guest, requestAccount } = useMedia()
|
||||
// Mode découverte : écrire un avis demande un compte (avant de taper, pas au moment d'enregistrer)
|
||||
const openReview = () => (guest ? requestAccount() : setReviewing(true))
|
||||
const actions = useLibraryActions()
|
||||
const social = useSocial()
|
||||
useScrollLock()
|
||||
@@ -560,7 +562,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
|
||||
<section className="mx-4 mt-4">
|
||||
{item?.notes ? (
|
||||
<div className="card p-4">
|
||||
<button onClick={() => setReviewing(true)} className="block w-full text-start">
|
||||
<button onClick={openReview} className="block w-full text-start">
|
||||
<span className="eyebrow flex items-center justify-between">
|
||||
<span className="flex items-center gap-2">
|
||||
{t('form.review')}
|
||||
@@ -577,7 +579,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
<button onClick={() => setReviewing(true)} disabled={busy} className="flex w-full items-center gap-2 rounded-2xl border border-dashed border-line-strong px-4 py-3.5 text-start text-sm text-ink-2">
|
||||
<button onClick={openReview} disabled={busy} className="flex w-full items-center gap-2 rounded-2xl border border-dashed border-line-strong px-4 py-3.5 text-start text-sm text-ink-2">
|
||||
<Pencil size={16} className="text-accent" /> {t('title.writeReview')}
|
||||
</button>
|
||||
)}
|
||||
@@ -700,6 +702,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onOpenPerson,
|
||||
title={t('confirm.title')}
|
||||
message={item ? t('form.deleteConfirm', { title: item.title }) : undefined}
|
||||
confirmLabel={t('common.delete')}
|
||||
danger
|
||||
onConfirm={onDelete}
|
||||
onCancel={() => setConfirmDelete(false)}
|
||||
/>
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "نعم",
|
||||
'common.no': "لا",
|
||||
'common.cancel': 'إلغاء',
|
||||
'common.confirm': 'تأكيد',
|
||||
'common.close': 'إغلاق',
|
||||
@@ -378,6 +380,7 @@ const dict: Translations = {
|
||||
'mfa.code': "رمز من 6 أرقام",
|
||||
'mfa.confirm': "تأكيد",
|
||||
'mfa.enabled': "تم تفعيل المصادقة الثنائية.",
|
||||
'mfa.disableConfirm': "سيبقى حسابك محميًا بكلمة المرور فقط.",
|
||||
'mfa.disabled': "تم إيقاف المصادقة الثنائية.",
|
||||
'mfa.loginText': "افتح تطبيق المصادقة وأدخل الرمز المكوّن من 6 أرقام.",
|
||||
'mfa.err.code': "رمز غير صحيح أو منتهي الصلاحية.",
|
||||
@@ -423,6 +426,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_many': 'تقويم الإصدارات: {count} هذا الأسبوع',
|
||||
'home.emptyTitle': 'مكتبتك فارغة',
|
||||
'home.emptyCloud': 'أضف أول فيلم أو أنمي أو دراما. سيُحفظ في حسابك.',
|
||||
'home.emptyGuest': "تصفّح الأفلام والمسلسلات والأنمي. أنشئ حسابًا للاحتفاظ بعناوينك وتقييماتك.",
|
||||
'home.emptyLocal': 'أضف أول فيلم أو أنمي أو دراما. يبقى كل شيء مخزّنًا على هذا الهاتف فقط.',
|
||||
'home.episodesSeen': 'الحلقات المُشاهدة',
|
||||
|
||||
@@ -507,7 +511,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'تمت الإضافة',
|
||||
|
||||
'search.offline': 'لا يوجد اتصال بالإنترنت: البحث يتطلب الشبكة.',
|
||||
'search.privacy': 'يُرسَل العنوان الذي تبحث عنه فقط إلى {source}. تبقى مكتبتك على هاتفك.',
|
||||
|
||||
'catalog.sortRecent': 'المعدّلة مؤخرًا',
|
||||
'catalog.sortWatched': 'تاريخ المشاهدة',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Ja",
|
||||
'common.no': "Nein",
|
||||
'common.cancel': 'Abbrechen',
|
||||
'common.confirm': 'Bestätigen',
|
||||
'common.close': 'Schließen',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "6-stelliger Code",
|
||||
'mfa.confirm': "Bestätigen",
|
||||
'mfa.enabled': "Zwei-Faktor-Authentifizierung aktiviert.",
|
||||
'mfa.disableConfirm': "Dein Konto ist dann nur noch durch dein Passwort geschützt.",
|
||||
'mfa.disabled': "Zwei-Faktor-Authentifizierung deaktiviert.",
|
||||
'mfa.loginText': "Öffne deine Authenticator-App und gib den 6-stelligen Code ein.",
|
||||
'mfa.err.code': "Falscher oder abgelaufener Code.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Release-Kalender: {count} diese Woche',
|
||||
'home.emptyTitle': 'Deine Bibliothek ist leer',
|
||||
'home.emptyCloud': 'Füg deinen ersten Film, Anime oder dein erstes Drama hinzu. Er wird in deinem Konto gespeichert.',
|
||||
'home.emptyGuest': "Stöbere in Filmen, Serien und Animes. Erstelle ein Konto, um deine Titel und Bewertungen zu behalten.",
|
||||
'home.emptyLocal': 'Füg deinen ersten Film, Anime oder dein erstes Drama hinzu. Alles bleibt nur auf diesem Handy.',
|
||||
'home.episodesSeen': 'Gesehene Folgen',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Hinzugefügt',
|
||||
|
||||
'search.offline': 'Keine Internetverbindung: Für die Suche brauchst du Netz.',
|
||||
'search.privacy': 'Nur der gesuchte Titel wird an {source} gesendet. Deine Bibliothek bleibt auf deinem Handy.',
|
||||
|
||||
'catalog.sortRecent': 'Zuletzt bearbeitet',
|
||||
'catalog.sortWatched': 'Gesehen am',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Yes",
|
||||
'common.no': "No",
|
||||
'common.cancel': 'Cancel',
|
||||
'common.confirm': 'Confirm',
|
||||
'common.close': 'Close',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "6-digit code",
|
||||
'mfa.confirm': "Confirm",
|
||||
'mfa.enabled': "Two-factor authentication is on.",
|
||||
'mfa.disableConfirm': "Your account will only be protected by your password.",
|
||||
'mfa.disabled': "Two-factor authentication is off.",
|
||||
'mfa.loginText': "Open your authenticator app and enter the 6-digit code.",
|
||||
'mfa.err.code': "Wrong or expired code.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Release calendar: {count} this week',
|
||||
'home.emptyTitle': 'Your library is empty',
|
||||
'home.emptyCloud': 'Add your first movie, anime or drama. It’ll be saved to your account.',
|
||||
'home.emptyGuest': "Browse films, series and anime. Create an account to keep your titles and ratings.",
|
||||
'home.emptyLocal': 'Add your first movie, anime or drama. Everything stays stored only on this phone.',
|
||||
'home.episodesSeen': 'Episodes watched',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Added',
|
||||
|
||||
'search.offline': 'No internet connection: search needs the network.',
|
||||
'search.privacy': 'Only the title you search for is sent to {source}. Your library stays on your phone.',
|
||||
|
||||
'catalog.sortRecent': 'Recently edited',
|
||||
'catalog.sortWatched': 'Watch date',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Sí",
|
||||
'common.no': "No",
|
||||
'common.cancel': 'Cancelar',
|
||||
'common.confirm': 'Confirmar',
|
||||
'common.close': 'Cerrar',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "Código de 6 cifras",
|
||||
'mfa.confirm': "Confirmar",
|
||||
'mfa.enabled': "Verificación en dos pasos activada.",
|
||||
'mfa.disableConfirm': "Tu cuenta solo quedará protegida por tu contraseña.",
|
||||
'mfa.disabled': "Verificación en dos pasos desactivada.",
|
||||
'mfa.loginText': "Abre tu app de autenticación e introduce el código de 6 cifras.",
|
||||
'mfa.err.code': "Código incorrecto o caducado.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Calendario de estrenos: {count} esta semana',
|
||||
'home.emptyTitle': 'Tu biblioteca está vacía',
|
||||
'home.emptyCloud': 'Añade tu primera película, anime o drama. Se guardará en tu cuenta.',
|
||||
'home.emptyGuest': "Explora películas, series y animes. Crea una cuenta para guardar tus títulos y notas.",
|
||||
'home.emptyLocal': 'Añade tu primera película, anime o drama. Todo se guarda solo en este teléfono.',
|
||||
'home.episodesSeen': 'Episodios vistos',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Añadido',
|
||||
|
||||
'search.offline': 'Sin conexión a internet: la búsqueda necesita red.',
|
||||
'search.privacy': 'Solo se envía a {source} el título que buscas. Tu biblioteca se queda en tu teléfono.',
|
||||
|
||||
'catalog.sortRecent': 'Editados recientemente',
|
||||
'catalog.sortWatched': 'Fecha de visionado',
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
*/
|
||||
|
||||
const dict = {
|
||||
'common.yes': "Oui",
|
||||
'common.no': "Non",
|
||||
'common.cancel': 'Annuler',
|
||||
'common.confirm': 'Confirmer',
|
||||
'common.close': 'Fermer',
|
||||
@@ -107,7 +109,7 @@ const dict = {
|
||||
'genre.anime': 'Anime',
|
||||
'genre.magicalGirl': 'Magical Girl',
|
||||
|
||||
'confirm.title': 'Êtes-vous sûr ?',
|
||||
'confirm.title': 'Tu es sûr ?',
|
||||
|
||||
'err.tmdbRefused': 'Requête TMDB refusée.',
|
||||
'err.tmdbKeyRefused': 'Clé TMDB refusée. Vérifie-la dans Réglages.',
|
||||
@@ -353,6 +355,7 @@ const dict = {
|
||||
'mfa.code': "Code à 6 chiffres",
|
||||
'mfa.confirm': "Valider",
|
||||
'mfa.enabled': "Double authentification activée.",
|
||||
'mfa.disableConfirm': "Ton compte ne sera plus protégé que par ton mot de passe.",
|
||||
'mfa.disabled': "Double authentification désactivée.",
|
||||
'mfa.loginText': "Ouvre ton application d'authentification et saisis le code à 6 chiffres.",
|
||||
'mfa.err.code': "Code incorrect ou expiré.",
|
||||
@@ -386,6 +389,7 @@ const dict = {
|
||||
'home.calendarSoon_other': 'Calendrier des sorties : {count} cette semaine',
|
||||
'home.emptyTitle': 'Ta bibliothèque est vide',
|
||||
'home.emptyCloud': 'Ajoute ton premier film, anime ou drama. Il sera enregistré dans ton compte.',
|
||||
'home.emptyGuest': "Explore les films, séries et animes. Crée un compte pour garder tes titres et tes notes.",
|
||||
'home.emptyLocal': 'Ajoute ton premier film, anime ou drama. Tout reste stocké uniquement sur ce téléphone.',
|
||||
'home.episodesSeen': 'Épisodes vus',
|
||||
|
||||
@@ -461,7 +465,6 @@ const dict = {
|
||||
'reco.addedShort': 'Ajouté',
|
||||
|
||||
'search.offline': 'Pas de connexion Internet : la recherche nécessite le réseau.',
|
||||
'search.privacy': 'Seul le titre recherché est envoyé à {source}. Ta bibliothèque reste sur ton téléphone.',
|
||||
|
||||
'catalog.sortRecent': 'Modifiés récemment',
|
||||
'catalog.sortWatched': 'Date de visionnage',
|
||||
@@ -739,7 +742,7 @@ const dict = {
|
||||
// — Bibliothèque : tags perso, actions groupées, « Annuler » —
|
||||
"tags.label": "Tags perso",
|
||||
"tags.placeholder": "comfort, halloween, à revoir avec Léa…",
|
||||
"tags.private": "Visibles par vous seul, jamais sur votre profil.",
|
||||
"tags.private": "Visibles par toi seul, jamais sur ton profil.",
|
||||
"tags.filter": "Tags perso",
|
||||
"select.start": "Sélectionner",
|
||||
"select.exit": "Quitter la sélection",
|
||||
@@ -896,7 +899,7 @@ const dict = {
|
||||
"block.undone": "Compte débloqué : {name}",
|
||||
"block.notice": "Tu as bloqué ce compte : il ne peut plus te suivre ni réagir à tes avis, et ses avis te sont masqués.",
|
||||
"block.confirmTitle": "Bloquer {name} ?",
|
||||
"block.confirmText": "Vous ne vous suivrez plus. Ce compte ne pourra plus te suivre ni réagir à tes avis, et ses avis te seront masqués. Il n'en est pas averti.",
|
||||
"block.confirmText": "Vous ne vous suivrez plus l'un l'autre. Ce compte ne pourra plus te suivre ni réagir à tes avis, et ses avis te seront masqués. Il n'en est pas averti.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Signalements",
|
||||
"adminMod.tabSuspended": "Suspendus",
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "हाँ",
|
||||
'common.no': "नहीं",
|
||||
'common.cancel': 'रद्द करें',
|
||||
'common.confirm': 'कन्फ़र्म करें',
|
||||
'common.close': 'बंद करें',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "6 अंकों का कोड",
|
||||
'mfa.confirm': "पुष्टि करें",
|
||||
'mfa.enabled': "दो-चरणीय सत्यापन चालू हो गया।",
|
||||
'mfa.disableConfirm': "आपका खाता केवल पासवर्ड से सुरक्षित रहेगा।",
|
||||
'mfa.disabled': "दो-चरणीय सत्यापन बंद हो गया।",
|
||||
'mfa.loginText': "अपना ऑथेंटिकेटर ऐप खोलें और 6 अंकों का कोड डालें।",
|
||||
'mfa.err.code': "कोड गलत है या उसकी अवधि खत्म हो गई।",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'रिलीज़ कैलेंडर: इस हफ़्ते {count}',
|
||||
'home.emptyTitle': 'आपकी लाइब्रेरी खाली है',
|
||||
'home.emptyCloud': 'अपनी पहली फ़िल्म, एनिमे या ड्रामा जोड़ें। यह आपके अकाउंट में सेव होगा।',
|
||||
'home.emptyGuest': "फ़िल्में, सीरीज़ और एनीमे देखें। अपने टाइटल और रेटिंग सहेजने के लिए खाता बनाएँ।",
|
||||
'home.emptyLocal': 'अपनी पहली फ़िल्म, एनिमे या ड्रामा जोड़ें। सब कुछ सिर्फ़ इसी फ़ोन पर सेव रहेगा।',
|
||||
'home.episodesSeen': 'देखे गए एपिसोड',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'जोड़ा गया',
|
||||
|
||||
'search.offline': 'इंटरनेट कनेक्शन नहीं है: खोज के लिए नेटवर्क ज़रूरी है।',
|
||||
'search.privacy': 'सिर्फ़ खोजा गया टाइटल {source} को भेजा जाता है। आपकी लाइब्रेरी आपके फ़ोन पर ही रहती है।',
|
||||
|
||||
'catalog.sortRecent': 'हाल ही में एडिट किए',
|
||||
'catalog.sortWatched': 'देखने की तारीख',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Ya",
|
||||
'common.no': "Tidak",
|
||||
'common.cancel': 'Batal',
|
||||
'common.confirm': 'Konfirmasi',
|
||||
'common.close': 'Tutup',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "Kode 6 digit",
|
||||
'mfa.confirm': "Konfirmasi",
|
||||
'mfa.enabled': "Autentikasi dua faktor diaktifkan.",
|
||||
'mfa.disableConfirm': "Akunmu hanya akan dilindungi kata sandi.",
|
||||
'mfa.disabled': "Autentikasi dua faktor dinonaktifkan.",
|
||||
'mfa.loginText': "Buka aplikasi autentikator dan masukkan kode 6 digit.",
|
||||
'mfa.err.code': "Kode salah atau kedaluwarsa.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Kalender rilis: {count} minggu ini',
|
||||
'home.emptyTitle': 'Koleksimu masih kosong',
|
||||
'home.emptyCloud': 'Tambahkan film, anime, atau drama pertamamu. Semuanya akan disimpan di akunmu.',
|
||||
'home.emptyGuest': "Jelajahi film, serial, dan anime. Buat akun untuk menyimpan judul dan nilaimu.",
|
||||
'home.emptyLocal': 'Tambahkan film, anime, atau drama pertamamu. Semuanya hanya disimpan di ponsel ini.',
|
||||
'home.episodesSeen': 'Episode ditonton',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Ditambahkan',
|
||||
|
||||
'search.offline': 'Tidak ada koneksi internet: pencarian butuh jaringan.',
|
||||
'search.privacy': 'Hanya judul yang kamu cari yang dikirim ke {source}. Koleksimu tetap di ponselmu.',
|
||||
|
||||
'catalog.sortRecent': 'Baru diubah',
|
||||
'catalog.sortWatched': 'Tanggal ditonton',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Sì",
|
||||
'common.no': "No",
|
||||
'common.cancel': 'Annulla',
|
||||
'common.confirm': 'Conferma',
|
||||
'common.close': 'Chiudi',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "Codice a 6 cifre",
|
||||
'mfa.confirm': "Conferma",
|
||||
'mfa.enabled': "Autenticazione a due fattori attivata.",
|
||||
'mfa.disableConfirm': "Il tuo account sarà protetto solo dalla password.",
|
||||
'mfa.disabled': "Autenticazione a due fattori disattivata.",
|
||||
'mfa.loginText': "Apri la tua app di autenticazione e inserisci il codice a 6 cifre.",
|
||||
'mfa.err.code': "Codice errato o scaduto.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Calendario delle uscite: {count} questa settimana',
|
||||
'home.emptyTitle': 'La tua libreria è vuota',
|
||||
'home.emptyCloud': 'Aggiungi il tuo primo film, anime o drama. Verrà salvato nel tuo account.',
|
||||
'home.emptyGuest': "Esplora film, serie e anime. Crea un account per salvare i tuoi titoli e voti.",
|
||||
'home.emptyLocal': 'Aggiungi il tuo primo film, anime o drama. Resta tutto salvato solo su questo telefono.',
|
||||
'home.episodesSeen': 'Episodi visti',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Aggiunto',
|
||||
|
||||
'search.offline': 'Nessuna connessione internet: la ricerca ha bisogno della rete.',
|
||||
'search.privacy': 'Viene inviato a {source} solo il titolo cercato. La tua libreria resta sul tuo telefono.',
|
||||
|
||||
'catalog.sortRecent': 'Modificati di recente',
|
||||
'catalog.sortWatched': 'Data di visione',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "はい",
|
||||
'common.no': "いいえ",
|
||||
'common.cancel': 'キャンセル',
|
||||
'common.confirm': '確認',
|
||||
'common.close': '閉じる',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "6桁のコード",
|
||||
'mfa.confirm': "確認",
|
||||
'mfa.enabled': "2段階認証をオンにしました。",
|
||||
'mfa.disableConfirm': "アカウントはパスワードだけで保護されるようになります。",
|
||||
'mfa.disabled': "2段階認証をオフにしました。",
|
||||
'mfa.loginText': "認証アプリを開いて6桁のコードを入力してください。",
|
||||
'mfa.err.code': "コードが正しくないか期限切れです。",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': '公開カレンダー:今週{count}件',
|
||||
'home.emptyTitle': 'ライブラリは空です',
|
||||
'home.emptyCloud': '最初の映画、アニメ、ドラマを追加しましょう。アカウントに保存されます。',
|
||||
'home.emptyGuest': "映画・ドラマ・アニメを探してみよう。タイトルや評価を保存するにはアカウントを作成してください。",
|
||||
'home.emptyLocal': '最初の映画、アニメ、ドラマを追加しましょう。データはこのスマホにのみ保存されます。',
|
||||
'home.episodesSeen': '視聴エピソード',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': '追加済み',
|
||||
|
||||
'search.offline': 'インターネットに接続されていません。検索にはネット接続が必要です。',
|
||||
'search.privacy': '{source}に送信されるのは検索したタイトルだけです。ライブラリはスマホに残ります。',
|
||||
|
||||
'catalog.sortRecent': '最近の更新順',
|
||||
'catalog.sortWatched': '視聴日',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "예",
|
||||
'common.no': "아니요",
|
||||
'common.cancel': '취소',
|
||||
'common.confirm': '확인',
|
||||
'common.close': '닫기',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "6자리 코드",
|
||||
'mfa.confirm': "확인",
|
||||
'mfa.enabled': "2단계 인증이 켜졌어요.",
|
||||
'mfa.disableConfirm': "계정이 비밀번호로만 보호돼요.",
|
||||
'mfa.disabled': "2단계 인증이 꺼졌어요.",
|
||||
'mfa.loginText': "인증 앱을 열고 6자리 코드를 입력하세요.",
|
||||
'mfa.err.code': "코드가 틀렸거나 만료됐어요.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': '공개 캘린더: 이번 주 {count}개',
|
||||
'home.emptyTitle': '라이브러리가 비어 있어요',
|
||||
'home.emptyCloud': '첫 영화, 애니, 드라마를 추가해 보세요. 내 계정에 저장돼요.',
|
||||
'home.emptyGuest': "영화, 시리즈, 애니를 둘러보세요. 작품과 평점을 저장하려면 계정을 만드세요.",
|
||||
'home.emptyLocal': '첫 영화, 애니, 드라마를 추가해 보세요. 모든 데이터는 이 휴대폰에만 저장돼요.',
|
||||
'home.episodesSeen': '본 에피소드',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': '추가됨',
|
||||
|
||||
'search.offline': '인터넷에 연결되어 있지 않아요. 검색하려면 네트워크가 필요해요.',
|
||||
'search.privacy': '검색한 제목만 {source}(으)로 전송돼요. 라이브러리는 휴대폰에 그대로 남아요.',
|
||||
|
||||
'catalog.sortRecent': '최근 수정순',
|
||||
'catalog.sortWatched': '시청 날짜순',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Ja",
|
||||
'common.no': "Nee",
|
||||
'common.cancel': 'Annuleren',
|
||||
'common.confirm': 'Bevestigen',
|
||||
'common.close': 'Sluiten',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "6-cijferige code",
|
||||
'mfa.confirm': "Bevestigen",
|
||||
'mfa.enabled': "Tweestapsverificatie ingeschakeld.",
|
||||
'mfa.disableConfirm': "Je account wordt dan alleen nog door je wachtwoord beschermd.",
|
||||
'mfa.disabled': "Tweestapsverificatie uitgeschakeld.",
|
||||
'mfa.loginText': "Open je authenticator-app en voer de 6-cijferige code in.",
|
||||
'mfa.err.code': "Onjuiste of verlopen code.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Releasekalender: {count} deze week',
|
||||
'home.emptyTitle': 'Je bibliotheek is leeg',
|
||||
'home.emptyCloud': 'Voeg je eerste film, anime of drama toe. Hij wordt in je account opgeslagen.',
|
||||
'home.emptyGuest': "Ontdek films, series en anime. Maak een account om je titels en beoordelingen te bewaren.",
|
||||
'home.emptyLocal': 'Voeg je eerste film, anime of drama toe. Alles blijft alleen op deze telefoon staan.',
|
||||
'home.episodesSeen': 'Afleveringen gezien',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Toegevoegd',
|
||||
|
||||
'search.offline': 'Geen internetverbinding: zoeken werkt alleen online.',
|
||||
'search.privacy': 'Alleen de gezochte titel wordt naar {source} gestuurd. Je bibliotheek blijft op je telefoon.',
|
||||
|
||||
'catalog.sortRecent': 'Recent bewerkt',
|
||||
'catalog.sortWatched': 'Kijkdatum',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Tak",
|
||||
'common.no': "Nie",
|
||||
'common.cancel': 'Anuluj',
|
||||
'common.confirm': 'Potwierdź',
|
||||
'common.close': 'Zamknij',
|
||||
@@ -369,6 +371,7 @@ const dict: Translations = {
|
||||
'mfa.code': "Kod 6-cyfrowy",
|
||||
'mfa.confirm': "Potwierdź",
|
||||
'mfa.enabled': "Weryfikacja dwuetapowa włączona.",
|
||||
'mfa.disableConfirm': "Twoje konto będzie chronione tylko hasłem.",
|
||||
'mfa.disabled': "Weryfikacja dwuetapowa wyłączona.",
|
||||
'mfa.loginText': "Otwórz aplikację uwierzytelniającą i wpisz 6-cyfrowy kod.",
|
||||
'mfa.err.code': "Nieprawidłowy lub wygasły kod.",
|
||||
@@ -410,6 +413,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Kalendarz premier: {count} w tym tygodniu',
|
||||
'home.emptyTitle': 'Twoja biblioteka jest pusta',
|
||||
'home.emptyCloud': 'Dodaj swój pierwszy film, anime lub dramę. Zostanie zapisany na twoim koncie.',
|
||||
'home.emptyGuest': "Przeglądaj filmy, seriale i anime. Załóż konto, aby zachować swoje tytuły i oceny.",
|
||||
'home.emptyLocal': 'Dodaj swój pierwszy film, anime lub dramę. Wszystko jest przechowywane tylko na tym telefonie.',
|
||||
'home.episodesSeen': 'Obejrzane odcinki',
|
||||
|
||||
@@ -491,7 +495,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Dodano',
|
||||
|
||||
'search.offline': 'Brak połączenia z internetem: wyszukiwanie wymaga sieci.',
|
||||
'search.privacy': 'Do {source} wysyłany jest tylko wyszukiwany tytuł. Twoja biblioteka zostaje na twoim telefonie.',
|
||||
|
||||
'catalog.sortRecent': 'Ostatnio edytowane',
|
||||
'catalog.sortWatched': 'Data obejrzenia',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Sim",
|
||||
'common.no': "Não",
|
||||
'common.cancel': 'Cancelar',
|
||||
'common.confirm': 'Confirmar',
|
||||
'common.close': 'Fechar',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "Código de 6 dígitos",
|
||||
'mfa.confirm': "Confirmar",
|
||||
'mfa.enabled': "Autenticação de dois fatores ativada.",
|
||||
'mfa.disableConfirm': "A tua conta ficará protegida apenas pela palavra-passe.",
|
||||
'mfa.disabled': "Autenticação de dois fatores desativada.",
|
||||
'mfa.loginText': "Abre a tua app de autenticação e introduz o código de 6 dígitos.",
|
||||
'mfa.err.code': "Código incorreto ou expirado.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Calendário de lançamentos: {count} nesta semana',
|
||||
'home.emptyTitle': 'Sua biblioteca está vazia',
|
||||
'home.emptyCloud': 'Adicione seu primeiro filme, anime ou dorama. Ele ficará salvo na sua conta.',
|
||||
'home.emptyGuest': "Explora filmes, séries e animes. Cria uma conta para guardar os teus títulos e notas.",
|
||||
'home.emptyLocal': 'Adicione seu primeiro filme, anime ou dorama. Tudo fica guardado só neste celular.',
|
||||
'home.episodesSeen': 'Episódios vistos',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Adicionado',
|
||||
|
||||
'search.offline': 'Sem conexão com a internet: a busca precisa de rede.',
|
||||
'search.privacy': 'Só o título buscado é enviado para {source}. Sua biblioteca fica no seu celular.',
|
||||
|
||||
'catalog.sortRecent': 'Editados recentemente',
|
||||
'catalog.sortWatched': 'Data em que assisti',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Да",
|
||||
'common.no': "Нет",
|
||||
'common.cancel': 'Отмена',
|
||||
'common.confirm': 'Подтвердить',
|
||||
'common.close': 'Закрыть',
|
||||
@@ -369,6 +371,7 @@ const dict: Translations = {
|
||||
'mfa.code': "6-значный код",
|
||||
'mfa.confirm': "Подтвердить",
|
||||
'mfa.enabled': "Двухфакторная аутентификация включена.",
|
||||
'mfa.disableConfirm': "Аккаунт будет защищён только паролем.",
|
||||
'mfa.disabled': "Двухфакторная аутентификация выключена.",
|
||||
'mfa.loginText': "Открой приложение-аутентификатор и введи 6-значный код.",
|
||||
'mfa.err.code': "Неверный или устаревший код.",
|
||||
@@ -410,6 +413,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Календарь релизов: {count} на этой неделе',
|
||||
'home.emptyTitle': 'Твоя библиотека пуста',
|
||||
'home.emptyCloud': 'Добавь свой первый фильм, аниме или дораму. Всё сохранится в аккаунте.',
|
||||
'home.emptyGuest': "Смотри фильмы, сериалы и аниме. Создай аккаунт, чтобы сохранять свои тайтлы и оценки.",
|
||||
'home.emptyLocal': 'Добавь свой первый фильм, аниме или дораму. Всё хранится только на этом телефоне.',
|
||||
'home.episodesSeen': 'Просмотрено серий',
|
||||
|
||||
@@ -491,7 +495,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Добавлено',
|
||||
|
||||
'search.offline': 'Нет подключения к интернету: для поиска нужна сеть.',
|
||||
'search.privacy': 'В {source} отправляется только название, которое ты ищешь. Твоя библиотека остаётся на телефоне.',
|
||||
|
||||
'catalog.sortRecent': 'Недавно изменённые',
|
||||
'catalog.sortWatched': 'Дата просмотра',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "ใช่",
|
||||
'common.no': "ไม่",
|
||||
'common.cancel': 'ยกเลิก',
|
||||
'common.confirm': 'ยืนยัน',
|
||||
'common.close': 'ปิด',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "รหัส 6 หลัก",
|
||||
'mfa.confirm': "ยืนยัน",
|
||||
'mfa.enabled': "เปิดการยืนยันตัวตนสองขั้นตอนแล้ว",
|
||||
'mfa.disableConfirm': "บัญชีของคุณจะได้รับการปกป้องด้วยรหัสผ่านเท่านั้น",
|
||||
'mfa.disabled': "ปิดการยืนยันตัวตนสองขั้นตอนแล้ว",
|
||||
'mfa.loginText': "เปิดแอปยืนยันตัวตนแล้วกรอกรหัส 6 หลัก",
|
||||
'mfa.err.code': "รหัสไม่ถูกต้องหรือหมดอายุ",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'ปฏิทินวันฉาย: สัปดาห์นี้ {count} เรื่อง',
|
||||
'home.emptyTitle': 'คลังของคุณยังว่างอยู่',
|
||||
'home.emptyCloud': 'เพิ่มหนัง อนิเมะ หรือดราม่าเรื่องแรกของคุณ ระบบจะบันทึกไว้ในบัญชีของคุณ',
|
||||
'home.emptyGuest': "สำรวจภาพยนตร์ ซีรีส์ และอนิเมะ สร้างบัญชีเพื่อเก็บรายการและคะแนนของคุณ",
|
||||
'home.emptyLocal': 'เพิ่มหนัง อนิเมะ หรือดราม่าเรื่องแรกของคุณ ข้อมูลทั้งหมดจะเก็บไว้ในโทรศัพท์เครื่องนี้เท่านั้น',
|
||||
'home.episodesSeen': 'ตอนที่ดูแล้ว',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'เพิ่มแล้ว',
|
||||
|
||||
'search.offline': 'ไม่มีการเชื่อมต่ออินเทอร์เน็ต การค้นหาต้องใช้เครือข่าย',
|
||||
'search.privacy': 'จะส่งเฉพาะชื่อเรื่องที่ค้นหาไปยัง {source} เท่านั้น คลังของคุณยังอยู่ในโทรศัพท์ของคุณ',
|
||||
|
||||
'catalog.sortRecent': 'แก้ไขล่าสุด',
|
||||
'catalog.sortWatched': 'วันที่ดู',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Evet",
|
||||
'common.no': "Hayır",
|
||||
'common.cancel': 'İptal',
|
||||
'common.confirm': 'Onayla',
|
||||
'common.close': 'Kapat',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "6 haneli kod",
|
||||
'mfa.confirm': "Onayla",
|
||||
'mfa.enabled': "İki adımlı doğrulama açıldı.",
|
||||
'mfa.disableConfirm': "Hesabın yalnızca şifrenle korunacak.",
|
||||
'mfa.disabled': "İki adımlı doğrulama kapatıldı.",
|
||||
'mfa.loginText': "Kimlik doğrulama uygulamanı aç ve 6 haneli kodu gir.",
|
||||
'mfa.err.code': "Kod yanlış veya süresi dolmuş.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Yayın takvimi: bu hafta {count}',
|
||||
'home.emptyTitle': 'Kütüphanen boş',
|
||||
'home.emptyCloud': 'İlk filmini, animeni ya da dramanı ekle. Hesabına kaydedilecek.',
|
||||
'home.emptyGuest': "Filmlere, dizilere ve animelere göz at. Başlıklarını ve puanlarını saklamak için hesap oluştur.",
|
||||
'home.emptyLocal': 'İlk filmini, animeni ya da dramanı ekle. Her şey yalnızca bu telefonda saklanır.',
|
||||
'home.episodesSeen': 'İzlenen bölümler',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Eklendi',
|
||||
|
||||
'search.offline': 'İnternet bağlantısı yok: arama için ağ gerekli.',
|
||||
'search.privacy': 'Yalnızca aradığın başlık {source} servisine gönderilir. Kütüphanen telefonunda kalır.',
|
||||
|
||||
'catalog.sortRecent': 'Son düzenlenenler',
|
||||
'catalog.sortWatched': 'İzleme tarihi',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "Có",
|
||||
'common.no': "Không",
|
||||
'common.cancel': 'Hủy',
|
||||
'common.confirm': 'Xác nhận',
|
||||
'common.close': 'Đóng',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "Mã 6 chữ số",
|
||||
'mfa.confirm': "Xác nhận",
|
||||
'mfa.enabled': "Đã bật xác thực hai lớp.",
|
||||
'mfa.disableConfirm': "Tài khoản của bạn sẽ chỉ được bảo vệ bằng mật khẩu.",
|
||||
'mfa.disabled': "Đã tắt xác thực hai lớp.",
|
||||
'mfa.loginText': "Mở ứng dụng xác thực và nhập mã 6 chữ số.",
|
||||
'mfa.err.code': "Mã sai hoặc đã hết hạn.",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': 'Lịch phát hành: {count} trong tuần này',
|
||||
'home.emptyTitle': 'Thư viện của bạn đang trống',
|
||||
'home.emptyCloud': 'Thêm phim, anime hay drama đầu tiên của bạn. Nó sẽ được lưu vào tài khoản của bạn.',
|
||||
'home.emptyGuest': "Khám phá phim, series và anime. Tạo tài khoản để lưu các tựa phim và điểm của bạn.",
|
||||
'home.emptyLocal': 'Thêm phim, anime hay drama đầu tiên của bạn. Mọi thứ chỉ được lưu trên điện thoại này.',
|
||||
'home.episodesSeen': 'Số tập đã xem',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': 'Đã thêm',
|
||||
|
||||
'search.offline': 'Không có kết nối internet: tìm kiếm cần có mạng.',
|
||||
'search.privacy': 'Chỉ tên phim bạn tìm được gửi tới {source}. Thư viện của bạn vẫn nằm trên điện thoại.',
|
||||
|
||||
'catalog.sortRecent': 'Sửa gần đây',
|
||||
'catalog.sortWatched': 'Ngày xem',
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
import type { Translations } from '..'
|
||||
|
||||
const dict: Translations = {
|
||||
'common.yes': "是",
|
||||
'common.no': "否",
|
||||
'common.cancel': '取消',
|
||||
'common.confirm': '确认',
|
||||
'common.close': '关闭',
|
||||
@@ -351,6 +353,7 @@ const dict: Translations = {
|
||||
'mfa.code': "6 位验证码",
|
||||
'mfa.confirm': "确认",
|
||||
'mfa.enabled': "双重验证已开启。",
|
||||
'mfa.disableConfirm': "你的账户将只受密码保护。",
|
||||
'mfa.disabled': "双重验证已关闭。",
|
||||
'mfa.loginText': "打开身份验证器应用并输入 6 位验证码。",
|
||||
'mfa.err.code': "验证码错误或已过期。",
|
||||
@@ -384,6 +387,7 @@ const dict: Translations = {
|
||||
'home.calendarSoon_other': '上映日历:本周{count}部',
|
||||
'home.emptyTitle': '你的片库是空的',
|
||||
'home.emptyCloud': '添加你的第一部电影、动画或电视剧吧,它会保存在你的账号中。',
|
||||
'home.emptyGuest': "浏览电影、剧集和动漫。创建账户即可保存你的作品和评分。",
|
||||
'home.emptyLocal': '添加你的第一部电影、动画或电视剧吧,所有内容只保存在这台手机上。',
|
||||
'home.episodesSeen': '已看集数',
|
||||
|
||||
@@ -459,7 +463,6 @@ const dict: Translations = {
|
||||
'reco.addedShort': '已添加',
|
||||
|
||||
'search.offline': '没有网络连接:搜索需要联网。',
|
||||
'search.privacy': '只有搜索的标题会发送给 {source}。你的片库仍保留在手机上。',
|
||||
|
||||
'catalog.sortRecent': '最近修改',
|
||||
'catalog.sortWatched': '观看日期',
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
--color-accent: #53bfb6;
|
||||
--color-accent-fill: #53bfb6;
|
||||
--color-on-accent: #062b28;
|
||||
--color-danger: #f97066;
|
||||
--color-on-danger: #2b0a06;
|
||||
/* Voile sombre derrière les fenêtres (identique dans toutes les apparences) */
|
||||
--color-scrim: rgb(0 0 0 / 0.7);
|
||||
|
||||
@@ -86,6 +88,8 @@
|
||||
--color-accent: #00746d;
|
||||
--color-accent-fill: #00746d;
|
||||
--color-on-accent: #ffffff;
|
||||
--color-danger: #b42318;
|
||||
--color-on-danger: #ffffff;
|
||||
color-scheme: light;
|
||||
}
|
||||
|
||||
@@ -101,6 +105,8 @@
|
||||
--color-accent: #53bfb6;
|
||||
--color-accent-fill: #53bfb6;
|
||||
--color-on-accent: #062b28;
|
||||
--color-danger: #f97066;
|
||||
--color-on-danger: #2b0a06;
|
||||
color-scheme: dark;
|
||||
}
|
||||
|
||||
@@ -119,6 +125,10 @@
|
||||
--color-accent: #00746d;
|
||||
--color-accent-fill: #00746d;
|
||||
--color-on-accent: #ffffff;
|
||||
--color-danger: #b42318;
|
||||
--color-on-danger: #ffffff;
|
||||
--color-danger: #b42318;
|
||||
--color-on-danger: #ffffff;
|
||||
color-scheme: light;
|
||||
}
|
||||
}
|
||||
|
||||
+3
-3
@@ -1,4 +1,4 @@
|
||||
import { getLang } from '../i18n'
|
||||
import { getLang, t } from '../i18n'
|
||||
import type { ThemeMode } from '../types'
|
||||
|
||||
/** Version de l'app (package.json). */
|
||||
@@ -55,7 +55,7 @@ export function techInfo(theme: ThemeMode): Record<string, string> {
|
||||
screen: `${screen.width}×${screen.height} @${Math.round((window.devicePixelRatio || 1) * 10) / 10}x`,
|
||||
viewport: `${window.innerWidth}×${window.innerHeight}`,
|
||||
route: currentRoute(),
|
||||
standalone: standalone ? 'yes' : 'no',
|
||||
online: navigator.onLine ? 'yes' : 'no',
|
||||
standalone: standalone ? t('common.yes') : t('common.no'),
|
||||
online: navigator.onLine ? t('common.yes') : t('common.no'),
|
||||
}
|
||||
}
|
||||
@@ -487,7 +487,9 @@ export async function verifyTotp(factorId: string, code: string): Promise<void>
|
||||
try {
|
||||
data = await gotrue(`/factors/${factorId}/verify`, { token, body: { challenge_id: challenge.id, code: clean } })
|
||||
} catch (e) {
|
||||
if (e instanceof AuthError && (e.code === 'mfa_verification_failed' || e.code === 'invalid_credentials')) throw new AuthError(t('mfa.err.code'))
|
||||
// Code refusé (faux ou expiré) : le serveur répond 400 / 422 selon le cas
|
||||
const status = (e as { status?: number }).status
|
||||
if (e instanceof AuthError && (e.code === 'mfa_verification_failed' || e.code === 'invalid_credentials' || status === 400 || status === 422)) throw new AuthError(t('mfa.err.code'))
|
||||
throw e
|
||||
}
|
||||
const s = toSession({ ...data, user: data.user ?? { id: current?.user.id, email: current?.user.email } })
|
||||
@@ -503,7 +505,9 @@ export async function enrollTotp(): Promise<{ id: string; qr: string; secret: st
|
||||
for (const f of await listTotpFactors()) if (!f.verified) await gotrue(`/factors/${f.id}`, { method: 'DELETE', token }).catch(() => {})
|
||||
const data = await gotrue('/factors', { token, body: { factor_type: 'totp', friendly_name: `Bobinoo ${Date.now().toString(36)}` } })
|
||||
const totp = data.totp as { qr_code?: unknown; secret?: unknown } | undefined
|
||||
const qr = typeof totp?.qr_code === 'string' && totp.qr_code.startsWith('data:image/svg+xml') ? totp.qr_code : ''
|
||||
// Le QR code arrive en SVG brut (ou déjà en data: URI) : affiché comme image, il ne peut rien exécuter
|
||||
const raw = typeof totp?.qr_code === 'string' ? totp.qr_code.trim() : ''
|
||||
const qr = raw.startsWith('data:image/svg+xml') ? raw : /^(<\?xml|<svg)/.test(raw) ? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(raw)}` : ''
|
||||
if (typeof data.id !== 'string' || !FACTOR_ID.test(data.id) || typeof totp?.secret !== 'string') throw new AuthError(t('auth.err.response'))
|
||||
return { id: data.id, qr, secret: totp.secret }
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ function PosterStrip({ items, onOpen }: { items: MediaItem[]; onOpen: (item: Med
|
||||
}
|
||||
|
||||
export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCalendar, onOpenSeed }: Props) {
|
||||
const { items, loading, account, settings, patchMany } = useMedia()
|
||||
const { items, loading, account, guest, settings, patchMany } = useMedia()
|
||||
const social = useSocial()
|
||||
// Sorties dans les 7 prochains jours (pastille sur l'icône calendrier)
|
||||
// Vérification discrète des nouveaux épisodes (au plus toutes les 12 h) : pastille du calendrier et nombre d'épisodes à jour
|
||||
@@ -213,7 +213,7 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
||||
<>
|
||||
<EmptyState
|
||||
title={t('home.emptyTitle')}
|
||||
text={account ? t('home.emptyCloud') : t('home.emptyLocal')}
|
||||
text={account ? t('home.emptyCloud') : guest ? t('home.emptyGuest') : t('home.emptyLocal')}
|
||||
action={
|
||||
<button onClick={onAdd} className="btn btn-primary">
|
||||
<Plus size={18} /> {t('nav.addTitle')}
|
||||
|
||||
@@ -19,13 +19,13 @@ type Message = { kind: 'ok' | 'error'; text: string }
|
||||
|
||||
function Row({ icon, title, hint, onClick, danger }: { icon: ReactNode; title: string; hint?: string; onClick: () => void; danger?: boolean }) {
|
||||
return (
|
||||
<button onClick={onClick} className={cx('flex w-full items-center gap-3.5 px-4 py-4 text-start transition-colors active:bg-surface-2', danger && 'text-accent')}>
|
||||
<span className={danger ? 'text-accent' : 'text-ink-2'}>{icon}</span>
|
||||
<button onClick={onClick} className={cx('flex w-full items-center gap-3.5 px-4 py-4 text-start transition-colors active:bg-surface-2', danger && 'text-danger')}>
|
||||
<span className={danger ? 'text-danger' : 'text-ink-2'}>{icon}</span>
|
||||
<span className="flex-1">
|
||||
<span className="block font-medium">{title}</span>
|
||||
{hint && <span className="mt-0.5 block text-xs text-ink-3">{hint}</span>}
|
||||
</span>
|
||||
<span className={cx('inline-block rtl:-scale-x-100', danger ? 'text-accent' : 'text-ink-3')}>→</span>
|
||||
<span className={cx('inline-block rtl:-scale-x-100', danger ? 'text-danger' : 'text-ink-3')}>→</span>
|
||||
</button>
|
||||
)
|
||||
}
|
||||
@@ -210,6 +210,9 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
||||
</div>
|
||||
{settings.topCategories.length === 0 && <p className="mt-2 text-xs text-ink-3">{t('settings.topNone')}</p>}
|
||||
|
||||
{/* Mode découverte : rien n'est enregistré, donc ni sauvegarde, ni stockage, ni effacement */}
|
||||
{!guest && (
|
||||
<>
|
||||
<SectionTitle>{t('settings.backup')}</SectionTitle>
|
||||
<div className="card divide-y divide-line overflow-hidden">
|
||||
<Row icon={<Download size={19} />} title={t('settings.export')} hint={t('settings.exportHint', { count: items.length })} onClick={onExport} />
|
||||
@@ -270,6 +273,9 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
||||
)}
|
||||
</div>
|
||||
|
||||
</>
|
||||
)}
|
||||
|
||||
<SectionTitle>{t('settings.about')}</SectionTitle>
|
||||
<div className="card divide-y divide-line overflow-hidden">
|
||||
<BugReportRow />
|
||||
@@ -296,6 +302,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
||||
title={t('confirm.title')}
|
||||
message={account ? t('settings.clearConfirmCloud', { count: items.length }) : t('settings.clearConfirm', { count: items.length })}
|
||||
confirmLabel={t('settings.clearAllConfirm')}
|
||||
danger
|
||||
onConfirm={onReset}
|
||||
onCancel={() => setConfirm(null)}
|
||||
/>
|
||||
@@ -304,6 +311,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
||||
title={t('settings.deleteAccountTitle')}
|
||||
message={t('settings.deleteAccountMessage')}
|
||||
confirmLabel={t('settings.deleteForever')}
|
||||
danger
|
||||
onConfirm={onDeleteAccount}
|
||||
onCancel={() => setConfirm(null)}
|
||||
/>
|
||||
@@ -312,6 +320,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
||||
title={t('confirm.title')}
|
||||
message={t('settings.replaceConfirm')}
|
||||
confirmLabel={t('settings.replace')}
|
||||
danger
|
||||
onConfirm={() => confirmImport('replace')}
|
||||
onCancel={() => setConfirm(null)}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user