diff --git a/public/404.html b/public/404.html index 692c657..3e083f7 100644 --- a/public/404.html +++ b/public/404.html @@ -7,6 +7,7 @@ +
diff --git a/public/credits.html b/public/credits.html index ca94ce7..27e455f 100644 --- a/public/credits.html +++ b/public/credits.html @@ -7,6 +7,7 @@ +
diff --git a/public/legal.html b/public/legal.html index f8eafc0..2c2a76b 100644 --- a/public/legal.html +++ b/public/legal.html @@ -7,6 +7,7 @@ +
diff --git a/public/pages.css b/public/pages.css index 03d0ac9..7778c17 100644 --- a/public/pages.css +++ b/public/pages.css @@ -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; } diff --git a/public/privacy.html b/public/privacy.html index aedeca9..d74ca5f 100644 --- a/public/privacy.html +++ b/public/privacy.html @@ -7,6 +7,7 @@ +
diff --git a/public/terms.html b/public/terms.html index a336b35..c1b3e78 100644 --- a/public/terms.html +++ b/public/terms.html @@ -7,6 +7,7 @@ +
diff --git a/src/Root.tsx b/src/Root.tsx index 34a4669..7afbd5a 100644 --- a/src/Root.tsx +++ b/src/Root.tsx @@ -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) diff --git a/src/components/AuthScreen.tsx b/src/components/AuthScreen.tsx index b0ddfc3..e79ac31 100644 --- a/src/components/AuthScreen.tsx +++ b/src/components/AuthScreen.tsx @@ -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 ( -
+ // Marges du téléphone (encoche, barre d'accueil) à part : sinon elles remplaçaient l'espace du haut +
+

Bobinoo @@ -45,11 +48,25 @@ function Shell({ children, subtitle }: { children: ReactNode; subtitle: string }

+
) } /** É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(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 ( 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(' - diff --git a/src/components/ListsView.tsx b/src/components/ListsView.tsx index 88e82f7..e0a5309 100644 --- a/src/components/ListsView.tsx +++ b/src/components/ListsView.tsx @@ -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) diff --git a/src/components/TwoFactor.tsx b/src/components/TwoFactor.tsx index 595f85e..d451c7c 100644 --- a/src/components/TwoFactor.tsx +++ b/src/components/TwoFactor.tsx @@ -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 {factor === undefined ? '…' : factor ? t('mfa.on') : t('mfa.off')} {factor !== undefined && !setup && ( - @@ -104,6 +107,7 @@ export default function TwoFactor({ onMessage }: { onMessage: (kind: 'ok' | 'err )} + void disable()} onCancel={() => setConfirmOff(false)} danger /> ) } diff --git a/src/components/guest/GuestPrompt.tsx b/src/components/guest/GuestPrompt.tsx index c5591c6..896342d 100644 --- a/src/components/guest/GuestPrompt.tsx +++ b/src/components/guest/GuestPrompt.tsx @@ -8,7 +8,7 @@ export default function GuestPrompt({ onSignIn, onSignUp, onClose }: { onSignIn: useEscape(onClose) useBackToClose(onClose) return ( -
+

{t('guest.promptText')}

- )} - -

{t('search.privacy', { source: hasKey ? 'TMDB / AniList' : 'AniList' })}

diff --git a/src/components/title/TitleSheet.tsx b/src/components/title/TitleSheet.tsx index 0380f20..e698254 100644 --- a/src/components/title/TitleSheet.tsx +++ b/src/components/title/TitleSheet.tsx @@ -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,
{item?.notes ? (
-
) : ( - )} @@ -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)} /> diff --git a/src/i18n/locales/ar.ts b/src/i18n/locales/ar.ts index 6303219..d5fdfca 100644 --- a/src/i18n/locales/ar.ts +++ b/src/i18n/locales/ar.ts @@ -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': 'تاريخ المشاهدة', diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index b994a93..b0ccf6e 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -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', diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index ba8c4a8..982abdd 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -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', diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 91dff0a..9313ad3 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -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', diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index 212675c..e8f6d7a 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -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", diff --git a/src/i18n/locales/hi.ts b/src/i18n/locales/hi.ts index cc449a2..cfdf530 100644 --- a/src/i18n/locales/hi.ts +++ b/src/i18n/locales/hi.ts @@ -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': 'देखने की तारीख', diff --git a/src/i18n/locales/id.ts b/src/i18n/locales/id.ts index 29ae9d8..d1e55aa 100644 --- a/src/i18n/locales/id.ts +++ b/src/i18n/locales/id.ts @@ -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', diff --git a/src/i18n/locales/it.ts b/src/i18n/locales/it.ts index e1f6e91..8ad5ec6 100644 --- a/src/i18n/locales/it.ts +++ b/src/i18n/locales/it.ts @@ -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', diff --git a/src/i18n/locales/ja.ts b/src/i18n/locales/ja.ts index 27e341a..23585b9 100644 --- a/src/i18n/locales/ja.ts +++ b/src/i18n/locales/ja.ts @@ -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': '視聴日', diff --git a/src/i18n/locales/ko.ts b/src/i18n/locales/ko.ts index 832e219..57cc2cf 100644 --- a/src/i18n/locales/ko.ts +++ b/src/i18n/locales/ko.ts @@ -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': '시청 날짜순', diff --git a/src/i18n/locales/nl.ts b/src/i18n/locales/nl.ts index 1c5e584..b529813 100644 --- a/src/i18n/locales/nl.ts +++ b/src/i18n/locales/nl.ts @@ -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', diff --git a/src/i18n/locales/pl.ts b/src/i18n/locales/pl.ts index f90d1c0..8c6c4f5 100644 --- a/src/i18n/locales/pl.ts +++ b/src/i18n/locales/pl.ts @@ -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', diff --git a/src/i18n/locales/pt.ts b/src/i18n/locales/pt.ts index fbd840f..3e5567f 100644 --- a/src/i18n/locales/pt.ts +++ b/src/i18n/locales/pt.ts @@ -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', diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index e07add5..641fd54 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -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': 'Дата просмотра', diff --git a/src/i18n/locales/th.ts b/src/i18n/locales/th.ts index 78fb2ce..1b17d2b 100644 --- a/src/i18n/locales/th.ts +++ b/src/i18n/locales/th.ts @@ -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': 'วันที่ดู', diff --git a/src/i18n/locales/tr.ts b/src/i18n/locales/tr.ts index 226c5d4..6f72912 100644 --- a/src/i18n/locales/tr.ts +++ b/src/i18n/locales/tr.ts @@ -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', diff --git a/src/i18n/locales/vi.ts b/src/i18n/locales/vi.ts index 94b12fe..7e16816 100644 --- a/src/i18n/locales/vi.ts +++ b/src/i18n/locales/vi.ts @@ -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', diff --git a/src/i18n/locales/zh.ts b/src/i18n/locales/zh.ts index e93d550..76971dc 100644 --- a/src/i18n/locales/zh.ts +++ b/src/i18n/locales/zh.ts @@ -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': '观看日期', diff --git a/src/index.css b/src/index.css index 9a69f22..7bfd0b8 100644 --- a/src/index.css +++ b/src/index.css @@ -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; } } diff --git a/src/lib/appInfo.ts b/src/lib/appInfo.ts index 9ce062e..f6a6f96 100644 --- a/src/lib/appInfo.ts +++ b/src/lib/appInfo.ts @@ -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 { 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'), } } diff --git a/src/lib/cloud/auth.ts b/src/lib/cloud/auth.ts index 34f4bef..c85823b 100644 --- a/src/lib/cloud/auth.ts +++ b/src/lib/cloud/auth.ts @@ -487,7 +487,9 @@ export async function verifyTotp(factorId: string, code: string): Promise 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| {t('nav.addTitle')} diff --git a/src/pages/SettingsPage.tsx b/src/pages/SettingsPage.tsx index a705a0a..bbfcac9 100644 --- a/src/pages/SettingsPage.tsx +++ b/src/pages/SettingsPage.tsx @@ -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 ( - ) } @@ -210,6 +210,9 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
{settings.topCategories.length === 0 &&

{t('settings.topNone')}

} + {/* Mode découverte : rien n'est enregistré, donc ni sauvegarde, ni stockage, ni effacement */} + {!guest && ( + <> {t('settings.backup')}
} title={t('settings.export')} hint={t('settings.exportHint', { count: items.length })} onClick={onExport} /> @@ -270,6 +273,9 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void )}
+ + )} + {t('settings.about')}
@@ -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)} />