Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
459101bbf8 | ||
|
|
0683f77e54 | ||
|
|
b0c42447f4 | ||
|
|
dba91678bd | ||
|
|
3eb8d4651c |
No files matched your search
@@ -39,10 +39,10 @@ npm run build # build de prod
|
|||||||
|
|
||||||
## Architecture client (repères)
|
## Architecture client (repères)
|
||||||
- `src/store.tsx` — fournisseur de données (IndexedDB = source locale, état React = copie de travail), synchro, thème.
|
- `src/store.tsx` — fournisseur de données (IndexedDB = source locale, état React = copie de travail), synchro, thème.
|
||||||
- `src/lib/cloud/` — `auth.ts` (GoTrue maison, PKCE Google), `sync.ts` (push/pull LWW), `social.ts`, `admin.ts`, `reviews.ts`, `notifications.ts`, `api.ts` (`cloudFetch`).
|
- `src/lib/cloud/` — `auth.ts` (GoTrue maison, PKCE Google), `sync.ts` (push/pull LWW), `social.ts`, `admin.ts`, `reviews.ts`, `api.ts` (`cloudFetch`).
|
||||||
- `src/lib/airing.ts` — suivi des sorties d'épisodes (TMDB/AniList), cache local.
|
- `src/lib/airing.ts` — suivi des sorties d'épisodes (TMDB/AniList), cache local.
|
||||||
- `src/lib/franchise.ts` — saisons & dédoublonnage de franchises (TMDB 1 fiche multi-saisons vs AniList 1 entrée/saison).
|
- `src/lib/franchise.ts` — saisons & dédoublonnage de franchises (TMDB 1 fiche multi-saisons vs AniList 1 entrée/saison).
|
||||||
- `src/components/social/` — profils, recherche, fil d'amis, avis par titre (`TitleReviews`), réactions (`Reactions`), notifications (`Notifications`), aperçu d'une fiche (`ItemPeek`), `SocialProvider` (pile d'overlays).
|
- `src/components/social/` — profils, recherche, fil d'amis, avis par titre (`TitleReviews`), réactions (`Reactions`), aperçu d'une fiche (`ItemPeek`), `SocialProvider` (pile d'overlays).
|
||||||
- `src/pages/` — `HomePage`, `CatalogPage`, `StatsPage`, `SettingsPage`, `AdminPage`.
|
- `src/pages/` — `HomePage`, `CatalogPage`, `StatsPage`, `SettingsPage`, `AdminPage`.
|
||||||
- `src/App.tsx` — shell + routes par hash (`#/home`, `#/admin`…), `BottomNav` (mobile) + `SideNav` (desktop ≥ lg).
|
- `src/App.tsx` — shell + routes par hash (`#/home`, `#/admin`…), `BottomNav` (mobile) + `SideNav` (desktop ≥ lg).
|
||||||
|
|
||||||
@@ -60,10 +60,9 @@ npm run build # build de prod
|
|||||||
- Garder les fichiers idempotents côté SQL.
|
- Garder les fichiers idempotents côté SQL.
|
||||||
- RTL géré (arabe) : préférer les classes logiques (`ps-`/`pe-`, `ms-`/`me-`, `start-`/`end-`, `border-e`).
|
- RTL géré (arabe) : préférer les classes logiques (`ps-`/`pe-`, `ms-`/`me-`, `start-`/`end-`, `border-e`).
|
||||||
|
|
||||||
## État / en attente (au 9 oct. 2026)
|
## État (au 24 nov. 2026)
|
||||||
- Appliqués en ligne : tout jusqu'à `20261008150000`, + `20261009110000_private_tags` et `20261009140000_challenges`.
|
- **Toutes les migrations de `supabase/migrations/` sont appliquées en ligne**, jusqu'à `20261122140000_audit_hardening.sql` incluse.
|
||||||
- **À coller dans SQL Editor** : `supabase/A_COLLER_2026-10-09.sql` (commentaires/spoilers, listes partagées, web push, modération, bugs/erreurs). Idempotent.
|
- **Notifications retirées (22 nov. 2026)** : plus de cloche ni de push. Table `notifications` gardée vide (des fonctions de listes partagées y font encore référence), `azuu_notify` ne fait plus rien. Ne pas les réintroduire sans demande.
|
||||||
- Edge functions déployées : `tmdb` v4 (watch/providers, /find), `send-push` v1.
|
- **Audit (22-24 nov. 2026)** : `20261122140000_audit_hardening.sql` versionne aussi les fonctions admin / « comptes suspendus » qui n'existaient qu'en ligne. Blocage = le compte bloquant devient invisible pour le bloqué ; fiches supprimées = `data` vidée (trigger `azuu_tombstone`) ; profils lisibles directement seulement par soi-même.
|
||||||
- Push : générer les clés (`node scripts/gen-vapid.mjs`), 4 secrets Edge Functions + `azuu_push_secret` dans Vault → voir `supabase/PUSH_SETUP.md`.
|
|
||||||
- Sauvegardes : secrets Gitea `SUPABASE_DB_URL` + `BACKUP_PASSPHRASE`, préparation du VPS → voir `deploy/BACKUP.md`.
|
- Sauvegardes : secrets Gitea `SUPABASE_DB_URL` + `BACKUP_PASSPHRASE`, préparation du VPS → voir `deploy/BACKUP.md`.
|
||||||
- Recommandé : activer **Leaked Password Protection** (Authentication → Passwords) ; supprimer `_tmp_ping2` / `_tmp_sd2`.
|
- Leaked Password Protection (Supabase) demande l'offre payante : remplacée par la vérification HIBP côté client (`src/lib/pwned.ts`).
|
||||||
+3
-4
@@ -40,7 +40,6 @@
|
|||||||
<tr><td>Bibliothèque : titres, statuts, épisodes vus, dates, notes, avis, listes, réglages</td><td>Faire fonctionner ton journal et le synchroniser</td><td>Contrat</td></tr>
|
<tr><td>Bibliothèque : titres, statuts, épisodes vus, dates, notes, avis, listes, réglages</td><td>Faire fonctionner ton journal et le synchroniser</td><td>Contrat</td></tr>
|
||||||
<tr><td>Profil : pseudo, nom affiché, bio, photo, bannière, top 5</td><td>Te présenter aux autres membres</td><td>Contrat</td></tr>
|
<tr><td>Profil : pseudo, nom affiché, bio, photo, bannière, top 5</td><td>Te présenter aux autres membres</td><td>Contrat</td></tr>
|
||||||
<tr><td>Abonnements, demandes de suivi, réactions emoji aux avis</td><td>Fonctions sociales</td><td>Contrat</td></tr>
|
<tr><td>Abonnements, demandes de suivi, réactions emoji aux avis</td><td>Fonctions sociales</td><td>Contrat</td></tr>
|
||||||
<tr><td>Notifications (nouveaux abonnés, réactions, nouveaux épisodes des séries suivies) et leurs préférences</td><td>Te prévenir de ce qui te concerne ; chaque type se désactive dans les réglages</td><td>Contrat</td></tr>
|
|
||||||
</table>
|
</table>
|
||||||
<p>Rien d'autre n'est collecté : pas de date de naissance, pas de numéro de téléphone, pas de localisation, pas de contacts.</p>
|
<p>Rien d'autre n'est collecté : pas de date de naissance, pas de numéro de téléphone, pas de localisation, pas de contacts.</p>
|
||||||
|
|
||||||
@@ -48,7 +47,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li>Ton adresse e-mail n'est jamais visible par les autres utilisateurs.</li>
|
<li>Ton adresse e-mail n'est jamais visible par les autres utilisateurs.</li>
|
||||||
<li>Ton profil (pseudo, nom, photo, bannière, bio, titres vus, notes, avis) est visible par les utilisateurs connectés. Si tu passes ton compte en <strong>privé</strong> (Modifier le profil → Compte privé), seules les personnes que tu acceptes peuvent le voir.</li>
|
<li>Ton profil (pseudo, nom, photo, bannière, bio, titres vus, notes, avis) est visible par les utilisateurs connectés. Si tu passes ton compte en <strong>privé</strong> (Modifier le profil → Compte privé), seules les personnes que tu acceptes peuvent le voir.</li>
|
||||||
<li>Tes listes personnelles, tes réglages et tes notifications restent privés.</li>
|
<li>Tes listes personnelles et tes réglages restent privés.</li>
|
||||||
<li>L'éditeur, en tant qu'administrateur, peut retirer un contenu ou suspendre un compte qui ne respecte pas les <a href="/legal.html#conditions">conditions d'utilisation</a>.</li>
|
<li>L'éditeur, en tant qu'administrateur, peut retirer un contenu ou suspendre un compte qui ne respecte pas les <a href="/legal.html#conditions">conditions d'utilisation</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@@ -67,7 +66,7 @@
|
|||||||
<p>Kino garde une copie de ta bibliothèque sur ton appareil (IndexedDB) et quelques préférences (thème, langue, session de connexion) dans le stockage local du navigateur, pour fonctionner hors-ligne. <strong>Aucun cookie</strong>, aucun traceur, aucun outil de mesure d'audience : ces stockages sont strictement nécessaires au service et ne demandent donc pas de bandeau de consentement. Se déconnecter efface la session.</p>
|
<p>Kino garde une copie de ta bibliothèque sur ton appareil (IndexedDB) et quelques préférences (thème, langue, session de connexion) dans le stockage local du navigateur, pour fonctionner hors-ligne. <strong>Aucun cookie</strong>, aucun traceur, aucun outil de mesure d'audience : ces stockages sont strictement nécessaires au service et ne demandent donc pas de bandeau de consentement. Se déconnecter efface la session.</p>
|
||||||
|
|
||||||
<h2>Durée de conservation</h2>
|
<h2>Durée de conservation</h2>
|
||||||
<p>Tes données sont gardées tant que ton compte existe. Quand tu supprimes ton compte, tout est effacé définitivement et immédiatement : bibliothèque, profil, photos, avis, réactions, abonnements et notifications. Seules tes 300 notifications les plus récentes sont gardées, les plus anciennes sont effacées automatiquement.</p>
|
<p>Tes données sont gardées tant que ton compte existe. Quand tu supprimes ton compte, tout est effacé définitivement et immédiatement : bibliothèque, profil, photos, avis, réactions et abonnements.</p>
|
||||||
|
|
||||||
<h2>Ce qui n'est jamais fait</h2>
|
<h2>Ce qui n'est jamais fait</h2>
|
||||||
<ul>
|
<ul>
|
||||||
@@ -94,7 +93,7 @@
|
|||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<h1 style="font-size:1.4rem">Privacy policy (English summary)</h1>
|
<h1 style="font-size:1.4rem">Privacy policy (English summary)</h1>
|
||||||
<p>Kino is a free, ad-free personal watch journal published by Romain Dacet (data controller, contact: <a href="https://rdacet.fr">rdacet.fr</a>). It works without an account (everything stays on your device). With an account, it stores your email (and your name if you sign in with Google), your library, ratings, reviews, profile, follows, emoji reactions and notifications, to provide the service (contract). Your email is never shown to other users; your profile is visible to signed-in users unless you make your account private. Data is hosted by Supabase in the EU (Ireland); the site files are served by OVH (France). Title data and posters come from TMDB and AniList, which see your IP address when your browser loads their images, but never your account data. No cookies, no trackers, no ads, no marketing emails, nothing sold; on-device storage is strictly necessary. Data is kept while your account exists and deleted immediately and completely when you delete it. You must be 15 or older (or have a parent's consent). You can access, correct, export or delete your data from Settings, contact the publisher for any other request, and complain to the CNIL.</p>
|
<p>Kino is a free, ad-free personal watch journal published by Romain Dacet (data controller, contact: <a href="https://rdacet.fr">rdacet.fr</a>). It works without an account (everything stays on your device). With an account, it stores your email (and your name if you sign in with Google), your library, ratings, reviews, profile, follows and emoji reactions, to provide the service (contract). Your email is never shown to other users; your profile is visible to signed-in users unless you make your account private. Data is hosted by Supabase in the EU (Ireland); the site files are served by OVH (France). Title data and posters come from TMDB and AniList, which see your IP address when your browser loads their images, but never your account data. No cookies, no trackers, no ads, no marketing emails, nothing sold; on-device storage is strictly necessary. Data is kept while your account exists and deleted immediately and completely when you delete it. You must be 15 or older (or have a parent's consent). You can access, correct, export or delete your data from Settings, contact the publisher for any other request, and complain to the CNIL.</p>
|
||||||
|
|
||||||
<p class="muted"><a href="/">← Retour à Kino</a></p>
|
<p class="muted"><a href="/">← Retour à Kino</a></p>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@@ -1,72 +0,0 @@
|
|||||||
/* Kino — notifications push (chargé dans le service worker généré par Workbox via importScripts).
|
|
||||||
* Affiche la notification reçue, et au clic ouvre (ou ramène au premier plan) l'app sur le bon écran. */
|
|
||||||
/* eslint-env serviceworker */
|
|
||||||
|
|
||||||
// Écrans que le serveur peut demander d'ouvrir (tout le reste ouvre l'accueil)
|
|
||||||
var OPEN_RE = /^(notifications|item:[A-Za-z0-9_-]{1,64}|u:[a-z0-9_]{3,20})$/
|
|
||||||
|
|
||||||
function clip(v, max) {
|
|
||||||
if (typeof v !== 'string') return ''
|
|
||||||
v = v.replace(/[\u0000-\u001f\u007f]/g, ' ').trim()
|
|
||||||
return v.length > max ? v.slice(0, max - 1) + '…' : v
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Adresse à ouvrir : uniquement « /?open=<écran> » sur ce site. */
|
|
||||||
function safeUrl(raw) {
|
|
||||||
try {
|
|
||||||
var u = new URL(typeof raw === 'string' ? raw : '/', self.location.origin)
|
|
||||||
var open = u.searchParams.get('open') || ''
|
|
||||||
if (u.origin === self.location.origin && u.pathname === '/' && OPEN_RE.test(open)) return '/?open=' + encodeURIComponent(open)
|
|
||||||
} catch (e) {
|
|
||||||
/* adresse invalide */
|
|
||||||
}
|
|
||||||
return '/'
|
|
||||||
}
|
|
||||||
|
|
||||||
self.addEventListener('push', function (event) {
|
|
||||||
var data = {}
|
|
||||||
try {
|
|
||||||
data = event.data ? event.data.json() : {}
|
|
||||||
} catch (e) {
|
|
||||||
data = {}
|
|
||||||
}
|
|
||||||
var title = clip(data.title, 120) || 'Kino'
|
|
||||||
var options = {
|
|
||||||
body: clip(data.body, 300),
|
|
||||||
tag: clip(data.tag, 64) || undefined,
|
|
||||||
icon: '/icons/icon-192.png',
|
|
||||||
data: { url: safeUrl(data.url) },
|
|
||||||
}
|
|
||||||
event.waitUntil(
|
|
||||||
Promise.all([
|
|
||||||
self.registration.showNotification(title, options),
|
|
||||||
// App ouverte : on lui signale qu'il y a du nouveau (compteur de la cloche)
|
|
||||||
self.clients.matchAll({ type: 'window', includeUncontrolled: true }).then(function (list) {
|
|
||||||
list.forEach(function (c) {
|
|
||||||
c.postMessage({ type: 'azuu:push' })
|
|
||||||
})
|
|
||||||
}),
|
|
||||||
]),
|
|
||||||
)
|
|
||||||
})
|
|
||||||
|
|
||||||
self.addEventListener('notificationclick', function (event) {
|
|
||||||
event.notification.close()
|
|
||||||
var url = safeUrl(event.notification.data && event.notification.data.url)
|
|
||||||
var open = new URL(url, self.location.origin).searchParams.get('open') || ''
|
|
||||||
event.waitUntil(
|
|
||||||
self.clients.matchAll({ type: 'window', includeUncontrolled: true }).then(function (list) {
|
|
||||||
// Une fenêtre de l'app est déjà ouverte : on la ramène et on lui dit quoi afficher
|
|
||||||
for (var i = 0; i < list.length; i++) {
|
|
||||||
var c = list[i]
|
|
||||||
var cu = new URL(c.url)
|
|
||||||
// (les pages légales, /privacy et /legal, ne sont pas l'app)
|
|
||||||
if (cu.origin === self.location.origin && cu.pathname === '/' && 'focus' in c) {
|
|
||||||
c.postMessage({ type: 'azuu:open', open: open })
|
|
||||||
return c.focus()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return self.clients.openWindow ? self.clients.openWindow(url) : undefined
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
})
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
#!/usr/bin/env node
|
|
||||||
// Génère une paire de clés VAPID (P-256) pour les notifications push, et un secret de webhook.
|
|
||||||
// À lancer UNE fois sur ton PC : node scripts/gen-vapid.mjs
|
|
||||||
// Les valeurs affichées vont dans les secrets Supabase (jamais dans le dépôt, jamais dans .env / VITE_).
|
|
||||||
// Ne pas exécuter en CI. Voir supabase/PUSH_SETUP.md.
|
|
||||||
import { webcrypto as crypto } from 'node:crypto'
|
|
||||||
|
|
||||||
const b64url = (buf) => Buffer.from(buf).toString('base64url')
|
|
||||||
|
|
||||||
const pair = await crypto.subtle.generateKey({ name: 'ECDSA', namedCurve: 'P-256' }, true, ['sign', 'verify'])
|
|
||||||
const publicKey = b64url(await crypto.subtle.exportKey('raw', pair.publicKey))
|
|
||||||
const { d: privateKey } = await crypto.subtle.exportKey('jwk', pair.privateKey)
|
|
||||||
const webhookSecret = b64url(crypto.getRandomValues(new Uint8Array(32)))
|
|
||||||
|
|
||||||
console.log(`
|
|
||||||
=== 1) Supabase → Edge Functions → Secrets : 4 secrets (Nom = à gauche, Valeur = à droite) ===
|
|
||||||
(un secret qui existe déjà : le remplacer par cette nouvelle valeur)
|
|
||||||
|
|
||||||
VAPID_PUBLIC_KEY ${publicKey}
|
|
||||||
VAPID_PRIVATE_KEY ${privateKey}
|
|
||||||
VAPID_SUBJECT mailto:ton-adresse@example.com (mets ton adresse)
|
|
||||||
PUSH_WEBHOOK_SECRET ${webhookSecret}
|
|
||||||
|
|
||||||
=== 2) Supabase → SQL Editor : coller CETTE ligne telle quelle, puis Run ===
|
|
||||||
|
|
||||||
do $$ begin if exists (select 1 from vault.secrets where name = 'azuu_push_secret') then perform vault.update_secret((select id from vault.secrets where name = 'azuu_push_secret'), '${webhookSecret}'); else perform vault.create_secret('${webhookSecret}', 'azuu_push_secret'); end if; end $$;
|
|
||||||
|
|
||||||
Ces valeurs sont secrètes (sauf VAPID_PUBLIC_KEY) : ne les colle nulle part ailleurs.
|
|
||||||
Chaque lancement du script crée de NOUVELLES valeurs : les étapes 1 et 2 doivent venir du même lancement.
|
|
||||||
`)
|
|
||||||
+8
-4
@@ -1,6 +1,6 @@
|
|||||||
import { SocialProvider } from './components/social/SocialProvider'
|
import { SocialProvider } from './components/social/SocialProvider'
|
||||||
import { ToastProvider } from './components/Toast'
|
import { ToastProvider } from './components/Toast'
|
||||||
import { useEffect, useState } from 'react'
|
import { useCallback, useEffect, useState } from 'react'
|
||||||
import BottomNav, { type Tab } from './components/BottomNav'
|
import BottomNav, { type Tab } from './components/BottomNav'
|
||||||
import SideNav from './components/SideNav'
|
import SideNav from './components/SideNav'
|
||||||
import AddTitle from './components/title/AddTitle'
|
import AddTitle from './components/title/AddTitle'
|
||||||
@@ -15,12 +15,12 @@ import StatsPage from './pages/StatsPage'
|
|||||||
import SettingsPage from './pages/SettingsPage'
|
import SettingsPage from './pages/SettingsPage'
|
||||||
import AdminPage from './pages/AdminPage'
|
import AdminPage from './pages/AdminPage'
|
||||||
import NotFoundPage from './pages/NotFoundPage'
|
import NotFoundPage from './pages/NotFoundPage'
|
||||||
import PushBridge from './components/PushBridge'
|
|
||||||
import SyncIndicator from './components/SyncIndicator'
|
import SyncIndicator from './components/SyncIndicator'
|
||||||
import { useMedia } from './store'
|
import { useMedia } from './store'
|
||||||
import type { SearchResult } from './lib/catalogApi'
|
import type { SearchResult } from './lib/catalogApi'
|
||||||
import type { MediaItem } from './types'
|
import type { MediaItem } from './types'
|
||||||
import type { Completion } from './lib/seasons'
|
import type { Completion } from './lib/seasons'
|
||||||
|
import { dropPushSubscription } from './lib/push'
|
||||||
|
|
||||||
const TABS: Tab[] = ['home', 'catalog', 'stats', 'settings']
|
const TABS: Tab[] = ['home', 'catalog', 'stats', 'settings']
|
||||||
// L'administration a sa propre route (#/admin), hors de la navigation principale
|
// L'administration a sa propre route (#/admin), hors de la navigation principale
|
||||||
@@ -57,6 +57,10 @@ export default function App() {
|
|||||||
const [roulette, setRoulette] = useState(false)
|
const [roulette, setRoulette] = useState(false)
|
||||||
const [calendar, setCalendar] = useState(false)
|
const [calendar, setCalendar] = useState(false)
|
||||||
|
|
||||||
|
// Notifications retirées : on résilie l'ancien abonnement push de cet appareil, s'il en reste un
|
||||||
|
useEffect(() => {
|
||||||
|
void dropPushSubscription()
|
||||||
|
}, [])
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const onHash = () => setRoute(routeFromHash())
|
const onHash = () => setRoute(routeFromHash())
|
||||||
window.addEventListener('hashchange', onHash)
|
window.addEventListener('hashchange', onHash)
|
||||||
@@ -71,7 +75,8 @@ export default function App() {
|
|||||||
const navTab: Tab = route === 'admin' ? 'settings' : route === 'notfound' ? 'home' : route
|
const navTab: Tab = route === 'admin' ? 'settings' : route === 'notfound' ? 'home' : route
|
||||||
|
|
||||||
/** `focus` : saison (ou série) qu'on vient de finir avec +1 → la fiche s'ouvre sur la note */
|
/** `focus` : saison (ou série) qu'on vient de finir avec +1 → la fiche s'ouvre sur la note */
|
||||||
const openItem = (item: MediaItem, focus?: Completion) => pushLayer({ kind: 'title', item, focus })
|
// Stable : les cartes mémorisées (MediaCard) ne se redessinent pas à chaque rendu de l'app
|
||||||
|
const openItem = useCallback((item: MediaItem, focus?: Completion) => setLayers((ls) => [...ls.slice(-11), { kind: 'title', item, focus, uid: ++layerUid }]), [])
|
||||||
const openSeed = (seed: SearchResult) => pushLayer({ kind: 'title', seed })
|
const openSeed = (seed: SearchResult) => pushLayer({ kind: 'title', seed })
|
||||||
const openPerson = (p: { id: string; name?: string; photo?: string }) => pushLayer({ kind: 'person', personId: p.id, name: p.name, photo: p.photo })
|
const openPerson = (p: { id: string; name?: string; photo?: string }) => pushLayer({ kind: 'person', personId: p.id, name: p.name, photo: p.photo })
|
||||||
const openNew = () => setAdding(true)
|
const openNew = () => setAdding(true)
|
||||||
@@ -100,7 +105,6 @@ export default function App() {
|
|||||||
|
|
||||||
<BottomNav current={navTab} onChange={go} onAdd={openNew} />
|
<BottomNav current={navTab} onChange={go} onAdd={openNew} />
|
||||||
<SyncIndicator />
|
<SyncIndicator />
|
||||||
<PushBridge />
|
|
||||||
|
|
||||||
{roulette && <Roulette onClose={() => setRoulette(false)} onOpen={openItem} />}
|
{roulette && <Roulette onClose={() => setRoulette(false)} onOpen={openItem} />}
|
||||||
{calendar && <CalendarView onClose={() => setCalendar(false)} onOpen={openItem} />}
|
{calendar && <CalendarView onClose={() => setCalendar(false)} onOpen={openItem} />}
|
||||||
|
|||||||
+8
-5
@@ -54,11 +54,14 @@ export default function Root() {
|
|||||||
if (!cloudEnabled) return
|
if (!cloudEnabled) return
|
||||||
const off = onSessionChange(setSession)
|
const off = onSessionChange(setSession)
|
||||||
if (redirect === 'checking') {
|
if (redirect === 'checking') {
|
||||||
consumeAuthRedirect().then((r) => {
|
consumeAuthRedirect()
|
||||||
if (r.error) setNotice(r.error)
|
.then((r) => {
|
||||||
setRedirect(r.type === 'recovery' ? 'recovery' : 'none')
|
if (r.error) setNotice(r.error)
|
||||||
setSession(getSession())
|
setRedirect(r.type === 'recovery' ? 'recovery' : 'none')
|
||||||
})
|
setSession(getSession())
|
||||||
|
})
|
||||||
|
// Échec inattendu (stockage indisponible…) : on n'affiche pas un écran vide indéfiniment
|
||||||
|
.catch(() => setRedirect('none'))
|
||||||
}
|
}
|
||||||
return () => {
|
return () => {
|
||||||
off()
|
off()
|
||||||
|
|||||||
@@ -39,6 +39,8 @@ export default function AccountSection({ account, onMessage }: { account: Accoun
|
|||||||
try {
|
try {
|
||||||
const r = await account.logout(force)
|
const r = await account.logout(force)
|
||||||
if (r === 'pending') setConfirmLogout(true)
|
if (r === 'pending') setConfirmLogout(true)
|
||||||
|
} catch (err) {
|
||||||
|
onMessage('error', (err as Error).message)
|
||||||
} finally {
|
} finally {
|
||||||
setBusy(null)
|
setBusy(null)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
import { LanguageSelect } from '../i18n/react'
|
import { LanguageSelect } from '../i18n/react'
|
||||||
import { Eye, EyeOff, Loader2 } from 'lucide-react'
|
import { Eye, EyeOff, Loader2 } from 'lucide-react'
|
||||||
import { useState, type FormEvent, type ReactNode } from 'react'
|
import { useEffect, useState, type FormEvent, type ReactNode } from 'react'
|
||||||
import { PASSWORD_MIN, requestPasswordReset, signIn, signInWithGoogle, signUp, updatePassword } from '../lib/cloud/auth'
|
import { PASSWORD_MIN, requestPasswordReset, signIn, signInWithGoogle, signUp, updatePassword } from '../lib/cloud/auth'
|
||||||
import { USERNAME_RE } from '../lib/cloud/social'
|
import { USERNAME_RE } from '../lib/cloud/social'
|
||||||
import { cx } from '../lib/utils'
|
import { cx } from '../lib/utils'
|
||||||
@@ -61,6 +61,15 @@ export default function AuthScreen({ notice, onExplore, initialMode = 'login' }:
|
|||||||
const cleanUsername = username.trim().replace(/^@/, '').toLowerCase()
|
const cleanUsername = username.trim().replace(/^@/, '').toLowerCase()
|
||||||
const usernameOk = USERNAME_RE.test(cleanUsername) && !RANDOM_USERNAME.test(cleanUsername)
|
const usernameOk = USERNAME_RE.test(cleanUsername) && !RANDOM_USERNAME.test(cleanUsername)
|
||||||
|
|
||||||
|
// Retour arrière depuis Google (page restaurée du cache) : les boutons ne restent pas bloqués
|
||||||
|
useEffect(() => {
|
||||||
|
const onShow = (e: PageTransitionEvent) => {
|
||||||
|
if (e.persisted) setBusy(false)
|
||||||
|
}
|
||||||
|
window.addEventListener('pageshow', onShow)
|
||||||
|
return () => window.removeEventListener('pageshow', onShow)
|
||||||
|
}, [])
|
||||||
|
|
||||||
const switchTo = (m: Mode) => {
|
const switchTo = (m: Mode) => {
|
||||||
setMode(m)
|
setMode(m)
|
||||||
setError(undefined)
|
setError(undefined)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Check, ChevronLeft, ChevronRight, Loader2, Plus, RefreshCw, X } from 'l
|
|||||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||||
import { loadAiring, refreshAiring, saveAiring } from '../lib/airing'
|
import { loadAiring, refreshAiring, saveAiring } from '../lib/airing'
|
||||||
import { findTmdbSeries, getAniListById, getTmdbDetails, releaseToResult, type GlobalRelease, type ReleaseCategory } from '../lib/catalogApi'
|
import { findTmdbSeries, getAniListById, getTmdbDetails, releaseToResult, type GlobalRelease, type ReleaseCategory } from '../lib/catalogApi'
|
||||||
import { findFranchiseItem } from '../lib/franchise'
|
import { franchiseKey } from '../lib/franchise'
|
||||||
import { cachedMonth, isBrowsableMonth, loadMonth, RELEASE_CATEGORIES } from '../lib/globalReleases'
|
import { cachedMonth, isBrowsableMonth, loadMonth, RELEASE_CATEGORIES } from '../lib/globalReleases'
|
||||||
import { remotePosterToLocal } from '../lib/image'
|
import { remotePosterToLocal } from '../lib/image'
|
||||||
import { calendarEvents, loadReleases, refreshReleases } from '../lib/releases'
|
import { calendarEvents, loadReleases, refreshReleases } from '../lib/releases'
|
||||||
@@ -13,6 +13,7 @@ import { useEscape } from '../lib/escape'
|
|||||||
import { useScrollLock } from '../lib/scrollLock'
|
import { useScrollLock } from '../lib/scrollLock'
|
||||||
import { cx, normalizeText, todayISO } from '../lib/utils'
|
import { cx, normalizeText, todayISO } from '../lib/utils'
|
||||||
import { useMedia } from '../store'
|
import { useMedia } from '../store'
|
||||||
|
import { TYPE_BY_VALUE } from '../lib/constants'
|
||||||
import type { MediaInput, MediaItem, MediaType } from '../types'
|
import type { MediaInput, MediaItem, MediaType } from '../types'
|
||||||
import { TypeBadge } from './Badges'
|
import { TypeBadge } from './Badges'
|
||||||
import Poster from './Poster'
|
import Poster from './Poster'
|
||||||
@@ -21,6 +22,11 @@ import Poster from './Poster'
|
|||||||
const weekdays = () => Array.from({ length: 7 }, (_, k) => new Date(2024, 0, 1 + k).toLocaleDateString(locale(), { weekday: 'narrow' }))
|
const weekdays = () => Array.from({ length: 7 }, (_, k) => new Date(2024, 0, 1 + k).toLocaleDateString(locale(), { weekday: 'narrow' }))
|
||||||
const PER_DAY = 20
|
const PER_DAY = 20
|
||||||
const PREFS_KEY = 'azuucine:calendar-prefs'
|
const PREFS_KEY = 'azuucine:calendar-prefs'
|
||||||
|
/** Jour local décalé de n jours (sans « + n × 24 h », faux aux changements d'heure). */
|
||||||
|
const plusDays = (n: number) => {
|
||||||
|
const d = new Date()
|
||||||
|
return new Date(d.getFullYear(), d.getMonth(), d.getDate() + n)
|
||||||
|
}
|
||||||
const iso = (d: Date) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`
|
const iso = (d: Date) => `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`
|
||||||
const monthId = (d: Date) => iso(d).slice(0, 7)
|
const monthId = (d: Date) => iso(d).slice(0, 7)
|
||||||
const niceDate = (d: string) => new Date(d + 'T12:00:00').toLocaleDateString(locale(), { weekday: 'long', day: 'numeric', month: 'long' })
|
const niceDate = (d: string) => new Date(d + 'T12:00:00').toLocaleDateString(locale(), { weekday: 'long', day: 'numeric', month: 'long' })
|
||||||
@@ -132,8 +138,9 @@ export default function CalendarView({ onClose, onOpen }: { onClose: () => void;
|
|||||||
const [airing, rel] = await Promise.all([refreshAiring(items, loadAiring(), settings.tmdbKey, force), refreshReleases(items, settings.tmdbKey, force)])
|
const [airing, rel] = await Promise.all([refreshAiring(items, loadAiring(), settings.tmdbKey, force), refreshReleases(items, settings.tmdbKey, force)])
|
||||||
saveAiring(airing)
|
saveAiring(airing)
|
||||||
setReleases(rel)
|
setReleases(rel)
|
||||||
|
// Comme à l'accueil : aussi les fiches « Terminé » dont la série continue (statut inchangé)
|
||||||
const patches = items
|
const patches = items
|
||||||
.filter((i) => i.status !== 'termine' && airing[i.id] && airing[i.id].aired > (i.episodesTotal ?? 0))
|
.filter((i) => airing[i.id] && (i.status !== 'termine' || !airing[i.id].ended) && airing[i.id].aired > (i.episodesTotal ?? 0))
|
||||||
.map((i) => ({ id: i.id, patch: { episodesTotal: airing[i.id].aired } }))
|
.map((i) => ({ id: i.id, patch: { episodesTotal: airing[i.id].aired } }))
|
||||||
if (patches.length) await patchMany(patches)
|
if (patches.length) await patchMany(patches)
|
||||||
} finally {
|
} finally {
|
||||||
@@ -194,6 +201,32 @@ export default function CalendarView({ onClose, onOpen }: { onClose: () => void;
|
|||||||
for (const i of items) for (const t of [i.title, i.originalTitle]) if (t) m.set(normalizeText(t), i)
|
for (const i of items) for (const t of [i.title, i.originalTitle]) if (t) m.set(normalizeText(t), i)
|
||||||
return m
|
return m
|
||||||
}, [items])
|
}, [items])
|
||||||
|
// Même série, autre saison (comme findFranchiseItem) : index calculé une fois par bibliothèque,
|
||||||
|
// au lieu de parcourir toute la bibliothèque pour chaque sortie
|
||||||
|
const byFranchise = useMemo(() => {
|
||||||
|
const m = new Map<string, { item: MediaItem; index: number }>()
|
||||||
|
items.forEach((item, index) => {
|
||||||
|
if (!TYPE_BY_VALUE[item.type]?.episodic) return
|
||||||
|
for (const x of [item.title, item.originalTitle]) {
|
||||||
|
const k = x && franchiseKey(x)
|
||||||
|
if (k && k.length >= 2 && !m.has(k)) m.set(k, { item, index })
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return m
|
||||||
|
}, [items])
|
||||||
|
const franchiseItem = useCallback(
|
||||||
|
(titles: (string | undefined)[], type: MediaType) => {
|
||||||
|
if (!TYPE_BY_VALUE[type]?.episodic) return undefined
|
||||||
|
let best: { item: MediaItem; index: number } | undefined
|
||||||
|
for (const x of titles) {
|
||||||
|
const k = x && franchiseKey(x)
|
||||||
|
const hit = k && k.length >= 2 ? byFranchise.get(k) : undefined
|
||||||
|
if (hit && (!best || hit.index < best.index)) best = hit
|
||||||
|
}
|
||||||
|
return best?.item
|
||||||
|
},
|
||||||
|
[byFranchise],
|
||||||
|
)
|
||||||
|
|
||||||
const entries = useMemo(() => {
|
const entries = useMemo(() => {
|
||||||
const map = new Map<string, Entry>()
|
const map = new Map<string, Entry>()
|
||||||
@@ -208,7 +241,7 @@ export default function CalendarView({ onClose, onOpen }: { onClose: () => void;
|
|||||||
byTitle.get(normalizeText(r.title)) ??
|
byTitle.get(normalizeText(r.title)) ??
|
||||||
(r.originalTitle ? byTitle.get(normalizeText(r.originalTitle)) : undefined) ??
|
(r.originalTitle ? byTitle.get(normalizeText(r.originalTitle)) : undefined) ??
|
||||||
// « Black Clover Season 2 » sur AniList = ma fiche « Black Clover »
|
// « Black Clover Season 2 » sur AniList = ma fiche « Black Clover »
|
||||||
(r.cat !== 'film' ? findFranchiseItem(items, [r.title, r.originalTitle], { type: r.cat }) : undefined)
|
(r.cat !== 'film' ? franchiseItem([r.title, r.originalTitle], r.cat) : undefined)
|
||||||
map.set(key, {
|
map.set(key, {
|
||||||
key,
|
key,
|
||||||
date: r.date,
|
date: r.date,
|
||||||
@@ -226,11 +259,15 @@ export default function CalendarView({ onClose, onOpen }: { onClose: () => void;
|
|||||||
.filter((e) => (prefs.mode === 'mine' ? !!e.item : true))
|
.filter((e) => (prefs.mode === 'mine' ? !!e.item : true))
|
||||||
.filter((e) => e.type === 'autre' || cats.has(e.type))
|
.filter((e) => e.type === 'autre' || cats.has(e.type))
|
||||||
.sort((a, b) => a.date.localeCompare(b.date) || b.pop - a.pop || a.title.localeCompare(b.title, locale()))
|
.sort((a, b) => a.date.localeCompare(b.date) || b.pop - a.pop || a.title.localeCompare(b.title, locale()))
|
||||||
}, [items, releases, global, byExt, byTitle, prefs])
|
}, [items, releases, global, byExt, byTitle, franchiseItem, prefs])
|
||||||
|
|
||||||
const byDay = useMemo(() => {
|
const byDay = useMemo(() => {
|
||||||
const m = new Map<string, Entry[]>()
|
const m = new Map<string, Entry[]>()
|
||||||
for (const e of entries) m.set(e.date, [...(m.get(e.date) ?? []), e])
|
for (const e of entries) {
|
||||||
|
const list = m.get(e.date)
|
||||||
|
if (list) list.push(e)
|
||||||
|
else m.set(e.date, [e])
|
||||||
|
}
|
||||||
return m
|
return m
|
||||||
}, [entries])
|
}, [entries])
|
||||||
|
|
||||||
@@ -242,15 +279,15 @@ export default function CalendarView({ onClose, onOpen }: { onClose: () => void;
|
|||||||
return Array.from({ length: 42 }, (_, k) => {
|
return Array.from({ length: 42 }, (_, k) => {
|
||||||
const d = new Date(start.getFullYear(), start.getMonth(), start.getDate() + k)
|
const d = new Date(start.getFullYear(), start.getMonth(), start.getDate() + k)
|
||||||
return { date: iso(d), day: d.getDate(), inMonth: d.getMonth() === month.getMonth() }
|
return { date: iso(d), day: d.getDate(), inMonth: d.getMonth() === month.getMonth() }
|
||||||
}).filter((c, k, all) => k < 35 || all.slice(35).some((x) => x.inMonth))
|
}).filter((_, k, all) => k < 35 || all.slice(35).some((x) => x.inMonth))
|
||||||
}, [month])
|
}, [month])
|
||||||
|
|
||||||
const mid = monthId(month)
|
const mid = monthId(month)
|
||||||
const isCurrent = mid === today.slice(0, 7)
|
const isCurrent = mid === today.slice(0, 7)
|
||||||
// Mois en cours : les 14 prochains jours (même s'ils débordent sur le mois suivant) ; sinon tout le mois
|
// Mois en cours : les 14 prochains jours (même s'ils débordent sur le mois suivant) ; sinon tout le mois
|
||||||
const lastDay = isCurrent ? iso(new Date(Date.now() + 13 * 86400000)) : `${mid}-31`
|
const lastDay = isCurrent ? iso(plusDays(13)) : `${mid}-31`
|
||||||
const days = [...byDay.keys()].filter((d) => (isCurrent ? d >= today : d.startsWith(mid)) && d <= lastDay).sort()
|
const days = [...byDay.keys()].filter((d) => (isCurrent ? d >= today : d.startsWith(mid)) && d <= lastDay).sort()
|
||||||
const tomorrow = iso(new Date(Date.now() + 86400000))
|
const tomorrow = iso(plusDays(1))
|
||||||
const dayTitle = (d: string) => (d === today ? t('time.today') : d === tomorrow ? t('time.tomorrow') : niceDate(d))
|
const dayTitle = (d: string) => (d === today ? t('time.today') : d === tomorrow ? t('time.tomorrow') : niceDate(d))
|
||||||
|
|
||||||
const changeMonth = (delta: number) => {
|
const changeMonth = (delta: number) => {
|
||||||
@@ -318,7 +355,7 @@ export default function CalendarView({ onClose, onOpen }: { onClose: () => void;
|
|||||||
</div>
|
</div>
|
||||||
{list.length > shown.length && (
|
{list.length > shown.length && (
|
||||||
<button onClick={() => setExpanded((s) => new Set(s).add(day))} className="mt-1 w-full py-2 text-xs font-medium text-ink-3">
|
<button onClick={() => setExpanded((s) => new Set(s).add(day))} className="mt-1 w-full py-2 text-xs font-medium text-ink-3">
|
||||||
{t('calendar.seeMore', { count: list.length - shown.length })} <span className="text-accent">→</span>
|
{t('calendar.seeMore', { count: list.length - shown.length })} <span className="inline-block text-accent rtl:-scale-x-100">→</span>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import { useId } from 'react'
|
||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
import { useBackToClose } from '../lib/backNav'
|
import { useBackToClose } from '../lib/backNav'
|
||||||
import { useEscape } from '../lib/escape'
|
import { useEscape } from '../lib/escape'
|
||||||
@@ -15,26 +16,27 @@ interface Props {
|
|||||||
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 }: Props) {
|
||||||
useEscape(onCancel, open)
|
useEscape(onCancel, open)
|
||||||
useBackToClose(onCancel, open)
|
useBackToClose(onCancel, open)
|
||||||
|
const titleId = useId()
|
||||||
|
|
||||||
if (!open) return null
|
if (!open) return null
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[60] flex items-end justify-center bg-black/70 p-4 sm:items-center" onClick={onCancel}>
|
<div className="fixed inset-0 z-[60] flex items-end justify-center bg-scrim p-4 sm:items-center" onClick={onCancel}>
|
||||||
<div
|
<div
|
||||||
role="alertdialog"
|
role="alertdialog"
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
aria-labelledby="confirm-title"
|
aria-labelledby={titleId}
|
||||||
className="sheet-in safe-bottom w-full max-w-sm rounded-3xl border border-line-strong bg-surface p-5"
|
className="sheet-in safe-bottom w-full max-w-sm rounded-3xl border border-line-strong bg-surface p-5"
|
||||||
onClick={(e) => e.stopPropagation()}
|
onClick={(e) => e.stopPropagation()}
|
||||||
>
|
>
|
||||||
<h2 id="confirm-title" className="text-lg">
|
<h2 id={titleId} className="text-lg">
|
||||||
{title}
|
{title}
|
||||||
</h2>
|
</h2>
|
||||||
{message && <p className="mt-2 text-sm leading-relaxed text-ink-2">{message}</p>}
|
{message && <p className="mt-2 text-sm leading-relaxed text-ink-2">{message}</p>}
|
||||||
<div className="mt-5 grid grid-cols-2 gap-2">
|
<div className="mt-5 grid grid-cols-2 gap-2">
|
||||||
<button onClick={onCancel} className="btn btn-ghost">
|
<button onClick={onCancel} className="btn btn-ghost" autoFocus>
|
||||||
{t('common.cancel')}
|
{t('common.cancel')}
|
||||||
</button>
|
</button>
|
||||||
<button onClick={onConfirm} className="btn btn-primary" autoFocus>
|
<button onClick={onConfirm} className="btn btn-primary">
|
||||||
{confirmLabel}
|
{confirmLabel}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -41,7 +41,10 @@ export default function EpisodeList({ form, aired, onChange }: Props) {
|
|||||||
|
|
||||||
// Taille de la saison affichée (ou de toute la série si on ne connaît pas le découpage)
|
// Taille de la saison affichée (ou de toute la série si on ne connaît pas le découpage)
|
||||||
const before = seasons ? episodesBeforeSeason(seasons, viewSeason) : 0
|
const before = seasons ? episodesBeforeSeason(seasons, viewSeason) : 0
|
||||||
const size = seasons ? (seasons[viewSeason - 1] ?? 0) : Math.min(episodeCap(form) ?? 0, MAX_GENERIC)
|
// Total enregistré plus grand que la somme des saisons : le surplus va à la dernière saison
|
||||||
|
// (sinon les derniers épisodes ne pouvaient jamais être cochés)
|
||||||
|
const extra = seasons && viewSeason === seasons.length ? Math.max(0, (episodeCap(form) ?? 0) - episodesBeforeSeason(seasons, seasons.length + 1)) : 0
|
||||||
|
const size = seasons ? Math.min((seasons[viewSeason - 1] ?? 0) + extra, MAX_GENERIC) : Math.min(episodeCap(form) ?? 0, MAX_GENERIC)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!isTmdb || !navigator.onLine) return setEpisodes(undefined)
|
if (!isTmdb || !navigator.onLine) return setEpisodes(undefined)
|
||||||
|
|||||||
@@ -43,7 +43,11 @@ export default function JournalView({ onOpen }: { onOpen: (item: MediaItem) => v
|
|||||||
const months = useMemo(() => {
|
const months = useMemo(() => {
|
||||||
const list = year ? entries.filter((e) => e.date.startsWith(year)) : entries
|
const list = year ? entries.filter((e) => e.date.startsWith(year)) : entries
|
||||||
const map = new Map<string, Entry[]>()
|
const map = new Map<string, Entry[]>()
|
||||||
for (const e of list) map.set(e.date.slice(0, 7), [...(map.get(e.date.slice(0, 7)) ?? []), e])
|
for (const e of list) {
|
||||||
|
const month = map.get(e.date.slice(0, 7))
|
||||||
|
if (month) month.push(e)
|
||||||
|
else map.set(e.date.slice(0, 7), [e])
|
||||||
|
}
|
||||||
return [...map.entries()]
|
return [...map.entries()]
|
||||||
}, [entries, year])
|
}, [entries, year])
|
||||||
|
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ function ListDetail({ list, onBack, onOpen }: { list: CustomList; onBack: () =>
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<button onClick={onBack} className="mt-2 flex items-center gap-1.5 text-sm text-ink-3">
|
<button onClick={onBack} className="mt-2 flex items-center gap-1.5 text-sm text-ink-3">
|
||||||
<ArrowLeft size={16} /> {t('lists.myLists')}
|
<ArrowLeft size={16} className="rtl:rotate-180" /> {t('lists.myLists')}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div className="mb-5 mt-3 flex items-start justify-between gap-3">
|
<div className="mb-5 mt-3 flex items-start justify-between gap-3">
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
import { Heart, Plus } from 'lucide-react'
|
import { Heart, Plus } from 'lucide-react'
|
||||||
|
import { memo } from 'react'
|
||||||
import { TYPE_BY_VALUE } from '../lib/constants'
|
import { TYPE_BY_VALUE } from '../lib/constants'
|
||||||
import { canWatchMore } from '../lib/airing'
|
import { canWatchMore } from '../lib/airing'
|
||||||
import { episodeCap, seasonPosition } from '../lib/franchise'
|
import { episodeCap, seasonPosition } from '../lib/franchise'
|
||||||
@@ -36,8 +37,12 @@ function Progress({ item }: { item: MediaItem }) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Carte verticale (grille du catalogue). */
|
/**
|
||||||
export function MediaCard({ item, onOpen }: { item: MediaItem; onOpen: (item: MediaItem) => void }) {
|
* Carte verticale (grille du catalogue).
|
||||||
|
* Mémorisée : taper dans la recherche ou cocher une fiche ne redessine plus toute la grille
|
||||||
|
* (elle se redessine quand même si la bibliothèque ou les réglages changent, via useMedia).
|
||||||
|
*/
|
||||||
|
export const MediaCard = memo(function MediaCard({ item, onOpen }: { item: MediaItem; onOpen: (item: MediaItem) => void }) {
|
||||||
const { settings, incrementEpisode } = useMedia()
|
const { settings, incrementEpisode } = useMedia()
|
||||||
// Revisionnage en cours : la progression montrée est celle du revisionnage
|
// Revisionnage en cours : la progression montrée est celle du revisionnage
|
||||||
const view = progressView(item)
|
const view = progressView(item)
|
||||||
@@ -76,4 +81,4 @@ export function MediaCard({ item, onOpen }: { item: MediaItem; onOpen: (item: Me
|
|||||||
</button>
|
</button>
|
||||||
</article>
|
</article>
|
||||||
)
|
)
|
||||||
}
|
})
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
import { useEffect, useRef, useState } from 'react'
|
|
||||||
import { keepPushFresh } from '../lib/push'
|
|
||||||
import { useMedia } from '../store'
|
|
||||||
import { useSocial } from './social/SocialProvider'
|
|
||||||
|
|
||||||
/** Écrans qu'une notification push peut ouvrir (« /?open=… », voir public/push-sw.js). */
|
|
||||||
const OPEN_RE = /^(notifications|item:[A-Za-z0-9_-]{1,64}|u:[a-z0-9_]{3,20})$/
|
|
||||||
|
|
||||||
/** Lit (et retire de l'adresse) l'écran demandé par une notification au lancement de l'app. */
|
|
||||||
function takeOpenParam(): string | null {
|
|
||||||
try {
|
|
||||||
const params = new URLSearchParams(location.search)
|
|
||||||
const open = params.get('open')
|
|
||||||
if (open === null) return null
|
|
||||||
params.delete('open')
|
|
||||||
const q = params.toString()
|
|
||||||
history.replaceState(history.state, '', `${location.pathname}${q ? `?${q}` : ''}${location.hash}`)
|
|
||||||
return OPEN_RE.test(open) ? open : null
|
|
||||||
} catch {
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Lien entre les notifications push et l'app : ouvre le bon écran au clic sur une notification
|
|
||||||
* (app lancée, ou déjà ouverte : message du service worker), met à jour la cloche quand
|
|
||||||
* une notification arrive, et garde l'abonnement de l'appareil à jour côté serveur.
|
|
||||||
*/
|
|
||||||
export default function PushBridge() {
|
|
||||||
const { account, items, loading } = useMedia()
|
|
||||||
const social = useSocial()
|
|
||||||
const [target, setTarget] = useState<string | null>(takeOpenParam)
|
|
||||||
const socialRef = useRef(social)
|
|
||||||
socialRef.current = social
|
|
||||||
|
|
||||||
// Messages du service worker
|
|
||||||
useEffect(() => {
|
|
||||||
if (!('serviceWorker' in navigator)) return
|
|
||||||
const onMessage = (e: MessageEvent) => {
|
|
||||||
const data = e.data as { type?: unknown; open?: unknown } | null
|
|
||||||
if (!data || typeof data !== 'object') return
|
|
||||||
if (data.type === 'azuu:open' && typeof data.open === 'string' && OPEN_RE.test(data.open)) setTarget(data.open)
|
|
||||||
else if (data.type === 'azuu:push') void socialRef.current.refresh()
|
|
||||||
}
|
|
||||||
navigator.serviceWorker.addEventListener('message', onMessage)
|
|
||||||
return () => navigator.serviceWorker.removeEventListener('message', onMessage)
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
// Ouvre l'écran demandé une fois le compte et la bibliothèque chargés
|
|
||||||
useEffect(() => {
|
|
||||||
if (!target) return
|
|
||||||
if (!account) {
|
|
||||||
// Pas (ou plus) connecté : rien à ouvrir
|
|
||||||
if (!loading) setTarget(null)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
if (!social.enabled || loading) return
|
|
||||||
setTarget(null)
|
|
||||||
if (target === 'notifications') social.openNotifications()
|
|
||||||
else if (target.startsWith('u:')) social.openProfile(target.slice(2))
|
|
||||||
else {
|
|
||||||
const item = items.find((i) => i.id === target.slice(5))
|
|
||||||
if (item) social.openItem(item)
|
|
||||||
else social.openNotifications()
|
|
||||||
}
|
|
||||||
}, [target, account, social, loading, items])
|
|
||||||
|
|
||||||
// Abonnement push renouvelé par le navigateur, langue changée… : on le signale au serveur
|
|
||||||
const accountOn = !!account
|
|
||||||
useEffect(() => {
|
|
||||||
if (accountOn) void keepPushFresh()
|
|
||||||
}, [accountOn])
|
|
||||||
|
|
||||||
return null
|
|
||||||
}
|
|
||||||
@@ -1,85 +0,0 @@
|
|||||||
import { BellRing, Loader2 } from 'lucide-react'
|
|
||||||
import { useEffect, useState } from 'react'
|
|
||||||
import { t } from '../i18n'
|
|
||||||
import { enablePush, disablePush, getPushState, PushError, type PushState } from '../lib/push'
|
|
||||||
import { cx } from '../lib/utils'
|
|
||||||
|
|
||||||
/** Réglages → Notifications : « Notifications sur cet appareil » (Web Push, même app fermée). */
|
|
||||||
export default function PushToggle() {
|
|
||||||
const [state, setState] = useState<PushState | null>(null)
|
|
||||||
const [busy, setBusy] = useState(false)
|
|
||||||
const [error, setError] = useState<string | null>(null)
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
let alive = true
|
|
||||||
void getPushState().then((s) => alive && setState(s))
|
|
||||||
return () => {
|
|
||||||
alive = false
|
|
||||||
}
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
if (state === null) return null
|
|
||||||
const on = state === 'on'
|
|
||||||
const available = state === 'on' || state === 'off'
|
|
||||||
|
|
||||||
const toggle = async () => {
|
|
||||||
if (busy || !available) return
|
|
||||||
setBusy(true)
|
|
||||||
setError(null)
|
|
||||||
try {
|
|
||||||
if (on) {
|
|
||||||
await disablePush()
|
|
||||||
setState('off')
|
|
||||||
} else {
|
|
||||||
// La permission n'est demandée qu'ici, au clic
|
|
||||||
setState(await enablePush())
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
const code = e instanceof PushError ? e.code : 'failed'
|
|
||||||
if (code === 'denied') setState('denied')
|
|
||||||
else setError(code === 'not-ready' ? t('push.notReady') : t('push.error'))
|
|
||||||
} finally {
|
|
||||||
setBusy(false)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const hint =
|
|
||||||
state === 'needs-install'
|
|
||||||
? t('push.iosInstall')
|
|
||||||
: state === 'unsupported'
|
|
||||||
? t('push.unsupported')
|
|
||||||
: state === 'denied'
|
|
||||||
? t('push.denied')
|
|
||||||
: t('push.deviceHint')
|
|
||||||
|
|
||||||
return (
|
|
||||||
<div className="card mb-3 overflow-hidden">
|
|
||||||
<button
|
|
||||||
type="button"
|
|
||||||
role="switch"
|
|
||||||
aria-checked={on}
|
|
||||||
aria-disabled={!available || busy}
|
|
||||||
onClick={() => void toggle()}
|
|
||||||
className={cx('flex w-full items-center gap-3.5 px-4 py-3.5 text-start', !available && 'cursor-default')}
|
|
||||||
>
|
|
||||||
<span className={cx('grid size-10 shrink-0 place-items-center rounded-full bg-surface-2', on ? 'text-accent' : 'text-ink-2')}>
|
|
||||||
{busy ? <Loader2 size={18} className="animate-spin" /> : <BellRing size={18} />}
|
|
||||||
</span>
|
|
||||||
<span className="min-w-0 flex-1">
|
|
||||||
<span className="block text-sm font-medium">{t('push.device')}</span>
|
|
||||||
<span className={cx('mt-0.5 block text-xs', state === 'denied' ? 'text-accent' : 'text-ink-3')}>{hint}</span>
|
|
||||||
</span>
|
|
||||||
{available && (
|
|
||||||
<span className={cx('relative h-6 w-11 shrink-0 rounded-full transition-colors', on ? 'bg-accent-fill' : 'border border-line-strong bg-surface-2')}>
|
|
||||||
<span className={cx('absolute top-0.5 size-5 rounded-full bg-ink transition-all', on ? 'start-[22px] bg-on-accent' : 'start-0.5')} />
|
|
||||||
</span>
|
|
||||||
)}
|
|
||||||
</button>
|
|
||||||
{error && (
|
|
||||||
<p role="alert" className="border-t border-line px-4 py-2.5 text-xs text-accent">
|
|
||||||
{error}
|
|
||||||
</p>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -62,7 +62,10 @@ export function RatingInput({ value, onChange, scale, size = 'lg', label }: Inpu
|
|||||||
const pick = (e: MouseEvent<HTMLButtonElement>, index: number) => {
|
const pick = (e: MouseEvent<HTMLButtonElement>, index: number) => {
|
||||||
const rect = e.currentTarget.getBoundingClientRect()
|
const rect = e.currentTarget.getBoundingClientRect()
|
||||||
// Clavier (Entrée / Espace) : pas de position de clic, on donne l'étoile entière
|
// Clavier (Entrée / Espace) : pas de position de clic, on donne l'étoile entière
|
||||||
const half = e.detail !== 0 && e.clientX - rect.left < rect.width / 2
|
// En arabe (RTL), l'étoile se remplit depuis la droite : la demi-étoile est la moitié droite
|
||||||
|
const rtl = getComputedStyle(e.currentTarget).direction === 'rtl'
|
||||||
|
const fromStart = rtl ? rect.right - e.clientX : e.clientX - rect.left
|
||||||
|
const half = e.detail !== 0 && fromStart < rect.width / 2
|
||||||
const next = (index + (half ? 0.5 : 1)) * 2
|
const next = (index + (half ? 0.5 : 1)) * 2
|
||||||
onChange(next === value ? undefined : next) // retoucher la même valeur efface la note
|
onChange(next === value ? undefined : next) // retoucher la même valeur efface la note
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,9 +4,10 @@ import { useEffect, useMemo, useState } from 'react'
|
|||||||
import { aniListRecommendations, getTmdbDetails, searchAniList, tmdbRecommendations, type SearchResult } from '../lib/catalogApi'
|
import { aniListRecommendations, getTmdbDetails, searchAniList, tmdbRecommendations, type SearchResult } from '../lib/catalogApi'
|
||||||
import { remotePosterToLocal } from '../lib/image'
|
import { remotePosterToLocal } from '../lib/image'
|
||||||
import { normalizeText } from '../lib/utils'
|
import { normalizeText } from '../lib/utils'
|
||||||
import { useMedia } from '../store'
|
import { GuestError, useMedia } from '../store'
|
||||||
import type { MediaInput, MediaItem } from '../types'
|
import type { MediaInput, MediaItem } from '../types'
|
||||||
import Poster from './Poster'
|
import Poster from './Poster'
|
||||||
|
import { useToast } from './Toast'
|
||||||
import { LinkArrow, SectionTitle } from './ui'
|
import { LinkArrow, SectionTitle } from './ui'
|
||||||
|
|
||||||
// Cache en mémoire le temps de la session (évite de refaire les requêtes)
|
// Cache en mémoire le temps de la session (évite de refaire les requêtes)
|
||||||
@@ -33,6 +34,7 @@ async function recommendationsFor(seed: MediaItem, tmdbKey?: string): Promise<Se
|
|||||||
/** « Si tu as aimé X » : suggestions à partir de mes titres préférés, ajoutables en un clic. */
|
/** « Si tu as aimé X » : suggestions à partir de mes titres préférés, ajoutables en un clic. */
|
||||||
export default function Recommendations() {
|
export default function Recommendations() {
|
||||||
const { items, settings, add } = useMedia()
|
const { items, settings, add } = useMedia()
|
||||||
|
const toast = useToast()
|
||||||
const hasKey = !!settings.tmdbKey?.trim()
|
const hasKey = !!settings.tmdbKey?.trim()
|
||||||
|
|
||||||
// Titres « graines » : mes préférés, dans un ordre aléatoire fixé pour la session
|
// Titres « graines » : mes préférés, dans un ordre aléatoire fixé pour la session
|
||||||
@@ -104,6 +106,9 @@ export default function Recommendations() {
|
|||||||
}
|
}
|
||||||
await add(input)
|
await add(input)
|
||||||
setAdded((s) => new Set(s).add(r.externalId))
|
setAdded((s) => new Set(s).add(r.externalId))
|
||||||
|
} catch (e) {
|
||||||
|
// Hors ligne, TMDB injoignable, stockage plein… : on le dit (mode visiteur : déjà signalé ailleurs)
|
||||||
|
if (!(e instanceof GuestError)) toast.show((e as Error)?.message || t('reco.error'))
|
||||||
} finally {
|
} finally {
|
||||||
setBusy(undefined)
|
setBusy(undefined)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import { useEffect, useMemo, useState } from 'react'
|
|||||||
import { shareImage } from '../lib/shareCard'
|
import { shareImage } from '../lib/shareCard'
|
||||||
import { useBackToClose } from '../lib/backNav'
|
import { useBackToClose } from '../lib/backNav'
|
||||||
import { useEscape } from '../lib/escape'
|
import { useEscape } from '../lib/escape'
|
||||||
|
import { useScrollLock } from '../lib/scrollLock'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
blob: Blob
|
blob: Blob
|
||||||
@@ -30,6 +31,7 @@ export default function SharePreview({ blob, filename, title, onClose }: Props)
|
|||||||
setUrl(u)
|
setUrl(u)
|
||||||
return () => URL.revokeObjectURL(u)
|
return () => URL.revokeObjectURL(u)
|
||||||
}, [blob])
|
}, [blob])
|
||||||
|
useScrollLock()
|
||||||
useEscape(onClose)
|
useEscape(onClose)
|
||||||
useBackToClose(onClose)
|
useBackToClose(onClose)
|
||||||
|
|
||||||
|
|||||||
@@ -9,13 +9,10 @@ import { createContext, useCallback, useContext, useEffect, useMemo, useRef, use
|
|||||||
export interface ToastOptions {
|
export interface ToastOptions {
|
||||||
/** Bouton « Annuler » : remet les choses comme avant. */
|
/** Bouton « Annuler » : remet les choses comme avant. */
|
||||||
undo?: () => void | Promise<void>
|
undo?: () => void | Promise<void>
|
||||||
/** Durée d'affichage en ms (6 s avec « Annuler », 3 s sinon). */
|
|
||||||
duration?: number
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ToastApi {
|
interface ToastApi {
|
||||||
show: (message: string, opts?: ToastOptions) => void
|
show: (message: string, opts?: ToastOptions) => void
|
||||||
dismiss: () => void
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ToastState extends ToastOptions {
|
interface ToastState extends ToastOptions {
|
||||||
@@ -35,7 +32,7 @@ export function ToastProvider({ children }: { children: ReactNode }) {
|
|||||||
setToast({ id: seq.current, message, ...opts })
|
setToast({ id: seq.current, message, ...opts })
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const api = useMemo(() => ({ show, dismiss }), [show, dismiss])
|
const api = useMemo(() => ({ show }), [show])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ToastContext.Provider value={api}>
|
<ToastContext.Provider value={api}>
|
||||||
@@ -49,7 +46,7 @@ export function ToastProvider({ children }: { children: ReactNode }) {
|
|||||||
export function useToast(): ToastApi {
|
export function useToast(): ToastApi {
|
||||||
return useContext(ToastContext) ?? NOOP
|
return useContext(ToastContext) ?? NOOP
|
||||||
}
|
}
|
||||||
const NOOP: ToastApi = { show: () => {}, dismiss: () => {} }
|
const NOOP: ToastApi = { show: () => {} }
|
||||||
|
|
||||||
function ToastViewport({ toast, onDismiss, onShow }: { toast: ToastState | null; onDismiss: () => void; onShow: ToastApi['show'] }) {
|
function ToastViewport({ toast, onDismiss, onShow }: { toast: ToastState | null; onDismiss: () => void; onShow: ToastApi['show'] }) {
|
||||||
const [paused, setPaused] = useState(false)
|
const [paused, setPaused] = useState(false)
|
||||||
@@ -57,10 +54,12 @@ function ToastViewport({ toast, onDismiss, onShow }: { toast: ToastState | null;
|
|||||||
const remaining = useRef(0)
|
const remaining = useRef(0)
|
||||||
const startedAt = useRef(0)
|
const startedAt = useRef(0)
|
||||||
|
|
||||||
// Nouveau message : compte à rebours complet
|
// Nouveau message : compte à rebours complet. La pause est remise à zéro : un message fermé
|
||||||
|
// sous le doigt / la souris ne reçoit jamais « pointerleave », et les suivants ne partaient plus.
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
setPaused(false)
|
||||||
if (!toast) return
|
if (!toast) return
|
||||||
remaining.current = toast.duration ?? (toast.undo ? 6000 : 3000)
|
remaining.current = toast.undo ? 6000 : 3000
|
||||||
setUndoing(false)
|
setUndoing(false)
|
||||||
}, [toast])
|
}, [toast])
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
import { locale, t } from '../i18n'
|
import { locale, t } from '../i18n'
|
||||||
import { ChevronDown, ChevronUp, Search, X } from 'lucide-react'
|
import { ChevronDown, ChevronUp, Search, X } from 'lucide-react'
|
||||||
import { useEffect, useMemo, useState } from 'react'
|
import { useMemo, useState } from 'react'
|
||||||
import { TOP_CATEGORIES } from '../lib/constants'
|
import { TOP_CATEGORIES } from '../lib/constants'
|
||||||
import { cx, formatRating, normalizeText } from '../lib/utils'
|
import { cx, formatRating, normalizeText } from '../lib/utils'
|
||||||
import { useMedia } from '../store'
|
import { GuestError, useMedia } from '../store'
|
||||||
|
import { useToast } from './Toast'
|
||||||
import type { TopCategory } from '../types'
|
import type { TopCategory } from '../types'
|
||||||
import { TypeBadge } from './Badges'
|
import { TypeBadge } from './Badges'
|
||||||
import Poster from './Poster'
|
import Poster from './Poster'
|
||||||
@@ -29,6 +30,7 @@ export default function TopFiveEditor({ category: initialCategory, onClose }: Pr
|
|||||||
const [query, setQuery] = useState('')
|
const [query, setQuery] = useState('')
|
||||||
const [allTypes, setAllTypes] = useState(false)
|
const [allTypes, setAllTypes] = useState(false)
|
||||||
const [saving, setSaving] = useState(false)
|
const [saving, setSaving] = useState(false)
|
||||||
|
const toast = useToast()
|
||||||
const catInfo = TOP_CATEGORIES.find((c) => c.value === category)!
|
const catInfo = TOP_CATEGORIES.find((c) => c.value === category)!
|
||||||
const byId = useMemo(() => new Map(items.map((i) => [i.id, i])), [items])
|
const byId = useMemo(() => new Map(items.map((i) => [i.id, i])), [items])
|
||||||
|
|
||||||
@@ -66,9 +68,15 @@ export default function TopFiveEditor({ category: initialCategory, onClose }: Pr
|
|||||||
|
|
||||||
const save = async () => {
|
const save = async () => {
|
||||||
setSaving(true)
|
setSaving(true)
|
||||||
await setTopList(category, ids)
|
// Échec (hors-ligne, mode découverte…) : le bouton ne reste pas bloqué et la fenêtre reste ouverte
|
||||||
setSaving(false)
|
try {
|
||||||
onClose()
|
await setTopList(category, ids)
|
||||||
|
onClose()
|
||||||
|
} catch (e) {
|
||||||
|
if (!(e instanceof GuestError)) toast.show((e as Error).message)
|
||||||
|
} finally {
|
||||||
|
setSaving(false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import {
|
|||||||
renewed,
|
renewed,
|
||||||
TARGET_MAX,
|
TARGET_MAX,
|
||||||
TEMPLATES,
|
TEMPLATES,
|
||||||
type ChallengeProgress,
|
|
||||||
} from '../../lib/challenges'
|
} from '../../lib/challenges'
|
||||||
import { MEDIA_TYPES } from '../../lib/constants'
|
import { MEDIA_TYPES } from '../../lib/constants'
|
||||||
import { useEscape } from '../../lib/escape'
|
import { useEscape } from '../../lib/escape'
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { t } from '../../i18n'
|
import { t } from '../../i18n'
|
||||||
import { Check } from 'lucide-react'
|
import { Check } from 'lucide-react'
|
||||||
import { useRef, type ReactNode } from 'react'
|
import { useEffect, useRef, type ReactNode } from 'react'
|
||||||
import { cx } from '../../lib/utils'
|
import { cx } from '../../lib/utils'
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@@ -32,6 +32,9 @@ export default function SelectableCard({ title, selecting, selected, onToggle, o
|
|||||||
origin.current = undefined
|
origin.current = undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Carte retirée pendant l'appui (filtre, suppression…) : le minuteur ne doit plus se déclencher
|
||||||
|
useEffect(() => () => clearTimeout(timer.current), [])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className="group relative select-none [-webkit-touch-callout:none]"
|
className="group relative select-none [-webkit-touch-callout:none]"
|
||||||
|
|||||||
@@ -5,12 +5,14 @@ import { useBackToClose } from '../../lib/backNav'
|
|||||||
import { allTags, cleanTag, hasTag } from '../../lib/bulk'
|
import { allTags, cleanTag, hasTag } from '../../lib/bulk'
|
||||||
import { STATUSES } from '../../lib/constants'
|
import { STATUSES } from '../../lib/constants'
|
||||||
import { useEscape } from '../../lib/escape'
|
import { useEscape } from '../../lib/escape'
|
||||||
|
import { useScrollLock } from '../../lib/scrollLock'
|
||||||
import { cx, normalizeText } from '../../lib/utils'
|
import { cx, normalizeText } from '../../lib/utils'
|
||||||
import { useMedia } from '../../store'
|
import { GuestError, useMedia } from '../../store'
|
||||||
import type { MediaItem, WatchStatus } from '../../types'
|
import type { MediaItem, WatchStatus } from '../../types'
|
||||||
import { StatusDot } from '../Badges'
|
import { StatusDot } from '../Badges'
|
||||||
import ConfirmDialog from '../ConfirmDialog'
|
import ConfirmDialog from '../ConfirmDialog'
|
||||||
import { NewListForm } from '../ListsView'
|
import { NewListForm } from '../ListsView'
|
||||||
|
import { useToast } from '../Toast'
|
||||||
import { useLibraryActions } from './useLibraryActions'
|
import { useLibraryActions } from './useLibraryActions'
|
||||||
|
|
||||||
type Panel = null | 'status' | 'list' | 'tag' | 'delete'
|
type Panel = null | 'status' | 'list' | 'tag' | 'delete'
|
||||||
@@ -29,10 +31,18 @@ export default function SelectionBar({ selected, onDone }: Props) {
|
|||||||
const ids = selected.map((i) => i.id)
|
const ids = selected.map((i) => i.id)
|
||||||
const none = selected.length === 0
|
const none = selected.length === 0
|
||||||
|
|
||||||
|
const toast = useToast()
|
||||||
const run = async (fn: () => Promise<void>) => {
|
const run = async (fn: () => Promise<void>) => {
|
||||||
setPanel(null)
|
setPanel(null)
|
||||||
await fn()
|
// Même en cas d'échec, la sélection se ferme (sinon la barre restait bloquée)
|
||||||
onDone()
|
try {
|
||||||
|
await fn()
|
||||||
|
} catch (e) {
|
||||||
|
// Mode découverte : la demande de compte est déjà ouverte
|
||||||
|
if (!(e instanceof GuestError)) toast.show((e as Error).message)
|
||||||
|
} finally {
|
||||||
|
onDone()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -95,10 +105,11 @@ function BarButton({ icon, label, onClick, disabled, danger }: { icon: ReactNode
|
|||||||
|
|
||||||
/** Petite feuille en bas de l'écran ; Échap ou le geste retour la ferment sans quitter la sélection. */
|
/** Petite feuille en bas de l'écran ; Échap ou le geste retour la ferment sans quitter la sélection. */
|
||||||
function PickerSheet({ title, onClose, children }: { title: string; onClose: () => void; children: ReactNode }) {
|
function PickerSheet({ title, onClose, children }: { title: string; onClose: () => void; children: ReactNode }) {
|
||||||
|
useScrollLock()
|
||||||
useEscape(onClose)
|
useEscape(onClose)
|
||||||
useBackToClose(onClose)
|
useBackToClose(onClose)
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[60] flex items-end justify-center bg-black/70 sm:items-center" onClick={onClose}>
|
<div className="fixed inset-0 z-[60] flex items-end justify-center bg-scrim sm:items-center" onClick={onClose}>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="dialog"
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ export default function BugReportDialog({ onClose }: { onClose: () => void }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[80] flex touch-none items-end justify-center overscroll-none bg-black/70 sm:items-center sm:p-4" onClick={onClose}>
|
<div className="fixed inset-0 z-[80] flex touch-none items-end justify-center overscroll-none bg-scrim sm:items-center sm:p-4" onClick={onClose}>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="dialog"
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ export interface MenuAction {
|
|||||||
icon: ReactNode
|
icon: ReactNode
|
||||||
label: string
|
label: string
|
||||||
onClick: () => void
|
onClick: () => void
|
||||||
danger?: boolean
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -24,14 +23,11 @@ export default function ReportButton({
|
|||||||
actions = [],
|
actions = [],
|
||||||
className,
|
className,
|
||||||
size = 18,
|
size = 18,
|
||||||
label,
|
|
||||||
}: {
|
}: {
|
||||||
target: ReportTarget
|
target: ReportTarget
|
||||||
actions?: MenuAction[]
|
actions?: MenuAction[]
|
||||||
className?: string
|
className?: string
|
||||||
size?: number
|
size?: number
|
||||||
/** Nom accessible du bouton (par défaut « Plus d'options ») */
|
|
||||||
label?: string
|
|
||||||
}) {
|
}) {
|
||||||
const [menu, setMenu] = useState(false)
|
const [menu, setMenu] = useState(false)
|
||||||
const [report, setReport] = useState(false)
|
const [report, setReport] = useState(false)
|
||||||
@@ -43,7 +39,7 @@ export default function ReportButton({
|
|||||||
e.stopPropagation()
|
e.stopPropagation()
|
||||||
setMenu(true)
|
setMenu(true)
|
||||||
}}
|
}}
|
||||||
aria-label={label ?? t('report.more')}
|
aria-label={t('report.more')}
|
||||||
aria-haspopup="menu"
|
aria-haspopup="menu"
|
||||||
className={cx('grid size-9 shrink-0 place-items-center rounded-full text-ink-3 transition-colors hover:text-ink active:bg-surface-2', className)}
|
className={cx('grid size-9 shrink-0 place-items-center rounded-full text-ink-3 transition-colors hover:text-ink active:bg-surface-2', className)}
|
||||||
>
|
>
|
||||||
@@ -57,7 +53,6 @@ export default function ReportButton({
|
|||||||
<MenuItem
|
<MenuItem
|
||||||
key={a.label}
|
key={a.label}
|
||||||
icon={a.icon}
|
icon={a.icon}
|
||||||
danger={a.danger}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setMenu(false)
|
setMenu(false)
|
||||||
a.onClick()
|
a.onClick()
|
||||||
@@ -89,7 +84,7 @@ function ActionMenu({ onClose, children }: { onClose: () => void; children: Reac
|
|||||||
useEscape(onClose)
|
useEscape(onClose)
|
||||||
useBackToClose(onClose)
|
useBackToClose(onClose)
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[80] flex items-end justify-center bg-black/70 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="menu" className="sheet-in safe-bottom w-full max-w-md rounded-t-3xl border border-line-strong bg-surface p-3 sm:rounded-3xl" onClick={(e) => e.stopPropagation()}>
|
<div role="menu" className="sheet-in safe-bottom w-full max-w-md rounded-t-3xl border border-line-strong bg-surface p-3 sm:rounded-3xl" onClick={(e) => e.stopPropagation()}>
|
||||||
{children}
|
{children}
|
||||||
<button type="button" onClick={onClose} className="mt-1 w-full rounded-xl px-3 py-3 text-center text-sm text-ink-3 active:bg-surface-2">
|
<button type="button" onClick={onClose} className="mt-1 w-full rounded-xl px-3 py-3 text-center text-sm text-ink-3 active:bg-surface-2">
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ export default function ReportDialog({ target, onClose }: { target: ReportTarget
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[80] flex touch-none items-end justify-center overscroll-none bg-black/70 sm:items-center sm:p-4" onClick={onClose}>
|
<div className="fixed inset-0 z-[80] flex touch-none items-end justify-center overscroll-none bg-scrim sm:items-center sm:p-4" onClick={onClose}>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="dialog"
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
import { t } from '../../i18n'
|
|
||||||
import { useMedia } from '../../store'
|
|
||||||
import ReviewComments from './ReviewComments'
|
|
||||||
import ReviewText from './ReviewText'
|
|
||||||
import Sheet from './Sheet'
|
|
||||||
|
|
||||||
/** Commentaires sous un de mes avis, en plein écran (ouvert depuis une notification). */
|
|
||||||
export default function CommentsSheet({ authorId, itemId, title, onClose }: { authorId: string; itemId: string; title: string; onClose: () => void }) {
|
|
||||||
const { items } = useMedia()
|
|
||||||
// Mon avis tel qu'il est sur cet appareil (les commentaires viennent du serveur)
|
|
||||||
const mine = items.find((i) => i.id === itemId)
|
|
||||||
return (
|
|
||||||
<Sheet title={title || t('comments.title')} label={t('comments.title')} onClose={onClose} elevated>
|
|
||||||
<div className="px-4 pt-4">
|
|
||||||
{mine?.notes && (
|
|
||||||
<article className="card mb-4 p-3.5">
|
|
||||||
<p className="eyebrow">{t('form.review')}</p>
|
|
||||||
<ReviewText text={mine.notes} spoiler={mine.notesSpoiler} revealed clamp />
|
|
||||||
</article>
|
|
||||||
)}
|
|
||||||
<p className="eyebrow mb-1">{t('comments.title')}</p>
|
|
||||||
<ReviewComments authorId={authorId} itemId={itemId} defaultOpen />
|
|
||||||
</div>
|
|
||||||
</Sheet>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,8 +1,10 @@
|
|||||||
import { Loader2 } from 'lucide-react'
|
import { Loader2 } from 'lucide-react'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useRef, useState } from 'react'
|
||||||
import { t } from '../../i18n'
|
import { t } from '../../i18n'
|
||||||
import { acceptFollower, getFollowList, removeFollower, type Profile, type ProfileCard } from '../../lib/cloud/social'
|
import { acceptFollower, FOLLOW_PAGE, getFollowList, removeFollower, type Profile, type ProfileCard } from '../../lib/cloud/social'
|
||||||
import { cx } from '../../lib/utils'
|
import { cx } from '../../lib/utils'
|
||||||
|
import { GuestError } from '../../store'
|
||||||
|
import { useToast } from '../Toast'
|
||||||
import PersonRow from './PersonRow'
|
import PersonRow from './PersonRow'
|
||||||
import Sheet from './Sheet'
|
import Sheet from './Sheet'
|
||||||
import { useSocial } from './SocialProvider'
|
import { useSocial } from './SocialProvider'
|
||||||
@@ -18,19 +20,53 @@ export default function FollowList({ profile, initial, onClose }: { profile: Pro
|
|||||||
const tab: Tab = picked === 'requests' && !showRequests ? 'followers' : picked
|
const tab: Tab = picked === 'requests' && !showRequests ? 'followers' : picked
|
||||||
const [list, setList] = useState<ProfileCard[]>()
|
const [list, setList] = useState<ProfileCard[]>()
|
||||||
const [busy, setBusy] = useState<string>()
|
const [busy, setBusy] = useState<string>()
|
||||||
|
const toast = useToast()
|
||||||
|
// Le serveur renvoie les comptes par pages : lignes reçues (décalage de la suivante) et page suivante possible
|
||||||
|
const received = useRef(0)
|
||||||
|
const [more, setMore] = useState(false)
|
||||||
|
const [loadingMore, setLoadingMore] = useState(false)
|
||||||
|
// Numéro du dernier chargement : une page arrivée après un changement d'onglet est ignorée
|
||||||
|
const request = useRef(0)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
const id = ++request.current
|
||||||
|
received.current = 0
|
||||||
|
setMore(false)
|
||||||
|
setLoadingMore(false)
|
||||||
if (tab === 'requests') return setList(social.requests)
|
if (tab === 'requests') return setList(social.requests)
|
||||||
let alive = true
|
|
||||||
setList(undefined)
|
setList(undefined)
|
||||||
getFollowList(profile.id, tab)
|
getFollowList(profile.id, tab)
|
||||||
.then((l) => alive && setList(l))
|
.then((page) => {
|
||||||
.catch(() => alive && setList([]))
|
if (id !== request.current) return
|
||||||
return () => {
|
received.current = page.received
|
||||||
alive = false
|
setList(page.cards)
|
||||||
}
|
setMore(page.received >= FOLLOW_PAGE)
|
||||||
|
})
|
||||||
|
.catch(() => id === request.current && setList([]))
|
||||||
}, [tab, profile.id, social.requests])
|
}, [tab, profile.id, social.requests])
|
||||||
|
|
||||||
|
const loadMore = async () => {
|
||||||
|
if (tab === 'requests' || loadingMore) return
|
||||||
|
const id = request.current
|
||||||
|
setLoadingMore(true)
|
||||||
|
try {
|
||||||
|
const page = await getFollowList(profile.id, tab, received.current)
|
||||||
|
if (id !== request.current) return
|
||||||
|
received.current += page.received
|
||||||
|
// Sans doublon (même clé React) si la liste a bougé entre deux pages
|
||||||
|
setList((l) => {
|
||||||
|
const base = l ?? []
|
||||||
|
const seen = new Set(base.map((p) => p.id))
|
||||||
|
return [...base, ...page.cards.filter((p) => !seen.has(p.id) && !!seen.add(p.id))]
|
||||||
|
})
|
||||||
|
setMore(page.received >= FOLLOW_PAGE)
|
||||||
|
} catch (e) {
|
||||||
|
if (id === request.current) toast.show((e as Error).message)
|
||||||
|
} finally {
|
||||||
|
if (id === request.current) setLoadingMore(false)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const act = async (person: ProfileCard, action: 'accept' | 'remove') => {
|
const act = async (person: ProfileCard, action: 'accept' | 'remove') => {
|
||||||
setBusy(person.id)
|
setBusy(person.id)
|
||||||
try {
|
try {
|
||||||
@@ -38,6 +74,8 @@ export default function FollowList({ profile, initial, onClose }: { profile: Pro
|
|||||||
else await removeFollower(person.id)
|
else await removeFollower(person.id)
|
||||||
setList((l) => l?.filter((p) => p.id !== person.id))
|
setList((l) => l?.filter((p) => p.id !== person.id))
|
||||||
await social.refresh()
|
await social.refresh()
|
||||||
|
} catch (e) {
|
||||||
|
if (!(e instanceof GuestError)) toast.show((e as Error).message)
|
||||||
} finally {
|
} finally {
|
||||||
setBusy(undefined)
|
setBusy(undefined)
|
||||||
}
|
}
|
||||||
@@ -92,6 +130,11 @@ export default function FollowList({ profile, initial, onClose }: { profile: Pro
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{list !== undefined && list.length > 0 && more && tab !== 'requests' && (
|
||||||
|
<button onClick={() => void loadMore()} disabled={loadingMore} className="btn btn-ghost mt-3 w-full">
|
||||||
|
{loadingMore ? <Loader2 size={16} className="animate-spin" /> : t('social.loadMore')}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Sheet>
|
</Sheet>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Loader2, Star, UserPlus } from 'lucide-react'
|
import { Loader2, Star, UserPlus } from 'lucide-react'
|
||||||
import { useCallback, useEffect, useState } from 'react'
|
import { useCallback, useEffect, useRef, useState } from 'react'
|
||||||
import { t } from '../../i18n'
|
import { t } from '../../i18n'
|
||||||
import { getFeed, type FeedEntry } from '../../lib/cloud/social'
|
import { FEED_PAGE, getFeed, type FeedEntry } from '../../lib/cloud/social'
|
||||||
import { useOnResume } from '../../lib/onResume'
|
import { useOnResume } from '../../lib/onResume'
|
||||||
import { timeAgo } from '../../lib/timeAgo'
|
import { timeAgo } from '../../lib/timeAgo'
|
||||||
import { formatRating } from '../../lib/utils'
|
import { formatRating } from '../../lib/utils'
|
||||||
@@ -11,6 +11,20 @@ import { LinkArrow, SectionTitle } from '../ui'
|
|||||||
import Avatar from './Avatar'
|
import Avatar from './Avatar'
|
||||||
import { useSocial } from './SocialProvider'
|
import { useSocial } from './SocialProvider'
|
||||||
|
|
||||||
|
const feedKey = (e: FeedEntry) => `${e.id}-${e.createdAt}`
|
||||||
|
|
||||||
|
/** Ajoute une page sans doublon (même entrée reçue deux fois = même clé React). */
|
||||||
|
function append(list: FeedEntry[], page: FeedEntry[]): FeedEntry[] {
|
||||||
|
const seen = new Set(list.map(feedKey))
|
||||||
|
const out = [...list]
|
||||||
|
for (const e of page) {
|
||||||
|
if (seen.has(feedKey(e))) continue
|
||||||
|
seen.add(feedKey(e))
|
||||||
|
out.push(e)
|
||||||
|
}
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
const VERB = { finished: 'feed.finished', started: 'feed.started', rewatched: 'feed.rewatched', added: 'feed.added' } as const
|
const VERB = { finished: 'feed.finished', started: 'feed.started', rewatched: 'feed.rewatched', added: 'feed.added' } as const
|
||||||
|
|
||||||
/** Accueil : ce que regardent mes abonnements. */
|
/** Accueil : ce que regardent mes abonnements. */
|
||||||
@@ -21,20 +35,46 @@ export default function FriendsFeed() {
|
|||||||
const [more, setMore] = useState(false)
|
const [more, setMore] = useState(false)
|
||||||
const [loadingMore, setLoadingMore] = useState(false)
|
const [loadingMore, setLoadingMore] = useState(false)
|
||||||
const [shown, setShown] = useState(6)
|
const [shown, setShown] = useState(6)
|
||||||
|
// Hors-ligne avant le premier chargement : message au lieu d'un chargement sans fin
|
||||||
|
const [offline, setOffline] = useState(false)
|
||||||
|
// Date de la dernière ligne reçue : point de départ de la page suivante
|
||||||
|
const cursor = useRef<string | undefined>(undefined)
|
||||||
|
// Numéro du dernier chargement : une réponse arrivée après un plus récent est ignorée
|
||||||
|
const req = useRef(0)
|
||||||
|
|
||||||
const load = useCallback(async () => {
|
const load = useCallback(async () => {
|
||||||
|
const id = ++req.current
|
||||||
|
setLoadingMore(false)
|
||||||
try {
|
try {
|
||||||
const list = await getFeed()
|
const page = await getFeed()
|
||||||
setEntries(list)
|
if (id !== req.current) return
|
||||||
setMore(list.length >= 30)
|
cursor.current = page.cursor
|
||||||
|
setEntries(append([], page.entries))
|
||||||
|
setMore(page.received >= FEED_PAGE)
|
||||||
|
setOffline(false)
|
||||||
} catch {
|
} catch {
|
||||||
|
if (id !== req.current) return
|
||||||
|
// Hors-ligne : on garde ce qui est déjà affiché
|
||||||
|
if (!navigator.onLine) {
|
||||||
|
setOffline(true)
|
||||||
|
return
|
||||||
|
}
|
||||||
setEntries([])
|
setEntries([])
|
||||||
}
|
}
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (social.enabled && navigator.onLine) void load()
|
if (!social.enabled) return
|
||||||
|
if (navigator.onLine) void load()
|
||||||
|
else setOffline(true)
|
||||||
}, [social.enabled, load])
|
}, [social.enabled, load])
|
||||||
|
// Réseau retrouvé alors que le fil n'a jamais pu être chargé : on le charge
|
||||||
|
useEffect(() => {
|
||||||
|
if (!social.enabled || !offline) return
|
||||||
|
const on = () => void load()
|
||||||
|
window.addEventListener('online', on)
|
||||||
|
return () => window.removeEventListener('online', on)
|
||||||
|
}, [social.enabled, offline, load])
|
||||||
// Retour sur l'app : on récupère ce que les abonnements ont ajouté entre-temps
|
// Retour sur l'app : on récupère ce que les abonnements ont ajouté entre-temps
|
||||||
useOnResume(() => void load(), social.enabled)
|
useOnResume(() => void load(), social.enabled)
|
||||||
// Abonnement / désabonnement : le fil change aussi
|
// Abonnement / désabonnement : le fil change aussi
|
||||||
@@ -46,23 +86,30 @@ export default function FriendsFeed() {
|
|||||||
if (!social.enabled) return null
|
if (!social.enabled) return null
|
||||||
|
|
||||||
const loadMore = async () => {
|
const loadMore = async () => {
|
||||||
if (!entries) return
|
if (!entries || loadingMore) return
|
||||||
if (shown < entries.length) return setShown((n) => n + 10)
|
if (shown < entries.length) return setShown((n) => n + 10)
|
||||||
|
const id = req.current
|
||||||
setLoadingMore(true)
|
setLoadingMore(true)
|
||||||
try {
|
try {
|
||||||
const next = await getFeed(entries[entries.length - 1]?.createdAt)
|
const page = await getFeed(cursor.current ?? entries[entries.length - 1]?.createdAt)
|
||||||
setEntries([...entries, ...next])
|
if (id !== req.current) return
|
||||||
setMore(next.length >= 30)
|
cursor.current = page.cursor ?? cursor.current
|
||||||
|
setEntries((list) => append(list ?? [], page.entries))
|
||||||
|
setMore(page.received >= FEED_PAGE)
|
||||||
setShown((n) => n + 10)
|
setShown((n) => n + 10)
|
||||||
|
} catch {
|
||||||
|
/* hors-ligne / serveur indisponible : le bouton reste là pour réessayer */
|
||||||
} finally {
|
} finally {
|
||||||
setLoadingMore(false)
|
if (id === req.current) setLoadingMore(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SectionTitle action={<LinkArrow onClick={social.openSearch}>{t('social.findFriends')}</LinkArrow>}>{t('feed.title')}</SectionTitle>
|
<SectionTitle action={<LinkArrow onClick={social.openSearch}>{t('social.findFriends')}</LinkArrow>}>{t('feed.title')}</SectionTitle>
|
||||||
{entries === undefined ? (
|
{entries === undefined && offline ? (
|
||||||
|
<p className="text-sm text-ink-3">{t('common.offline')}</p>
|
||||||
|
) : entries === undefined ? (
|
||||||
<p className="flex items-center gap-2 text-sm text-ink-3">
|
<p className="flex items-center gap-2 text-sm text-ink-3">
|
||||||
<Loader2 size={14} className="animate-spin" /> {t('social.loading')}
|
<Loader2 size={14} className="animate-spin" /> {t('social.loading')}
|
||||||
</p>
|
</p>
|
||||||
@@ -77,7 +124,7 @@ export default function FriendsFeed() {
|
|||||||
<>
|
<>
|
||||||
<ul className="divide-y divide-line">
|
<ul className="divide-y divide-line">
|
||||||
{entries.slice(0, shown).map((e) => (
|
{entries.slice(0, shown).map((e) => (
|
||||||
<li key={`${e.id}-${e.createdAt}`} className="flex items-center gap-3 py-2.5">
|
<li key={feedKey(e)} className="flex items-center gap-3 py-2.5">
|
||||||
<button onClick={() => social.openProfile(e.user.username)} aria-label={e.user.displayName}>
|
<button onClick={() => social.openProfile(e.user.username)} aria-label={e.user.displayName}>
|
||||||
<Avatar url={e.user.avatarUrl} name={e.user.displayName} size={36} />
|
<Avatar url={e.user.avatarUrl} name={e.user.displayName} size={36} />
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import { useScrollLock } from '../../lib/scrollLock'
|
|||||||
import { titleReviews, type TitleReview } from '../../lib/cloud/reviews'
|
import { titleReviews, type TitleReview } from '../../lib/cloud/reviews'
|
||||||
import { useSocial } from './SocialProvider'
|
import { useSocial } from './SocialProvider'
|
||||||
import { cx, formatDate, formatRating, normalizeText } from '../../lib/utils'
|
import { cx, formatDate, formatRating, normalizeText } from '../../lib/utils'
|
||||||
import { useMedia } from '../../store'
|
import { GuestError, useMedia } from '../../store'
|
||||||
|
import { useToast } from '../Toast'
|
||||||
import type { MediaInput, MediaItem } from '../../types'
|
import type { MediaInput, MediaItem } from '../../types'
|
||||||
import { StatusPill, TypeBadge } from '../Badges'
|
import { StatusPill, TypeBadge } from '../Badges'
|
||||||
import Poster from '../Poster'
|
import Poster from '../Poster'
|
||||||
@@ -30,6 +31,7 @@ export default function ItemPeek({ item, owner, onClose }: { item: MediaItem; ow
|
|||||||
const social = useSocial()
|
const social = useSocial()
|
||||||
const [busy, setBusy] = useState(false)
|
const [busy, setBusy] = useState(false)
|
||||||
const [added, setAdded] = useState(false)
|
const [added, setAdded] = useState(false)
|
||||||
|
const toast = useToast()
|
||||||
// Avis d'un autre membre : on récupère les réactions pour pouvoir réagir ici même
|
// Avis d'un autre membre : on récupère les réactions pour pouvoir réagir ici même
|
||||||
const [review, setReview] = useState<TitleReview>()
|
const [review, setReview] = useState<TitleReview>()
|
||||||
const canReact = !!owner && owner.username !== social.me?.username && !!item.notes && !!item.externalId
|
const canReact = !!owner && owner.username !== social.me?.username && !!item.notes && !!item.externalId
|
||||||
@@ -83,13 +85,16 @@ export default function ItemPeek({ item, owner, onClose }: { item: MediaItem; ow
|
|||||||
}
|
}
|
||||||
await add(input)
|
await add(input)
|
||||||
setAdded(true)
|
setAdded(true)
|
||||||
|
} catch (e) {
|
||||||
|
// Mode découverte : l'invitation à créer un compte est déjà affichée
|
||||||
|
if (!(e instanceof GuestError)) toast.show((e as Error).message)
|
||||||
} finally {
|
} finally {
|
||||||
setBusy(false)
|
setBusy(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[60] flex touch-none items-end justify-center overscroll-none bg-black/70 sm:items-center sm:p-4" onClick={onClose}>
|
<div className="fixed inset-0 z-[60] flex touch-none items-end justify-center overscroll-none bg-scrim sm:items-center sm:p-4" onClick={onClose}>
|
||||||
<div
|
<div
|
||||||
role="dialog"
|
role="dialog"
|
||||||
aria-modal="true"
|
aria-modal="true"
|
||||||
|
|||||||
@@ -1,289 +0,0 @@
|
|||||||
import { Check, Loader2, MessageCircle, Tv, Users } from 'lucide-react'
|
|
||||||
import { useEffect, useState } from 'react'
|
|
||||||
import { t } from '../../i18n'
|
|
||||||
import { listNotifications, markNotificationsRead, type AppNotification, type NotificationKind } from '../../lib/cloud/notifications'
|
|
||||||
import { cx, formatDate } from '../../lib/utils'
|
|
||||||
import { EmptyState } from '../ui'
|
|
||||||
import Avatar from './Avatar'
|
|
||||||
import { respondToInvite } from '../../lib/cloud/sharedLists'
|
|
||||||
import { useSocial } from './SocialProvider'
|
|
||||||
import Sheet from './Sheet'
|
|
||||||
|
|
||||||
const PAGE = 30
|
|
||||||
const FOLLOW_KINDS: NotificationKind[] = ['follow_request', 'follow_accepted', 'new_follower']
|
|
||||||
const EPISODE_KINDS: NotificationKind[] = ['new_episode', 'new_season']
|
|
||||||
|
|
||||||
const VERB: Record<NotificationKind, () => string> = {
|
|
||||||
follow_request: () => t('notif.follow_request'),
|
|
||||||
follow_accepted: () => t('notif.follow_accepted'),
|
|
||||||
new_follower: () => t('notif.new_follower'),
|
|
||||||
reaction: () => t('notif.reaction'),
|
|
||||||
new_episode: () => '',
|
|
||||||
new_season: () => '',
|
|
||||||
review_comment: () => t('notif.review_comment'),
|
|
||||||
shared_list_invite: () => t('notif.shared_list_invite'),
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Liste des notifications (abonnements, réactions, nouveaux épisodes). Marque comme lues à l'ouverture. */
|
|
||||||
export default function Notifications({
|
|
||||||
onClose,
|
|
||||||
onOpenProfile,
|
|
||||||
onOpenItem,
|
|
||||||
onOpenComments,
|
|
||||||
onOpenSharedList,
|
|
||||||
}: {
|
|
||||||
onClose: () => void
|
|
||||||
onOpenProfile: (username: string) => void
|
|
||||||
onOpenItem: (itemId: string) => void
|
|
||||||
onOpenComments?: (itemId: string, title: string) => void
|
|
||||||
onOpenSharedList?: (listId: string) => void
|
|
||||||
}) {
|
|
||||||
const [items, setItems] = useState<AppNotification[] | undefined>(undefined)
|
|
||||||
const [done, setDone] = useState(false)
|
|
||||||
const [loadingMore, setLoadingMore] = useState(false)
|
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
let alive = true
|
|
||||||
void (async () => {
|
|
||||||
try {
|
|
||||||
const page = await listNotifications(0)
|
|
||||||
if (!alive) return
|
|
||||||
setItems(page)
|
|
||||||
setDone(page.length < PAGE)
|
|
||||||
} catch {
|
|
||||||
if (alive) {
|
|
||||||
setItems([])
|
|
||||||
setDone(true)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
markNotificationsRead().catch(() => {})
|
|
||||||
})()
|
|
||||||
return () => {
|
|
||||||
alive = false
|
|
||||||
}
|
|
||||||
}, [])
|
|
||||||
|
|
||||||
const loadMore = async () => {
|
|
||||||
if (!items || loadingMore) return
|
|
||||||
setLoadingMore(true)
|
|
||||||
try {
|
|
||||||
const page = await listNotifications(items.length)
|
|
||||||
setItems((prev) => [...(prev ?? []), ...page])
|
|
||||||
setDone(page.length < PAGE)
|
|
||||||
} catch {
|
|
||||||
setDone(true)
|
|
||||||
} finally {
|
|
||||||
setLoadingMore(false)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
|
||||||
<Sheet title={t('notif.title')} label={t('notif.title')} onClose={onClose} elevated>
|
|
||||||
{items === undefined ? (
|
|
||||||
<p className="flex items-center justify-center py-16 text-ink-3">
|
|
||||||
<Loader2 size={20} className="animate-spin" />
|
|
||||||
</p>
|
|
||||||
) : items.length === 0 ? (
|
|
||||||
<div className="px-4">
|
|
||||||
<EmptyState title={t('notif.empty')} />
|
|
||||||
</div>
|
|
||||||
) : (
|
|
||||||
<ul>
|
|
||||||
{items.map((n) => (
|
|
||||||
<Row key={n.id} n={n} onOpenProfile={onOpenProfile} onOpenItem={onOpenItem} onOpenComments={onOpenComments} onOpenSharedList={onOpenSharedList} />
|
|
||||||
))}
|
|
||||||
{!done && (
|
|
||||||
<li className="p-4">
|
|
||||||
<button onClick={loadMore} disabled={loadingMore} className="btn btn-ghost w-full">
|
|
||||||
{loadingMore ? <Loader2 size={15} className="animate-spin" /> : t('social.loadMore')}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
)}
|
|
||||||
</ul>
|
|
||||||
)}
|
|
||||||
</Sheet>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
function Row({
|
|
||||||
n,
|
|
||||||
onOpenProfile,
|
|
||||||
onOpenItem,
|
|
||||||
onOpenComments,
|
|
||||||
onOpenSharedList,
|
|
||||||
}: {
|
|
||||||
n: AppNotification
|
|
||||||
onOpenProfile: (username: string) => void
|
|
||||||
onOpenItem: (itemId: string) => void
|
|
||||||
onOpenComments?: (itemId: string, title: string) => void
|
|
||||||
onOpenSharedList?: (listId: string) => void
|
|
||||||
}) {
|
|
||||||
const unread = n.read_at === null
|
|
||||||
const isEpisode = EPISODE_KINDS.includes(n.kind)
|
|
||||||
const base = cx('flex items-center gap-3 border-b border-line px-4 py-3 text-start', unread && 'bg-surface-2')
|
|
||||||
|
|
||||||
// ── Nouvel épisode / nouvelle saison ──
|
|
||||||
if (isEpisode) {
|
|
||||||
const title = n.title ?? '—'
|
|
||||||
const inner = (
|
|
||||||
<>
|
|
||||||
{unread && <span className="size-2 shrink-0 rounded-full bg-accent-fill" aria-hidden="true" />}
|
|
||||||
<span className="grid size-[38px] shrink-0 place-items-center rounded-full bg-surface-2 text-accent">
|
|
||||||
<Tv size={18} />
|
|
||||||
</span>
|
|
||||||
<span className="min-w-0 flex-1 text-sm leading-snug text-ink-2">
|
|
||||||
<b className="text-ink">{t(n.kind === 'new_season' ? 'notif.new_season' : 'notif.new_episode', { title })}</b>
|
|
||||||
{n.episode != null && <span className="text-ink-3"> · {t('episodes.short', { n: n.episode })}</span>}
|
|
||||||
</span>
|
|
||||||
<span className="shrink-0 text-xs text-ink-3">{formatDate(n.created_at)}</span>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
return (
|
|
||||||
<li>
|
|
||||||
{n.item_id ? (
|
|
||||||
<button onClick={() => onOpenItem(n.item_id!)} className={cx(base, 'w-full')}>
|
|
||||||
{inner}
|
|
||||||
</button>
|
|
||||||
) : (
|
|
||||||
<div className={base}>{inner}</div>
|
|
||||||
)}
|
|
||||||
</li>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
// ── Commentaire sur mon avis / invitation à une liste partagée ──
|
|
||||||
if (n.kind === 'review_comment' || n.kind === 'shared_list_invite') {
|
|
||||||
return <SocialRow n={n} base={base} unread={unread} onOpenProfile={onOpenProfile} onOpenComments={onOpenComments} onOpenSharedList={onOpenSharedList} />
|
|
||||||
}
|
|
||||||
|
|
||||||
// ── Abonnements / réactions ──
|
|
||||||
const actor = n.actor
|
|
||||||
const actorName = actor?.display_name ?? t('notif.someone')
|
|
||||||
const username = actor?.username
|
|
||||||
const target = username != null && FOLLOW_KINDS.includes(n.kind) ? username : null
|
|
||||||
|
|
||||||
const inner = (
|
|
||||||
<>
|
|
||||||
{unread && <span className="size-2 shrink-0 rounded-full bg-accent-fill" aria-hidden="true" />}
|
|
||||||
<Avatar url={actor?.avatar_url ?? undefined} name={actorName} size={38} />
|
|
||||||
<span className="min-w-0 flex-1 text-sm leading-snug text-ink-2">
|
|
||||||
<b className="text-ink">{actorName}</b> {VERB[n.kind]()}
|
|
||||||
{n.kind === 'reaction' && (
|
|
||||||
<>
|
|
||||||
{n.emoji ? ` ${n.emoji}` : ''}
|
|
||||||
{n.title ? ` ${t('notif.on', { title: n.title })}` : ''}
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</span>
|
|
||||||
<span className="shrink-0 text-xs text-ink-3">{formatDate(n.created_at)}</span>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
|
|
||||||
return (
|
|
||||||
<li>
|
|
||||||
{target != null ? (
|
|
||||||
<button onClick={() => onOpenProfile(target)} className={cx(base, 'w-full')}>
|
|
||||||
{inner}
|
|
||||||
</button>
|
|
||||||
) : (
|
|
||||||
<div className={base}>{inner}</div>
|
|
||||||
)}
|
|
||||||
</li>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
function SocialRow({
|
|
||||||
n,
|
|
||||||
base,
|
|
||||||
unread,
|
|
||||||
onOpenProfile,
|
|
||||||
onOpenComments,
|
|
||||||
onOpenSharedList,
|
|
||||||
}: {
|
|
||||||
n: AppNotification
|
|
||||||
base: string
|
|
||||||
unread: boolean
|
|
||||||
onOpenProfile: (username: string) => void
|
|
||||||
onOpenComments?: (itemId: string, title: string) => void
|
|
||||||
onOpenSharedList?: (listId: string) => void
|
|
||||||
}) {
|
|
||||||
const social = useSocial()
|
|
||||||
const [status, setStatus] = useState(n.invite_status)
|
|
||||||
const [busy, setBusy] = useState(false)
|
|
||||||
const actor = n.actor
|
|
||||||
const actorName = actor?.display_name ?? t('notif.someone')
|
|
||||||
const isInvite = n.kind === 'shared_list_invite'
|
|
||||||
|
|
||||||
const respond = async (accept: boolean) => {
|
|
||||||
if (!n.item_id) return
|
|
||||||
setBusy(true)
|
|
||||||
try {
|
|
||||||
await respondToInvite(n.item_id, accept)
|
|
||||||
setStatus(accept ? 'accepted' : null)
|
|
||||||
social.bumpShared()
|
|
||||||
if (accept) onOpenSharedList?.(n.item_id)
|
|
||||||
} catch {
|
|
||||||
/* invitation expirée ou réseau : rien ne change */
|
|
||||||
} finally {
|
|
||||||
setBusy(false)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Où mène un tap sur la ligne
|
|
||||||
const open =
|
|
||||||
!isInvite && n.item_id && onOpenComments
|
|
||||||
? () => onOpenComments(n.item_id!, n.title ?? '')
|
|
||||||
: isInvite && status === 'accepted' && n.item_id && onOpenSharedList
|
|
||||||
? () => onOpenSharedList(n.item_id!)
|
|
||||||
: null
|
|
||||||
|
|
||||||
const text = (
|
|
||||||
<span className="min-w-0 flex-1 text-sm leading-snug text-ink-2">
|
|
||||||
<b className="text-ink">{actorName}</b> {VERB[n.kind]()}
|
|
||||||
{isInvite ? (
|
|
||||||
n.title ? (
|
|
||||||
<>
|
|
||||||
{' '}
|
|
||||||
<b className="text-ink">{n.title}</b>
|
|
||||||
</>
|
|
||||||
) : (
|
|
||||||
` (${t('shared.expired')})`
|
|
||||||
)
|
|
||||||
) : n.title ? (
|
|
||||||
` ${t('notif.on', { title: n.title })}`
|
|
||||||
) : (
|
|
||||||
''
|
|
||||||
)}
|
|
||||||
</span>
|
|
||||||
)
|
|
||||||
|
|
||||||
return (
|
|
||||||
<li>
|
|
||||||
<div className={cx(base, 'flex-wrap')}>
|
|
||||||
{unread && <span className="size-2 shrink-0 rounded-full bg-accent-fill" aria-hidden="true" />}
|
|
||||||
<button type="button" onClick={() => actor && onOpenProfile(actor.username)} className="shrink-0" aria-label={actorName} disabled={!actor}>
|
|
||||||
<Avatar url={actor?.avatar_url ?? undefined} name={actorName} size={38} />
|
|
||||||
</button>
|
|
||||||
{open ? (
|
|
||||||
<button type="button" onClick={open} className="flex min-w-0 flex-1 items-center gap-2 text-start">
|
|
||||||
{isInvite ? <Users size={14} className="shrink-0 text-accent" aria-hidden="true" /> : <MessageCircle size={14} className="shrink-0 text-accent" aria-hidden="true" />}
|
|
||||||
{text}
|
|
||||||
</button>
|
|
||||||
) : (
|
|
||||||
text
|
|
||||||
)}
|
|
||||||
<span className="shrink-0 text-xs text-ink-3">{formatDate(n.created_at)}</span>
|
|
||||||
{isInvite && status === 'pending' && n.title && (
|
|
||||||
<div className="flex w-full justify-end gap-2 ps-[3.25rem]">
|
|
||||||
<button type="button" onClick={() => void respond(false)} disabled={busy} className="btn btn-ghost px-3.5 py-1.5 text-sm">
|
|
||||||
{t('shared.decline')}
|
|
||||||
</button>
|
|
||||||
<button type="button" onClick={() => void respond(true)} disabled={busy} className="btn btn-primary px-3.5 py-1.5 text-sm">
|
|
||||||
{busy ? <Loader2 size={14} className="animate-spin" /> : <Check size={14} />} {t('shared.accept')}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Ban, Check, Loader2, Lock, Share2, Star, UserCheck, UserPlus } from 'lucide-react'
|
import { Ban, Check, Loader2, Lock, Share2, Star, UserCheck, UserPlus } from 'lucide-react'
|
||||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||||
import { fmtNumber, t } from '../../i18n'
|
import { fmtNumber, t } from '../../i18n'
|
||||||
import { follow, getProfile, getProfileItems, profileLink, unfollow, type Profile } from '../../lib/cloud/social'
|
import { follow, getProfile, getProfileItems, PROFILE_ITEMS_PAGE, profileLink, unfollow, type Profile } from '../../lib/cloud/social'
|
||||||
import { STATUSES, TOP_CATEGORIES } from '../../lib/constants'
|
import { STATUSES, TOP_CATEGORIES } from '../../lib/constants'
|
||||||
import { cx, formatRating } from '../../lib/utils'
|
import { cx, formatRating } from '../../lib/utils'
|
||||||
import { useMedia } from '../../store'
|
import { useMedia } from '../../store'
|
||||||
@@ -64,15 +64,22 @@ export default function ProfileView({ username, onClose }: { username: string; o
|
|||||||
const { isBlocked } = useBlocked(!!profile && !profile.isMe)
|
const { isBlocked } = useBlocked(!!profile && !profile.isMe)
|
||||||
const blocked = !!profile && !profile.isMe && isBlocked(profile.id)
|
const blocked = !!profile && !profile.isMe && isBlocked(profile.id)
|
||||||
|
|
||||||
const load = useCallback(async () => {
|
/** `reload` : rechargement après une action (s'abonner, bloquer…) — en cas d'échec, on garde le profil affiché. */
|
||||||
setError(undefined)
|
const load = useCallback(
|
||||||
try {
|
async (reload = false) => {
|
||||||
setProfile(await getProfile(username))
|
if (!reload) setError(undefined)
|
||||||
} catch (e) {
|
try {
|
||||||
setError((e as Error).message)
|
const next = await getProfile(username)
|
||||||
setProfile(null)
|
if (reload) setError(undefined)
|
||||||
}
|
setProfile(next)
|
||||||
}, [username])
|
} catch (e) {
|
||||||
|
if (reload) return setToast((e as Error).message)
|
||||||
|
setError((e as Error).message)
|
||||||
|
setProfile(null)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
[username],
|
||||||
|
)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
void load()
|
void load()
|
||||||
@@ -113,7 +120,7 @@ export default function ProfileView({ username, onClose }: { username: string; o
|
|||||||
setBusy(true)
|
setBusy(true)
|
||||||
try {
|
try {
|
||||||
await follow(profile.id)
|
await follow(profile.id)
|
||||||
await load()
|
await load(true)
|
||||||
void social.refresh()
|
void social.refresh()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setToast((e as Error).message)
|
setToast((e as Error).message)
|
||||||
@@ -128,7 +135,7 @@ export default function ProfileView({ username, onClose }: { username: string; o
|
|||||||
setBusy(true)
|
setBusy(true)
|
||||||
try {
|
try {
|
||||||
await unfollow(profile.id)
|
await unfollow(profile.id)
|
||||||
await load()
|
await load(true)
|
||||||
void social.refresh()
|
void social.refresh()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setToast((e as Error).message)
|
setToast((e as Error).message)
|
||||||
@@ -144,7 +151,7 @@ export default function ProfileView({ username, onClose }: { username: string; o
|
|||||||
setBusy(true)
|
setBusy(true)
|
||||||
try {
|
try {
|
||||||
await blockUser({ id: profile.id, username: profile.username, displayName: profile.displayName, avatarUrl: profile.avatarUrl })
|
await blockUser({ id: profile.id, username: profile.username, displayName: profile.displayName, avatarUrl: profile.avatarUrl })
|
||||||
await load()
|
await load(true)
|
||||||
void social.refresh()
|
void social.refresh()
|
||||||
setToast(t('block.done', { name: profile.displayName }))
|
setToast(t('block.done', { name: profile.displayName }))
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
@@ -422,18 +429,29 @@ function LibraryTab({ profile, onOpen }: { profile: Profile; onOpen: (i: MediaIt
|
|||||||
const [done, setDone] = useState(false)
|
const [done, setDone] = useState(false)
|
||||||
|
|
||||||
const request = useRef(0)
|
const request = useRef(0)
|
||||||
|
// Lignes reçues du serveur (y compris celles écartées à la relecture) : décalage de la page suivante
|
||||||
|
const received = useRef(0)
|
||||||
|
|
||||||
const loadPage = useCallback(
|
const loadPage = useCallback(
|
||||||
async (reset: boolean) => {
|
async (reset: boolean) => {
|
||||||
// Une réponse arrivée après un changement de filtre ne doit pas écraser la nouvelle liste
|
// Une réponse arrivée après un changement de filtre ne doit pas écraser la nouvelle liste
|
||||||
const id = ++request.current
|
const id = ++request.current
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
if (reset) setList([])
|
if (reset) {
|
||||||
|
setList([])
|
||||||
|
received.current = 0
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
const page = await getProfileItems(profile.id, status || null, reset ? 0 : list.length)
|
const page = await getProfileItems(profile.id, status || null, reset ? 0 : received.current)
|
||||||
if (id !== request.current) return
|
if (id !== request.current) return
|
||||||
setList((prev) => (reset ? page : [...prev, ...page]))
|
received.current += page.received
|
||||||
setDone(page.length < 48)
|
setList((prev) => {
|
||||||
|
// Sans doublon (une fiche ne peut apparaître qu'une fois : même clé React)
|
||||||
|
const base = reset ? [] : prev
|
||||||
|
const seen = new Set(base.map((i) => i.id))
|
||||||
|
return [...base, ...page.items.filter((i) => !seen.has(i.id) && !!seen.add(i.id))]
|
||||||
|
})
|
||||||
|
setDone(page.received < PROFILE_ITEMS_PAGE)
|
||||||
} catch {
|
} catch {
|
||||||
if (id === request.current) setDone(true)
|
if (id === request.current) setDone(true)
|
||||||
} finally {
|
} finally {
|
||||||
@@ -441,7 +459,7 @@ function LibraryTab({ profile, onOpen }: { profile: Profile; onOpen: (i: MediaIt
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
[profile.id, status, list.length],
|
[profile.id, status],
|
||||||
)
|
)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ export default function ReviewComments({
|
|||||||
authorId,
|
authorId,
|
||||||
itemId,
|
itemId,
|
||||||
count: initialCount,
|
count: initialCount,
|
||||||
defaultOpen,
|
|
||||||
hidden,
|
hidden,
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
@@ -25,14 +24,13 @@ export default function ReviewComments({
|
|||||||
itemId: string
|
itemId: string
|
||||||
/** Nombre connu (sinon chargé à l'ouverture) */
|
/** Nombre connu (sinon chargé à l'ouverture) */
|
||||||
count?: number | null
|
count?: number | null
|
||||||
defaultOpen?: boolean
|
|
||||||
/** Serveur sans les commentaires (migration pas encore appliquée) : seules les autres actions s'affichent */
|
/** Serveur sans les commentaires (migration pas encore appliquée) : seules les autres actions s'affichent */
|
||||||
hidden?: boolean
|
hidden?: boolean
|
||||||
children?: ReactNode
|
children?: ReactNode
|
||||||
}) {
|
}) {
|
||||||
const social = useSocial()
|
const social = useSocial()
|
||||||
const { isBlocked } = useBlocked(social.enabled)
|
const { isBlocked } = useBlocked(social.enabled)
|
||||||
const [open, setOpen] = useState(!!defaultOpen)
|
const [open, setOpen] = useState(false)
|
||||||
const [count, setCount] = useState(initialCount ?? undefined)
|
const [count, setCount] = useState(initialCount ?? undefined)
|
||||||
const [comments, setComments] = useState<ReviewComment[]>()
|
const [comments, setComments] = useState<ReviewComment[]>()
|
||||||
const [unavailable, setUnavailable] = useState(false)
|
const [unavailable, setUnavailable] = useState(false)
|
||||||
|
|||||||
@@ -11,17 +11,12 @@ export default function ReviewText({
|
|||||||
text,
|
text,
|
||||||
spoiler,
|
spoiler,
|
||||||
className,
|
className,
|
||||||
clamp,
|
|
||||||
revealed,
|
|
||||||
}: {
|
}: {
|
||||||
text: string
|
text: string
|
||||||
spoiler?: boolean
|
spoiler?: boolean
|
||||||
className?: string
|
className?: string
|
||||||
clamp?: boolean
|
|
||||||
/** Déjà dévoilé (mon propre avis) : seul le badge « Spoiler » reste */
|
|
||||||
revealed?: boolean
|
|
||||||
}) {
|
}) {
|
||||||
const [shown, setShown] = useState(!spoiler || !!revealed)
|
const [shown, setShown] = useState(!spoiler)
|
||||||
|
|
||||||
if (!shown) {
|
if (!shown) {
|
||||||
return (
|
return (
|
||||||
@@ -51,7 +46,7 @@ export default function ReviewText({
|
|||||||
<EyeOff size={11} aria-hidden="true" /> {t('spoiler.badge')}
|
<EyeOff size={11} aria-hidden="true" /> {t('spoiler.badge')}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
<p className={cx('whitespace-pre-line break-words text-sm leading-relaxed text-ink-2', clamp && 'line-clamp-6')}>{text}</p>
|
<p className="whitespace-pre-line break-words text-sm leading-relaxed text-ink-2">{text}</p>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
import { createContext, useCallback, useContext, useEffect, useMemo, useState, type ReactNode } from 'react'
|
import { createContext, useCallback, useContext, useEffect, useMemo, useState, type ReactNode } from 'react'
|
||||||
import { getFollowRequests, getMyProfile, type Profile, type ProfileCard } from '../../lib/cloud/social'
|
import { getFollowRequests, getMyProfile, type Profile, type ProfileCard } from '../../lib/cloud/social'
|
||||||
import { unreadCount } from '../../lib/cloud/notifications'
|
|
||||||
import { useMedia } from '../../store'
|
import { useMedia } from '../../store'
|
||||||
import type { MediaItem } from '../../types'
|
import type { MediaItem } from '../../types'
|
||||||
import EditProfile from './EditProfile'
|
import EditProfile from './EditProfile'
|
||||||
@@ -9,10 +8,8 @@ import ItemPeek, { type PeekOwner } from './ItemPeek'
|
|||||||
import PeopleSearch from './PeopleSearch'
|
import PeopleSearch from './PeopleSearch'
|
||||||
import ProfileView from './ProfileView'
|
import ProfileView from './ProfileView'
|
||||||
import TitleReviews from './TitleReviews'
|
import TitleReviews from './TitleReviews'
|
||||||
import Notifications from './Notifications'
|
|
||||||
import { useOnResume } from '../../lib/onResume'
|
import { useOnResume } from '../../lib/onResume'
|
||||||
import WelcomeProfile, { RANDOM_USERNAME } from './WelcomeProfile'
|
import WelcomeProfile, { RANDOM_USERNAME } from './WelcomeProfile'
|
||||||
import CommentsSheet from './CommentsSheet'
|
|
||||||
import { InvitePeople, SharedListSheet } from './SharedLists'
|
import { InvitePeople, SharedListSheet } from './SharedLists'
|
||||||
import { getAniListById, type SearchResult } from '../../lib/catalogApi'
|
import { getAniListById, type SearchResult } from '../../lib/catalogApi'
|
||||||
import { TYPE_BY_VALUE } from '../../lib/constants'
|
import { TYPE_BY_VALUE } from '../../lib/constants'
|
||||||
@@ -30,15 +27,8 @@ interface SocialApi {
|
|||||||
openFollowList: (profile: Profile, kind: 'followers' | 'following') => void
|
openFollowList: (profile: Profile, kind: 'followers' | 'following') => void
|
||||||
/** Tous les avis sur un titre (amis / autres) */
|
/** Tous les avis sur un titre (amis / autres) */
|
||||||
openReviews: (externalId: string, title: string) => void
|
openReviews: (externalId: string, title: string) => void
|
||||||
/** Panneau des notifications */
|
|
||||||
openNotifications: () => void
|
|
||||||
/** Notifications non lues */
|
|
||||||
unread: number
|
|
||||||
peek: (item: MediaItem, owner?: PeekOwner) => void
|
|
||||||
/** Ouvre la fiche si elle est à moi, sinon l'aperçu */
|
/** Ouvre la fiche si elle est à moi, sinon l'aperçu */
|
||||||
openItem: (item: MediaItem, owner?: PeekOwner) => void
|
openItem: (item: MediaItem, owner?: PeekOwner) => void
|
||||||
/** Fil de commentaires d'un avis, en plein écran (depuis une notification) */
|
|
||||||
openComments: (authorId: string, itemId: string, title: string) => void
|
|
||||||
/** Liste partagée */
|
/** Liste partagée */
|
||||||
openSharedList: (id: string) => void
|
openSharedList: (id: string) => void
|
||||||
/** Inviter des membres dans une liste partagée */
|
/** Inviter des membres dans une liste partagée */
|
||||||
@@ -60,11 +50,7 @@ const SocialContext = createContext<SocialApi>({
|
|||||||
openEdit: () => {},
|
openEdit: () => {},
|
||||||
openFollowList: () => {},
|
openFollowList: () => {},
|
||||||
openReviews: () => {},
|
openReviews: () => {},
|
||||||
openNotifications: () => {},
|
|
||||||
unread: 0,
|
|
||||||
peek: () => {},
|
|
||||||
openItem: () => {},
|
openItem: () => {},
|
||||||
openComments: () => {},
|
|
||||||
openSharedList: () => {},
|
openSharedList: () => {},
|
||||||
openInvite: () => {},
|
openInvite: () => {},
|
||||||
openTitle: () => {},
|
openTitle: () => {},
|
||||||
@@ -74,14 +60,14 @@ const SocialContext = createContext<SocialApi>({
|
|||||||
|
|
||||||
export const useSocial = () => useContext(SocialContext)
|
export const useSocial = () => useContext(SocialContext)
|
||||||
|
|
||||||
|
let overlayUid = 0
|
||||||
|
|
||||||
type Overlay =
|
type Overlay =
|
||||||
| { kind: 'profile'; username: string }
|
| { kind: 'profile'; username: string }
|
||||||
| { kind: 'search' }
|
| { kind: 'search' }
|
||||||
| { kind: 'edit' }
|
| { kind: 'edit' }
|
||||||
| { kind: 'follows'; profile: Profile; list: 'followers' | 'following' }
|
| { kind: 'follows'; profile: Profile; list: 'followers' | 'following' }
|
||||||
| { kind: 'reviews'; externalId: string; title: string }
|
| { kind: 'reviews'; externalId: string; title: string }
|
||||||
| { kind: 'notifications' }
|
|
||||||
| { kind: 'comments'; authorId: string; itemId: string; title: string }
|
|
||||||
| { kind: 'sharedList'; id: string }
|
| { kind: 'sharedList'; id: string }
|
||||||
| { kind: 'invite'; listId: string; listName: string }
|
| { kind: 'invite'; listId: string; listName: string }
|
||||||
|
|
||||||
@@ -100,8 +86,7 @@ export function SocialProvider({
|
|||||||
const enabled = !!account
|
const enabled = !!account
|
||||||
const [me, setMe] = useState<Profile | null>(null)
|
const [me, setMe] = useState<Profile | null>(null)
|
||||||
const [requests, setRequests] = useState<ProfileCard[]>([])
|
const [requests, setRequests] = useState<ProfileCard[]>([])
|
||||||
const [unread, setUnread] = useState(0)
|
const [stack, setStack] = useState<(Overlay & { uid: number })[]>([])
|
||||||
const [stack, setStack] = useState<Overlay[]>([])
|
|
||||||
const [peeked, setPeeked] = useState<{ item: MediaItem; owner?: PeekOwner }>()
|
const [peeked, setPeeked] = useState<{ item: MediaItem; owner?: PeekOwner }>()
|
||||||
const [sharedTick, setSharedTick] = useState(0)
|
const [sharedTick, setSharedTick] = useState(0)
|
||||||
const bumpShared = useCallback(() => setSharedTick((n) => n + 1), [])
|
const bumpShared = useCallback(() => setSharedTick((n) => n + 1), [])
|
||||||
@@ -125,10 +110,9 @@ export function SocialProvider({
|
|||||||
const refresh = useCallback(async () => {
|
const refresh = useCallback(async () => {
|
||||||
if (!enabled || !navigator.onLine) return
|
if (!enabled || !navigator.onLine) return
|
||||||
try {
|
try {
|
||||||
const [p, r, u] = await Promise.all([getMyProfile(), getFollowRequests(), unreadCount()])
|
const [p, r] = await Promise.all([getMyProfile(), getFollowRequests()])
|
||||||
setMe(p)
|
setMe(p)
|
||||||
setRequests(r)
|
setRequests(r)
|
||||||
setUnread(u)
|
|
||||||
} catch {
|
} catch {
|
||||||
/* hors-ligne / serveur pas encore à jour : le reste de l'app fonctionne */
|
/* hors-ligne / serveur pas encore à jour : le reste de l'app fonctionne */
|
||||||
}
|
}
|
||||||
@@ -140,8 +124,9 @@ export function SocialProvider({
|
|||||||
// Nouvelles demandes d'abonnement, compteurs… mis à jour au retour sur l'app
|
// Nouvelles demandes d'abonnement, compteurs… mis à jour au retour sur l'app
|
||||||
useOnResume(() => void refresh(), enabled)
|
useOnResume(() => void refresh(), enabled)
|
||||||
|
|
||||||
const push = useCallback((o: Overlay) => setStack((s) => [...s.slice(-8), o]), [])
|
// Clé stable par écran (et non sa place dans la pile, qui change quand la pile est écourtée)
|
||||||
const pop = useCallback(() => setStack((s) => s.slice(0, -1)), [])
|
const push = useCallback((o: Overlay) => setStack((s) => [...s.slice(-8), { ...o, uid: ++overlayUid }]), [])
|
||||||
|
const close = useCallback((uid: number) => setStack((s) => s.filter((x) => x.uid !== uid)), [])
|
||||||
|
|
||||||
// Lien partagé « #/u/pseudo »
|
// Lien partagé « #/u/pseudo »
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
@@ -202,67 +187,35 @@ export function SocialProvider({
|
|||||||
openEdit: () => push({ kind: 'edit' }),
|
openEdit: () => push({ kind: 'edit' }),
|
||||||
openFollowList: (profile, list) => push({ kind: 'follows', profile, list }),
|
openFollowList: (profile, list) => push({ kind: 'follows', profile, list }),
|
||||||
openReviews: (externalId, title) => push({ kind: 'reviews', externalId, title }),
|
openReviews: (externalId, title) => push({ kind: 'reviews', externalId, title }),
|
||||||
openNotifications: () => {
|
|
||||||
// La liste se marque lue elle-même, après chargement (sinon les « non lu » n'étaient jamais visibles)
|
|
||||||
setUnread(0)
|
|
||||||
push({ kind: 'notifications' })
|
|
||||||
},
|
|
||||||
unread,
|
|
||||||
peek: (item, owner) => setPeeked({ item, owner }),
|
|
||||||
openItem,
|
openItem,
|
||||||
openComments: (authorId, itemId, title) => push({ kind: 'comments', authorId, itemId, title }),
|
|
||||||
openSharedList: (id) => push({ kind: 'sharedList', id }),
|
openSharedList: (id) => push({ kind: 'sharedList', id }),
|
||||||
openInvite: (listId, listName) => push({ kind: 'invite', listId, listName }),
|
openInvite: (listId, listName) => push({ kind: 'invite', listId, listName }),
|
||||||
openTitle: (s) => void openTitle(s),
|
openTitle: (s) => void openTitle(s),
|
||||||
sharedTick,
|
sharedTick,
|
||||||
bumpShared,
|
bumpShared,
|
||||||
}),
|
}),
|
||||||
[enabled, me, requests, unread, refresh, push, openItem, openTitle, sharedTick, bumpShared],
|
[enabled, me, requests, refresh, push, openItem, openTitle, sharedTick, bumpShared],
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SocialContext.Provider value={api}>
|
<SocialContext.Provider value={api}>
|
||||||
{/* Les écrans sociaux sont placés avant l'app : une fiche ouverte depuis un profil passe au-dessus */}
|
{/* Les écrans sociaux sont placés avant l'app : une fiche ouverte depuis un profil passe au-dessus */}
|
||||||
{enabled &&
|
{enabled &&
|
||||||
stack.map((o, k) =>
|
stack.map((o) =>
|
||||||
o.kind === 'profile' ? (
|
o.kind === 'profile' ? (
|
||||||
<ProfileView key={k} username={o.username} onClose={pop} />
|
<ProfileView key={o.uid} username={o.username} onClose={() => close(o.uid)} />
|
||||||
) : o.kind === 'search' ? (
|
) : o.kind === 'search' ? (
|
||||||
<PeopleSearch key={k} onClose={pop} />
|
<PeopleSearch key={o.uid} onClose={() => close(o.uid)} />
|
||||||
) : o.kind === 'edit' ? (
|
) : o.kind === 'edit' ? (
|
||||||
<EditProfile key={k} onClose={pop} />
|
<EditProfile key={o.uid} onClose={() => close(o.uid)} />
|
||||||
) : o.kind === 'follows' ? (
|
) : o.kind === 'follows' ? (
|
||||||
<FollowList key={k} profile={o.profile} initial={o.list} onClose={pop} />
|
<FollowList key={o.uid} profile={o.profile} initial={o.list} onClose={() => close(o.uid)} />
|
||||||
) : o.kind === 'reviews' ? (
|
) : o.kind === 'reviews' ? (
|
||||||
<TitleReviews key={k} externalId={o.externalId} title={o.title} onClose={pop} onOpenProfile={(u) => push({ kind: 'profile', username: u })} />
|
<TitleReviews key={o.uid} externalId={o.externalId} title={o.title} onClose={() => close(o.uid)} onOpenProfile={(u) => push({ kind: 'profile', username: u })} />
|
||||||
) : o.kind === 'comments' ? (
|
|
||||||
<CommentsSheet key={k} authorId={o.authorId} itemId={o.itemId} title={o.title} onClose={pop} />
|
|
||||||
) : o.kind === 'sharedList' ? (
|
) : o.kind === 'sharedList' ? (
|
||||||
<SharedListSheet key={k} id={o.id} onClose={pop} />
|
<SharedListSheet key={o.uid} id={o.id} onClose={() => close(o.uid)} />
|
||||||
) : o.kind === 'invite' ? (
|
|
||||||
<InvitePeople key={k} listId={o.listId} listName={o.listName} onClose={pop} />
|
|
||||||
) : (
|
) : (
|
||||||
<Notifications
|
<InvitePeople key={o.uid} listId={o.listId} listName={o.listName} onClose={() => close(o.uid)} />
|
||||||
key={k}
|
|
||||||
onClose={pop}
|
|
||||||
onOpenProfile={(u) => push({ kind: 'profile', username: u })}
|
|
||||||
onOpenItem={(id) => {
|
|
||||||
const it = items.find((i) => i.id === id)
|
|
||||||
if (it) {
|
|
||||||
pop()
|
|
||||||
onOpenOwnItem(it)
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
onOpenComments={(itemId, title) => {
|
|
||||||
if (!me) return
|
|
||||||
pop()
|
|
||||||
push({ kind: 'comments', authorId: me.id, itemId, title })
|
|
||||||
}}
|
|
||||||
onOpenSharedList={(id) => {
|
|
||||||
pop()
|
|
||||||
push({ kind: 'sharedList', id })
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
{children}
|
{children}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
import { Loader2, Star } from 'lucide-react'
|
import { Loader2, Star } from 'lucide-react'
|
||||||
import { useEffect, useState } from 'react'
|
import { useEffect, useState } from 'react'
|
||||||
import { t } from '../../i18n'
|
import { t } from '../../i18n'
|
||||||
|
import { getSession } from '../../lib/cloud/auth'
|
||||||
import { useBlocked } from '../../lib/cloud/moderation'
|
import { useBlocked } from '../../lib/cloud/moderation'
|
||||||
import { titleReviews, type TitleReview, type TitleReviews as TitleReviewsData } from '../../lib/cloud/reviews'
|
import { titleReviews, type TitleReview, type TitleReviews as TitleReviewsData } from '../../lib/cloud/reviews'
|
||||||
import { formatRating } from '../../lib/utils'
|
import { formatRating } from '../../lib/utils'
|
||||||
@@ -71,6 +72,8 @@ function ReviewColumn({ heading, empty, list, onOpenProfile }: { heading: string
|
|||||||
|
|
||||||
function ReviewCard({ r, onOpenProfile }: { r: TitleReview; onOpenProfile: (username: string) => void }) {
|
function ReviewCard({ r, onOpenProfile }: { r: TitleReview; onOpenProfile: (username: string) => void }) {
|
||||||
const { settings } = useMedia()
|
const { settings } = useMedia()
|
||||||
|
// Mon propre avis : ni signalement ni réaction (seuls les commentaires restent)
|
||||||
|
const mine = r.user_id === getSession()?.user.id
|
||||||
return (
|
return (
|
||||||
<article className="card p-3.5">
|
<article className="card p-3.5">
|
||||||
<div className="flex items-center gap-2.5">
|
<div className="flex items-center gap-2.5">
|
||||||
@@ -85,12 +88,12 @@ function ReviewCard({ r, onOpenProfile }: { r: TitleReview; onOpenProfile: (user
|
|||||||
{formatRating(r.rating, settings.ratingScale)}
|
{formatRating(r.rating, settings.ratingScale)}
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
<ReportButton target={{ type: 'review', id: r.item_id, userId: r.user_id }} className="-me-1.5" size={16} />
|
{!mine && <ReportButton target={{ type: 'review', id: r.item_id, userId: r.user_id }} className="-me-1.5" size={16} />}
|
||||||
</div>
|
</div>
|
||||||
{r.notes && <ReviewText text={r.notes} spoiler={r.spoiler} />}
|
{r.notes && <ReviewText text={r.notes} spoiler={r.spoiler} />}
|
||||||
<div className="mt-3">
|
<div className="mt-3">
|
||||||
<ReviewComments authorId={r.user_id} itemId={r.item_id} count={r.comments} hidden={r.comments === null}>
|
<ReviewComments authorId={r.user_id} itemId={r.item_id} count={r.comments} hidden={r.comments === null}>
|
||||||
<Reactions authorId={r.user_id} itemId={r.item_id} reactions={r.reactions} mine={r.mine} />
|
{!mine && <Reactions authorId={r.user_id} itemId={r.item_id} reactions={r.reactions} mine={r.mine} />}
|
||||||
</ReviewComments>
|
</ReviewComments>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -99,6 +99,13 @@ function SeasonRow({
|
|||||||
if (highlight) ref.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
if (highlight) ref.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
||||||
}, [highlight])
|
}, [highlight])
|
||||||
|
|
||||||
|
// À l'ouverture de l'éditeur : on repart de l'avis enregistré (il a pu changer depuis, ex. synchro)
|
||||||
|
const openEditor = () => {
|
||||||
|
setDraft(value?.notes ?? '')
|
||||||
|
setSpoiler(!!value?.spoiler)
|
||||||
|
setWriting(true)
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li ref={ref} id={`season-${n}`} className={cx('card p-3.5 transition-shadow', highlight && 'ring-2 ring-accent')}>
|
<li ref={ref} id={`season-${n}`} className={cx('card p-3.5 transition-shadow', highlight && 'ring-2 ring-accent')}>
|
||||||
<div className="flex items-center justify-between gap-3">
|
<div className="flex items-center justify-between gap-3">
|
||||||
@@ -164,7 +171,7 @@ function SeasonRow({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
) : value?.notes ? (
|
) : value?.notes ? (
|
||||||
<button onClick={() => setWriting(true)} className="mt-3 block w-full text-start">
|
<button onClick={openEditor} className="mt-3 block w-full text-start">
|
||||||
<span className="flex items-center gap-1.5 text-xs text-ink-3">
|
<span className="flex items-center gap-1.5 text-xs text-ink-3">
|
||||||
{t('form.review')}
|
{t('form.review')}
|
||||||
{value.spoiler && <span className="rounded-full border border-accent/50 px-1.5 py-px text-[10px] text-accent">{t('spoiler.badge')}</span>}
|
{value.spoiler && <span className="rounded-full border border-accent/50 px-1.5 py-px text-[10px] text-accent">{t('spoiler.badge')}</span>}
|
||||||
@@ -173,7 +180,7 @@ function SeasonRow({
|
|||||||
<p className="mt-1 line-clamp-4 whitespace-pre-line text-sm leading-relaxed">{value.notes}</p>
|
<p className="mt-1 line-clamp-4 whitespace-pre-line text-sm leading-relaxed">{value.notes}</p>
|
||||||
</button>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
<button onClick={() => setWriting(true)} className="mt-2.5 inline-flex items-center gap-1.5 text-xs font-medium text-ink-2">
|
<button onClick={openEditor} className="mt-2.5 inline-flex items-center gap-1.5 text-xs font-medium text-ink-2">
|
||||||
<Pencil size={12} /> {t('seasons.writeReview')}
|
<Pencil size={12} /> {t('seasons.writeReview')}
|
||||||
</button>
|
</button>
|
||||||
))}
|
))}
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
// La fiche suit la version à jour de la bibliothèque (ou celle créée depuis cette fiche)
|
// La fiche suit la version à jour de la bibliothèque (ou celle créée depuis cette fiche)
|
||||||
const [itemId, setItemId] = useState<string | undefined>(() => initial?.id ?? (seed && items.find((i) => i.externalId === seed.externalId)?.id))
|
const [itemId, setItemId] = useState<string | undefined>(() => initial?.id ?? (seed && items.find((i) => i.externalId === seed.externalId)?.id))
|
||||||
const item = useMemo(() => (itemId ? items.find((i) => i.id === itemId) : undefined), [items, itemId])
|
const item = useMemo(() => (itemId ? items.find((i) => i.id === itemId) : undefined), [items, itemId])
|
||||||
|
// Étiquettes proposées : recalculées seulement quand la bibliothèque change
|
||||||
|
const tagSuggestions = useMemo(() => allTags(items), [items])
|
||||||
|
|
||||||
// Infos du catalogue pour un titre pas encore ajouté
|
// Infos du catalogue pour un titre pas encore ajouté
|
||||||
const [meta, setMeta] = useState<Partial<MediaInput> | undefined>(() => (seed?.source === 'anilist' ? { ...seed.prefill } : undefined))
|
const [meta, setMeta] = useState<Partial<MediaInput> | undefined>(() => (seed?.source === 'anilist' ? { ...seed.prefill } : undefined))
|
||||||
@@ -201,9 +203,14 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
}
|
}
|
||||||
// Changement de statut d'un titre déjà suivi : « Annuler » remet la fiche telle quelle (dates, épisodes…)
|
// Changement de statut d'un titre déjà suivi : « Annuler » remet la fiche telle quelle (dates, épisodes…)
|
||||||
const before = item
|
const before = item
|
||||||
void save(patch).then(() => {
|
void save(patch)
|
||||||
if (before) actions.offerUndo(t('toast.status', { title: before.title, status: STATUS_BY_VALUE[s].label }), [before])
|
.then(() => {
|
||||||
})
|
if (before) actions.offerUndo(t('toast.status', { title: before.title, status: STATUS_BY_VALUE[s].label }), [before])
|
||||||
|
})
|
||||||
|
.catch((e) => {
|
||||||
|
// Mode découverte : la demande de compte est déjà ouverte
|
||||||
|
if (!(e instanceof GuestError)) setToast((e as Error).message)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -287,6 +294,8 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
}
|
}
|
||||||
const blob = await renderItemCard(item, settings.ratingScale, credits)
|
const blob = await renderItemCard(item, settings.ratingScale, credits)
|
||||||
setPreview({ blob, filename: `kino-${slug(item.title)}.png` })
|
setPreview({ blob, filename: `kino-${slug(item.title)}.png` })
|
||||||
|
} catch {
|
||||||
|
setToast(t('share.err.create'))
|
||||||
} finally {
|
} finally {
|
||||||
setSharing(false)
|
setSharing(false)
|
||||||
}
|
}
|
||||||
@@ -560,7 +569,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
)}
|
)}
|
||||||
</div>
|
</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-left text-sm text-ink-2">
|
<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">
|
||||||
<Pencil size={16} className="text-accent" /> {t('title.writeReview')}
|
<Pencil size={16} className="text-accent" /> {t('title.writeReview')}
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
@@ -621,7 +630,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Mon suivi : dates, plateforme, listes, revisionnages */}
|
{/* Mon suivi : dates, plateforme, listes, revisionnages */}
|
||||||
{item && <Tracking item={item} lists={lists} tagSuggestions={allTags(items)} onChange={changeTracking} />}
|
{item && <Tracking item={item} lists={lists} tagSuggestions={tagSuggestions} onChange={changeTracking} />}
|
||||||
|
|
||||||
{/* Listes partagées avec d'autres membres (titre de ma bibliothèque ou pas encore ajouté) */}
|
{/* Listes partagées avec d'autres membres (titre de ma bibliothèque ou pas encore ajouté) */}
|
||||||
{externalId && social.enabled && (
|
{externalId && social.enabled && (
|
||||||
@@ -701,8 +710,8 @@ function MoreMenu({ onClose, children }: { onClose: () => void; children: ReactN
|
|||||||
useEscape(onClose)
|
useEscape(onClose)
|
||||||
useBackToClose(onClose)
|
useBackToClose(onClose)
|
||||||
return (
|
return (
|
||||||
<div className="fixed inset-0 z-[60] flex items-end justify-center bg-black/70 sm:items-center" onClick={onClose}>
|
<div className="fixed inset-0 z-[60] flex items-end justify-center bg-scrim sm:items-center" onClick={onClose}>
|
||||||
<div role="menu" className="safe-bottom w-full max-w-md rounded-t-3xl border border-line-strong bg-surface p-3 sm:rounded-3xl" onClick={(e) => e.stopPropagation()}>
|
<div className="safe-bottom w-full max-w-md rounded-t-3xl border border-line-strong bg-surface p-3 sm:rounded-3xl" onClick={(e) => e.stopPropagation()}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -711,7 +720,7 @@ function MoreMenu({ onClose, children }: { onClose: () => void; children: ReactN
|
|||||||
|
|
||||||
function MenuButton({ icon, children, onClick, danger }: { icon: ReactNode; children: ReactNode; onClick: () => void; danger?: boolean }) {
|
function MenuButton({ icon, children, onClick, danger }: { icon: ReactNode; children: ReactNode; onClick: () => void; danger?: boolean }) {
|
||||||
return (
|
return (
|
||||||
<button onClick={onClick} className={cx('flex w-full items-center gap-3 rounded-xl px-3 py-3.5 text-left text-[15px] active:bg-surface-2', danger ? 'text-accent' : 'text-ink')}>
|
<button onClick={onClick} className={cx('flex w-full items-center gap-3 rounded-xl px-3 py-3.5 text-start text-[15px] active:bg-surface-2', danger ? 'text-accent' : 'text-ink')}>
|
||||||
{icon}
|
{icon}
|
||||||
{children}
|
{children}
|
||||||
</button>
|
</button>
|
||||||
@@ -832,7 +841,7 @@ function Tracking({ item, lists, tagSuggestions, onChange }: { item: MediaItem;
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="mx-4 mt-8 border-t border-line pt-5">
|
<section className="mx-4 mt-8 border-t border-line pt-5">
|
||||||
<button onClick={() => setOpen((v) => !v)} aria-expanded={open} className="flex w-full items-center justify-between text-left">
|
<button onClick={() => setOpen((v) => !v)} aria-expanded={open} className="flex w-full items-center justify-between text-start">
|
||||||
<span>
|
<span>
|
||||||
<span className="eyebrow block text-ink-2">{t('title.myTracking')}</span>
|
<span className="eyebrow block text-ink-2">{t('title.myTracking')}</span>
|
||||||
<span className="mt-1 block text-xs text-ink-3">{summary.length ? summary.join(' · ') : t('title.trackingHint')}</span>
|
<span className="mt-1 block text-xs text-ink-3">{summary.length ? summary.join(' · ') : t('title.trackingHint')}</span>
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import { t } from '../i18n'
|
|
||||||
import type { ReactNode } from 'react'
|
import type { ReactNode } from 'react'
|
||||||
import { cx } from '../lib/utils'
|
import { cx } from '../lib/utils'
|
||||||
|
|
||||||
@@ -41,7 +40,7 @@ export function SectionTitle({ children, action }: { children: ReactNode; action
|
|||||||
export function LinkArrow({ onClick, children }: { onClick: () => void; children: ReactNode }) {
|
export function LinkArrow({ onClick, children }: { onClick: () => void; children: ReactNode }) {
|
||||||
return (
|
return (
|
||||||
<button onClick={onClick} className="shrink-0 text-xs font-medium text-ink-3 transition-colors hover:text-ink">
|
<button onClick={onClick} className="shrink-0 text-xs font-medium text-ink-3 transition-colors hover:text-ink">
|
||||||
{children} <span className="text-accent">→</span>
|
{children} <span className="inline-block text-accent rtl:-scale-x-100">→</span>
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -233,7 +233,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ من 5',
|
'settings.scale5': '★ من 5',
|
||||||
'settings.scale10': 'من 10',
|
'settings.scale10': 'من 10',
|
||||||
'settings.ratingHint': 'أنصاف نجوم من 5، أو خطوات 0.5 من 10. تُحوَّل التقييمات الحالية تلقائيًا.',
|
'settings.ratingHint': 'أنصاف نجوم من 5، أو خطوات 0.5 من 10. تُحوَّل التقييمات الحالية تلقائيًا.',
|
||||||
'settings.theme': 'السمة',
|
|
||||||
'settings.appearance': 'المظهر',
|
'settings.appearance': 'المظهر',
|
||||||
'settings.appearanceHint': '«تلقائي» يتبع متصفحك (فاتح أو داكن).',
|
'settings.appearanceHint': '«تلقائي» يتبع متصفحك (فاتح أو داكن).',
|
||||||
'theme.modeAuto': 'تلقائي',
|
'theme.modeAuto': 'تلقائي',
|
||||||
@@ -245,14 +244,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'تثبيت التطبيق',
|
'settings.installApp': 'تثبيت التطبيق',
|
||||||
'settings.installHint': 'أضِف Kino إلى شاشتك الرئيسية أو سطح المكتب.',
|
'settings.installHint': 'أضِف Kino إلى شاشتك الرئيسية أو سطح المكتب.',
|
||||||
'settings.installed': 'تم تثبيت التطبيق',
|
'settings.installed': 'تم تثبيت التطبيق',
|
||||||
'settings.notifs': 'الإشعارات',
|
|
||||||
'settings.notifsHint': 'اختر ما يُفعّل الجرس.',
|
|
||||||
'settings.notifEpisodes': 'حلقات جديدة',
|
|
||||||
'settings.notifFollows': 'متابعون جدد',
|
|
||||||
'settings.notifAccepted': 'طلبات مقبولة',
|
|
||||||
'settings.notifReactions': 'تفاعلات على تقييماتي',
|
|
||||||
'notif.new_episode': 'حلقة جديدة من {title}',
|
|
||||||
'notif.new_season': 'موسم جديد من {title}',
|
|
||||||
'reviews.title': 'التقييمات',
|
'reviews.title': 'التقييمات',
|
||||||
'reviews.friends': 'أصدقاؤك',
|
'reviews.friends': 'أصدقاؤك',
|
||||||
'reviews.others': 'أعضاء آخرون',
|
'reviews.others': 'أعضاء آخرون',
|
||||||
@@ -260,17 +251,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'لا توجد تقييمات أخرى',
|
'reviews.noneOthers': 'لا توجد تقييمات أخرى',
|
||||||
'reviews.none': 'لا توجد تقييمات بعد',
|
'reviews.none': 'لا توجد تقييمات بعد',
|
||||||
'reviews.seeAll': 'عرض كل التقييمات',
|
'reviews.seeAll': 'عرض كل التقييمات',
|
||||||
'reviews.react': 'تفاعل',
|
|
||||||
'notif.title': 'الإشعارات',
|
|
||||||
'notif.empty': 'لا إشعارات',
|
|
||||||
'notif.someone': 'شخص ما',
|
'notif.someone': 'شخص ما',
|
||||||
'notif.follow_request': 'يريد متابعتك',
|
|
||||||
'notif.follow_accepted': 'قبل طلبك',
|
|
||||||
'notif.new_follower': 'بدأ بمتابعتك',
|
|
||||||
'notif.reaction': 'تفاعل مع تقييمك',
|
|
||||||
'notif.on': 'على {title}',
|
|
||||||
'home.notifications': 'الإشعارات',
|
|
||||||
'home.notificationsN': '{count} إشعارات',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -294,8 +275,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -305,7 +284,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -313,8 +291,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'تثبيت Kino',
|
'install.title': 'تثبيت Kino',
|
||||||
'install.ios': 'افتح Kino في Safari.\nاضغط زر المشاركة (المربع مع سهم للأعلى).\nاختر «إضافة إلى الشاشة الرئيسية» ثم «إضافة».',
|
'install.ios': 'افتح Kino في Safari.\nاضغط زر المشاركة (المربع مع سهم للأعلى).\nاختر «إضافة إلى الشاشة الرئيسية» ثم «إضافة».',
|
||||||
@@ -432,10 +408,6 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'محاولات كثيرة جدًا، أعد المحاولة بعد دقيقة.',
|
'account.err.deleteRate': 'محاولات كثيرة جدًا، أعد المحاولة بعد دقيقة.',
|
||||||
'account.err.delete': 'فشل الحذف. أعد المحاولة لاحقًا.',
|
'account.err.delete': 'فشل الحذف. أعد المحاولة لاحقًا.',
|
||||||
'account.title': 'حسابي',
|
'account.title': 'حسابي',
|
||||||
'account.syncing': 'جارٍ المزامنة…',
|
|
||||||
'account.offline': 'غير متصل — كل شيء محفوظ على هذا الجهاز',
|
|
||||||
'account.syncError': 'تتعذّر المزامنة حاليًا',
|
|
||||||
'account.synced': 'تمت المزامنة {when}',
|
|
||||||
'account.passwordChanged': 'تم تغيير كلمة المرور.',
|
'account.passwordChanged': 'تم تغيير كلمة المرور.',
|
||||||
'account.imported_one': 'تمت إضافة عنوان واحد إلى حسابك.',
|
'account.imported_one': 'تمت إضافة عنوان واحد إلى حسابك.',
|
||||||
'account.imported_other': 'تمت إضافة {count} عنوان إلى حسابك.',
|
'account.imported_other': 'تمت إضافة {count} عنوان إلى حسابك.',
|
||||||
@@ -443,12 +415,6 @@ const dict: Translations = {
|
|||||||
'account.imported_few': 'تمت إضافة {count} عناوين إلى حسابك.',
|
'account.imported_few': 'تمت إضافة {count} عناوين إلى حسابك.',
|
||||||
'account.imported_many': 'تمت إضافة {count} عنوانًا إلى حسابك.',
|
'account.imported_many': 'تمت إضافة {count} عنوانًا إلى حسابك.',
|
||||||
'account.importFailed': 'فشل الاستيراد.',
|
'account.importFailed': 'فشل الاستيراد.',
|
||||||
'account.pending_one': '{count} قيد الانتظار',
|
|
||||||
'account.pending_other': '{count} قيد الانتظار',
|
|
||||||
'account.pending_two': '{count} قيد الانتظار',
|
|
||||||
'account.pending_few': '{count} قيد الانتظار',
|
|
||||||
'account.pending_many': '{count} قيد الانتظار',
|
|
||||||
'account.syncNow': 'مزامنة الآن',
|
|
||||||
'account.newPasswordPh': 'كلمة مرور جديدة ({n} أحرف على الأقل)',
|
'account.newPasswordPh': 'كلمة مرور جديدة ({n} أحرف على الأقل)',
|
||||||
'account.changePassword': 'تغيير كلمة المرور',
|
'account.changePassword': 'تغيير كلمة المرور',
|
||||||
'account.logout': 'تسجيل الخروج',
|
'account.logout': 'تسجيل الخروج',
|
||||||
@@ -475,11 +441,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'يحتوي هذا الجهاز على {titles} أُنشئت قبل حسابك. هل تريد إضافتها إلى حسابك؟',
|
'account.deviceData': 'يحتوي هذا الجهاز على {titles} أُنشئت قبل حسابك. هل تريد إضافتها إلى حسابك؟',
|
||||||
'account.deviceDataWithLists': 'يحتوي هذا الجهاز على {titles} و{lists} أُنشئت قبل حسابك. هل تريد إضافتها إلى حسابك؟',
|
'account.deviceDataWithLists': 'يحتوي هذا الجهاز على {titles} و{lists} أُنشئت قبل حسابك. هل تريد إضافتها إلى حسابك؟',
|
||||||
|
|
||||||
'time.never': 'أبدًا',
|
|
||||||
'time.justNow': 'الآن',
|
'time.justNow': 'الآن',
|
||||||
'time.minutesAgo': 'منذ {n} د',
|
'time.minutesAgo': 'منذ {n} د',
|
||||||
'time.hoursAgo': 'منذ {n} س',
|
'time.hoursAgo': 'منذ {n} س',
|
||||||
'time.onDate': 'في {date}',
|
|
||||||
'time.today': 'اليوم',
|
'time.today': 'اليوم',
|
||||||
'time.tomorrow': 'غدًا',
|
'time.tomorrow': 'غدًا',
|
||||||
'time.daysAgo': 'منذ {n} ي',
|
'time.daysAgo': 'منذ {n} ي',
|
||||||
@@ -617,10 +581,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'تمت الإضافة',
|
'reco.addedShort': 'تمت الإضافة',
|
||||||
|
|
||||||
'search.offline': 'لا يوجد اتصال بالإنترنت: البحث يتطلب الشبكة.',
|
'search.offline': 'لا يوجد اتصال بالإنترنت: البحث يتطلب الشبكة.',
|
||||||
'search.fillFrom': 'التعبئة من قاعدة بيانات',
|
|
||||||
'search.openSettings': 'فتح الإعدادات',
|
'search.openSettings': 'فتح الإعدادات',
|
||||||
'search.already': 'مُضاف مسبقًا',
|
|
||||||
'search.noResults': 'لا نتائج. يمكنك تعبئة البيانات يدويًا أدناه.',
|
|
||||||
'search.privacy': 'يُرسَل العنوان الذي تبحث عنه فقط إلى {source}. تبقى مكتبتك على هاتفك.',
|
'search.privacy': 'يُرسَل العنوان الذي تبحث عنه فقط إلى {source}. تبقى مكتبتك على هاتفك.',
|
||||||
|
|
||||||
'catalog.sortRecent': 'المعدّلة مؤخرًا',
|
'catalog.sortRecent': 'المعدّلة مؤخرًا',
|
||||||
@@ -653,53 +614,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'أضف أول عنوان بالزر +.',
|
'catalog.nothingYetHint': 'أضف أول عنوان بالزر +.',
|
||||||
'catalog.clearFilters': 'مسح عوامل التصفية',
|
'catalog.clearFilters': 'مسح عوامل التصفية',
|
||||||
|
|
||||||
'public.agree': 'متوافق تمامًا مع رأي الجمهور',
|
|
||||||
'public.more': '+{gap} أعلى من الجمهور',
|
|
||||||
'public.less': '−{gap} أقل من الجمهور',
|
|
||||||
'public.label': 'الجمهور',
|
|
||||||
'public.me': 'أنا',
|
|
||||||
'public.added_one': 'تمت إضافة تقييم واحد للجمهور.',
|
|
||||||
'public.added_other': 'تمت إضافة {count} تقييم للجمهور.',
|
|
||||||
'public.added_two': 'تمت إضافة تقييمين للجمهور.',
|
|
||||||
'public.added_few': 'تمت إضافة {count} تقييمات للجمهور.',
|
|
||||||
'public.added_many': 'تمت إضافة {count} تقييمًا للجمهور.',
|
|
||||||
'public.noneFound': 'لم يُعثر على تقييمات جديدة.',
|
|
||||||
'public.fetch': 'جلب ({n})',
|
|
||||||
'public.title': 'أنا مقابل الجمهور',
|
|
||||||
'public.hintFetch': 'اجلب متوسط تقييم TMDB / AniList لعناوينك المقيّمة لترى أين تختلف عن الجمهور.',
|
|
||||||
'public.hintNone': 'لا تقييمات للجمهور متاحة لعناوينك المقيّمة في هذه الفترة.',
|
|
||||||
'public.hintKey': 'أضف مفتاح TMDB في الإعدادات (أو اربط الأنمي بـ AniList) لتقارن نفسك بالجمهور.',
|
|
||||||
'public.avgGap': 'متوسط الفارق',
|
|
||||||
'public.average': 'ضمن المتوسط',
|
|
||||||
'public.generous': 'أكثر سخاءً من الجمهور',
|
|
||||||
'public.harsh': 'أكثر صرامة من الجمهور',
|
|
||||||
'public.agreeTitle': 'متوافق',
|
|
||||||
'public.within5_one': 'بفارق ½ نجمة، على عنوان واحد',
|
|
||||||
'public.within5_other': 'بفارق ½ نجمة، على {count} عنوان',
|
|
||||||
'public.within5_two': 'بفارق ½ نجمة، على عنوانين',
|
|
||||||
'public.within5_few': 'بفارق ½ نجمة، على {count} عناوين',
|
|
||||||
'public.within5_many': 'بفارق ½ نجمة، على {count} عنوانًا',
|
|
||||||
'public.within10_one': 'بفارق نقطة واحدة، على عنوان واحد',
|
|
||||||
'public.within10_other': 'بفارق نقطة واحدة، على {count} عنوان',
|
|
||||||
'public.within10_two': 'بفارق نقطة واحدة، على عنوانين',
|
|
||||||
'public.within10_few': 'بفارق نقطة واحدة، على {count} عناوين',
|
|
||||||
'public.within10_many': 'بفارق نقطة واحدة، على {count} عنوانًا',
|
|
||||||
'public.lovedPre': 'أحببتها ',
|
|
||||||
'public.lovedAccent': 'أكثر',
|
|
||||||
'public.lovedPost': ' من الجمهور',
|
|
||||||
'public.hatedPre': 'أحببتها ',
|
|
||||||
'public.hatedAccent': 'أقل',
|
|
||||||
'public.hatedPost': ' من الجمهور',
|
|
||||||
'public.allAgree': 'أنت متفق مع الجمهور على كل عناوينك. نادر!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'شاهدته مجددًا؟ سجّل كل إعادة مشاهدة وستظهر في يومياتك.',
|
'form.rewatchHint': 'شاهدته مجددًا؟ سجّل كل إعادة مشاهدة وستظهر في يومياتك.',
|
||||||
'form.editTitle': 'تعديل ',
|
|
||||||
'form.editAccent': 'السجل',
|
|
||||||
'form.newTitle': 'عنوان ',
|
|
||||||
'form.newAccent': 'جديد',
|
|
||||||
'form.filledFrom': 'تمت التعبئة من',
|
|
||||||
'form.canEdit': 'يمكنك تعديل كل شيء',
|
|
||||||
'form.fillFromDb': 'الإكمال من TMDB / AniList',
|
|
||||||
'form.pickPoster': 'اختيار ملصق',
|
'form.pickPoster': 'اختيار ملصق',
|
||||||
'form.removeImage': 'إزالة الصورة',
|
'form.removeImage': 'إزالة الصورة',
|
||||||
'form.title': 'العنوان *',
|
'form.title': 'العنوان *',
|
||||||
@@ -710,10 +626,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'الصنف',
|
'form.type': 'الصنف',
|
||||||
'form.subtype': 'التصنيف الفرعي',
|
'form.subtype': 'التصنيف الفرعي',
|
||||||
'form.subtypePh': 'وثائقي، تلفزيون الواقع…',
|
'form.subtypePh': 'وثائقي، تلفزيون الواقع…',
|
||||||
'form.status': 'الحالة',
|
|
||||||
'form.myRating': 'تقييمي',
|
|
||||||
'form.favorite': 'مفضّل',
|
'form.favorite': 'مفضّل',
|
||||||
'form.criteria': 'معايير تفصيلية (اختياري)',
|
|
||||||
'form.episodes': 'الحلقات',
|
'form.episodes': 'الحلقات',
|
||||||
'form.minusEp': '-1 حلقة',
|
'form.minusEp': '-1 حلقة',
|
||||||
'form.plusEp': '+1 حلقة',
|
'form.plusEp': '+1 حلقة',
|
||||||
@@ -728,8 +641,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'مرات إعادة المشاهدة',
|
'form.rewatches': 'مرات إعادة المشاهدة',
|
||||||
'form.review': 'رأيي',
|
'form.review': 'رأيي',
|
||||||
'form.reviewPh': 'ما رأيي فيه، مشاهد لا تُنسى…',
|
'form.reviewPh': 'ما رأيي فيه، مشاهد لا تُنسى…',
|
||||||
'form.saveChanges': 'حفظ التعديلات',
|
|
||||||
'form.addToLibrary': 'إضافة إلى مكتبتي',
|
|
||||||
'form.shareImage': 'مشاركة كصورة',
|
'form.shareImage': 'مشاركة كصورة',
|
||||||
'form.delete': 'حذف هذا العنوان',
|
'form.delete': 'حذف هذا العنوان',
|
||||||
'form.deleteConfirm': 'سيتم حذف «{title}» نهائيًا.',
|
'form.deleteConfirm': 'سيتم حذف «{title}» نهائيًا.',
|
||||||
@@ -747,14 +658,10 @@ const dict: Translations = {
|
|||||||
'journal.seen_many': '{count} مُشاهَد',
|
'journal.seen_many': '{count} مُشاهَد',
|
||||||
'journal.more': 'عرض الأشهر السابقة',
|
'journal.more': 'عرض الأشهر السابقة',
|
||||||
|
|
||||||
'stats.overview': 'نظرة عامة',
|
|
||||||
'stats.habits': 'العادات',
|
|
||||||
'stats.tastes': 'الأذواق',
|
|
||||||
'stats.pageTitle': 'إحصائيات ',
|
'stats.pageTitle': 'إحصائيات ',
|
||||||
'stats.pageAccent': 'المشاهدة',
|
'stats.pageAccent': 'المشاهدة',
|
||||||
'stats.emptyTitle': 'لا إحصائيات بعد',
|
'stats.emptyTitle': 'لا إحصائيات بعد',
|
||||||
'stats.emptyText': 'ستظهر بمجرد إضافة عناوين.',
|
'stats.emptyText': 'ستظهر بمجرد إضافة عناوين.',
|
||||||
'stats.sinceStart': 'منذ البداية',
|
|
||||||
'stats.subtitle_one': 'عنوان واحد في مكتبتي',
|
'stats.subtitle_one': 'عنوان واحد في مكتبتي',
|
||||||
'stats.subtitle_other': '{count} عنوان في مكتبتي',
|
'stats.subtitle_other': '{count} عنوان في مكتبتي',
|
||||||
'stats.subtitle_two': 'عنوانان في مكتبتي',
|
'stats.subtitle_two': 'عنوانان في مكتبتي',
|
||||||
@@ -765,11 +672,6 @@ const dict: Translations = {
|
|||||||
'stats.subtitleYear_two': 'عنوانان في {year}',
|
'stats.subtitleYear_two': 'عنوانان في {year}',
|
||||||
'stats.subtitleYear_few': '{count} عناوين في {year}',
|
'stats.subtitleYear_few': '{count} عناوين في {year}',
|
||||||
'stats.subtitleYear_many': '{count} عنوانًا في {year}',
|
'stats.subtitleYear_many': '{count} عنوانًا في {year}',
|
||||||
'stats.hours_one': 'ساعة',
|
|
||||||
'stats.hours_other': 'ساعة',
|
|
||||||
'stats.hours_two': 'ساعتان',
|
|
||||||
'stats.hours_few': 'ساعات',
|
|
||||||
'stats.hours_many': 'ساعة',
|
|
||||||
'stats.nonStopPre': 'أي ',
|
'stats.nonStopPre': 'أي ',
|
||||||
'stats.nonStopPost': ' دون توقف',
|
'stats.nonStopPost': ' دون توقف',
|
||||||
'stats.days_one': 'يوم واحد',
|
'stats.days_one': 'يوم واحد',
|
||||||
@@ -788,16 +690,13 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_few': '{count} حلقات',
|
'stats.episodesN_few': '{count} حلقات',
|
||||||
'stats.episodesN_many': '{count} حلقة',
|
'stats.episodesN_many': '{count} حلقة',
|
||||||
'stats.timeByType': 'الوقت حسب الصنف',
|
'stats.timeByType': 'الوقت حسب الصنف',
|
||||||
'stats.noTime': 'لا وقت مسجّل في هذه الفترة بعد.',
|
|
||||||
'stats.avgRating': 'متوسط التقييم',
|
'stats.avgRating': 'متوسط التقييم',
|
||||||
'stats.rated_one': 'عنوان واحد مُقيَّم',
|
'stats.rated_one': 'عنوان واحد مُقيَّم',
|
||||||
'stats.rated_other': '{count} عنوان مُقيَّم',
|
'stats.rated_other': '{count} عنوان مُقيَّم',
|
||||||
'stats.rated_two': 'عنوانان مُقيَّمان',
|
'stats.rated_two': 'عنوانان مُقيَّمان',
|
||||||
'stats.rated_few': '{count} عناوين مُقيَّمة',
|
'stats.rated_few': '{count} عناوين مُقيَّمة',
|
||||||
'stats.rated_many': '{count} عنوانًا مُقيَّمًا',
|
'stats.rated_many': '{count} عنوانًا مُقيَّمًا',
|
||||||
'stats.inYear': 'في {year}',
|
|
||||||
'stats.statuses': 'الحالات',
|
'stats.statuses': 'الحالات',
|
||||||
'stats.hoursTab': 'الساعات',
|
|
||||||
'stats.monthByMonth': 'شهرًا بشهر · {year}',
|
'stats.monthByMonth': 'شهرًا بشهر · {year}',
|
||||||
'stats.last12': 'آخر 12 شهرًا',
|
'stats.last12': 'آخر 12 شهرًا',
|
||||||
'stats.monthFinished_one': 'عنوان واحد مكتمل',
|
'stats.monthFinished_one': 'عنوان واحد مكتمل',
|
||||||
@@ -809,7 +708,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'الأرقام القياسية',
|
'stats.records': 'الأرقام القياسية',
|
||||||
'stats.marathon': 'أطول ماراثون',
|
'stats.marathon': 'أطول ماراثون',
|
||||||
'stats.longestFilm': 'أطول فيلم',
|
'stats.longestFilm': 'أطول فيلم',
|
||||||
'stats.noRecords': 'لا أرقام قياسية في هذه الفترة بعد.',
|
|
||||||
'stats.platforms': 'المنصات',
|
'stats.platforms': 'المنصات',
|
||||||
'stats.bestRated': 'الأعلى تقييمًا عندي',
|
'stats.bestRated': 'الأعلى تقييمًا عندي',
|
||||||
'stats.myRatings': 'تقييماتي',
|
'stats.myRatings': 'تقييماتي',
|
||||||
@@ -817,17 +715,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'الأنواع المفضلة',
|
'stats.favGenres': 'الأنواع المفضلة',
|
||||||
'stats.noGenres': 'لا أنواع بعد.',
|
'stats.noGenres': 'لا أنواع بعد.',
|
||||||
'stats.countries': 'الدول',
|
'stats.countries': 'الدول',
|
||||||
'stats.noCountry_one': 'عنوان واحد بلا دولة: أكمله عبر «الإكمال من TMDB / AniList» في صفحته.',
|
|
||||||
'stats.noCountry_other': '{count} عنوان بلا دولة: أكملها عبر «الإكمال من TMDB / AniList» في صفحاتها.',
|
|
||||||
'stats.noCountry_two': 'عنوانان بلا دولة: أكملهما عبر «الإكمال من TMDB / AniList» في صفحتيهما.',
|
|
||||||
'stats.noCountry_few': '{count} عناوين بلا دولة: أكملها عبر «الإكمال من TMDB / AniList» في صفحاتها.',
|
|
||||||
'stats.noCountry_many': '{count} عنوانًا بلا دولة: أكملها عبر «الإكمال من TMDB / AniList» في صفحاتها.',
|
|
||||||
'stats.noCountryLegacy_one': 'عنوان واحد بلا دولة: أكمله عبر «الإكمال من TMDB / AniList» في صفحته، أو أعد استيراد النسخة الاحتياطية من تطبيقك القديم («دمج»).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} عنوان بلا دولة: أكملها عبر «الإكمال من TMDB / AniList» في صفحاتها، أو أعد استيراد النسخة الاحتياطية من تطبيقك القديم («دمج»).',
|
|
||||||
'stats.noCountryLegacy_two': 'عنوانان بلا دولة: أكملهما عبر «الإكمال من TMDB / AniList» في صفحتيهما، أو أعد استيراد النسخة الاحتياطية من تطبيقك القديم («دمج»).',
|
|
||||||
'stats.noCountryLegacy_few': '{count} عناوين بلا دولة: أكملها عبر «الإكمال من TMDB / AniList» في صفحاتها، أو أعد استيراد النسخة الاحتياطية من تطبيقك القديم («دمج»).',
|
|
||||||
'stats.noCountryLegacy_many': '{count} عنوانًا بلا دولة: أكملها عبر «الإكمال من TMDB / AniList» في صفحاتها، أو أعد استيراد النسخة الاحتياطية من تطبيقك القديم («دمج»).',
|
|
||||||
'stats.byType': 'حسب الصنف',
|
|
||||||
'stats.footnote': 'الوقت مُقدَّر من الحلقات المُشاهدة والمدد المُدخلة (وإلا: فيلم 1 س 50 د، حلقة أنمي 24 د، مسلسل 45 د، دراما كورية 1 س، دراما صينية 45 د). يُحتسب العنوان في السنة التي أنهيته فيها.',
|
'stats.footnote': 'الوقت مُقدَّر من الحلقات المُشاهدة والمدد المُدخلة (وإلا: فيلم 1 س 50 د، حلقة أنمي 24 د، مسلسل 45 د، دراما كورية 1 س، دراما صينية 45 د). يُحتسب العنوان في السنة التي أنهيته فيها.',
|
||||||
'stats.ratedAs_one': 'بتقييم {rating}',
|
'stats.ratedAs_one': 'بتقييم {rating}',
|
||||||
'stats.ratedAs_other': 'بتقييم {rating}',
|
'stats.ratedAs_other': 'بتقييم {rating}',
|
||||||
@@ -951,9 +838,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': 'لاحقًا',
|
'welcome.later': 'لاحقًا',
|
||||||
'social.watching': 'قيد المشاهدة',
|
'social.watching': 'قيد المشاهدة',
|
||||||
'social.watchlist': 'يرغب في مشاهدتها',
|
'social.watchlist': 'يرغب في مشاهدتها',
|
||||||
'search.allKinds': 'أفلام ومسلسلات وأنمي',
|
|
||||||
'search.animeOnly': 'بدون مفتاح TMDB، يمكن العثور على الأنمي فقط.',
|
'search.animeOnly': 'بدون مفتاح TMDB، يمكن العثور على الأنمي فقط.',
|
||||||
'search.alreadySeries': 'موجود في مكتبتك — فتح',
|
|
||||||
'form.startShort': 'بدأ في',
|
'form.startShort': 'بدأ في',
|
||||||
'form.endShort': 'انتهى في',
|
'form.endShort': 'انتهى في',
|
||||||
'hero.allSeen': 'شوهد بالكامل',
|
'hero.allSeen': 'شوهد بالكامل',
|
||||||
@@ -961,7 +846,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'محدّث',
|
'hero.upToDate': 'محدّث',
|
||||||
'hero.seenEp': 'شاهدت {ep}',
|
'hero.seenEp': 'شاهدت {ep}',
|
||||||
'hero.seen': 'شوهد',
|
'hero.seen': 'شوهد',
|
||||||
'hero.markSeen': 'تحديد كمُشاهَد',
|
|
||||||
'hero.edit': 'تعديل المعلومات',
|
'hero.edit': 'تعديل المعلومات',
|
||||||
'hero.more': 'قراءة المزيد',
|
'hero.more': 'قراءة المزيد',
|
||||||
'hero.less': 'عرض أقل',
|
'hero.less': 'عرض أقل',
|
||||||
@@ -980,9 +864,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': 'التفاصيل',
|
'homeHero.details': 'التفاصيل',
|
||||||
'homeHero.continueRow': 'متابعة المشاهدة',
|
'homeHero.continueRow': 'متابعة المشاهدة',
|
||||||
'homeHero.nextUp': 'التالي: {ep}',
|
'homeHero.nextUp': 'التالي: {ep}',
|
||||||
'title.addTitle': "إضافة عنوان",
|
|
||||||
'title.searchPh': "فيلم، مسلسل، أنمي، دراما…",
|
|
||||||
'title.searchHint': "ابحث عن عنوان ثم افتح صفحته لتقييمه أو وضع علامة مشاهدة أو إضافته إلى قائمتك.",
|
|
||||||
'title.noResults': "لا توجد نتائج.",
|
'title.noResults': "لا توجد نتائج.",
|
||||||
'title.manual': "إضافة يدويًا",
|
'title.manual': "إضافة يدويًا",
|
||||||
'title.manualHint': "لم تجده؟ أنشئ الصفحة بنفسك.",
|
'title.manualHint': "لم تجده؟ أنشئ الصفحة بنفسك.",
|
||||||
@@ -1012,7 +893,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "التواريخ، القوائم، إعادة المشاهدة",
|
'title.trackingHint': "التواريخ، القوائم، إعادة المشاهدة",
|
||||||
'title.rewatchCount_one': "أُعيدت مشاهدته مرة واحدة",
|
'title.rewatchCount_one': "أُعيدت مشاهدته مرة واحدة",
|
||||||
'title.rewatchCount_other': "أُعيدت مشاهدته {count} مرة",
|
'title.rewatchCount_other': "أُعيدت مشاهدته {count} مرة",
|
||||||
'title.rewatchedToday': "أُعيدت مشاهدته اليوم",
|
|
||||||
'title.votes_two': "صوتان",
|
'title.votes_two': "صوتان",
|
||||||
'title.votes_few': "{n} أصوات",
|
'title.votes_few': "{n} أصوات",
|
||||||
'title.votes_many': "{n} صوتًا",
|
'title.votes_many': "{n} صوتًا",
|
||||||
@@ -1290,13 +1170,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_many': "+ {count} تحديًا آخر",
|
'challenges.more_many': "+ {count} تحديًا آخر",
|
||||||
'challenges.more_other': "+ {count} تحدٍّ آخر",
|
'challenges.more_other': "+ {count} تحدٍّ آخر",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "الإشعارات على هذا الجهاز",
|
|
||||||
'push.deviceHint': "حتى عندما يكون التطبيق مغلقًا. تنطبق الخيارات أدناه أيضًا.",
|
|
||||||
'push.iosInstall': "على iPhone وiPad، أضف Kino أولًا إلى الشاشة الرئيسية (iOS 16.4 أو أحدث)، ثم افتح التطبيق من أيقونته لتفعيل الإشعارات.",
|
|
||||||
'push.unsupported': "هذا المتصفح لا يدعم الإشعارات الفورية.",
|
|
||||||
'push.denied': "الإشعارات محظورة لهذا الموقع. اسمح بها من إعدادات المتصفح ثم حاول مجددًا.",
|
|
||||||
'push.notReady': "الإشعارات الفورية غير متاحة على الخادم بعد.",
|
|
||||||
'push.error': "تعذّر تفعيل الإشعارات. تحقق من اتصالك وحاول مجددًا.",
|
|
||||||
'netPill.offlineSync': "غير متصل — ستتم مزامنة تعديلاتك",
|
'netPill.offlineSync': "غير متصل — ستتم مزامنة تعديلاتك",
|
||||||
'netPill.offlineLocal': "غير متصل — كل شيء محفوظ على هذا الجهاز",
|
'netPill.offlineLocal': "غير متصل — كل شيء محفوظ على هذا الجهاز",
|
||||||
'netPill.synced': "تمت المزامنة",
|
'netPill.synced': "تمت المزامنة",
|
||||||
@@ -1436,10 +1309,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "تعلّق بسرعة كبيرة، حاول مجددًا بعد دقيقة.",
|
'comments.err.rate': "تعلّق بسرعة كبيرة، حاول مجددًا بعد دقيقة.",
|
||||||
'comments.err.gone': "لم يعد هذا التقييم متاحًا.",
|
'comments.err.gone': "لم يعد هذا التقييم متاحًا.",
|
||||||
'comments.err.invalid': "التعليق فارغ أو طويل جدًا (500 حرف كحد أقصى).",
|
'comments.err.invalid': "التعليق فارغ أو طويل جدًا (500 حرف كحد أقصى).",
|
||||||
'notif.review_comment': "علّق على تقييمك",
|
|
||||||
'notif.shared_list_invite': "دعاك إلى القائمة المشتركة",
|
|
||||||
'settings.notifComments': "التعليقات على تقييماتي",
|
|
||||||
'settings.notifLists': "دعوات القوائم المشتركة",
|
|
||||||
'shared.title': "القوائم المشتركة",
|
'shared.title': "القوائم المشتركة",
|
||||||
'shared.hint': "قوائم جماعية: يمكن لكل عضو إضافة العناوين أو إزالتها.",
|
'shared.hint': "قوائم جماعية: يمكن لكل عضو إضافة العناوين أو إزالتها.",
|
||||||
'shared.new': "قائمة مشتركة جديدة",
|
'shared.new': "قائمة مشتركة جديدة",
|
||||||
@@ -1471,7 +1340,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "لا أحد لدعوته: يمكن فقط لمتابعيك ومن تتابعهم الانضمام.",
|
'shared.noPeople': "لا أحد لدعوته: يمكن فقط لمتابعيك ومن تتابعهم الانضمام.",
|
||||||
'shared.inviteShort': "دعوة",
|
'shared.inviteShort': "دعوة",
|
||||||
'shared.invited': "تمت الدعوة",
|
'shared.invited': "تمت الدعوة",
|
||||||
'shared.expired': "انتهت صلاحية الدعوة",
|
|
||||||
'shared.addTo': "إضافة إلى قائمة مشتركة",
|
'shared.addTo': "إضافة إلى قائمة مشتركة",
|
||||||
'shared.unavailable': "القوائم المشتركة غير متاحة حاليًا.",
|
'shared.unavailable': "القوائم المشتركة غير متاحة حاليًا.",
|
||||||
'shared.err.rate': "إجراءات كثيرة متتالية، حاول مجددًا بعد دقيقة.",
|
'shared.err.rate': "إجراءات كثيرة متتالية، حاول مجددًا بعد دقيقة.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ von 5',
|
'settings.scale5': '★ von 5',
|
||||||
'settings.scale10': 'Von 10',
|
'settings.scale10': 'Von 10',
|
||||||
'settings.ratingHint': 'Halbe Sterne bei 5, oder 0,5er-Schritte bei 10. Bestehende Bewertungen werden automatisch umgerechnet.',
|
'settings.ratingHint': 'Halbe Sterne bei 5, oder 0,5er-Schritte bei 10. Bestehende Bewertungen werden automatisch umgerechnet.',
|
||||||
'settings.theme': 'Design',
|
|
||||||
'settings.appearance': 'Darstellung',
|
'settings.appearance': 'Darstellung',
|
||||||
'settings.appearanceHint': '„Auto“ folgt deinem Browser (hell oder dunkel).',
|
'settings.appearanceHint': '„Auto“ folgt deinem Browser (hell oder dunkel).',
|
||||||
'theme.modeAuto': 'Auto',
|
'theme.modeAuto': 'Auto',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'App installieren',
|
'settings.installApp': 'App installieren',
|
||||||
'settings.installHint': 'Füge Kino zum Startbildschirm oder Desktop hinzu.',
|
'settings.installHint': 'Füge Kino zum Startbildschirm oder Desktop hinzu.',
|
||||||
'settings.installed': 'App installiert',
|
'settings.installed': 'App installiert',
|
||||||
'settings.notifs': 'Mitteilungen',
|
|
||||||
'settings.notifsHint': 'Lege fest, was die Glocke auslöst.',
|
|
||||||
'settings.notifEpisodes': 'Neue Folgen',
|
|
||||||
'settings.notifFollows': 'Neue Follower',
|
|
||||||
'settings.notifAccepted': 'Angenommene Anfragen',
|
|
||||||
'settings.notifReactions': 'Reaktionen auf meine Rezensionen',
|
|
||||||
'notif.new_episode': 'Neue Folge von {title}',
|
|
||||||
'notif.new_season': 'Neue Staffel von {title}',
|
|
||||||
'reviews.title': 'Rezensionen',
|
'reviews.title': 'Rezensionen',
|
||||||
'reviews.friends': 'Deine Freunde',
|
'reviews.friends': 'Deine Freunde',
|
||||||
'reviews.others': 'Andere Mitglieder',
|
'reviews.others': 'Andere Mitglieder',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Keine weiteren Rezensionen',
|
'reviews.noneOthers': 'Keine weiteren Rezensionen',
|
||||||
'reviews.none': 'Noch keine Rezensionen',
|
'reviews.none': 'Noch keine Rezensionen',
|
||||||
'reviews.seeAll': 'Alle Rezensionen ansehen',
|
'reviews.seeAll': 'Alle Rezensionen ansehen',
|
||||||
'reviews.react': 'Reagieren',
|
|
||||||
'notif.title': 'Mitteilungen',
|
|
||||||
'notif.empty': 'Keine Mitteilungen',
|
|
||||||
'notif.someone': 'Jemand',
|
'notif.someone': 'Jemand',
|
||||||
'notif.follow_request': 'möchte dir folgen',
|
|
||||||
'notif.follow_accepted': 'hat deine Anfrage angenommen',
|
|
||||||
'notif.new_follower': 'folgt dir jetzt',
|
|
||||||
'notif.reaction': 'hat auf deine Rezension reagiert',
|
|
||||||
'notif.on': 'zu {title}',
|
|
||||||
'home.notifications': 'Mitteilungen',
|
|
||||||
'home.notificationsN': '{count} Mitteilungen',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Kino installieren',
|
'install.title': 'Kino installieren',
|
||||||
'install.ios': 'Öffne Kino in Safari.\nTippe auf die Teilen-Schaltfläche (das Quadrat mit Pfeil nach oben).\nWähle „Zum Home-Bildschirm“ und dann „Hinzufügen“.',
|
'install.ios': 'Öffne Kino in Safari.\nTippe auf die Teilen-Schaltfläche (das Quadrat mit Pfeil nach oben).\nWähle „Zum Home-Bildschirm“ und dann „Hinzufügen“.',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Zu viele Versuche, versuch’s in einer Minute nochmal.',
|
'account.err.deleteRate': 'Zu viele Versuche, versuch’s in einer Minute nochmal.',
|
||||||
'account.err.delete': 'Löschen fehlgeschlagen. Versuch’s später nochmal.',
|
'account.err.delete': 'Löschen fehlgeschlagen. Versuch’s später nochmal.',
|
||||||
'account.title': 'Mein Konto',
|
'account.title': 'Mein Konto',
|
||||||
'account.syncing': 'Synchronisiere…',
|
|
||||||
'account.offline': 'Offline — alles bleibt auf diesem Gerät gespeichert',
|
|
||||||
'account.syncError': 'Synchronisierung gerade nicht möglich',
|
|
||||||
'account.synced': 'Synchronisiert {when}',
|
|
||||||
'account.passwordChanged': 'Passwort geändert.',
|
'account.passwordChanged': 'Passwort geändert.',
|
||||||
'account.imported_one': '{count} Titel zu deinem Konto hinzugefügt.',
|
'account.imported_one': '{count} Titel zu deinem Konto hinzugefügt.',
|
||||||
'account.imported_other': '{count} Titel zu deinem Konto hinzugefügt.',
|
'account.imported_other': '{count} Titel zu deinem Konto hinzugefügt.',
|
||||||
'account.importFailed': 'Import fehlgeschlagen.',
|
'account.importFailed': 'Import fehlgeschlagen.',
|
||||||
'account.pending_one': '{count} ausstehend',
|
|
||||||
'account.pending_other': '{count} ausstehend',
|
|
||||||
'account.syncNow': 'Jetzt synchronisieren',
|
|
||||||
'account.newPasswordPh': 'Neues Passwort (min. {n} Zeichen)',
|
'account.newPasswordPh': 'Neues Passwort (min. {n} Zeichen)',
|
||||||
'account.changePassword': 'Passwort ändern',
|
'account.changePassword': 'Passwort ändern',
|
||||||
'account.logout': 'Abmelden',
|
'account.logout': 'Abmelden',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'Auf diesem Gerät gibt es {titles}, die vor deinem Konto erstellt wurden. Zu deinem Konto hinzufügen?',
|
'account.deviceData': 'Auf diesem Gerät gibt es {titles}, die vor deinem Konto erstellt wurden. Zu deinem Konto hinzufügen?',
|
||||||
'account.deviceDataWithLists': 'Auf diesem Gerät gibt es {titles} und {lists}, die vor deinem Konto erstellt wurden. Zu deinem Konto hinzufügen?',
|
'account.deviceDataWithLists': 'Auf diesem Gerät gibt es {titles} und {lists}, die vor deinem Konto erstellt wurden. Zu deinem Konto hinzufügen?',
|
||||||
|
|
||||||
'time.never': 'nie',
|
|
||||||
'time.justNow': 'gerade eben',
|
'time.justNow': 'gerade eben',
|
||||||
'time.minutesAgo': 'vor {n} Min.',
|
'time.minutesAgo': 'vor {n} Min.',
|
||||||
'time.hoursAgo': 'vor {n} Std.',
|
'time.hoursAgo': 'vor {n} Std.',
|
||||||
'time.onDate': 'am {date}',
|
|
||||||
'time.today': 'heute',
|
'time.today': 'heute',
|
||||||
'time.tomorrow': 'morgen',
|
'time.tomorrow': 'morgen',
|
||||||
'time.daysAgo': 'vor {n} Tg.',
|
'time.daysAgo': 'vor {n} Tg.',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Hinzugefügt',
|
'reco.addedShort': 'Hinzugefügt',
|
||||||
|
|
||||||
'search.offline': 'Keine Internetverbindung: Für die Suche brauchst du Netz.',
|
'search.offline': 'Keine Internetverbindung: Für die Suche brauchst du Netz.',
|
||||||
'search.fillFrom': 'Aus einer Datenbank ausfüllen',
|
|
||||||
'search.openSettings': 'Einstellungen öffnen',
|
'search.openSettings': 'Einstellungen öffnen',
|
||||||
'search.already': 'schon hinzugefügt',
|
|
||||||
'search.noResults': 'Keine Ergebnisse. Du kannst den Eintrag unten von Hand ausfüllen.',
|
|
||||||
'search.privacy': 'Nur der gesuchte Titel wird an {source} gesendet. Deine Bibliothek bleibt auf deinem Handy.',
|
'search.privacy': 'Nur der gesuchte Titel wird an {source} gesendet. Deine Bibliothek bleibt auf deinem Handy.',
|
||||||
|
|
||||||
'catalog.sortRecent': 'Zuletzt bearbeitet',
|
'catalog.sortRecent': 'Zuletzt bearbeitet',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Füg deinen ersten Titel mit dem +-Button hinzu.',
|
'catalog.nothingYetHint': 'Füg deinen ersten Titel mit dem +-Button hinzu.',
|
||||||
'catalog.clearFilters': 'Filter löschen',
|
'catalog.clearFilters': 'Filter löschen',
|
||||||
|
|
||||||
'public.agree': 'Genau wie das Publikum',
|
|
||||||
'public.more': '+{gap} mehr als das Publikum',
|
|
||||||
'public.less': '−{gap} weniger als das Publikum',
|
|
||||||
'public.label': 'Publikum',
|
|
||||||
'public.me': 'Ich',
|
|
||||||
'public.added_one': '{count} Publikumsbewertung hinzugefügt.',
|
|
||||||
'public.added_other': '{count} Publikumsbewertungen hinzugefügt.',
|
|
||||||
'public.noneFound': 'Keine neuen Bewertungen gefunden.',
|
|
||||||
'public.fetch': 'Abrufen ({n})',
|
|
||||||
'public.title': 'Ich vs. Publikum',
|
|
||||||
'public.hintFetch': 'Hol dir die TMDB- / AniList-Durchschnittsbewertung deiner bewerteten Titel, um zu sehen, wo du vom Publikum abweichst.',
|
|
||||||
'public.hintNone': 'Keine Publikumsbewertung für deine bewerteten Titel in diesem Zeitraum.',
|
|
||||||
'public.hintKey': 'Füg deinen TMDB-Schlüssel in den Einstellungen hinzu (oder Animes mit AniList-Verknüpfung), um dich mit dem Publikum zu vergleichen.',
|
|
||||||
'public.avgGap': 'Ø Abweichung',
|
|
||||||
'public.average': 'Im Durchschnitt',
|
|
||||||
'public.generous': 'Großzügiger als das Publikum',
|
|
||||||
'public.harsh': 'Strenger als das Publikum',
|
|
||||||
'public.agreeTitle': 'Einig',
|
|
||||||
'public.within5_one': 'auf ½ Stern genau, bei {count} Titel',
|
|
||||||
'public.within5_other': 'auf ½ Stern genau, bei {count} Titeln',
|
|
||||||
'public.within10_one': 'auf 1 Punkt genau, bei {count} Titel',
|
|
||||||
'public.within10_other': 'auf 1 Punkt genau, bei {count} Titeln',
|
|
||||||
'public.lovedPre': 'Hat mir ',
|
|
||||||
'public.lovedAccent': 'besser gefallen',
|
|
||||||
'public.lovedPost': ' als dem Publikum',
|
|
||||||
'public.hatedPre': 'Hat mir ',
|
|
||||||
'public.hatedAccent': 'schlechter gefallen',
|
|
||||||
'public.hatedPost': ' als dem Publikum',
|
|
||||||
'public.allAgree': 'Du bist bei all deinen Titeln einer Meinung mit dem Publikum. Selten!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Nochmal gesehen? Trag jedes erneute Schauen ein, es erscheint dann in deinem Tagebuch.',
|
'form.rewatchHint': 'Nochmal gesehen? Trag jedes erneute Schauen ein, es erscheint dann in deinem Tagebuch.',
|
||||||
'form.editTitle': 'Eintrag ',
|
|
||||||
'form.editAccent': 'bearbeiten',
|
|
||||||
'form.newTitle': 'Neuer ',
|
|
||||||
'form.newAccent': 'Titel',
|
|
||||||
'form.filledFrom': 'Ausgefüllt aus',
|
|
||||||
'form.canEdit': 'du kannst alles ändern',
|
|
||||||
'form.fillFromDb': 'Aus TMDB / AniList ergänzen',
|
|
||||||
'form.pickPoster': 'Poster wählen',
|
'form.pickPoster': 'Poster wählen',
|
||||||
'form.removeImage': 'Bild entfernen',
|
'form.removeImage': 'Bild entfernen',
|
||||||
'form.title': 'Titel *',
|
'form.title': 'Titel *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Typ',
|
'form.type': 'Typ',
|
||||||
'form.subtype': 'Art',
|
'form.subtype': 'Art',
|
||||||
'form.subtypePh': 'Doku, Reality-TV…',
|
'form.subtypePh': 'Doku, Reality-TV…',
|
||||||
'form.status': 'Status',
|
|
||||||
'form.myRating': 'Meine Bewertung',
|
|
||||||
'form.favorite': 'Liebling',
|
'form.favorite': 'Liebling',
|
||||||
'form.criteria': 'Detailkriterien (optional)',
|
|
||||||
'form.episodes': 'Folgen',
|
'form.episodes': 'Folgen',
|
||||||
'form.minusEp': '-1 Folge',
|
'form.minusEp': '-1 Folge',
|
||||||
'form.plusEp': '+1 Folge',
|
'form.plusEp': '+1 Folge',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Rewatches',
|
'form.rewatches': 'Rewatches',
|
||||||
'form.review': 'Meine Meinung',
|
'form.review': 'Meine Meinung',
|
||||||
'form.reviewPh': 'Was ich davon halte, starke Szenen…',
|
'form.reviewPh': 'Was ich davon halte, starke Szenen…',
|
||||||
'form.saveChanges': 'Änderungen speichern',
|
|
||||||
'form.addToLibrary': 'Zur Bibliothek hinzufügen',
|
|
||||||
'form.shareImage': 'Als Bild teilen',
|
'form.shareImage': 'Als Bild teilen',
|
||||||
'form.delete': 'Titel löschen',
|
'form.delete': 'Titel löschen',
|
||||||
'form.deleteConfirm': '„{title}“ wird endgültig gelöscht.',
|
'form.deleteConfirm': '„{title}“ wird endgültig gelöscht.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count} gesehen',
|
'journal.seen_other': '{count} gesehen',
|
||||||
'journal.more': 'Frühere Monate anzeigen',
|
'journal.more': 'Frühere Monate anzeigen',
|
||||||
|
|
||||||
'stats.overview': 'Überblick',
|
|
||||||
'stats.habits': 'Gewohnheiten',
|
|
||||||
'stats.tastes': 'Geschmack',
|
|
||||||
'stats.pageTitle': 'Meine ',
|
'stats.pageTitle': 'Meine ',
|
||||||
'stats.pageAccent': 'Stats',
|
'stats.pageAccent': 'Stats',
|
||||||
'stats.emptyTitle': 'Noch keine Statistiken',
|
'stats.emptyTitle': 'Noch keine Statistiken',
|
||||||
'stats.emptyText': 'Sie erscheinen, sobald du Titel hinzugefügt hast.',
|
'stats.emptyText': 'Sie erscheinen, sobald du Titel hinzugefügt hast.',
|
||||||
'stats.sinceStart': 'seit Beginn',
|
|
||||||
'stats.subtitle_one': '{count} Titel in meiner Bibliothek',
|
'stats.subtitle_one': '{count} Titel in meiner Bibliothek',
|
||||||
'stats.subtitle_other': '{count} Titel in meiner Bibliothek',
|
'stats.subtitle_other': '{count} Titel in meiner Bibliothek',
|
||||||
'stats.subtitleYear_one': '{count} Titel in {year}',
|
'stats.subtitleYear_one': '{count} Titel in {year}',
|
||||||
'stats.subtitleYear_other': '{count} Titel in {year}',
|
'stats.subtitleYear_other': '{count} Titel in {year}',
|
||||||
'stats.hours_one': 'Stunde',
|
|
||||||
'stats.hours_other': 'Stunden',
|
|
||||||
'stats.nonStopPre': 'also ',
|
'stats.nonStopPre': 'also ',
|
||||||
'stats.nonStopPost': ' am Stück',
|
'stats.nonStopPost': ' am Stück',
|
||||||
'stats.days_one': '{count} Tag',
|
'stats.days_one': '{count} Tag',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} Folge',
|
'stats.episodesN_one': '{count} Folge',
|
||||||
'stats.episodesN_other': '{count} Folgen',
|
'stats.episodesN_other': '{count} Folgen',
|
||||||
'stats.timeByType': 'Zeit nach Typ',
|
'stats.timeByType': 'Zeit nach Typ',
|
||||||
'stats.noTime': 'In diesem Zeitraum noch keine Zeit erfasst.',
|
|
||||||
'stats.avgRating': 'Ø Bewertung',
|
'stats.avgRating': 'Ø Bewertung',
|
||||||
'stats.rated_one': '{count} bewerteter Titel',
|
'stats.rated_one': '{count} bewerteter Titel',
|
||||||
'stats.rated_other': '{count} bewertete Titel',
|
'stats.rated_other': '{count} bewertete Titel',
|
||||||
'stats.inYear': 'in {year}',
|
|
||||||
'stats.statuses': 'Status',
|
'stats.statuses': 'Status',
|
||||||
'stats.hoursTab': 'Stunden',
|
|
||||||
'stats.monthByMonth': 'Monat für Monat · {year}',
|
'stats.monthByMonth': 'Monat für Monat · {year}',
|
||||||
'stats.last12': 'Letzte 12 Monate',
|
'stats.last12': 'Letzte 12 Monate',
|
||||||
'stats.monthFinished_one': '{count} Titel beendet',
|
'stats.monthFinished_one': '{count} Titel beendet',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Rekorde',
|
'stats.records': 'Rekorde',
|
||||||
'stats.marathon': 'Größter Marathon',
|
'stats.marathon': 'Größter Marathon',
|
||||||
'stats.longestFilm': 'Längster Film',
|
'stats.longestFilm': 'Längster Film',
|
||||||
'stats.noRecords': 'In diesem Zeitraum noch keine Rekorde.',
|
|
||||||
'stats.platforms': 'Plattformen',
|
'stats.platforms': 'Plattformen',
|
||||||
'stats.bestRated': 'Meine Bestbewerteten',
|
'stats.bestRated': 'Meine Bestbewerteten',
|
||||||
'stats.myRatings': 'Meine Bewertungen',
|
'stats.myRatings': 'Meine Bewertungen',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Lieblingsgenres',
|
'stats.favGenres': 'Lieblingsgenres',
|
||||||
'stats.noGenres': 'Noch keine Genres.',
|
'stats.noGenres': 'Noch keine Genres.',
|
||||||
'stats.countries': 'Länder',
|
'stats.countries': 'Länder',
|
||||||
'stats.noCountry_one': '{count} Titel ohne Land: Ergänz es über „Aus TMDB / AniList ergänzen“ im Eintrag.',
|
|
||||||
'stats.noCountry_other': '{count} Titel ohne Land: Ergänz sie über „Aus TMDB / AniList ergänzen“ im Eintrag.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} Titel ohne Land: Ergänz es über „Aus TMDB / AniList ergänzen“ im Eintrag oder importier das Backup deiner alten App erneut („Zusammenführen“).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} Titel ohne Land: Ergänz sie über „Aus TMDB / AniList ergänzen“ im Eintrag oder importier das Backup deiner alten App erneut („Zusammenführen“).',
|
|
||||||
'stats.byType': 'Nach Typ',
|
|
||||||
'stats.footnote': 'Zeit geschätzt aus gesehenen Folgen und eingetragenen Laufzeiten (sonst: Film 1 Std. 50 Min., Anime-Folge 24 Min., Serie 45 Min., K-Drama 1 Std., C-Drama 45 Min.). Ein Titel zählt für das Jahr, in dem ich ihn beendet habe.',
|
'stats.footnote': 'Zeit geschätzt aus gesehenen Folgen und eingetragenen Laufzeiten (sonst: Film 1 Std. 50 Min., Anime-Folge 24 Min., Serie 45 Min., K-Drama 1 Std., C-Drama 45 Min.). Ein Titel zählt für das Jahr, in dem ich ihn beendet habe.',
|
||||||
'stats.ratedAs_one': 'mit {rating} bewertet',
|
'stats.ratedAs_one': 'mit {rating} bewertet',
|
||||||
'stats.ratedAs_other': 'mit {rating} bewertet',
|
'stats.ratedAs_other': 'mit {rating} bewertet',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "Später",
|
'welcome.later': "Später",
|
||||||
'social.watching': "Schaut gerade",
|
'social.watching': "Schaut gerade",
|
||||||
'social.watchlist': "Möchte sehen",
|
'social.watchlist': "Möchte sehen",
|
||||||
'search.allKinds': "Filme, Serien und Anime",
|
|
||||||
'search.animeOnly': "Ohne TMDB-Schlüssel werden nur Animes gefunden.",
|
'search.animeOnly': "Ohne TMDB-Schlüssel werden nur Animes gefunden.",
|
||||||
'search.alreadySeries': "schon in deiner Bibliothek – öffnen",
|
|
||||||
'form.startShort': "Begonnen",
|
'form.startShort': "Begonnen",
|
||||||
'form.endShort': "Beendet",
|
'form.endShort': "Beendet",
|
||||||
'hero.allSeen': "Alles gesehen",
|
'hero.allSeen': "Alles gesehen",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Auf dem neuesten Stand',
|
'hero.upToDate': 'Auf dem neuesten Stand',
|
||||||
'hero.seenEp': "{ep} gesehen",
|
'hero.seenEp': "{ep} gesehen",
|
||||||
'hero.seen': "Gesehen",
|
'hero.seen': "Gesehen",
|
||||||
'hero.markSeen': "Als gesehen markieren",
|
|
||||||
'hero.edit': "Angaben bearbeiten",
|
'hero.edit': "Angaben bearbeiten",
|
||||||
'hero.more': "Mehr lesen",
|
'hero.more': "Mehr lesen",
|
||||||
'hero.less': "Weniger",
|
'hero.less': "Weniger",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "Details",
|
'homeHero.details': "Details",
|
||||||
'homeHero.continueRow': "Weiterschauen",
|
'homeHero.continueRow': "Weiterschauen",
|
||||||
'homeHero.nextUp': "Als Nächstes: {ep}",
|
'homeHero.nextUp': "Als Nächstes: {ep}",
|
||||||
'title.addTitle': "Titel hinzufügen",
|
|
||||||
'title.searchPh': "Film, Serie, Anime, Drama…",
|
|
||||||
'title.searchHint': "Suche einen Titel und öffne ihn, um ihn zu bewerten, als gesehen zu markieren oder auf deine Merkliste zu setzen.",
|
|
||||||
'title.noResults': "Keine Ergebnisse.",
|
'title.noResults': "Keine Ergebnisse.",
|
||||||
'title.manual': "Manuell hinzufügen",
|
'title.manual': "Manuell hinzufügen",
|
||||||
'title.manualHint': "Nicht gefunden? Lege den Titel selbst an.",
|
'title.manualHint': "Nicht gefunden? Lege den Titel selbst an.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Daten, Listen, erneut gesehen",
|
'title.trackingHint': "Daten, Listen, erneut gesehen",
|
||||||
'title.rewatchCount_one': "Einmal erneut gesehen",
|
'title.rewatchCount_one': "Einmal erneut gesehen",
|
||||||
'title.rewatchCount_other': "{count}-mal erneut gesehen",
|
'title.rewatchCount_other': "{count}-mal erneut gesehen",
|
||||||
'title.rewatchedToday': "Heute erneut gesehen",
|
|
||||||
'sync.syncing': "Wird synchronisiert…",
|
'sync.syncing': "Wird synchronisiert…",
|
||||||
'sync.offline': "Offline",
|
'sync.offline': "Offline",
|
||||||
'sync.error': "Synchronisierung fehlgeschlagen",
|
'sync.error': "Synchronisierung fehlgeschlagen",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} weitere Challenge",
|
'challenges.more_one': "+ {count} weitere Challenge",
|
||||||
'challenges.more_other': "+ {count} weitere Challenges",
|
'challenges.more_other': "+ {count} weitere Challenges",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Benachrichtigungen auf diesem Gerät",
|
|
||||||
'push.deviceHint': "Auch wenn die App geschlossen ist. Die Auswahl unten gilt ebenfalls.",
|
|
||||||
'push.iosInstall': "Auf iPhone und iPad füge Kino zuerst zum Home-Bildschirm hinzu (iOS 16.4 oder neuer) und öffne die App dann über ihr Symbol, um Benachrichtigungen zu aktivieren.",
|
|
||||||
'push.unsupported': "Dieser Browser unterstützt keine Push-Benachrichtigungen.",
|
|
||||||
'push.denied': "Benachrichtigungen sind für diese Seite blockiert. Erlaube sie in den Browser-Einstellungen und versuche es erneut.",
|
|
||||||
'push.notReady': "Push-Benachrichtigungen sind auf dem Server noch nicht verfügbar.",
|
|
||||||
'push.error': "Benachrichtigungen konnten nicht aktiviert werden. Prüfe deine Verbindung und versuche es erneut.",
|
|
||||||
'netPill.offlineSync': "Offline — deine Änderungen werden synchronisiert",
|
'netPill.offlineSync': "Offline — deine Änderungen werden synchronisiert",
|
||||||
'netPill.offlineLocal': "Offline — alles bleibt auf diesem Gerät gespeichert",
|
'netPill.offlineLocal': "Offline — alles bleibt auf diesem Gerät gespeichert",
|
||||||
'netPill.synced': "Synchronisiert",
|
'netPill.synced': "Synchronisiert",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Du kommentierst zu schnell – versuch es in einer Minute erneut.",
|
'comments.err.rate': "Du kommentierst zu schnell – versuch es in einer Minute erneut.",
|
||||||
'comments.err.gone': "Diese Kritik ist nicht mehr verfügbar.",
|
'comments.err.gone': "Diese Kritik ist nicht mehr verfügbar.",
|
||||||
'comments.err.invalid': "Kommentar leer oder zu lang (max. 500 Zeichen).",
|
'comments.err.invalid': "Kommentar leer oder zu lang (max. 500 Zeichen).",
|
||||||
'notif.review_comment': "hat deine Kritik kommentiert",
|
|
||||||
'notif.shared_list_invite': "hat dich in die geteilte Liste eingeladen",
|
|
||||||
'settings.notifComments': "Kommentare zu meinen Kritiken",
|
|
||||||
'settings.notifLists': "Einladungen zu geteilten Listen",
|
|
||||||
'shared.title': "Geteilte Listen",
|
'shared.title': "Geteilte Listen",
|
||||||
'shared.hint': "Listen für mehrere: Jedes Mitglied kann Titel hinzufügen oder entfernen.",
|
'shared.hint': "Listen für mehrere: Jedes Mitglied kann Titel hinzufügen oder entfernen.",
|
||||||
'shared.new': "Neue geteilte Liste",
|
'shared.new': "Neue geteilte Liste",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Niemand zum Einladen: Nur deine Follower und Personen, denen du folgst, können beitreten.",
|
'shared.noPeople': "Niemand zum Einladen: Nur deine Follower und Personen, denen du folgst, können beitreten.",
|
||||||
'shared.inviteShort': "Einladen",
|
'shared.inviteShort': "Einladen",
|
||||||
'shared.invited': "Eingeladen",
|
'shared.invited': "Eingeladen",
|
||||||
'shared.expired': "Einladung abgelaufen",
|
|
||||||
'shared.addTo': "Zu einer geteilten Liste hinzufügen",
|
'shared.addTo': "Zu einer geteilten Liste hinzufügen",
|
||||||
'shared.unavailable': "Geteilte Listen sind gerade nicht verfügbar.",
|
'shared.unavailable': "Geteilte Listen sind gerade nicht verfügbar.",
|
||||||
'shared.err.rate': "Zu viele Aktionen hintereinander – versuch es in einer Minute erneut.",
|
'shared.err.rate': "Zu viele Aktionen hintereinander – versuch es in einer Minute erneut.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ out of 5',
|
'settings.scale5': '★ out of 5',
|
||||||
'settings.scale10': 'Out of 10',
|
'settings.scale10': 'Out of 10',
|
||||||
'settings.ratingHint': 'Half stars out of 5, or 0.5 steps out of 10. Existing ratings are converted automatically.',
|
'settings.ratingHint': 'Half stars out of 5, or 0.5 steps out of 10. Existing ratings are converted automatically.',
|
||||||
'settings.theme': 'Theme',
|
|
||||||
'settings.appearance': 'Appearance',
|
'settings.appearance': 'Appearance',
|
||||||
'settings.appearanceHint': '“Auto” follows your browser (light or dark).',
|
'settings.appearanceHint': '“Auto” follows your browser (light or dark).',
|
||||||
'theme.modeAuto': 'Auto',
|
'theme.modeAuto': 'Auto',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'Install the app',
|
'settings.installApp': 'Install the app',
|
||||||
'settings.installHint': 'Add Kino to your home screen or desktop.',
|
'settings.installHint': 'Add Kino to your home screen or desktop.',
|
||||||
'settings.installed': 'App installed',
|
'settings.installed': 'App installed',
|
||||||
'settings.notifs': 'Notifications',
|
|
||||||
'settings.notifsHint': 'Choose what triggers the bell.',
|
|
||||||
'settings.notifEpisodes': 'New episodes',
|
|
||||||
'settings.notifFollows': 'New followers',
|
|
||||||
'settings.notifAccepted': 'Accepted requests',
|
|
||||||
'settings.notifReactions': 'Reactions to my reviews',
|
|
||||||
'notif.new_episode': 'New episode of {title}',
|
|
||||||
'notif.new_season': 'New season of {title}',
|
|
||||||
'reviews.title': 'Reviews',
|
'reviews.title': 'Reviews',
|
||||||
'reviews.friends': 'Your friends',
|
'reviews.friends': 'Your friends',
|
||||||
'reviews.others': 'Other members',
|
'reviews.others': 'Other members',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'No other reviews',
|
'reviews.noneOthers': 'No other reviews',
|
||||||
'reviews.none': 'No reviews yet',
|
'reviews.none': 'No reviews yet',
|
||||||
'reviews.seeAll': 'See all reviews',
|
'reviews.seeAll': 'See all reviews',
|
||||||
'reviews.react': 'React',
|
|
||||||
'notif.title': 'Notifications',
|
|
||||||
'notif.empty': 'No notifications',
|
|
||||||
'notif.someone': 'Someone',
|
'notif.someone': 'Someone',
|
||||||
'notif.follow_request': 'wants to follow you',
|
|
||||||
'notif.follow_accepted': 'accepted your request',
|
|
||||||
'notif.new_follower': 'started following you',
|
|
||||||
'notif.reaction': 'reacted to your review',
|
|
||||||
'notif.on': 'on {title}',
|
|
||||||
'home.notifications': 'Notifications',
|
|
||||||
'home.notificationsN': '{count} notifications',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Install Kino',
|
'install.title': 'Install Kino',
|
||||||
'install.ios': 'Open Kino in Safari.\nTap the Share button (the square with an up arrow).\nChoose “Add to Home Screen”, then “Add”.',
|
'install.ios': 'Open Kino in Safari.\nTap the Share button (the square with an up arrow).\nChoose “Add to Home Screen”, then “Add”.',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Too many attempts, try again in a minute.',
|
'account.err.deleteRate': 'Too many attempts, try again in a minute.',
|
||||||
'account.err.delete': 'Deletion failed. Try again later.',
|
'account.err.delete': 'Deletion failed. Try again later.',
|
||||||
'account.title': 'My account',
|
'account.title': 'My account',
|
||||||
'account.syncing': 'Syncing…',
|
|
||||||
'account.offline': 'Offline — everything is kept on this device',
|
|
||||||
'account.syncError': 'Can’t sync right now',
|
|
||||||
'account.synced': 'Synced {when}',
|
|
||||||
'account.passwordChanged': 'Password changed.',
|
'account.passwordChanged': 'Password changed.',
|
||||||
'account.imported_one': '{count} title added to your account.',
|
'account.imported_one': '{count} title added to your account.',
|
||||||
'account.imported_other': '{count} titles added to your account.',
|
'account.imported_other': '{count} titles added to your account.',
|
||||||
'account.importFailed': 'Import failed.',
|
'account.importFailed': 'Import failed.',
|
||||||
'account.pending_one': '{count} pending',
|
|
||||||
'account.pending_other': '{count} pending',
|
|
||||||
'account.syncNow': 'Sync now',
|
|
||||||
'account.newPasswordPh': 'New password ({n} characters min.)',
|
'account.newPasswordPh': 'New password ({n} characters min.)',
|
||||||
'account.changePassword': 'Change password',
|
'account.changePassword': 'Change password',
|
||||||
'account.logout': 'Log out',
|
'account.logout': 'Log out',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'This device has {titles} created before your account. Add them to your account?',
|
'account.deviceData': 'This device has {titles} created before your account. Add them to your account?',
|
||||||
'account.deviceDataWithLists': 'This device has {titles} and {lists} created before your account. Add them to your account?',
|
'account.deviceDataWithLists': 'This device has {titles} and {lists} created before your account. Add them to your account?',
|
||||||
|
|
||||||
'time.never': 'never',
|
|
||||||
'time.justNow': 'just now',
|
'time.justNow': 'just now',
|
||||||
'time.minutesAgo': '{n} min ago',
|
'time.minutesAgo': '{n} min ago',
|
||||||
'time.hoursAgo': '{n} h ago',
|
'time.hoursAgo': '{n} h ago',
|
||||||
'time.onDate': 'on {date}',
|
|
||||||
'time.today': 'today',
|
'time.today': 'today',
|
||||||
'time.tomorrow': 'tomorrow',
|
'time.tomorrow': 'tomorrow',
|
||||||
'time.daysAgo': '{n} d ago',
|
'time.daysAgo': '{n} d ago',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Added',
|
'reco.addedShort': 'Added',
|
||||||
|
|
||||||
'search.offline': 'No internet connection: search needs the network.',
|
'search.offline': 'No internet connection: search needs the network.',
|
||||||
'search.fillFrom': 'Fill in from a database',
|
|
||||||
'search.openSettings': 'Open Settings',
|
'search.openSettings': 'Open Settings',
|
||||||
'search.already': 'already added',
|
|
||||||
'search.noResults': 'No results. You can fill in the entry by hand below.',
|
|
||||||
'search.privacy': 'Only the title you search for is sent to {source}. Your library stays on your phone.',
|
'search.privacy': 'Only the title you search for is sent to {source}. Your library stays on your phone.',
|
||||||
|
|
||||||
'catalog.sortRecent': 'Recently edited',
|
'catalog.sortRecent': 'Recently edited',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Add your first title with the + button.',
|
'catalog.nothingYetHint': 'Add your first title with the + button.',
|
||||||
'catalog.clearFilters': 'Clear filters',
|
'catalog.clearFilters': 'Clear filters',
|
||||||
|
|
||||||
'public.agree': 'Right in line with the audience',
|
|
||||||
'public.more': '+{gap} higher than the audience',
|
|
||||||
'public.less': '−{gap} lower than the audience',
|
|
||||||
'public.label': 'Audience',
|
|
||||||
'public.me': 'Me',
|
|
||||||
'public.added_one': '{count} audience rating added.',
|
|
||||||
'public.added_other': '{count} audience ratings added.',
|
|
||||||
'public.noneFound': 'No new ratings found.',
|
|
||||||
'public.fetch': 'Fetch ({n})',
|
|
||||||
'public.title': 'Me vs the audience',
|
|
||||||
'public.hintFetch': 'Fetch the average TMDB / AniList rating for your rated titles to see where you stand out from the audience.',
|
|
||||||
'public.hintNone': 'No audience ratings available for your rated titles in this period.',
|
|
||||||
'public.hintKey': 'Add your TMDB key in Settings (or link anime to AniList) to compare yourself with the audience.',
|
|
||||||
'public.avgGap': 'Average gap',
|
|
||||||
'public.average': 'Right on average',
|
|
||||||
'public.generous': 'More generous than the audience',
|
|
||||||
'public.harsh': 'Harsher than the audience',
|
|
||||||
'public.agreeTitle': 'In agreement',
|
|
||||||
'public.within5_one': 'within ½ star, on {count} title',
|
|
||||||
'public.within5_other': 'within ½ star, on {count} titles',
|
|
||||||
'public.within10_one': 'within 1 point, on {count} title',
|
|
||||||
'public.within10_other': 'within 1 point, on {count} titles',
|
|
||||||
'public.lovedPre': 'I ',
|
|
||||||
'public.lovedAccent': 'liked more',
|
|
||||||
'public.lovedPost': ' than the audience',
|
|
||||||
'public.hatedPre': 'I ',
|
|
||||||
'public.hatedAccent': 'liked less',
|
|
||||||
'public.hatedPost': ' than the audience',
|
|
||||||
'public.allAgree': 'You agree with the audience on all your titles. Rare!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Watched it again? Log each rewatch and it’ll show up in your journal.',
|
'form.rewatchHint': 'Watched it again? Log each rewatch and it’ll show up in your journal.',
|
||||||
'form.editTitle': 'Edit ',
|
|
||||||
'form.editAccent': 'entry',
|
|
||||||
'form.newTitle': 'New ',
|
|
||||||
'form.newAccent': 'title',
|
|
||||||
'form.filledFrom': 'Filled in from',
|
|
||||||
'form.canEdit': 'you can edit everything',
|
|
||||||
'form.fillFromDb': 'Fill in from TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Pick a poster',
|
'form.pickPoster': 'Pick a poster',
|
||||||
'form.removeImage': 'Remove image',
|
'form.removeImage': 'Remove image',
|
||||||
'form.title': 'Title *',
|
'form.title': 'Title *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Type',
|
'form.type': 'Type',
|
||||||
'form.subtype': 'Kind',
|
'form.subtype': 'Kind',
|
||||||
'form.subtypePh': 'Documentary, Reality TV…',
|
'form.subtypePh': 'Documentary, Reality TV…',
|
||||||
'form.status': 'Status',
|
|
||||||
'form.myRating': 'My rating',
|
|
||||||
'form.favorite': 'Favorite',
|
'form.favorite': 'Favorite',
|
||||||
'form.criteria': 'Detailed criteria (optional)',
|
|
||||||
'form.episodes': 'Episodes',
|
'form.episodes': 'Episodes',
|
||||||
'form.minusEp': '-1 episode',
|
'form.minusEp': '-1 episode',
|
||||||
'form.plusEp': '+1 episode',
|
'form.plusEp': '+1 episode',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Rewatches',
|
'form.rewatches': 'Rewatches',
|
||||||
'form.review': 'My review',
|
'form.review': 'My review',
|
||||||
'form.reviewPh': 'What I thought, memorable scenes…',
|
'form.reviewPh': 'What I thought, memorable scenes…',
|
||||||
'form.saveChanges': 'Save changes',
|
|
||||||
'form.addToLibrary': 'Add to my library',
|
|
||||||
'form.shareImage': 'Share as image',
|
'form.shareImage': 'Share as image',
|
||||||
'form.delete': 'Delete this title',
|
'form.delete': 'Delete this title',
|
||||||
'form.deleteConfirm': '“{title}” will be permanently deleted.',
|
'form.deleteConfirm': '“{title}” will be permanently deleted.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count} watched',
|
'journal.seen_other': '{count} watched',
|
||||||
'journal.more': 'Show earlier months',
|
'journal.more': 'Show earlier months',
|
||||||
|
|
||||||
'stats.overview': 'Overview',
|
|
||||||
'stats.habits': 'Habits',
|
|
||||||
'stats.tastes': 'Tastes',
|
|
||||||
'stats.pageTitle': 'My ',
|
'stats.pageTitle': 'My ',
|
||||||
'stats.pageAccent': 'stats',
|
'stats.pageAccent': 'stats',
|
||||||
'stats.emptyTitle': 'No stats yet',
|
'stats.emptyTitle': 'No stats yet',
|
||||||
'stats.emptyText': 'They’ll show up once you’ve added some titles.',
|
'stats.emptyText': 'They’ll show up once you’ve added some titles.',
|
||||||
'stats.sinceStart': 'all time',
|
|
||||||
'stats.subtitle_one': '{count} title in my library',
|
'stats.subtitle_one': '{count} title in my library',
|
||||||
'stats.subtitle_other': '{count} titles in my library',
|
'stats.subtitle_other': '{count} titles in my library',
|
||||||
'stats.subtitleYear_one': '{count} title in {year}',
|
'stats.subtitleYear_one': '{count} title in {year}',
|
||||||
'stats.subtitleYear_other': '{count} titles in {year}',
|
'stats.subtitleYear_other': '{count} titles in {year}',
|
||||||
'stats.hours_one': 'hour',
|
|
||||||
'stats.hours_other': 'hours',
|
|
||||||
'stats.nonStopPre': 'that’s ',
|
'stats.nonStopPre': 'that’s ',
|
||||||
'stats.nonStopPost': ' non-stop',
|
'stats.nonStopPost': ' non-stop',
|
||||||
'stats.days_one': '{count} day',
|
'stats.days_one': '{count} day',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} episode',
|
'stats.episodesN_one': '{count} episode',
|
||||||
'stats.episodesN_other': '{count} episodes',
|
'stats.episodesN_other': '{count} episodes',
|
||||||
'stats.timeByType': 'Time by type',
|
'stats.timeByType': 'Time by type',
|
||||||
'stats.noTime': 'No time logged in this period yet.',
|
|
||||||
'stats.avgRating': 'Average rating',
|
'stats.avgRating': 'Average rating',
|
||||||
'stats.rated_one': '{count} title rated',
|
'stats.rated_one': '{count} title rated',
|
||||||
'stats.rated_other': '{count} titles rated',
|
'stats.rated_other': '{count} titles rated',
|
||||||
'stats.inYear': 'in {year}',
|
|
||||||
'stats.statuses': 'Statuses',
|
'stats.statuses': 'Statuses',
|
||||||
'stats.hoursTab': 'Hours',
|
|
||||||
'stats.monthByMonth': 'Month by month · {year}',
|
'stats.monthByMonth': 'Month by month · {year}',
|
||||||
'stats.last12': 'Last 12 months',
|
'stats.last12': 'Last 12 months',
|
||||||
'stats.monthFinished_one': '{count} title finished',
|
'stats.monthFinished_one': '{count} title finished',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Records',
|
'stats.records': 'Records',
|
||||||
'stats.marathon': 'Biggest marathon',
|
'stats.marathon': 'Biggest marathon',
|
||||||
'stats.longestFilm': 'Longest movie',
|
'stats.longestFilm': 'Longest movie',
|
||||||
'stats.noRecords': 'No records in this period yet.',
|
|
||||||
'stats.platforms': 'Platforms',
|
'stats.platforms': 'Platforms',
|
||||||
'stats.bestRated': 'My top rated',
|
'stats.bestRated': 'My top rated',
|
||||||
'stats.myRatings': 'My ratings',
|
'stats.myRatings': 'My ratings',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Favorite genres',
|
'stats.favGenres': 'Favorite genres',
|
||||||
'stats.noGenres': 'No genres yet.',
|
'stats.noGenres': 'No genres yet.',
|
||||||
'stats.countries': 'Countries',
|
'stats.countries': 'Countries',
|
||||||
'stats.noCountry_one': '{count} title has no country: fill it in with “Fill in from TMDB / AniList” on its page.',
|
|
||||||
'stats.noCountry_other': '{count} titles have no country: fill them in with “Fill in from TMDB / AniList” on their pages.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} title has no country: fill it in with “Fill in from TMDB / AniList” on its page, or re-import your old app’s backup (“Merge”).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} titles have no country: fill them in with “Fill in from TMDB / AniList” on their pages, or re-import your old app’s backup (“Merge”).',
|
|
||||||
'stats.byType': 'By type',
|
|
||||||
'stats.footnote': 'Time estimated from episodes watched and runtimes entered (otherwise: movie 1 h 50, anime episode 24 min, series 45 min, K-drama 1 h, C-drama 45 min). A title counts toward the year I finished it.',
|
'stats.footnote': 'Time estimated from episodes watched and runtimes entered (otherwise: movie 1 h 50, anime episode 24 min, series 45 min, K-drama 1 h, C-drama 45 min). A title counts toward the year I finished it.',
|
||||||
'stats.ratedAs_one': 'rated {rating}',
|
'stats.ratedAs_one': 'rated {rating}',
|
||||||
'stats.ratedAs_other': 'rated {rating}',
|
'stats.ratedAs_other': 'rated {rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "Later",
|
'welcome.later': "Later",
|
||||||
'social.watching': "Watching",
|
'social.watching': "Watching",
|
||||||
'social.watchlist': "Wants to watch",
|
'social.watchlist': "Wants to watch",
|
||||||
'search.allKinds': "Movies, series and anime",
|
|
||||||
'search.animeOnly': "Without a TMDB key, only anime can be found.",
|
'search.animeOnly': "Without a TMDB key, only anime can be found.",
|
||||||
'search.alreadySeries': "already in your library — open",
|
|
||||||
'form.startShort': "Started",
|
'form.startShort': "Started",
|
||||||
'form.endShort': "Finished",
|
'form.endShort': "Finished",
|
||||||
'hero.allSeen': "All watched",
|
'hero.allSeen': "All watched",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Up to date',
|
'hero.upToDate': 'Up to date',
|
||||||
'hero.seenEp': "Watched {ep}",
|
'hero.seenEp': "Watched {ep}",
|
||||||
'hero.seen': "Watched",
|
'hero.seen': "Watched",
|
||||||
'hero.markSeen': "Mark as watched",
|
|
||||||
'hero.edit': "Edit details",
|
'hero.edit': "Edit details",
|
||||||
'hero.more': "Read more",
|
'hero.more': "Read more",
|
||||||
'hero.less': "Show less",
|
'hero.less': "Show less",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "Details",
|
'homeHero.details': "Details",
|
||||||
'homeHero.continueRow': "Continue watching",
|
'homeHero.continueRow': "Continue watching",
|
||||||
'homeHero.nextUp': "Next: {ep}",
|
'homeHero.nextUp': "Next: {ep}",
|
||||||
'title.addTitle': "Add a title",
|
|
||||||
'title.searchPh': "Movie, series, anime, drama…",
|
|
||||||
'title.searchHint': "Search for a title, then open it to rate it, mark it as watched or add it to your watchlist.",
|
|
||||||
'title.noResults': "No results.",
|
'title.noResults': "No results.",
|
||||||
'title.manual': "Add manually",
|
'title.manual': "Add manually",
|
||||||
'title.manualHint': "Can’t find it? Create it yourself.",
|
'title.manualHint': "Can’t find it? Create it yourself.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Dates, lists, rewatches",
|
'title.trackingHint': "Dates, lists, rewatches",
|
||||||
'title.rewatchCount_one': "Rewatched once",
|
'title.rewatchCount_one': "Rewatched once",
|
||||||
'title.rewatchCount_other': "Rewatched {count} times",
|
'title.rewatchCount_other': "Rewatched {count} times",
|
||||||
'title.rewatchedToday': "Rewatched today",
|
|
||||||
'sync.syncing': "Syncing…",
|
'sync.syncing': "Syncing…",
|
||||||
'sync.offline': "Offline",
|
'sync.offline': "Offline",
|
||||||
'sync.error': "Sync failed",
|
'sync.error': "Sync failed",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} more challenge",
|
'challenges.more_one': "+ {count} more challenge",
|
||||||
'challenges.more_other': "+ {count} more challenges",
|
'challenges.more_other': "+ {count} more challenges",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Notifications on this device",
|
|
||||||
'push.deviceHint': "Even when the app is closed. The choices below apply too.",
|
|
||||||
'push.iosInstall': "On iPhone and iPad, first add Kino to your Home Screen (iOS 16.4 or later), then open the app from its icon to turn on notifications.",
|
|
||||||
'push.unsupported': "This browser doesn’t support push notifications.",
|
|
||||||
'push.denied': "Notifications are blocked for this site. Allow them in your browser settings, then try again.",
|
|
||||||
'push.notReady': "Push notifications aren’t available on the server yet.",
|
|
||||||
'push.error': "Couldn’t turn on notifications. Check your connection and try again.",
|
|
||||||
'netPill.offlineSync': "Offline — your changes will sync",
|
'netPill.offlineSync': "Offline — your changes will sync",
|
||||||
'netPill.offlineLocal': "Offline — everything stays saved on this device",
|
'netPill.offlineLocal': "Offline — everything stays saved on this device",
|
||||||
'netPill.synced': "Synced",
|
'netPill.synced': "Synced",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "You’re commenting too fast — try again in a minute.",
|
'comments.err.rate': "You’re commenting too fast — try again in a minute.",
|
||||||
'comments.err.gone': "This review is no longer available.",
|
'comments.err.gone': "This review is no longer available.",
|
||||||
'comments.err.invalid': "Comment is empty or too long (500 characters max).",
|
'comments.err.invalid': "Comment is empty or too long (500 characters max).",
|
||||||
'notif.review_comment': "commented on your review",
|
|
||||||
'notif.shared_list_invite': "invited you to the shared list",
|
|
||||||
'settings.notifComments': "Comments on my reviews",
|
|
||||||
'settings.notifLists': "Shared list invitations",
|
|
||||||
'shared.title': "Shared lists",
|
'shared.title': "Shared lists",
|
||||||
'shared.hint': "Lists you build together: every member can add or remove titles.",
|
'shared.hint': "Lists you build together: every member can add or remove titles.",
|
||||||
'shared.new': "New shared list",
|
'shared.new': "New shared list",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Nobody to invite: only your followers and the people you follow can join the list.",
|
'shared.noPeople': "Nobody to invite: only your followers and the people you follow can join the list.",
|
||||||
'shared.inviteShort': "Invite",
|
'shared.inviteShort': "Invite",
|
||||||
'shared.invited': "Invited",
|
'shared.invited': "Invited",
|
||||||
'shared.expired': "invitation expired",
|
|
||||||
'shared.addTo': "Add to a shared list",
|
'shared.addTo': "Add to a shared list",
|
||||||
'shared.unavailable': "Shared lists are unavailable right now.",
|
'shared.unavailable': "Shared lists are unavailable right now.",
|
||||||
'shared.err.rate': "Too many actions in a row — try again in a minute.",
|
'shared.err.rate': "Too many actions in a row — try again in a minute.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ sobre 5',
|
'settings.scale5': '★ sobre 5',
|
||||||
'settings.scale10': 'Sobre 10',
|
'settings.scale10': 'Sobre 10',
|
||||||
'settings.ratingHint': 'Medias estrellas sobre 5, o pasos de 0,5 sobre 10. Las notas existentes se convierten automáticamente.',
|
'settings.ratingHint': 'Medias estrellas sobre 5, o pasos de 0,5 sobre 10. Las notas existentes se convierten automáticamente.',
|
||||||
'settings.theme': 'Tema',
|
|
||||||
'settings.appearance': 'Apariencia',
|
'settings.appearance': 'Apariencia',
|
||||||
'settings.appearanceHint': '«Auto» sigue tu navegador (claro u oscuro).',
|
'settings.appearanceHint': '«Auto» sigue tu navegador (claro u oscuro).',
|
||||||
'theme.modeAuto': 'Auto',
|
'theme.modeAuto': 'Auto',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'Instalar la aplicación',
|
'settings.installApp': 'Instalar la aplicación',
|
||||||
'settings.installHint': 'Añade Kino a tu pantalla de inicio o escritorio.',
|
'settings.installHint': 'Añade Kino a tu pantalla de inicio o escritorio.',
|
||||||
'settings.installed': 'Aplicación instalada',
|
'settings.installed': 'Aplicación instalada',
|
||||||
'settings.notifs': 'Notificaciones',
|
|
||||||
'settings.notifsHint': 'Elige qué activa la campana.',
|
|
||||||
'settings.notifEpisodes': 'Nuevos episodios',
|
|
||||||
'settings.notifFollows': 'Nuevos seguidores',
|
|
||||||
'settings.notifAccepted': 'Solicitudes aceptadas',
|
|
||||||
'settings.notifReactions': 'Reacciones a mis opiniones',
|
|
||||||
'notif.new_episode': 'Nuevo episodio de {title}',
|
|
||||||
'notif.new_season': 'Nueva temporada de {title}',
|
|
||||||
'reviews.title': 'Opiniones',
|
'reviews.title': 'Opiniones',
|
||||||
'reviews.friends': 'Tus amigos',
|
'reviews.friends': 'Tus amigos',
|
||||||
'reviews.others': 'Otros miembros',
|
'reviews.others': 'Otros miembros',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Ninguna otra opinión',
|
'reviews.noneOthers': 'Ninguna otra opinión',
|
||||||
'reviews.none': 'Aún no hay opiniones',
|
'reviews.none': 'Aún no hay opiniones',
|
||||||
'reviews.seeAll': 'Ver todas las opiniones',
|
'reviews.seeAll': 'Ver todas las opiniones',
|
||||||
'reviews.react': 'Reaccionar',
|
|
||||||
'notif.title': 'Notificaciones',
|
|
||||||
'notif.empty': 'Sin notificaciones',
|
|
||||||
'notif.someone': 'Alguien',
|
'notif.someone': 'Alguien',
|
||||||
'notif.follow_request': 'quiere seguirte',
|
|
||||||
'notif.follow_accepted': 'aceptó tu solicitud',
|
|
||||||
'notif.new_follower': 'empezó a seguirte',
|
|
||||||
'notif.reaction': 'reaccionó a tu opinión',
|
|
||||||
'notif.on': 'en {title}',
|
|
||||||
'home.notifications': 'Notificaciones',
|
|
||||||
'home.notificationsN': '{count} notificaciones',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Instalar Kino',
|
'install.title': 'Instalar Kino',
|
||||||
'install.ios': 'Abre Kino en Safari.\nToca el botón Compartir (el cuadrado con una flecha hacia arriba).\nElige «Añadir a inicio» y luego «Añadir».',
|
'install.ios': 'Abre Kino en Safari.\nToca el botón Compartir (el cuadrado con una flecha hacia arriba).\nElige «Añadir a inicio» y luego «Añadir».',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Demasiados intentos, vuelve a intentarlo en un minuto.',
|
'account.err.deleteRate': 'Demasiados intentos, vuelve a intentarlo en un minuto.',
|
||||||
'account.err.delete': 'No se pudo eliminar. Vuelve a intentarlo más tarde.',
|
'account.err.delete': 'No se pudo eliminar. Vuelve a intentarlo más tarde.',
|
||||||
'account.title': 'Mi cuenta',
|
'account.title': 'Mi cuenta',
|
||||||
'account.syncing': 'Sincronizando…',
|
|
||||||
'account.offline': 'Sin conexión — todo se guarda en este dispositivo',
|
|
||||||
'account.syncError': 'No se puede sincronizar por ahora',
|
|
||||||
'account.synced': 'Sincronizado {when}',
|
|
||||||
'account.passwordChanged': 'Contraseña cambiada.',
|
'account.passwordChanged': 'Contraseña cambiada.',
|
||||||
'account.imported_one': '{count} título añadido a tu cuenta.',
|
'account.imported_one': '{count} título añadido a tu cuenta.',
|
||||||
'account.imported_other': '{count} títulos añadidos a tu cuenta.',
|
'account.imported_other': '{count} títulos añadidos a tu cuenta.',
|
||||||
'account.importFailed': 'La importación falló.',
|
'account.importFailed': 'La importación falló.',
|
||||||
'account.pending_one': '{count} pendiente',
|
|
||||||
'account.pending_other': '{count} pendientes',
|
|
||||||
'account.syncNow': 'Sincronizar ahora',
|
|
||||||
'account.newPasswordPh': 'Nueva contraseña (mín. {n} caracteres)',
|
'account.newPasswordPh': 'Nueva contraseña (mín. {n} caracteres)',
|
||||||
'account.changePassword': 'Cambiar la contraseña',
|
'account.changePassword': 'Cambiar la contraseña',
|
||||||
'account.logout': 'Cerrar sesión',
|
'account.logout': 'Cerrar sesión',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'Este dispositivo tiene {titles} creados antes de tu cuenta. ¿Añadirlos a tu cuenta?',
|
'account.deviceData': 'Este dispositivo tiene {titles} creados antes de tu cuenta. ¿Añadirlos a tu cuenta?',
|
||||||
'account.deviceDataWithLists': 'Este dispositivo tiene {titles} y {lists} creados antes de tu cuenta. ¿Añadirlos a tu cuenta?',
|
'account.deviceDataWithLists': 'Este dispositivo tiene {titles} y {lists} creados antes de tu cuenta. ¿Añadirlos a tu cuenta?',
|
||||||
|
|
||||||
'time.never': 'nunca',
|
|
||||||
'time.justNow': 'ahora mismo',
|
'time.justNow': 'ahora mismo',
|
||||||
'time.minutesAgo': 'hace {n} min',
|
'time.minutesAgo': 'hace {n} min',
|
||||||
'time.hoursAgo': 'hace {n} h',
|
'time.hoursAgo': 'hace {n} h',
|
||||||
'time.onDate': 'el {date}',
|
|
||||||
'time.today': 'hoy',
|
'time.today': 'hoy',
|
||||||
'time.tomorrow': 'mañana',
|
'time.tomorrow': 'mañana',
|
||||||
'time.daysAgo': 'hace {n} d',
|
'time.daysAgo': 'hace {n} d',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Añadido',
|
'reco.addedShort': 'Añadido',
|
||||||
|
|
||||||
'search.offline': 'Sin conexión a internet: la búsqueda necesita red.',
|
'search.offline': 'Sin conexión a internet: la búsqueda necesita red.',
|
||||||
'search.fillFrom': 'Rellenar desde una base de datos',
|
|
||||||
'search.openSettings': 'Abrir Ajustes',
|
'search.openSettings': 'Abrir Ajustes',
|
||||||
'search.already': 'ya añadido',
|
|
||||||
'search.noResults': 'Sin resultados. Puedes rellenar la ficha a mano abajo.',
|
|
||||||
'search.privacy': 'Solo se envía a {source} el título que buscas. Tu biblioteca se queda en tu teléfono.',
|
'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.sortRecent': 'Editados recientemente',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Añade tu primer título con el botón +.',
|
'catalog.nothingYetHint': 'Añade tu primer título con el botón +.',
|
||||||
'catalog.clearFilters': 'Borrar filtros',
|
'catalog.clearFilters': 'Borrar filtros',
|
||||||
|
|
||||||
'public.agree': 'Clavado a la opinión del público',
|
|
||||||
'public.more': '+{gap} más que el público',
|
|
||||||
'public.less': '−{gap} menos que el público',
|
|
||||||
'public.label': 'Público',
|
|
||||||
'public.me': 'Yo',
|
|
||||||
'public.added_one': '{count} nota del público añadida.',
|
|
||||||
'public.added_other': '{count} notas del público añadidas.',
|
|
||||||
'public.noneFound': 'No se encontraron notas nuevas.',
|
|
||||||
'public.fetch': 'Obtener ({n})',
|
|
||||||
'public.title': 'Yo vs. el público',
|
|
||||||
'public.hintFetch': 'Obtén la nota media de TMDB / AniList de tus títulos puntuados para ver en qué te diferencias del público.',
|
|
||||||
'public.hintNone': 'No hay notas públicas disponibles para tus títulos puntuados en este periodo.',
|
|
||||||
'public.hintKey': 'Añade tu clave de TMDB en Ajustes (o animes vinculados a AniList) para compararte con el público.',
|
|
||||||
'public.avgGap': 'Diferencia media',
|
|
||||||
'public.average': 'En la media',
|
|
||||||
'public.generous': 'Más generoso que el público',
|
|
||||||
'public.harsh': 'Más exigente que el público',
|
|
||||||
'public.agreeTitle': 'De acuerdo',
|
|
||||||
'public.within5_one': 'con ½ estrella de margen, en {count} título',
|
|
||||||
'public.within5_other': 'con ½ estrella de margen, en {count} títulos',
|
|
||||||
'public.within10_one': 'con 1 punto de margen, en {count} título',
|
|
||||||
'public.within10_other': 'con 1 punto de margen, en {count} títulos',
|
|
||||||
'public.lovedPre': 'Me ',
|
|
||||||
'public.lovedAccent': 'gustó más',
|
|
||||||
'public.lovedPost': ' que al público',
|
|
||||||
'public.hatedPre': 'Me ',
|
|
||||||
'public.hatedAccent': 'gustó menos',
|
|
||||||
'public.hatedPost': ' que al público',
|
|
||||||
'public.allAgree': 'Estás de acuerdo con el público en todos tus títulos. ¡Qué raro!',
|
|
||||||
|
|
||||||
'form.rewatchHint': '¿Lo volviste a ver? Anota cada revisionado y aparecerá en tu diario.',
|
'form.rewatchHint': '¿Lo volviste a ver? Anota cada revisionado y aparecerá en tu diario.',
|
||||||
'form.editTitle': 'Editar la ',
|
|
||||||
'form.editAccent': 'ficha',
|
|
||||||
'form.newTitle': 'Nuevo ',
|
|
||||||
'form.newAccent': 'título',
|
|
||||||
'form.filledFrom': 'Rellenado desde',
|
|
||||||
'form.canEdit': 'puedes editarlo todo',
|
|
||||||
'form.fillFromDb': 'Completar desde TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Elegir un póster',
|
'form.pickPoster': 'Elegir un póster',
|
||||||
'form.removeImage': 'Quitar la imagen',
|
'form.removeImage': 'Quitar la imagen',
|
||||||
'form.title': 'Título *',
|
'form.title': 'Título *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Tipo',
|
'form.type': 'Tipo',
|
||||||
'form.subtype': 'Subtipo',
|
'form.subtype': 'Subtipo',
|
||||||
'form.subtypePh': 'Documental, Reality show…',
|
'form.subtypePh': 'Documental, Reality show…',
|
||||||
'form.status': 'Estado',
|
|
||||||
'form.myRating': 'Mi nota',
|
|
||||||
'form.favorite': 'Favorito',
|
'form.favorite': 'Favorito',
|
||||||
'form.criteria': 'Criterios detallados (opcional)',
|
|
||||||
'form.episodes': 'Episodios',
|
'form.episodes': 'Episodios',
|
||||||
'form.minusEp': '-1 episodio',
|
'form.minusEp': '-1 episodio',
|
||||||
'form.plusEp': '+1 episodio',
|
'form.plusEp': '+1 episodio',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Revisionados',
|
'form.rewatches': 'Revisionados',
|
||||||
'form.review': 'Mi opinión',
|
'form.review': 'Mi opinión',
|
||||||
'form.reviewPh': 'Lo que me pareció, escenas que me marcaron…',
|
'form.reviewPh': 'Lo que me pareció, escenas que me marcaron…',
|
||||||
'form.saveChanges': 'Guardar los cambios',
|
|
||||||
'form.addToLibrary': 'Añadir a mi biblioteca',
|
|
||||||
'form.shareImage': 'Compartir como imagen',
|
'form.shareImage': 'Compartir como imagen',
|
||||||
'form.delete': 'Eliminar este título',
|
'form.delete': 'Eliminar este título',
|
||||||
'form.deleteConfirm': '«{title}» se eliminará para siempre.',
|
'form.deleteConfirm': '«{title}» se eliminará para siempre.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count} vistos',
|
'journal.seen_other': '{count} vistos',
|
||||||
'journal.more': 'Mostrar los meses anteriores',
|
'journal.more': 'Mostrar los meses anteriores',
|
||||||
|
|
||||||
'stats.overview': 'Resumen',
|
|
||||||
'stats.habits': 'Hábitos',
|
|
||||||
'stats.tastes': 'Gustos',
|
|
||||||
'stats.pageTitle': 'Mis ',
|
'stats.pageTitle': 'Mis ',
|
||||||
'stats.pageAccent': 'estadísticas',
|
'stats.pageAccent': 'estadísticas',
|
||||||
'stats.emptyTitle': 'Aún no hay estadísticas',
|
'stats.emptyTitle': 'Aún no hay estadísticas',
|
||||||
'stats.emptyText': 'Aparecerán en cuanto hayas añadido títulos.',
|
'stats.emptyText': 'Aparecerán en cuanto hayas añadido títulos.',
|
||||||
'stats.sinceStart': 'desde el principio',
|
|
||||||
'stats.subtitle_one': '{count} título en mi biblioteca',
|
'stats.subtitle_one': '{count} título en mi biblioteca',
|
||||||
'stats.subtitle_other': '{count} títulos en mi biblioteca',
|
'stats.subtitle_other': '{count} títulos en mi biblioteca',
|
||||||
'stats.subtitleYear_one': '{count} título en {year}',
|
'stats.subtitleYear_one': '{count} título en {year}',
|
||||||
'stats.subtitleYear_other': '{count} títulos en {year}',
|
'stats.subtitleYear_other': '{count} títulos en {year}',
|
||||||
'stats.hours_one': 'hora',
|
|
||||||
'stats.hours_other': 'horas',
|
|
||||||
'stats.nonStopPre': 'o sea, ',
|
'stats.nonStopPre': 'o sea, ',
|
||||||
'stats.nonStopPost': ' sin parar',
|
'stats.nonStopPost': ' sin parar',
|
||||||
'stats.days_one': '{count} día',
|
'stats.days_one': '{count} día',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} episodio',
|
'stats.episodesN_one': '{count} episodio',
|
||||||
'stats.episodesN_other': '{count} episodios',
|
'stats.episodesN_other': '{count} episodios',
|
||||||
'stats.timeByType': 'Tiempo por tipo',
|
'stats.timeByType': 'Tiempo por tipo',
|
||||||
'stats.noTime': 'Aún no hay tiempo registrado en este periodo.',
|
|
||||||
'stats.avgRating': 'Nota media',
|
'stats.avgRating': 'Nota media',
|
||||||
'stats.rated_one': '{count} título puntuado',
|
'stats.rated_one': '{count} título puntuado',
|
||||||
'stats.rated_other': '{count} títulos puntuados',
|
'stats.rated_other': '{count} títulos puntuados',
|
||||||
'stats.inYear': 'en {year}',
|
|
||||||
'stats.statuses': 'Estados',
|
'stats.statuses': 'Estados',
|
||||||
'stats.hoursTab': 'Horas',
|
|
||||||
'stats.monthByMonth': 'Mes a mes · {year}',
|
'stats.monthByMonth': 'Mes a mes · {year}',
|
||||||
'stats.last12': 'Últimos 12 meses',
|
'stats.last12': 'Últimos 12 meses',
|
||||||
'stats.monthFinished_one': '{count} título terminado',
|
'stats.monthFinished_one': '{count} título terminado',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Récords',
|
'stats.records': 'Récords',
|
||||||
'stats.marathon': 'Mayor maratón',
|
'stats.marathon': 'Mayor maratón',
|
||||||
'stats.longestFilm': 'Película más larga',
|
'stats.longestFilm': 'Película más larga',
|
||||||
'stats.noRecords': 'Aún no hay récords en este periodo.',
|
|
||||||
'stats.platforms': 'Plataformas',
|
'stats.platforms': 'Plataformas',
|
||||||
'stats.bestRated': 'Mis mejor puntuados',
|
'stats.bestRated': 'Mis mejor puntuados',
|
||||||
'stats.myRatings': 'Mis notas',
|
'stats.myRatings': 'Mis notas',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Géneros favoritos',
|
'stats.favGenres': 'Géneros favoritos',
|
||||||
'stats.noGenres': 'Aún no hay géneros.',
|
'stats.noGenres': 'Aún no hay géneros.',
|
||||||
'stats.countries': 'Países',
|
'stats.countries': 'Países',
|
||||||
'stats.noCountry_one': '{count} título sin país: complétalo con «Completar desde TMDB / AniList» en la ficha.',
|
|
||||||
'stats.noCountry_other': '{count} títulos sin país: complétalos con «Completar desde TMDB / AniList» en la ficha.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} título sin país: complétalo con «Completar desde TMDB / AniList» en la ficha, o vuelve a importar la copia de seguridad de tu app antigua («Combinar»).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} títulos sin país: complétalos con «Completar desde TMDB / AniList» en la ficha, o vuelve a importar la copia de seguridad de tu app antigua («Combinar»).',
|
|
||||||
'stats.byType': 'Por tipo',
|
|
||||||
'stats.footnote': 'Tiempo estimado a partir de los episodios vistos y las duraciones indicadas (si no: película 1 h 50, episodio de anime 24 min, serie 45 min, K-drama 1 h, C-drama 45 min). Un título cuenta para el año en que lo terminé.',
|
'stats.footnote': 'Tiempo estimado a partir de los episodios vistos y las duraciones indicadas (si no: película 1 h 50, episodio de anime 24 min, serie 45 min, K-drama 1 h, C-drama 45 min). Un título cuenta para el año en que lo terminé.',
|
||||||
'stats.ratedAs_one': 'puntuado {rating}',
|
'stats.ratedAs_one': 'puntuado {rating}',
|
||||||
'stats.ratedAs_other': 'puntuados {rating}',
|
'stats.ratedAs_other': 'puntuados {rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "Más tarde",
|
'welcome.later': "Más tarde",
|
||||||
'social.watching': "Viendo",
|
'social.watching': "Viendo",
|
||||||
'social.watchlist': "Quiere ver",
|
'social.watchlist': "Quiere ver",
|
||||||
'search.allKinds': "Películas, series y anime",
|
|
||||||
'search.animeOnly': "Sin clave de TMDB solo se encuentran animes.",
|
'search.animeOnly': "Sin clave de TMDB solo se encuentran animes.",
|
||||||
'search.alreadySeries': "ya está en tu biblioteca — abrir",
|
|
||||||
'form.startShort': "Empezado",
|
'form.startShort': "Empezado",
|
||||||
'form.endShort': "Terminado",
|
'form.endShort': "Terminado",
|
||||||
'hero.allSeen': "Todo visto",
|
'hero.allSeen': "Todo visto",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Al día',
|
'hero.upToDate': 'Al día',
|
||||||
'hero.seenEp': "He visto {ep}",
|
'hero.seenEp': "He visto {ep}",
|
||||||
'hero.seen': "Visto",
|
'hero.seen': "Visto",
|
||||||
'hero.markSeen': "Marcar como visto",
|
|
||||||
'hero.edit': "Editar datos",
|
'hero.edit': "Editar datos",
|
||||||
'hero.more': "Leer más",
|
'hero.more': "Leer más",
|
||||||
'hero.less': "Ver menos",
|
'hero.less': "Ver menos",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "Ficha",
|
'homeHero.details': "Ficha",
|
||||||
'homeHero.continueRow': "Seguir viendo",
|
'homeHero.continueRow': "Seguir viendo",
|
||||||
'homeHero.nextUp': "Siguiente: {ep}",
|
'homeHero.nextUp': "Siguiente: {ep}",
|
||||||
'title.addTitle': "Añadir un título",
|
|
||||||
'title.searchPh': "Película, serie, anime, drama…",
|
|
||||||
'title.searchHint': "Busca un título y abre su ficha para puntuarlo, marcarlo como visto o añadirlo a tu lista.",
|
|
||||||
'title.noResults': "Sin resultados.",
|
'title.noResults': "Sin resultados.",
|
||||||
'title.manual': "Añadir manualmente",
|
'title.manual': "Añadir manualmente",
|
||||||
'title.manualHint': "¿No lo encuentras? Crea la ficha tú mismo.",
|
'title.manualHint': "¿No lo encuentras? Crea la ficha tú mismo.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Fechas, listas, revisionados",
|
'title.trackingHint': "Fechas, listas, revisionados",
|
||||||
'title.rewatchCount_one': "Vuelto a ver una vez",
|
'title.rewatchCount_one': "Vuelto a ver una vez",
|
||||||
'title.rewatchCount_other': "Vuelto a ver {count} veces",
|
'title.rewatchCount_other': "Vuelto a ver {count} veces",
|
||||||
'title.rewatchedToday': "Vuelto a ver hoy",
|
|
||||||
'sync.syncing': "Sincronizando…",
|
'sync.syncing': "Sincronizando…",
|
||||||
'sync.offline': "Sin conexión",
|
'sync.offline': "Sin conexión",
|
||||||
'sync.error': "La sincronización falló",
|
'sync.error': "La sincronización falló",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} reto más",
|
'challenges.more_one': "+ {count} reto más",
|
||||||
'challenges.more_other': "+ {count} retos más",
|
'challenges.more_other': "+ {count} retos más",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Notificaciones en este dispositivo",
|
|
||||||
'push.deviceHint': "Incluso con la app cerrada. Las opciones de abajo también se aplican.",
|
|
||||||
'push.iosInstall': "En iPhone y iPad, primero añade Kino a la pantalla de inicio (iOS 16.4 o posterior) y abre la app desde su icono para activar las notificaciones.",
|
|
||||||
'push.unsupported': "Este navegador no admite notificaciones push.",
|
|
||||||
'push.denied': "Las notificaciones están bloqueadas para este sitio. Permítelas en los ajustes del navegador y vuelve a intentarlo.",
|
|
||||||
'push.notReady': "Las notificaciones push aún no están disponibles en el servidor.",
|
|
||||||
'push.error': "No se pudieron activar las notificaciones. Comprueba tu conexión e inténtalo de nuevo.",
|
|
||||||
'netPill.offlineSync': "Sin conexión — tus cambios se sincronizarán",
|
'netPill.offlineSync': "Sin conexión — tus cambios se sincronizarán",
|
||||||
'netPill.offlineLocal': "Sin conexión — todo queda guardado en este dispositivo",
|
'netPill.offlineLocal': "Sin conexión — todo queda guardado en este dispositivo",
|
||||||
'netPill.synced': "Sincronizado",
|
'netPill.synced': "Sincronizado",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Comentas demasiado rápido: vuelve a intentarlo en un minuto.",
|
'comments.err.rate': "Comentas demasiado rápido: vuelve a intentarlo en un minuto.",
|
||||||
'comments.err.gone': "Esta reseña ya no está disponible.",
|
'comments.err.gone': "Esta reseña ya no está disponible.",
|
||||||
'comments.err.invalid': "Comentario vacío o demasiado largo (máx. 500 caracteres).",
|
'comments.err.invalid': "Comentario vacío o demasiado largo (máx. 500 caracteres).",
|
||||||
'notif.review_comment': "comentó tu reseña",
|
|
||||||
'notif.shared_list_invite': "te invitó a la lista compartida",
|
|
||||||
'settings.notifComments': "Comentarios en mis reseñas",
|
|
||||||
'settings.notifLists': "Invitaciones a listas compartidas",
|
|
||||||
'shared.title': "Listas compartidas",
|
'shared.title': "Listas compartidas",
|
||||||
'shared.hint': "Listas entre varios: cada miembro puede añadir o quitar títulos.",
|
'shared.hint': "Listas entre varios: cada miembro puede añadir o quitar títulos.",
|
||||||
'shared.new': "Nueva lista compartida",
|
'shared.new': "Nueva lista compartida",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Nadie a quien invitar: solo tus seguidores y las personas que sigues pueden unirse.",
|
'shared.noPeople': "Nadie a quien invitar: solo tus seguidores y las personas que sigues pueden unirse.",
|
||||||
'shared.inviteShort': "Invitar",
|
'shared.inviteShort': "Invitar",
|
||||||
'shared.invited': "Invitado",
|
'shared.invited': "Invitado",
|
||||||
'shared.expired': "invitación caducada",
|
|
||||||
'shared.addTo': "Añadir a una lista compartida",
|
'shared.addTo': "Añadir a una lista compartida",
|
||||||
'shared.unavailable': "Las listas compartidas no están disponibles por ahora.",
|
'shared.unavailable': "Las listas compartidas no están disponibles por ahora.",
|
||||||
'shared.err.rate': "Demasiadas acciones seguidas: vuelve a intentarlo en un minuto.",
|
'shared.err.rate': "Demasiadas acciones seguidas: vuelve a intentarlo en un minuto.",
|
||||||
|
|||||||
@@ -229,7 +229,6 @@ const dict = {
|
|||||||
'settings.scale5': '★ sur 5',
|
'settings.scale5': '★ sur 5',
|
||||||
'settings.scale10': 'Sur 10',
|
'settings.scale10': 'Sur 10',
|
||||||
'settings.ratingHint': 'Demi-étoiles sur 5, ou pas de 0,5 sur 10. Les notes existantes sont converties automatiquement.',
|
'settings.ratingHint': 'Demi-étoiles sur 5, ou pas de 0,5 sur 10. Les notes existantes sont converties automatiquement.',
|
||||||
'settings.theme': 'Thème',
|
|
||||||
'settings.appearance': 'Apparence',
|
'settings.appearance': 'Apparence',
|
||||||
'settings.appearanceHint': '« Auto » suit ton navigateur (clair ou sombre).',
|
'settings.appearanceHint': '« Auto » suit ton navigateur (clair ou sombre).',
|
||||||
'theme.modeAuto': 'Auto',
|
'theme.modeAuto': 'Auto',
|
||||||
@@ -241,14 +240,6 @@ const dict = {
|
|||||||
'settings.installApp': 'Installer l\'application',
|
'settings.installApp': 'Installer l\'application',
|
||||||
'settings.installHint': 'Ajoute Kino à ton écran d\'accueil ou ton bureau.',
|
'settings.installHint': 'Ajoute Kino à ton écran d\'accueil ou ton bureau.',
|
||||||
'settings.installed': 'Application installée',
|
'settings.installed': 'Application installée',
|
||||||
'settings.notifs': 'Notifications',
|
|
||||||
'settings.notifsHint': 'Choisis ce qui déclenche la cloche.',
|
|
||||||
'settings.notifEpisodes': 'Nouveaux épisodes',
|
|
||||||
'settings.notifFollows': 'Nouveaux abonnés',
|
|
||||||
'settings.notifAccepted': 'Demandes acceptées',
|
|
||||||
'settings.notifReactions': 'Réactions à mes avis',
|
|
||||||
'notif.new_episode': 'Nouvel épisode de {title}',
|
|
||||||
'notif.new_season': 'Nouvelle saison de {title}',
|
|
||||||
'reviews.title': 'Avis',
|
'reviews.title': 'Avis',
|
||||||
'reviews.friends': 'Tes amis',
|
'reviews.friends': 'Tes amis',
|
||||||
'reviews.others': 'Autres membres',
|
'reviews.others': 'Autres membres',
|
||||||
@@ -256,17 +247,7 @@ const dict = {
|
|||||||
'reviews.noneOthers': 'Aucun autre avis',
|
'reviews.noneOthers': 'Aucun autre avis',
|
||||||
'reviews.none': 'Aucun avis pour le moment',
|
'reviews.none': 'Aucun avis pour le moment',
|
||||||
'reviews.seeAll': 'Voir tous les avis',
|
'reviews.seeAll': 'Voir tous les avis',
|
||||||
'reviews.react': 'Réagir',
|
|
||||||
'notif.title': 'Notifications',
|
|
||||||
'notif.empty': 'Aucune notification',
|
|
||||||
'notif.someone': 'Quelqu’un',
|
'notif.someone': 'Quelqu’un',
|
||||||
'notif.follow_request': 'veut s’abonner à toi',
|
|
||||||
'notif.follow_accepted': 'a accepté ta demande',
|
|
||||||
'notif.new_follower': 's’est abonné à toi',
|
|
||||||
'notif.reaction': 'a réagi à ton avis',
|
|
||||||
'notif.on': 'sur {title}',
|
|
||||||
'home.notifications': 'Notifications',
|
|
||||||
'home.notificationsN': '{count} notifications',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Vue d\'ensemble',
|
'admin.tabOverview': 'Vue d\'ensemble',
|
||||||
@@ -290,8 +271,6 @@ const dict = {
|
|||||||
'admin.signupsChart': 'Inscriptions — 14 derniers jours',
|
'admin.signupsChart': 'Inscriptions — 14 derniers jours',
|
||||||
'admin.searchUsers': 'Rechercher un compte…',
|
'admin.searchUsers': 'Rechercher un compte…',
|
||||||
'admin.joined': 'Inscrit le {date}',
|
'admin.joined': 'Inscrit le {date}',
|
||||||
'admin.lastSeen': 'Vu {ago}',
|
|
||||||
'admin.never': 'jamais',
|
|
||||||
'admin.suspend': 'Suspendre',
|
'admin.suspend': 'Suspendre',
|
||||||
'admin.unsuspend': 'Réactiver',
|
'admin.unsuspend': 'Réactiver',
|
||||||
'admin.suspendedBadge': 'Suspendu',
|
'admin.suspendedBadge': 'Suspendu',
|
||||||
@@ -301,7 +280,6 @@ const dict = {
|
|||||||
'admin.statReviews': 'avis',
|
'admin.statReviews': 'avis',
|
||||||
'admin.statFollowers': 'abonnés',
|
'admin.statFollowers': 'abonnés',
|
||||||
'admin.clearReview': 'Effacer l\'avis',
|
'admin.clearReview': 'Effacer l\'avis',
|
||||||
'admin.reviewCleared': 'Avis effacé',
|
|
||||||
'admin.noReviews': 'Aucun avis',
|
'admin.noReviews': 'Aucun avis',
|
||||||
'admin.confirmClearTitle': 'Effacer cet avis ?',
|
'admin.confirmClearTitle': 'Effacer cet avis ?',
|
||||||
'admin.confirmClearMsg': 'L\'avis sera retiré du profil du membre à sa prochaine synchronisation.',
|
'admin.confirmClearMsg': 'L\'avis sera retiré du profil du membre à sa prochaine synchronisation.',
|
||||||
@@ -309,8 +287,6 @@ const dict = {
|
|||||||
'admin.confirmSuspendMsg': 'Son profil sera masqué pour les autres membres. Réversible à tout moment.',
|
'admin.confirmSuspendMsg': 'Son profil sera masqué pour les autres membres. Réversible à tout moment.',
|
||||||
'admin.confirmUnsuspendTitle': 'Réactiver ce compte ?',
|
'admin.confirmUnsuspendTitle': 'Réactiver ce compte ?',
|
||||||
'admin.confirmUnsuspendMsg': 'Son profil redeviendra visible.',
|
'admin.confirmUnsuspendMsg': 'Son profil redeviendra visible.',
|
||||||
'admin.suspendedDone': 'Compte suspendu',
|
|
||||||
'admin.reactivatedDone': 'Compte réactivé',
|
|
||||||
'admin.loadError': 'Impossible de charger les données.',
|
'admin.loadError': 'Impossible de charger les données.',
|
||||||
'install.title': 'Installer Kino',
|
'install.title': 'Installer Kino',
|
||||||
'install.ios': 'Ouvre Kino dans Safari.\nAppuie sur le bouton Partager (le carré avec une flèche vers le haut).\nChoisis « Sur l\'écran d\'accueil », puis « Ajouter ».',
|
'install.ios': 'Ouvre Kino dans Safari.\nAppuie sur le bouton Partager (le carré avec une flèche vers le haut).\nChoisis « Sur l\'écran d\'accueil », puis « Ajouter ».',
|
||||||
@@ -410,17 +386,10 @@ const dict = {
|
|||||||
'account.err.deleteRate': 'Trop de tentatives, réessaie dans une minute.',
|
'account.err.deleteRate': 'Trop de tentatives, réessaie dans une minute.',
|
||||||
'account.err.delete': 'La suppression a échoué. Réessaie plus tard.',
|
'account.err.delete': 'La suppression a échoué. Réessaie plus tard.',
|
||||||
'account.title': 'Mon compte',
|
'account.title': 'Mon compte',
|
||||||
'account.syncing': 'Synchronisation…',
|
|
||||||
'account.offline': 'Hors-ligne — tout est gardé sur cet appareil',
|
|
||||||
'account.syncError': 'Synchronisation impossible pour le moment',
|
|
||||||
'account.synced': 'Synchronisé {when}',
|
|
||||||
'account.passwordChanged': 'Mot de passe modifié.',
|
'account.passwordChanged': 'Mot de passe modifié.',
|
||||||
'account.imported_one': '{count} titre ajouté à ton compte.',
|
'account.imported_one': '{count} titre ajouté à ton compte.',
|
||||||
'account.imported_other': '{count} titres ajoutés à ton compte.',
|
'account.imported_other': '{count} titres ajoutés à ton compte.',
|
||||||
'account.importFailed': 'L\'import a échoué.',
|
'account.importFailed': 'L\'import a échoué.',
|
||||||
'account.pending_one': '{count} en attente',
|
|
||||||
'account.pending_other': '{count} en attente',
|
|
||||||
'account.syncNow': 'Synchroniser maintenant',
|
|
||||||
'account.newPasswordPh': 'Nouveau mot de passe ({n} caractères min.)',
|
'account.newPasswordPh': 'Nouveau mot de passe ({n} caractères min.)',
|
||||||
'account.changePassword': 'Changer le mot de passe',
|
'account.changePassword': 'Changer le mot de passe',
|
||||||
'account.logout': 'Se déconnecter',
|
'account.logout': 'Se déconnecter',
|
||||||
@@ -438,11 +407,9 @@ const dict = {
|
|||||||
'account.deviceData': 'Cet appareil contient {titles} créés avant ton compte. Les ajouter à ton compte ?',
|
'account.deviceData': 'Cet appareil contient {titles} créés avant ton compte. Les ajouter à ton compte ?',
|
||||||
'account.deviceDataWithLists': 'Cet appareil contient {titles} et {lists} créés avant ton compte. Les ajouter à ton compte ?',
|
'account.deviceDataWithLists': 'Cet appareil contient {titles} et {lists} créés avant ton compte. Les ajouter à ton compte ?',
|
||||||
|
|
||||||
'time.never': 'jamais',
|
|
||||||
'time.justNow': 'à l\'instant',
|
'time.justNow': 'à l\'instant',
|
||||||
'time.minutesAgo': 'il y a {n} min',
|
'time.minutesAgo': 'il y a {n} min',
|
||||||
'time.hoursAgo': 'il y a {n} h',
|
'time.hoursAgo': 'il y a {n} h',
|
||||||
'time.onDate': 'le {date}',
|
|
||||||
'time.today': 'aujourd\'hui',
|
'time.today': 'aujourd\'hui',
|
||||||
'time.tomorrow': 'demain',
|
'time.tomorrow': 'demain',
|
||||||
'time.daysAgo': 'il y a {n} j',
|
'time.daysAgo': 'il y a {n} j',
|
||||||
@@ -559,10 +526,7 @@ const dict = {
|
|||||||
'reco.addedShort': 'Ajouté',
|
'reco.addedShort': 'Ajouté',
|
||||||
|
|
||||||
'search.offline': 'Pas de connexion Internet : la recherche nécessite le réseau.',
|
'search.offline': 'Pas de connexion Internet : la recherche nécessite le réseau.',
|
||||||
'search.fillFrom': 'Remplir depuis une base',
|
|
||||||
'search.openSettings': 'Ouvrir les Réglages',
|
'search.openSettings': 'Ouvrir les Réglages',
|
||||||
'search.already': 'déjà ajouté',
|
|
||||||
'search.noResults': 'Aucun résultat. Tu peux remplir la fiche à la main ci-dessous.',
|
|
||||||
'search.privacy': 'Seul le titre recherché est envoyé à {source}. Ta bibliothèque reste sur ton téléphone.',
|
'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.sortRecent': 'Modifiés récemment',
|
||||||
@@ -592,44 +556,8 @@ const dict = {
|
|||||||
'catalog.nothingYetHint': 'Ajoute ton premier titre avec le bouton +.',
|
'catalog.nothingYetHint': 'Ajoute ton premier titre avec le bouton +.',
|
||||||
'catalog.clearFilters': 'Effacer les filtres',
|
'catalog.clearFilters': 'Effacer les filtres',
|
||||||
|
|
||||||
'public.agree': 'Pile dans l\'avis du public',
|
|
||||||
'public.more': '+{gap} de plus que le public',
|
|
||||||
'public.less': '−{gap} de moins que le public',
|
|
||||||
'public.label': 'Public',
|
|
||||||
'public.me': 'Moi',
|
|
||||||
'public.added_one': '{count} note du public ajoutée.',
|
|
||||||
'public.added_other': '{count} notes du public ajoutées.',
|
|
||||||
'public.noneFound': 'Aucune nouvelle note trouvée.',
|
|
||||||
'public.fetch': 'Récupérer ({n})',
|
|
||||||
'public.title': 'Moi vs le public',
|
|
||||||
'public.hintFetch': 'Récupère la note moyenne TMDB / AniList de tes titres notés pour voir où tu te démarques du public.',
|
|
||||||
'public.hintNone': 'Aucune note publique disponible pour tes titres notés sur cette période.',
|
|
||||||
'public.hintKey': 'Ajoute ta clé TMDB dans les Réglages (ou des animes liés à AniList) pour te comparer au public.',
|
|
||||||
'public.avgGap': 'Écart moyen',
|
|
||||||
'public.average': 'Dans la moyenne',
|
|
||||||
'public.generous': 'Plus généreux que le public',
|
|
||||||
'public.harsh': 'Plus sévère que le public',
|
|
||||||
'public.agreeTitle': 'D\'accord',
|
|
||||||
'public.within5_one': 'à ½ étoile près, sur {count} titre',
|
|
||||||
'public.within5_other': 'à ½ étoile près, sur {count} titres',
|
|
||||||
'public.within10_one': 'à 1 point près, sur {count} titre',
|
|
||||||
'public.within10_other': 'à 1 point près, sur {count} titres',
|
|
||||||
'public.lovedPre': 'J\'ai ',
|
|
||||||
'public.lovedAccent': 'plus aimé',
|
|
||||||
'public.lovedPost': ' que le public',
|
|
||||||
'public.hatedPre': 'J\'ai ',
|
|
||||||
'public.hatedAccent': 'moins aimé',
|
|
||||||
'public.hatedPost': ' que le public',
|
|
||||||
'public.allAgree': 'Tu es d\'accord avec le public sur tous tes titres. Rare !',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Tu l\'as revu ? Note chaque revisionnage, il apparaîtra dans ton journal.',
|
'form.rewatchHint': 'Tu l\'as revu ? Note chaque revisionnage, il apparaîtra dans ton journal.',
|
||||||
'form.editTitle': 'Modifier la ',
|
|
||||||
'form.editAccent': 'fiche',
|
|
||||||
'form.newTitle': 'Nouveau ',
|
|
||||||
'form.newAccent': 'titre',
|
|
||||||
'form.filledFrom': 'Rempli depuis',
|
|
||||||
'form.canEdit': 'tu peux tout modifier',
|
|
||||||
'form.fillFromDb': 'Compléter depuis TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Choisir une affiche',
|
'form.pickPoster': 'Choisir une affiche',
|
||||||
'form.removeImage': 'Retirer l\'image',
|
'form.removeImage': 'Retirer l\'image',
|
||||||
'form.title': 'Titre *',
|
'form.title': 'Titre *',
|
||||||
@@ -640,10 +568,7 @@ const dict = {
|
|||||||
'form.type': 'Type',
|
'form.type': 'Type',
|
||||||
'form.subtype': 'Précision',
|
'form.subtype': 'Précision',
|
||||||
'form.subtypePh': 'Documentaire, Télé-réalité…',
|
'form.subtypePh': 'Documentaire, Télé-réalité…',
|
||||||
'form.status': 'Statut',
|
|
||||||
'form.myRating': 'Ma note',
|
|
||||||
'form.favorite': 'Coup de cœur',
|
'form.favorite': 'Coup de cœur',
|
||||||
'form.criteria': 'Critères détaillés (optionnel)',
|
|
||||||
'form.episodes': 'Épisodes',
|
'form.episodes': 'Épisodes',
|
||||||
'form.minusEp': '-1 épisode',
|
'form.minusEp': '-1 épisode',
|
||||||
'form.plusEp': '+1 épisode',
|
'form.plusEp': '+1 épisode',
|
||||||
@@ -658,8 +583,6 @@ const dict = {
|
|||||||
'form.rewatches': 'Revisionnages',
|
'form.rewatches': 'Revisionnages',
|
||||||
'form.review': 'Mon avis',
|
'form.review': 'Mon avis',
|
||||||
'form.reviewPh': 'Ce que j\'en ai pensé, scènes marquantes…',
|
'form.reviewPh': 'Ce que j\'en ai pensé, scènes marquantes…',
|
||||||
'form.saveChanges': 'Enregistrer les modifications',
|
|
||||||
'form.addToLibrary': 'Ajouter à ma bibliothèque',
|
|
||||||
'form.shareImage': 'Partager en image',
|
'form.shareImage': 'Partager en image',
|
||||||
'form.delete': 'Supprimer ce titre',
|
'form.delete': 'Supprimer ce titre',
|
||||||
'form.deleteConfirm': '« {title} » sera supprimé définitivement.',
|
'form.deleteConfirm': '« {title} » sera supprimé définitivement.',
|
||||||
@@ -674,20 +597,14 @@ const dict = {
|
|||||||
'journal.seen_other': '{count} vus',
|
'journal.seen_other': '{count} vus',
|
||||||
'journal.more': 'Afficher les mois précédents',
|
'journal.more': 'Afficher les mois précédents',
|
||||||
|
|
||||||
'stats.overview': 'Vue d\'ensemble',
|
|
||||||
'stats.habits': 'Habitudes',
|
|
||||||
'stats.tastes': 'Goûts',
|
|
||||||
'stats.pageTitle': 'Mes ',
|
'stats.pageTitle': 'Mes ',
|
||||||
'stats.pageAccent': 'stats',
|
'stats.pageAccent': 'stats',
|
||||||
'stats.emptyTitle': 'Pas encore de statistiques',
|
'stats.emptyTitle': 'Pas encore de statistiques',
|
||||||
'stats.emptyText': 'Elles apparaîtront dès que tu auras ajouté des titres.',
|
'stats.emptyText': 'Elles apparaîtront dès que tu auras ajouté des titres.',
|
||||||
'stats.sinceStart': 'depuis le début',
|
|
||||||
'stats.subtitle_one': '{count} titre dans ma bibliothèque',
|
'stats.subtitle_one': '{count} titre dans ma bibliothèque',
|
||||||
'stats.subtitle_other': '{count} titres dans ma bibliothèque',
|
'stats.subtitle_other': '{count} titres dans ma bibliothèque',
|
||||||
'stats.subtitleYear_one': '{count} titre en {year}',
|
'stats.subtitleYear_one': '{count} titre en {year}',
|
||||||
'stats.subtitleYear_other': '{count} titres en {year}',
|
'stats.subtitleYear_other': '{count} titres en {year}',
|
||||||
'stats.hours_one': 'heure',
|
|
||||||
'stats.hours_other': 'heures',
|
|
||||||
'stats.nonStopPre': 'soit ',
|
'stats.nonStopPre': 'soit ',
|
||||||
'stats.nonStopPost': ' non-stop',
|
'stats.nonStopPost': ' non-stop',
|
||||||
'stats.days_one': '{count} jour',
|
'stats.days_one': '{count} jour',
|
||||||
@@ -697,13 +614,10 @@ const dict = {
|
|||||||
'stats.episodesN_one': '{count} épisode',
|
'stats.episodesN_one': '{count} épisode',
|
||||||
'stats.episodesN_other': '{count} épisodes',
|
'stats.episodesN_other': '{count} épisodes',
|
||||||
'stats.timeByType': 'Temps par type',
|
'stats.timeByType': 'Temps par type',
|
||||||
'stats.noTime': 'Pas encore de temps enregistré sur cette période.',
|
|
||||||
'stats.avgRating': 'Note moyenne',
|
'stats.avgRating': 'Note moyenne',
|
||||||
'stats.rated_one': '{count} titre noté',
|
'stats.rated_one': '{count} titre noté',
|
||||||
'stats.rated_other': '{count} titres notés',
|
'stats.rated_other': '{count} titres notés',
|
||||||
'stats.inYear': 'en {year}',
|
|
||||||
'stats.statuses': 'Statuts',
|
'stats.statuses': 'Statuts',
|
||||||
'stats.hoursTab': 'Heures',
|
|
||||||
'stats.monthByMonth': 'Mois par mois · {year}',
|
'stats.monthByMonth': 'Mois par mois · {year}',
|
||||||
'stats.last12': '12 derniers mois',
|
'stats.last12': '12 derniers mois',
|
||||||
'stats.monthFinished_one': '{count} titre terminé',
|
'stats.monthFinished_one': '{count} titre terminé',
|
||||||
@@ -712,7 +626,6 @@ const dict = {
|
|||||||
'stats.records': 'Records',
|
'stats.records': 'Records',
|
||||||
'stats.marathon': 'Plus gros marathon',
|
'stats.marathon': 'Plus gros marathon',
|
||||||
'stats.longestFilm': 'Film le plus long',
|
'stats.longestFilm': 'Film le plus long',
|
||||||
'stats.noRecords': 'Pas encore de records sur cette période.',
|
|
||||||
'stats.platforms': 'Plateformes',
|
'stats.platforms': 'Plateformes',
|
||||||
'stats.bestRated': 'Mes mieux notés',
|
'stats.bestRated': 'Mes mieux notés',
|
||||||
'stats.myRatings': 'Mes notes',
|
'stats.myRatings': 'Mes notes',
|
||||||
@@ -720,11 +633,6 @@ const dict = {
|
|||||||
'stats.favGenres': 'Genres préférés',
|
'stats.favGenres': 'Genres préférés',
|
||||||
'stats.noGenres': 'Pas encore de genres.',
|
'stats.noGenres': 'Pas encore de genres.',
|
||||||
'stats.countries': 'Pays',
|
'stats.countries': 'Pays',
|
||||||
'stats.noCountry_one': '{count} titre sans pays : complète-le via « Compléter depuis TMDB / AniList » dans la fiche.',
|
|
||||||
'stats.noCountry_other': '{count} titres sans pays : complète-les via « Compléter depuis TMDB / AniList » dans la fiche.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} titre sans pays : complète-le via « Compléter depuis TMDB / AniList » dans la fiche, ou réimporte la sauvegarde de ton ancienne appli (« Fusionner »).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} titres sans pays : complète-les via « Compléter depuis TMDB / AniList » dans la fiche, ou réimporte la sauvegarde de ton ancienne appli (« Fusionner »).',
|
|
||||||
'stats.byType': 'Par type',
|
|
||||||
'stats.footnote': 'Temps estimé à partir des épisodes vus et des durées renseignées (sinon : film 1 h 50, épisode d\'anime 24 min, série 45 min, K-drama 1 h, C-drama 45 min). Un titre compte pour l\'année où je l\'ai terminé.',
|
'stats.footnote': 'Temps estimé à partir des épisodes vus et des durées renseignées (sinon : film 1 h 50, épisode d\'anime 24 min, série 45 min, K-drama 1 h, C-drama 45 min). Un titre compte pour l\'année où je l\'ai terminé.',
|
||||||
'stats.ratedAs_one': 'noté {rating}',
|
'stats.ratedAs_one': 'noté {rating}',
|
||||||
'stats.ratedAs_other': 'notés {rating}',
|
'stats.ratedAs_other': 'notés {rating}',
|
||||||
@@ -833,9 +741,7 @@ const dict = {
|
|||||||
'welcome.later': "Plus tard",
|
'welcome.later': "Plus tard",
|
||||||
'social.watching': "En cours",
|
'social.watching': "En cours",
|
||||||
'social.watchlist': "Envie de voir",
|
'social.watchlist': "Envie de voir",
|
||||||
'search.allKinds': "Films, séries et animes",
|
|
||||||
'search.animeOnly': "Sans clé TMDB, seuls les animes sont trouvés.",
|
'search.animeOnly': "Sans clé TMDB, seuls les animes sont trouvés.",
|
||||||
'search.alreadySeries': "déjà dans ta bibliothèque — ouvrir",
|
|
||||||
'form.startShort': "Commencé le",
|
'form.startShort': "Commencé le",
|
||||||
'form.endShort': "Fini le",
|
'form.endShort': "Fini le",
|
||||||
'hero.allSeen': "Tout vu",
|
'hero.allSeen': "Tout vu",
|
||||||
@@ -843,7 +749,6 @@ const dict = {
|
|||||||
'hero.upToDate': 'À jour',
|
'hero.upToDate': 'À jour',
|
||||||
'hero.seenEp': "J'ai vu {ep}",
|
'hero.seenEp': "J'ai vu {ep}",
|
||||||
'hero.seen': "Vu",
|
'hero.seen': "Vu",
|
||||||
'hero.markSeen': "Marquer comme vu",
|
|
||||||
'hero.edit': "Modifier les infos",
|
'hero.edit': "Modifier les infos",
|
||||||
'hero.more': "Lire la suite",
|
'hero.more': "Lire la suite",
|
||||||
'hero.less': "Réduire",
|
'hero.less': "Réduire",
|
||||||
@@ -859,9 +764,6 @@ const dict = {
|
|||||||
'homeHero.details': "Fiche",
|
'homeHero.details': "Fiche",
|
||||||
'homeHero.continueRow': "Reprendre",
|
'homeHero.continueRow': "Reprendre",
|
||||||
'homeHero.nextUp': "Prochain : {ep}",
|
'homeHero.nextUp': "Prochain : {ep}",
|
||||||
'title.addTitle': "Ajouter un titre",
|
|
||||||
'title.searchPh': "Film, série, anime, drama…",
|
|
||||||
'title.searchHint': "Cherche un titre puis ouvre sa fiche pour le noter, le marquer comme vu ou l’ajouter à ta liste.",
|
|
||||||
'title.noResults': "Aucun résultat.",
|
'title.noResults': "Aucun résultat.",
|
||||||
'title.manual': "Ajouter manuellement",
|
'title.manual': "Ajouter manuellement",
|
||||||
'title.manualHint': "Introuvable ? Crée la fiche toi-même.",
|
'title.manualHint': "Introuvable ? Crée la fiche toi-même.",
|
||||||
@@ -891,7 +793,6 @@ const dict = {
|
|||||||
'title.trackingHint': "Dates, listes, revisionnages",
|
'title.trackingHint': "Dates, listes, revisionnages",
|
||||||
'title.rewatchCount_one': "Revu {count} fois",
|
'title.rewatchCount_one': "Revu {count} fois",
|
||||||
'title.rewatchCount_other': "Revu {count} fois",
|
'title.rewatchCount_other': "Revu {count} fois",
|
||||||
'title.rewatchedToday': "Revu aujourd’hui",
|
|
||||||
'sync.syncing': "Synchronisation…",
|
'sync.syncing': "Synchronisation…",
|
||||||
'sync.offline': "Hors ligne",
|
'sync.offline': "Hors ligne",
|
||||||
'sync.error': "La synchronisation a échoué",
|
'sync.error': "La synchronisation a échoué",
|
||||||
@@ -1077,13 +978,6 @@ const dict = {
|
|||||||
'challenges.more_one': "+ {count} autre défi",
|
'challenges.more_one': "+ {count} autre défi",
|
||||||
'challenges.more_other': "+ {count} autres défis",
|
'challenges.more_other': "+ {count} autres défis",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Notifications sur cet appareil",
|
|
||||||
'push.deviceHint': "Même quand l’app est fermée. Les choix ci-dessous s’appliquent aussi.",
|
|
||||||
'push.iosInstall': "Sur iPhone et iPad, ajoute d’abord Kino à l’écran d’accueil (iOS 16.4 ou plus récent), puis ouvre l’app depuis son icône pour activer les notifications.",
|
|
||||||
'push.unsupported': "Ce navigateur ne gère pas les notifications push.",
|
|
||||||
'push.denied': "Notifications bloquées pour ce site. Autorise-les dans les réglages du navigateur, puis réessaie.",
|
|
||||||
'push.notReady': "Les notifications push ne sont pas encore disponibles sur le serveur.",
|
|
||||||
'push.error': "Impossible d’activer les notifications. Vérifie ta connexion et réessaie.",
|
|
||||||
'netPill.offlineSync': "Hors ligne — tes modifs seront synchronisées",
|
'netPill.offlineSync': "Hors ligne — tes modifs seront synchronisées",
|
||||||
'netPill.offlineLocal': "Hors ligne — tout reste enregistré sur cet appareil",
|
'netPill.offlineLocal': "Hors ligne — tout reste enregistré sur cet appareil",
|
||||||
'netPill.synced': "Synchronisé",
|
'netPill.synced': "Synchronisé",
|
||||||
@@ -1223,10 +1117,6 @@ const dict = {
|
|||||||
'comments.err.rate': "Tu commentes trop vite : réessaie dans une minute.",
|
'comments.err.rate': "Tu commentes trop vite : réessaie dans une minute.",
|
||||||
'comments.err.gone': "Cet avis n’est plus disponible.",
|
'comments.err.gone': "Cet avis n’est plus disponible.",
|
||||||
'comments.err.invalid': "Commentaire vide ou trop long (500 caractères max).",
|
'comments.err.invalid': "Commentaire vide ou trop long (500 caractères max).",
|
||||||
'notif.review_comment': "a commenté ton avis",
|
|
||||||
'notif.shared_list_invite': "t’invite dans la liste partagée",
|
|
||||||
'settings.notifComments': "Commentaires sur mes avis",
|
|
||||||
'settings.notifLists': "Invitations aux listes partagées",
|
|
||||||
'shared.title': "Listes partagées",
|
'shared.title': "Listes partagées",
|
||||||
'shared.hint': "Des listes à plusieurs : chaque membre ajoute ou retire des titres.",
|
'shared.hint': "Des listes à plusieurs : chaque membre ajoute ou retire des titres.",
|
||||||
'shared.new': "Nouvelle liste partagée",
|
'shared.new': "Nouvelle liste partagée",
|
||||||
@@ -1258,7 +1148,6 @@ const dict = {
|
|||||||
'shared.noPeople': "Personne à inviter : seuls tes abonnés et tes abonnements peuvent rejoindre la liste.",
|
'shared.noPeople': "Personne à inviter : seuls tes abonnés et tes abonnements peuvent rejoindre la liste.",
|
||||||
'shared.inviteShort': "Inviter",
|
'shared.inviteShort': "Inviter",
|
||||||
'shared.invited': "Invité",
|
'shared.invited': "Invité",
|
||||||
'shared.expired': "invitation expirée",
|
|
||||||
'shared.addTo': "Ajouter à une liste partagée",
|
'shared.addTo': "Ajouter à une liste partagée",
|
||||||
'shared.unavailable': "Listes partagées indisponibles pour le moment.",
|
'shared.unavailable': "Listes partagées indisponibles pour le moment.",
|
||||||
'shared.err.rate': "Trop d’actions d’affilée : réessaie dans une minute.",
|
'shared.err.rate': "Trop d’actions d’affilée : réessaie dans une minute.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '5 में से ★',
|
'settings.scale5': '5 में से ★',
|
||||||
'settings.scale10': '10 में से',
|
'settings.scale10': '10 में से',
|
||||||
'settings.ratingHint': '5 में से आधे स्टार, या 10 में से 0.5 के स्टेप। मौजूदा रेटिंग अपने-आप बदल जाती हैं।',
|
'settings.ratingHint': '5 में से आधे स्टार, या 10 में से 0.5 के स्टेप। मौजूदा रेटिंग अपने-आप बदल जाती हैं।',
|
||||||
'settings.theme': 'थीम',
|
|
||||||
'settings.appearance': 'दिखावट',
|
'settings.appearance': 'दिखावट',
|
||||||
'settings.appearanceHint': '“ऑटो” आपके ब्राउज़र का अनुसरण करता है (हल्का या गहरा)।',
|
'settings.appearanceHint': '“ऑटो” आपके ब्राउज़र का अनुसरण करता है (हल्का या गहरा)।',
|
||||||
'theme.modeAuto': 'ऑटो',
|
'theme.modeAuto': 'ऑटो',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'ऐप इंस्टॉल करें',
|
'settings.installApp': 'ऐप इंस्टॉल करें',
|
||||||
'settings.installHint': 'Kino को अपनी होम स्क्रीन या डेस्कटॉप पर जोड़ें।',
|
'settings.installHint': 'Kino को अपनी होम स्क्रीन या डेस्कटॉप पर जोड़ें।',
|
||||||
'settings.installed': 'ऐप इंस्टॉल हो गया',
|
'settings.installed': 'ऐप इंस्टॉल हो गया',
|
||||||
'settings.notifs': 'सूचनाएँ',
|
|
||||||
'settings.notifsHint': 'चुनो कि घंटी किससे बजे।',
|
|
||||||
'settings.notifEpisodes': 'नए एपिसोड',
|
|
||||||
'settings.notifFollows': 'नए फ़ॉलोअर',
|
|
||||||
'settings.notifAccepted': 'स्वीकृत अनुरोध',
|
|
||||||
'settings.notifReactions': 'मेरी समीक्षाओं पर प्रतिक्रियाएँ',
|
|
||||||
'notif.new_episode': '{title} का नया एपिसोड',
|
|
||||||
'notif.new_season': '{title} का नया सीज़न',
|
|
||||||
'reviews.title': 'समीक्षाएँ',
|
'reviews.title': 'समीक्षाएँ',
|
||||||
'reviews.friends': 'तुम्हारे दोस्त',
|
'reviews.friends': 'तुम्हारे दोस्त',
|
||||||
'reviews.others': 'अन्य सदस्य',
|
'reviews.others': 'अन्य सदस्य',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'कोई अन्य समीक्षा नहीं',
|
'reviews.noneOthers': 'कोई अन्य समीक्षा नहीं',
|
||||||
'reviews.none': 'अभी कोई समीक्षा नहीं',
|
'reviews.none': 'अभी कोई समीक्षा नहीं',
|
||||||
'reviews.seeAll': 'सभी समीक्षाएँ देखें',
|
'reviews.seeAll': 'सभी समीक्षाएँ देखें',
|
||||||
'reviews.react': 'प्रतिक्रिया दें',
|
|
||||||
'notif.title': 'सूचनाएँ',
|
|
||||||
'notif.empty': 'कोई सूचना नहीं',
|
|
||||||
'notif.someone': 'किसी ने',
|
'notif.someone': 'किसी ने',
|
||||||
'notif.follow_request': 'तुम्हें फ़ॉलो करना चाहता है',
|
|
||||||
'notif.follow_accepted': 'तुम्हारा अनुरोध स्वीकार किया',
|
|
||||||
'notif.new_follower': 'तुम्हें फ़ॉलो करने लगा',
|
|
||||||
'notif.reaction': 'तुम्हारी समीक्षा पर प्रतिक्रिया दी',
|
|
||||||
'notif.on': '{title} पर',
|
|
||||||
'home.notifications': 'सूचनाएँ',
|
|
||||||
'home.notificationsN': '{count} सूचनाएँ',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Kino इंस्टॉल करें',
|
'install.title': 'Kino इंस्टॉल करें',
|
||||||
'install.ios': 'Kino को Safari में खोलें।\nShare बटन दबाएँ (ऊपर तीर वाला वर्ग)।\n“Add to Home Screen” चुनें, फिर “Add”।',
|
'install.ios': 'Kino को Safari में खोलें।\nShare बटन दबाएँ (ऊपर तीर वाला वर्ग)।\n“Add to Home Screen” चुनें, फिर “Add”।',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'बहुत ज़्यादा कोशिशें, एक मिनट बाद फिर कोशिश करें।',
|
'account.err.deleteRate': 'बहुत ज़्यादा कोशिशें, एक मिनट बाद फिर कोशिश करें।',
|
||||||
'account.err.delete': 'डिलीट नहीं हो सका। बाद में फिर कोशिश करें।',
|
'account.err.delete': 'डिलीट नहीं हो सका। बाद में फिर कोशिश करें।',
|
||||||
'account.title': 'मेरा अकाउंट',
|
'account.title': 'मेरा अकाउंट',
|
||||||
'account.syncing': 'सिंक हो रहा है…',
|
|
||||||
'account.offline': 'ऑफ़लाइन — सब कुछ इस डिवाइस पर सुरक्षित है',
|
|
||||||
'account.syncError': 'अभी सिंक नहीं हो पा रहा',
|
|
||||||
'account.synced': 'सिंक हुआ {when}',
|
|
||||||
'account.passwordChanged': 'पासवर्ड बदल गया।',
|
'account.passwordChanged': 'पासवर्ड बदल गया।',
|
||||||
'account.imported_one': '{count} टाइटल आपके अकाउंट में जोड़ा गया।',
|
'account.imported_one': '{count} टाइटल आपके अकाउंट में जोड़ा गया।',
|
||||||
'account.imported_other': '{count} टाइटल आपके अकाउंट में जोड़े गए।',
|
'account.imported_other': '{count} टाइटल आपके अकाउंट में जोड़े गए।',
|
||||||
'account.importFailed': 'इम्पोर्ट नहीं हो सका।',
|
'account.importFailed': 'इम्पोर्ट नहीं हो सका।',
|
||||||
'account.pending_one': '{count} बाकी',
|
|
||||||
'account.pending_other': '{count} बाकी',
|
|
||||||
'account.syncNow': 'अभी सिंक करें',
|
|
||||||
'account.newPasswordPh': 'नया पासवर्ड (कम से कम {n} कैरेक्टर)',
|
'account.newPasswordPh': 'नया पासवर्ड (कम से कम {n} कैरेक्टर)',
|
||||||
'account.changePassword': 'पासवर्ड बदलें',
|
'account.changePassword': 'पासवर्ड बदलें',
|
||||||
'account.logout': 'लॉग आउट',
|
'account.logout': 'लॉग आउट',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'इस डिवाइस पर आपके अकाउंट से पहले बनाए गए {titles} हैं। इन्हें अपने अकाउंट में जोड़ें?',
|
'account.deviceData': 'इस डिवाइस पर आपके अकाउंट से पहले बनाए गए {titles} हैं। इन्हें अपने अकाउंट में जोड़ें?',
|
||||||
'account.deviceDataWithLists': 'इस डिवाइस पर आपके अकाउंट से पहले बनाए गए {titles} और {lists} हैं। इन्हें अपने अकाउंट में जोड़ें?',
|
'account.deviceDataWithLists': 'इस डिवाइस पर आपके अकाउंट से पहले बनाए गए {titles} और {lists} हैं। इन्हें अपने अकाउंट में जोड़ें?',
|
||||||
|
|
||||||
'time.never': 'कभी नहीं',
|
|
||||||
'time.justNow': 'अभी-अभी',
|
'time.justNow': 'अभी-अभी',
|
||||||
'time.minutesAgo': '{n} मिनट पहले',
|
'time.minutesAgo': '{n} मिनट पहले',
|
||||||
'time.hoursAgo': '{n} घं पहले',
|
'time.hoursAgo': '{n} घं पहले',
|
||||||
'time.onDate': '{date} को',
|
|
||||||
'time.today': 'आज',
|
'time.today': 'आज',
|
||||||
'time.tomorrow': 'कल',
|
'time.tomorrow': 'कल',
|
||||||
'time.daysAgo': '{n} दिन पहले',
|
'time.daysAgo': '{n} दिन पहले',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'जोड़ा गया',
|
'reco.addedShort': 'जोड़ा गया',
|
||||||
|
|
||||||
'search.offline': 'इंटरनेट कनेक्शन नहीं है: खोज के लिए नेटवर्क ज़रूरी है।',
|
'search.offline': 'इंटरनेट कनेक्शन नहीं है: खोज के लिए नेटवर्क ज़रूरी है।',
|
||||||
'search.fillFrom': 'डेटाबेस से भरें',
|
|
||||||
'search.openSettings': 'सेटिंग्स खोलें',
|
'search.openSettings': 'सेटिंग्स खोलें',
|
||||||
'search.already': 'पहले से जोड़ा गया',
|
|
||||||
'search.noResults': 'कोई नतीजा नहीं। आप नीचे एंट्री खुद भर सकते हैं।',
|
|
||||||
'search.privacy': 'सिर्फ़ खोजा गया टाइटल {source} को भेजा जाता है। आपकी लाइब्रेरी आपके फ़ोन पर ही रहती है।',
|
'search.privacy': 'सिर्फ़ खोजा गया टाइटल {source} को भेजा जाता है। आपकी लाइब्रेरी आपके फ़ोन पर ही रहती है।',
|
||||||
|
|
||||||
'catalog.sortRecent': 'हाल ही में एडिट किए',
|
'catalog.sortRecent': 'हाल ही में एडिट किए',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': '+ बटन से अपना पहला टाइटल जोड़ें।',
|
'catalog.nothingYetHint': '+ बटन से अपना पहला टाइटल जोड़ें।',
|
||||||
'catalog.clearFilters': 'फ़िल्टर हटाएँ',
|
'catalog.clearFilters': 'फ़िल्टर हटाएँ',
|
||||||
|
|
||||||
'public.agree': 'बिल्कुल दर्शकों जैसी राय',
|
|
||||||
'public.more': 'दर्शकों से +{gap} ज़्यादा',
|
|
||||||
'public.less': 'दर्शकों से −{gap} कम',
|
|
||||||
'public.label': 'दर्शक',
|
|
||||||
'public.me': 'मैं',
|
|
||||||
'public.added_one': '{count} दर्शक रेटिंग जोड़ी गई।',
|
|
||||||
'public.added_other': '{count} दर्शक रेटिंग जोड़ी गईं।',
|
|
||||||
'public.noneFound': 'कोई नई रेटिंग नहीं मिली।',
|
|
||||||
'public.fetch': 'लाएँ ({n})',
|
|
||||||
'public.title': 'मैं बनाम दर्शक',
|
|
||||||
'public.hintFetch': 'अपने रेट किए गए टाइटल की औसत TMDB / AniList रेटिंग लाएँ और देखें कि आपकी राय दर्शकों से कहाँ अलग है।',
|
|
||||||
'public.hintNone': 'इस अवधि में आपके रेट किए गए टाइटल के लिए कोई दर्शक रेटिंग उपलब्ध नहीं है।',
|
|
||||||
'public.hintKey': 'दर्शकों से अपनी तुलना करने के लिए सेटिंग्स में अपनी TMDB की जोड़ें (या एनिमे को AniList से लिंक करें)।',
|
|
||||||
'public.avgGap': 'औसत अंतर',
|
|
||||||
'public.average': 'बिल्कुल औसत',
|
|
||||||
'public.generous': 'दर्शकों से ज़्यादा उदार',
|
|
||||||
'public.harsh': 'दर्शकों से ज़्यादा सख़्त',
|
|
||||||
'public.agreeTitle': 'एक जैसी राय',
|
|
||||||
'public.within5_one': '½ स्टार के अंदर, {count} टाइटल पर',
|
|
||||||
'public.within5_other': '½ स्टार के अंदर, {count} टाइटल पर',
|
|
||||||
'public.within10_one': '1 पॉइंट के अंदर, {count} टाइटल पर',
|
|
||||||
'public.within10_other': '1 पॉइंट के अंदर, {count} टाइटल पर',
|
|
||||||
'public.lovedPre': 'मुझे दर्शकों से ',
|
|
||||||
'public.lovedAccent': 'ज़्यादा पसंद',
|
|
||||||
'public.lovedPost': ' आए',
|
|
||||||
'public.hatedPre': 'मुझे दर्शकों से ',
|
|
||||||
'public.hatedAccent': 'कम पसंद',
|
|
||||||
'public.hatedPost': ' आए',
|
|
||||||
'public.allAgree': 'आपके सभी टाइटल पर आपकी राय दर्शकों जैसी है। कमाल है!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'दोबारा देखा? हर बार दोबारा देखने को दर्ज करें, यह आपकी डायरी में दिखेगा।',
|
'form.rewatchHint': 'दोबारा देखा? हर बार दोबारा देखने को दर्ज करें, यह आपकी डायरी में दिखेगा।',
|
||||||
'form.editTitle': 'एंट्री ',
|
|
||||||
'form.editAccent': 'एडिट करें',
|
|
||||||
'form.newTitle': 'नया ',
|
|
||||||
'form.newAccent': 'टाइटल',
|
|
||||||
'form.filledFrom': 'यहाँ से भरा गया',
|
|
||||||
'form.canEdit': 'आप सब कुछ एडिट कर सकते हैं',
|
|
||||||
'form.fillFromDb': 'TMDB / AniList से भरें',
|
|
||||||
'form.pickPoster': 'पोस्टर चुनें',
|
'form.pickPoster': 'पोस्टर चुनें',
|
||||||
'form.removeImage': 'इमेज हटाएँ',
|
'form.removeImage': 'इमेज हटाएँ',
|
||||||
'form.title': 'टाइटल *',
|
'form.title': 'टाइटल *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'टाइप',
|
'form.type': 'टाइप',
|
||||||
'form.subtype': 'प्रकार',
|
'form.subtype': 'प्रकार',
|
||||||
'form.subtypePh': 'डॉक्यूमेंट्री, रियलिटी शो…',
|
'form.subtypePh': 'डॉक्यूमेंट्री, रियलिटी शो…',
|
||||||
'form.status': 'स्टेटस',
|
|
||||||
'form.myRating': 'मेरी रेटिंग',
|
|
||||||
'form.favorite': 'फ़ेवरेट',
|
'form.favorite': 'फ़ेवरेट',
|
||||||
'form.criteria': 'विस्तृत मापदंड (वैकल्पिक)',
|
|
||||||
'form.episodes': 'एपिसोड',
|
'form.episodes': 'एपिसोड',
|
||||||
'form.minusEp': '-1 एपिसोड',
|
'form.minusEp': '-1 एपिसोड',
|
||||||
'form.plusEp': '+1 एपिसोड',
|
'form.plusEp': '+1 एपिसोड',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'दोबारा देखे',
|
'form.rewatches': 'दोबारा देखे',
|
||||||
'form.review': 'मेरा रिव्यू',
|
'form.review': 'मेरा रिव्यू',
|
||||||
'form.reviewPh': 'मुझे कैसा लगा, यादगार सीन…',
|
'form.reviewPh': 'मुझे कैसा लगा, यादगार सीन…',
|
||||||
'form.saveChanges': 'बदलाव सेव करें',
|
|
||||||
'form.addToLibrary': 'मेरी लाइब्रेरी में जोड़ें',
|
|
||||||
'form.shareImage': 'इमेज के रूप में शेयर करें',
|
'form.shareImage': 'इमेज के रूप में शेयर करें',
|
||||||
'form.delete': 'यह टाइटल डिलीट करें',
|
'form.delete': 'यह टाइटल डिलीट करें',
|
||||||
'form.deleteConfirm': '“{title}” हमेशा के लिए डिलीट हो जाएगा।',
|
'form.deleteConfirm': '“{title}” हमेशा के लिए डिलीट हो जाएगा।',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count} देखे',
|
'journal.seen_other': '{count} देखे',
|
||||||
'journal.more': 'पिछले महीने दिखाएँ',
|
'journal.more': 'पिछले महीने दिखाएँ',
|
||||||
|
|
||||||
'stats.overview': 'ओवरव्यू',
|
|
||||||
'stats.habits': 'आदतें',
|
|
||||||
'stats.tastes': 'पसंद',
|
|
||||||
'stats.pageTitle': 'मेरे ',
|
'stats.pageTitle': 'मेरे ',
|
||||||
'stats.pageAccent': 'आँकड़े',
|
'stats.pageAccent': 'आँकड़े',
|
||||||
'stats.emptyTitle': 'अभी कोई आँकड़े नहीं',
|
'stats.emptyTitle': 'अभी कोई आँकड़े नहीं',
|
||||||
'stats.emptyText': 'कुछ टाइटल जोड़ते ही ये यहाँ दिखेंगे।',
|
'stats.emptyText': 'कुछ टाइटल जोड़ते ही ये यहाँ दिखेंगे।',
|
||||||
'stats.sinceStart': 'शुरू से अब तक',
|
|
||||||
'stats.subtitle_one': 'मेरी लाइब्रेरी में {count} टाइटल',
|
'stats.subtitle_one': 'मेरी लाइब्रेरी में {count} टाइटल',
|
||||||
'stats.subtitle_other': 'मेरी लाइब्रेरी में {count} टाइटल',
|
'stats.subtitle_other': 'मेरी लाइब्रेरी में {count} टाइटल',
|
||||||
'stats.subtitleYear_one': '{year} में {count} टाइटल',
|
'stats.subtitleYear_one': '{year} में {count} टाइटल',
|
||||||
'stats.subtitleYear_other': '{year} में {count} टाइटल',
|
'stats.subtitleYear_other': '{year} में {count} टाइटल',
|
||||||
'stats.hours_one': 'घंटा',
|
|
||||||
'stats.hours_other': 'घंटे',
|
|
||||||
'stats.nonStopPre': 'यानी ',
|
'stats.nonStopPre': 'यानी ',
|
||||||
'stats.nonStopPost': ' लगातार',
|
'stats.nonStopPost': ' लगातार',
|
||||||
'stats.days_one': '{count} दिन',
|
'stats.days_one': '{count} दिन',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} एपिसोड',
|
'stats.episodesN_one': '{count} एपिसोड',
|
||||||
'stats.episodesN_other': '{count} एपिसोड',
|
'stats.episodesN_other': '{count} एपिसोड',
|
||||||
'stats.timeByType': 'टाइप के अनुसार समय',
|
'stats.timeByType': 'टाइप के अनुसार समय',
|
||||||
'stats.noTime': 'इस अवधि में अभी तक कोई समय दर्ज नहीं हुआ।',
|
|
||||||
'stats.avgRating': 'औसत रेटिंग',
|
'stats.avgRating': 'औसत रेटिंग',
|
||||||
'stats.rated_one': '{count} टाइटल रेट किया',
|
'stats.rated_one': '{count} टाइटल रेट किया',
|
||||||
'stats.rated_other': '{count} टाइटल रेट किए',
|
'stats.rated_other': '{count} टाइटल रेट किए',
|
||||||
'stats.inYear': '{year} में',
|
|
||||||
'stats.statuses': 'स्टेटस',
|
'stats.statuses': 'स्टेटस',
|
||||||
'stats.hoursTab': 'घंटे',
|
|
||||||
'stats.monthByMonth': 'महीने-दर-महीने · {year}',
|
'stats.monthByMonth': 'महीने-दर-महीने · {year}',
|
||||||
'stats.last12': 'पिछले 12 महीने',
|
'stats.last12': 'पिछले 12 महीने',
|
||||||
'stats.monthFinished_one': '{count} टाइटल पूरा किया',
|
'stats.monthFinished_one': '{count} टाइटल पूरा किया',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'रिकॉर्ड',
|
'stats.records': 'रिकॉर्ड',
|
||||||
'stats.marathon': 'सबसे बड़ी मैराथन',
|
'stats.marathon': 'सबसे बड़ी मैराथन',
|
||||||
'stats.longestFilm': 'सबसे लंबी फ़िल्म',
|
'stats.longestFilm': 'सबसे लंबी फ़िल्म',
|
||||||
'stats.noRecords': 'इस अवधि में अभी कोई रिकॉर्ड नहीं।',
|
|
||||||
'stats.platforms': 'प्लेटफ़ॉर्म',
|
'stats.platforms': 'प्लेटफ़ॉर्म',
|
||||||
'stats.bestRated': 'मेरे टॉप रेटेड',
|
'stats.bestRated': 'मेरे टॉप रेटेड',
|
||||||
'stats.myRatings': 'मेरी रेटिंग',
|
'stats.myRatings': 'मेरी रेटिंग',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'पसंदीदा जॉनर',
|
'stats.favGenres': 'पसंदीदा जॉनर',
|
||||||
'stats.noGenres': 'अभी कोई जॉनर नहीं।',
|
'stats.noGenres': 'अभी कोई जॉनर नहीं।',
|
||||||
'stats.countries': 'देश',
|
'stats.countries': 'देश',
|
||||||
'stats.noCountry_one': '{count} टाइटल में देश नहीं है: उसके पेज पर “TMDB / AniList से भरें” से इसे भरें।',
|
|
||||||
'stats.noCountry_other': '{count} टाइटल में देश नहीं है: उनके पेज पर “TMDB / AniList से भरें” से इन्हें भरें।',
|
|
||||||
'stats.noCountryLegacy_one': '{count} टाइटल में देश नहीं है: उसके पेज पर “TMDB / AniList से भरें” से इसे भरें, या अपने पुराने ऐप का बैकअप फिर से इम्पोर्ट करें (“मर्ज करें”)।',
|
|
||||||
'stats.noCountryLegacy_other': '{count} टाइटल में देश नहीं है: उनके पेज पर “TMDB / AniList से भरें” से इन्हें भरें, या अपने पुराने ऐप का बैकअप फिर से इम्पोर्ट करें (“मर्ज करें”)।',
|
|
||||||
'stats.byType': 'टाइप के अनुसार',
|
|
||||||
'stats.footnote': 'समय का अनुमान देखे गए एपिसोड और दर्ज अवधि से लगाया गया है (नहीं तो: फ़िल्म 1 घं 50, एनिमे एपिसोड 24 मिनट, सीरीज़ 45 मिनट, K-ड्रामा 1 घं, C-ड्रामा 45 मिनट)। कोई टाइटल उस साल में गिना जाता है जिसमें मैंने उसे पूरा किया।',
|
'stats.footnote': 'समय का अनुमान देखे गए एपिसोड और दर्ज अवधि से लगाया गया है (नहीं तो: फ़िल्म 1 घं 50, एनिमे एपिसोड 24 मिनट, सीरीज़ 45 मिनट, K-ड्रामा 1 घं, C-ड्रामा 45 मिनट)। कोई टाइटल उस साल में गिना जाता है जिसमें मैंने उसे पूरा किया।',
|
||||||
'stats.ratedAs_one': '{rating} रेटिंग',
|
'stats.ratedAs_one': '{rating} रेटिंग',
|
||||||
'stats.ratedAs_other': '{rating} रेटिंग',
|
'stats.ratedAs_other': '{rating} रेटिंग',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': 'बाद में',
|
'welcome.later': 'बाद में',
|
||||||
'social.watching': 'देख रहे हैं',
|
'social.watching': 'देख रहे हैं',
|
||||||
'social.watchlist': 'देखना चाहते हैं',
|
'social.watchlist': 'देखना चाहते हैं',
|
||||||
'search.allKinds': 'फ़िल्में, सीरीज़ और एनिमे',
|
|
||||||
'search.animeOnly': 'TMDB की के बिना सिर्फ़ एनिमे खोजे जा सकते हैं।',
|
'search.animeOnly': 'TMDB की के बिना सिर्फ़ एनिमे खोजे जा सकते हैं।',
|
||||||
'search.alreadySeries': 'पहले से आपकी लाइब्रेरी में — खोलें',
|
|
||||||
'form.startShort': 'शुरू किया',
|
'form.startShort': 'शुरू किया',
|
||||||
'form.endShort': 'पूरा किया',
|
'form.endShort': 'पूरा किया',
|
||||||
'hero.allSeen': 'सब देख लिया',
|
'hero.allSeen': 'सब देख लिया',
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'अप टू डेट',
|
'hero.upToDate': 'अप टू डेट',
|
||||||
'hero.seenEp': '{ep} देख लिया',
|
'hero.seenEp': '{ep} देख लिया',
|
||||||
'hero.seen': 'देख लिया',
|
'hero.seen': 'देख लिया',
|
||||||
'hero.markSeen': 'देखा हुआ मार्क करें',
|
|
||||||
'hero.edit': 'जानकारी एडिट करें',
|
'hero.edit': 'जानकारी एडिट करें',
|
||||||
'hero.more': 'और पढ़ें',
|
'hero.more': 'और पढ़ें',
|
||||||
'hero.less': 'कम दिखाएँ',
|
'hero.less': 'कम दिखाएँ',
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': 'जानकारी',
|
'homeHero.details': 'जानकारी',
|
||||||
'homeHero.continueRow': 'देखना जारी रखें',
|
'homeHero.continueRow': 'देखना जारी रखें',
|
||||||
'homeHero.nextUp': 'अगला: {ep}',
|
'homeHero.nextUp': 'अगला: {ep}',
|
||||||
'title.addTitle': "शीर्षक जोड़ें",
|
|
||||||
'title.searchPh': "फ़िल्म, सीरीज़, एनिमे, ड्रामा…",
|
|
||||||
'title.searchHint': "कोई शीर्षक खोजें, फिर उसे रेट करने, देखा हुआ चिह्नित करने या अपनी सूची में जोड़ने के लिए खोलें।",
|
|
||||||
'title.noResults': "कोई परिणाम नहीं।",
|
'title.noResults': "कोई परिणाम नहीं।",
|
||||||
'title.manual': "मैन्युअल रूप से जोड़ें",
|
'title.manual': "मैन्युअल रूप से जोड़ें",
|
||||||
'title.manualHint': "नहीं मिला? ख़ुद बनाएँ।",
|
'title.manualHint': "नहीं मिला? ख़ुद बनाएँ।",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "तारीख़ें, सूचियाँ, दोबारा देखना",
|
'title.trackingHint': "तारीख़ें, सूचियाँ, दोबारा देखना",
|
||||||
'title.rewatchCount_one': "{count} बार दोबारा देखा",
|
'title.rewatchCount_one': "{count} बार दोबारा देखा",
|
||||||
'title.rewatchCount_other': "{count} बार दोबारा देखा",
|
'title.rewatchCount_other': "{count} बार दोबारा देखा",
|
||||||
'title.rewatchedToday': "आज दोबारा देखा",
|
|
||||||
'sync.syncing': "सिंक हो रहा है…",
|
'sync.syncing': "सिंक हो रहा है…",
|
||||||
'sync.offline': "ऑफ़लाइन",
|
'sync.offline': "ऑफ़लाइन",
|
||||||
'sync.error': "सिंक विफल रहा",
|
'sync.error': "सिंक विफल रहा",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} और चुनौती",
|
'challenges.more_one': "+ {count} और चुनौती",
|
||||||
'challenges.more_other': "+ {count} और चुनौतियाँ",
|
'challenges.more_other': "+ {count} और चुनौतियाँ",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "इस डिवाइस पर सूचनाएँ",
|
|
||||||
'push.deviceHint': "ऐप बंद होने पर भी। नीचे दिए विकल्प भी लागू होते हैं।",
|
|
||||||
'push.iosInstall': "iPhone और iPad पर पहले Kino को होम स्क्रीन पर जोड़ें (iOS 16.4 या नया), फिर सूचनाएँ चालू करने के लिए ऐप को उसके आइकन से खोलें।",
|
|
||||||
'push.unsupported': "यह ब्राउज़र पुश सूचनाएँ सपोर्ट नहीं करता।",
|
|
||||||
'push.denied': "इस साइट के लिए सूचनाएँ ब्लॉक हैं। ब्राउज़र सेटिंग्स में अनुमति दें, फिर दोबारा कोशिश करें।",
|
|
||||||
'push.notReady': "पुश सूचनाएँ अभी सर्वर पर उपलब्ध नहीं हैं।",
|
|
||||||
'push.error': "सूचनाएँ चालू नहीं हो सकीं। अपना कनेक्शन जाँचें और दोबारा कोशिश करें।",
|
|
||||||
'netPill.offlineSync': "ऑफ़लाइन — आपके बदलाव सिंक हो जाएँगे",
|
'netPill.offlineSync': "ऑफ़लाइन — आपके बदलाव सिंक हो जाएँगे",
|
||||||
'netPill.offlineLocal': "ऑफ़लाइन — सब कुछ इस डिवाइस पर सहेजा रहता है",
|
'netPill.offlineLocal': "ऑफ़लाइन — सब कुछ इस डिवाइस पर सहेजा रहता है",
|
||||||
'netPill.synced': "सिंक हो गया",
|
'netPill.synced': "सिंक हो गया",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "आप बहुत तेज़ी से टिप्पणी कर रहे हैं — एक मिनट बाद फिर कोशिश करें।",
|
'comments.err.rate': "आप बहुत तेज़ी से टिप्पणी कर रहे हैं — एक मिनट बाद फिर कोशिश करें।",
|
||||||
'comments.err.gone': "यह रिव्यू अब उपलब्ध नहीं है।",
|
'comments.err.gone': "यह रिव्यू अब उपलब्ध नहीं है।",
|
||||||
'comments.err.invalid': "टिप्पणी खाली है या बहुत लंबी है (अधिकतम 500 अक्षर)।",
|
'comments.err.invalid': "टिप्पणी खाली है या बहुत लंबी है (अधिकतम 500 अक्षर)।",
|
||||||
'notif.review_comment': "ने आपके रिव्यू पर टिप्पणी की",
|
|
||||||
'notif.shared_list_invite': "ने आपको साझा सूची में आमंत्रित किया",
|
|
||||||
'settings.notifComments': "मेरे रिव्यू पर टिप्पणियाँ",
|
|
||||||
'settings.notifLists': "साझा सूचियों के आमंत्रण",
|
|
||||||
'shared.title': "साझा सूचियाँ",
|
'shared.title': "साझा सूचियाँ",
|
||||||
'shared.hint': "मिलकर बनाई गई सूचियाँ: हर सदस्य टाइटल जोड़ या हटा सकता है।",
|
'shared.hint': "मिलकर बनाई गई सूचियाँ: हर सदस्य टाइटल जोड़ या हटा सकता है।",
|
||||||
'shared.new': "नई साझा सूची",
|
'shared.new': "नई साझा सूची",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "आमंत्रित करने के लिए कोई नहीं: केवल आपके फ़ॉलोअर्स और जिन्हें आप फ़ॉलो करते हैं, वही जुड़ सकते हैं।",
|
'shared.noPeople': "आमंत्रित करने के लिए कोई नहीं: केवल आपके फ़ॉलोअर्स और जिन्हें आप फ़ॉलो करते हैं, वही जुड़ सकते हैं।",
|
||||||
'shared.inviteShort': "आमंत्रित करें",
|
'shared.inviteShort': "आमंत्रित करें",
|
||||||
'shared.invited': "आमंत्रित",
|
'shared.invited': "आमंत्रित",
|
||||||
'shared.expired': "आमंत्रण की अवधि समाप्त",
|
|
||||||
'shared.addTo': "साझा सूची में जोड़ें",
|
'shared.addTo': "साझा सूची में जोड़ें",
|
||||||
'shared.unavailable': "साझा सूचियाँ अभी उपलब्ध नहीं हैं।",
|
'shared.unavailable': "साझा सूचियाँ अभी उपलब्ध नहीं हैं।",
|
||||||
'shared.err.rate': "लगातार बहुत सारी कार्रवाइयाँ — एक मिनट बाद फिर कोशिश करें।",
|
'shared.err.rate': "लगातार बहुत सारी कार्रवाइयाँ — एक मिनट बाद फिर कोशिश करें।",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ dari 5',
|
'settings.scale5': '★ dari 5',
|
||||||
'settings.scale10': 'Dari 10',
|
'settings.scale10': 'Dari 10',
|
||||||
'settings.ratingHint': 'Setengah bintang dari 5, atau kelipatan 0,5 dari 10. Nilai yang sudah ada dikonversi otomatis.',
|
'settings.ratingHint': 'Setengah bintang dari 5, atau kelipatan 0,5 dari 10. Nilai yang sudah ada dikonversi otomatis.',
|
||||||
'settings.theme': 'Tema',
|
|
||||||
'settings.appearance': 'Tampilan',
|
'settings.appearance': 'Tampilan',
|
||||||
'settings.appearanceHint': '“Otomatis” mengikuti browser kamu (terang atau gelap).',
|
'settings.appearanceHint': '“Otomatis” mengikuti browser kamu (terang atau gelap).',
|
||||||
'theme.modeAuto': 'Otomatis',
|
'theme.modeAuto': 'Otomatis',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'Pasang aplikasi',
|
'settings.installApp': 'Pasang aplikasi',
|
||||||
'settings.installHint': 'Tambahkan Kino ke layar utama atau desktop kamu.',
|
'settings.installHint': 'Tambahkan Kino ke layar utama atau desktop kamu.',
|
||||||
'settings.installed': 'Aplikasi terpasang',
|
'settings.installed': 'Aplikasi terpasang',
|
||||||
'settings.notifs': 'Notifikasi',
|
|
||||||
'settings.notifsHint': 'Pilih apa yang memicu lonceng.',
|
|
||||||
'settings.notifEpisodes': 'Episode baru',
|
|
||||||
'settings.notifFollows': 'Pengikut baru',
|
|
||||||
'settings.notifAccepted': 'Permintaan diterima',
|
|
||||||
'settings.notifReactions': 'Reaksi pada ulasanku',
|
|
||||||
'notif.new_episode': 'Episode baru {title}',
|
|
||||||
'notif.new_season': 'Musim baru {title}',
|
|
||||||
'reviews.title': 'Ulasan',
|
'reviews.title': 'Ulasan',
|
||||||
'reviews.friends': 'Teman kamu',
|
'reviews.friends': 'Teman kamu',
|
||||||
'reviews.others': 'Anggota lain',
|
'reviews.others': 'Anggota lain',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Tidak ada ulasan lain',
|
'reviews.noneOthers': 'Tidak ada ulasan lain',
|
||||||
'reviews.none': 'Belum ada ulasan',
|
'reviews.none': 'Belum ada ulasan',
|
||||||
'reviews.seeAll': 'Lihat semua ulasan',
|
'reviews.seeAll': 'Lihat semua ulasan',
|
||||||
'reviews.react': 'Reaksi',
|
|
||||||
'notif.title': 'Notifikasi',
|
|
||||||
'notif.empty': 'Tidak ada notifikasi',
|
|
||||||
'notif.someone': 'Seseorang',
|
'notif.someone': 'Seseorang',
|
||||||
'notif.follow_request': 'ingin mengikutimu',
|
|
||||||
'notif.follow_accepted': 'menerima permintaanmu',
|
|
||||||
'notif.new_follower': 'mulai mengikutimu',
|
|
||||||
'notif.reaction': 'bereaksi pada ulasanmu',
|
|
||||||
'notif.on': 'di {title}',
|
|
||||||
'home.notifications': 'Notifikasi',
|
|
||||||
'home.notificationsN': '{count} notifikasi',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Pasang Kino',
|
'install.title': 'Pasang Kino',
|
||||||
'install.ios': 'Buka Kino di Safari.\nKetuk tombol Bagikan (kotak dengan panah ke atas).\nPilih “Ke Layar Utama”, lalu “Tambah”.',
|
'install.ios': 'Buka Kino di Safari.\nKetuk tombol Bagikan (kotak dengan panah ke atas).\nPilih “Ke Layar Utama”, lalu “Tambah”.',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Terlalu banyak percobaan, coba lagi sebentar lagi.',
|
'account.err.deleteRate': 'Terlalu banyak percobaan, coba lagi sebentar lagi.',
|
||||||
'account.err.delete': 'Penghapusan gagal. Coba lagi nanti.',
|
'account.err.delete': 'Penghapusan gagal. Coba lagi nanti.',
|
||||||
'account.title': 'Akunku',
|
'account.title': 'Akunku',
|
||||||
'account.syncing': 'Menyinkronkan…',
|
|
||||||
'account.offline': 'Offline — semuanya tersimpan di perangkat ini',
|
|
||||||
'account.syncError': 'Belum bisa sinkron saat ini',
|
|
||||||
'account.synced': 'Tersinkron {when}',
|
|
||||||
'account.passwordChanged': 'Kata sandi diubah.',
|
'account.passwordChanged': 'Kata sandi diubah.',
|
||||||
'account.imported_one': '{count} judul ditambahkan ke akunmu.',
|
'account.imported_one': '{count} judul ditambahkan ke akunmu.',
|
||||||
'account.imported_other': '{count} judul ditambahkan ke akunmu.',
|
'account.imported_other': '{count} judul ditambahkan ke akunmu.',
|
||||||
'account.importFailed': 'Impor gagal.',
|
'account.importFailed': 'Impor gagal.',
|
||||||
'account.pending_one': '{count} menunggu',
|
|
||||||
'account.pending_other': '{count} menunggu',
|
|
||||||
'account.syncNow': 'Sinkronkan sekarang',
|
|
||||||
'account.newPasswordPh': 'Kata sandi baru (min. {n} karakter)',
|
'account.newPasswordPh': 'Kata sandi baru (min. {n} karakter)',
|
||||||
'account.changePassword': 'Ganti kata sandi',
|
'account.changePassword': 'Ganti kata sandi',
|
||||||
'account.logout': 'Keluar',
|
'account.logout': 'Keluar',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'Perangkat ini berisi {titles} yang dibuat sebelum akunmu. Tambahkan ke akunmu?',
|
'account.deviceData': 'Perangkat ini berisi {titles} yang dibuat sebelum akunmu. Tambahkan ke akunmu?',
|
||||||
'account.deviceDataWithLists': 'Perangkat ini berisi {titles} dan {lists} yang dibuat sebelum akunmu. Tambahkan ke akunmu?',
|
'account.deviceDataWithLists': 'Perangkat ini berisi {titles} dan {lists} yang dibuat sebelum akunmu. Tambahkan ke akunmu?',
|
||||||
|
|
||||||
'time.never': 'belum pernah',
|
|
||||||
'time.justNow': 'baru saja',
|
'time.justNow': 'baru saja',
|
||||||
'time.minutesAgo': '{n} mnt lalu',
|
'time.minutesAgo': '{n} mnt lalu',
|
||||||
'time.hoursAgo': '{n} j lalu',
|
'time.hoursAgo': '{n} j lalu',
|
||||||
'time.onDate': 'pada {date}',
|
|
||||||
'time.today': 'hari ini',
|
'time.today': 'hari ini',
|
||||||
'time.tomorrow': 'besok',
|
'time.tomorrow': 'besok',
|
||||||
'time.daysAgo': '{n} h lalu',
|
'time.daysAgo': '{n} h lalu',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Ditambahkan',
|
'reco.addedShort': 'Ditambahkan',
|
||||||
|
|
||||||
'search.offline': 'Tidak ada koneksi internet: pencarian butuh jaringan.',
|
'search.offline': 'Tidak ada koneksi internet: pencarian butuh jaringan.',
|
||||||
'search.fillFrom': 'Isi dari database',
|
|
||||||
'search.openSettings': 'Buka Pengaturan',
|
'search.openSettings': 'Buka Pengaturan',
|
||||||
'search.already': 'sudah ditambahkan',
|
|
||||||
'search.noResults': 'Tidak ada hasil. Kamu bisa mengisi entri secara manual di bawah.',
|
|
||||||
'search.privacy': 'Hanya judul yang kamu cari yang dikirim ke {source}. Koleksimu tetap di ponselmu.',
|
'search.privacy': 'Hanya judul yang kamu cari yang dikirim ke {source}. Koleksimu tetap di ponselmu.',
|
||||||
|
|
||||||
'catalog.sortRecent': 'Baru diubah',
|
'catalog.sortRecent': 'Baru diubah',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Tambahkan judul pertamamu dengan tombol +.',
|
'catalog.nothingYetHint': 'Tambahkan judul pertamamu dengan tombol +.',
|
||||||
'catalog.clearFilters': 'Hapus filter',
|
'catalog.clearFilters': 'Hapus filter',
|
||||||
|
|
||||||
'public.agree': 'Pas dengan penilaian penonton',
|
|
||||||
'public.more': '+{gap} lebih tinggi dari penonton',
|
|
||||||
'public.less': '−{gap} lebih rendah dari penonton',
|
|
||||||
'public.label': 'Penonton',
|
|
||||||
'public.me': 'Aku',
|
|
||||||
'public.added_one': '{count} nilai penonton ditambahkan.',
|
|
||||||
'public.added_other': '{count} nilai penonton ditambahkan.',
|
|
||||||
'public.noneFound': 'Tidak ada nilai baru yang ditemukan.',
|
|
||||||
'public.fetch': 'Ambil ({n})',
|
|
||||||
'public.title': 'Aku vs penonton',
|
|
||||||
'public.hintFetch': 'Ambil nilai rata-rata TMDB / AniList untuk judul yang sudah kamu nilai, dan lihat di mana seleramu beda dari penonton.',
|
|
||||||
'public.hintNone': 'Belum ada nilai penonton untuk judul yang kamu nilai di periode ini.',
|
|
||||||
'public.hintKey': 'Tambahkan kunci TMDB kamu di Pengaturan (atau anime yang terhubung ke AniList) untuk membandingkan dirimu dengan penonton.',
|
|
||||||
'public.avgGap': 'Selisih rata-rata',
|
|
||||||
'public.average': 'Sesuai rata-rata',
|
|
||||||
'public.generous': 'Lebih murah hati dari penonton',
|
|
||||||
'public.harsh': 'Lebih kritis dari penonton',
|
|
||||||
'public.agreeTitle': 'Sepakat',
|
|
||||||
'public.within5_one': 'selisih maks. ½ bintang, pada {count} judul',
|
|
||||||
'public.within5_other': 'selisih maks. ½ bintang, pada {count} judul',
|
|
||||||
'public.within10_one': 'selisih maks. 1 poin, pada {count} judul',
|
|
||||||
'public.within10_other': 'selisih maks. 1 poin, pada {count} judul',
|
|
||||||
'public.lovedPre': 'Aku ',
|
|
||||||
'public.lovedAccent': 'lebih suka',
|
|
||||||
'public.lovedPost': ' dibanding penonton',
|
|
||||||
'public.hatedPre': 'Aku ',
|
|
||||||
'public.hatedAccent': 'kurang suka',
|
|
||||||
'public.hatedPost': ' dibanding penonton',
|
|
||||||
'public.allAgree': 'Kamu sepakat dengan penonton di semua judulmu. Langka!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Nonton lagi? Catat setiap tontonan ulang, nanti muncul di jurnalmu.',
|
'form.rewatchHint': 'Nonton lagi? Catat setiap tontonan ulang, nanti muncul di jurnalmu.',
|
||||||
'form.editTitle': 'Edit ',
|
|
||||||
'form.editAccent': 'entri',
|
|
||||||
'form.newTitle': 'Judul ',
|
|
||||||
'form.newAccent': 'baru',
|
|
||||||
'form.filledFrom': 'Diisi dari',
|
|
||||||
'form.canEdit': 'kamu bisa mengubah semuanya',
|
|
||||||
'form.fillFromDb': 'Lengkapi dari TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Pilih poster',
|
'form.pickPoster': 'Pilih poster',
|
||||||
'form.removeImage': 'Hapus gambar',
|
'form.removeImage': 'Hapus gambar',
|
||||||
'form.title': 'Judul *',
|
'form.title': 'Judul *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Jenis',
|
'form.type': 'Jenis',
|
||||||
'form.subtype': 'Keterangan',
|
'form.subtype': 'Keterangan',
|
||||||
'form.subtypePh': 'Dokumenter, Reality show…',
|
'form.subtypePh': 'Dokumenter, Reality show…',
|
||||||
'form.status': 'Status',
|
|
||||||
'form.myRating': 'Nilaiku',
|
|
||||||
'form.favorite': 'Favorit',
|
'form.favorite': 'Favorit',
|
||||||
'form.criteria': 'Kriteria detail (opsional)',
|
|
||||||
'form.episodes': 'Episode',
|
'form.episodes': 'Episode',
|
||||||
'form.minusEp': '-1 episode',
|
'form.minusEp': '-1 episode',
|
||||||
'form.plusEp': '+1 episode',
|
'form.plusEp': '+1 episode',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Tontonan ulang',
|
'form.rewatches': 'Tontonan ulang',
|
||||||
'form.review': 'Ulasanku',
|
'form.review': 'Ulasanku',
|
||||||
'form.reviewPh': 'Pendapatku, adegan yang berkesan…',
|
'form.reviewPh': 'Pendapatku, adegan yang berkesan…',
|
||||||
'form.saveChanges': 'Simpan perubahan',
|
|
||||||
'form.addToLibrary': 'Tambahkan ke koleksiku',
|
|
||||||
'form.shareImage': 'Bagikan sebagai gambar',
|
'form.shareImage': 'Bagikan sebagai gambar',
|
||||||
'form.delete': 'Hapus judul ini',
|
'form.delete': 'Hapus judul ini',
|
||||||
'form.deleteConfirm': '“{title}” akan dihapus permanen.',
|
'form.deleteConfirm': '“{title}” akan dihapus permanen.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count} ditonton',
|
'journal.seen_other': '{count} ditonton',
|
||||||
'journal.more': 'Tampilkan bulan sebelumnya',
|
'journal.more': 'Tampilkan bulan sebelumnya',
|
||||||
|
|
||||||
'stats.overview': 'Ringkasan',
|
|
||||||
'stats.habits': 'Kebiasaan',
|
|
||||||
'stats.tastes': 'Selera',
|
|
||||||
'stats.pageTitle': '',
|
'stats.pageTitle': '',
|
||||||
'stats.pageAccent': 'Statistikku',
|
'stats.pageAccent': 'Statistikku',
|
||||||
'stats.emptyTitle': 'Belum ada statistik',
|
'stats.emptyTitle': 'Belum ada statistik',
|
||||||
'stats.emptyText': 'Statistik akan muncul setelah kamu menambahkan judul.',
|
'stats.emptyText': 'Statistik akan muncul setelah kamu menambahkan judul.',
|
||||||
'stats.sinceStart': 'sejak awal',
|
|
||||||
'stats.subtitle_one': '{count} judul di koleksiku',
|
'stats.subtitle_one': '{count} judul di koleksiku',
|
||||||
'stats.subtitle_other': '{count} judul di koleksiku',
|
'stats.subtitle_other': '{count} judul di koleksiku',
|
||||||
'stats.subtitleYear_one': '{count} judul di {year}',
|
'stats.subtitleYear_one': '{count} judul di {year}',
|
||||||
'stats.subtitleYear_other': '{count} judul di {year}',
|
'stats.subtitleYear_other': '{count} judul di {year}',
|
||||||
'stats.hours_one': 'jam',
|
|
||||||
'stats.hours_other': 'jam',
|
|
||||||
'stats.nonStopPre': 'atau ',
|
'stats.nonStopPre': 'atau ',
|
||||||
'stats.nonStopPost': ' nonstop',
|
'stats.nonStopPost': ' nonstop',
|
||||||
'stats.days_one': '{count} hari',
|
'stats.days_one': '{count} hari',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} episode',
|
'stats.episodesN_one': '{count} episode',
|
||||||
'stats.episodesN_other': '{count} episode',
|
'stats.episodesN_other': '{count} episode',
|
||||||
'stats.timeByType': 'Waktu per jenis',
|
'stats.timeByType': 'Waktu per jenis',
|
||||||
'stats.noTime': 'Belum ada waktu tercatat di periode ini.',
|
|
||||||
'stats.avgRating': 'Nilai rata-rata',
|
'stats.avgRating': 'Nilai rata-rata',
|
||||||
'stats.rated_one': '{count} judul dinilai',
|
'stats.rated_one': '{count} judul dinilai',
|
||||||
'stats.rated_other': '{count} judul dinilai',
|
'stats.rated_other': '{count} judul dinilai',
|
||||||
'stats.inYear': 'di {year}',
|
|
||||||
'stats.statuses': 'Status',
|
'stats.statuses': 'Status',
|
||||||
'stats.hoursTab': 'Jam',
|
|
||||||
'stats.monthByMonth': 'Per bulan · {year}',
|
'stats.monthByMonth': 'Per bulan · {year}',
|
||||||
'stats.last12': '12 bulan terakhir',
|
'stats.last12': '12 bulan terakhir',
|
||||||
'stats.monthFinished_one': '{count} judul selesai',
|
'stats.monthFinished_one': '{count} judul selesai',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Rekor',
|
'stats.records': 'Rekor',
|
||||||
'stats.marathon': 'Maraton terbesar',
|
'stats.marathon': 'Maraton terbesar',
|
||||||
'stats.longestFilm': 'Film terpanjang',
|
'stats.longestFilm': 'Film terpanjang',
|
||||||
'stats.noRecords': 'Belum ada rekor di periode ini.',
|
|
||||||
'stats.platforms': 'Platform',
|
'stats.platforms': 'Platform',
|
||||||
'stats.bestRated': 'Nilai tertinggiku',
|
'stats.bestRated': 'Nilai tertinggiku',
|
||||||
'stats.myRatings': 'Nilaiku',
|
'stats.myRatings': 'Nilaiku',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Genre favorit',
|
'stats.favGenres': 'Genre favorit',
|
||||||
'stats.noGenres': 'Belum ada genre.',
|
'stats.noGenres': 'Belum ada genre.',
|
||||||
'stats.countries': 'Negara',
|
'stats.countries': 'Negara',
|
||||||
'stats.noCountry_one': '{count} judul belum punya negara: lengkapi lewat “Lengkapi dari TMDB / AniList” di halamannya.',
|
|
||||||
'stats.noCountry_other': '{count} judul belum punya negara: lengkapi lewat “Lengkapi dari TMDB / AniList” di halamannya.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} judul belum punya negara: lengkapi lewat “Lengkapi dari TMDB / AniList” di halamannya, atau impor ulang cadangan dari aplikasi lamamu (“Gabungkan”).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} judul belum punya negara: lengkapi lewat “Lengkapi dari TMDB / AniList” di halamannya, atau impor ulang cadangan dari aplikasi lamamu (“Gabungkan”).',
|
|
||||||
'stats.byType': 'Per jenis',
|
|
||||||
'stats.footnote': 'Waktu diperkirakan dari episode yang ditonton dan durasi yang diisi (jika kosong: film 1 j 50, episode anime 24 mnt, serial 45 mnt, K-drama 1 j, C-drama 45 mnt). Sebuah judul dihitung di tahun aku menyelesaikannya.',
|
'stats.footnote': 'Waktu diperkirakan dari episode yang ditonton dan durasi yang diisi (jika kosong: film 1 j 50, episode anime 24 mnt, serial 45 mnt, K-drama 1 j, C-drama 45 mnt). Sebuah judul dihitung di tahun aku menyelesaikannya.',
|
||||||
'stats.ratedAs_one': 'dinilai {rating}',
|
'stats.ratedAs_one': 'dinilai {rating}',
|
||||||
'stats.ratedAs_other': 'dinilai {rating}',
|
'stats.ratedAs_other': 'dinilai {rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': 'Nanti saja',
|
'welcome.later': 'Nanti saja',
|
||||||
'social.watching': 'Sedang ditonton',
|
'social.watching': 'Sedang ditonton',
|
||||||
'social.watchlist': 'Mau ditonton',
|
'social.watchlist': 'Mau ditonton',
|
||||||
'search.allKinds': 'Film, serial, dan anime',
|
|
||||||
'search.animeOnly': 'Tanpa kunci TMDB, hanya anime yang bisa ditemukan.',
|
'search.animeOnly': 'Tanpa kunci TMDB, hanya anime yang bisa ditemukan.',
|
||||||
'search.alreadySeries': 'sudah ada di koleksimu — buka',
|
|
||||||
'form.startShort': 'Mulai',
|
'form.startShort': 'Mulai',
|
||||||
'form.endShort': 'Selesai',
|
'form.endShort': 'Selesai',
|
||||||
'hero.allSeen': 'Semua sudah ditonton',
|
'hero.allSeen': 'Semua sudah ditonton',
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Sudah terkejar',
|
'hero.upToDate': 'Sudah terkejar',
|
||||||
'hero.seenEp': 'Sudah nonton {ep}',
|
'hero.seenEp': 'Sudah nonton {ep}',
|
||||||
'hero.seen': 'Sudah ditonton',
|
'hero.seen': 'Sudah ditonton',
|
||||||
'hero.markSeen': 'Tandai sudah ditonton',
|
|
||||||
'hero.edit': 'Edit info',
|
'hero.edit': 'Edit info',
|
||||||
'hero.more': 'Selengkapnya',
|
'hero.more': 'Selengkapnya',
|
||||||
'hero.less': 'Ciutkan',
|
'hero.less': 'Ciutkan',
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': 'Detail',
|
'homeHero.details': 'Detail',
|
||||||
'homeHero.continueRow': 'Lanjutkan nonton',
|
'homeHero.continueRow': 'Lanjutkan nonton',
|
||||||
'homeHero.nextUp': 'Berikutnya: {ep}',
|
'homeHero.nextUp': 'Berikutnya: {ep}',
|
||||||
'title.addTitle': "Tambah judul",
|
|
||||||
'title.searchPh': "Film, serial, anime, drama…",
|
|
||||||
'title.searchHint': "Cari judul, lalu buka untuk memberi nilai, menandai sudah ditonton, atau menambahkannya ke daftarmu.",
|
|
||||||
'title.noResults': "Tidak ada hasil.",
|
'title.noResults': "Tidak ada hasil.",
|
||||||
'title.manual': "Tambah manual",
|
'title.manual': "Tambah manual",
|
||||||
'title.manualHint': "Tidak ketemu? Buat sendiri.",
|
'title.manualHint': "Tidak ketemu? Buat sendiri.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Tanggal, daftar, tonton ulang",
|
'title.trackingHint': "Tanggal, daftar, tonton ulang",
|
||||||
'title.rewatchCount_one': "Ditonton ulang {count} kali",
|
'title.rewatchCount_one': "Ditonton ulang {count} kali",
|
||||||
'title.rewatchCount_other': "Ditonton ulang {count} kali",
|
'title.rewatchCount_other': "Ditonton ulang {count} kali",
|
||||||
'title.rewatchedToday': "Ditonton ulang hari ini",
|
|
||||||
'sync.syncing': "Menyinkronkan…",
|
'sync.syncing': "Menyinkronkan…",
|
||||||
'sync.offline': "Offline",
|
'sync.offline': "Offline",
|
||||||
'sync.error': "Sinkronisasi gagal",
|
'sync.error': "Sinkronisasi gagal",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} tantangan lain",
|
'challenges.more_one': "+ {count} tantangan lain",
|
||||||
'challenges.more_other': "+ {count} tantangan lain",
|
'challenges.more_other': "+ {count} tantangan lain",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Notifikasi di perangkat ini",
|
|
||||||
'push.deviceHint': "Bahkan saat aplikasi ditutup. Pilihan di bawah juga berlaku.",
|
|
||||||
'push.iosInstall': "Di iPhone dan iPad, tambahkan dulu Kino ke Layar Utama (iOS 16.4 atau lebih baru), lalu buka aplikasi dari ikonnya untuk mengaktifkan notifikasi.",
|
|
||||||
'push.unsupported': "Browser ini tidak mendukung notifikasi push.",
|
|
||||||
'push.denied': "Notifikasi diblokir untuk situs ini. Izinkan di pengaturan browser, lalu coba lagi.",
|
|
||||||
'push.notReady': "Notifikasi push belum tersedia di server.",
|
|
||||||
'push.error': "Tidak dapat mengaktifkan notifikasi. Periksa koneksimu dan coba lagi.",
|
|
||||||
'netPill.offlineSync': "Offline — perubahanmu akan disinkronkan",
|
'netPill.offlineSync': "Offline — perubahanmu akan disinkronkan",
|
||||||
'netPill.offlineLocal': "Offline — semuanya tetap tersimpan di perangkat ini",
|
'netPill.offlineLocal': "Offline — semuanya tetap tersimpan di perangkat ini",
|
||||||
'netPill.synced': "Tersinkron",
|
'netPill.synced': "Tersinkron",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Kamu berkomentar terlalu cepat — coba lagi dalam satu menit.",
|
'comments.err.rate': "Kamu berkomentar terlalu cepat — coba lagi dalam satu menit.",
|
||||||
'comments.err.gone': "Ulasan ini sudah tidak tersedia.",
|
'comments.err.gone': "Ulasan ini sudah tidak tersedia.",
|
||||||
'comments.err.invalid': "Komentar kosong atau terlalu panjang (maks. 500 karakter).",
|
'comments.err.invalid': "Komentar kosong atau terlalu panjang (maks. 500 karakter).",
|
||||||
'notif.review_comment': "mengomentari ulasanmu",
|
|
||||||
'notif.shared_list_invite': "mengundangmu ke daftar bersama",
|
|
||||||
'settings.notifComments': "Komentar di ulasanku",
|
|
||||||
'settings.notifLists': "Undangan daftar bersama",
|
|
||||||
'shared.title': "Daftar bersama",
|
'shared.title': "Daftar bersama",
|
||||||
'shared.hint': "Daftar yang dibuat bersama: setiap anggota bisa menambah atau menghapus judul.",
|
'shared.hint': "Daftar yang dibuat bersama: setiap anggota bisa menambah atau menghapus judul.",
|
||||||
'shared.new': "Daftar bersama baru",
|
'shared.new': "Daftar bersama baru",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Tidak ada yang bisa diundang: hanya pengikut dan yang kamu ikuti yang bisa bergabung.",
|
'shared.noPeople': "Tidak ada yang bisa diundang: hanya pengikut dan yang kamu ikuti yang bisa bergabung.",
|
||||||
'shared.inviteShort': "Undang",
|
'shared.inviteShort': "Undang",
|
||||||
'shared.invited': "Diundang",
|
'shared.invited': "Diundang",
|
||||||
'shared.expired': "undangan kedaluwarsa",
|
|
||||||
'shared.addTo': "Tambahkan ke daftar bersama",
|
'shared.addTo': "Tambahkan ke daftar bersama",
|
||||||
'shared.unavailable': "Daftar bersama sedang tidak tersedia.",
|
'shared.unavailable': "Daftar bersama sedang tidak tersedia.",
|
||||||
'shared.err.rate': "Terlalu banyak tindakan berturut-turut — coba lagi dalam satu menit.",
|
'shared.err.rate': "Terlalu banyak tindakan berturut-turut — coba lagi dalam satu menit.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ su 5',
|
'settings.scale5': '★ su 5',
|
||||||
'settings.scale10': 'Su 10',
|
'settings.scale10': 'Su 10',
|
||||||
'settings.ratingHint': 'Mezze stelle su 5, o passi di 0,5 su 10. I voti esistenti vengono convertiti automaticamente.',
|
'settings.ratingHint': 'Mezze stelle su 5, o passi di 0,5 su 10. I voti esistenti vengono convertiti automaticamente.',
|
||||||
'settings.theme': 'Tema',
|
|
||||||
'settings.appearance': 'Aspetto',
|
'settings.appearance': 'Aspetto',
|
||||||
'settings.appearanceHint': '«Auto» segue il browser (chiaro o scuro).',
|
'settings.appearanceHint': '«Auto» segue il browser (chiaro o scuro).',
|
||||||
'theme.modeAuto': 'Auto',
|
'theme.modeAuto': 'Auto',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'Installa l\'app',
|
'settings.installApp': 'Installa l\'app',
|
||||||
'settings.installHint': 'Aggiungi Kino alla schermata home o al desktop.',
|
'settings.installHint': 'Aggiungi Kino alla schermata home o al desktop.',
|
||||||
'settings.installed': 'App installata',
|
'settings.installed': 'App installata',
|
||||||
'settings.notifs': 'Notifiche',
|
|
||||||
'settings.notifsHint': 'Scegli cosa attiva la campana.',
|
|
||||||
'settings.notifEpisodes': 'Nuovi episodi',
|
|
||||||
'settings.notifFollows': 'Nuovi follower',
|
|
||||||
'settings.notifAccepted': 'Richieste accettate',
|
|
||||||
'settings.notifReactions': 'Reazioni alle mie recensioni',
|
|
||||||
'notif.new_episode': 'Nuovo episodio di {title}',
|
|
||||||
'notif.new_season': 'Nuova stagione di {title}',
|
|
||||||
'reviews.title': 'Recensioni',
|
'reviews.title': 'Recensioni',
|
||||||
'reviews.friends': 'I tuoi amici',
|
'reviews.friends': 'I tuoi amici',
|
||||||
'reviews.others': 'Altri membri',
|
'reviews.others': 'Altri membri',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Nessun’altra recensione',
|
'reviews.noneOthers': 'Nessun’altra recensione',
|
||||||
'reviews.none': 'Ancora nessuna recensione',
|
'reviews.none': 'Ancora nessuna recensione',
|
||||||
'reviews.seeAll': 'Vedi tutte le recensioni',
|
'reviews.seeAll': 'Vedi tutte le recensioni',
|
||||||
'reviews.react': 'Reagisci',
|
|
||||||
'notif.title': 'Notifiche',
|
|
||||||
'notif.empty': 'Nessuna notifica',
|
|
||||||
'notif.someone': 'Qualcuno',
|
'notif.someone': 'Qualcuno',
|
||||||
'notif.follow_request': 'vuole seguirti',
|
|
||||||
'notif.follow_accepted': 'ha accettato la tua richiesta',
|
|
||||||
'notif.new_follower': 'ha iniziato a seguirti',
|
|
||||||
'notif.reaction': 'ha reagito alla tua recensione',
|
|
||||||
'notif.on': 'su {title}',
|
|
||||||
'home.notifications': 'Notifiche',
|
|
||||||
'home.notificationsN': '{count} notifiche',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Installa Kino',
|
'install.title': 'Installa Kino',
|
||||||
'install.ios': 'Apri Kino in Safari.\nTocca il pulsante Condividi (il quadrato con la freccia in su).\nScegli «Aggiungi a Home», poi «Aggiungi».',
|
'install.ios': 'Apri Kino in Safari.\nTocca il pulsante Condividi (il quadrato con la freccia in su).\nScegli «Aggiungi a Home», poi «Aggiungi».',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Troppi tentativi, riprova tra un minuto.',
|
'account.err.deleteRate': 'Troppi tentativi, riprova tra un minuto.',
|
||||||
'account.err.delete': 'L’eliminazione non è riuscita. Riprova più tardi.',
|
'account.err.delete': 'L’eliminazione non è riuscita. Riprova più tardi.',
|
||||||
'account.title': 'Il mio account',
|
'account.title': 'Il mio account',
|
||||||
'account.syncing': 'Sincronizzazione…',
|
|
||||||
'account.offline': 'Offline — è tutto salvato su questo dispositivo',
|
|
||||||
'account.syncError': 'Sincronizzazione non possibile al momento',
|
|
||||||
'account.synced': 'Sincronizzato {when}',
|
|
||||||
'account.passwordChanged': 'Password modificata.',
|
'account.passwordChanged': 'Password modificata.',
|
||||||
'account.imported_one': '{count} titolo aggiunto al tuo account.',
|
'account.imported_one': '{count} titolo aggiunto al tuo account.',
|
||||||
'account.imported_other': '{count} titoli aggiunti al tuo account.',
|
'account.imported_other': '{count} titoli aggiunti al tuo account.',
|
||||||
'account.importFailed': 'L’importazione non è riuscita.',
|
'account.importFailed': 'L’importazione non è riuscita.',
|
||||||
'account.pending_one': '{count} in attesa',
|
|
||||||
'account.pending_other': '{count} in attesa',
|
|
||||||
'account.syncNow': 'Sincronizza ora',
|
|
||||||
'account.newPasswordPh': 'Nuova password (min. {n} caratteri)',
|
'account.newPasswordPh': 'Nuova password (min. {n} caratteri)',
|
||||||
'account.changePassword': 'Cambia la password',
|
'account.changePassword': 'Cambia la password',
|
||||||
'account.logout': 'Esci',
|
'account.logout': 'Esci',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'Questo dispositivo contiene {titles} creati prima del tuo account. Vuoi aggiungerli al tuo account?',
|
'account.deviceData': 'Questo dispositivo contiene {titles} creati prima del tuo account. Vuoi aggiungerli al tuo account?',
|
||||||
'account.deviceDataWithLists': 'Questo dispositivo contiene {titles} e {lists} creati prima del tuo account. Vuoi aggiungerli al tuo account?',
|
'account.deviceDataWithLists': 'Questo dispositivo contiene {titles} e {lists} creati prima del tuo account. Vuoi aggiungerli al tuo account?',
|
||||||
|
|
||||||
'time.never': 'mai',
|
|
||||||
'time.justNow': 'proprio ora',
|
'time.justNow': 'proprio ora',
|
||||||
'time.minutesAgo': '{n} min fa',
|
'time.minutesAgo': '{n} min fa',
|
||||||
'time.hoursAgo': '{n} h fa',
|
'time.hoursAgo': '{n} h fa',
|
||||||
'time.onDate': 'il {date}',
|
|
||||||
'time.today': 'oggi',
|
'time.today': 'oggi',
|
||||||
'time.tomorrow': 'domani',
|
'time.tomorrow': 'domani',
|
||||||
'time.daysAgo': '{n} g fa',
|
'time.daysAgo': '{n} g fa',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Aggiunto',
|
'reco.addedShort': 'Aggiunto',
|
||||||
|
|
||||||
'search.offline': 'Nessuna connessione internet: la ricerca ha bisogno della rete.',
|
'search.offline': 'Nessuna connessione internet: la ricerca ha bisogno della rete.',
|
||||||
'search.fillFrom': 'Compila da un database',
|
|
||||||
'search.openSettings': 'Apri le Impostazioni',
|
'search.openSettings': 'Apri le Impostazioni',
|
||||||
'search.already': 'già aggiunto',
|
|
||||||
'search.noResults': 'Nessun risultato. Puoi compilare la scheda a mano qui sotto.',
|
|
||||||
'search.privacy': 'Viene inviato a {source} solo il titolo cercato. La tua libreria resta sul tuo telefono.',
|
'search.privacy': 'Viene inviato a {source} solo il titolo cercato. La tua libreria resta sul tuo telefono.',
|
||||||
|
|
||||||
'catalog.sortRecent': 'Modificati di recente',
|
'catalog.sortRecent': 'Modificati di recente',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Aggiungi il tuo primo titolo con il pulsante +.',
|
'catalog.nothingYetHint': 'Aggiungi il tuo primo titolo con il pulsante +.',
|
||||||
'catalog.clearFilters': 'Cancella i filtri',
|
'catalog.clearFilters': 'Cancella i filtri',
|
||||||
|
|
||||||
'public.agree': 'In linea con il pubblico',
|
|
||||||
'public.more': '+{gap} in più del pubblico',
|
|
||||||
'public.less': '−{gap} in meno del pubblico',
|
|
||||||
'public.label': 'Pubblico',
|
|
||||||
'public.me': 'Io',
|
|
||||||
'public.added_one': '{count} voto del pubblico aggiunto.',
|
|
||||||
'public.added_other': '{count} voti del pubblico aggiunti.',
|
|
||||||
'public.noneFound': 'Nessun nuovo voto trovato.',
|
|
||||||
'public.fetch': 'Recupera ({n})',
|
|
||||||
'public.title': 'Io vs il pubblico',
|
|
||||||
'public.hintFetch': 'Recupera il voto medio TMDB / AniList dei tuoi titoli votati per vedere dove ti distingui dal pubblico.',
|
|
||||||
'public.hintNone': 'Nessun voto pubblico disponibile per i tuoi titoli votati in questo periodo.',
|
|
||||||
'public.hintKey': 'Aggiungi la tua chiave TMDB nelle Impostazioni (o anime collegati ad AniList) per confrontarti con il pubblico.',
|
|
||||||
'public.avgGap': 'Scarto medio',
|
|
||||||
'public.average': 'Nella media',
|
|
||||||
'public.generous': 'Più generoso del pubblico',
|
|
||||||
'public.harsh': 'Più severo del pubblico',
|
|
||||||
'public.agreeTitle': 'D’accordo',
|
|
||||||
'public.within5_one': 'entro ½ stella, su {count} titolo',
|
|
||||||
'public.within5_other': 'entro ½ stella, su {count} titoli',
|
|
||||||
'public.within10_one': 'entro 1 punto, su {count} titolo',
|
|
||||||
'public.within10_other': 'entro 1 punto, su {count} titoli',
|
|
||||||
'public.lovedPre': 'Mi sono piaciuti ',
|
|
||||||
'public.lovedAccent': 'di più',
|
|
||||||
'public.lovedPost': ' che al pubblico',
|
|
||||||
'public.hatedPre': 'Mi sono piaciuti ',
|
|
||||||
'public.hatedAccent': 'di meno',
|
|
||||||
'public.hatedPost': ' che al pubblico',
|
|
||||||
'public.allAgree': 'Sei d’accordo con il pubblico su tutti i tuoi titoli. Raro!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'L’hai rivisto? Segna ogni nuova visione, comparirà nel tuo diario.',
|
'form.rewatchHint': 'L’hai rivisto? Segna ogni nuova visione, comparirà nel tuo diario.',
|
||||||
'form.editTitle': 'Modifica ',
|
|
||||||
'form.editAccent': 'scheda',
|
|
||||||
'form.newTitle': 'Nuovo ',
|
|
||||||
'form.newAccent': 'titolo',
|
|
||||||
'form.filledFrom': 'Compilato da',
|
|
||||||
'form.canEdit': 'puoi modificare tutto',
|
|
||||||
'form.fillFromDb': 'Completa da TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Scegli una locandina',
|
'form.pickPoster': 'Scegli una locandina',
|
||||||
'form.removeImage': 'Rimuovi l’immagine',
|
'form.removeImage': 'Rimuovi l’immagine',
|
||||||
'form.title': 'Titolo *',
|
'form.title': 'Titolo *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Tipo',
|
'form.type': 'Tipo',
|
||||||
'form.subtype': 'Dettaglio',
|
'form.subtype': 'Dettaglio',
|
||||||
'form.subtypePh': 'Documentario, Reality…',
|
'form.subtypePh': 'Documentario, Reality…',
|
||||||
'form.status': 'Stato',
|
|
||||||
'form.myRating': 'Il mio voto',
|
|
||||||
'form.favorite': 'Preferito',
|
'form.favorite': 'Preferito',
|
||||||
'form.criteria': 'Criteri dettagliati (facoltativo)',
|
|
||||||
'form.episodes': 'Episodi',
|
'form.episodes': 'Episodi',
|
||||||
'form.minusEp': '-1 episodio',
|
'form.minusEp': '-1 episodio',
|
||||||
'form.plusEp': '+1 episodio',
|
'form.plusEp': '+1 episodio',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Nuove visioni',
|
'form.rewatches': 'Nuove visioni',
|
||||||
'form.review': 'La mia opinione',
|
'form.review': 'La mia opinione',
|
||||||
'form.reviewPh': 'Cosa ne ho pensato, scene memorabili…',
|
'form.reviewPh': 'Cosa ne ho pensato, scene memorabili…',
|
||||||
'form.saveChanges': 'Salva le modifiche',
|
|
||||||
'form.addToLibrary': 'Aggiungi alla mia libreria',
|
|
||||||
'form.shareImage': 'Condividi come immagine',
|
'form.shareImage': 'Condividi come immagine',
|
||||||
'form.delete': 'Elimina questo titolo',
|
'form.delete': 'Elimina questo titolo',
|
||||||
'form.deleteConfirm': '«{title}» verrà eliminato per sempre.',
|
'form.deleteConfirm': '«{title}» verrà eliminato per sempre.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count} visti',
|
'journal.seen_other': '{count} visti',
|
||||||
'journal.more': 'Mostra i mesi precedenti',
|
'journal.more': 'Mostra i mesi precedenti',
|
||||||
|
|
||||||
'stats.overview': 'Panoramica',
|
|
||||||
'stats.habits': 'Abitudini',
|
|
||||||
'stats.tastes': 'Gusti',
|
|
||||||
'stats.pageTitle': 'Le mie ',
|
'stats.pageTitle': 'Le mie ',
|
||||||
'stats.pageAccent': 'statistiche',
|
'stats.pageAccent': 'statistiche',
|
||||||
'stats.emptyTitle': 'Ancora nessuna statistica',
|
'stats.emptyTitle': 'Ancora nessuna statistica',
|
||||||
'stats.emptyText': 'Compariranno appena avrai aggiunto dei titoli.',
|
'stats.emptyText': 'Compariranno appena avrai aggiunto dei titoli.',
|
||||||
'stats.sinceStart': 'dall’inizio',
|
|
||||||
'stats.subtitle_one': '{count} titolo nella mia libreria',
|
'stats.subtitle_one': '{count} titolo nella mia libreria',
|
||||||
'stats.subtitle_other': '{count} titoli nella mia libreria',
|
'stats.subtitle_other': '{count} titoli nella mia libreria',
|
||||||
'stats.subtitleYear_one': '{count} titolo nel {year}',
|
'stats.subtitleYear_one': '{count} titolo nel {year}',
|
||||||
'stats.subtitleYear_other': '{count} titoli nel {year}',
|
'stats.subtitleYear_other': '{count} titoli nel {year}',
|
||||||
'stats.hours_one': 'ora',
|
|
||||||
'stats.hours_other': 'ore',
|
|
||||||
'stats.nonStopPre': 'cioè ',
|
'stats.nonStopPre': 'cioè ',
|
||||||
'stats.nonStopPost': ' non-stop',
|
'stats.nonStopPost': ' non-stop',
|
||||||
'stats.days_one': '{count} giorno',
|
'stats.days_one': '{count} giorno',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} episodio',
|
'stats.episodesN_one': '{count} episodio',
|
||||||
'stats.episodesN_other': '{count} episodi',
|
'stats.episodesN_other': '{count} episodi',
|
||||||
'stats.timeByType': 'Tempo per tipo',
|
'stats.timeByType': 'Tempo per tipo',
|
||||||
'stats.noTime': 'Ancora nessun tempo registrato in questo periodo.',
|
|
||||||
'stats.avgRating': 'Voto medio',
|
'stats.avgRating': 'Voto medio',
|
||||||
'stats.rated_one': '{count} titolo votato',
|
'stats.rated_one': '{count} titolo votato',
|
||||||
'stats.rated_other': '{count} titoli votati',
|
'stats.rated_other': '{count} titoli votati',
|
||||||
'stats.inYear': 'nel {year}',
|
|
||||||
'stats.statuses': 'Stati',
|
'stats.statuses': 'Stati',
|
||||||
'stats.hoursTab': 'Ore',
|
|
||||||
'stats.monthByMonth': 'Mese per mese · {year}',
|
'stats.monthByMonth': 'Mese per mese · {year}',
|
||||||
'stats.last12': 'Ultimi 12 mesi',
|
'stats.last12': 'Ultimi 12 mesi',
|
||||||
'stats.monthFinished_one': '{count} titolo finito',
|
'stats.monthFinished_one': '{count} titolo finito',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Record',
|
'stats.records': 'Record',
|
||||||
'stats.marathon': 'Maratona più lunga',
|
'stats.marathon': 'Maratona più lunga',
|
||||||
'stats.longestFilm': 'Film più lungo',
|
'stats.longestFilm': 'Film più lungo',
|
||||||
'stats.noRecords': 'Ancora nessun record in questo periodo.',
|
|
||||||
'stats.platforms': 'Piattaforme',
|
'stats.platforms': 'Piattaforme',
|
||||||
'stats.bestRated': 'I miei più votati',
|
'stats.bestRated': 'I miei più votati',
|
||||||
'stats.myRatings': 'I miei voti',
|
'stats.myRatings': 'I miei voti',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Generi preferiti',
|
'stats.favGenres': 'Generi preferiti',
|
||||||
'stats.noGenres': 'Ancora nessun genere.',
|
'stats.noGenres': 'Ancora nessun genere.',
|
||||||
'stats.countries': 'Paesi',
|
'stats.countries': 'Paesi',
|
||||||
'stats.noCountry_one': '{count} titolo senza paese: completalo con «Completa da TMDB / AniList» nella scheda.',
|
|
||||||
'stats.noCountry_other': '{count} titoli senza paese: completali con «Completa da TMDB / AniList» nella scheda.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} titolo senza paese: completalo con «Completa da TMDB / AniList» nella scheda, o reimporta il backup della tua vecchia app («Unisci»).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} titoli senza paese: completali con «Completa da TMDB / AniList» nella scheda, o reimporta il backup della tua vecchia app («Unisci»).',
|
|
||||||
'stats.byType': 'Per tipo',
|
|
||||||
'stats.footnote': 'Tempo stimato in base agli episodi visti e alle durate inserite (altrimenti: film 1 h 50, episodio anime 24 min, serie 45 min, K-drama 1 h, C-drama 45 min). Un titolo conta per l’anno in cui l’ho finito.',
|
'stats.footnote': 'Tempo stimato in base agli episodi visti e alle durate inserite (altrimenti: film 1 h 50, episodio anime 24 min, serie 45 min, K-drama 1 h, C-drama 45 min). Un titolo conta per l’anno in cui l’ho finito.',
|
||||||
'stats.ratedAs_one': 'votato {rating}',
|
'stats.ratedAs_one': 'votato {rating}',
|
||||||
'stats.ratedAs_other': 'votati {rating}',
|
'stats.ratedAs_other': 'votati {rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "Più tardi",
|
'welcome.later': "Più tardi",
|
||||||
'social.watching': "In corso",
|
'social.watching': "In corso",
|
||||||
'social.watchlist': "Vuole vedere",
|
'social.watchlist': "Vuole vedere",
|
||||||
'search.allKinds': "Film, serie e anime",
|
|
||||||
'search.animeOnly': "Senza chiave TMDB si trovano solo gli anime.",
|
'search.animeOnly': "Senza chiave TMDB si trovano solo gli anime.",
|
||||||
'search.alreadySeries': "già nella tua libreria — apri",
|
|
||||||
'form.startShort': "Iniziato",
|
'form.startShort': "Iniziato",
|
||||||
'form.endShort': "Finito",
|
'form.endShort': "Finito",
|
||||||
'hero.allSeen': "Tutto visto",
|
'hero.allSeen': "Tutto visto",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'In pari',
|
'hero.upToDate': 'In pari',
|
||||||
'hero.seenEp': "Ho visto {ep}",
|
'hero.seenEp': "Ho visto {ep}",
|
||||||
'hero.seen': "Visto",
|
'hero.seen': "Visto",
|
||||||
'hero.markSeen': "Segna come visto",
|
|
||||||
'hero.edit': "Modifica i dati",
|
'hero.edit': "Modifica i dati",
|
||||||
'hero.more': "Leggi tutto",
|
'hero.more': "Leggi tutto",
|
||||||
'hero.less': "Riduci",
|
'hero.less': "Riduci",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "Scheda",
|
'homeHero.details': "Scheda",
|
||||||
'homeHero.continueRow': "Riprendi",
|
'homeHero.continueRow': "Riprendi",
|
||||||
'homeHero.nextUp': "Prossimo: {ep}",
|
'homeHero.nextUp': "Prossimo: {ep}",
|
||||||
'title.addTitle': "Aggiungi un titolo",
|
|
||||||
'title.searchPh': "Film, serie, anime, drama…",
|
|
||||||
'title.searchHint': "Cerca un titolo e apri la sua scheda per votarlo, segnarlo come visto o aggiungerlo alla tua lista.",
|
|
||||||
'title.noResults': "Nessun risultato.",
|
'title.noResults': "Nessun risultato.",
|
||||||
'title.manual': "Aggiungi manualmente",
|
'title.manual': "Aggiungi manualmente",
|
||||||
'title.manualHint': "Non lo trovi? Crea tu la scheda.",
|
'title.manualHint': "Non lo trovi? Crea tu la scheda.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Date, liste, rewatch",
|
'title.trackingHint': "Date, liste, rewatch",
|
||||||
'title.rewatchCount_one': "Rivisto una volta",
|
'title.rewatchCount_one': "Rivisto una volta",
|
||||||
'title.rewatchCount_other': "Rivisto {count} volte",
|
'title.rewatchCount_other': "Rivisto {count} volte",
|
||||||
'title.rewatchedToday': "Rivisto oggi",
|
|
||||||
'sync.syncing': "Sincronizzazione…",
|
'sync.syncing': "Sincronizzazione…",
|
||||||
'sync.offline': "Offline",
|
'sync.offline': "Offline",
|
||||||
'sync.error': "Sincronizzazione non riuscita",
|
'sync.error': "Sincronizzazione non riuscita",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} altra sfida",
|
'challenges.more_one': "+ {count} altra sfida",
|
||||||
'challenges.more_other': "+ {count} altre sfide",
|
'challenges.more_other': "+ {count} altre sfide",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Notifiche su questo dispositivo",
|
|
||||||
'push.deviceHint': "Anche con l’app chiusa. Valgono anche le scelte qui sotto.",
|
|
||||||
'push.iosInstall': "Su iPhone e iPad, aggiungi prima Kino alla schermata Home (iOS 16.4 o successivo), poi apri l’app dalla sua icona per attivare le notifiche.",
|
|
||||||
'push.unsupported': "Questo browser non supporta le notifiche push.",
|
|
||||||
'push.denied': "Le notifiche sono bloccate per questo sito. Consentile nelle impostazioni del browser, poi riprova.",
|
|
||||||
'push.notReady': "Le notifiche push non sono ancora disponibili sul server.",
|
|
||||||
'push.error': "Impossibile attivare le notifiche. Controlla la connessione e riprova.",
|
|
||||||
'netPill.offlineSync': "Offline — le modifiche verranno sincronizzate",
|
'netPill.offlineSync': "Offline — le modifiche verranno sincronizzate",
|
||||||
'netPill.offlineLocal': "Offline — tutto resta salvato su questo dispositivo",
|
'netPill.offlineLocal': "Offline — tutto resta salvato su questo dispositivo",
|
||||||
'netPill.synced': "Sincronizzato",
|
'netPill.synced': "Sincronizzato",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Stai commentando troppo in fretta: riprova tra un minuto.",
|
'comments.err.rate': "Stai commentando troppo in fretta: riprova tra un minuto.",
|
||||||
'comments.err.gone': "Questa recensione non è più disponibile.",
|
'comments.err.gone': "Questa recensione non è più disponibile.",
|
||||||
'comments.err.invalid': "Commento vuoto o troppo lungo (max 500 caratteri).",
|
'comments.err.invalid': "Commento vuoto o troppo lungo (max 500 caratteri).",
|
||||||
'notif.review_comment': "ha commentato la tua recensione",
|
|
||||||
'notif.shared_list_invite': "ti ha invitato nella lista condivisa",
|
|
||||||
'settings.notifComments': "Commenti alle mie recensioni",
|
|
||||||
'settings.notifLists': "Inviti alle liste condivise",
|
|
||||||
'shared.title': "Liste condivise",
|
'shared.title': "Liste condivise",
|
||||||
'shared.hint': "Liste a più mani: ogni membro può aggiungere o togliere titoli.",
|
'shared.hint': "Liste a più mani: ogni membro può aggiungere o togliere titoli.",
|
||||||
'shared.new': "Nuova lista condivisa",
|
'shared.new': "Nuova lista condivisa",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Nessuno da invitare: solo i tuoi follower e le persone che segui possono unirsi.",
|
'shared.noPeople': "Nessuno da invitare: solo i tuoi follower e le persone che segui possono unirsi.",
|
||||||
'shared.inviteShort': "Invita",
|
'shared.inviteShort': "Invita",
|
||||||
'shared.invited': "Invitato",
|
'shared.invited': "Invitato",
|
||||||
'shared.expired': "invito scaduto",
|
|
||||||
'shared.addTo': "Aggiungi a una lista condivisa",
|
'shared.addTo': "Aggiungi a una lista condivisa",
|
||||||
'shared.unavailable': "Liste condivise non disponibili al momento.",
|
'shared.unavailable': "Liste condivise non disponibili al momento.",
|
||||||
'shared.err.rate': "Troppe azioni di fila: riprova tra un minuto.",
|
'shared.err.rate': "Troppe azioni di fila: riprova tra un minuto.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ 5段階',
|
'settings.scale5': '★ 5段階',
|
||||||
'settings.scale10': '10点満点',
|
'settings.scale10': '10点満点',
|
||||||
'settings.ratingHint': '5段階は星半分刻み、10点満点は0.5刻みです。既存の評価は自動で変換されます。',
|
'settings.ratingHint': '5段階は星半分刻み、10点満点は0.5刻みです。既存の評価は自動で変換されます。',
|
||||||
'settings.theme': 'テーマ',
|
|
||||||
'settings.appearance': '外観',
|
'settings.appearance': '外観',
|
||||||
'settings.appearanceHint': '「自動」はブラウザに合わせます(ライトまたはダーク)。',
|
'settings.appearanceHint': '「自動」はブラウザに合わせます(ライトまたはダーク)。',
|
||||||
'theme.modeAuto': '自動',
|
'theme.modeAuto': '自動',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'アプリをインストール',
|
'settings.installApp': 'アプリをインストール',
|
||||||
'settings.installHint': 'Kino をホーム画面やデスクトップに追加します。',
|
'settings.installHint': 'Kino をホーム画面やデスクトップに追加します。',
|
||||||
'settings.installed': 'アプリをインストール済み',
|
'settings.installed': 'アプリをインストール済み',
|
||||||
'settings.notifs': '通知',
|
|
||||||
'settings.notifsHint': 'ベルを鳴らす項目を選びます。',
|
|
||||||
'settings.notifEpisodes': '新しいエピソード',
|
|
||||||
'settings.notifFollows': '新しいフォロワー',
|
|
||||||
'settings.notifAccepted': '承認されたリクエスト',
|
|
||||||
'settings.notifReactions': '自分のレビューへのリアクション',
|
|
||||||
'notif.new_episode': '「{title}」の新エピソード',
|
|
||||||
'notif.new_season': '「{title}」の新シーズン',
|
|
||||||
'reviews.title': 'レビュー',
|
'reviews.title': 'レビュー',
|
||||||
'reviews.friends': '友だち',
|
'reviews.friends': '友だち',
|
||||||
'reviews.others': 'ほかのメンバー',
|
'reviews.others': 'ほかのメンバー',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'ほかのレビューはありません',
|
'reviews.noneOthers': 'ほかのレビューはありません',
|
||||||
'reviews.none': 'まだレビューがありません',
|
'reviews.none': 'まだレビューがありません',
|
||||||
'reviews.seeAll': 'すべてのレビューを見る',
|
'reviews.seeAll': 'すべてのレビューを見る',
|
||||||
'reviews.react': 'リアクション',
|
|
||||||
'notif.title': '通知',
|
|
||||||
'notif.empty': '通知はありません',
|
|
||||||
'notif.someone': '誰か',
|
'notif.someone': '誰か',
|
||||||
'notif.follow_request': 'があなたをフォローしたがっています',
|
|
||||||
'notif.follow_accepted': 'があなたのリクエストを承認しました',
|
|
||||||
'notif.new_follower': 'があなたをフォローしました',
|
|
||||||
'notif.reaction': 'があなたのレビューにリアクションしました',
|
|
||||||
'notif.on': '「{title}」に',
|
|
||||||
'home.notifications': '通知',
|
|
||||||
'home.notificationsN': '{count}件の通知',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Kino をインストール',
|
'install.title': 'Kino をインストール',
|
||||||
'install.ios': 'Safari で Kino を開きます。\n共有ボタン(上矢印付きの四角)をタップします。\n「ホーム画面に追加」を選び、「追加」をタップします。',
|
'install.ios': 'Safari で Kino を開きます。\n共有ボタン(上矢印付きの四角)をタップします。\n「ホーム画面に追加」を選び、「追加」をタップします。',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': '試行回数が多すぎます。1分後にもう一度お試しください。',
|
'account.err.deleteRate': '試行回数が多すぎます。1分後にもう一度お試しください。',
|
||||||
'account.err.delete': '削除に失敗しました。しばらくしてからもう一度お試しください。',
|
'account.err.delete': '削除に失敗しました。しばらくしてからもう一度お試しください。',
|
||||||
'account.title': 'マイアカウント',
|
'account.title': 'マイアカウント',
|
||||||
'account.syncing': '同期中…',
|
|
||||||
'account.offline': 'オフライン — すべてこの端末に保存されています',
|
|
||||||
'account.syncError': '現在、同期できません',
|
|
||||||
'account.synced': '最終同期:{when}',
|
|
||||||
'account.passwordChanged': 'パスワードを変更しました。',
|
'account.passwordChanged': 'パスワードを変更しました。',
|
||||||
'account.imported_one': '{count}作品をアカウントに追加しました。',
|
'account.imported_one': '{count}作品をアカウントに追加しました。',
|
||||||
'account.imported_other': '{count}作品をアカウントに追加しました。',
|
'account.imported_other': '{count}作品をアカウントに追加しました。',
|
||||||
'account.importFailed': 'インポートに失敗しました。',
|
'account.importFailed': 'インポートに失敗しました。',
|
||||||
'account.pending_one': '{count}件待機中',
|
|
||||||
'account.pending_other': '{count}件待機中',
|
|
||||||
'account.syncNow': '今すぐ同期',
|
|
||||||
'account.newPasswordPh': '新しいパスワード({n}文字以上)',
|
'account.newPasswordPh': '新しいパスワード({n}文字以上)',
|
||||||
'account.changePassword': 'パスワードを変更',
|
'account.changePassword': 'パスワードを変更',
|
||||||
'account.logout': 'ログアウト',
|
'account.logout': 'ログアウト',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'この端末にはアカウント作成前の{titles}があります。アカウントに追加しますか?',
|
'account.deviceData': 'この端末にはアカウント作成前の{titles}があります。アカウントに追加しますか?',
|
||||||
'account.deviceDataWithLists': 'この端末にはアカウント作成前の{titles}と{lists}があります。アカウントに追加しますか?',
|
'account.deviceDataWithLists': 'この端末にはアカウント作成前の{titles}と{lists}があります。アカウントに追加しますか?',
|
||||||
|
|
||||||
'time.never': 'なし',
|
|
||||||
'time.justNow': 'たった今',
|
'time.justNow': 'たった今',
|
||||||
'time.minutesAgo': '{n}分前',
|
'time.minutesAgo': '{n}分前',
|
||||||
'time.hoursAgo': '{n}時間前',
|
'time.hoursAgo': '{n}時間前',
|
||||||
'time.onDate': '{date}',
|
|
||||||
'time.today': '今日',
|
'time.today': '今日',
|
||||||
'time.tomorrow': '明日',
|
'time.tomorrow': '明日',
|
||||||
'time.daysAgo': '{n}日前',
|
'time.daysAgo': '{n}日前',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': '追加済み',
|
'reco.addedShort': '追加済み',
|
||||||
|
|
||||||
'search.offline': 'インターネットに接続されていません。検索にはネット接続が必要です。',
|
'search.offline': 'インターネットに接続されていません。検索にはネット接続が必要です。',
|
||||||
'search.fillFrom': 'データベースから入力',
|
|
||||||
'search.openSettings': '設定を開く',
|
'search.openSettings': '設定を開く',
|
||||||
'search.already': '追加済み',
|
|
||||||
'search.noResults': '結果がありません。下から手動で入力できます。',
|
|
||||||
'search.privacy': '{source}に送信されるのは検索したタイトルだけです。ライブラリはスマホに残ります。',
|
'search.privacy': '{source}に送信されるのは検索したタイトルだけです。ライブラリはスマホに残ります。',
|
||||||
|
|
||||||
'catalog.sortRecent': '最近の更新順',
|
'catalog.sortRecent': '最近の更新順',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': '+ボタンで最初の作品を追加しましょう。',
|
'catalog.nothingYetHint': '+ボタンで最初の作品を追加しましょう。',
|
||||||
'catalog.clearFilters': 'フィルターを解除',
|
'catalog.clearFilters': 'フィルターを解除',
|
||||||
|
|
||||||
'public.agree': 'みんなの評価とぴったり一致',
|
|
||||||
'public.more': 'みんなより+{gap}高い',
|
|
||||||
'public.less': 'みんなより−{gap}低い',
|
|
||||||
'public.label': 'みんな',
|
|
||||||
'public.me': 'わたし',
|
|
||||||
'public.added_one': 'みんなの評価を{count}件追加しました。',
|
|
||||||
'public.added_other': 'みんなの評価を{count}件追加しました。',
|
|
||||||
'public.noneFound': '新しい評価は見つかりませんでした。',
|
|
||||||
'public.fetch': '取得({n})',
|
|
||||||
'public.title': 'わたし vs みんな',
|
|
||||||
'public.hintFetch': '評価済み作品のTMDB / AniList平均評価を取得して、みんなとの違いを見てみましょう。',
|
|
||||||
'public.hintNone': 'この期間に評価した作品には、みんなの評価がありません。',
|
|
||||||
'public.hintKey': '設定でTMDBキーを追加する(またはAniListと連携したアニメを追加する)と、みんなと比較できます。',
|
|
||||||
'public.avgGap': '平均の差',
|
|
||||||
'public.average': '平均的',
|
|
||||||
'public.generous': 'みんなより甘め',
|
|
||||||
'public.harsh': 'みんなより辛め',
|
|
||||||
'public.agreeTitle': '一致',
|
|
||||||
'public.within5_one': '差が星½以内、{count}作品中',
|
|
||||||
'public.within5_other': '差が星½以内、{count}作品中',
|
|
||||||
'public.within10_one': '差が1点以内、{count}作品中',
|
|
||||||
'public.within10_other': '差が1点以内、{count}作品中',
|
|
||||||
'public.lovedPre': 'みんなより',
|
|
||||||
'public.lovedAccent': '高く評価',
|
|
||||||
'public.lovedPost': 'した作品',
|
|
||||||
'public.hatedPre': 'みんなより',
|
|
||||||
'public.hatedAccent': '低く評価',
|
|
||||||
'public.hatedPost': 'した作品',
|
|
||||||
'public.allAgree': 'すべての作品でみんなと同じ評価です。珍しい!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'もう一度見ましたか?再視聴を記録すると視聴記録に表示されます。',
|
'form.rewatchHint': 'もう一度見ましたか?再視聴を記録すると視聴記録に表示されます。',
|
||||||
'form.editTitle': '作品を',
|
|
||||||
'form.editAccent': '編集',
|
|
||||||
'form.newTitle': '新しい',
|
|
||||||
'form.newAccent': '作品',
|
|
||||||
'form.filledFrom': '取得元',
|
|
||||||
'form.canEdit': 'すべて編集できます',
|
|
||||||
'form.fillFromDb': 'TMDB / AniListから補完',
|
|
||||||
'form.pickPoster': 'ポスターを選ぶ',
|
'form.pickPoster': 'ポスターを選ぶ',
|
||||||
'form.removeImage': '画像を削除',
|
'form.removeImage': '画像を削除',
|
||||||
'form.title': 'タイトル *',
|
'form.title': 'タイトル *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'タイプ',
|
'form.type': 'タイプ',
|
||||||
'form.subtype': '詳細',
|
'form.subtype': '詳細',
|
||||||
'form.subtypePh': 'ドキュメンタリー、リアリティ番組…',
|
'form.subtypePh': 'ドキュメンタリー、リアリティ番組…',
|
||||||
'form.status': 'ステータス',
|
|
||||||
'form.myRating': 'マイ評価',
|
|
||||||
'form.favorite': 'お気に入り',
|
'form.favorite': 'お気に入り',
|
||||||
'form.criteria': '詳細評価(任意)',
|
|
||||||
'form.episodes': 'エピソード',
|
'form.episodes': 'エピソード',
|
||||||
'form.minusEp': '-1話',
|
'form.minusEp': '-1話',
|
||||||
'form.plusEp': '+1話',
|
'form.plusEp': '+1話',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': '再視聴',
|
'form.rewatches': '再視聴',
|
||||||
'form.review': 'マイレビュー',
|
'form.review': 'マイレビュー',
|
||||||
'form.reviewPh': '感想、印象に残ったシーン…',
|
'form.reviewPh': '感想、印象に残ったシーン…',
|
||||||
'form.saveChanges': '変更を保存',
|
|
||||||
'form.addToLibrary': 'ライブラリに追加',
|
|
||||||
'form.shareImage': '画像でシェア',
|
'form.shareImage': '画像でシェア',
|
||||||
'form.delete': 'この作品を削除',
|
'form.delete': 'この作品を削除',
|
||||||
'form.deleteConfirm': '「{title}」を完全に削除します。',
|
'form.deleteConfirm': '「{title}」を完全に削除します。',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count}本視聴',
|
'journal.seen_other': '{count}本視聴',
|
||||||
'journal.more': '前の月を表示',
|
'journal.more': '前の月を表示',
|
||||||
|
|
||||||
'stats.overview': '概要',
|
|
||||||
'stats.habits': '視聴傾向',
|
|
||||||
'stats.tastes': '好み',
|
|
||||||
'stats.pageTitle': 'マイ',
|
'stats.pageTitle': 'マイ',
|
||||||
'stats.pageAccent': '統計',
|
'stats.pageAccent': '統計',
|
||||||
'stats.emptyTitle': 'まだ統計がありません',
|
'stats.emptyTitle': 'まだ統計がありません',
|
||||||
'stats.emptyText': '作品を追加すると表示されます。',
|
'stats.emptyText': '作品を追加すると表示されます。',
|
||||||
'stats.sinceStart': 'これまでの合計',
|
|
||||||
'stats.subtitle_one': 'ライブラリに{count}作品',
|
'stats.subtitle_one': 'ライブラリに{count}作品',
|
||||||
'stats.subtitle_other': 'ライブラリに{count}作品',
|
'stats.subtitle_other': 'ライブラリに{count}作品',
|
||||||
'stats.subtitleYear_one': '{year}年に{count}作品',
|
'stats.subtitleYear_one': '{year}年に{count}作品',
|
||||||
'stats.subtitleYear_other': '{year}年に{count}作品',
|
'stats.subtitleYear_other': '{year}年に{count}作品',
|
||||||
'stats.hours_one': '時間',
|
|
||||||
'stats.hours_other': '時間',
|
|
||||||
'stats.nonStopPre': 'ノンストップで',
|
'stats.nonStopPre': 'ノンストップで',
|
||||||
'stats.nonStopPost': '分',
|
'stats.nonStopPost': '分',
|
||||||
'stats.days_one': '{count}日',
|
'stats.days_one': '{count}日',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count}話',
|
'stats.episodesN_one': '{count}話',
|
||||||
'stats.episodesN_other': '{count}話',
|
'stats.episodesN_other': '{count}話',
|
||||||
'stats.timeByType': 'タイプ別の視聴時間',
|
'stats.timeByType': 'タイプ別の視聴時間',
|
||||||
'stats.noTime': 'この期間の視聴時間はまだありません。',
|
|
||||||
'stats.avgRating': '平均評価',
|
'stats.avgRating': '平均評価',
|
||||||
'stats.rated_one': '{count}作品を評価',
|
'stats.rated_one': '{count}作品を評価',
|
||||||
'stats.rated_other': '{count}作品を評価',
|
'stats.rated_other': '{count}作品を評価',
|
||||||
'stats.inYear': '{year}年',
|
|
||||||
'stats.statuses': 'ステータス',
|
'stats.statuses': 'ステータス',
|
||||||
'stats.hoursTab': '時間',
|
|
||||||
'stats.monthByMonth': '月別・{year}年',
|
'stats.monthByMonth': '月別・{year}年',
|
||||||
'stats.last12': '過去12か月',
|
'stats.last12': '過去12か月',
|
||||||
'stats.monthFinished_one': '{count}作品を見終わった',
|
'stats.monthFinished_one': '{count}作品を見終わった',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': '記録',
|
'stats.records': '記録',
|
||||||
'stats.marathon': '最長の一気見',
|
'stats.marathon': '最長の一気見',
|
||||||
'stats.longestFilm': '最長の映画',
|
'stats.longestFilm': '最長の映画',
|
||||||
'stats.noRecords': 'この期間の記録はまだありません。',
|
|
||||||
'stats.platforms': '配信サービス',
|
'stats.platforms': '配信サービス',
|
||||||
'stats.bestRated': '高評価の作品',
|
'stats.bestRated': '高評価の作品',
|
||||||
'stats.myRatings': 'マイ評価',
|
'stats.myRatings': 'マイ評価',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': '好きなジャンル',
|
'stats.favGenres': '好きなジャンル',
|
||||||
'stats.noGenres': 'まだジャンルがありません。',
|
'stats.noGenres': 'まだジャンルがありません。',
|
||||||
'stats.countries': '国',
|
'stats.countries': '国',
|
||||||
'stats.noCountry_one': '国が未設定の作品が{count}件あります。作品ページの「TMDB / AniListから補完」で追加してください。',
|
|
||||||
'stats.noCountry_other': '国が未設定の作品が{count}件あります。作品ページの「TMDB / AniListから補完」で追加してください。',
|
|
||||||
'stats.noCountryLegacy_one': '国が未設定の作品が{count}件あります。作品ページの「TMDB / AniListから補完」で追加するか、旧アプリのバックアップを再インポート(「統合」)してください。',
|
|
||||||
'stats.noCountryLegacy_other': '国が未設定の作品が{count}件あります。作品ページの「TMDB / AniListから補完」で追加するか、旧アプリのバックアップを再インポート(「統合」)してください。',
|
|
||||||
'stats.byType': 'タイプ別',
|
|
||||||
'stats.footnote': '視聴時間は視聴したエピソード数と入力された上映時間から推定しています(未入力の場合:映画1時間50分、アニメ1話24分、ドラマ45分、韓国ドラマ1時間、中国ドラマ45分)。作品は見終わった年にカウントされます。',
|
'stats.footnote': '視聴時間は視聴したエピソード数と入力された上映時間から推定しています(未入力の場合:映画1時間50分、アニメ1話24分、ドラマ45分、韓国ドラマ1時間、中国ドラマ45分)。作品は見終わった年にカウントされます。',
|
||||||
'stats.ratedAs_one': '評価{rating}',
|
'stats.ratedAs_one': '評価{rating}',
|
||||||
'stats.ratedAs_other': '評価{rating}',
|
'stats.ratedAs_other': '評価{rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "あとで",
|
'welcome.later': "あとで",
|
||||||
'social.watching': "視聴中",
|
'social.watching': "視聴中",
|
||||||
'social.watchlist': "見たい",
|
'social.watchlist': "見たい",
|
||||||
'search.allKinds': "映画・ドラマ・アニメ",
|
|
||||||
'search.animeOnly': "TMDB キーがない場合はアニメのみ検索できます。",
|
'search.animeOnly': "TMDB キーがない場合はアニメのみ検索できます。",
|
||||||
'search.alreadySeries': "ライブラリにあります — 開く",
|
|
||||||
'form.startShort': "開始日",
|
'form.startShort': "開始日",
|
||||||
'form.endShort': "完了日",
|
'form.endShort': "完了日",
|
||||||
'hero.allSeen': "すべて視聴済み",
|
'hero.allSeen': "すべて視聴済み",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': '最新話まで視聴済み',
|
'hero.upToDate': '最新話まで視聴済み',
|
||||||
'hero.seenEp': "{ep}を見た",
|
'hero.seenEp': "{ep}を見た",
|
||||||
'hero.seen': "視聴済み",
|
'hero.seen': "視聴済み",
|
||||||
'hero.markSeen': "視聴済みにする",
|
|
||||||
'hero.edit': "情報を編集",
|
'hero.edit': "情報を編集",
|
||||||
'hero.more': "続きを読む",
|
'hero.more': "続きを読む",
|
||||||
'hero.less': "閉じる",
|
'hero.less': "閉じる",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "詳細",
|
'homeHero.details': "詳細",
|
||||||
'homeHero.continueRow': "続きを見る",
|
'homeHero.continueRow': "続きを見る",
|
||||||
'homeHero.nextUp': "次:{ep}",
|
'homeHero.nextUp': "次:{ep}",
|
||||||
'title.addTitle': "作品を追加",
|
|
||||||
'title.searchPh': "映画、ドラマ、アニメ…",
|
|
||||||
'title.searchHint': "作品を検索し、詳細ページから評価・視聴済み・見たいリストへの追加ができます。",
|
|
||||||
'title.noResults': "結果がありません。",
|
'title.noResults': "結果がありません。",
|
||||||
'title.manual': "手動で追加",
|
'title.manual': "手動で追加",
|
||||||
'title.manualHint': "見つからない場合は自分で作成できます。",
|
'title.manualHint': "見つからない場合は自分で作成できます。",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "日付・リスト・再視聴",
|
'title.trackingHint': "日付・リスト・再視聴",
|
||||||
'title.rewatchCount_one': "{count} 回再視聴",
|
'title.rewatchCount_one': "{count} 回再視聴",
|
||||||
'title.rewatchCount_other': "{count} 回再視聴",
|
'title.rewatchCount_other': "{count} 回再視聴",
|
||||||
'title.rewatchedToday': "今日再視聴",
|
|
||||||
'sync.syncing': "同期中…",
|
'sync.syncing': "同期中…",
|
||||||
'sync.offline': "オフライン",
|
'sync.offline': "オフライン",
|
||||||
'sync.error': "同期に失敗しました",
|
'sync.error': "同期に失敗しました",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "ほか{count}件のチャレンジ",
|
'challenges.more_one': "ほか{count}件のチャレンジ",
|
||||||
'challenges.more_other': "ほか{count}件のチャレンジ",
|
'challenges.more_other': "ほか{count}件のチャレンジ",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "このデバイスの通知",
|
|
||||||
'push.deviceHint': "アプリを閉じていても届きます。下の設定も適用されます。",
|
|
||||||
'push.iosInstall': "iPhone・iPad では、まず Kino をホーム画面に追加し(iOS 16.4 以降)、アイコンからアプリを開いて通知をオンにしてください。",
|
|
||||||
'push.unsupported': "このブラウザはプッシュ通知に対応していません。",
|
|
||||||
'push.denied': "このサイトの通知はブロックされています。ブラウザの設定で許可してから、もう一度お試しください。",
|
|
||||||
'push.notReady': "プッシュ通知はまだサーバーで利用できません。",
|
|
||||||
'push.error': "通知をオンにできませんでした。接続を確認して、もう一度お試しください。",
|
|
||||||
'netPill.offlineSync': "オフライン — 変更は後で同期されます",
|
'netPill.offlineSync': "オフライン — 変更は後で同期されます",
|
||||||
'netPill.offlineLocal': "オフライン — すべてこのデバイスに保存されています",
|
'netPill.offlineLocal': "オフライン — すべてこのデバイスに保存されています",
|
||||||
'netPill.synced': "同期済み",
|
'netPill.synced': "同期済み",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "コメントの投稿が速すぎます。1分後にもう一度お試しください。",
|
'comments.err.rate': "コメントの投稿が速すぎます。1分後にもう一度お試しください。",
|
||||||
'comments.err.gone': "このレビューはもう利用できません。",
|
'comments.err.gone': "このレビューはもう利用できません。",
|
||||||
'comments.err.invalid': "コメントが空か長すぎます(最大500文字)。",
|
'comments.err.invalid': "コメントが空か長すぎます(最大500文字)。",
|
||||||
'notif.review_comment': "があなたのレビューにコメントしました",
|
|
||||||
'notif.shared_list_invite': "があなたを共有リストに招待しました",
|
|
||||||
'settings.notifComments': "自分のレビューへのコメント",
|
|
||||||
'settings.notifLists': "共有リストへの招待",
|
|
||||||
'shared.title': "共有リスト",
|
'shared.title': "共有リスト",
|
||||||
'shared.hint': "みんなで作るリスト:メンバー全員が作品を追加・削除できます。",
|
'shared.hint': "みんなで作るリスト:メンバー全員が作品を追加・削除できます。",
|
||||||
'shared.new': "新しい共有リスト",
|
'shared.new': "新しい共有リスト",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "招待できる人がいません:参加できるのはフォロワーとフォロー中の人だけです。",
|
'shared.noPeople': "招待できる人がいません:参加できるのはフォロワーとフォロー中の人だけです。",
|
||||||
'shared.inviteShort': "招待",
|
'shared.inviteShort': "招待",
|
||||||
'shared.invited': "招待済み",
|
'shared.invited': "招待済み",
|
||||||
'shared.expired': "招待の期限切れ",
|
|
||||||
'shared.addTo': "共有リストに追加",
|
'shared.addTo': "共有リストに追加",
|
||||||
'shared.unavailable': "共有リストは現在利用できません。",
|
'shared.unavailable': "共有リストは現在利用できません。",
|
||||||
'shared.err.rate': "操作が続きすぎています。1分後にもう一度お試しください。",
|
'shared.err.rate': "操作が続きすぎています。1分後にもう一度お試しください。",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ 5점 만점',
|
'settings.scale5': '★ 5점 만점',
|
||||||
'settings.scale10': '10점 만점',
|
'settings.scale10': '10점 만점',
|
||||||
'settings.ratingHint': '5점 만점은 별 반 개 단위, 10점 만점은 0.5점 단위예요. 기존 평점은 자동으로 변환돼요.',
|
'settings.ratingHint': '5점 만점은 별 반 개 단위, 10점 만점은 0.5점 단위예요. 기존 평점은 자동으로 변환돼요.',
|
||||||
'settings.theme': '테마',
|
|
||||||
'settings.appearance': '화면',
|
'settings.appearance': '화면',
|
||||||
'settings.appearanceHint': '‘자동’은 브라우저를 따릅니다(밝게 또는 어둡게).',
|
'settings.appearanceHint': '‘자동’은 브라우저를 따릅니다(밝게 또는 어둡게).',
|
||||||
'theme.modeAuto': '자동',
|
'theme.modeAuto': '자동',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': '앱 설치',
|
'settings.installApp': '앱 설치',
|
||||||
'settings.installHint': 'Kino을 홈 화면이나 바탕화면에 추가하세요.',
|
'settings.installHint': 'Kino을 홈 화면이나 바탕화면에 추가하세요.',
|
||||||
'settings.installed': '앱 설치됨',
|
'settings.installed': '앱 설치됨',
|
||||||
'settings.notifs': '알림',
|
|
||||||
'settings.notifsHint': '벨을 울릴 항목을 선택하세요.',
|
|
||||||
'settings.notifEpisodes': '새 에피소드',
|
|
||||||
'settings.notifFollows': '새 팔로워',
|
|
||||||
'settings.notifAccepted': '수락된 요청',
|
|
||||||
'settings.notifReactions': '내 리뷰에 대한 반응',
|
|
||||||
'notif.new_episode': '{title} 새 에피소드',
|
|
||||||
'notif.new_season': '{title} 새 시즌',
|
|
||||||
'reviews.title': '리뷰',
|
'reviews.title': '리뷰',
|
||||||
'reviews.friends': '내 친구',
|
'reviews.friends': '내 친구',
|
||||||
'reviews.others': '다른 회원',
|
'reviews.others': '다른 회원',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': '다른 리뷰가 없어요',
|
'reviews.noneOthers': '다른 리뷰가 없어요',
|
||||||
'reviews.none': '아직 리뷰가 없어요',
|
'reviews.none': '아직 리뷰가 없어요',
|
||||||
'reviews.seeAll': '리뷰 모두 보기',
|
'reviews.seeAll': '리뷰 모두 보기',
|
||||||
'reviews.react': '반응하기',
|
|
||||||
'notif.title': '알림',
|
|
||||||
'notif.empty': '알림이 없어요',
|
|
||||||
'notif.someone': '누군가',
|
'notif.someone': '누군가',
|
||||||
'notif.follow_request': '님이 당신을 팔로우하고 싶어 해요',
|
|
||||||
'notif.follow_accepted': '님이 요청을 수락했어요',
|
|
||||||
'notif.new_follower': '님이 당신을 팔로우했어요',
|
|
||||||
'notif.reaction': '님이 당신의 리뷰에 반응했어요',
|
|
||||||
'notif.on': '{title}에',
|
|
||||||
'home.notifications': '알림',
|
|
||||||
'home.notificationsN': '알림 {count}개',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Kino 설치',
|
'install.title': 'Kino 설치',
|
||||||
'install.ios': 'Safari에서 Kino을 엽니다.\n공유 버튼(위쪽 화살표가 있는 사각형)을 누릅니다.\n“홈 화면에 추가”를 선택한 뒤 “추가”를 누릅니다.',
|
'install.ios': 'Safari에서 Kino을 엽니다.\n공유 버튼(위쪽 화살표가 있는 사각형)을 누릅니다.\n“홈 화면에 추가”를 선택한 뒤 “추가”를 누릅니다.',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': '시도 횟수가 너무 많아요. 1분 뒤에 다시 시도해 주세요.',
|
'account.err.deleteRate': '시도 횟수가 너무 많아요. 1분 뒤에 다시 시도해 주세요.',
|
||||||
'account.err.delete': '삭제에 실패했어요. 나중에 다시 시도해 주세요.',
|
'account.err.delete': '삭제에 실패했어요. 나중에 다시 시도해 주세요.',
|
||||||
'account.title': '내 계정',
|
'account.title': '내 계정',
|
||||||
'account.syncing': '동기화 중…',
|
|
||||||
'account.offline': '오프라인 — 모든 데이터는 이 기기에 저장돼 있어요',
|
|
||||||
'account.syncError': '지금은 동기화할 수 없어요',
|
|
||||||
'account.synced': '{when} 동기화됨',
|
|
||||||
'account.passwordChanged': '비밀번호를 변경했어요.',
|
'account.passwordChanged': '비밀번호를 변경했어요.',
|
||||||
'account.imported_one': '작품 {count}개를 계정에 추가했어요.',
|
'account.imported_one': '작품 {count}개를 계정에 추가했어요.',
|
||||||
'account.imported_other': '작품 {count}개를 계정에 추가했어요.',
|
'account.imported_other': '작품 {count}개를 계정에 추가했어요.',
|
||||||
'account.importFailed': '가져오기에 실패했어요.',
|
'account.importFailed': '가져오기에 실패했어요.',
|
||||||
'account.pending_one': '{count}개 대기 중',
|
|
||||||
'account.pending_other': '{count}개 대기 중',
|
|
||||||
'account.syncNow': '지금 동기화',
|
|
||||||
'account.newPasswordPh': '새 비밀번호 (최소 {n}자)',
|
'account.newPasswordPh': '새 비밀번호 (최소 {n}자)',
|
||||||
'account.changePassword': '비밀번호 변경',
|
'account.changePassword': '비밀번호 변경',
|
||||||
'account.logout': '로그아웃',
|
'account.logout': '로그아웃',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': '이 기기에 계정을 만들기 전에 추가한 {titles}가 있어요. 계정에 추가할까요?',
|
'account.deviceData': '이 기기에 계정을 만들기 전에 추가한 {titles}가 있어요. 계정에 추가할까요?',
|
||||||
'account.deviceDataWithLists': '이 기기에 계정을 만들기 전에 추가한 {titles}와 {lists}가 있어요. 계정에 추가할까요?',
|
'account.deviceDataWithLists': '이 기기에 계정을 만들기 전에 추가한 {titles}와 {lists}가 있어요. 계정에 추가할까요?',
|
||||||
|
|
||||||
'time.never': '없음',
|
|
||||||
'time.justNow': '방금',
|
'time.justNow': '방금',
|
||||||
'time.minutesAgo': '{n}분 전',
|
'time.minutesAgo': '{n}분 전',
|
||||||
'time.hoursAgo': '{n}시간 전',
|
'time.hoursAgo': '{n}시간 전',
|
||||||
'time.onDate': '{date}',
|
|
||||||
'time.today': '오늘',
|
'time.today': '오늘',
|
||||||
'time.tomorrow': '내일',
|
'time.tomorrow': '내일',
|
||||||
'time.daysAgo': '{n}일 전',
|
'time.daysAgo': '{n}일 전',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': '추가됨',
|
'reco.addedShort': '추가됨',
|
||||||
|
|
||||||
'search.offline': '인터넷에 연결되어 있지 않아요. 검색하려면 네트워크가 필요해요.',
|
'search.offline': '인터넷에 연결되어 있지 않아요. 검색하려면 네트워크가 필요해요.',
|
||||||
'search.fillFrom': '데이터베이스에서 채우기',
|
|
||||||
'search.openSettings': '설정 열기',
|
'search.openSettings': '설정 열기',
|
||||||
'search.already': '이미 추가됨',
|
|
||||||
'search.noResults': '결과가 없어요. 아래에서 직접 입력할 수 있어요.',
|
|
||||||
'search.privacy': '검색한 제목만 {source}(으)로 전송돼요. 라이브러리는 휴대폰에 그대로 남아요.',
|
'search.privacy': '검색한 제목만 {source}(으)로 전송돼요. 라이브러리는 휴대폰에 그대로 남아요.',
|
||||||
|
|
||||||
'catalog.sortRecent': '최근 수정순',
|
'catalog.sortRecent': '최근 수정순',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': '+ 버튼으로 첫 작품을 추가해 보세요.',
|
'catalog.nothingYetHint': '+ 버튼으로 첫 작품을 추가해 보세요.',
|
||||||
'catalog.clearFilters': '필터 지우기',
|
'catalog.clearFilters': '필터 지우기',
|
||||||
|
|
||||||
'public.agree': '관객 평가와 딱 일치',
|
|
||||||
'public.more': '관객보다 +{gap}',
|
|
||||||
'public.less': '관객보다 −{gap}',
|
|
||||||
'public.label': '관객',
|
|
||||||
'public.me': '나',
|
|
||||||
'public.added_one': '관객 평점 {count}개를 추가했어요.',
|
|
||||||
'public.added_other': '관객 평점 {count}개를 추가했어요.',
|
|
||||||
'public.noneFound': '새 평점을 찾지 못했어요.',
|
|
||||||
'public.fetch': '가져오기 ({n})',
|
|
||||||
'public.title': '나 vs 관객',
|
|
||||||
'public.hintFetch': '평점을 매긴 작품의 TMDB / AniList 평균 평점을 가져와서 내 취향이 관객과 어디서 갈리는지 확인해 보세요.',
|
|
||||||
'public.hintNone': '이 기간에 평점을 매긴 작품 중 관객 평점이 있는 작품이 없어요.',
|
|
||||||
'public.hintKey': '설정에서 TMDB 키를 추가하면(또는 AniList와 연결된 애니가 있으면) 관객과 비교할 수 있어요.',
|
|
||||||
'public.avgGap': '평균 차이',
|
|
||||||
'public.average': '평균 수준',
|
|
||||||
'public.generous': '관객보다 후한 편',
|
|
||||||
'public.harsh': '관객보다 깐깐한 편',
|
|
||||||
'public.agreeTitle': '의견 일치',
|
|
||||||
'public.within5_one': '작품 {count}개 중 별 ½개 이내',
|
|
||||||
'public.within5_other': '작품 {count}개 중 별 ½개 이내',
|
|
||||||
'public.within10_one': '작품 {count}개 중 1점 이내',
|
|
||||||
'public.within10_other': '작품 {count}개 중 1점 이내',
|
|
||||||
'public.lovedPre': '관객보다 ',
|
|
||||||
'public.lovedAccent': '더 좋아한',
|
|
||||||
'public.lovedPost': ' 작품',
|
|
||||||
'public.hatedPre': '관객보다 ',
|
|
||||||
'public.hatedAccent': '덜 좋아한',
|
|
||||||
'public.hatedPost': ' 작품',
|
|
||||||
'public.allAgree': '모든 작품에서 관객과 의견이 같아요. 흔치 않은 일이에요!',
|
|
||||||
|
|
||||||
'form.rewatchHint': '다시 봤나요? 다시 본 기록을 남기면 일지에 표시돼요.',
|
'form.rewatchHint': '다시 봤나요? 다시 본 기록을 남기면 일지에 표시돼요.',
|
||||||
'form.editTitle': '작품 정보 ',
|
|
||||||
'form.editAccent': '수정',
|
|
||||||
'form.newTitle': '새 ',
|
|
||||||
'form.newAccent': '작품',
|
|
||||||
'form.filledFrom': '가져온 곳',
|
|
||||||
'form.canEdit': '모두 수정할 수 있어요',
|
|
||||||
'form.fillFromDb': 'TMDB / AniList에서 채우기',
|
|
||||||
'form.pickPoster': '포스터 선택',
|
'form.pickPoster': '포스터 선택',
|
||||||
'form.removeImage': '이미지 삭제',
|
'form.removeImage': '이미지 삭제',
|
||||||
'form.title': '제목 *',
|
'form.title': '제목 *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': '유형',
|
'form.type': '유형',
|
||||||
'form.subtype': '세부 유형',
|
'form.subtype': '세부 유형',
|
||||||
'form.subtypePh': '다큐멘터리, 리얼리티…',
|
'form.subtypePh': '다큐멘터리, 리얼리티…',
|
||||||
'form.status': '상태',
|
|
||||||
'form.myRating': '내 평점',
|
|
||||||
'form.favorite': '최애',
|
'form.favorite': '최애',
|
||||||
'form.criteria': '세부 평가 (선택)',
|
|
||||||
'form.episodes': '에피소드',
|
'form.episodes': '에피소드',
|
||||||
'form.minusEp': '-1화',
|
'form.minusEp': '-1화',
|
||||||
'form.plusEp': '+1화',
|
'form.plusEp': '+1화',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': '다시 본 기록',
|
'form.rewatches': '다시 본 기록',
|
||||||
'form.review': '내 감상',
|
'form.review': '내 감상',
|
||||||
'form.reviewPh': '어땠는지, 기억에 남는 장면…',
|
'form.reviewPh': '어땠는지, 기억에 남는 장면…',
|
||||||
'form.saveChanges': '변경 사항 저장',
|
|
||||||
'form.addToLibrary': '라이브러리에 추가',
|
|
||||||
'form.shareImage': '이미지로 공유',
|
'form.shareImage': '이미지로 공유',
|
||||||
'form.delete': '이 작품 삭제',
|
'form.delete': '이 작품 삭제',
|
||||||
'form.deleteConfirm': '‘{title}’이(가) 영구적으로 삭제돼요.',
|
'form.deleteConfirm': '‘{title}’이(가) 영구적으로 삭제돼요.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count}개 시청',
|
'journal.seen_other': '{count}개 시청',
|
||||||
'journal.more': '이전 달 보기',
|
'journal.more': '이전 달 보기',
|
||||||
|
|
||||||
'stats.overview': '한눈에 보기',
|
|
||||||
'stats.habits': '시청 습관',
|
|
||||||
'stats.tastes': '취향',
|
|
||||||
'stats.pageTitle': '내 ',
|
'stats.pageTitle': '내 ',
|
||||||
'stats.pageAccent': '통계',
|
'stats.pageAccent': '통계',
|
||||||
'stats.emptyTitle': '아직 통계가 없어요',
|
'stats.emptyTitle': '아직 통계가 없어요',
|
||||||
'stats.emptyText': '작품을 추가하면 바로 표시돼요.',
|
'stats.emptyText': '작품을 추가하면 바로 표시돼요.',
|
||||||
'stats.sinceStart': '처음부터',
|
|
||||||
'stats.subtitle_one': '내 라이브러리의 작품 {count}개',
|
'stats.subtitle_one': '내 라이브러리의 작품 {count}개',
|
||||||
'stats.subtitle_other': '내 라이브러리의 작품 {count}개',
|
'stats.subtitle_other': '내 라이브러리의 작품 {count}개',
|
||||||
'stats.subtitleYear_one': '{year}년 작품 {count}개',
|
'stats.subtitleYear_one': '{year}년 작품 {count}개',
|
||||||
'stats.subtitleYear_other': '{year}년 작품 {count}개',
|
'stats.subtitleYear_other': '{year}년 작품 {count}개',
|
||||||
'stats.hours_one': '시간',
|
|
||||||
'stats.hours_other': '시간',
|
|
||||||
'stats.nonStopPre': '쉬지 않고 ',
|
'stats.nonStopPre': '쉬지 않고 ',
|
||||||
'stats.nonStopPost': ' 동안 본 셈',
|
'stats.nonStopPost': ' 동안 본 셈',
|
||||||
'stats.days_one': '{count}일',
|
'stats.days_one': '{count}일',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count}화',
|
'stats.episodesN_one': '{count}화',
|
||||||
'stats.episodesN_other': '{count}화',
|
'stats.episodesN_other': '{count}화',
|
||||||
'stats.timeByType': '유형별 시간',
|
'stats.timeByType': '유형별 시간',
|
||||||
'stats.noTime': '이 기간에는 아직 기록된 시간이 없어요.',
|
|
||||||
'stats.avgRating': '평균 평점',
|
'stats.avgRating': '평균 평점',
|
||||||
'stats.rated_one': '평점 매긴 작품 {count}개',
|
'stats.rated_one': '평점 매긴 작품 {count}개',
|
||||||
'stats.rated_other': '평점 매긴 작품 {count}개',
|
'stats.rated_other': '평점 매긴 작품 {count}개',
|
||||||
'stats.inYear': '{year}년',
|
|
||||||
'stats.statuses': '상태',
|
'stats.statuses': '상태',
|
||||||
'stats.hoursTab': '시간',
|
|
||||||
'stats.monthByMonth': '월별 · {year}년',
|
'stats.monthByMonth': '월별 · {year}년',
|
||||||
'stats.last12': '최근 12개월',
|
'stats.last12': '최근 12개월',
|
||||||
'stats.monthFinished_one': '다 본 작품 {count}개',
|
'stats.monthFinished_one': '다 본 작품 {count}개',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': '기록',
|
'stats.records': '기록',
|
||||||
'stats.marathon': '최장 정주행',
|
'stats.marathon': '최장 정주행',
|
||||||
'stats.longestFilm': '가장 긴 영화',
|
'stats.longestFilm': '가장 긴 영화',
|
||||||
'stats.noRecords': '이 기간에는 아직 기록이 없어요.',
|
|
||||||
'stats.platforms': '플랫폼',
|
'stats.platforms': '플랫폼',
|
||||||
'stats.bestRated': '내 최고 평점 작품',
|
'stats.bestRated': '내 최고 평점 작품',
|
||||||
'stats.myRatings': '내 평점',
|
'stats.myRatings': '내 평점',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': '좋아하는 장르',
|
'stats.favGenres': '좋아하는 장르',
|
||||||
'stats.noGenres': '아직 장르가 없어요.',
|
'stats.noGenres': '아직 장르가 없어요.',
|
||||||
'stats.countries': '국가',
|
'stats.countries': '국가',
|
||||||
'stats.noCountry_one': '국가 정보가 없는 작품 {count}개: 작품 정보에서 ‘TMDB / AniList에서 채우기’로 채워 주세요.',
|
|
||||||
'stats.noCountry_other': '국가 정보가 없는 작품 {count}개: 작품 정보에서 ‘TMDB / AniList에서 채우기’로 채워 주세요.',
|
|
||||||
'stats.noCountryLegacy_one': '국가 정보가 없는 작품 {count}개: 작품 정보에서 ‘TMDB / AniList에서 채우기’로 채우거나, 이전 앱의 백업을 다시 가져오세요(‘병합’).',
|
|
||||||
'stats.noCountryLegacy_other': '국가 정보가 없는 작품 {count}개: 작품 정보에서 ‘TMDB / AniList에서 채우기’로 채우거나, 이전 앱의 백업을 다시 가져오세요(‘병합’).',
|
|
||||||
'stats.byType': '유형별',
|
|
||||||
'stats.footnote': '본 에피소드 수와 입력한 러닝타임으로 추정한 시간이에요 (입력하지 않으면 영화 1시간 50분, 애니 1화 24분, 시리즈 45분, K-드라마 1시간, C-드라마 45분). 작품은 다 본 연도에 집계돼요.',
|
'stats.footnote': '본 에피소드 수와 입력한 러닝타임으로 추정한 시간이에요 (입력하지 않으면 영화 1시간 50분, 애니 1화 24분, 시리즈 45분, K-드라마 1시간, C-드라마 45분). 작품은 다 본 연도에 집계돼요.',
|
||||||
'stats.ratedAs_one': '평점 {rating}',
|
'stats.ratedAs_one': '평점 {rating}',
|
||||||
'stats.ratedAs_other': '평점 {rating}',
|
'stats.ratedAs_other': '평점 {rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "나중에",
|
'welcome.later': "나중에",
|
||||||
'social.watching': "보는 중",
|
'social.watching': "보는 중",
|
||||||
'social.watchlist': "보고 싶어요",
|
'social.watchlist': "보고 싶어요",
|
||||||
'search.allKinds': "영화, 시리즈, 애니",
|
|
||||||
'search.animeOnly': "TMDB 키가 없으면 애니만 찾을 수 있어요.",
|
'search.animeOnly': "TMDB 키가 없으면 애니만 찾을 수 있어요.",
|
||||||
'search.alreadySeries': "이미 라이브러리에 있어요 — 열기",
|
|
||||||
'form.startShort': "시작일",
|
'form.startShort': "시작일",
|
||||||
'form.endShort': "완료일",
|
'form.endShort': "완료일",
|
||||||
'hero.allSeen': "모두 시청함",
|
'hero.allSeen': "모두 시청함",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': '최신 화까지 봤어요',
|
'hero.upToDate': '최신 화까지 봤어요',
|
||||||
'hero.seenEp': "{ep} 봤어요",
|
'hero.seenEp': "{ep} 봤어요",
|
||||||
'hero.seen': "봤어요",
|
'hero.seen': "봤어요",
|
||||||
'hero.markSeen': "본 것으로 표시",
|
|
||||||
'hero.edit': "정보 수정",
|
'hero.edit': "정보 수정",
|
||||||
'hero.more': "더 보기",
|
'hero.more': "더 보기",
|
||||||
'hero.less': "접기",
|
'hero.less': "접기",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "상세",
|
'homeHero.details': "상세",
|
||||||
'homeHero.continueRow': "이어 보기",
|
'homeHero.continueRow': "이어 보기",
|
||||||
'homeHero.nextUp': "다음: {ep}",
|
'homeHero.nextUp': "다음: {ep}",
|
||||||
'title.addTitle': "작품 추가",
|
|
||||||
'title.searchPh': "영화, 시리즈, 애니, 드라마…",
|
|
||||||
'title.searchHint': "작품을 검색한 뒤 상세 페이지에서 평가하거나, 봤음으로 표시하거나, 보고 싶은 목록에 추가하세요.",
|
|
||||||
'title.noResults': "결과가 없어요.",
|
'title.noResults': "결과가 없어요.",
|
||||||
'title.manual': "직접 추가",
|
'title.manual': "직접 추가",
|
||||||
'title.manualHint': "찾을 수 없나요? 직접 만들어 보세요.",
|
'title.manualHint': "찾을 수 없나요? 직접 만들어 보세요.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "날짜, 목록, 다시 보기",
|
'title.trackingHint': "날짜, 목록, 다시 보기",
|
||||||
'title.rewatchCount_one': "{count}번 다시 봄",
|
'title.rewatchCount_one': "{count}번 다시 봄",
|
||||||
'title.rewatchCount_other': "{count}번 다시 봄",
|
'title.rewatchCount_other': "{count}번 다시 봄",
|
||||||
'title.rewatchedToday': "오늘 다시 봄",
|
|
||||||
'sync.syncing': "동기화 중…",
|
'sync.syncing': "동기화 중…",
|
||||||
'sync.offline': "오프라인",
|
'sync.offline': "오프라인",
|
||||||
'sync.error': "동기화 실패",
|
'sync.error': "동기화 실패",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ 챌린지 {count}개 더",
|
'challenges.more_one': "+ 챌린지 {count}개 더",
|
||||||
'challenges.more_other': "+ 챌린지 {count}개 더",
|
'challenges.more_other': "+ 챌린지 {count}개 더",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "이 기기의 알림",
|
|
||||||
'push.deviceHint': "앱이 닫혀 있어도 받아요. 아래 선택 사항도 적용돼요.",
|
|
||||||
'push.iosInstall': "iPhone과 iPad에서는 먼저 Kino을 홈 화면에 추가한 뒤(iOS 16.4 이상) 아이콘으로 앱을 열어 알림을 켜 주세요.",
|
|
||||||
'push.unsupported': "이 브라우저는 푸시 알림을 지원하지 않아요.",
|
|
||||||
'push.denied': "이 사이트의 알림이 차단되어 있어요. 브라우저 설정에서 허용한 뒤 다시 시도해 주세요.",
|
|
||||||
'push.notReady': "서버에서 아직 푸시 알림을 사용할 수 없어요.",
|
|
||||||
'push.error': "알림을 켜지 못했어요. 연결을 확인하고 다시 시도해 주세요.",
|
|
||||||
'netPill.offlineSync': "오프라인 — 변경 사항은 나중에 동기화돼요",
|
'netPill.offlineSync': "오프라인 — 변경 사항은 나중에 동기화돼요",
|
||||||
'netPill.offlineLocal': "오프라인 — 모든 내용이 이 기기에 저장돼 있어요",
|
'netPill.offlineLocal': "오프라인 — 모든 내용이 이 기기에 저장돼 있어요",
|
||||||
'netPill.synced': "동기화됨",
|
'netPill.synced': "동기화됨",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "댓글을 너무 빨리 달고 있어요. 1분 후 다시 시도하세요.",
|
'comments.err.rate': "댓글을 너무 빨리 달고 있어요. 1분 후 다시 시도하세요.",
|
||||||
'comments.err.gone': "이 리뷰는 더 이상 볼 수 없습니다.",
|
'comments.err.gone': "이 리뷰는 더 이상 볼 수 없습니다.",
|
||||||
'comments.err.invalid': "댓글이 비어 있거나 너무 깁니다(최대 500자).",
|
'comments.err.invalid': "댓글이 비어 있거나 너무 깁니다(최대 500자).",
|
||||||
'notif.review_comment': "님이 내 리뷰에 댓글을 남겼습니다",
|
|
||||||
'notif.shared_list_invite': "님이 공유 목록에 초대했습니다",
|
|
||||||
'settings.notifComments': "내 리뷰에 달린 댓글",
|
|
||||||
'settings.notifLists': "공유 목록 초대",
|
|
||||||
'shared.title': "공유 목록",
|
'shared.title': "공유 목록",
|
||||||
'shared.hint': "함께 만드는 목록: 모든 멤버가 작품을 추가하거나 뺄 수 있어요.",
|
'shared.hint': "함께 만드는 목록: 모든 멤버가 작품을 추가하거나 뺄 수 있어요.",
|
||||||
'shared.new': "새 공유 목록",
|
'shared.new': "새 공유 목록",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "초대할 사람이 없어요: 팔로워와 내가 팔로우하는 사람만 참여할 수 있습니다.",
|
'shared.noPeople': "초대할 사람이 없어요: 팔로워와 내가 팔로우하는 사람만 참여할 수 있습니다.",
|
||||||
'shared.inviteShort': "초대",
|
'shared.inviteShort': "초대",
|
||||||
'shared.invited': "초대함",
|
'shared.invited': "초대함",
|
||||||
'shared.expired': "초대 만료",
|
|
||||||
'shared.addTo': "공유 목록에 추가",
|
'shared.addTo': "공유 목록에 추가",
|
||||||
'shared.unavailable': "지금은 공유 목록을 사용할 수 없습니다.",
|
'shared.unavailable': "지금은 공유 목록을 사용할 수 없습니다.",
|
||||||
'shared.err.rate': "연속 작업이 너무 많아요. 1분 후 다시 시도하세요.",
|
'shared.err.rate': "연속 작업이 너무 많아요. 1분 후 다시 시도하세요.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ op 5',
|
'settings.scale5': '★ op 5',
|
||||||
'settings.scale10': 'Op 10',
|
'settings.scale10': 'Op 10',
|
||||||
'settings.ratingHint': 'Halve sterren op 5, of stappen van 0,5 op 10. Bestaande scores worden automatisch omgerekend.',
|
'settings.ratingHint': 'Halve sterren op 5, of stappen van 0,5 op 10. Bestaande scores worden automatisch omgerekend.',
|
||||||
'settings.theme': 'Thema',
|
|
||||||
'settings.appearance': 'Weergave',
|
'settings.appearance': 'Weergave',
|
||||||
'settings.appearanceHint': '“Auto” volgt je browser (licht of donker).',
|
'settings.appearanceHint': '“Auto” volgt je browser (licht of donker).',
|
||||||
'theme.modeAuto': 'Auto',
|
'theme.modeAuto': 'Auto',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'App installeren',
|
'settings.installApp': 'App installeren',
|
||||||
'settings.installHint': 'Voeg Kino toe aan je startscherm of bureaublad.',
|
'settings.installHint': 'Voeg Kino toe aan je startscherm of bureaublad.',
|
||||||
'settings.installed': 'App geïnstalleerd',
|
'settings.installed': 'App geïnstalleerd',
|
||||||
'settings.notifs': 'Meldingen',
|
|
||||||
'settings.notifsHint': 'Kies wat de bel activeert.',
|
|
||||||
'settings.notifEpisodes': 'Nieuwe afleveringen',
|
|
||||||
'settings.notifFollows': 'Nieuwe volgers',
|
|
||||||
'settings.notifAccepted': 'Geaccepteerde verzoeken',
|
|
||||||
'settings.notifReactions': 'Reacties op mijn recensies',
|
|
||||||
'notif.new_episode': 'Nieuwe aflevering van {title}',
|
|
||||||
'notif.new_season': 'Nieuw seizoen van {title}',
|
|
||||||
'reviews.title': 'Recensies',
|
'reviews.title': 'Recensies',
|
||||||
'reviews.friends': 'Je vrienden',
|
'reviews.friends': 'Je vrienden',
|
||||||
'reviews.others': 'Andere leden',
|
'reviews.others': 'Andere leden',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Geen andere recensies',
|
'reviews.noneOthers': 'Geen andere recensies',
|
||||||
'reviews.none': 'Nog geen recensies',
|
'reviews.none': 'Nog geen recensies',
|
||||||
'reviews.seeAll': 'Alle recensies bekijken',
|
'reviews.seeAll': 'Alle recensies bekijken',
|
||||||
'reviews.react': 'Reageren',
|
|
||||||
'notif.title': 'Meldingen',
|
|
||||||
'notif.empty': 'Geen meldingen',
|
|
||||||
'notif.someone': 'Iemand',
|
'notif.someone': 'Iemand',
|
||||||
'notif.follow_request': 'wil je volgen',
|
|
||||||
'notif.follow_accepted': 'heeft je verzoek geaccepteerd',
|
|
||||||
'notif.new_follower': 'volgt je nu',
|
|
||||||
'notif.reaction': 'heeft op je recensie gereageerd',
|
|
||||||
'notif.on': 'op {title}',
|
|
||||||
'home.notifications': 'Meldingen',
|
|
||||||
'home.notificationsN': '{count} meldingen',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Kino installeren',
|
'install.title': 'Kino installeren',
|
||||||
'install.ios': 'Open Kino in Safari.\nTik op de deelknop (het vierkant met een pijl omhoog).\nKies “Zet op beginscherm” en daarna “Voeg toe”.',
|
'install.ios': 'Open Kino in Safari.\nTik op de deelknop (het vierkant met een pijl omhoog).\nKies “Zet op beginscherm” en daarna “Voeg toe”.',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Te veel pogingen, probeer het over een minuut opnieuw.',
|
'account.err.deleteRate': 'Te veel pogingen, probeer het over een minuut opnieuw.',
|
||||||
'account.err.delete': 'Verwijderen mislukt. Probeer het later opnieuw.',
|
'account.err.delete': 'Verwijderen mislukt. Probeer het later opnieuw.',
|
||||||
'account.title': 'Mijn account',
|
'account.title': 'Mijn account',
|
||||||
'account.syncing': 'Synchroniseren…',
|
|
||||||
'account.offline': 'Offline — alles blijft op dit apparaat bewaard',
|
|
||||||
'account.syncError': 'Synchroniseren lukt nu niet',
|
|
||||||
'account.synced': 'Gesynchroniseerd {when}',
|
|
||||||
'account.passwordChanged': 'Wachtwoord gewijzigd.',
|
'account.passwordChanged': 'Wachtwoord gewijzigd.',
|
||||||
'account.imported_one': '{count} titel toegevoegd aan je account.',
|
'account.imported_one': '{count} titel toegevoegd aan je account.',
|
||||||
'account.imported_other': '{count} titels toegevoegd aan je account.',
|
'account.imported_other': '{count} titels toegevoegd aan je account.',
|
||||||
'account.importFailed': 'Importeren mislukt.',
|
'account.importFailed': 'Importeren mislukt.',
|
||||||
'account.pending_one': '{count} in de wachtrij',
|
|
||||||
'account.pending_other': '{count} in de wachtrij',
|
|
||||||
'account.syncNow': 'Nu synchroniseren',
|
|
||||||
'account.newPasswordPh': 'Nieuw wachtwoord (min. {n} tekens)',
|
'account.newPasswordPh': 'Nieuw wachtwoord (min. {n} tekens)',
|
||||||
'account.changePassword': 'Wachtwoord wijzigen',
|
'account.changePassword': 'Wachtwoord wijzigen',
|
||||||
'account.logout': 'Uitloggen',
|
'account.logout': 'Uitloggen',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'Op dit apparaat staan {titles} die zijn gemaakt vóór je account. Toevoegen aan je account?',
|
'account.deviceData': 'Op dit apparaat staan {titles} die zijn gemaakt vóór je account. Toevoegen aan je account?',
|
||||||
'account.deviceDataWithLists': 'Op dit apparaat staan {titles} en {lists} die zijn gemaakt vóór je account. Toevoegen aan je account?',
|
'account.deviceDataWithLists': 'Op dit apparaat staan {titles} en {lists} die zijn gemaakt vóór je account. Toevoegen aan je account?',
|
||||||
|
|
||||||
'time.never': 'nooit',
|
|
||||||
'time.justNow': 'zojuist',
|
'time.justNow': 'zojuist',
|
||||||
'time.minutesAgo': '{n} min geleden',
|
'time.minutesAgo': '{n} min geleden',
|
||||||
'time.hoursAgo': '{n} u geleden',
|
'time.hoursAgo': '{n} u geleden',
|
||||||
'time.onDate': 'op {date}',
|
|
||||||
'time.today': 'vandaag',
|
'time.today': 'vandaag',
|
||||||
'time.tomorrow': 'morgen',
|
'time.tomorrow': 'morgen',
|
||||||
'time.daysAgo': '{n} d geleden',
|
'time.daysAgo': '{n} d geleden',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Toegevoegd',
|
'reco.addedShort': 'Toegevoegd',
|
||||||
|
|
||||||
'search.offline': 'Geen internetverbinding: zoeken werkt alleen online.',
|
'search.offline': 'Geen internetverbinding: zoeken werkt alleen online.',
|
||||||
'search.fillFrom': 'Invullen vanuit een database',
|
|
||||||
'search.openSettings': 'Instellingen openen',
|
'search.openSettings': 'Instellingen openen',
|
||||||
'search.already': 'al toegevoegd',
|
|
||||||
'search.noResults': 'Geen resultaten. Je kunt het item hieronder handmatig invullen.',
|
|
||||||
'search.privacy': 'Alleen de gezochte titel wordt naar {source} gestuurd. Je bibliotheek blijft op je telefoon.',
|
'search.privacy': 'Alleen de gezochte titel wordt naar {source} gestuurd. Je bibliotheek blijft op je telefoon.',
|
||||||
|
|
||||||
'catalog.sortRecent': 'Recent bewerkt',
|
'catalog.sortRecent': 'Recent bewerkt',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Voeg je eerste titel toe met de knop +.',
|
'catalog.nothingYetHint': 'Voeg je eerste titel toe met de knop +.',
|
||||||
'catalog.clearFilters': 'Filters wissen',
|
'catalog.clearFilters': 'Filters wissen',
|
||||||
|
|
||||||
'public.agree': 'Helemaal eens met het publiek',
|
|
||||||
'public.more': '+{gap} hoger dan het publiek',
|
|
||||||
'public.less': '−{gap} lager dan het publiek',
|
|
||||||
'public.label': 'Publiek',
|
|
||||||
'public.me': 'Ik',
|
|
||||||
'public.added_one': '{count} publieksscore toegevoegd.',
|
|
||||||
'public.added_other': '{count} publieksscores toegevoegd.',
|
|
||||||
'public.noneFound': 'Geen nieuwe scores gevonden.',
|
|
||||||
'public.fetch': 'Ophalen ({n})',
|
|
||||||
'public.title': 'Ik vs het publiek',
|
|
||||||
'public.hintFetch': 'Haal de gemiddelde TMDB- / AniList-score van je beoordeelde titels op om te zien waar je afwijkt van het publiek.',
|
|
||||||
'public.hintNone': 'Geen publieksscores beschikbaar voor je beoordeelde titels in deze periode.',
|
|
||||||
'public.hintKey': 'Voeg je TMDB-sleutel toe in Instellingen (of koppel anime aan AniList) om jezelf met het publiek te vergelijken.',
|
|
||||||
'public.avgGap': 'Gemiddeld verschil',
|
|
||||||
'public.average': 'Precies gemiddeld',
|
|
||||||
'public.generous': 'Gulder dan het publiek',
|
|
||||||
'public.harsh': 'Strenger dan het publiek',
|
|
||||||
'public.agreeTitle': 'Mee eens',
|
|
||||||
'public.within5_one': 'binnen ½ ster, bij {count} titel',
|
|
||||||
'public.within5_other': 'binnen ½ ster, bij {count} titels',
|
|
||||||
'public.within10_one': 'binnen 1 punt, bij {count} titel',
|
|
||||||
'public.within10_other': 'binnen 1 punt, bij {count} titels',
|
|
||||||
'public.lovedPre': 'Ik vond ',
|
|
||||||
'public.lovedAccent': 'leuker',
|
|
||||||
'public.lovedPost': ' dan het publiek',
|
|
||||||
'public.hatedPre': 'Ik vond ',
|
|
||||||
'public.hatedAccent': 'minder leuk',
|
|
||||||
'public.hatedPost': ' dan het publiek',
|
|
||||||
'public.allAgree': 'Je bent het bij al je titels eens met het publiek. Zeldzaam!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Opnieuw gekeken? Log elke herhaling, dan verschijnt die in je dagboek.',
|
'form.rewatchHint': 'Opnieuw gekeken? Log elke herhaling, dan verschijnt die in je dagboek.',
|
||||||
'form.editTitle': 'Item ',
|
|
||||||
'form.editAccent': 'bewerken',
|
|
||||||
'form.newTitle': 'Nieuwe ',
|
|
||||||
'form.newAccent': 'titel',
|
|
||||||
'form.filledFrom': 'Ingevuld vanuit',
|
|
||||||
'form.canEdit': 'je kunt alles aanpassen',
|
|
||||||
'form.fillFromDb': 'Aanvullen vanuit TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Kies een poster',
|
'form.pickPoster': 'Kies een poster',
|
||||||
'form.removeImage': 'Afbeelding verwijderen',
|
'form.removeImage': 'Afbeelding verwijderen',
|
||||||
'form.title': 'Titel *',
|
'form.title': 'Titel *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Type',
|
'form.type': 'Type',
|
||||||
'form.subtype': 'Soort',
|
'form.subtype': 'Soort',
|
||||||
'form.subtypePh': 'Documentaire, Realityserie…',
|
'form.subtypePh': 'Documentaire, Realityserie…',
|
||||||
'form.status': 'Status',
|
|
||||||
'form.myRating': 'Mijn score',
|
|
||||||
'form.favorite': 'Favoriet',
|
'form.favorite': 'Favoriet',
|
||||||
'form.criteria': 'Gedetailleerde criteria (optioneel)',
|
|
||||||
'form.episodes': 'Afleveringen',
|
'form.episodes': 'Afleveringen',
|
||||||
'form.minusEp': '-1 aflevering',
|
'form.minusEp': '-1 aflevering',
|
||||||
'form.plusEp': '+1 aflevering',
|
'form.plusEp': '+1 aflevering',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Herhalingen',
|
'form.rewatches': 'Herhalingen',
|
||||||
'form.review': 'Mijn review',
|
'form.review': 'Mijn review',
|
||||||
'form.reviewPh': 'Wat ik ervan vond, memorabele scènes…',
|
'form.reviewPh': 'Wat ik ervan vond, memorabele scènes…',
|
||||||
'form.saveChanges': 'Wijzigingen opslaan',
|
|
||||||
'form.addToLibrary': 'Toevoegen aan mijn bibliotheek',
|
|
||||||
'form.shareImage': 'Delen als afbeelding',
|
'form.shareImage': 'Delen als afbeelding',
|
||||||
'form.delete': 'Deze titel verwijderen',
|
'form.delete': 'Deze titel verwijderen',
|
||||||
'form.deleteConfirm': '“{title}” wordt definitief verwijderd.',
|
'form.deleteConfirm': '“{title}” wordt definitief verwijderd.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count} gezien',
|
'journal.seen_other': '{count} gezien',
|
||||||
'journal.more': 'Eerdere maanden tonen',
|
'journal.more': 'Eerdere maanden tonen',
|
||||||
|
|
||||||
'stats.overview': 'Overzicht',
|
|
||||||
'stats.habits': 'Gewoontes',
|
|
||||||
'stats.tastes': 'Smaak',
|
|
||||||
'stats.pageTitle': 'Mijn ',
|
'stats.pageTitle': 'Mijn ',
|
||||||
'stats.pageAccent': 'stats',
|
'stats.pageAccent': 'stats',
|
||||||
'stats.emptyTitle': 'Nog geen statistieken',
|
'stats.emptyTitle': 'Nog geen statistieken',
|
||||||
'stats.emptyText': 'Ze verschijnen zodra je titels hebt toegevoegd.',
|
'stats.emptyText': 'Ze verschijnen zodra je titels hebt toegevoegd.',
|
||||||
'stats.sinceStart': 'sinds het begin',
|
|
||||||
'stats.subtitle_one': '{count} titel in mijn bibliotheek',
|
'stats.subtitle_one': '{count} titel in mijn bibliotheek',
|
||||||
'stats.subtitle_other': '{count} titels in mijn bibliotheek',
|
'stats.subtitle_other': '{count} titels in mijn bibliotheek',
|
||||||
'stats.subtitleYear_one': '{count} titel in {year}',
|
'stats.subtitleYear_one': '{count} titel in {year}',
|
||||||
'stats.subtitleYear_other': '{count} titels in {year}',
|
'stats.subtitleYear_other': '{count} titels in {year}',
|
||||||
'stats.hours_one': 'uur',
|
|
||||||
'stats.hours_other': 'uur',
|
|
||||||
'stats.nonStopPre': 'oftewel ',
|
'stats.nonStopPre': 'oftewel ',
|
||||||
'stats.nonStopPost': ' non-stop',
|
'stats.nonStopPost': ' non-stop',
|
||||||
'stats.days_one': '{count} dag',
|
'stats.days_one': '{count} dag',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} aflevering',
|
'stats.episodesN_one': '{count} aflevering',
|
||||||
'stats.episodesN_other': '{count} afleveringen',
|
'stats.episodesN_other': '{count} afleveringen',
|
||||||
'stats.timeByType': 'Tijd per type',
|
'stats.timeByType': 'Tijd per type',
|
||||||
'stats.noTime': 'Nog geen tijd geregistreerd in deze periode.',
|
|
||||||
'stats.avgRating': 'Gemiddelde score',
|
'stats.avgRating': 'Gemiddelde score',
|
||||||
'stats.rated_one': '{count} titel beoordeeld',
|
'stats.rated_one': '{count} titel beoordeeld',
|
||||||
'stats.rated_other': '{count} titels beoordeeld',
|
'stats.rated_other': '{count} titels beoordeeld',
|
||||||
'stats.inYear': 'in {year}',
|
|
||||||
'stats.statuses': 'Statussen',
|
'stats.statuses': 'Statussen',
|
||||||
'stats.hoursTab': 'Uren',
|
|
||||||
'stats.monthByMonth': 'Per maand · {year}',
|
'stats.monthByMonth': 'Per maand · {year}',
|
||||||
'stats.last12': 'Afgelopen 12 maanden',
|
'stats.last12': 'Afgelopen 12 maanden',
|
||||||
'stats.monthFinished_one': '{count} titel uitgekeken',
|
'stats.monthFinished_one': '{count} titel uitgekeken',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Records',
|
'stats.records': 'Records',
|
||||||
'stats.marathon': 'Grootste marathon',
|
'stats.marathon': 'Grootste marathon',
|
||||||
'stats.longestFilm': 'Langste film',
|
'stats.longestFilm': 'Langste film',
|
||||||
'stats.noRecords': 'Nog geen records in deze periode.',
|
|
||||||
'stats.platforms': 'Platforms',
|
'stats.platforms': 'Platforms',
|
||||||
'stats.bestRated': 'Mijn hoogst beoordeelde',
|
'stats.bestRated': 'Mijn hoogst beoordeelde',
|
||||||
'stats.myRatings': 'Mijn scores',
|
'stats.myRatings': 'Mijn scores',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Favoriete genres',
|
'stats.favGenres': 'Favoriete genres',
|
||||||
'stats.noGenres': 'Nog geen genres.',
|
'stats.noGenres': 'Nog geen genres.',
|
||||||
'stats.countries': 'Landen',
|
'stats.countries': 'Landen',
|
||||||
'stats.noCountry_one': '{count} titel zonder land: vul het aan via “Aanvullen vanuit TMDB / AniList” op de pagina van de titel.',
|
|
||||||
'stats.noCountry_other': '{count} titels zonder land: vul ze aan via “Aanvullen vanuit TMDB / AniList” op de pagina van de titel.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} titel zonder land: vul het aan via “Aanvullen vanuit TMDB / AniList” op de pagina van de titel, of importeer de back-up van je oude app opnieuw (“Samenvoegen”).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} titels zonder land: vul ze aan via “Aanvullen vanuit TMDB / AniList” op de pagina van de titel, of importeer de back-up van je oude app opnieuw (“Samenvoegen”).',
|
|
||||||
'stats.byType': 'Per type',
|
|
||||||
'stats.footnote': 'Tijd geschat op basis van geziene afleveringen en ingevulde duur (anders: film 1 u 50, anime-aflevering 24 min, serie 45 min, K-drama 1 u, C-drama 45 min). Een titel telt mee voor het jaar waarin ik hem heb uitgekeken.',
|
'stats.footnote': 'Tijd geschat op basis van geziene afleveringen en ingevulde duur (anders: film 1 u 50, anime-aflevering 24 min, serie 45 min, K-drama 1 u, C-drama 45 min). Een titel telt mee voor het jaar waarin ik hem heb uitgekeken.',
|
||||||
'stats.ratedAs_one': 'beoordeeld met {rating}',
|
'stats.ratedAs_one': 'beoordeeld met {rating}',
|
||||||
'stats.ratedAs_other': 'beoordeeld met {rating}',
|
'stats.ratedAs_other': 'beoordeeld met {rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "Later",
|
'welcome.later': "Later",
|
||||||
'social.watching': "Bezig",
|
'social.watching': "Bezig",
|
||||||
'social.watchlist': "Wil ik zien",
|
'social.watchlist': "Wil ik zien",
|
||||||
'search.allKinds': "Films, series en anime",
|
|
||||||
'search.animeOnly': "Zonder TMDB-sleutel worden alleen anime gevonden.",
|
'search.animeOnly': "Zonder TMDB-sleutel worden alleen anime gevonden.",
|
||||||
'search.alreadySeries': "al in je bibliotheek — openen",
|
|
||||||
'form.startShort': "Begonnen op",
|
'form.startShort': "Begonnen op",
|
||||||
'form.endShort': "Uitgekeken op",
|
'form.endShort': "Uitgekeken op",
|
||||||
'hero.allSeen': "Alles gezien",
|
'hero.allSeen': "Alles gezien",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Bijgewerkt',
|
'hero.upToDate': 'Bijgewerkt',
|
||||||
'hero.seenEp': "{ep} gezien",
|
'hero.seenEp': "{ep} gezien",
|
||||||
'hero.seen': "Gezien",
|
'hero.seen': "Gezien",
|
||||||
'hero.markSeen': "Markeren als gezien",
|
|
||||||
'hero.edit': "Info bewerken",
|
'hero.edit': "Info bewerken",
|
||||||
'hero.more': "Lees meer",
|
'hero.more': "Lees meer",
|
||||||
'hero.less': "Minder tonen",
|
'hero.less': "Minder tonen",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "Details",
|
'homeHero.details': "Details",
|
||||||
'homeHero.continueRow': "Verder kijken",
|
'homeHero.continueRow': "Verder kijken",
|
||||||
'homeHero.nextUp': "Volgende: {ep}",
|
'homeHero.nextUp': "Volgende: {ep}",
|
||||||
'title.addTitle': "Titel toevoegen",
|
|
||||||
'title.searchPh': "Film, serie, anime, drama…",
|
|
||||||
'title.searchHint': "Zoek een titel en open hem om hem te beoordelen, als gezien te markeren of op je kijklijst te zetten.",
|
|
||||||
'title.noResults': "Geen resultaten.",
|
'title.noResults': "Geen resultaten.",
|
||||||
'title.manual': "Handmatig toevoegen",
|
'title.manual': "Handmatig toevoegen",
|
||||||
'title.manualHint': "Niet gevonden? Maak hem zelf aan.",
|
'title.manualHint': "Niet gevonden? Maak hem zelf aan.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Datums, lijsten, opnieuw bekeken",
|
'title.trackingHint': "Datums, lijsten, opnieuw bekeken",
|
||||||
'title.rewatchCount_one': "Eén keer opnieuw bekeken",
|
'title.rewatchCount_one': "Eén keer opnieuw bekeken",
|
||||||
'title.rewatchCount_other': "{count} keer opnieuw bekeken",
|
'title.rewatchCount_other': "{count} keer opnieuw bekeken",
|
||||||
'title.rewatchedToday': "Vandaag opnieuw bekeken",
|
|
||||||
'sync.syncing': "Synchroniseren…",
|
'sync.syncing': "Synchroniseren…",
|
||||||
'sync.offline': "Offline",
|
'sync.offline': "Offline",
|
||||||
'sync.error': "Synchronisatie mislukt",
|
'sync.error': "Synchronisatie mislukt",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} andere uitdaging",
|
'challenges.more_one': "+ {count} andere uitdaging",
|
||||||
'challenges.more_other': "+ {count} andere uitdagingen",
|
'challenges.more_other': "+ {count} andere uitdagingen",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Meldingen op dit apparaat",
|
|
||||||
'push.deviceHint': "Ook als de app gesloten is. De keuzes hieronder gelden ook.",
|
|
||||||
'push.iosInstall': "Voeg op iPhone en iPad Kino eerst toe aan je beginscherm (iOS 16.4 of nieuwer) en open de app via het pictogram om meldingen aan te zetten.",
|
|
||||||
'push.unsupported': "Deze browser ondersteunt geen pushmeldingen.",
|
|
||||||
'push.denied': "Meldingen zijn geblokkeerd voor deze site. Sta ze toe in je browserinstellingen en probeer het opnieuw.",
|
|
||||||
'push.notReady': "Pushmeldingen zijn nog niet beschikbaar op de server.",
|
|
||||||
'push.error': "Kon meldingen niet aanzetten. Controleer je verbinding en probeer het opnieuw.",
|
|
||||||
'netPill.offlineSync': "Offline — je wijzigingen worden gesynchroniseerd",
|
'netPill.offlineSync': "Offline — je wijzigingen worden gesynchroniseerd",
|
||||||
'netPill.offlineLocal': "Offline — alles blijft op dit apparaat bewaard",
|
'netPill.offlineLocal': "Offline — alles blijft op dit apparaat bewaard",
|
||||||
'netPill.synced': "Gesynchroniseerd",
|
'netPill.synced': "Gesynchroniseerd",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Je reageert te snel – probeer het over een minuut opnieuw.",
|
'comments.err.rate': "Je reageert te snel – probeer het over een minuut opnieuw.",
|
||||||
'comments.err.gone': "Deze recensie is niet meer beschikbaar.",
|
'comments.err.gone': "Deze recensie is niet meer beschikbaar.",
|
||||||
'comments.err.invalid': "Reactie leeg of te lang (max. 500 tekens).",
|
'comments.err.invalid': "Reactie leeg of te lang (max. 500 tekens).",
|
||||||
'notif.review_comment': "reageerde op je recensie",
|
|
||||||
'notif.shared_list_invite': "nodigde je uit voor de gedeelde lijst",
|
|
||||||
'settings.notifComments': "Reacties op mijn recensies",
|
|
||||||
'settings.notifLists': "Uitnodigingen voor gedeelde lijsten",
|
|
||||||
'shared.title': "Gedeelde lijsten",
|
'shared.title': "Gedeelde lijsten",
|
||||||
'shared.hint': "Lijsten voor meerdere mensen: elk lid kan titels toevoegen of verwijderen.",
|
'shared.hint': "Lijsten voor meerdere mensen: elk lid kan titels toevoegen of verwijderen.",
|
||||||
'shared.new': "Nieuwe gedeelde lijst",
|
'shared.new': "Nieuwe gedeelde lijst",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Niemand om uit te nodigen: alleen je volgers en mensen die je volgt kunnen meedoen.",
|
'shared.noPeople': "Niemand om uit te nodigen: alleen je volgers en mensen die je volgt kunnen meedoen.",
|
||||||
'shared.inviteShort': "Uitnodigen",
|
'shared.inviteShort': "Uitnodigen",
|
||||||
'shared.invited': "Uitgenodigd",
|
'shared.invited': "Uitgenodigd",
|
||||||
'shared.expired': "uitnodiging verlopen",
|
|
||||||
'shared.addTo': "Toevoegen aan een gedeelde lijst",
|
'shared.addTo': "Toevoegen aan een gedeelde lijst",
|
||||||
'shared.unavailable': "Gedeelde lijsten zijn nu niet beschikbaar.",
|
'shared.unavailable': "Gedeelde lijsten zijn nu niet beschikbaar.",
|
||||||
'shared.err.rate': "Te veel acties achter elkaar – probeer het over een minuut opnieuw.",
|
'shared.err.rate': "Te veel acties achter elkaar – probeer het over een minuut opnieuw.",
|
||||||
|
|||||||
@@ -231,7 +231,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ w skali do 5',
|
'settings.scale5': '★ w skali do 5',
|
||||||
'settings.scale10': 'W skali do 10',
|
'settings.scale10': 'W skali do 10',
|
||||||
'settings.ratingHint': 'Połówki gwiazdek w skali do 5 lub co 0,5 w skali do 10. Istniejące oceny zostaną przeliczone automatycznie.',
|
'settings.ratingHint': 'Połówki gwiazdek w skali do 5 lub co 0,5 w skali do 10. Istniejące oceny zostaną przeliczone automatycznie.',
|
||||||
'settings.theme': 'Motyw',
|
|
||||||
'settings.appearance': 'Wygląd',
|
'settings.appearance': 'Wygląd',
|
||||||
'settings.appearanceHint': '„Auto” podąża za przeglądarką (jasny lub ciemny).',
|
'settings.appearanceHint': '„Auto” podąża za przeglądarką (jasny lub ciemny).',
|
||||||
'theme.modeAuto': 'Auto',
|
'theme.modeAuto': 'Auto',
|
||||||
@@ -243,14 +242,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'Zainstaluj aplikację',
|
'settings.installApp': 'Zainstaluj aplikację',
|
||||||
'settings.installHint': 'Dodaj Kino do ekranu głównego lub pulpitu.',
|
'settings.installHint': 'Dodaj Kino do ekranu głównego lub pulpitu.',
|
||||||
'settings.installed': 'Aplikacja zainstalowana',
|
'settings.installed': 'Aplikacja zainstalowana',
|
||||||
'settings.notifs': 'Powiadomienia',
|
|
||||||
'settings.notifsHint': 'Wybierz, co uruchamia dzwonek.',
|
|
||||||
'settings.notifEpisodes': 'Nowe odcinki',
|
|
||||||
'settings.notifFollows': 'Nowi obserwujący',
|
|
||||||
'settings.notifAccepted': 'Zaakceptowane prośby',
|
|
||||||
'settings.notifReactions': 'Reakcje na moje recenzje',
|
|
||||||
'notif.new_episode': 'Nowy odcinek: {title}',
|
|
||||||
'notif.new_season': 'Nowy sezon: {title}',
|
|
||||||
'reviews.title': 'Recenzje',
|
'reviews.title': 'Recenzje',
|
||||||
'reviews.friends': 'Twoi znajomi',
|
'reviews.friends': 'Twoi znajomi',
|
||||||
'reviews.others': 'Inni użytkownicy',
|
'reviews.others': 'Inni użytkownicy',
|
||||||
@@ -258,17 +249,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Brak innych recenzji',
|
'reviews.noneOthers': 'Brak innych recenzji',
|
||||||
'reviews.none': 'Jeszcze nie ma recenzji',
|
'reviews.none': 'Jeszcze nie ma recenzji',
|
||||||
'reviews.seeAll': 'Zobacz wszystkie recenzje',
|
'reviews.seeAll': 'Zobacz wszystkie recenzje',
|
||||||
'reviews.react': 'Zareaguj',
|
|
||||||
'notif.title': 'Powiadomienia',
|
|
||||||
'notif.empty': 'Brak powiadomień',
|
|
||||||
'notif.someone': 'Ktoś',
|
'notif.someone': 'Ktoś',
|
||||||
'notif.follow_request': 'chce Cię obserwować',
|
|
||||||
'notif.follow_accepted': 'zaakceptował Twoją prośbę',
|
|
||||||
'notif.new_follower': 'zaczął Cię obserwować',
|
|
||||||
'notif.reaction': 'zareagował na Twoją recenzję',
|
|
||||||
'notif.on': 'w {title}',
|
|
||||||
'home.notifications': 'Powiadomienia',
|
|
||||||
'home.notificationsN': 'Powiadomienia: {count}',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -292,8 +273,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -303,7 +282,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -311,8 +289,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Zainstaluj Kino',
|
'install.title': 'Zainstaluj Kino',
|
||||||
'install.ios': 'Otwórz Kino w Safari.\nDotknij przycisku Udostępnij (kwadrat ze strzałką w górę).\nWybierz „Do ekranu początkowego”, a potem „Dodaj”.',
|
'install.ios': 'Otwórz Kino w Safari.\nDotknij przycisku Udostępnij (kwadrat ze strzałką w górę).\nWybierz „Do ekranu początkowego”, a potem „Dodaj”.',
|
||||||
@@ -424,21 +400,12 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Za dużo prób, spróbuj ponownie za minutę.',
|
'account.err.deleteRate': 'Za dużo prób, spróbuj ponownie za minutę.',
|
||||||
'account.err.delete': 'Usuwanie nie powiodło się. Spróbuj później.',
|
'account.err.delete': 'Usuwanie nie powiodło się. Spróbuj później.',
|
||||||
'account.title': 'Moje konto',
|
'account.title': 'Moje konto',
|
||||||
'account.syncing': 'Synchronizacja…',
|
|
||||||
'account.offline': 'Offline — wszystko jest zapisane na tym urządzeniu',
|
|
||||||
'account.syncError': 'Synchronizacja chwilowo niemożliwa',
|
|
||||||
'account.synced': 'Zsynchronizowano {when}',
|
|
||||||
'account.passwordChanged': 'Hasło zmienione.',
|
'account.passwordChanged': 'Hasło zmienione.',
|
||||||
'account.imported_one': 'Dodano {count} tytuł do twojego konta.',
|
'account.imported_one': 'Dodano {count} tytuł do twojego konta.',
|
||||||
'account.imported_few': 'Dodano {count} tytuły do twojego konta.',
|
'account.imported_few': 'Dodano {count} tytuły do twojego konta.',
|
||||||
'account.imported_many': 'Dodano {count} tytułów do twojego konta.',
|
'account.imported_many': 'Dodano {count} tytułów do twojego konta.',
|
||||||
'account.imported_other': 'Dodano {count} tytułu do twojego konta.',
|
'account.imported_other': 'Dodano {count} tytułu do twojego konta.',
|
||||||
'account.importFailed': 'Import nie powiódł się.',
|
'account.importFailed': 'Import nie powiódł się.',
|
||||||
'account.pending_one': 'Oczekujące: {count}',
|
|
||||||
'account.pending_few': 'Oczekujące: {count}',
|
|
||||||
'account.pending_many': 'Oczekujące: {count}',
|
|
||||||
'account.pending_other': 'Oczekujące: {count}',
|
|
||||||
'account.syncNow': 'Synchronizuj teraz',
|
|
||||||
'account.newPasswordPh': 'Nowe hasło (min. {n} znaków)',
|
'account.newPasswordPh': 'Nowe hasło (min. {n} znaków)',
|
||||||
'account.changePassword': 'Zmień hasło',
|
'account.changePassword': 'Zmień hasło',
|
||||||
'account.logout': 'Wyloguj się',
|
'account.logout': 'Wyloguj się',
|
||||||
@@ -462,11 +429,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'Na tym urządzeniu są dane utworzone przed założeniem konta: {titles}. Dodać je do twojego konta?',
|
'account.deviceData': 'Na tym urządzeniu są dane utworzone przed założeniem konta: {titles}. Dodać je do twojego konta?',
|
||||||
'account.deviceDataWithLists': 'Na tym urządzeniu są dane utworzone przed założeniem konta: {titles} i {lists}. Dodać je do twojego konta?',
|
'account.deviceDataWithLists': 'Na tym urządzeniu są dane utworzone przed założeniem konta: {titles} i {lists}. Dodać je do twojego konta?',
|
||||||
|
|
||||||
'time.never': 'nigdy',
|
|
||||||
'time.justNow': 'przed chwilą',
|
'time.justNow': 'przed chwilą',
|
||||||
'time.minutesAgo': '{n} min temu',
|
'time.minutesAgo': '{n} min temu',
|
||||||
'time.hoursAgo': '{n} godz. temu',
|
'time.hoursAgo': '{n} godz. temu',
|
||||||
'time.onDate': '{date}',
|
|
||||||
'time.today': 'dzisiaj',
|
'time.today': 'dzisiaj',
|
||||||
'time.tomorrow': 'jutro',
|
'time.tomorrow': 'jutro',
|
||||||
'time.daysAgo': '{n} d temu',
|
'time.daysAgo': '{n} d temu',
|
||||||
@@ -597,10 +562,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Dodano',
|
'reco.addedShort': 'Dodano',
|
||||||
|
|
||||||
'search.offline': 'Brak połączenia z internetem: wyszukiwanie wymaga sieci.',
|
'search.offline': 'Brak połączenia z internetem: wyszukiwanie wymaga sieci.',
|
||||||
'search.fillFrom': 'Uzupełnij z bazy',
|
|
||||||
'search.openSettings': 'Otwórz Ustawienia',
|
'search.openSettings': 'Otwórz Ustawienia',
|
||||||
'search.already': 'już dodane',
|
|
||||||
'search.noResults': 'Brak wyników. Możesz wypełnić kartę ręcznie poniżej.',
|
|
||||||
'search.privacy': 'Do {source} wysyłany jest tylko wyszukiwany tytuł. Twoja biblioteka zostaje na twoim telefonie.',
|
'search.privacy': 'Do {source} wysyłany jest tylko wyszukiwany tytuł. Twoja biblioteka zostaje na twoim telefonie.',
|
||||||
|
|
||||||
'catalog.sortRecent': 'Ostatnio edytowane',
|
'catalog.sortRecent': 'Ostatnio edytowane',
|
||||||
@@ -632,50 +594,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Dodaj swój pierwszy tytuł przyciskiem +.',
|
'catalog.nothingYetHint': 'Dodaj swój pierwszy tytuł przyciskiem +.',
|
||||||
'catalog.clearFilters': 'Wyczyść filtry',
|
'catalog.clearFilters': 'Wyczyść filtry',
|
||||||
|
|
||||||
'public.agree': 'Dokładnie jak widzowie',
|
|
||||||
'public.more': '+{gap} wyżej niż widzowie',
|
|
||||||
'public.less': '−{gap} niżej niż widzowie',
|
|
||||||
'public.label': 'Widzowie',
|
|
||||||
'public.me': 'Ja',
|
|
||||||
'public.added_one': 'Dodano {count} ocenę widzów.',
|
|
||||||
'public.added_few': 'Dodano {count} oceny widzów.',
|
|
||||||
'public.added_many': 'Dodano {count} ocen widzów.',
|
|
||||||
'public.added_other': 'Dodano {count} oceny widzów.',
|
|
||||||
'public.noneFound': 'Nie znaleziono nowych ocen.',
|
|
||||||
'public.fetch': 'Pobierz ({n})',
|
|
||||||
'public.title': 'Ja kontra widzowie',
|
|
||||||
'public.hintFetch': 'Pobierz średnią ocenę z TMDB / AniList dla swoich ocenionych tytułów i zobacz, czym się wyróżniasz na tle widzów.',
|
|
||||||
'public.hintNone': 'Brak ocen widzów dla twoich ocenionych tytułów w tym okresie.',
|
|
||||||
'public.hintKey': 'Dodaj klucz TMDB w Ustawieniach (lub połącz anime z AniList), aby porównać się z widzami.',
|
|
||||||
'public.avgGap': 'Średnia różnica',
|
|
||||||
'public.average': 'W normie',
|
|
||||||
'public.generous': 'Hojniej niż widzowie',
|
|
||||||
'public.harsh': 'Surowiej niż widzowie',
|
|
||||||
'public.agreeTitle': 'Zgodność',
|
|
||||||
'public.within5_one': 'z dokładnością do ½ gwiazdki, dla {count} tytułu',
|
|
||||||
'public.within5_few': 'z dokładnością do ½ gwiazdki, dla {count} tytułów',
|
|
||||||
'public.within5_many': 'z dokładnością do ½ gwiazdki, dla {count} tytułów',
|
|
||||||
'public.within5_other': 'z dokładnością do ½ gwiazdki, dla {count} tytułu',
|
|
||||||
'public.within10_one': 'z dokładnością do 1 punktu, dla {count} tytułu',
|
|
||||||
'public.within10_few': 'z dokładnością do 1 punktu, dla {count} tytułów',
|
|
||||||
'public.within10_many': 'z dokładnością do 1 punktu, dla {count} tytułów',
|
|
||||||
'public.within10_other': 'z dokładnością do 1 punktu, dla {count} tytułu',
|
|
||||||
'public.lovedPre': 'Tytuły, które ',
|
|
||||||
'public.lovedAccent': 'bardziej mi się podobały',
|
|
||||||
'public.lovedPost': ' niż widzom',
|
|
||||||
'public.hatedPre': 'Tytuły, które ',
|
|
||||||
'public.hatedAccent': 'mniej mi się podobały',
|
|
||||||
'public.hatedPost': ' niż widzom',
|
|
||||||
'public.allAgree': 'Zgadzasz się z widzami co do wszystkich swoich tytułów. Rzadkość!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Obejrzane ponownie? Zapisz każdą powtórkę, a pojawi się w twoim dzienniku.',
|
'form.rewatchHint': 'Obejrzane ponownie? Zapisz każdą powtórkę, a pojawi się w twoim dzienniku.',
|
||||||
'form.editTitle': 'Edytuj ',
|
|
||||||
'form.editAccent': 'kartę',
|
|
||||||
'form.newTitle': 'Nowy ',
|
|
||||||
'form.newAccent': 'tytuł',
|
|
||||||
'form.filledFrom': 'Uzupełniono z',
|
|
||||||
'form.canEdit': 'możesz wszystko zmienić',
|
|
||||||
'form.fillFromDb': 'Uzupełnij z TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Wybierz plakat',
|
'form.pickPoster': 'Wybierz plakat',
|
||||||
'form.removeImage': 'Usuń obraz',
|
'form.removeImage': 'Usuń obraz',
|
||||||
'form.title': 'Tytuł *',
|
'form.title': 'Tytuł *',
|
||||||
@@ -686,10 +606,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Typ',
|
'form.type': 'Typ',
|
||||||
'form.subtype': 'Rodzaj',
|
'form.subtype': 'Rodzaj',
|
||||||
'form.subtypePh': 'Dokument, Reality show…',
|
'form.subtypePh': 'Dokument, Reality show…',
|
||||||
'form.status': 'Status',
|
|
||||||
'form.myRating': 'Moja ocena',
|
|
||||||
'form.favorite': 'Ulubione',
|
'form.favorite': 'Ulubione',
|
||||||
'form.criteria': 'Szczegółowe kryteria (opcjonalnie)',
|
|
||||||
'form.episodes': 'Odcinki',
|
'form.episodes': 'Odcinki',
|
||||||
'form.minusEp': '-1 odcinek',
|
'form.minusEp': '-1 odcinek',
|
||||||
'form.plusEp': '+1 odcinek',
|
'form.plusEp': '+1 odcinek',
|
||||||
@@ -704,8 +621,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Powtórki',
|
'form.rewatches': 'Powtórki',
|
||||||
'form.review': 'Moja recenzja',
|
'form.review': 'Moja recenzja',
|
||||||
'form.reviewPh': 'Co o tym myślę, zapadające w pamięć sceny…',
|
'form.reviewPh': 'Co o tym myślę, zapadające w pamięć sceny…',
|
||||||
'form.saveChanges': 'Zapisz zmiany',
|
|
||||||
'form.addToLibrary': 'Dodaj do mojej biblioteki',
|
|
||||||
'form.shareImage': 'Udostępnij jako obraz',
|
'form.shareImage': 'Udostępnij jako obraz',
|
||||||
'form.delete': 'Usuń ten tytuł',
|
'form.delete': 'Usuń ten tytuł',
|
||||||
'form.deleteConfirm': '„{title}” zostanie trwale usunięty.',
|
'form.deleteConfirm': '„{title}” zostanie trwale usunięty.',
|
||||||
@@ -722,14 +637,10 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': 'Obejrzane: {count}',
|
'journal.seen_other': 'Obejrzane: {count}',
|
||||||
'journal.more': 'Pokaż wcześniejsze miesiące',
|
'journal.more': 'Pokaż wcześniejsze miesiące',
|
||||||
|
|
||||||
'stats.overview': 'Przegląd',
|
|
||||||
'stats.habits': 'Nawyki',
|
|
||||||
'stats.tastes': 'Gusta',
|
|
||||||
'stats.pageTitle': 'Moje ',
|
'stats.pageTitle': 'Moje ',
|
||||||
'stats.pageAccent': 'statystyki',
|
'stats.pageAccent': 'statystyki',
|
||||||
'stats.emptyTitle': 'Na razie brak statystyk',
|
'stats.emptyTitle': 'Na razie brak statystyk',
|
||||||
'stats.emptyText': 'Pojawią się, gdy tylko dodasz jakieś tytuły.',
|
'stats.emptyText': 'Pojawią się, gdy tylko dodasz jakieś tytuły.',
|
||||||
'stats.sinceStart': 'od początku',
|
|
||||||
'stats.subtitle_one': '{count} tytuł w mojej bibliotece',
|
'stats.subtitle_one': '{count} tytuł w mojej bibliotece',
|
||||||
'stats.subtitle_few': '{count} tytuły w mojej bibliotece',
|
'stats.subtitle_few': '{count} tytuły w mojej bibliotece',
|
||||||
'stats.subtitle_many': '{count} tytułów w mojej bibliotece',
|
'stats.subtitle_many': '{count} tytułów w mojej bibliotece',
|
||||||
@@ -738,10 +649,6 @@ const dict: Translations = {
|
|||||||
'stats.subtitleYear_few': '{count} tytuły w roku {year}',
|
'stats.subtitleYear_few': '{count} tytuły w roku {year}',
|
||||||
'stats.subtitleYear_many': '{count} tytułów w roku {year}',
|
'stats.subtitleYear_many': '{count} tytułów w roku {year}',
|
||||||
'stats.subtitleYear_other': '{count} tytułu w roku {year}',
|
'stats.subtitleYear_other': '{count} tytułu w roku {year}',
|
||||||
'stats.hours_one': 'godzina',
|
|
||||||
'stats.hours_few': 'godziny',
|
|
||||||
'stats.hours_many': 'godzin',
|
|
||||||
'stats.hours_other': 'godziny',
|
|
||||||
'stats.nonStopPre': 'czyli ',
|
'stats.nonStopPre': 'czyli ',
|
||||||
'stats.nonStopPost': ' non stop',
|
'stats.nonStopPost': ' non stop',
|
||||||
'stats.days_one': '{count} dzień',
|
'stats.days_one': '{count} dzień',
|
||||||
@@ -757,15 +664,12 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_many': '{count} odcinków',
|
'stats.episodesN_many': '{count} odcinków',
|
||||||
'stats.episodesN_other': '{count} odcinka',
|
'stats.episodesN_other': '{count} odcinka',
|
||||||
'stats.timeByType': 'Czas według typu',
|
'stats.timeByType': 'Czas według typu',
|
||||||
'stats.noTime': 'Brak zapisanego czasu w tym okresie.',
|
|
||||||
'stats.avgRating': 'Średnia ocena',
|
'stats.avgRating': 'Średnia ocena',
|
||||||
'stats.rated_one': '{count} oceniony tytuł',
|
'stats.rated_one': '{count} oceniony tytuł',
|
||||||
'stats.rated_few': '{count} ocenione tytuły',
|
'stats.rated_few': '{count} ocenione tytuły',
|
||||||
'stats.rated_many': '{count} ocenionych tytułów',
|
'stats.rated_many': '{count} ocenionych tytułów',
|
||||||
'stats.rated_other': '{count} ocenionego tytułu',
|
'stats.rated_other': '{count} ocenionego tytułu',
|
||||||
'stats.inYear': 'w roku {year}',
|
|
||||||
'stats.statuses': 'Statusy',
|
'stats.statuses': 'Statusy',
|
||||||
'stats.hoursTab': 'Godziny',
|
|
||||||
'stats.monthByMonth': 'Miesiąc po miesiącu · {year}',
|
'stats.monthByMonth': 'Miesiąc po miesiącu · {year}',
|
||||||
'stats.last12': 'Ostatnie 12 miesięcy',
|
'stats.last12': 'Ostatnie 12 miesięcy',
|
||||||
'stats.monthFinished_one': '{count} ukończony tytuł',
|
'stats.monthFinished_one': '{count} ukończony tytuł',
|
||||||
@@ -776,7 +680,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Rekordy',
|
'stats.records': 'Rekordy',
|
||||||
'stats.marathon': 'Największy maraton',
|
'stats.marathon': 'Największy maraton',
|
||||||
'stats.longestFilm': 'Najdłuższy film',
|
'stats.longestFilm': 'Najdłuższy film',
|
||||||
'stats.noRecords': 'Brak rekordów w tym okresie.',
|
|
||||||
'stats.platforms': 'Platformy',
|
'stats.platforms': 'Platformy',
|
||||||
'stats.bestRated': 'Moje najwyżej oceniane',
|
'stats.bestRated': 'Moje najwyżej oceniane',
|
||||||
'stats.myRatings': 'Moje oceny',
|
'stats.myRatings': 'Moje oceny',
|
||||||
@@ -784,15 +687,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Ulubione gatunki',
|
'stats.favGenres': 'Ulubione gatunki',
|
||||||
'stats.noGenres': 'Na razie brak gatunków.',
|
'stats.noGenres': 'Na razie brak gatunków.',
|
||||||
'stats.countries': 'Kraje',
|
'stats.countries': 'Kraje',
|
||||||
'stats.noCountry_one': '{count} tytuł bez kraju: uzupełnij go przyciskiem „Uzupełnij z TMDB / AniList” na jego karcie.',
|
|
||||||
'stats.noCountry_few': '{count} tytuły bez kraju: uzupełnij je przyciskiem „Uzupełnij z TMDB / AniList” na ich kartach.',
|
|
||||||
'stats.noCountry_many': '{count} tytułów bez kraju: uzupełnij je przyciskiem „Uzupełnij z TMDB / AniList” na ich kartach.',
|
|
||||||
'stats.noCountry_other': '{count} tytułu bez kraju: uzupełnij je przyciskiem „Uzupełnij z TMDB / AniList” na ich kartach.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} tytuł bez kraju: uzupełnij go przyciskiem „Uzupełnij z TMDB / AniList” na jego karcie albo ponownie zaimportuj kopię zapasową ze starej aplikacji („Scal”).',
|
|
||||||
'stats.noCountryLegacy_few': '{count} tytuły bez kraju: uzupełnij je przyciskiem „Uzupełnij z TMDB / AniList” na ich kartach albo ponownie zaimportuj kopię zapasową ze starej aplikacji („Scal”).',
|
|
||||||
'stats.noCountryLegacy_many': '{count} tytułów bez kraju: uzupełnij je przyciskiem „Uzupełnij z TMDB / AniList” na ich kartach albo ponownie zaimportuj kopię zapasową ze starej aplikacji („Scal”).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} tytułu bez kraju: uzupełnij je przyciskiem „Uzupełnij z TMDB / AniList” na ich kartach albo ponownie zaimportuj kopię zapasową ze starej aplikacji („Scal”).',
|
|
||||||
'stats.byType': 'Według typu',
|
|
||||||
'stats.footnote': 'Czas szacowany na podstawie obejrzanych odcinków i podanych czasów trwania (w przeciwnym razie: film 1 godz. 50 min, odcinek anime 24 min, serial 45 min, K-drama 1 godz., C-drama 45 min). Tytuł liczy się do roku, w którym został ukończony.',
|
'stats.footnote': 'Czas szacowany na podstawie obejrzanych odcinków i podanych czasów trwania (w przeciwnym razie: film 1 godz. 50 min, odcinek anime 24 min, serial 45 min, K-drama 1 godz., C-drama 45 min). Tytuł liczy się do roku, w którym został ukończony.',
|
||||||
'stats.ratedAs_one': 'oceniony na {rating}',
|
'stats.ratedAs_one': 'oceniony na {rating}',
|
||||||
'stats.ratedAs_few': 'ocenione na {rating}',
|
'stats.ratedAs_few': 'ocenione na {rating}',
|
||||||
@@ -911,9 +805,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': 'Później',
|
'welcome.later': 'Później',
|
||||||
'social.watching': 'W trakcie',
|
'social.watching': 'W trakcie',
|
||||||
'social.watchlist': 'Chce obejrzeć',
|
'social.watchlist': 'Chce obejrzeć',
|
||||||
'search.allKinds': 'Filmy, seriale i anime',
|
|
||||||
'search.animeOnly': 'Bez klucza TMDB można znaleźć tylko anime.',
|
'search.animeOnly': 'Bez klucza TMDB można znaleźć tylko anime.',
|
||||||
'search.alreadySeries': 'już w twojej bibliotece — otwórz',
|
|
||||||
'form.startShort': 'Rozpoczęto',
|
'form.startShort': 'Rozpoczęto',
|
||||||
'form.endShort': 'Ukończono',
|
'form.endShort': 'Ukończono',
|
||||||
'hero.allSeen': 'Wszystko obejrzane',
|
'hero.allSeen': 'Wszystko obejrzane',
|
||||||
@@ -921,7 +813,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Na bieżąco',
|
'hero.upToDate': 'Na bieżąco',
|
||||||
'hero.seenEp': 'Obejrzane: {ep}',
|
'hero.seenEp': 'Obejrzane: {ep}',
|
||||||
'hero.seen': 'Obejrzane',
|
'hero.seen': 'Obejrzane',
|
||||||
'hero.markSeen': 'Oznacz jako obejrzane',
|
|
||||||
'hero.edit': 'Edytuj informacje',
|
'hero.edit': 'Edytuj informacje',
|
||||||
'hero.more': 'Czytaj dalej',
|
'hero.more': 'Czytaj dalej',
|
||||||
'hero.less': 'Zwiń',
|
'hero.less': 'Zwiń',
|
||||||
@@ -939,9 +830,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': 'Karta',
|
'homeHero.details': 'Karta',
|
||||||
'homeHero.continueRow': 'Oglądaj dalej',
|
'homeHero.continueRow': 'Oglądaj dalej',
|
||||||
'homeHero.nextUp': 'Następny: {ep}',
|
'homeHero.nextUp': 'Następny: {ep}',
|
||||||
'title.addTitle': "Dodaj tytuł",
|
|
||||||
'title.searchPh': "Film, serial, anime, drama…",
|
|
||||||
'title.searchHint': "Wyszukaj tytuł i otwórz go, aby go ocenić, oznaczyć jako obejrzany lub dodać do listy.",
|
|
||||||
'title.noResults': "Brak wyników.",
|
'title.noResults': "Brak wyników.",
|
||||||
'title.manual': "Dodaj ręcznie",
|
'title.manual': "Dodaj ręcznie",
|
||||||
'title.manualHint': "Nie możesz znaleźć? Utwórz go sam.",
|
'title.manualHint': "Nie możesz znaleźć? Utwórz go sam.",
|
||||||
@@ -971,7 +859,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Daty, listy, ponowne seanse",
|
'title.trackingHint': "Daty, listy, ponowne seanse",
|
||||||
'title.rewatchCount_one': "Obejrzane ponownie {count} raz",
|
'title.rewatchCount_one': "Obejrzane ponownie {count} raz",
|
||||||
'title.rewatchCount_other': "Obejrzane ponownie {count} raza",
|
'title.rewatchCount_other': "Obejrzane ponownie {count} raza",
|
||||||
'title.rewatchedToday': "Obejrzane ponownie dziś",
|
|
||||||
'title.votes_few': "{n} głosy",
|
'title.votes_few': "{n} głosy",
|
||||||
'title.votes_many': "{n} głosów",
|
'title.votes_many': "{n} głosów",
|
||||||
'title.eps_few': "{count} odcinki",
|
'title.eps_few': "{count} odcinki",
|
||||||
@@ -1211,13 +1098,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_many': "+ {count} innych wyzwań",
|
'challenges.more_many': "+ {count} innych wyzwań",
|
||||||
'challenges.more_other': "+ {count} innego wyzwania",
|
'challenges.more_other': "+ {count} innego wyzwania",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Powiadomienia na tym urządzeniu",
|
|
||||||
'push.deviceHint': "Nawet gdy aplikacja jest zamknięta. Poniższe ustawienia też obowiązują.",
|
|
||||||
'push.iosInstall': "Na iPhonie i iPadzie najpierw dodaj Kino do ekranu początkowego (iOS 16.4 lub nowszy), a potem otwórz aplikację z jej ikony, aby włączyć powiadomienia.",
|
|
||||||
'push.unsupported': "Ta przeglądarka nie obsługuje powiadomień push.",
|
|
||||||
'push.denied': "Powiadomienia są zablokowane dla tej witryny. Zezwól na nie w ustawieniach przeglądarki i spróbuj ponownie.",
|
|
||||||
'push.notReady': "Powiadomienia push nie są jeszcze dostępne na serwerze.",
|
|
||||||
'push.error': "Nie udało się włączyć powiadomień. Sprawdź połączenie i spróbuj ponownie.",
|
|
||||||
'netPill.offlineSync': "Offline — zmiany zostaną zsynchronizowane",
|
'netPill.offlineSync': "Offline — zmiany zostaną zsynchronizowane",
|
||||||
'netPill.offlineLocal': "Offline — wszystko zostaje zapisane na tym urządzeniu",
|
'netPill.offlineLocal': "Offline — wszystko zostaje zapisane na tym urządzeniu",
|
||||||
'netPill.synced': "Zsynchronizowano",
|
'netPill.synced': "Zsynchronizowano",
|
||||||
@@ -1357,10 +1237,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Komentujesz zbyt szybko – spróbuj ponownie za minutę.",
|
'comments.err.rate': "Komentujesz zbyt szybko – spróbuj ponownie za minutę.",
|
||||||
'comments.err.gone': "Ta recenzja nie jest już dostępna.",
|
'comments.err.gone': "Ta recenzja nie jest już dostępna.",
|
||||||
'comments.err.invalid': "Komentarz jest pusty lub za długi (maks. 500 znaków).",
|
'comments.err.invalid': "Komentarz jest pusty lub za długi (maks. 500 znaków).",
|
||||||
'notif.review_comment': "skomentował(a) twoją recenzję",
|
|
||||||
'notif.shared_list_invite': "zaprasza cię do wspólnej listy",
|
|
||||||
'settings.notifComments': "Komentarze do moich recenzji",
|
|
||||||
'settings.notifLists': "Zaproszenia do wspólnych list",
|
|
||||||
'shared.title': "Wspólne listy",
|
'shared.title': "Wspólne listy",
|
||||||
'shared.hint': "Listy tworzone razem: każdy członek może dodawać i usuwać tytuły.",
|
'shared.hint': "Listy tworzone razem: każdy członek może dodawać i usuwać tytuły.",
|
||||||
'shared.new': "Nowa wspólna lista",
|
'shared.new': "Nowa wspólna lista",
|
||||||
@@ -1392,7 +1268,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Nie ma kogo zaprosić: dołączyć mogą tylko twoi obserwujący i obserwowani.",
|
'shared.noPeople': "Nie ma kogo zaprosić: dołączyć mogą tylko twoi obserwujący i obserwowani.",
|
||||||
'shared.inviteShort': "Zaproś",
|
'shared.inviteShort': "Zaproś",
|
||||||
'shared.invited': "Zaproszono",
|
'shared.invited': "Zaproszono",
|
||||||
'shared.expired': "zaproszenie wygasło",
|
|
||||||
'shared.addTo': "Dodaj do wspólnej listy",
|
'shared.addTo': "Dodaj do wspólnej listy",
|
||||||
'shared.unavailable': "Wspólne listy są teraz niedostępne.",
|
'shared.unavailable': "Wspólne listy są teraz niedostępne.",
|
||||||
'shared.err.rate': "Zbyt wiele działań naraz – spróbuj ponownie za minutę.",
|
'shared.err.rate': "Zbyt wiele działań naraz – spróbuj ponownie za minutę.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ de 0 a 5',
|
'settings.scale5': '★ de 0 a 5',
|
||||||
'settings.scale10': 'De 0 a 10',
|
'settings.scale10': 'De 0 a 10',
|
||||||
'settings.ratingHint': 'Meias estrelas de 0 a 5, ou passos de 0,5 de 0 a 10. As notas existentes são convertidas automaticamente.',
|
'settings.ratingHint': 'Meias estrelas de 0 a 5, ou passos de 0,5 de 0 a 10. As notas existentes são convertidas automaticamente.',
|
||||||
'settings.theme': 'Tema',
|
|
||||||
'settings.appearance': 'Aparência',
|
'settings.appearance': 'Aparência',
|
||||||
'settings.appearanceHint': '“Auto” segue o seu navegador (claro ou escuro).',
|
'settings.appearanceHint': '“Auto” segue o seu navegador (claro ou escuro).',
|
||||||
'theme.modeAuto': 'Auto',
|
'theme.modeAuto': 'Auto',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'Instalar o app',
|
'settings.installApp': 'Instalar o app',
|
||||||
'settings.installHint': 'Adicione o Kino à tela inicial ou à área de trabalho.',
|
'settings.installHint': 'Adicione o Kino à tela inicial ou à área de trabalho.',
|
||||||
'settings.installed': 'App instalado',
|
'settings.installed': 'App instalado',
|
||||||
'settings.notifs': 'Notificações',
|
|
||||||
'settings.notifsHint': 'Escolhe o que aciona o sino.',
|
|
||||||
'settings.notifEpisodes': 'Novos episódios',
|
|
||||||
'settings.notifFollows': 'Novos seguidores',
|
|
||||||
'settings.notifAccepted': 'Pedidos aceites',
|
|
||||||
'settings.notifReactions': 'Reações às minhas avaliações',
|
|
||||||
'notif.new_episode': 'Novo episódio de {title}',
|
|
||||||
'notif.new_season': 'Nova temporada de {title}',
|
|
||||||
'reviews.title': 'Avaliações',
|
'reviews.title': 'Avaliações',
|
||||||
'reviews.friends': 'Teus amigos',
|
'reviews.friends': 'Teus amigos',
|
||||||
'reviews.others': 'Outros membros',
|
'reviews.others': 'Outros membros',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Nenhuma outra avaliação',
|
'reviews.noneOthers': 'Nenhuma outra avaliação',
|
||||||
'reviews.none': 'Ainda sem avaliações',
|
'reviews.none': 'Ainda sem avaliações',
|
||||||
'reviews.seeAll': 'Ver todas as avaliações',
|
'reviews.seeAll': 'Ver todas as avaliações',
|
||||||
'reviews.react': 'Reagir',
|
|
||||||
'notif.title': 'Notificações',
|
|
||||||
'notif.empty': 'Sem notificações',
|
|
||||||
'notif.someone': 'Alguém',
|
'notif.someone': 'Alguém',
|
||||||
'notif.follow_request': 'quer te seguir',
|
|
||||||
'notif.follow_accepted': 'aceitou teu pedido',
|
|
||||||
'notif.new_follower': 'começou a te seguir',
|
|
||||||
'notif.reaction': 'reagiu à tua avaliação',
|
|
||||||
'notif.on': 'em {title}',
|
|
||||||
'home.notifications': 'Notificações',
|
|
||||||
'home.notificationsN': '{count} notificações',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Instalar o Kino',
|
'install.title': 'Instalar o Kino',
|
||||||
'install.ios': 'Abra o Kino no Safari.\nToque no botão Compartilhar (o quadrado com uma seta para cima).\nEscolha “Adicionar à Tela de Início” e depois “Adicionar”.',
|
'install.ios': 'Abra o Kino no Safari.\nToque no botão Compartilhar (o quadrado com uma seta para cima).\nEscolha “Adicionar à Tela de Início” e depois “Adicionar”.',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Muitas tentativas, tente de novo em um minuto.',
|
'account.err.deleteRate': 'Muitas tentativas, tente de novo em um minuto.',
|
||||||
'account.err.delete': 'A exclusão falhou. Tente de novo mais tarde.',
|
'account.err.delete': 'A exclusão falhou. Tente de novo mais tarde.',
|
||||||
'account.title': 'Minha conta',
|
'account.title': 'Minha conta',
|
||||||
'account.syncing': 'Sincronizando…',
|
|
||||||
'account.offline': 'Offline — tudo fica salvo neste aparelho',
|
|
||||||
'account.syncError': 'Não foi possível sincronizar no momento',
|
|
||||||
'account.synced': 'Sincronizado {when}',
|
|
||||||
'account.passwordChanged': 'Senha alterada.',
|
'account.passwordChanged': 'Senha alterada.',
|
||||||
'account.imported_one': '{count} título adicionado à sua conta.',
|
'account.imported_one': '{count} título adicionado à sua conta.',
|
||||||
'account.imported_other': '{count} títulos adicionados à sua conta.',
|
'account.imported_other': '{count} títulos adicionados à sua conta.',
|
||||||
'account.importFailed': 'A importação falhou.',
|
'account.importFailed': 'A importação falhou.',
|
||||||
'account.pending_one': '{count} pendente',
|
|
||||||
'account.pending_other': '{count} pendentes',
|
|
||||||
'account.syncNow': 'Sincronizar agora',
|
|
||||||
'account.newPasswordPh': 'Nova senha (mín. {n} caracteres)',
|
'account.newPasswordPh': 'Nova senha (mín. {n} caracteres)',
|
||||||
'account.changePassword': 'Alterar a senha',
|
'account.changePassword': 'Alterar a senha',
|
||||||
'account.logout': 'Sair',
|
'account.logout': 'Sair',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'Este aparelho tem {titles} criados antes da sua conta. Adicionar à sua conta?',
|
'account.deviceData': 'Este aparelho tem {titles} criados antes da sua conta. Adicionar à sua conta?',
|
||||||
'account.deviceDataWithLists': 'Este aparelho tem {titles} e {lists} criados antes da sua conta. Adicionar à sua conta?',
|
'account.deviceDataWithLists': 'Este aparelho tem {titles} e {lists} criados antes da sua conta. Adicionar à sua conta?',
|
||||||
|
|
||||||
'time.never': 'nunca',
|
|
||||||
'time.justNow': 'agora mesmo',
|
'time.justNow': 'agora mesmo',
|
||||||
'time.minutesAgo': 'há {n} min',
|
'time.minutesAgo': 'há {n} min',
|
||||||
'time.hoursAgo': 'há {n} h',
|
'time.hoursAgo': 'há {n} h',
|
||||||
'time.onDate': 'em {date}',
|
|
||||||
'time.today': 'hoje',
|
'time.today': 'hoje',
|
||||||
'time.tomorrow': 'amanhã',
|
'time.tomorrow': 'amanhã',
|
||||||
'time.daysAgo': 'há {n} d',
|
'time.daysAgo': 'há {n} d',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Adicionado',
|
'reco.addedShort': 'Adicionado',
|
||||||
|
|
||||||
'search.offline': 'Sem conexão com a internet: a busca precisa de rede.',
|
'search.offline': 'Sem conexão com a internet: a busca precisa de rede.',
|
||||||
'search.fillFrom': 'Preencher a partir de uma base',
|
|
||||||
'search.openSettings': 'Abrir Ajustes',
|
'search.openSettings': 'Abrir Ajustes',
|
||||||
'search.already': 'já adicionado',
|
|
||||||
'search.noResults': 'Nenhum resultado. Você pode preencher a ficha à mão abaixo.',
|
|
||||||
'search.privacy': 'Só o título buscado é enviado para {source}. Sua biblioteca fica no seu celular.',
|
'search.privacy': 'Só o título buscado é enviado para {source}. Sua biblioteca fica no seu celular.',
|
||||||
|
|
||||||
'catalog.sortRecent': 'Editados recentemente',
|
'catalog.sortRecent': 'Editados recentemente',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Adicione seu primeiro título com o botão +.',
|
'catalog.nothingYetHint': 'Adicione seu primeiro título com o botão +.',
|
||||||
'catalog.clearFilters': 'Limpar os filtros',
|
'catalog.clearFilters': 'Limpar os filtros',
|
||||||
|
|
||||||
'public.agree': 'Igualzinho ao público',
|
|
||||||
'public.more': '+{gap} acima do público',
|
|
||||||
'public.less': '−{gap} abaixo do público',
|
|
||||||
'public.label': 'Público',
|
|
||||||
'public.me': 'Eu',
|
|
||||||
'public.added_one': '{count} nota do público adicionada.',
|
|
||||||
'public.added_other': '{count} notas do público adicionadas.',
|
|
||||||
'public.noneFound': 'Nenhuma nota nova encontrada.',
|
|
||||||
'public.fetch': 'Buscar ({n})',
|
|
||||||
'public.title': 'Eu vs o público',
|
|
||||||
'public.hintFetch': 'Busque a nota média do TMDB / AniList dos seus títulos avaliados para ver onde você se diferencia do público.',
|
|
||||||
'public.hintNone': 'Nenhuma nota do público disponível para os seus títulos avaliados neste período.',
|
|
||||||
'public.hintKey': 'Adicione sua chave do TMDB em Ajustes (ou animes vinculados ao AniList) para se comparar com o público.',
|
|
||||||
'public.avgGap': 'Diferença média',
|
|
||||||
'public.average': 'Na média',
|
|
||||||
'public.generous': 'Mais generoso que o público',
|
|
||||||
'public.harsh': 'Mais exigente que o público',
|
|
||||||
'public.agreeTitle': 'De acordo',
|
|
||||||
'public.within5_one': 'com até ½ estrela de diferença, em {count} título',
|
|
||||||
'public.within5_other': 'com até ½ estrela de diferença, em {count} títulos',
|
|
||||||
'public.within10_one': 'com até 1 ponto de diferença, em {count} título',
|
|
||||||
'public.within10_other': 'com até 1 ponto de diferença, em {count} títulos',
|
|
||||||
'public.lovedPre': 'Gostei ',
|
|
||||||
'public.lovedAccent': 'mais',
|
|
||||||
'public.lovedPost': ' que o público',
|
|
||||||
'public.hatedPre': 'Gostei ',
|
|
||||||
'public.hatedAccent': 'menos',
|
|
||||||
'public.hatedPost': ' que o público',
|
|
||||||
'public.allAgree': 'Você concorda com o público em todos os seus títulos. Que raro!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Assistiu de novo? Registre cada revisão, ela vai aparecer no seu diário.',
|
'form.rewatchHint': 'Assistiu de novo? Registre cada revisão, ela vai aparecer no seu diário.',
|
||||||
'form.editTitle': 'Editar ',
|
|
||||||
'form.editAccent': 'ficha',
|
|
||||||
'form.newTitle': 'Novo ',
|
|
||||||
'form.newAccent': 'título',
|
|
||||||
'form.filledFrom': 'Preenchido a partir de',
|
|
||||||
'form.canEdit': 'você pode editar tudo',
|
|
||||||
'form.fillFromDb': 'Completar pelo TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Escolher um pôster',
|
'form.pickPoster': 'Escolher um pôster',
|
||||||
'form.removeImage': 'Remover a imagem',
|
'form.removeImage': 'Remover a imagem',
|
||||||
'form.title': 'Título *',
|
'form.title': 'Título *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Tipo',
|
'form.type': 'Tipo',
|
||||||
'form.subtype': 'Categoria',
|
'form.subtype': 'Categoria',
|
||||||
'form.subtypePh': 'Documentário, Reality show…',
|
'form.subtypePh': 'Documentário, Reality show…',
|
||||||
'form.status': 'Status',
|
|
||||||
'form.myRating': 'Minha nota',
|
|
||||||
'form.favorite': 'Favorito',
|
'form.favorite': 'Favorito',
|
||||||
'form.criteria': 'Critérios detalhados (opcional)',
|
|
||||||
'form.episodes': 'Episódios',
|
'form.episodes': 'Episódios',
|
||||||
'form.minusEp': '-1 episódio',
|
'form.minusEp': '-1 episódio',
|
||||||
'form.plusEp': '+1 episódio',
|
'form.plusEp': '+1 episódio',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Revisões',
|
'form.rewatches': 'Revisões',
|
||||||
'form.review': 'Minha opinião',
|
'form.review': 'Minha opinião',
|
||||||
'form.reviewPh': 'O que achei, cenas marcantes…',
|
'form.reviewPh': 'O que achei, cenas marcantes…',
|
||||||
'form.saveChanges': 'Salvar as alterações',
|
|
||||||
'form.addToLibrary': 'Adicionar à minha biblioteca',
|
|
||||||
'form.shareImage': 'Compartilhar como imagem',
|
'form.shareImage': 'Compartilhar como imagem',
|
||||||
'form.delete': 'Excluir este título',
|
'form.delete': 'Excluir este título',
|
||||||
'form.deleteConfirm': '“{title}” será excluído para sempre.',
|
'form.deleteConfirm': '“{title}” será excluído para sempre.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count} vistos',
|
'journal.seen_other': '{count} vistos',
|
||||||
'journal.more': 'Mostrar meses anteriores',
|
'journal.more': 'Mostrar meses anteriores',
|
||||||
|
|
||||||
'stats.overview': 'Visão geral',
|
|
||||||
'stats.habits': 'Hábitos',
|
|
||||||
'stats.tastes': 'Gostos',
|
|
||||||
'stats.pageTitle': 'Minhas ',
|
'stats.pageTitle': 'Minhas ',
|
||||||
'stats.pageAccent': 'estatísticas',
|
'stats.pageAccent': 'estatísticas',
|
||||||
'stats.emptyTitle': 'Ainda sem estatísticas',
|
'stats.emptyTitle': 'Ainda sem estatísticas',
|
||||||
'stats.emptyText': 'Elas vão aparecer assim que você adicionar títulos.',
|
'stats.emptyText': 'Elas vão aparecer assim que você adicionar títulos.',
|
||||||
'stats.sinceStart': 'desde o início',
|
|
||||||
'stats.subtitle_one': '{count} título na minha biblioteca',
|
'stats.subtitle_one': '{count} título na minha biblioteca',
|
||||||
'stats.subtitle_other': '{count} títulos na minha biblioteca',
|
'stats.subtitle_other': '{count} títulos na minha biblioteca',
|
||||||
'stats.subtitleYear_one': '{count} título em {year}',
|
'stats.subtitleYear_one': '{count} título em {year}',
|
||||||
'stats.subtitleYear_other': '{count} títulos em {year}',
|
'stats.subtitleYear_other': '{count} títulos em {year}',
|
||||||
'stats.hours_one': 'hora',
|
|
||||||
'stats.hours_other': 'horas',
|
|
||||||
'stats.nonStopPre': 'ou seja, ',
|
'stats.nonStopPre': 'ou seja, ',
|
||||||
'stats.nonStopPost': ' sem parar',
|
'stats.nonStopPost': ' sem parar',
|
||||||
'stats.days_one': '{count} dia',
|
'stats.days_one': '{count} dia',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} episódio',
|
'stats.episodesN_one': '{count} episódio',
|
||||||
'stats.episodesN_other': '{count} episódios',
|
'stats.episodesN_other': '{count} episódios',
|
||||||
'stats.timeByType': 'Tempo por tipo',
|
'stats.timeByType': 'Tempo por tipo',
|
||||||
'stats.noTime': 'Ainda não há tempo registrado neste período.',
|
|
||||||
'stats.avgRating': 'Nota média',
|
'stats.avgRating': 'Nota média',
|
||||||
'stats.rated_one': '{count} título avaliado',
|
'stats.rated_one': '{count} título avaliado',
|
||||||
'stats.rated_other': '{count} títulos avaliados',
|
'stats.rated_other': '{count} títulos avaliados',
|
||||||
'stats.inYear': 'em {year}',
|
|
||||||
'stats.statuses': 'Status',
|
'stats.statuses': 'Status',
|
||||||
'stats.hoursTab': 'Horas',
|
|
||||||
'stats.monthByMonth': 'Mês a mês · {year}',
|
'stats.monthByMonth': 'Mês a mês · {year}',
|
||||||
'stats.last12': 'Últimos 12 meses',
|
'stats.last12': 'Últimos 12 meses',
|
||||||
'stats.monthFinished_one': '{count} título concluído',
|
'stats.monthFinished_one': '{count} título concluído',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Recordes',
|
'stats.records': 'Recordes',
|
||||||
'stats.marathon': 'Maior maratona',
|
'stats.marathon': 'Maior maratona',
|
||||||
'stats.longestFilm': 'Filme mais longo',
|
'stats.longestFilm': 'Filme mais longo',
|
||||||
'stats.noRecords': 'Ainda não há recordes neste período.',
|
|
||||||
'stats.platforms': 'Plataformas',
|
'stats.platforms': 'Plataformas',
|
||||||
'stats.bestRated': 'Meus mais bem avaliados',
|
'stats.bestRated': 'Meus mais bem avaliados',
|
||||||
'stats.myRatings': 'Minhas notas',
|
'stats.myRatings': 'Minhas notas',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Gêneros favoritos',
|
'stats.favGenres': 'Gêneros favoritos',
|
||||||
'stats.noGenres': 'Ainda não há gêneros.',
|
'stats.noGenres': 'Ainda não há gêneros.',
|
||||||
'stats.countries': 'Países',
|
'stats.countries': 'Países',
|
||||||
'stats.noCountry_one': '{count} título sem país: complete-o com “Completar pelo TMDB / AniList” na ficha.',
|
|
||||||
'stats.noCountry_other': '{count} títulos sem país: complete-os com “Completar pelo TMDB / AniList” na ficha.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} título sem país: complete-o com “Completar pelo TMDB / AniList” na ficha ou importe de novo o backup do seu app antigo (“Mesclar”).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} títulos sem país: complete-os com “Completar pelo TMDB / AniList” na ficha ou importe de novo o backup do seu app antigo (“Mesclar”).',
|
|
||||||
'stats.byType': 'Por tipo',
|
|
||||||
'stats.footnote': 'Tempo estimado a partir dos episódios vistos e das durações informadas (senão: filme 1 h 50, episódio de anime 24 min, série 45 min, K-drama 1 h, C-drama 45 min). Um título conta para o ano em que o concluí.',
|
'stats.footnote': 'Tempo estimado a partir dos episódios vistos e das durações informadas (senão: filme 1 h 50, episódio de anime 24 min, série 45 min, K-drama 1 h, C-drama 45 min). Um título conta para o ano em que o concluí.',
|
||||||
'stats.ratedAs_one': 'nota {rating}',
|
'stats.ratedAs_one': 'nota {rating}',
|
||||||
'stats.ratedAs_other': 'nota {rating}',
|
'stats.ratedAs_other': 'nota {rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "Depois",
|
'welcome.later': "Depois",
|
||||||
'social.watching': "Assistindo",
|
'social.watching': "Assistindo",
|
||||||
'social.watchlist': "Quer assistir",
|
'social.watchlist': "Quer assistir",
|
||||||
'search.allKinds': "Filmes, séries e animes",
|
|
||||||
'search.animeOnly': "Sem chave do TMDB, só animes são encontrados.",
|
'search.animeOnly': "Sem chave do TMDB, só animes são encontrados.",
|
||||||
'search.alreadySeries': "já está na sua biblioteca — abrir",
|
|
||||||
'form.startShort': "Começou",
|
'form.startShort': "Começou",
|
||||||
'form.endShort': "Terminou",
|
'form.endShort': "Terminou",
|
||||||
'hero.allSeen': "Tudo visto",
|
'hero.allSeen': "Tudo visto",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Em dia',
|
'hero.upToDate': 'Em dia',
|
||||||
'hero.seenEp': "Vi {ep}",
|
'hero.seenEp': "Vi {ep}",
|
||||||
'hero.seen': "Visto",
|
'hero.seen': "Visto",
|
||||||
'hero.markSeen': "Marcar como visto",
|
|
||||||
'hero.edit': "Editar dados",
|
'hero.edit': "Editar dados",
|
||||||
'hero.more': "Ler mais",
|
'hero.more': "Ler mais",
|
||||||
'hero.less': "Ver menos",
|
'hero.less': "Ver menos",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "Detalhes",
|
'homeHero.details': "Detalhes",
|
||||||
'homeHero.continueRow': "Continuar assistindo",
|
'homeHero.continueRow': "Continuar assistindo",
|
||||||
'homeHero.nextUp': "Próximo: {ep}",
|
'homeHero.nextUp': "Próximo: {ep}",
|
||||||
'title.addTitle': "Adicionar um título",
|
|
||||||
'title.searchPh': "Filme, série, anime, drama…",
|
|
||||||
'title.searchHint': "Procure um título e abra a ficha para avaliar, marcar como visto ou adicionar à sua lista.",
|
|
||||||
'title.noResults': "Nenhum resultado.",
|
'title.noResults': "Nenhum resultado.",
|
||||||
'title.manual': "Adicionar manualmente",
|
'title.manual': "Adicionar manualmente",
|
||||||
'title.manualHint': "Não encontrou? Crie a ficha você mesmo.",
|
'title.manualHint': "Não encontrou? Crie a ficha você mesmo.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Datas, listas, revisões",
|
'title.trackingHint': "Datas, listas, revisões",
|
||||||
'title.rewatchCount_one': "Revisto uma vez",
|
'title.rewatchCount_one': "Revisto uma vez",
|
||||||
'title.rewatchCount_other': "Revisto {count} vezes",
|
'title.rewatchCount_other': "Revisto {count} vezes",
|
||||||
'title.rewatchedToday': "Revisto hoje",
|
|
||||||
'sync.syncing': "Sincronizando…",
|
'sync.syncing': "Sincronizando…",
|
||||||
'sync.offline': "Offline",
|
'sync.offline': "Offline",
|
||||||
'sync.error': "A sincronização falhou",
|
'sync.error': "A sincronização falhou",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} outro desafio",
|
'challenges.more_one': "+ {count} outro desafio",
|
||||||
'challenges.more_other': "+ {count} outros desafios",
|
'challenges.more_other': "+ {count} outros desafios",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Notificações neste dispositivo",
|
|
||||||
'push.deviceHint': "Mesmo com o app fechado. As opções abaixo também valem.",
|
|
||||||
'push.iosInstall': "No iPhone e iPad, primeiro adicione o Kino à Tela de Início (iOS 16.4 ou mais recente) e abra o app pelo ícone para ativar as notificações.",
|
|
||||||
'push.unsupported': "Este navegador não suporta notificações push.",
|
|
||||||
'push.denied': "As notificações estão bloqueadas para este site. Permita-as nas configurações do navegador e tente de novo.",
|
|
||||||
'push.notReady': "As notificações push ainda não estão disponíveis no servidor.",
|
|
||||||
'push.error': "Não foi possível ativar as notificações. Verifique sua conexão e tente de novo.",
|
|
||||||
'netPill.offlineSync': "Offline — suas alterações serão sincronizadas",
|
'netPill.offlineSync': "Offline — suas alterações serão sincronizadas",
|
||||||
'netPill.offlineLocal': "Offline — tudo fica salvo neste dispositivo",
|
'netPill.offlineLocal': "Offline — tudo fica salvo neste dispositivo",
|
||||||
'netPill.synced': "Sincronizado",
|
'netPill.synced': "Sincronizado",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Você está comentando rápido demais: tente de novo em um minuto.",
|
'comments.err.rate': "Você está comentando rápido demais: tente de novo em um minuto.",
|
||||||
'comments.err.gone': "Esta resenha não está mais disponível.",
|
'comments.err.gone': "Esta resenha não está mais disponível.",
|
||||||
'comments.err.invalid': "Comentário vazio ou longo demais (máx. 500 caracteres).",
|
'comments.err.invalid': "Comentário vazio ou longo demais (máx. 500 caracteres).",
|
||||||
'notif.review_comment': "comentou sua resenha",
|
|
||||||
'notif.shared_list_invite': "convidou você para a lista compartilhada",
|
|
||||||
'settings.notifComments': "Comentários nas minhas resenhas",
|
|
||||||
'settings.notifLists': "Convites para listas compartilhadas",
|
|
||||||
'shared.title': "Listas compartilhadas",
|
'shared.title': "Listas compartilhadas",
|
||||||
'shared.hint': "Listas a várias mãos: cada membro pode adicionar ou remover títulos.",
|
'shared.hint': "Listas a várias mãos: cada membro pode adicionar ou remover títulos.",
|
||||||
'shared.new': "Nova lista compartilhada",
|
'shared.new': "Nova lista compartilhada",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Ninguém para convidar: só seus seguidores e quem você segue podem entrar.",
|
'shared.noPeople': "Ninguém para convidar: só seus seguidores e quem você segue podem entrar.",
|
||||||
'shared.inviteShort': "Convidar",
|
'shared.inviteShort': "Convidar",
|
||||||
'shared.invited': "Convidado",
|
'shared.invited': "Convidado",
|
||||||
'shared.expired': "convite expirado",
|
|
||||||
'shared.addTo': "Adicionar a uma lista compartilhada",
|
'shared.addTo': "Adicionar a uma lista compartilhada",
|
||||||
'shared.unavailable': "Listas compartilhadas indisponíveis no momento.",
|
'shared.unavailable': "Listas compartilhadas indisponíveis no momento.",
|
||||||
'shared.err.rate': "Muitas ações seguidas: tente de novo em um minuto.",
|
'shared.err.rate': "Muitas ações seguidas: tente de novo em um minuto.",
|
||||||
|
|||||||
@@ -231,7 +231,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ из 5',
|
'settings.scale5': '★ из 5',
|
||||||
'settings.scale10': 'Из 10',
|
'settings.scale10': 'Из 10',
|
||||||
'settings.ratingHint': 'Половинки звёзд из 5 или шаг 0,5 из 10. Существующие оценки пересчитаются автоматически.',
|
'settings.ratingHint': 'Половинки звёзд из 5 или шаг 0,5 из 10. Существующие оценки пересчитаются автоматически.',
|
||||||
'settings.theme': 'Тема',
|
|
||||||
'settings.appearance': 'Оформление',
|
'settings.appearance': 'Оформление',
|
||||||
'settings.appearanceHint': '«Авто» следует за браузером (светлая или тёмная).',
|
'settings.appearanceHint': '«Авто» следует за браузером (светлая или тёмная).',
|
||||||
'theme.modeAuto': 'Авто',
|
'theme.modeAuto': 'Авто',
|
||||||
@@ -243,14 +242,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'Установить приложение',
|
'settings.installApp': 'Установить приложение',
|
||||||
'settings.installHint': 'Добавь Kino на главный экран или рабочий стол.',
|
'settings.installHint': 'Добавь Kino на главный экран или рабочий стол.',
|
||||||
'settings.installed': 'Приложение установлено',
|
'settings.installed': 'Приложение установлено',
|
||||||
'settings.notifs': 'Уведомления',
|
|
||||||
'settings.notifsHint': 'Выбери, что включает колокольчик.',
|
|
||||||
'settings.notifEpisodes': 'Новые серии',
|
|
||||||
'settings.notifFollows': 'Новые подписчики',
|
|
||||||
'settings.notifAccepted': 'Принятые заявки',
|
|
||||||
'settings.notifReactions': 'Реакции на мои отзывы',
|
|
||||||
'notif.new_episode': 'Новая серия «{title}»',
|
|
||||||
'notif.new_season': 'Новый сезон «{title}»',
|
|
||||||
'reviews.title': 'Отзывы',
|
'reviews.title': 'Отзывы',
|
||||||
'reviews.friends': 'Твои друзья',
|
'reviews.friends': 'Твои друзья',
|
||||||
'reviews.others': 'Другие участники',
|
'reviews.others': 'Другие участники',
|
||||||
@@ -258,17 +249,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Других отзывов нет',
|
'reviews.noneOthers': 'Других отзывов нет',
|
||||||
'reviews.none': 'Пока нет отзывов',
|
'reviews.none': 'Пока нет отзывов',
|
||||||
'reviews.seeAll': 'Смотреть все отзывы',
|
'reviews.seeAll': 'Смотреть все отзывы',
|
||||||
'reviews.react': 'Отреагировать',
|
|
||||||
'notif.title': 'Уведомления',
|
|
||||||
'notif.empty': 'Нет уведомлений',
|
|
||||||
'notif.someone': 'Кто-то',
|
'notif.someone': 'Кто-то',
|
||||||
'notif.follow_request': 'хочет подписаться на тебя',
|
|
||||||
'notif.follow_accepted': 'принял(а) твою заявку',
|
|
||||||
'notif.new_follower': 'подписался(ась) на тебя',
|
|
||||||
'notif.reaction': 'отреагировал(а) на твой отзыв',
|
|
||||||
'notif.on': 'к «{title}»',
|
|
||||||
'home.notifications': 'Уведомления',
|
|
||||||
'home.notificationsN': 'Уведомлений: {count}',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -292,8 +273,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -303,7 +282,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -311,8 +289,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Установить Kino',
|
'install.title': 'Установить Kino',
|
||||||
'install.ios': 'Открой Kino в Safari.\nНажми кнопку «Поделиться» (квадрат со стрелкой вверх).\nВыбери «На экран «Домой»», затем «Добавить».',
|
'install.ios': 'Открой Kino в Safari.\nНажми кнопку «Поделиться» (квадрат со стрелкой вверх).\nВыбери «На экран «Домой»», затем «Добавить».',
|
||||||
@@ -424,21 +400,12 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Слишком много попыток, попробуй через минуту.',
|
'account.err.deleteRate': 'Слишком много попыток, попробуй через минуту.',
|
||||||
'account.err.delete': 'Не удалось удалить. Попробуй позже.',
|
'account.err.delete': 'Не удалось удалить. Попробуй позже.',
|
||||||
'account.title': 'Мой аккаунт',
|
'account.title': 'Мой аккаунт',
|
||||||
'account.syncing': 'Синхронизация…',
|
|
||||||
'account.offline': 'Офлайн — всё сохранено на этом устройстве',
|
|
||||||
'account.syncError': 'Синхронизация сейчас недоступна',
|
|
||||||
'account.synced': 'Синхронизировано {when}',
|
|
||||||
'account.passwordChanged': 'Пароль изменён.',
|
'account.passwordChanged': 'Пароль изменён.',
|
||||||
'account.imported_one': '{count} тайтл добавлен в аккаунт.',
|
'account.imported_one': '{count} тайтл добавлен в аккаунт.',
|
||||||
'account.imported_few': '{count} тайтла добавлены в аккаунт.',
|
'account.imported_few': '{count} тайтла добавлены в аккаунт.',
|
||||||
'account.imported_many': '{count} тайтлов добавлено в аккаунт.',
|
'account.imported_many': '{count} тайтлов добавлено в аккаунт.',
|
||||||
'account.imported_other': '{count} тайтла добавлено в аккаунт.',
|
'account.imported_other': '{count} тайтла добавлено в аккаунт.',
|
||||||
'account.importFailed': 'Не удалось импортировать.',
|
'account.importFailed': 'Не удалось импортировать.',
|
||||||
'account.pending_one': 'В очереди: {count}',
|
|
||||||
'account.pending_few': 'В очереди: {count}',
|
|
||||||
'account.pending_many': 'В очереди: {count}',
|
|
||||||
'account.pending_other': 'В очереди: {count}',
|
|
||||||
'account.syncNow': 'Синхронизировать',
|
|
||||||
'account.newPasswordPh': 'Новый пароль (мин. {n} символов)',
|
'account.newPasswordPh': 'Новый пароль (мин. {n} символов)',
|
||||||
'account.changePassword': 'Сменить пароль',
|
'account.changePassword': 'Сменить пароль',
|
||||||
'account.logout': 'Выйти',
|
'account.logout': 'Выйти',
|
||||||
@@ -462,11 +429,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'На этом устройстве есть {titles}, созданные до появления аккаунта. Добавить их в аккаунт?',
|
'account.deviceData': 'На этом устройстве есть {titles}, созданные до появления аккаунта. Добавить их в аккаунт?',
|
||||||
'account.deviceDataWithLists': 'На этом устройстве есть {titles} и {lists}, созданные до появления аккаунта. Добавить их в аккаунт?',
|
'account.deviceDataWithLists': 'На этом устройстве есть {titles} и {lists}, созданные до появления аккаунта. Добавить их в аккаунт?',
|
||||||
|
|
||||||
'time.never': 'никогда',
|
|
||||||
'time.justNow': 'только что',
|
'time.justNow': 'только что',
|
||||||
'time.minutesAgo': '{n} мин назад',
|
'time.minutesAgo': '{n} мин назад',
|
||||||
'time.hoursAgo': '{n} ч назад',
|
'time.hoursAgo': '{n} ч назад',
|
||||||
'time.onDate': '{date}',
|
|
||||||
'time.today': 'сегодня',
|
'time.today': 'сегодня',
|
||||||
'time.tomorrow': 'завтра',
|
'time.tomorrow': 'завтра',
|
||||||
'time.daysAgo': '{n} дн. назад',
|
'time.daysAgo': '{n} дн. назад',
|
||||||
@@ -597,10 +562,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Добавлено',
|
'reco.addedShort': 'Добавлено',
|
||||||
|
|
||||||
'search.offline': 'Нет подключения к интернету: для поиска нужна сеть.',
|
'search.offline': 'Нет подключения к интернету: для поиска нужна сеть.',
|
||||||
'search.fillFrom': 'Заполнить из базы',
|
|
||||||
'search.openSettings': 'Открыть настройки',
|
'search.openSettings': 'Открыть настройки',
|
||||||
'search.already': 'уже добавлено',
|
|
||||||
'search.noResults': 'Ничего не найдено. Можно заполнить карточку вручную ниже.',
|
|
||||||
'search.privacy': 'В {source} отправляется только название, которое ты ищешь. Твоя библиотека остаётся на телефоне.',
|
'search.privacy': 'В {source} отправляется только название, которое ты ищешь. Твоя библиотека остаётся на телефоне.',
|
||||||
|
|
||||||
'catalog.sortRecent': 'Недавно изменённые',
|
'catalog.sortRecent': 'Недавно изменённые',
|
||||||
@@ -632,50 +594,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Добавь первый тайтл кнопкой +.',
|
'catalog.nothingYetHint': 'Добавь первый тайтл кнопкой +.',
|
||||||
'catalog.clearFilters': 'Сбросить фильтры',
|
'catalog.clearFilters': 'Сбросить фильтры',
|
||||||
|
|
||||||
'public.agree': 'Точно как у зрителей',
|
|
||||||
'public.more': '+{gap} выше, чем у зрителей',
|
|
||||||
'public.less': '−{gap} ниже, чем у зрителей',
|
|
||||||
'public.label': 'Зрители',
|
|
||||||
'public.me': 'Я',
|
|
||||||
'public.added_one': 'Добавлена {count} оценка зрителей.',
|
|
||||||
'public.added_few': 'Добавлено {count} оценки зрителей.',
|
|
||||||
'public.added_many': 'Добавлено {count} оценок зрителей.',
|
|
||||||
'public.added_other': 'Добавлено {count} оценки зрителей.',
|
|
||||||
'public.noneFound': 'Новых оценок не найдено.',
|
|
||||||
'public.fetch': 'Загрузить ({n})',
|
|
||||||
'public.title': 'Я vs зрители',
|
|
||||||
'public.hintFetch': 'Загрузи средние оценки TMDB / AniList для своих оценённых тайтлов и посмотри, в чём ты расходишься со зрителями.',
|
|
||||||
'public.hintNone': 'Для твоих оценённых тайтлов за этот период нет оценок зрителей.',
|
|
||||||
'public.hintKey': 'Добавь ключ TMDB в настройках (или привяжи аниме к AniList), чтобы сравнить себя со зрителями.',
|
|
||||||
'public.avgGap': 'Среднее расхождение',
|
|
||||||
'public.average': 'Ровно в среднем',
|
|
||||||
'public.generous': 'Щедрее зрителей',
|
|
||||||
'public.harsh': 'Строже зрителей',
|
|
||||||
'public.agreeTitle': 'Совпадения',
|
|
||||||
'public.within5_one': 'разница до ½ звезды · {count} тайтл',
|
|
||||||
'public.within5_few': 'разница до ½ звезды · {count} тайтла',
|
|
||||||
'public.within5_many': 'разница до ½ звезды · {count} тайтлов',
|
|
||||||
'public.within5_other': 'разница до ½ звезды · {count} тайтла',
|
|
||||||
'public.within10_one': 'разница до 1 балла · {count} тайтл',
|
|
||||||
'public.within10_few': 'разница до 1 балла · {count} тайтла',
|
|
||||||
'public.within10_many': 'разница до 1 балла · {count} тайтлов',
|
|
||||||
'public.within10_other': 'разница до 1 балла · {count} тайтла',
|
|
||||||
'public.lovedPre': 'Мне ',
|
|
||||||
'public.lovedAccent': 'понравилось больше',
|
|
||||||
'public.lovedPost': ', чем зрителям',
|
|
||||||
'public.hatedPre': 'Мне ',
|
|
||||||
'public.hatedAccent': 'понравилось меньше',
|
|
||||||
'public.hatedPost': ', чем зрителям',
|
|
||||||
'public.allAgree': 'Ты согласен со зрителями по всем тайтлам. Редкость!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Пересмотрел? Отмечай каждый пересмотр — он появится в дневнике.',
|
'form.rewatchHint': 'Пересмотрел? Отмечай каждый пересмотр — он появится в дневнике.',
|
||||||
'form.editTitle': 'Изменить ',
|
|
||||||
'form.editAccent': 'карточку',
|
|
||||||
'form.newTitle': 'Новый ',
|
|
||||||
'form.newAccent': 'тайтл',
|
|
||||||
'form.filledFrom': 'Заполнено из',
|
|
||||||
'form.canEdit': 'всё можно изменить',
|
|
||||||
'form.fillFromDb': 'Дополнить из TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Выбрать постер',
|
'form.pickPoster': 'Выбрать постер',
|
||||||
'form.removeImage': 'Убрать изображение',
|
'form.removeImage': 'Убрать изображение',
|
||||||
'form.title': 'Название *',
|
'form.title': 'Название *',
|
||||||
@@ -686,10 +606,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Тип',
|
'form.type': 'Тип',
|
||||||
'form.subtype': 'Уточнение',
|
'form.subtype': 'Уточнение',
|
||||||
'form.subtypePh': 'Документальный, Реалити-шоу…',
|
'form.subtypePh': 'Документальный, Реалити-шоу…',
|
||||||
'form.status': 'Статус',
|
|
||||||
'form.myRating': 'Моя оценка',
|
|
||||||
'form.favorite': 'Избранное',
|
'form.favorite': 'Избранное',
|
||||||
'form.criteria': 'Подробные критерии (необязательно)',
|
|
||||||
'form.episodes': 'Серии',
|
'form.episodes': 'Серии',
|
||||||
'form.minusEp': '-1 серия',
|
'form.minusEp': '-1 серия',
|
||||||
'form.plusEp': '+1 серия',
|
'form.plusEp': '+1 серия',
|
||||||
@@ -704,8 +621,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Пересмотры',
|
'form.rewatches': 'Пересмотры',
|
||||||
'form.review': 'Мой отзыв',
|
'form.review': 'Мой отзыв',
|
||||||
'form.reviewPh': 'Что я думаю, запомнившиеся сцены…',
|
'form.reviewPh': 'Что я думаю, запомнившиеся сцены…',
|
||||||
'form.saveChanges': 'Сохранить изменения',
|
|
||||||
'form.addToLibrary': 'Добавить в библиотеку',
|
|
||||||
'form.shareImage': 'Поделиться изображением',
|
'form.shareImage': 'Поделиться изображением',
|
||||||
'form.delete': 'Удалить тайтл',
|
'form.delete': 'Удалить тайтл',
|
||||||
'form.deleteConfirm': '«{title}» будет удалён навсегда.',
|
'form.deleteConfirm': '«{title}» будет удалён навсегда.',
|
||||||
@@ -722,14 +637,10 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': 'Просмотрено: {count}',
|
'journal.seen_other': 'Просмотрено: {count}',
|
||||||
'journal.more': 'Показать предыдущие месяцы',
|
'journal.more': 'Показать предыдущие месяцы',
|
||||||
|
|
||||||
'stats.overview': 'Обзор',
|
|
||||||
'stats.habits': 'Привычки',
|
|
||||||
'stats.tastes': 'Вкусы',
|
|
||||||
'stats.pageTitle': 'Моя ',
|
'stats.pageTitle': 'Моя ',
|
||||||
'stats.pageAccent': 'статистика',
|
'stats.pageAccent': 'статистика',
|
||||||
'stats.emptyTitle': 'Статистики пока нет',
|
'stats.emptyTitle': 'Статистики пока нет',
|
||||||
'stats.emptyText': 'Она появится, когда ты добавишь тайтлы.',
|
'stats.emptyText': 'Она появится, когда ты добавишь тайтлы.',
|
||||||
'stats.sinceStart': 'за всё время',
|
|
||||||
'stats.subtitle_one': '{count} тайтл в моей библиотеке',
|
'stats.subtitle_one': '{count} тайтл в моей библиотеке',
|
||||||
'stats.subtitle_few': '{count} тайтла в моей библиотеке',
|
'stats.subtitle_few': '{count} тайтла в моей библиотеке',
|
||||||
'stats.subtitle_many': '{count} тайтлов в моей библиотеке',
|
'stats.subtitle_many': '{count} тайтлов в моей библиотеке',
|
||||||
@@ -738,10 +649,6 @@ const dict: Translations = {
|
|||||||
'stats.subtitleYear_few': '{count} тайтла в {year}',
|
'stats.subtitleYear_few': '{count} тайтла в {year}',
|
||||||
'stats.subtitleYear_many': '{count} тайтлов в {year}',
|
'stats.subtitleYear_many': '{count} тайтлов в {year}',
|
||||||
'stats.subtitleYear_other': '{count} тайтла в {year}',
|
'stats.subtitleYear_other': '{count} тайтла в {year}',
|
||||||
'stats.hours_one': 'час',
|
|
||||||
'stats.hours_few': 'часа',
|
|
||||||
'stats.hours_many': 'часов',
|
|
||||||
'stats.hours_other': 'часа',
|
|
||||||
'stats.nonStopPre': 'это ',
|
'stats.nonStopPre': 'это ',
|
||||||
'stats.nonStopPost': ' без перерыва',
|
'stats.nonStopPost': ' без перерыва',
|
||||||
'stats.days_one': '{count} день',
|
'stats.days_one': '{count} день',
|
||||||
@@ -757,15 +664,12 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_many': '{count} серий',
|
'stats.episodesN_many': '{count} серий',
|
||||||
'stats.episodesN_other': '{count} серии',
|
'stats.episodesN_other': '{count} серии',
|
||||||
'stats.timeByType': 'Время по типам',
|
'stats.timeByType': 'Время по типам',
|
||||||
'stats.noTime': 'За этот период время ещё не учтено.',
|
|
||||||
'stats.avgRating': 'Средняя оценка',
|
'stats.avgRating': 'Средняя оценка',
|
||||||
'stats.rated_one': '{count} тайтл оценён',
|
'stats.rated_one': '{count} тайтл оценён',
|
||||||
'stats.rated_few': '{count} тайтла оценено',
|
'stats.rated_few': '{count} тайтла оценено',
|
||||||
'stats.rated_many': '{count} тайтлов оценено',
|
'stats.rated_many': '{count} тайтлов оценено',
|
||||||
'stats.rated_other': '{count} тайтла оценено',
|
'stats.rated_other': '{count} тайтла оценено',
|
||||||
'stats.inYear': 'в {year}',
|
|
||||||
'stats.statuses': 'Статусы',
|
'stats.statuses': 'Статусы',
|
||||||
'stats.hoursTab': 'Часы',
|
|
||||||
'stats.monthByMonth': 'По месяцам · {year}',
|
'stats.monthByMonth': 'По месяцам · {year}',
|
||||||
'stats.last12': 'Последние 12 месяцев',
|
'stats.last12': 'Последние 12 месяцев',
|
||||||
'stats.monthFinished_one': '{count} тайтл просмотрен',
|
'stats.monthFinished_one': '{count} тайтл просмотрен',
|
||||||
@@ -776,7 +680,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Рекорды',
|
'stats.records': 'Рекорды',
|
||||||
'stats.marathon': 'Самый длинный марафон',
|
'stats.marathon': 'Самый длинный марафон',
|
||||||
'stats.longestFilm': 'Самый длинный фильм',
|
'stats.longestFilm': 'Самый длинный фильм',
|
||||||
'stats.noRecords': 'За этот период рекордов пока нет.',
|
|
||||||
'stats.platforms': 'Платформы',
|
'stats.platforms': 'Платформы',
|
||||||
'stats.bestRated': 'Мои лучшие оценки',
|
'stats.bestRated': 'Мои лучшие оценки',
|
||||||
'stats.myRatings': 'Мои оценки',
|
'stats.myRatings': 'Мои оценки',
|
||||||
@@ -784,15 +687,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Любимые жанры',
|
'stats.favGenres': 'Любимые жанры',
|
||||||
'stats.noGenres': 'Жанров пока нет.',
|
'stats.noGenres': 'Жанров пока нет.',
|
||||||
'stats.countries': 'Страны',
|
'stats.countries': 'Страны',
|
||||||
'stats.noCountry_one': '{count} тайтл без страны: дополни его через «Дополнить из TMDB / AniList» на его странице.',
|
|
||||||
'stats.noCountry_few': '{count} тайтла без страны: дополни их через «Дополнить из TMDB / AniList» на их страницах.',
|
|
||||||
'stats.noCountry_many': '{count} тайтлов без страны: дополни их через «Дополнить из TMDB / AniList» на их страницах.',
|
|
||||||
'stats.noCountry_other': '{count} тайтла без страны: дополни их через «Дополнить из TMDB / AniList» на их страницах.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} тайтл без страны: дополни его через «Дополнить из TMDB / AniList» на его странице или заново импортируй копию из старого приложения («Объединить»).',
|
|
||||||
'stats.noCountryLegacy_few': '{count} тайтла без страны: дополни их через «Дополнить из TMDB / AniList» на их страницах или заново импортируй копию из старого приложения («Объединить»).',
|
|
||||||
'stats.noCountryLegacy_many': '{count} тайтлов без страны: дополни их через «Дополнить из TMDB / AniList» на их страницах или заново импортируй копию из старого приложения («Объединить»).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} тайтла без страны: дополни их через «Дополнить из TMDB / AniList» на их страницах или заново импортируй копию из старого приложения («Объединить»).',
|
|
||||||
'stats.byType': 'По типам',
|
|
||||||
'stats.footnote': 'Время рассчитано по просмотренным сериям и указанной длительности (иначе: фильм 1 ч 50, серия аниме 24 мин, сериал 45 мин, K-дорама 1 ч, C-дорама 45 мин). Тайтл учитывается в том году, когда я его досмотрел.',
|
'stats.footnote': 'Время рассчитано по просмотренным сериям и указанной длительности (иначе: фильм 1 ч 50, серия аниме 24 мин, сериал 45 мин, K-дорама 1 ч, C-дорама 45 мин). Тайтл учитывается в том году, когда я его досмотрел.',
|
||||||
'stats.ratedAs_one': 'с оценкой {rating}',
|
'stats.ratedAs_one': 'с оценкой {rating}',
|
||||||
'stats.ratedAs_few': 'с оценкой {rating}',
|
'stats.ratedAs_few': 'с оценкой {rating}',
|
||||||
@@ -911,9 +805,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': 'Позже',
|
'welcome.later': 'Позже',
|
||||||
'social.watching': 'Смотрит',
|
'social.watching': 'Смотрит',
|
||||||
'social.watchlist': 'Хочет посмотреть',
|
'social.watchlist': 'Хочет посмотреть',
|
||||||
'search.allKinds': 'Фильмы, сериалы и аниме',
|
|
||||||
'search.animeOnly': 'Без ключа TMDB можно найти только аниме.',
|
'search.animeOnly': 'Без ключа TMDB можно найти только аниме.',
|
||||||
'search.alreadySeries': 'уже в твоей библиотеке — открыть',
|
|
||||||
'form.startShort': 'Начато',
|
'form.startShort': 'Начато',
|
||||||
'form.endShort': 'Закончено',
|
'form.endShort': 'Закончено',
|
||||||
'hero.allSeen': 'Всё просмотрено',
|
'hero.allSeen': 'Всё просмотрено',
|
||||||
@@ -921,7 +813,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Всё актуально',
|
'hero.upToDate': 'Всё актуально',
|
||||||
'hero.seenEp': 'Посмотрел {ep}',
|
'hero.seenEp': 'Посмотрел {ep}',
|
||||||
'hero.seen': 'Просмотрено',
|
'hero.seen': 'Просмотрено',
|
||||||
'hero.markSeen': 'Отметить просмотренным',
|
|
||||||
'hero.edit': 'Изменить данные',
|
'hero.edit': 'Изменить данные',
|
||||||
'hero.more': 'Читать дальше',
|
'hero.more': 'Читать дальше',
|
||||||
'hero.less': 'Свернуть',
|
'hero.less': 'Свернуть',
|
||||||
@@ -939,9 +830,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': 'Карточка',
|
'homeHero.details': 'Карточка',
|
||||||
'homeHero.continueRow': 'Продолжить просмотр',
|
'homeHero.continueRow': 'Продолжить просмотр',
|
||||||
'homeHero.nextUp': 'Далее: {ep}',
|
'homeHero.nextUp': 'Далее: {ep}',
|
||||||
'title.addTitle': "Добавить",
|
|
||||||
'title.searchPh': "Фильм, сериал, аниме, дорама…",
|
|
||||||
'title.searchHint': "Найдите название и откройте карточку, чтобы оценить, отметить как просмотренное или добавить в список.",
|
|
||||||
'title.noResults': "Ничего не найдено.",
|
'title.noResults': "Ничего не найдено.",
|
||||||
'title.manual': "Добавить вручную",
|
'title.manual': "Добавить вручную",
|
||||||
'title.manualHint': "Не нашли? Создайте карточку сами.",
|
'title.manualHint': "Не нашли? Создайте карточку сами.",
|
||||||
@@ -971,7 +859,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Даты, списки, повторные просмотры",
|
'title.trackingHint': "Даты, списки, повторные просмотры",
|
||||||
'title.rewatchCount_one': "Пересмотрено {count} раз",
|
'title.rewatchCount_one': "Пересмотрено {count} раз",
|
||||||
'title.rewatchCount_other': "Пересмотрено {count} раза",
|
'title.rewatchCount_other': "Пересмотрено {count} раза",
|
||||||
'title.rewatchedToday': "Пересмотрено сегодня",
|
|
||||||
'title.votes_few': "{n} голоса",
|
'title.votes_few': "{n} голоса",
|
||||||
'title.votes_many': "{n} голосов",
|
'title.votes_many': "{n} голосов",
|
||||||
'title.eps_few': "{count} серии",
|
'title.eps_few': "{count} серии",
|
||||||
@@ -1211,13 +1098,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_many': "+ ещё {count} челленджей",
|
'challenges.more_many': "+ ещё {count} челленджей",
|
||||||
'challenges.more_other': "+ ещё {count} челленджа",
|
'challenges.more_other': "+ ещё {count} челленджа",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Уведомления на этом устройстве",
|
|
||||||
'push.deviceHint': "Даже когда приложение закрыто. Настройки ниже тоже действуют.",
|
|
||||||
'push.iosInstall': "На iPhone и iPad сначала добавьте Kino на экран «Домой» (iOS 16.4 или новее), затем откройте приложение с его значка, чтобы включить уведомления.",
|
|
||||||
'push.unsupported': "Этот браузер не поддерживает push-уведомления.",
|
|
||||||
'push.denied': "Уведомления для этого сайта заблокированы. Разрешите их в настройках браузера и повторите попытку.",
|
|
||||||
'push.notReady': "Push-уведомления пока недоступны на сервере.",
|
|
||||||
'push.error': "Не удалось включить уведомления. Проверьте подключение и повторите попытку.",
|
|
||||||
'netPill.offlineSync': "Нет сети — изменения будут синхронизированы",
|
'netPill.offlineSync': "Нет сети — изменения будут синхронизированы",
|
||||||
'netPill.offlineLocal': "Нет сети — всё сохранено на этом устройстве",
|
'netPill.offlineLocal': "Нет сети — всё сохранено на этом устройстве",
|
||||||
'netPill.synced': "Синхронизировано",
|
'netPill.synced': "Синхронизировано",
|
||||||
@@ -1357,10 +1237,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Вы комментируете слишком часто — попробуйте через минуту.",
|
'comments.err.rate': "Вы комментируете слишком часто — попробуйте через минуту.",
|
||||||
'comments.err.gone': "Этот отзыв больше недоступен.",
|
'comments.err.gone': "Этот отзыв больше недоступен.",
|
||||||
'comments.err.invalid': "Комментарий пустой или слишком длинный (макс. 500 символов).",
|
'comments.err.invalid': "Комментарий пустой или слишком длинный (макс. 500 символов).",
|
||||||
'notif.review_comment': "прокомментировал(а) ваш отзыв",
|
|
||||||
'notif.shared_list_invite': "приглашает вас в общий список",
|
|
||||||
'settings.notifComments': "Комментарии к моим отзывам",
|
|
||||||
'settings.notifLists': "Приглашения в общие списки",
|
|
||||||
'shared.title': "Общие списки",
|
'shared.title': "Общие списки",
|
||||||
'shared.hint': "Списки на несколько человек: каждый участник может добавлять и удалять тайтлы.",
|
'shared.hint': "Списки на несколько человек: каждый участник может добавлять и удалять тайтлы.",
|
||||||
'shared.new': "Новый общий список",
|
'shared.new': "Новый общий список",
|
||||||
@@ -1392,7 +1268,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Некого пригласить: вступить могут только ваши подписчики и подписки.",
|
'shared.noPeople': "Некого пригласить: вступить могут только ваши подписчики и подписки.",
|
||||||
'shared.inviteShort': "Пригласить",
|
'shared.inviteShort': "Пригласить",
|
||||||
'shared.invited': "Приглашён",
|
'shared.invited': "Приглашён",
|
||||||
'shared.expired': "приглашение устарело",
|
|
||||||
'shared.addTo': "Добавить в общий список",
|
'shared.addTo': "Добавить в общий список",
|
||||||
'shared.unavailable': "Общие списки сейчас недоступны.",
|
'shared.unavailable': "Общие списки сейчас недоступны.",
|
||||||
'shared.err.rate': "Слишком много действий подряд — попробуйте через минуту.",
|
'shared.err.rate': "Слишком много действий подряд — попробуйте через минуту.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ เต็ม 5',
|
'settings.scale5': '★ เต็ม 5',
|
||||||
'settings.scale10': 'เต็ม 10',
|
'settings.scale10': 'เต็ม 10',
|
||||||
'settings.ratingHint': 'ครึ่งดาวเมื่อคะแนนเต็ม 5 หรือทีละ 0.5 เมื่อคะแนนเต็ม 10 คะแนนเดิมจะแปลงให้อัตโนมัติ',
|
'settings.ratingHint': 'ครึ่งดาวเมื่อคะแนนเต็ม 5 หรือทีละ 0.5 เมื่อคะแนนเต็ม 10 คะแนนเดิมจะแปลงให้อัตโนมัติ',
|
||||||
'settings.theme': 'ธีม',
|
|
||||||
'settings.appearance': 'ลักษณะที่ปรากฏ',
|
'settings.appearance': 'ลักษณะที่ปรากฏ',
|
||||||
'settings.appearanceHint': '“อัตโนมัติ” จะตามเบราว์เซอร์ของคุณ (สว่างหรือมืด)',
|
'settings.appearanceHint': '“อัตโนมัติ” จะตามเบราว์เซอร์ของคุณ (สว่างหรือมืด)',
|
||||||
'theme.modeAuto': 'อัตโนมัติ',
|
'theme.modeAuto': 'อัตโนมัติ',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'ติดตั้งแอป',
|
'settings.installApp': 'ติดตั้งแอป',
|
||||||
'settings.installHint': 'เพิ่ม Kino ไปที่หน้าจอหลักหรือเดสก์ท็อปของคุณ',
|
'settings.installHint': 'เพิ่ม Kino ไปที่หน้าจอหลักหรือเดสก์ท็อปของคุณ',
|
||||||
'settings.installed': 'ติดตั้งแอปแล้ว',
|
'settings.installed': 'ติดตั้งแอปแล้ว',
|
||||||
'settings.notifs': 'การแจ้งเตือน',
|
|
||||||
'settings.notifsHint': 'เลือกสิ่งที่จะทำให้กระดิ่งเตือน',
|
|
||||||
'settings.notifEpisodes': 'ตอนใหม่',
|
|
||||||
'settings.notifFollows': 'ผู้ติดตามใหม่',
|
|
||||||
'settings.notifAccepted': 'คำขอที่ยอมรับแล้ว',
|
|
||||||
'settings.notifReactions': 'รีแอกชันต่อรีวิวของฉัน',
|
|
||||||
'notif.new_episode': 'ตอนใหม่ของ {title}',
|
|
||||||
'notif.new_season': 'ซีซันใหม่ของ {title}',
|
|
||||||
'reviews.title': 'รีวิว',
|
'reviews.title': 'รีวิว',
|
||||||
'reviews.friends': 'เพื่อนของคุณ',
|
'reviews.friends': 'เพื่อนของคุณ',
|
||||||
'reviews.others': 'สมาชิกอื่น',
|
'reviews.others': 'สมาชิกอื่น',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'ไม่มีรีวิวอื่น',
|
'reviews.noneOthers': 'ไม่มีรีวิวอื่น',
|
||||||
'reviews.none': 'ยังไม่มีรีวิว',
|
'reviews.none': 'ยังไม่มีรีวิว',
|
||||||
'reviews.seeAll': 'ดูรีวิวทั้งหมด',
|
'reviews.seeAll': 'ดูรีวิวทั้งหมด',
|
||||||
'reviews.react': 'แสดงความรู้สึก',
|
|
||||||
'notif.title': 'การแจ้งเตือน',
|
|
||||||
'notif.empty': 'ไม่มีการแจ้งเตือน',
|
|
||||||
'notif.someone': 'มีคน',
|
'notif.someone': 'มีคน',
|
||||||
'notif.follow_request': 'ต้องการติดตามคุณ',
|
|
||||||
'notif.follow_accepted': 'ยอมรับคำขอของคุณ',
|
|
||||||
'notif.new_follower': 'เริ่มติดตามคุณ',
|
|
||||||
'notif.reaction': 'แสดงความรู้สึกต่อรีวิวของคุณ',
|
|
||||||
'notif.on': 'ใน {title}',
|
|
||||||
'home.notifications': 'การแจ้งเตือน',
|
|
||||||
'home.notificationsN': '{count} การแจ้งเตือน',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'ติดตั้ง Kino',
|
'install.title': 'ติดตั้ง Kino',
|
||||||
'install.ios': 'เปิด Kino ใน Safari\nแตะปุ่มแชร์ (สี่เหลี่ยมที่มีลูกศรชี้ขึ้น)\nเลือก “เพิ่มไปยังหน้าจอโฮม” แล้ว “เพิ่ม”',
|
'install.ios': 'เปิด Kino ใน Safari\nแตะปุ่มแชร์ (สี่เหลี่ยมที่มีลูกศรชี้ขึ้น)\nเลือก “เพิ่มไปยังหน้าจอโฮม” แล้ว “เพิ่ม”',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'พยายามหลายครั้งเกินไป ลองใหม่อีกครั้งในอีกหนึ่งนาที',
|
'account.err.deleteRate': 'พยายามหลายครั้งเกินไป ลองใหม่อีกครั้งในอีกหนึ่งนาที',
|
||||||
'account.err.delete': 'ลบไม่สำเร็จ ลองใหม่ภายหลัง',
|
'account.err.delete': 'ลบไม่สำเร็จ ลองใหม่ภายหลัง',
|
||||||
'account.title': 'บัญชีของฉัน',
|
'account.title': 'บัญชีของฉัน',
|
||||||
'account.syncing': 'กำลังซิงค์…',
|
|
||||||
'account.offline': 'ออฟไลน์ — ข้อมูลทั้งหมดยังเก็บไว้ในอุปกรณ์นี้',
|
|
||||||
'account.syncError': 'ซิงค์ไม่ได้ในขณะนี้',
|
|
||||||
'account.synced': 'ซิงค์แล้ว {when}',
|
|
||||||
'account.passwordChanged': 'เปลี่ยนรหัสผ่านแล้ว',
|
'account.passwordChanged': 'เปลี่ยนรหัสผ่านแล้ว',
|
||||||
'account.imported_one': 'เพิ่ม {count} เรื่องลงในบัญชีของคุณแล้ว',
|
'account.imported_one': 'เพิ่ม {count} เรื่องลงในบัญชีของคุณแล้ว',
|
||||||
'account.imported_other': 'เพิ่ม {count} เรื่องลงในบัญชีของคุณแล้ว',
|
'account.imported_other': 'เพิ่ม {count} เรื่องลงในบัญชีของคุณแล้ว',
|
||||||
'account.importFailed': 'นำเข้าไม่สำเร็จ',
|
'account.importFailed': 'นำเข้าไม่สำเร็จ',
|
||||||
'account.pending_one': 'รอดำเนินการ {count} รายการ',
|
|
||||||
'account.pending_other': 'รอดำเนินการ {count} รายการ',
|
|
||||||
'account.syncNow': 'ซิงค์ตอนนี้',
|
|
||||||
'account.newPasswordPh': 'รหัสผ่านใหม่ (อย่างน้อย {n} ตัวอักษร)',
|
'account.newPasswordPh': 'รหัสผ่านใหม่ (อย่างน้อย {n} ตัวอักษร)',
|
||||||
'account.changePassword': 'เปลี่ยนรหัสผ่าน',
|
'account.changePassword': 'เปลี่ยนรหัสผ่าน',
|
||||||
'account.logout': 'ออกจากระบบ',
|
'account.logout': 'ออกจากระบบ',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'อุปกรณ์นี้มี {titles} ที่สร้างไว้ก่อนมีบัญชี ต้องการเพิ่มลงในบัญชีของคุณไหม?',
|
'account.deviceData': 'อุปกรณ์นี้มี {titles} ที่สร้างไว้ก่อนมีบัญชี ต้องการเพิ่มลงในบัญชีของคุณไหม?',
|
||||||
'account.deviceDataWithLists': 'อุปกรณ์นี้มี {titles} และ {lists} ที่สร้างไว้ก่อนมีบัญชี ต้องการเพิ่มลงในบัญชีของคุณไหม?',
|
'account.deviceDataWithLists': 'อุปกรณ์นี้มี {titles} และ {lists} ที่สร้างไว้ก่อนมีบัญชี ต้องการเพิ่มลงในบัญชีของคุณไหม?',
|
||||||
|
|
||||||
'time.never': 'ไม่เคย',
|
|
||||||
'time.justNow': 'เมื่อสักครู่',
|
'time.justNow': 'เมื่อสักครู่',
|
||||||
'time.minutesAgo': '{n} นาทีที่แล้ว',
|
'time.minutesAgo': '{n} นาทีที่แล้ว',
|
||||||
'time.hoursAgo': '{n} ชม. ที่แล้ว',
|
'time.hoursAgo': '{n} ชม. ที่แล้ว',
|
||||||
'time.onDate': 'เมื่อ {date}',
|
|
||||||
'time.today': 'วันนี้',
|
'time.today': 'วันนี้',
|
||||||
'time.tomorrow': 'พรุ่งนี้',
|
'time.tomorrow': 'พรุ่งนี้',
|
||||||
'time.daysAgo': '{n} วันที่แล้ว',
|
'time.daysAgo': '{n} วันที่แล้ว',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'เพิ่มแล้ว',
|
'reco.addedShort': 'เพิ่มแล้ว',
|
||||||
|
|
||||||
'search.offline': 'ไม่มีการเชื่อมต่ออินเทอร์เน็ต การค้นหาต้องใช้เครือข่าย',
|
'search.offline': 'ไม่มีการเชื่อมต่ออินเทอร์เน็ต การค้นหาต้องใช้เครือข่าย',
|
||||||
'search.fillFrom': 'กรอกข้อมูลจากฐานข้อมูล',
|
|
||||||
'search.openSettings': 'เปิดตั้งค่า',
|
'search.openSettings': 'เปิดตั้งค่า',
|
||||||
'search.already': 'เพิ่มแล้ว',
|
|
||||||
'search.noResults': 'ไม่พบผลลัพธ์ คุณกรอกข้อมูลเองได้ด้านล่าง',
|
|
||||||
'search.privacy': 'จะส่งเฉพาะชื่อเรื่องที่ค้นหาไปยัง {source} เท่านั้น คลังของคุณยังอยู่ในโทรศัพท์ของคุณ',
|
'search.privacy': 'จะส่งเฉพาะชื่อเรื่องที่ค้นหาไปยัง {source} เท่านั้น คลังของคุณยังอยู่ในโทรศัพท์ของคุณ',
|
||||||
|
|
||||||
'catalog.sortRecent': 'แก้ไขล่าสุด',
|
'catalog.sortRecent': 'แก้ไขล่าสุด',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'เพิ่มเรื่องแรกของคุณด้วยปุ่ม +',
|
'catalog.nothingYetHint': 'เพิ่มเรื่องแรกของคุณด้วยปุ่ม +',
|
||||||
'catalog.clearFilters': 'ล้างตัวกรอง',
|
'catalog.clearFilters': 'ล้างตัวกรอง',
|
||||||
|
|
||||||
'public.agree': 'ตรงกับความเห็นของผู้ชมพอดี',
|
|
||||||
'public.more': 'สูงกว่าผู้ชม +{gap}',
|
|
||||||
'public.less': 'ต่ำกว่าผู้ชม −{gap}',
|
|
||||||
'public.label': 'ผู้ชม',
|
|
||||||
'public.me': 'ฉัน',
|
|
||||||
'public.added_one': 'เพิ่มคะแนนจากผู้ชม {count} รายการแล้ว',
|
|
||||||
'public.added_other': 'เพิ่มคะแนนจากผู้ชม {count} รายการแล้ว',
|
|
||||||
'public.noneFound': 'ไม่พบคะแนนใหม่',
|
|
||||||
'public.fetch': 'ดึงข้อมูล ({n})',
|
|
||||||
'public.title': 'ฉัน vs ผู้ชม',
|
|
||||||
'public.hintFetch': 'ดึงคะแนนเฉลี่ยจาก TMDB / AniList ของเรื่องที่คุณให้คะแนนแล้ว เพื่อดูว่าคุณมีมุมมองต่างจากผู้ชมตรงไหน',
|
|
||||||
'public.hintNone': 'ไม่มีคะแนนจากผู้ชมสำหรับเรื่องที่คุณให้คะแนนในช่วงเวลานี้',
|
|
||||||
'public.hintKey': 'เพิ่มคีย์ TMDB ในตั้งค่า (หรือเชื่อมอนิเมะกับ AniList) เพื่อเปรียบเทียบกับผู้ชม',
|
|
||||||
'public.avgGap': 'ส่วนต่างเฉลี่ย',
|
|
||||||
'public.average': 'อยู่ในค่าเฉลี่ย',
|
|
||||||
'public.generous': 'ใจดีกว่าผู้ชม',
|
|
||||||
'public.harsh': 'โหดกว่าผู้ชม',
|
|
||||||
'public.agreeTitle': 'เห็นตรงกัน',
|
|
||||||
'public.within5_one': 'ต่างกันไม่เกิน ½ ดาว จาก {count} เรื่อง',
|
|
||||||
'public.within5_other': 'ต่างกันไม่เกิน ½ ดาว จาก {count} เรื่อง',
|
|
||||||
'public.within10_one': 'ต่างกันไม่เกิน 1 คะแนน จาก {count} เรื่อง',
|
|
||||||
'public.within10_other': 'ต่างกันไม่เกิน 1 คะแนน จาก {count} เรื่อง',
|
|
||||||
'public.lovedPre': 'ฉัน',
|
|
||||||
'public.lovedAccent': 'ชอบมากกว่า',
|
|
||||||
'public.lovedPost': 'ผู้ชม',
|
|
||||||
'public.hatedPre': 'ฉัน',
|
|
||||||
'public.hatedAccent': 'ชอบน้อยกว่า',
|
|
||||||
'public.hatedPost': 'ผู้ชม',
|
|
||||||
'public.allAgree': 'คุณเห็นตรงกับผู้ชมในทุกเรื่อง หายากมาก!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'ดูซ้ำอีกรอบใช่ไหม? บันทึกการดูซ้ำแต่ละครั้งไว้ แล้วจะแสดงในบันทึกการดูของคุณ',
|
'form.rewatchHint': 'ดูซ้ำอีกรอบใช่ไหม? บันทึกการดูซ้ำแต่ละครั้งไว้ แล้วจะแสดงในบันทึกการดูของคุณ',
|
||||||
'form.editTitle': 'แก้ไข',
|
|
||||||
'form.editAccent': 'รายการ',
|
|
||||||
'form.newTitle': 'เรื่อง',
|
|
||||||
'form.newAccent': 'ใหม่',
|
|
||||||
'form.filledFrom': 'กรอกจาก',
|
|
||||||
'form.canEdit': 'คุณแก้ไขได้ทุกอย่าง',
|
|
||||||
'form.fillFromDb': 'เติมข้อมูลจาก TMDB / AniList',
|
|
||||||
'form.pickPoster': 'เลือกโปสเตอร์',
|
'form.pickPoster': 'เลือกโปสเตอร์',
|
||||||
'form.removeImage': 'นำภาพออก',
|
'form.removeImage': 'นำภาพออก',
|
||||||
'form.title': 'ชื่อเรื่อง *',
|
'form.title': 'ชื่อเรื่อง *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'ประเภท',
|
'form.type': 'ประเภท',
|
||||||
'form.subtype': 'ประเภทย่อย',
|
'form.subtype': 'ประเภทย่อย',
|
||||||
'form.subtypePh': 'สารคดี เรียลลิตี้…',
|
'form.subtypePh': 'สารคดี เรียลลิตี้…',
|
||||||
'form.status': 'สถานะ',
|
|
||||||
'form.myRating': 'คะแนนของฉัน',
|
|
||||||
'form.favorite': 'เรื่องโปรด',
|
'form.favorite': 'เรื่องโปรด',
|
||||||
'form.criteria': 'เกณฑ์แบบละเอียด (ไม่บังคับ)',
|
|
||||||
'form.episodes': 'ตอน',
|
'form.episodes': 'ตอน',
|
||||||
'form.minusEp': '-1 ตอน',
|
'form.minusEp': '-1 ตอน',
|
||||||
'form.plusEp': '+1 ตอน',
|
'form.plusEp': '+1 ตอน',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'การดูซ้ำ',
|
'form.rewatches': 'การดูซ้ำ',
|
||||||
'form.review': 'รีวิวของฉัน',
|
'form.review': 'รีวิวของฉัน',
|
||||||
'form.reviewPh': 'ความรู้สึกหลังดู ฉากที่ประทับใจ…',
|
'form.reviewPh': 'ความรู้สึกหลังดู ฉากที่ประทับใจ…',
|
||||||
'form.saveChanges': 'บันทึกการเปลี่ยนแปลง',
|
|
||||||
'form.addToLibrary': 'เพิ่มลงในคลังของฉัน',
|
|
||||||
'form.shareImage': 'แชร์เป็นภาพ',
|
'form.shareImage': 'แชร์เป็นภาพ',
|
||||||
'form.delete': 'ลบเรื่องนี้',
|
'form.delete': 'ลบเรื่องนี้',
|
||||||
'form.deleteConfirm': '“{title}” จะถูกลบอย่างถาวร',
|
'form.deleteConfirm': '“{title}” จะถูกลบอย่างถาวร',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': 'ดูแล้ว {count} เรื่อง',
|
'journal.seen_other': 'ดูแล้ว {count} เรื่อง',
|
||||||
'journal.more': 'แสดงเดือนก่อนหน้า',
|
'journal.more': 'แสดงเดือนก่อนหน้า',
|
||||||
|
|
||||||
'stats.overview': 'ภาพรวม',
|
|
||||||
'stats.habits': 'พฤติกรรม',
|
|
||||||
'stats.tastes': 'รสนิยม',
|
|
||||||
'stats.pageTitle': 'สถิติ',
|
'stats.pageTitle': 'สถิติ',
|
||||||
'stats.pageAccent': 'ของฉัน',
|
'stats.pageAccent': 'ของฉัน',
|
||||||
'stats.emptyTitle': 'ยังไม่มีสถิติ',
|
'stats.emptyTitle': 'ยังไม่มีสถิติ',
|
||||||
'stats.emptyText': 'สถิติจะแสดงเมื่อคุณเพิ่มเรื่องแล้ว',
|
'stats.emptyText': 'สถิติจะแสดงเมื่อคุณเพิ่มเรื่องแล้ว',
|
||||||
'stats.sinceStart': 'ตั้งแต่เริ่มต้น',
|
|
||||||
'stats.subtitle_one': '{count} เรื่องในคลังของฉัน',
|
'stats.subtitle_one': '{count} เรื่องในคลังของฉัน',
|
||||||
'stats.subtitle_other': '{count} เรื่องในคลังของฉัน',
|
'stats.subtitle_other': '{count} เรื่องในคลังของฉัน',
|
||||||
'stats.subtitleYear_one': '{count} เรื่องในปี {year}',
|
'stats.subtitleYear_one': '{count} เรื่องในปี {year}',
|
||||||
'stats.subtitleYear_other': '{count} เรื่องในปี {year}',
|
'stats.subtitleYear_other': '{count} เรื่องในปี {year}',
|
||||||
'stats.hours_one': 'ชั่วโมง',
|
|
||||||
'stats.hours_other': 'ชั่วโมง',
|
|
||||||
'stats.nonStopPre': 'เท่ากับ ',
|
'stats.nonStopPre': 'เท่ากับ ',
|
||||||
'stats.nonStopPost': ' แบบไม่หยุดพัก',
|
'stats.nonStopPost': ' แบบไม่หยุดพัก',
|
||||||
'stats.days_one': '{count} วัน',
|
'stats.days_one': '{count} วัน',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} ตอน',
|
'stats.episodesN_one': '{count} ตอน',
|
||||||
'stats.episodesN_other': '{count} ตอน',
|
'stats.episodesN_other': '{count} ตอน',
|
||||||
'stats.timeByType': 'เวลาตามประเภท',
|
'stats.timeByType': 'เวลาตามประเภท',
|
||||||
'stats.noTime': 'ยังไม่มีเวลาที่บันทึกในช่วงนี้',
|
|
||||||
'stats.avgRating': 'คะแนนเฉลี่ย',
|
'stats.avgRating': 'คะแนนเฉลี่ย',
|
||||||
'stats.rated_one': 'ให้คะแนนแล้ว {count} เรื่อง',
|
'stats.rated_one': 'ให้คะแนนแล้ว {count} เรื่อง',
|
||||||
'stats.rated_other': 'ให้คะแนนแล้ว {count} เรื่อง',
|
'stats.rated_other': 'ให้คะแนนแล้ว {count} เรื่อง',
|
||||||
'stats.inYear': 'ในปี {year}',
|
|
||||||
'stats.statuses': 'สถานะ',
|
'stats.statuses': 'สถานะ',
|
||||||
'stats.hoursTab': 'ชั่วโมง',
|
|
||||||
'stats.monthByMonth': 'รายเดือน · {year}',
|
'stats.monthByMonth': 'รายเดือน · {year}',
|
||||||
'stats.last12': '12 เดือนที่ผ่านมา',
|
'stats.last12': '12 เดือนที่ผ่านมา',
|
||||||
'stats.monthFinished_one': 'ดูจบ {count} เรื่อง',
|
'stats.monthFinished_one': 'ดูจบ {count} เรื่อง',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'สถิติสูงสุด',
|
'stats.records': 'สถิติสูงสุด',
|
||||||
'stats.marathon': 'มาราธอนที่ยาวที่สุด',
|
'stats.marathon': 'มาราธอนที่ยาวที่สุด',
|
||||||
'stats.longestFilm': 'ภาพยนตร์ที่ยาวที่สุด',
|
'stats.longestFilm': 'ภาพยนตร์ที่ยาวที่สุด',
|
||||||
'stats.noRecords': 'ยังไม่มีสถิติสูงสุดในช่วงนี้',
|
|
||||||
'stats.platforms': 'แพลตฟอร์ม',
|
'stats.platforms': 'แพลตฟอร์ม',
|
||||||
'stats.bestRated': 'เรื่องที่ฉันให้คะแนนสูงสุด',
|
'stats.bestRated': 'เรื่องที่ฉันให้คะแนนสูงสุด',
|
||||||
'stats.myRatings': 'คะแนนของฉัน',
|
'stats.myRatings': 'คะแนนของฉัน',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'แนวที่ชอบ',
|
'stats.favGenres': 'แนวที่ชอบ',
|
||||||
'stats.noGenres': 'ยังไม่มีแนว',
|
'stats.noGenres': 'ยังไม่มีแนว',
|
||||||
'stats.countries': 'ประเทศ',
|
'stats.countries': 'ประเทศ',
|
||||||
'stats.noCountry_one': '{count} เรื่องยังไม่มีประเทศ เติมข้อมูลได้ด้วย “เติมข้อมูลจาก TMDB / AniList” ในหน้าของเรื่องนั้น',
|
|
||||||
'stats.noCountry_other': '{count} เรื่องยังไม่มีประเทศ เติมข้อมูลได้ด้วย “เติมข้อมูลจาก TMDB / AniList” ในหน้าของแต่ละเรื่อง',
|
|
||||||
'stats.noCountryLegacy_one': '{count} เรื่องยังไม่มีประเทศ เติมข้อมูลได้ด้วย “เติมข้อมูลจาก TMDB / AniList” ในหน้าของเรื่องนั้น หรือนำเข้าข้อมูลสำรองจากแอปเก่าอีกครั้ง (“รวม”)',
|
|
||||||
'stats.noCountryLegacy_other': '{count} เรื่องยังไม่มีประเทศ เติมข้อมูลได้ด้วย “เติมข้อมูลจาก TMDB / AniList” ในหน้าของแต่ละเรื่อง หรือนำเข้าข้อมูลสำรองจากแอปเก่าอีกครั้ง (“รวม”)',
|
|
||||||
'stats.byType': 'ตามประเภท',
|
|
||||||
'stats.footnote': 'เวลาประมาณจากจำนวนตอนที่ดูและความยาวที่กรอกไว้ (หากไม่มี: ภาพยนตร์ 1 ชม. 50 นาที, อนิเมะตอนละ 24 นาที, ซีรีส์ 45 นาที, ซีรีส์เกาหลี 1 ชม., ซีรีส์จีน 45 นาที) แต่ละเรื่องนับในปีที่ฉันดูจบ',
|
'stats.footnote': 'เวลาประมาณจากจำนวนตอนที่ดูและความยาวที่กรอกไว้ (หากไม่มี: ภาพยนตร์ 1 ชม. 50 นาที, อนิเมะตอนละ 24 นาที, ซีรีส์ 45 นาที, ซีรีส์เกาหลี 1 ชม., ซีรีส์จีน 45 นาที) แต่ละเรื่องนับในปีที่ฉันดูจบ',
|
||||||
'stats.ratedAs_one': 'ได้คะแนน {rating}',
|
'stats.ratedAs_one': 'ได้คะแนน {rating}',
|
||||||
'stats.ratedAs_other': 'ได้คะแนน {rating}',
|
'stats.ratedAs_other': 'ได้คะแนน {rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': 'ไว้ทีหลัง',
|
'welcome.later': 'ไว้ทีหลัง',
|
||||||
'social.watching': 'กำลังดู',
|
'social.watching': 'กำลังดู',
|
||||||
'social.watchlist': 'อยากดู',
|
'social.watchlist': 'อยากดู',
|
||||||
'search.allKinds': 'ภาพยนตร์ ซีรีส์ และอนิเมะ',
|
|
||||||
'search.animeOnly': 'หากไม่มีคีย์ TMDB จะค้นหาได้เฉพาะอนิเมะ',
|
'search.animeOnly': 'หากไม่มีคีย์ TMDB จะค้นหาได้เฉพาะอนิเมะ',
|
||||||
'search.alreadySeries': 'อยู่ในคลังของคุณแล้ว — เปิด',
|
|
||||||
'form.startShort': 'เริ่มดูเมื่อ',
|
'form.startShort': 'เริ่มดูเมื่อ',
|
||||||
'form.endShort': 'ดูจบเมื่อ',
|
'form.endShort': 'ดูจบเมื่อ',
|
||||||
'hero.allSeen': 'ดูครบแล้ว',
|
'hero.allSeen': 'ดูครบแล้ว',
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'ดูทันแล้ว',
|
'hero.upToDate': 'ดูทันแล้ว',
|
||||||
'hero.seenEp': 'ดู {ep} แล้ว',
|
'hero.seenEp': 'ดู {ep} แล้ว',
|
||||||
'hero.seen': 'ดูแล้ว',
|
'hero.seen': 'ดูแล้ว',
|
||||||
'hero.markSeen': 'ทำเครื่องหมายว่าดูแล้ว',
|
|
||||||
'hero.edit': 'แก้ไขข้อมูล',
|
'hero.edit': 'แก้ไขข้อมูล',
|
||||||
'hero.more': 'อ่านเพิ่มเติม',
|
'hero.more': 'อ่านเพิ่มเติม',
|
||||||
'hero.less': 'ย่อ',
|
'hero.less': 'ย่อ',
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': 'รายละเอียด',
|
'homeHero.details': 'รายละเอียด',
|
||||||
'homeHero.continueRow': 'ดูต่อ',
|
'homeHero.continueRow': 'ดูต่อ',
|
||||||
'homeHero.nextUp': 'ต่อไป: {ep}',
|
'homeHero.nextUp': 'ต่อไป: {ep}',
|
||||||
'title.addTitle': "เพิ่มเรื่อง",
|
|
||||||
'title.searchPh': "ภาพยนตร์ ซีรีส์ อนิเมะ ดราม่า…",
|
|
||||||
'title.searchHint': "ค้นหาเรื่อง แล้วเปิดเพื่อให้คะแนน ทำเครื่องหมายว่าดูแล้ว หรือเพิ่มในรายการของคุณ",
|
|
||||||
'title.noResults': "ไม่พบผลลัพธ์",
|
'title.noResults': "ไม่พบผลลัพธ์",
|
||||||
'title.manual': "เพิ่มเอง",
|
'title.manual': "เพิ่มเอง",
|
||||||
'title.manualHint': "หาไม่เจอ? สร้างเองได้เลย",
|
'title.manualHint': "หาไม่เจอ? สร้างเองได้เลย",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "วันที่ รายการ การดูซ้ำ",
|
'title.trackingHint': "วันที่ รายการ การดูซ้ำ",
|
||||||
'title.rewatchCount_one': "ดูซ้ำ {count} ครั้ง",
|
'title.rewatchCount_one': "ดูซ้ำ {count} ครั้ง",
|
||||||
'title.rewatchCount_other': "ดูซ้ำ {count} ครั้ง",
|
'title.rewatchCount_other': "ดูซ้ำ {count} ครั้ง",
|
||||||
'title.rewatchedToday': "ดูซ้ำวันนี้",
|
|
||||||
'sync.syncing': "กำลังซิงค์…",
|
'sync.syncing': "กำลังซิงค์…",
|
||||||
'sync.offline': "ออฟไลน์",
|
'sync.offline': "ออฟไลน์",
|
||||||
'sync.error': "ซิงค์ไม่สำเร็จ",
|
'sync.error': "ซิงค์ไม่สำเร็จ",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ อีก {count} ชาเลนจ์",
|
'challenges.more_one': "+ อีก {count} ชาเลนจ์",
|
||||||
'challenges.more_other': "+ อีก {count} ชาเลนจ์",
|
'challenges.more_other': "+ อีก {count} ชาเลนจ์",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "การแจ้งเตือนบนอุปกรณ์นี้",
|
|
||||||
'push.deviceHint': "แม้ปิดแอปอยู่ ตัวเลือกด้านล่างก็มีผลด้วย",
|
|
||||||
'push.iosInstall': "บน iPhone และ iPad ให้เพิ่ม Kino ไปยังหน้าจอโฮมก่อน (iOS 16.4 ขึ้นไป) แล้วเปิดแอปจากไอคอนเพื่อเปิดการแจ้งเตือน",
|
|
||||||
'push.unsupported': "เบราว์เซอร์นี้ไม่รองรับการแจ้งเตือนแบบพุช",
|
|
||||||
'push.denied': "การแจ้งเตือนถูกบล็อกสำหรับเว็บไซต์นี้ อนุญาตในการตั้งค่าเบราว์เซอร์แล้วลองอีกครั้ง",
|
|
||||||
'push.notReady': "เซิร์ฟเวอร์ยังไม่พร้อมสำหรับการแจ้งเตือนแบบพุช",
|
|
||||||
'push.error': "เปิดการแจ้งเตือนไม่สำเร็จ ตรวจสอบการเชื่อมต่อแล้วลองอีกครั้ง",
|
|
||||||
'netPill.offlineSync': "ออฟไลน์ — การเปลี่ยนแปลงจะซิงค์ภายหลัง",
|
'netPill.offlineSync': "ออฟไลน์ — การเปลี่ยนแปลงจะซิงค์ภายหลัง",
|
||||||
'netPill.offlineLocal': "ออฟไลน์ — ทุกอย่างยังบันทึกอยู่ในอุปกรณ์นี้",
|
'netPill.offlineLocal': "ออฟไลน์ — ทุกอย่างยังบันทึกอยู่ในอุปกรณ์นี้",
|
||||||
'netPill.synced': "ซิงค์แล้ว",
|
'netPill.synced': "ซิงค์แล้ว",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "คุณแสดงความคิดเห็นเร็วเกินไป ลองใหม่ในอีกหนึ่งนาที",
|
'comments.err.rate': "คุณแสดงความคิดเห็นเร็วเกินไป ลองใหม่ในอีกหนึ่งนาที",
|
||||||
'comments.err.gone': "รีวิวนี้ไม่มีให้ดูแล้ว",
|
'comments.err.gone': "รีวิวนี้ไม่มีให้ดูแล้ว",
|
||||||
'comments.err.invalid': "ความคิดเห็นว่างหรือยาวเกินไป (สูงสุด 500 ตัวอักษร)",
|
'comments.err.invalid': "ความคิดเห็นว่างหรือยาวเกินไป (สูงสุด 500 ตัวอักษร)",
|
||||||
'notif.review_comment': "แสดงความคิดเห็นในรีวิวของคุณ",
|
|
||||||
'notif.shared_list_invite': "เชิญคุณเข้ารายการที่แชร์",
|
|
||||||
'settings.notifComments': "ความคิดเห็นในรีวิวของฉัน",
|
|
||||||
'settings.notifLists': "คำเชิญเข้ารายการที่แชร์",
|
|
||||||
'shared.title': "รายการที่แชร์",
|
'shared.title': "รายการที่แชร์",
|
||||||
'shared.hint': "รายการที่ทำร่วมกัน: สมาชิกทุกคนเพิ่มหรือนำเรื่องออกได้",
|
'shared.hint': "รายการที่ทำร่วมกัน: สมาชิกทุกคนเพิ่มหรือนำเรื่องออกได้",
|
||||||
'shared.new': "รายการที่แชร์ใหม่",
|
'shared.new': "รายการที่แชร์ใหม่",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "ไม่มีใครให้เชิญ: เฉพาะผู้ติดตามและคนที่คุณติดตามเท่านั้นที่เข้าร่วมได้",
|
'shared.noPeople': "ไม่มีใครให้เชิญ: เฉพาะผู้ติดตามและคนที่คุณติดตามเท่านั้นที่เข้าร่วมได้",
|
||||||
'shared.inviteShort': "เชิญ",
|
'shared.inviteShort': "เชิญ",
|
||||||
'shared.invited': "เชิญแล้ว",
|
'shared.invited': "เชิญแล้ว",
|
||||||
'shared.expired': "คำเชิญหมดอายุ",
|
|
||||||
'shared.addTo': "เพิ่มในรายการที่แชร์",
|
'shared.addTo': "เพิ่มในรายการที่แชร์",
|
||||||
'shared.unavailable': "รายการที่แชร์ยังใช้งานไม่ได้ในขณะนี้",
|
'shared.unavailable': "รายการที่แชร์ยังใช้งานไม่ได้ในขณะนี้",
|
||||||
'shared.err.rate': "ทำรายการติดกันมากเกินไป ลองใหม่ในอีกหนึ่งนาที",
|
'shared.err.rate': "ทำรายการติดกันมากเกินไป ลองใหม่ในอีกหนึ่งนาที",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '5 üzerinden ★',
|
'settings.scale5': '5 üzerinden ★',
|
||||||
'settings.scale10': '10 üzerinden',
|
'settings.scale10': '10 üzerinden',
|
||||||
'settings.ratingHint': '5 üzerinden yarım yıldız ya da 10 üzerinden 0,5 adım. Mevcut puanlar otomatik dönüştürülür.',
|
'settings.ratingHint': '5 üzerinden yarım yıldız ya da 10 üzerinden 0,5 adım. Mevcut puanlar otomatik dönüştürülür.',
|
||||||
'settings.theme': 'Tema',
|
|
||||||
'settings.appearance': 'Görünüm',
|
'settings.appearance': 'Görünüm',
|
||||||
'settings.appearanceHint': '“Otomatik” tarayıcını izler (açık veya koyu).',
|
'settings.appearanceHint': '“Otomatik” tarayıcını izler (açık veya koyu).',
|
||||||
'theme.modeAuto': 'Otomatik',
|
'theme.modeAuto': 'Otomatik',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'Uygulamayı yükle',
|
'settings.installApp': 'Uygulamayı yükle',
|
||||||
'settings.installHint': 'Kino’yu ana ekranına veya masaüstüne ekle.',
|
'settings.installHint': 'Kino’yu ana ekranına veya masaüstüne ekle.',
|
||||||
'settings.installed': 'Uygulama yüklendi',
|
'settings.installed': 'Uygulama yüklendi',
|
||||||
'settings.notifs': 'Bildirimler',
|
|
||||||
'settings.notifsHint': 'Zili neyin tetikleyeceğini seç.',
|
|
||||||
'settings.notifEpisodes': 'Yeni bölümler',
|
|
||||||
'settings.notifFollows': 'Yeni takipçiler',
|
|
||||||
'settings.notifAccepted': 'Kabul edilen istekler',
|
|
||||||
'settings.notifReactions': 'Yorumlarıma tepkiler',
|
|
||||||
'notif.new_episode': '{title} yeni bölüm',
|
|
||||||
'notif.new_season': '{title} yeni sezon',
|
|
||||||
'reviews.title': 'Yorumlar',
|
'reviews.title': 'Yorumlar',
|
||||||
'reviews.friends': 'Arkadaşların',
|
'reviews.friends': 'Arkadaşların',
|
||||||
'reviews.others': 'Diğer üyeler',
|
'reviews.others': 'Diğer üyeler',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Başka yorum yok',
|
'reviews.noneOthers': 'Başka yorum yok',
|
||||||
'reviews.none': 'Henüz yorum yok',
|
'reviews.none': 'Henüz yorum yok',
|
||||||
'reviews.seeAll': 'Tüm yorumları gör',
|
'reviews.seeAll': 'Tüm yorumları gör',
|
||||||
'reviews.react': 'Tepki ver',
|
|
||||||
'notif.title': 'Bildirimler',
|
|
||||||
'notif.empty': 'Bildirim yok',
|
|
||||||
'notif.someone': 'Biri',
|
'notif.someone': 'Biri',
|
||||||
'notif.follow_request': 'seni takip etmek istiyor',
|
|
||||||
'notif.follow_accepted': 'isteğini kabul etti',
|
|
||||||
'notif.new_follower': 'seni takip etmeye başladı',
|
|
||||||
'notif.reaction': 'yorumuna tepki verdi',
|
|
||||||
'notif.on': '{title} için',
|
|
||||||
'home.notifications': 'Bildirimler',
|
|
||||||
'home.notificationsN': '{count} bildirim',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Kino’yu yükle',
|
'install.title': 'Kino’yu yükle',
|
||||||
'install.ios': 'Kino’yu Safari’de aç.\nPaylaş düğmesine dokun (yukarı oklu kare).\n“Ana Ekrana Ekle” ve ardından “Ekle” seç.',
|
'install.ios': 'Kino’yu Safari’de aç.\nPaylaş düğmesine dokun (yukarı oklu kare).\n“Ana Ekrana Ekle” ve ardından “Ekle” seç.',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Çok fazla deneme, bir dakika sonra tekrar dene.',
|
'account.err.deleteRate': 'Çok fazla deneme, bir dakika sonra tekrar dene.',
|
||||||
'account.err.delete': 'Silme başarısız oldu. Daha sonra tekrar dene.',
|
'account.err.delete': 'Silme başarısız oldu. Daha sonra tekrar dene.',
|
||||||
'account.title': 'Hesabım',
|
'account.title': 'Hesabım',
|
||||||
'account.syncing': 'Senkronize ediliyor…',
|
|
||||||
'account.offline': 'Çevrimdışı — her şey bu cihazda saklanıyor',
|
|
||||||
'account.syncError': 'Şu an senkronize edilemiyor',
|
|
||||||
'account.synced': 'Senkronize edildi: {when}',
|
|
||||||
'account.passwordChanged': 'Şifre değiştirildi.',
|
'account.passwordChanged': 'Şifre değiştirildi.',
|
||||||
'account.imported_one': '{count} yapım hesabına eklendi.',
|
'account.imported_one': '{count} yapım hesabına eklendi.',
|
||||||
'account.imported_other': '{count} yapım hesabına eklendi.',
|
'account.imported_other': '{count} yapım hesabına eklendi.',
|
||||||
'account.importFailed': 'İçe aktarma başarısız oldu.',
|
'account.importFailed': 'İçe aktarma başarısız oldu.',
|
||||||
'account.pending_one': '{count} bekliyor',
|
|
||||||
'account.pending_other': '{count} bekliyor',
|
|
||||||
'account.syncNow': 'Şimdi senkronize et',
|
|
||||||
'account.newPasswordPh': 'Yeni şifre (en az {n} karakter)',
|
'account.newPasswordPh': 'Yeni şifre (en az {n} karakter)',
|
||||||
'account.changePassword': 'Şifreyi değiştir',
|
'account.changePassword': 'Şifreyi değiştir',
|
||||||
'account.logout': 'Çıkış yap',
|
'account.logout': 'Çıkış yap',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'Bu cihazda hesabından önce oluşturulmuş {titles} var. Hesabına eklensin mi?',
|
'account.deviceData': 'Bu cihazda hesabından önce oluşturulmuş {titles} var. Hesabına eklensin mi?',
|
||||||
'account.deviceDataWithLists': 'Bu cihazda hesabından önce oluşturulmuş {titles} ve {lists} var. Hesabına eklensin mi?',
|
'account.deviceDataWithLists': 'Bu cihazda hesabından önce oluşturulmuş {titles} ve {lists} var. Hesabına eklensin mi?',
|
||||||
|
|
||||||
'time.never': 'hiç',
|
|
||||||
'time.justNow': 'az önce',
|
'time.justNow': 'az önce',
|
||||||
'time.minutesAgo': '{n} dk önce',
|
'time.minutesAgo': '{n} dk önce',
|
||||||
'time.hoursAgo': '{n} sa önce',
|
'time.hoursAgo': '{n} sa önce',
|
||||||
'time.onDate': '{date}',
|
|
||||||
'time.today': 'bugün',
|
'time.today': 'bugün',
|
||||||
'time.tomorrow': 'yarın',
|
'time.tomorrow': 'yarın',
|
||||||
'time.daysAgo': '{n} g önce',
|
'time.daysAgo': '{n} g önce',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Eklendi',
|
'reco.addedShort': 'Eklendi',
|
||||||
|
|
||||||
'search.offline': 'İnternet bağlantısı yok: arama için ağ gerekli.',
|
'search.offline': 'İnternet bağlantısı yok: arama için ağ gerekli.',
|
||||||
'search.fillFrom': 'Veritabanından doldur',
|
|
||||||
'search.openSettings': 'Ayarlar’ı aç',
|
'search.openSettings': 'Ayarlar’ı aç',
|
||||||
'search.already': 'zaten eklendi',
|
|
||||||
'search.noResults': 'Sonuç yok. Kaydı aşağıdan elle doldurabilirsin.',
|
|
||||||
'search.privacy': 'Yalnızca aradığın başlık {source} servisine gönderilir. Kütüphanen telefonunda kalır.',
|
'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.sortRecent': 'Son düzenlenenler',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'İlk yapımını + butonuyla ekle.',
|
'catalog.nothingYetHint': 'İlk yapımını + butonuyla ekle.',
|
||||||
'catalog.clearFilters': 'Filtreleri temizle',
|
'catalog.clearFilters': 'Filtreleri temizle',
|
||||||
|
|
||||||
'public.agree': 'Seyirciyle tam aynı fikirde',
|
|
||||||
'public.more': 'Seyirciden +{gap} yüksek',
|
|
||||||
'public.less': 'Seyirciden −{gap} düşük',
|
|
||||||
'public.label': 'Seyirci',
|
|
||||||
'public.me': 'Ben',
|
|
||||||
'public.added_one': '{count} seyirci puanı eklendi.',
|
|
||||||
'public.added_other': '{count} seyirci puanı eklendi.',
|
|
||||||
'public.noneFound': 'Yeni puan bulunamadı.',
|
|
||||||
'public.fetch': 'Getir ({n})',
|
|
||||||
'public.title': 'Ben vs seyirci',
|
|
||||||
'public.hintFetch': 'Seyirciden nerede ayrıldığını görmek için puanladığın yapımların TMDB / AniList ortalama puanını getir.',
|
|
||||||
'public.hintNone': 'Bu dönemde puanladığın yapımlar için seyirci puanı yok.',
|
|
||||||
'public.hintKey': 'Kendini seyirciyle karşılaştırmak için TMDB anahtarını Ayarlar’a ekle (ya da animeleri AniList’e bağla).',
|
|
||||||
'public.avgGap': 'Ortalama fark',
|
|
||||||
'public.average': 'Tam ortalamada',
|
|
||||||
'public.generous': 'Seyirciden daha cömert',
|
|
||||||
'public.harsh': 'Seyirciden daha sert',
|
|
||||||
'public.agreeTitle': 'Hemfikir',
|
|
||||||
'public.within5_one': '½ yıldız farkla, {count} yapımda',
|
|
||||||
'public.within5_other': '½ yıldız farkla, {count} yapımda',
|
|
||||||
'public.within10_one': '1 puan farkla, {count} yapımda',
|
|
||||||
'public.within10_other': '1 puan farkla, {count} yapımda',
|
|
||||||
'public.lovedPre': 'Seyirciden ',
|
|
||||||
'public.lovedAccent': 'daha çok sevdiklerim',
|
|
||||||
'public.lovedPost': '',
|
|
||||||
'public.hatedPre': 'Seyirciden ',
|
|
||||||
'public.hatedAccent': 'daha az sevdiklerim',
|
|
||||||
'public.hatedPost': '',
|
|
||||||
'public.allAgree': 'Tüm yapımlarında seyirciyle aynı fikirdesin. Nadir görülür!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Tekrar mı izledin? Her tekrar izlemeyi kaydet, günlüğünde görünsün.',
|
'form.rewatchHint': 'Tekrar mı izledin? Her tekrar izlemeyi kaydet, günlüğünde görünsün.',
|
||||||
'form.editTitle': 'Kaydı ',
|
|
||||||
'form.editAccent': 'düzenle',
|
|
||||||
'form.newTitle': 'Yeni ',
|
|
||||||
'form.newAccent': 'yapım',
|
|
||||||
'form.filledFrom': 'Şuradan dolduruldu:',
|
|
||||||
'form.canEdit': 'her şeyi düzenleyebilirsin',
|
|
||||||
'form.fillFromDb': 'TMDB / AniList’ten tamamla',
|
|
||||||
'form.pickPoster': 'Afiş seç',
|
'form.pickPoster': 'Afiş seç',
|
||||||
'form.removeImage': 'Görseli kaldır',
|
'form.removeImage': 'Görseli kaldır',
|
||||||
'form.title': 'Başlık *',
|
'form.title': 'Başlık *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Tür',
|
'form.type': 'Tür',
|
||||||
'form.subtype': 'Alt tür',
|
'form.subtype': 'Alt tür',
|
||||||
'form.subtypePh': 'Belgesel, Reality şov…',
|
'form.subtypePh': 'Belgesel, Reality şov…',
|
||||||
'form.status': 'Durum',
|
|
||||||
'form.myRating': 'Puanım',
|
|
||||||
'form.favorite': 'Favori',
|
'form.favorite': 'Favori',
|
||||||
'form.criteria': 'Detaylı kriterler (isteğe bağlı)',
|
|
||||||
'form.episodes': 'Bölümler',
|
'form.episodes': 'Bölümler',
|
||||||
'form.minusEp': '-1 bölüm',
|
'form.minusEp': '-1 bölüm',
|
||||||
'form.plusEp': '+1 bölüm',
|
'form.plusEp': '+1 bölüm',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Tekrar izlemeler',
|
'form.rewatches': 'Tekrar izlemeler',
|
||||||
'form.review': 'Yorumum',
|
'form.review': 'Yorumum',
|
||||||
'form.reviewPh': 'Ne düşündüm, akılda kalan sahneler…',
|
'form.reviewPh': 'Ne düşündüm, akılda kalan sahneler…',
|
||||||
'form.saveChanges': 'Değişiklikleri kaydet',
|
|
||||||
'form.addToLibrary': 'Kütüphaneme ekle',
|
|
||||||
'form.shareImage': 'Görsel olarak paylaş',
|
'form.shareImage': 'Görsel olarak paylaş',
|
||||||
'form.delete': 'Bu yapımı sil',
|
'form.delete': 'Bu yapımı sil',
|
||||||
'form.deleteConfirm': '“{title}” kalıcı olarak silinecek.',
|
'form.deleteConfirm': '“{title}” kalıcı olarak silinecek.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '{count} izlendi',
|
'journal.seen_other': '{count} izlendi',
|
||||||
'journal.more': 'Önceki ayları göster',
|
'journal.more': 'Önceki ayları göster',
|
||||||
|
|
||||||
'stats.overview': 'Genel bakış',
|
|
||||||
'stats.habits': 'Alışkanlıklar',
|
|
||||||
'stats.tastes': 'Zevkler',
|
|
||||||
'stats.pageTitle': 'Benim ',
|
'stats.pageTitle': 'Benim ',
|
||||||
'stats.pageAccent': 'istatistiklerim',
|
'stats.pageAccent': 'istatistiklerim',
|
||||||
'stats.emptyTitle': 'Henüz istatistik yok',
|
'stats.emptyTitle': 'Henüz istatistik yok',
|
||||||
'stats.emptyText': 'Birkaç yapım ekledikten sonra burada görünecek.',
|
'stats.emptyText': 'Birkaç yapım ekledikten sonra burada görünecek.',
|
||||||
'stats.sinceStart': 'başından beri',
|
|
||||||
'stats.subtitle_one': 'Kütüphanemde {count} yapım',
|
'stats.subtitle_one': 'Kütüphanemde {count} yapım',
|
||||||
'stats.subtitle_other': 'Kütüphanemde {count} yapım',
|
'stats.subtitle_other': 'Kütüphanemde {count} yapım',
|
||||||
'stats.subtitleYear_one': '{year} yılında {count} yapım',
|
'stats.subtitleYear_one': '{year} yılında {count} yapım',
|
||||||
'stats.subtitleYear_other': '{year} yılında {count} yapım',
|
'stats.subtitleYear_other': '{year} yılında {count} yapım',
|
||||||
'stats.hours_one': 'saat',
|
|
||||||
'stats.hours_other': 'saat',
|
|
||||||
'stats.nonStopPre': 'yani aralıksız ',
|
'stats.nonStopPre': 'yani aralıksız ',
|
||||||
'stats.nonStopPost': '',
|
'stats.nonStopPost': '',
|
||||||
'stats.days_one': '{count} gün',
|
'stats.days_one': '{count} gün',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} bölüm',
|
'stats.episodesN_one': '{count} bölüm',
|
||||||
'stats.episodesN_other': '{count} bölüm',
|
'stats.episodesN_other': '{count} bölüm',
|
||||||
'stats.timeByType': 'Türe göre süre',
|
'stats.timeByType': 'Türe göre süre',
|
||||||
'stats.noTime': 'Bu dönemde henüz kaydedilmiş süre yok.',
|
|
||||||
'stats.avgRating': 'Ortalama puan',
|
'stats.avgRating': 'Ortalama puan',
|
||||||
'stats.rated_one': '{count} yapım puanlandı',
|
'stats.rated_one': '{count} yapım puanlandı',
|
||||||
'stats.rated_other': '{count} yapım puanlandı',
|
'stats.rated_other': '{count} yapım puanlandı',
|
||||||
'stats.inYear': '{year} yılında',
|
|
||||||
'stats.statuses': 'Durumlar',
|
'stats.statuses': 'Durumlar',
|
||||||
'stats.hoursTab': 'Saat',
|
|
||||||
'stats.monthByMonth': 'Ay ay · {year}',
|
'stats.monthByMonth': 'Ay ay · {year}',
|
||||||
'stats.last12': 'Son 12 ay',
|
'stats.last12': 'Son 12 ay',
|
||||||
'stats.monthFinished_one': '{count} yapım bitti',
|
'stats.monthFinished_one': '{count} yapım bitti',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Rekorlar',
|
'stats.records': 'Rekorlar',
|
||||||
'stats.marathon': 'En büyük maraton',
|
'stats.marathon': 'En büyük maraton',
|
||||||
'stats.longestFilm': 'En uzun film',
|
'stats.longestFilm': 'En uzun film',
|
||||||
'stats.noRecords': 'Bu dönemde henüz rekor yok.',
|
|
||||||
'stats.platforms': 'Platformlar',
|
'stats.platforms': 'Platformlar',
|
||||||
'stats.bestRated': 'En yüksek puanlarım',
|
'stats.bestRated': 'En yüksek puanlarım',
|
||||||
'stats.myRatings': 'Puanlarım',
|
'stats.myRatings': 'Puanlarım',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Favori türler',
|
'stats.favGenres': 'Favori türler',
|
||||||
'stats.noGenres': 'Henüz tür yok.',
|
'stats.noGenres': 'Henüz tür yok.',
|
||||||
'stats.countries': 'Ülkeler',
|
'stats.countries': 'Ülkeler',
|
||||||
'stats.noCountry_one': '{count} yapımın ülkesi yok: sayfasındaki “TMDB / AniList’ten tamamla” ile doldur.',
|
|
||||||
'stats.noCountry_other': '{count} yapımın ülkesi yok: sayfalarındaki “TMDB / AniList’ten tamamla” ile doldur.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} yapımın ülkesi yok: sayfasındaki “TMDB / AniList’ten tamamla” ile doldur ya da eski uygulamanın yedeğini yeniden içe aktar (“Birleştir”).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} yapımın ülkesi yok: sayfalarındaki “TMDB / AniList’ten tamamla” ile doldur ya da eski uygulamanın yedeğini yeniden içe aktar (“Birleştir”).',
|
|
||||||
'stats.byType': 'Türe göre',
|
|
||||||
'stats.footnote': 'Süre, izlenen bölümlerden ve girilen sürelerden tahmin edilir (yoksa: film 1 sa 50, anime bölümü 24 dk, dizi 45 dk, K-drama 1 sa, C-drama 45 dk). Bir yapım, bitirdiğim yıla sayılır.',
|
'stats.footnote': 'Süre, izlenen bölümlerden ve girilen sürelerden tahmin edilir (yoksa: film 1 sa 50, anime bölümü 24 dk, dizi 45 dk, K-drama 1 sa, C-drama 45 dk). Bir yapım, bitirdiğim yıla sayılır.',
|
||||||
'stats.ratedAs_one': '{rating} puan',
|
'stats.ratedAs_one': '{rating} puan',
|
||||||
'stats.ratedAs_other': '{rating} puan',
|
'stats.ratedAs_other': '{rating} puan',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "Sonra",
|
'welcome.later': "Sonra",
|
||||||
'social.watching': "İzliyor",
|
'social.watching': "İzliyor",
|
||||||
'social.watchlist': "İzlemek istiyor",
|
'social.watchlist': "İzlemek istiyor",
|
||||||
'search.allKinds': "Film, dizi ve animeler",
|
|
||||||
'search.animeOnly': "TMDB anahtarı olmadan yalnızca anime bulunabilir.",
|
'search.animeOnly': "TMDB anahtarı olmadan yalnızca anime bulunabilir.",
|
||||||
'search.alreadySeries': "zaten kütüphanende — aç",
|
|
||||||
'form.startShort': "Başlangıç",
|
'form.startShort': "Başlangıç",
|
||||||
'form.endShort': "Bitiş",
|
'form.endShort': "Bitiş",
|
||||||
'hero.allSeen': "Hepsi izlendi",
|
'hero.allSeen': "Hepsi izlendi",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Güncelsin',
|
'hero.upToDate': 'Güncelsin',
|
||||||
'hero.seenEp': "{ep} izlendi",
|
'hero.seenEp': "{ep} izlendi",
|
||||||
'hero.seen': "İzlendi",
|
'hero.seen': "İzlendi",
|
||||||
'hero.markSeen': "İzlendi olarak işaretle",
|
|
||||||
'hero.edit': "Bilgileri düzenle",
|
'hero.edit': "Bilgileri düzenle",
|
||||||
'hero.more': "Devamını oku",
|
'hero.more': "Devamını oku",
|
||||||
'hero.less': "Daha az göster",
|
'hero.less': "Daha az göster",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "Detaylar",
|
'homeHero.details': "Detaylar",
|
||||||
'homeHero.continueRow': "İzlemeye devam et",
|
'homeHero.continueRow': "İzlemeye devam et",
|
||||||
'homeHero.nextUp': "Sıradaki: {ep}",
|
'homeHero.nextUp': "Sıradaki: {ep}",
|
||||||
'title.addTitle': "Başlık ekle",
|
|
||||||
'title.searchPh': "Film, dizi, anime, drama…",
|
|
||||||
'title.searchHint': "Bir başlık ara, sonra puanlamak, izlendi olarak işaretlemek ya da listene eklemek için aç.",
|
|
||||||
'title.noResults': "Sonuç yok.",
|
'title.noResults': "Sonuç yok.",
|
||||||
'title.manual': "Elle ekle",
|
'title.manual': "Elle ekle",
|
||||||
'title.manualHint': "Bulamadın mı? Kendin oluştur.",
|
'title.manualHint': "Bulamadın mı? Kendin oluştur.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Tarihler, listeler, tekrar izlemeler",
|
'title.trackingHint': "Tarihler, listeler, tekrar izlemeler",
|
||||||
'title.rewatchCount_one': "{count} kez tekrar izlendi",
|
'title.rewatchCount_one': "{count} kez tekrar izlendi",
|
||||||
'title.rewatchCount_other': "{count} kez tekrar izlendi",
|
'title.rewatchCount_other': "{count} kez tekrar izlendi",
|
||||||
'title.rewatchedToday': "Bugün tekrar izlendi",
|
|
||||||
'sync.syncing': "Eşitleniyor…",
|
'sync.syncing': "Eşitleniyor…",
|
||||||
'sync.offline': "Çevrimdışı",
|
'sync.offline': "Çevrimdışı",
|
||||||
'sync.error': "Eşitleme başarısız",
|
'sync.error': "Eşitleme başarısız",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} hedef daha",
|
'challenges.more_one': "+ {count} hedef daha",
|
||||||
'challenges.more_other': "+ {count} hedef daha",
|
'challenges.more_other': "+ {count} hedef daha",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Bu cihazda bildirimler",
|
|
||||||
'push.deviceHint': "Uygulama kapalıyken bile. Aşağıdaki seçimler de geçerlidir.",
|
|
||||||
'push.iosInstall': "iPhone ve iPad’de önce Kino’yu Ana Ekran’a ekle (iOS 16.4 veya üstü), ardından bildirimleri açmak için uygulamayı simgesinden aç.",
|
|
||||||
'push.unsupported': "Bu tarayıcı anlık bildirimleri desteklemiyor.",
|
|
||||||
'push.denied': "Bu site için bildirimler engellendi. Tarayıcı ayarlarından izin ver ve tekrar dene.",
|
|
||||||
'push.notReady': "Anlık bildirimler sunucuda henüz kullanılamıyor.",
|
|
||||||
'push.error': "Bildirimler açılamadı. Bağlantını kontrol edip tekrar dene.",
|
|
||||||
'netPill.offlineSync': "Çevrimdışı — değişikliklerin eşitlenecek",
|
'netPill.offlineSync': "Çevrimdışı — değişikliklerin eşitlenecek",
|
||||||
'netPill.offlineLocal': "Çevrimdışı — her şey bu cihazda kayıtlı kalır",
|
'netPill.offlineLocal': "Çevrimdışı — her şey bu cihazda kayıtlı kalır",
|
||||||
'netPill.synced': "Eşitlendi",
|
'netPill.synced': "Eşitlendi",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Çok hızlı yorum yapıyorsun, bir dakika sonra tekrar dene.",
|
'comments.err.rate': "Çok hızlı yorum yapıyorsun, bir dakika sonra tekrar dene.",
|
||||||
'comments.err.gone': "Bu inceleme artık mevcut değil.",
|
'comments.err.gone': "Bu inceleme artık mevcut değil.",
|
||||||
'comments.err.invalid': "Yorum boş ya da çok uzun (en fazla 500 karakter).",
|
'comments.err.invalid': "Yorum boş ya da çok uzun (en fazla 500 karakter).",
|
||||||
'notif.review_comment': "incelemene yorum yaptı",
|
|
||||||
'notif.shared_list_invite': "seni ortak listeye davet etti",
|
|
||||||
'settings.notifComments': "İncelemelerime yapılan yorumlar",
|
|
||||||
'settings.notifLists': "Ortak liste davetleri",
|
|
||||||
'shared.title': "Ortak listeler",
|
'shared.title': "Ortak listeler",
|
||||||
'shared.hint': "Birlikte oluşturulan listeler: her üye başlık ekleyip çıkarabilir.",
|
'shared.hint': "Birlikte oluşturulan listeler: her üye başlık ekleyip çıkarabilir.",
|
||||||
'shared.new': "Yeni ortak liste",
|
'shared.new': "Yeni ortak liste",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Davet edilecek kimse yok: yalnızca takipçilerin ve takip ettiklerin katılabilir.",
|
'shared.noPeople': "Davet edilecek kimse yok: yalnızca takipçilerin ve takip ettiklerin katılabilir.",
|
||||||
'shared.inviteShort': "Davet et",
|
'shared.inviteShort': "Davet et",
|
||||||
'shared.invited': "Davet edildi",
|
'shared.invited': "Davet edildi",
|
||||||
'shared.expired': "davetin süresi doldu",
|
|
||||||
'shared.addTo': "Ortak listeye ekle",
|
'shared.addTo': "Ortak listeye ekle",
|
||||||
'shared.unavailable': "Ortak listeler şu anda kullanılamıyor.",
|
'shared.unavailable': "Ortak listeler şu anda kullanılamıyor.",
|
||||||
'shared.err.rate': "Art arda çok fazla işlem, bir dakika sonra tekrar dene.",
|
'shared.err.rate': "Art arda çok fazla işlem, bir dakika sonra tekrar dene.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ trên 5',
|
'settings.scale5': '★ trên 5',
|
||||||
'settings.scale10': 'Trên 10',
|
'settings.scale10': 'Trên 10',
|
||||||
'settings.ratingHint': 'Nửa sao trên thang 5, hoặc bước 0,5 trên thang 10. Điểm hiện có sẽ được tự động quy đổi.',
|
'settings.ratingHint': 'Nửa sao trên thang 5, hoặc bước 0,5 trên thang 10. Điểm hiện có sẽ được tự động quy đổi.',
|
||||||
'settings.theme': 'Giao diện',
|
|
||||||
'settings.appearance': 'Giao diện',
|
'settings.appearance': 'Giao diện',
|
||||||
'settings.appearanceHint': '“Tự động” theo trình duyệt của bạn (sáng hoặc tối).',
|
'settings.appearanceHint': '“Tự động” theo trình duyệt của bạn (sáng hoặc tối).',
|
||||||
'theme.modeAuto': 'Tự động',
|
'theme.modeAuto': 'Tự động',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': 'Cài đặt ứng dụng',
|
'settings.installApp': 'Cài đặt ứng dụng',
|
||||||
'settings.installHint': 'Thêm Kino vào màn hình chính hoặc màn hình nền của bạn.',
|
'settings.installHint': 'Thêm Kino vào màn hình chính hoặc màn hình nền của bạn.',
|
||||||
'settings.installed': 'Đã cài ứng dụng',
|
'settings.installed': 'Đã cài ứng dụng',
|
||||||
'settings.notifs': 'Thông báo',
|
|
||||||
'settings.notifsHint': 'Chọn điều kích hoạt chuông.',
|
|
||||||
'settings.notifEpisodes': 'Tập mới',
|
|
||||||
'settings.notifFollows': 'Người theo dõi mới',
|
|
||||||
'settings.notifAccepted': 'Yêu cầu đã chấp nhận',
|
|
||||||
'settings.notifReactions': 'Cảm xúc với đánh giá của tôi',
|
|
||||||
'notif.new_episode': 'Tập mới của {title}',
|
|
||||||
'notif.new_season': 'Mùa mới của {title}',
|
|
||||||
'reviews.title': 'Đánh giá',
|
'reviews.title': 'Đánh giá',
|
||||||
'reviews.friends': 'Bạn bè của bạn',
|
'reviews.friends': 'Bạn bè của bạn',
|
||||||
'reviews.others': 'Thành viên khác',
|
'reviews.others': 'Thành viên khác',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': 'Không có đánh giá khác',
|
'reviews.noneOthers': 'Không có đánh giá khác',
|
||||||
'reviews.none': 'Chưa có đánh giá',
|
'reviews.none': 'Chưa có đánh giá',
|
||||||
'reviews.seeAll': 'Xem tất cả đánh giá',
|
'reviews.seeAll': 'Xem tất cả đánh giá',
|
||||||
'reviews.react': 'Bày tỏ cảm xúc',
|
|
||||||
'notif.title': 'Thông báo',
|
|
||||||
'notif.empty': 'Không có thông báo',
|
|
||||||
'notif.someone': 'Ai đó',
|
'notif.someone': 'Ai đó',
|
||||||
'notif.follow_request': 'muốn theo dõi bạn',
|
|
||||||
'notif.follow_accepted': 'đã chấp nhận yêu cầu của bạn',
|
|
||||||
'notif.new_follower': 'đã theo dõi bạn',
|
|
||||||
'notif.reaction': 'đã bày tỏ cảm xúc với đánh giá của bạn',
|
|
||||||
'notif.on': 'về {title}',
|
|
||||||
'home.notifications': 'Thông báo',
|
|
||||||
'home.notificationsN': '{count} thông báo',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Cài đặt Kino',
|
'install.title': 'Cài đặt Kino',
|
||||||
'install.ios': 'Mở Kino trong Safari.\nChạm nút Chia sẻ (hình vuông có mũi tên lên).\nChọn “Thêm vào MH chính”, rồi “Thêm”.',
|
'install.ios': 'Mở Kino trong Safari.\nChạm nút Chia sẻ (hình vuông có mũi tên lên).\nChọn “Thêm vào MH chính”, rồi “Thêm”.',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': 'Quá nhiều lần thử, thử lại sau một phút nhé.',
|
'account.err.deleteRate': 'Quá nhiều lần thử, thử lại sau một phút nhé.',
|
||||||
'account.err.delete': 'Xóa thất bại. Hãy thử lại sau.',
|
'account.err.delete': 'Xóa thất bại. Hãy thử lại sau.',
|
||||||
'account.title': 'Tài khoản của tôi',
|
'account.title': 'Tài khoản của tôi',
|
||||||
'account.syncing': 'Đang đồng bộ…',
|
|
||||||
'account.offline': 'Ngoại tuyến — mọi thứ vẫn được lưu trên thiết bị này',
|
|
||||||
'account.syncError': 'Hiện không thể đồng bộ',
|
|
||||||
'account.synced': 'Đã đồng bộ {when}',
|
|
||||||
'account.passwordChanged': 'Đã đổi mật khẩu.',
|
'account.passwordChanged': 'Đã đổi mật khẩu.',
|
||||||
'account.imported_one': 'Đã thêm {count} phim vào tài khoản của bạn.',
|
'account.imported_one': 'Đã thêm {count} phim vào tài khoản của bạn.',
|
||||||
'account.imported_other': 'Đã thêm {count} phim vào tài khoản của bạn.',
|
'account.imported_other': 'Đã thêm {count} phim vào tài khoản của bạn.',
|
||||||
'account.importFailed': 'Nhập dữ liệu thất bại.',
|
'account.importFailed': 'Nhập dữ liệu thất bại.',
|
||||||
'account.pending_one': '{count} đang chờ',
|
|
||||||
'account.pending_other': '{count} đang chờ',
|
|
||||||
'account.syncNow': 'Đồng bộ ngay',
|
|
||||||
'account.newPasswordPh': 'Mật khẩu mới (tối thiểu {n} ký tự)',
|
'account.newPasswordPh': 'Mật khẩu mới (tối thiểu {n} ký tự)',
|
||||||
'account.changePassword': 'Đổi mật khẩu',
|
'account.changePassword': 'Đổi mật khẩu',
|
||||||
'account.logout': 'Đăng xuất',
|
'account.logout': 'Đăng xuất',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': 'Thiết bị này có {titles} được tạo trước khi bạn có tài khoản. Thêm chúng vào tài khoản của bạn?',
|
'account.deviceData': 'Thiết bị này có {titles} được tạo trước khi bạn có tài khoản. Thêm chúng vào tài khoản của bạn?',
|
||||||
'account.deviceDataWithLists': 'Thiết bị này có {titles} và {lists} được tạo trước khi bạn có tài khoản. Thêm chúng vào tài khoản của bạn?',
|
'account.deviceDataWithLists': 'Thiết bị này có {titles} và {lists} được tạo trước khi bạn có tài khoản. Thêm chúng vào tài khoản của bạn?',
|
||||||
|
|
||||||
'time.never': 'chưa bao giờ',
|
|
||||||
'time.justNow': 'vừa xong',
|
'time.justNow': 'vừa xong',
|
||||||
'time.minutesAgo': '{n} phút trước',
|
'time.minutesAgo': '{n} phút trước',
|
||||||
'time.hoursAgo': '{n} giờ trước',
|
'time.hoursAgo': '{n} giờ trước',
|
||||||
'time.onDate': 'ngày {date}',
|
|
||||||
'time.today': 'hôm nay',
|
'time.today': 'hôm nay',
|
||||||
'time.tomorrow': 'ngày mai',
|
'time.tomorrow': 'ngày mai',
|
||||||
'time.daysAgo': '{n} ngày trước',
|
'time.daysAgo': '{n} ngày trước',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': 'Đã thêm',
|
'reco.addedShort': 'Đã thêm',
|
||||||
|
|
||||||
'search.offline': 'Không có kết nối internet: tìm kiếm cần có mạng.',
|
'search.offline': 'Không có kết nối internet: tìm kiếm cần có mạng.',
|
||||||
'search.fillFrom': 'Điền từ cơ sở dữ liệu',
|
|
||||||
'search.openSettings': 'Mở Cài đặt',
|
'search.openSettings': 'Mở Cài đặt',
|
||||||
'search.already': 'đã thêm',
|
|
||||||
'search.noResults': 'Không có kết quả. Bạn có thể tự điền thông tin bên dưới.',
|
|
||||||
'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.',
|
'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.sortRecent': 'Sửa gần đây',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': 'Thêm phim đầu tiên bằng nút +.',
|
'catalog.nothingYetHint': 'Thêm phim đầu tiên bằng nút +.',
|
||||||
'catalog.clearFilters': 'Xóa bộ lọc',
|
'catalog.clearFilters': 'Xóa bộ lọc',
|
||||||
|
|
||||||
'public.agree': 'Khớp với khán giả',
|
|
||||||
'public.more': 'Cao hơn khán giả +{gap}',
|
|
||||||
'public.less': 'Thấp hơn khán giả −{gap}',
|
|
||||||
'public.label': 'Khán giả',
|
|
||||||
'public.me': 'Tôi',
|
|
||||||
'public.added_one': 'Đã thêm {count} điểm khán giả.',
|
|
||||||
'public.added_other': 'Đã thêm {count} điểm khán giả.',
|
|
||||||
'public.noneFound': 'Không tìm thấy điểm mới nào.',
|
|
||||||
'public.fetch': 'Lấy điểm ({n})',
|
|
||||||
'public.title': 'Tôi vs khán giả',
|
|
||||||
'public.hintFetch': 'Lấy điểm trung bình TMDB / AniList cho các phim bạn đã chấm để xem bạn khác khán giả ở đâu.',
|
|
||||||
'public.hintNone': 'Không có điểm khán giả cho các phim bạn đã chấm trong giai đoạn này.',
|
|
||||||
'public.hintKey': 'Thêm khóa TMDB trong Cài đặt (hoặc liên kết anime với AniList) để so sánh với khán giả.',
|
|
||||||
'public.avgGap': 'Chênh lệch trung bình',
|
|
||||||
'public.average': 'Đúng mức trung bình',
|
|
||||||
'public.generous': 'Dễ tính hơn khán giả',
|
|
||||||
'public.harsh': 'Khắt khe hơn khán giả',
|
|
||||||
'public.agreeTitle': 'Đồng quan điểm',
|
|
||||||
'public.within5_one': 'lệch không quá ½ sao, trên {count} phim',
|
|
||||||
'public.within5_other': 'lệch không quá ½ sao, trên {count} phim',
|
|
||||||
'public.within10_one': 'lệch không quá 1 điểm, trên {count} phim',
|
|
||||||
'public.within10_other': 'lệch không quá 1 điểm, trên {count} phim',
|
|
||||||
'public.lovedPre': 'Tôi ',
|
|
||||||
'public.lovedAccent': 'thích hơn',
|
|
||||||
'public.lovedPost': ' khán giả',
|
|
||||||
'public.hatedPre': 'Tôi ',
|
|
||||||
'public.hatedAccent': 'kém thích hơn',
|
|
||||||
'public.hatedPost': ' khán giả',
|
|
||||||
'public.allAgree': 'Bạn đồng quan điểm với khán giả ở mọi phim. Hiếm đấy!',
|
|
||||||
|
|
||||||
'form.rewatchHint': 'Bạn đã xem lại? Ghi lại mỗi lần xem lại, nó sẽ hiện trong nhật ký của bạn.',
|
'form.rewatchHint': 'Bạn đã xem lại? Ghi lại mỗi lần xem lại, nó sẽ hiện trong nhật ký của bạn.',
|
||||||
'form.editTitle': 'Sửa ',
|
|
||||||
'form.editAccent': 'thông tin',
|
|
||||||
'form.newTitle': 'Phim ',
|
|
||||||
'form.newAccent': 'mới',
|
|
||||||
'form.filledFrom': 'Điền từ',
|
|
||||||
'form.canEdit': 'bạn có thể sửa mọi thứ',
|
|
||||||
'form.fillFromDb': 'Bổ sung từ TMDB / AniList',
|
|
||||||
'form.pickPoster': 'Chọn poster',
|
'form.pickPoster': 'Chọn poster',
|
||||||
'form.removeImage': 'Gỡ ảnh',
|
'form.removeImage': 'Gỡ ảnh',
|
||||||
'form.title': 'Tên phim *',
|
'form.title': 'Tên phim *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': 'Loại',
|
'form.type': 'Loại',
|
||||||
'form.subtype': 'Chi tiết',
|
'form.subtype': 'Chi tiết',
|
||||||
'form.subtypePh': 'Phim tài liệu, Truyền hình thực tế…',
|
'form.subtypePh': 'Phim tài liệu, Truyền hình thực tế…',
|
||||||
'form.status': 'Trạng thái',
|
|
||||||
'form.myRating': 'Điểm của tôi',
|
|
||||||
'form.favorite': 'Yêu thích',
|
'form.favorite': 'Yêu thích',
|
||||||
'form.criteria': 'Tiêu chí chi tiết (tùy chọn)',
|
|
||||||
'form.episodes': 'Tập',
|
'form.episodes': 'Tập',
|
||||||
'form.minusEp': '-1 tập',
|
'form.minusEp': '-1 tập',
|
||||||
'form.plusEp': '+1 tập',
|
'form.plusEp': '+1 tập',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': 'Lần xem lại',
|
'form.rewatches': 'Lần xem lại',
|
||||||
'form.review': 'Nhận xét của tôi',
|
'form.review': 'Nhận xét của tôi',
|
||||||
'form.reviewPh': 'Cảm nhận của tôi, những cảnh đáng nhớ…',
|
'form.reviewPh': 'Cảm nhận của tôi, những cảnh đáng nhớ…',
|
||||||
'form.saveChanges': 'Lưu thay đổi',
|
|
||||||
'form.addToLibrary': 'Thêm vào thư viện',
|
|
||||||
'form.shareImage': 'Chia sẻ dưới dạng ảnh',
|
'form.shareImage': 'Chia sẻ dưới dạng ảnh',
|
||||||
'form.delete': 'Xóa phim này',
|
'form.delete': 'Xóa phim này',
|
||||||
'form.deleteConfirm': '“{title}” sẽ bị xóa vĩnh viễn.',
|
'form.deleteConfirm': '“{title}” sẽ bị xóa vĩnh viễn.',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': 'Đã xem {count}',
|
'journal.seen_other': 'Đã xem {count}',
|
||||||
'journal.more': 'Hiện các tháng trước',
|
'journal.more': 'Hiện các tháng trước',
|
||||||
|
|
||||||
'stats.overview': 'Tổng quan',
|
|
||||||
'stats.habits': 'Thói quen',
|
|
||||||
'stats.tastes': 'Sở thích',
|
|
||||||
'stats.pageTitle': 'Thống kê ',
|
'stats.pageTitle': 'Thống kê ',
|
||||||
'stats.pageAccent': 'của tôi',
|
'stats.pageAccent': 'của tôi',
|
||||||
'stats.emptyTitle': 'Chưa có thống kê',
|
'stats.emptyTitle': 'Chưa có thống kê',
|
||||||
'stats.emptyText': 'Thống kê sẽ hiện khi bạn đã thêm phim.',
|
'stats.emptyText': 'Thống kê sẽ hiện khi bạn đã thêm phim.',
|
||||||
'stats.sinceStart': 'từ trước đến nay',
|
|
||||||
'stats.subtitle_one': '{count} phim trong thư viện của tôi',
|
'stats.subtitle_one': '{count} phim trong thư viện của tôi',
|
||||||
'stats.subtitle_other': '{count} phim trong thư viện của tôi',
|
'stats.subtitle_other': '{count} phim trong thư viện của tôi',
|
||||||
'stats.subtitleYear_one': '{count} phim trong năm {year}',
|
'stats.subtitleYear_one': '{count} phim trong năm {year}',
|
||||||
'stats.subtitleYear_other': '{count} phim trong năm {year}',
|
'stats.subtitleYear_other': '{count} phim trong năm {year}',
|
||||||
'stats.hours_one': 'giờ',
|
|
||||||
'stats.hours_other': 'giờ',
|
|
||||||
'stats.nonStopPre': 'tức là ',
|
'stats.nonStopPre': 'tức là ',
|
||||||
'stats.nonStopPost': ' liên tục',
|
'stats.nonStopPost': ' liên tục',
|
||||||
'stats.days_one': '{count} ngày',
|
'stats.days_one': '{count} ngày',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count} tập',
|
'stats.episodesN_one': '{count} tập',
|
||||||
'stats.episodesN_other': '{count} tập',
|
'stats.episodesN_other': '{count} tập',
|
||||||
'stats.timeByType': 'Thời gian theo loại',
|
'stats.timeByType': 'Thời gian theo loại',
|
||||||
'stats.noTime': 'Chưa có thời gian xem nào trong giai đoạn này.',
|
|
||||||
'stats.avgRating': 'Điểm trung bình',
|
'stats.avgRating': 'Điểm trung bình',
|
||||||
'stats.rated_one': '{count} phim đã chấm',
|
'stats.rated_one': '{count} phim đã chấm',
|
||||||
'stats.rated_other': '{count} phim đã chấm',
|
'stats.rated_other': '{count} phim đã chấm',
|
||||||
'stats.inYear': 'năm {year}',
|
|
||||||
'stats.statuses': 'Trạng thái',
|
'stats.statuses': 'Trạng thái',
|
||||||
'stats.hoursTab': 'Giờ',
|
|
||||||
'stats.monthByMonth': 'Theo tháng · {year}',
|
'stats.monthByMonth': 'Theo tháng · {year}',
|
||||||
'stats.last12': '12 tháng qua',
|
'stats.last12': '12 tháng qua',
|
||||||
'stats.monthFinished_one': '{count} phim đã xem xong',
|
'stats.monthFinished_one': '{count} phim đã xem xong',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': 'Kỷ lục',
|
'stats.records': 'Kỷ lục',
|
||||||
'stats.marathon': 'Cày phim nhiều nhất',
|
'stats.marathon': 'Cày phim nhiều nhất',
|
||||||
'stats.longestFilm': 'Phim dài nhất',
|
'stats.longestFilm': 'Phim dài nhất',
|
||||||
'stats.noRecords': 'Chưa có kỷ lục nào trong giai đoạn này.',
|
|
||||||
'stats.platforms': 'Nền tảng',
|
'stats.platforms': 'Nền tảng',
|
||||||
'stats.bestRated': 'Điểm cao nhất của tôi',
|
'stats.bestRated': 'Điểm cao nhất của tôi',
|
||||||
'stats.myRatings': 'Điểm của tôi',
|
'stats.myRatings': 'Điểm của tôi',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': 'Thể loại yêu thích',
|
'stats.favGenres': 'Thể loại yêu thích',
|
||||||
'stats.noGenres': 'Chưa có thể loại nào.',
|
'stats.noGenres': 'Chưa có thể loại nào.',
|
||||||
'stats.countries': 'Quốc gia',
|
'stats.countries': 'Quốc gia',
|
||||||
'stats.noCountry_one': '{count} phim chưa có quốc gia: hãy bổ sung bằng “Bổ sung từ TMDB / AniList” trong trang chi tiết.',
|
|
||||||
'stats.noCountry_other': '{count} phim chưa có quốc gia: hãy bổ sung bằng “Bổ sung từ TMDB / AniList” trong trang chi tiết.',
|
|
||||||
'stats.noCountryLegacy_one': '{count} phim chưa có quốc gia: hãy bổ sung bằng “Bổ sung từ TMDB / AniList” trong trang chi tiết, hoặc nhập lại bản sao lưu từ ứng dụng cũ (“Gộp”).',
|
|
||||||
'stats.noCountryLegacy_other': '{count} phim chưa có quốc gia: hãy bổ sung bằng “Bổ sung từ TMDB / AniList” trong trang chi tiết, hoặc nhập lại bản sao lưu từ ứng dụng cũ (“Gộp”).',
|
|
||||||
'stats.byType': 'Theo loại',
|
|
||||||
'stats.footnote': 'Thời gian ước tính từ số tập đã xem và thời lượng đã nhập (nếu không có: phim lẻ 1 giờ 50, tập anime 24 phút, phim bộ 45 phút, K-drama 1 giờ, C-drama 45 phút). Mỗi phim được tính vào năm tôi xem xong.',
|
'stats.footnote': 'Thời gian ước tính từ số tập đã xem và thời lượng đã nhập (nếu không có: phim lẻ 1 giờ 50, tập anime 24 phút, phim bộ 45 phút, K-drama 1 giờ, C-drama 45 phút). Mỗi phim được tính vào năm tôi xem xong.',
|
||||||
'stats.ratedAs_one': 'được chấm {rating}',
|
'stats.ratedAs_one': 'được chấm {rating}',
|
||||||
'stats.ratedAs_other': 'được chấm {rating}',
|
'stats.ratedAs_other': 'được chấm {rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': 'Để sau',
|
'welcome.later': 'Để sau',
|
||||||
'social.watching': 'Đang xem',
|
'social.watching': 'Đang xem',
|
||||||
'social.watchlist': 'Muốn xem',
|
'social.watchlist': 'Muốn xem',
|
||||||
'search.allKinds': 'Phim lẻ, phim bộ và anime',
|
|
||||||
'search.animeOnly': 'Không có khóa TMDB thì chỉ tìm được anime.',
|
'search.animeOnly': 'Không có khóa TMDB thì chỉ tìm được anime.',
|
||||||
'search.alreadySeries': 'đã có trong thư viện — mở',
|
|
||||||
'form.startShort': 'Bắt đầu',
|
'form.startShort': 'Bắt đầu',
|
||||||
'form.endShort': 'Xem xong',
|
'form.endShort': 'Xem xong',
|
||||||
'hero.allSeen': 'Đã xem hết',
|
'hero.allSeen': 'Đã xem hết',
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': 'Đã xem kịp',
|
'hero.upToDate': 'Đã xem kịp',
|
||||||
'hero.seenEp': 'Đã xem {ep}',
|
'hero.seenEp': 'Đã xem {ep}',
|
||||||
'hero.seen': 'Đã xem',
|
'hero.seen': 'Đã xem',
|
||||||
'hero.markSeen': 'Đánh dấu đã xem',
|
|
||||||
'hero.edit': 'Sửa thông tin',
|
'hero.edit': 'Sửa thông tin',
|
||||||
'hero.more': 'Xem thêm',
|
'hero.more': 'Xem thêm',
|
||||||
'hero.less': 'Thu gọn',
|
'hero.less': 'Thu gọn',
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': 'Chi tiết',
|
'homeHero.details': 'Chi tiết',
|
||||||
'homeHero.continueRow': 'Xem tiếp',
|
'homeHero.continueRow': 'Xem tiếp',
|
||||||
'homeHero.nextUp': 'Tiếp theo: {ep}',
|
'homeHero.nextUp': 'Tiếp theo: {ep}',
|
||||||
'title.addTitle': "Thêm phim",
|
|
||||||
'title.searchPh': "Phim lẻ, phim bộ, anime, drama…",
|
|
||||||
'title.searchHint': "Tìm một tựa phim rồi mở ra để chấm điểm, đánh dấu đã xem hoặc thêm vào danh sách của bạn.",
|
|
||||||
'title.noResults': "Không có kết quả.",
|
'title.noResults': "Không có kết quả.",
|
||||||
'title.manual': "Thêm thủ công",
|
'title.manual': "Thêm thủ công",
|
||||||
'title.manualHint': "Không tìm thấy? Tự tạo thẻ phim.",
|
'title.manualHint': "Không tìm thấy? Tự tạo thẻ phim.",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "Ngày, danh sách, xem lại",
|
'title.trackingHint': "Ngày, danh sách, xem lại",
|
||||||
'title.rewatchCount_one': "Đã xem lại {count} lần",
|
'title.rewatchCount_one': "Đã xem lại {count} lần",
|
||||||
'title.rewatchCount_other': "Đã xem lại {count} lần",
|
'title.rewatchCount_other': "Đã xem lại {count} lần",
|
||||||
'title.rewatchedToday': "Đã xem lại hôm nay",
|
|
||||||
'sync.syncing': "Đang đồng bộ…",
|
'sync.syncing': "Đang đồng bộ…",
|
||||||
'sync.offline': "Ngoại tuyến",
|
'sync.offline': "Ngoại tuyến",
|
||||||
'sync.error': "Đồng bộ thất bại",
|
'sync.error': "Đồng bộ thất bại",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ {count} thử thách khác",
|
'challenges.more_one': "+ {count} thử thách khác",
|
||||||
'challenges.more_other': "+ {count} thử thách khác",
|
'challenges.more_other': "+ {count} thử thách khác",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "Thông báo trên thiết bị này",
|
|
||||||
'push.deviceHint': "Ngay cả khi ứng dụng đã đóng. Các lựa chọn bên dưới cũng được áp dụng.",
|
|
||||||
'push.iosInstall': "Trên iPhone và iPad, trước tiên hãy thêm Kino vào Màn hình chính (iOS 16.4 trở lên), sau đó mở ứng dụng từ biểu tượng để bật thông báo.",
|
|
||||||
'push.unsupported': "Trình duyệt này không hỗ trợ thông báo đẩy.",
|
|
||||||
'push.denied': "Thông báo đã bị chặn cho trang này. Hãy cho phép trong cài đặt trình duyệt rồi thử lại.",
|
|
||||||
'push.notReady': "Máy chủ chưa hỗ trợ thông báo đẩy.",
|
|
||||||
'push.error': "Không thể bật thông báo. Kiểm tra kết nối rồi thử lại.",
|
|
||||||
'netPill.offlineSync': "Ngoại tuyến — thay đổi của bạn sẽ được đồng bộ",
|
'netPill.offlineSync': "Ngoại tuyến — thay đổi của bạn sẽ được đồng bộ",
|
||||||
'netPill.offlineLocal': "Ngoại tuyến — mọi thứ vẫn được lưu trên thiết bị này",
|
'netPill.offlineLocal': "Ngoại tuyến — mọi thứ vẫn được lưu trên thiết bị này",
|
||||||
'netPill.synced': "Đã đồng bộ",
|
'netPill.synced': "Đã đồng bộ",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "Bạn bình luận quá nhanh — hãy thử lại sau một phút.",
|
'comments.err.rate': "Bạn bình luận quá nhanh — hãy thử lại sau một phút.",
|
||||||
'comments.err.gone': "Bài đánh giá này không còn nữa.",
|
'comments.err.gone': "Bài đánh giá này không còn nữa.",
|
||||||
'comments.err.invalid': "Bình luận trống hoặc quá dài (tối đa 500 ký tự).",
|
'comments.err.invalid': "Bình luận trống hoặc quá dài (tối đa 500 ký tự).",
|
||||||
'notif.review_comment': "đã bình luận bài đánh giá của bạn",
|
|
||||||
'notif.shared_list_invite': "đã mời bạn vào danh sách chung",
|
|
||||||
'settings.notifComments': "Bình luận về đánh giá của tôi",
|
|
||||||
'settings.notifLists': "Lời mời vào danh sách chung",
|
|
||||||
'shared.title': "Danh sách chung",
|
'shared.title': "Danh sách chung",
|
||||||
'shared.hint': "Danh sách làm cùng nhau: mọi thành viên đều có thể thêm hoặc bớt phim.",
|
'shared.hint': "Danh sách làm cùng nhau: mọi thành viên đều có thể thêm hoặc bớt phim.",
|
||||||
'shared.new': "Danh sách chung mới",
|
'shared.new': "Danh sách chung mới",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "Không có ai để mời: chỉ người theo dõi bạn và người bạn theo dõi mới tham gia được.",
|
'shared.noPeople': "Không có ai để mời: chỉ người theo dõi bạn và người bạn theo dõi mới tham gia được.",
|
||||||
'shared.inviteShort': "Mời",
|
'shared.inviteShort': "Mời",
|
||||||
'shared.invited': "Đã mời",
|
'shared.invited': "Đã mời",
|
||||||
'shared.expired': "lời mời đã hết hạn",
|
|
||||||
'shared.addTo': "Thêm vào danh sách chung",
|
'shared.addTo': "Thêm vào danh sách chung",
|
||||||
'shared.unavailable': "Danh sách chung hiện chưa khả dụng.",
|
'shared.unavailable': "Danh sách chung hiện chưa khả dụng.",
|
||||||
'shared.err.rate': "Quá nhiều thao tác liên tiếp — hãy thử lại sau một phút.",
|
'shared.err.rate': "Quá nhiều thao tác liên tiếp — hãy thử lại sau một phút.",
|
||||||
|
|||||||
@@ -227,7 +227,6 @@ const dict: Translations = {
|
|||||||
'settings.scale5': '★ 5分制',
|
'settings.scale5': '★ 5分制',
|
||||||
'settings.scale10': '10分制',
|
'settings.scale10': '10分制',
|
||||||
'settings.ratingHint': '5分制可打半星,10分制以0.5分为单位。已有评分会自动换算。',
|
'settings.ratingHint': '5分制可打半星,10分制以0.5分为单位。已有评分会自动换算。',
|
||||||
'settings.theme': '主题',
|
|
||||||
'settings.appearance': '外观',
|
'settings.appearance': '外观',
|
||||||
'settings.appearanceHint': '“自动”跟随你的浏览器(浅色或深色)。',
|
'settings.appearanceHint': '“自动”跟随你的浏览器(浅色或深色)。',
|
||||||
'theme.modeAuto': '自动',
|
'theme.modeAuto': '自动',
|
||||||
@@ -239,14 +238,6 @@ const dict: Translations = {
|
|||||||
'settings.installApp': '安装应用',
|
'settings.installApp': '安装应用',
|
||||||
'settings.installHint': '将 Kino 添加到主屏幕或桌面。',
|
'settings.installHint': '将 Kino 添加到主屏幕或桌面。',
|
||||||
'settings.installed': '应用已安装',
|
'settings.installed': '应用已安装',
|
||||||
'settings.notifs': '通知',
|
|
||||||
'settings.notifsHint': '选择触发铃铛的内容。',
|
|
||||||
'settings.notifEpisodes': '新剧集',
|
|
||||||
'settings.notifFollows': '新粉丝',
|
|
||||||
'settings.notifAccepted': '已接受的请求',
|
|
||||||
'settings.notifReactions': '对我评价的回应',
|
|
||||||
'notif.new_episode': '《{title}》有新一集',
|
|
||||||
'notif.new_season': '《{title}》有新一季',
|
|
||||||
'reviews.title': '评价',
|
'reviews.title': '评价',
|
||||||
'reviews.friends': '你的好友',
|
'reviews.friends': '你的好友',
|
||||||
'reviews.others': '其他用户',
|
'reviews.others': '其他用户',
|
||||||
@@ -254,17 +245,7 @@ const dict: Translations = {
|
|||||||
'reviews.noneOthers': '暂无其他评价',
|
'reviews.noneOthers': '暂无其他评价',
|
||||||
'reviews.none': '还没有评价',
|
'reviews.none': '还没有评价',
|
||||||
'reviews.seeAll': '查看全部评价',
|
'reviews.seeAll': '查看全部评价',
|
||||||
'reviews.react': '回应',
|
|
||||||
'notif.title': '通知',
|
|
||||||
'notif.empty': '暂无通知',
|
|
||||||
'notif.someone': '有人',
|
'notif.someone': '有人',
|
||||||
'notif.follow_request': '想关注你',
|
|
||||||
'notif.follow_accepted': '接受了你的请求',
|
|
||||||
'notif.new_follower': '开始关注你',
|
|
||||||
'notif.reaction': '回应了你的评价',
|
|
||||||
'notif.on': '关于《{title}》',
|
|
||||||
'home.notifications': '通知',
|
|
||||||
'home.notificationsN': '{count} 条通知',
|
|
||||||
'settings.admin': 'Administration',
|
'settings.admin': 'Administration',
|
||||||
'admin.title': 'Administration',
|
'admin.title': 'Administration',
|
||||||
'admin.tabOverview': 'Overview',
|
'admin.tabOverview': 'Overview',
|
||||||
@@ -288,8 +269,6 @@ const dict: Translations = {
|
|||||||
'admin.signupsChart': 'Signups — last 14 days',
|
'admin.signupsChart': 'Signups — last 14 days',
|
||||||
'admin.searchUsers': 'Search an account…',
|
'admin.searchUsers': 'Search an account…',
|
||||||
'admin.joined': 'Joined {date}',
|
'admin.joined': 'Joined {date}',
|
||||||
'admin.lastSeen': 'Seen {ago}',
|
|
||||||
'admin.never': 'never',
|
|
||||||
'admin.suspend': 'Suspend',
|
'admin.suspend': 'Suspend',
|
||||||
'admin.unsuspend': 'Reactivate',
|
'admin.unsuspend': 'Reactivate',
|
||||||
'admin.suspendedBadge': 'Suspended',
|
'admin.suspendedBadge': 'Suspended',
|
||||||
@@ -299,7 +278,6 @@ const dict: Translations = {
|
|||||||
'admin.statReviews': 'reviews',
|
'admin.statReviews': 'reviews',
|
||||||
'admin.statFollowers': 'followers',
|
'admin.statFollowers': 'followers',
|
||||||
'admin.clearReview': 'Clear review',
|
'admin.clearReview': 'Clear review',
|
||||||
'admin.reviewCleared': 'Review cleared',
|
|
||||||
'admin.noReviews': 'No reviews',
|
'admin.noReviews': 'No reviews',
|
||||||
'admin.confirmClearTitle': 'Clear this review?',
|
'admin.confirmClearTitle': 'Clear this review?',
|
||||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||||
@@ -307,8 +285,6 @@ const dict: Translations = {
|
|||||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||||
'admin.suspendedDone': 'Account suspended',
|
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': '安装 Kino',
|
'install.title': '安装 Kino',
|
||||||
'install.ios': '在 Safari 中打开 Kino。\n点按“分享”按钮(带向上箭头的方块)。\n选择“添加到主屏幕”,然后点“添加”。',
|
'install.ios': '在 Safari 中打开 Kino。\n点按“分享”按钮(带向上箭头的方块)。\n选择“添加到主屏幕”,然后点“添加”。',
|
||||||
@@ -408,17 +384,10 @@ const dict: Translations = {
|
|||||||
'account.err.deleteRate': '尝试次数太多,一分钟后再试吧。',
|
'account.err.deleteRate': '尝试次数太多,一分钟后再试吧。',
|
||||||
'account.err.delete': '删除失败,请稍后再试。',
|
'account.err.delete': '删除失败,请稍后再试。',
|
||||||
'account.title': '我的账号',
|
'account.title': '我的账号',
|
||||||
'account.syncing': '同步中…',
|
|
||||||
'account.offline': '离线 — 所有内容都保存在这台设备上',
|
|
||||||
'account.syncError': '暂时无法同步',
|
|
||||||
'account.synced': '已同步 · {when}',
|
|
||||||
'account.passwordChanged': '密码已修改。',
|
'account.passwordChanged': '密码已修改。',
|
||||||
'account.imported_one': '已将{count}部作品添加到你的账号。',
|
'account.imported_one': '已将{count}部作品添加到你的账号。',
|
||||||
'account.imported_other': '已将{count}部作品添加到你的账号。',
|
'account.imported_other': '已将{count}部作品添加到你的账号。',
|
||||||
'account.importFailed': '导入失败。',
|
'account.importFailed': '导入失败。',
|
||||||
'account.pending_one': '{count}项待同步',
|
|
||||||
'account.pending_other': '{count}项待同步',
|
|
||||||
'account.syncNow': '立即同步',
|
|
||||||
'account.newPasswordPh': '新密码(至少{n}个字符)',
|
'account.newPasswordPh': '新密码(至少{n}个字符)',
|
||||||
'account.changePassword': '修改密码',
|
'account.changePassword': '修改密码',
|
||||||
'account.logout': '退出登录',
|
'account.logout': '退出登录',
|
||||||
@@ -436,11 +405,9 @@ const dict: Translations = {
|
|||||||
'account.deviceData': '这台设备上有注册账号前创建的{titles}。要添加到你的账号吗?',
|
'account.deviceData': '这台设备上有注册账号前创建的{titles}。要添加到你的账号吗?',
|
||||||
'account.deviceDataWithLists': '这台设备上有注册账号前创建的{titles}和{lists}。要添加到你的账号吗?',
|
'account.deviceDataWithLists': '这台设备上有注册账号前创建的{titles}和{lists}。要添加到你的账号吗?',
|
||||||
|
|
||||||
'time.never': '从未',
|
|
||||||
'time.justNow': '刚刚',
|
'time.justNow': '刚刚',
|
||||||
'time.minutesAgo': '{n}分钟前',
|
'time.minutesAgo': '{n}分钟前',
|
||||||
'time.hoursAgo': '{n}小时前',
|
'time.hoursAgo': '{n}小时前',
|
||||||
'time.onDate': '{date}',
|
|
||||||
'time.today': '今天',
|
'time.today': '今天',
|
||||||
'time.tomorrow': '明天',
|
'time.tomorrow': '明天',
|
||||||
'time.daysAgo': '{n}天前',
|
'time.daysAgo': '{n}天前',
|
||||||
@@ -557,10 +524,7 @@ const dict: Translations = {
|
|||||||
'reco.addedShort': '已添加',
|
'reco.addedShort': '已添加',
|
||||||
|
|
||||||
'search.offline': '没有网络连接:搜索需要联网。',
|
'search.offline': '没有网络连接:搜索需要联网。',
|
||||||
'search.fillFrom': '从数据库填写',
|
|
||||||
'search.openSettings': '打开「设置」',
|
'search.openSettings': '打开「设置」',
|
||||||
'search.already': '已添加',
|
|
||||||
'search.noResults': '没有结果。你可以在下方手动填写。',
|
|
||||||
'search.privacy': '只有搜索的标题会发送给 {source}。你的片库仍保留在手机上。',
|
'search.privacy': '只有搜索的标题会发送给 {source}。你的片库仍保留在手机上。',
|
||||||
|
|
||||||
'catalog.sortRecent': '最近修改',
|
'catalog.sortRecent': '最近修改',
|
||||||
@@ -590,44 +554,8 @@ const dict: Translations = {
|
|||||||
'catalog.nothingYetHint': '点 + 按钮添加你的第一部作品。',
|
'catalog.nothingYetHint': '点 + 按钮添加你的第一部作品。',
|
||||||
'catalog.clearFilters': '清除筛选',
|
'catalog.clearFilters': '清除筛选',
|
||||||
|
|
||||||
'public.agree': '和大众评价完全一致',
|
|
||||||
'public.more': '比大众高 +{gap}',
|
|
||||||
'public.less': '比大众低 −{gap}',
|
|
||||||
'public.label': '大众',
|
|
||||||
'public.me': '我',
|
|
||||||
'public.added_one': '已添加{count}个大众评分。',
|
|
||||||
'public.added_other': '已添加{count}个大众评分。',
|
|
||||||
'public.noneFound': '没有找到新的评分。',
|
|
||||||
'public.fetch': '获取({n})',
|
|
||||||
'public.title': '我 vs 大众',
|
|
||||||
'public.hintFetch': '获取你已评分作品在 TMDB / AniList 上的平均分,看看你和大众哪里不一样。',
|
|
||||||
'public.hintNone': '这段时间内你已评分的作品暂无大众评分。',
|
|
||||||
'public.hintKey': '在「设置」中添加你的 TMDB 密钥(或关联 AniList 的动画),就能和大众对比。',
|
|
||||||
'public.avgGap': '平均差距',
|
|
||||||
'public.average': '与大众持平',
|
|
||||||
'public.generous': '比大众更宽容',
|
|
||||||
'public.harsh': '比大众更严格',
|
|
||||||
'public.agreeTitle': '意见一致',
|
|
||||||
'public.within5_one': '相差 ½ 星以内,共{count}部作品',
|
|
||||||
'public.within5_other': '相差 ½ 星以内,共{count}部作品',
|
|
||||||
'public.within10_one': '相差1分以内,共{count}部作品',
|
|
||||||
'public.within10_other': '相差1分以内,共{count}部作品',
|
|
||||||
'public.lovedPre': '我比大众',
|
|
||||||
'public.lovedAccent': '更喜欢',
|
|
||||||
'public.lovedPost': '',
|
|
||||||
'public.hatedPre': '我比大众',
|
|
||||||
'public.hatedAccent': '更不喜欢',
|
|
||||||
'public.hatedPost': '',
|
|
||||||
'public.allAgree': '你对所有作品的看法都和大众一致。真少见!',
|
|
||||||
|
|
||||||
'form.rewatchHint': '又看了一遍?记录每次重温,它会出现在你的日记里。',
|
'form.rewatchHint': '又看了一遍?记录每次重温,它会出现在你的日记里。',
|
||||||
'form.editTitle': '编辑',
|
|
||||||
'form.editAccent': '条目',
|
|
||||||
'form.newTitle': '新增',
|
|
||||||
'form.newAccent': '作品',
|
|
||||||
'form.filledFrom': '数据来自',
|
|
||||||
'form.canEdit': '所有内容都可以修改',
|
|
||||||
'form.fillFromDb': '从 TMDB / AniList 补全',
|
|
||||||
'form.pickPoster': '选择海报',
|
'form.pickPoster': '选择海报',
|
||||||
'form.removeImage': '移除图片',
|
'form.removeImage': '移除图片',
|
||||||
'form.title': '标题 *',
|
'form.title': '标题 *',
|
||||||
@@ -638,10 +566,7 @@ const dict: Translations = {
|
|||||||
'form.type': '类别',
|
'form.type': '类别',
|
||||||
'form.subtype': '细分',
|
'form.subtype': '细分',
|
||||||
'form.subtypePh': '纪录片、真人秀…',
|
'form.subtypePh': '纪录片、真人秀…',
|
||||||
'form.status': '状态',
|
|
||||||
'form.myRating': '我的评分',
|
|
||||||
'form.favorite': '心头好',
|
'form.favorite': '心头好',
|
||||||
'form.criteria': '详细评分(可选)',
|
|
||||||
'form.episodes': '集数',
|
'form.episodes': '集数',
|
||||||
'form.minusEp': '-1集',
|
'form.minusEp': '-1集',
|
||||||
'form.plusEp': '+1集',
|
'form.plusEp': '+1集',
|
||||||
@@ -656,8 +581,6 @@ const dict: Translations = {
|
|||||||
'form.rewatches': '重温记录',
|
'form.rewatches': '重温记录',
|
||||||
'form.review': '我的短评',
|
'form.review': '我的短评',
|
||||||
'form.reviewPh': '我的感想、印象深刻的场景…',
|
'form.reviewPh': '我的感想、印象深刻的场景…',
|
||||||
'form.saveChanges': '保存修改',
|
|
||||||
'form.addToLibrary': '添加到我的片库',
|
|
||||||
'form.shareImage': '分享为图片',
|
'form.shareImage': '分享为图片',
|
||||||
'form.delete': '删除这部作品',
|
'form.delete': '删除这部作品',
|
||||||
'form.deleteConfirm': '《{title}》将被永久删除。',
|
'form.deleteConfirm': '《{title}》将被永久删除。',
|
||||||
@@ -672,20 +595,14 @@ const dict: Translations = {
|
|||||||
'journal.seen_other': '看了{count}部',
|
'journal.seen_other': '看了{count}部',
|
||||||
'journal.more': '显示更早的月份',
|
'journal.more': '显示更早的月份',
|
||||||
|
|
||||||
'stats.overview': '概览',
|
|
||||||
'stats.habits': '习惯',
|
|
||||||
'stats.tastes': '口味',
|
|
||||||
'stats.pageTitle': '我的',
|
'stats.pageTitle': '我的',
|
||||||
'stats.pageAccent': '统计',
|
'stats.pageAccent': '统计',
|
||||||
'stats.emptyTitle': '还没有统计数据',
|
'stats.emptyTitle': '还没有统计数据',
|
||||||
'stats.emptyText': '添加作品后,统计数据就会出现在这里。',
|
'stats.emptyText': '添加作品后,统计数据就会出现在这里。',
|
||||||
'stats.sinceStart': '从开始至今',
|
|
||||||
'stats.subtitle_one': '我的片库中有{count}部作品',
|
'stats.subtitle_one': '我的片库中有{count}部作品',
|
||||||
'stats.subtitle_other': '我的片库中有{count}部作品',
|
'stats.subtitle_other': '我的片库中有{count}部作品',
|
||||||
'stats.subtitleYear_one': '{year}年{count}部作品',
|
'stats.subtitleYear_one': '{year}年{count}部作品',
|
||||||
'stats.subtitleYear_other': '{year}年{count}部作品',
|
'stats.subtitleYear_other': '{year}年{count}部作品',
|
||||||
'stats.hours_one': '小时',
|
|
||||||
'stats.hours_other': '小时',
|
|
||||||
'stats.nonStopPre': '相当于连续看了',
|
'stats.nonStopPre': '相当于连续看了',
|
||||||
'stats.nonStopPost': '',
|
'stats.nonStopPost': '',
|
||||||
'stats.days_one': '{count}天',
|
'stats.days_one': '{count}天',
|
||||||
@@ -695,13 +612,10 @@ const dict: Translations = {
|
|||||||
'stats.episodesN_one': '{count}集',
|
'stats.episodesN_one': '{count}集',
|
||||||
'stats.episodesN_other': '{count}集',
|
'stats.episodesN_other': '{count}集',
|
||||||
'stats.timeByType': '各类别时长',
|
'stats.timeByType': '各类别时长',
|
||||||
'stats.noTime': '这段时间内还没有记录时长。',
|
|
||||||
'stats.avgRating': '平均评分',
|
'stats.avgRating': '平均评分',
|
||||||
'stats.rated_one': '已评分{count}部',
|
'stats.rated_one': '已评分{count}部',
|
||||||
'stats.rated_other': '已评分{count}部',
|
'stats.rated_other': '已评分{count}部',
|
||||||
'stats.inYear': '{year}年',
|
|
||||||
'stats.statuses': '状态',
|
'stats.statuses': '状态',
|
||||||
'stats.hoursTab': '时长',
|
|
||||||
'stats.monthByMonth': '逐月统计 · {year}',
|
'stats.monthByMonth': '逐月统计 · {year}',
|
||||||
'stats.last12': '最近12个月',
|
'stats.last12': '最近12个月',
|
||||||
'stats.monthFinished_one': '看完{count}部作品',
|
'stats.monthFinished_one': '看完{count}部作品',
|
||||||
@@ -710,7 +624,6 @@ const dict: Translations = {
|
|||||||
'stats.records': '纪录',
|
'stats.records': '纪录',
|
||||||
'stats.marathon': '最长马拉松',
|
'stats.marathon': '最长马拉松',
|
||||||
'stats.longestFilm': '最长的电影',
|
'stats.longestFilm': '最长的电影',
|
||||||
'stats.noRecords': '这段时间内还没有纪录。',
|
|
||||||
'stats.platforms': '平台',
|
'stats.platforms': '平台',
|
||||||
'stats.bestRated': '我的最高分',
|
'stats.bestRated': '我的最高分',
|
||||||
'stats.myRatings': '我的评分',
|
'stats.myRatings': '我的评分',
|
||||||
@@ -718,11 +631,6 @@ const dict: Translations = {
|
|||||||
'stats.favGenres': '最爱类型',
|
'stats.favGenres': '最爱类型',
|
||||||
'stats.noGenres': '还没有类型。',
|
'stats.noGenres': '还没有类型。',
|
||||||
'stats.countries': '国家/地区',
|
'stats.countries': '国家/地区',
|
||||||
'stats.noCountry_one': '{count}部作品缺少国家/地区:在详情页中通过「从 TMDB / AniList 补全」补上吧。',
|
|
||||||
'stats.noCountry_other': '{count}部作品缺少国家/地区:在详情页中通过「从 TMDB / AniList 补全」补上吧。',
|
|
||||||
'stats.noCountryLegacy_one': '{count}部作品缺少国家/地区:在详情页中通过「从 TMDB / AniList 补全」补上,或重新导入旧版应用的备份(「合并」)。',
|
|
||||||
'stats.noCountryLegacy_other': '{count}部作品缺少国家/地区:在详情页中通过「从 TMDB / AniList 补全」补上,或重新导入旧版应用的备份(「合并」)。',
|
|
||||||
'stats.byType': '按类别',
|
|
||||||
'stats.footnote': '时长根据已看集数和填写的时长估算(未填写时:电影1小时50分,动画每集24分钟,剧集每集45分钟,韩剧每集1小时,华语剧每集45分钟)。作品计入我看完它的那一年。',
|
'stats.footnote': '时长根据已看集数和填写的时长估算(未填写时:电影1小时50分,动画每集24分钟,剧集每集45分钟,韩剧每集1小时,华语剧每集45分钟)。作品计入我看完它的那一年。',
|
||||||
'stats.ratedAs_one': '评分{rating}',
|
'stats.ratedAs_one': '评分{rating}',
|
||||||
'stats.ratedAs_other': '评分{rating}',
|
'stats.ratedAs_other': '评分{rating}',
|
||||||
@@ -831,9 +739,7 @@ const dict: Translations = {
|
|||||||
'welcome.later': "稍后",
|
'welcome.later': "稍后",
|
||||||
'social.watching': "正在看",
|
'social.watching': "正在看",
|
||||||
'social.watchlist': "想看",
|
'social.watchlist': "想看",
|
||||||
'search.allKinds': "电影、剧集和动画",
|
|
||||||
'search.animeOnly': "没有 TMDB 密钥时只能找到动画。",
|
'search.animeOnly': "没有 TMDB 密钥时只能找到动画。",
|
||||||
'search.alreadySeries': "已在你的片库中——打开",
|
|
||||||
'form.startShort': "开始于",
|
'form.startShort': "开始于",
|
||||||
'form.endShort': "看完于",
|
'form.endShort': "看完于",
|
||||||
'hero.allSeen': "全部看完",
|
'hero.allSeen': "全部看完",
|
||||||
@@ -841,7 +747,6 @@ const dict: Translations = {
|
|||||||
'hero.upToDate': '已追平',
|
'hero.upToDate': '已追平',
|
||||||
'hero.seenEp': "已看 {ep}",
|
'hero.seenEp': "已看 {ep}",
|
||||||
'hero.seen': "已看",
|
'hero.seen': "已看",
|
||||||
'hero.markSeen': "标记为已看",
|
|
||||||
'hero.edit': "编辑信息",
|
'hero.edit': "编辑信息",
|
||||||
'hero.more': "展开",
|
'hero.more': "展开",
|
||||||
'hero.less': "收起",
|
'hero.less': "收起",
|
||||||
@@ -857,9 +762,6 @@ const dict: Translations = {
|
|||||||
'homeHero.details': "详情",
|
'homeHero.details': "详情",
|
||||||
'homeHero.continueRow': "继续观看",
|
'homeHero.continueRow': "继续观看",
|
||||||
'homeHero.nextUp': "下一集:{ep}",
|
'homeHero.nextUp': "下一集:{ep}",
|
||||||
'title.addTitle': "添加作品",
|
|
||||||
'title.searchPh': "电影、剧集、动画、电视剧…",
|
|
||||||
'title.searchHint': "搜索作品,打开详情页即可评分、标记为看过或加入想看。",
|
|
||||||
'title.noResults': "没有结果。",
|
'title.noResults': "没有结果。",
|
||||||
'title.manual': "手动添加",
|
'title.manual': "手动添加",
|
||||||
'title.manualHint': "找不到?自己创建条目。",
|
'title.manualHint': "找不到?自己创建条目。",
|
||||||
@@ -889,7 +791,6 @@ const dict: Translations = {
|
|||||||
'title.trackingHint': "日期、片单、重看",
|
'title.trackingHint': "日期、片单、重看",
|
||||||
'title.rewatchCount_one': "重看 {count} 次",
|
'title.rewatchCount_one': "重看 {count} 次",
|
||||||
'title.rewatchCount_other': "重看 {count} 次",
|
'title.rewatchCount_other': "重看 {count} 次",
|
||||||
'title.rewatchedToday': "今天重看了",
|
|
||||||
'sync.syncing': "正在同步…",
|
'sync.syncing': "正在同步…",
|
||||||
'sync.offline': "离线",
|
'sync.offline': "离线",
|
||||||
'sync.error': "同步失败",
|
'sync.error': "同步失败",
|
||||||
@@ -1075,13 +976,6 @@ const dict: Translations = {
|
|||||||
'challenges.more_one': "+ 另外 {count} 个挑战",
|
'challenges.more_one': "+ 另外 {count} 个挑战",
|
||||||
'challenges.more_other': "+ 另外 {count} 个挑战",
|
'challenges.more_other': "+ 另外 {count} 个挑战",
|
||||||
// — Notifications push & indicateur hors-ligne —
|
// — Notifications push & indicateur hors-ligne —
|
||||||
'push.device': "此设备上的通知",
|
|
||||||
'push.deviceHint': "即使应用已关闭也会提醒。下方的选项同样适用。",
|
|
||||||
'push.iosInstall': "在 iPhone 和 iPad 上,请先将 Kino 添加到主屏幕(iOS 16.4 或更高版本),再从图标打开应用以开启通知。",
|
|
||||||
'push.unsupported': "此浏览器不支持推送通知。",
|
|
||||||
'push.denied': "此网站的通知已被阻止。请在浏览器设置中允许后重试。",
|
|
||||||
'push.notReady': "服务器暂未开放推送通知。",
|
|
||||||
'push.error': "无法开启通知。请检查网络连接后重试。",
|
|
||||||
'netPill.offlineSync': "离线 — 你的修改将稍后同步",
|
'netPill.offlineSync': "离线 — 你的修改将稍后同步",
|
||||||
'netPill.offlineLocal': "离线 — 所有内容都保存在此设备上",
|
'netPill.offlineLocal': "离线 — 所有内容都保存在此设备上",
|
||||||
'netPill.synced': "已同步",
|
'netPill.synced': "已同步",
|
||||||
@@ -1221,10 +1115,6 @@ const dict: Translations = {
|
|||||||
'comments.err.rate': "你评论得太快了,请一分钟后再试。",
|
'comments.err.rate': "你评论得太快了,请一分钟后再试。",
|
||||||
'comments.err.gone': "此评论已不存在。",
|
'comments.err.gone': "此评论已不存在。",
|
||||||
'comments.err.invalid': "评论为空或过长(最多 500 字)。",
|
'comments.err.invalid': "评论为空或过长(最多 500 字)。",
|
||||||
'notif.review_comment': "评论了你的影评",
|
|
||||||
'notif.shared_list_invite': "邀请你加入共享片单",
|
|
||||||
'settings.notifComments': "我的影评收到的评论",
|
|
||||||
'settings.notifLists': "共享片单邀请",
|
|
||||||
'shared.title': "共享片单",
|
'shared.title': "共享片单",
|
||||||
'shared.hint': "多人共建的片单:每位成员都可以添加或移除作品。",
|
'shared.hint': "多人共建的片单:每位成员都可以添加或移除作品。",
|
||||||
'shared.new': "新建共享片单",
|
'shared.new': "新建共享片单",
|
||||||
@@ -1256,7 +1146,6 @@ const dict: Translations = {
|
|||||||
'shared.noPeople': "没有可邀请的人:只有你的粉丝和你关注的人可以加入。",
|
'shared.noPeople': "没有可邀请的人:只有你的粉丝和你关注的人可以加入。",
|
||||||
'shared.inviteShort': "邀请",
|
'shared.inviteShort': "邀请",
|
||||||
'shared.invited': "已邀请",
|
'shared.invited': "已邀请",
|
||||||
'shared.expired': "邀请已失效",
|
|
||||||
'shared.addTo': "添加到共享片单",
|
'shared.addTo': "添加到共享片单",
|
||||||
'shared.unavailable': "共享片单暂不可用。",
|
'shared.unavailable': "共享片单暂不可用。",
|
||||||
'shared.err.rate': "连续操作过多,请一分钟后再试。",
|
'shared.err.rate': "连续操作过多,请一分钟后再试。",
|
||||||
|
|||||||
+26
-15
@@ -1,4 +1,4 @@
|
|||||||
import { Fragment, createContext, useCallback, useContext, useState, type ReactNode } from 'react'
|
import { Fragment, createContext, useCallback, useContext, useRef, useState, type ReactNode } from 'react'
|
||||||
import { detectLang, getLang, isLangChosen, LANGS, loadLang, t, type Lang } from '.'
|
import { detectLang, getLang, isLangChosen, LANGS, loadLang, t, type Lang } from '.'
|
||||||
|
|
||||||
interface LangApi {
|
interface LangApi {
|
||||||
@@ -17,22 +17,33 @@ const TRANSLATED_CACHES = ['azuucine:releases', 'azuucine:global-releases']
|
|||||||
export function LangProvider({ children }: { children: ReactNode }) {
|
export function LangProvider({ children }: { children: ReactNode }) {
|
||||||
const [lang, setState] = useState<Lang>(getLang)
|
const [lang, setState] = useState<Lang>(getLang)
|
||||||
const [auto, setAuto] = useState(() => !isLangChosen())
|
const [auto, setAuto] = useState(() => !isLangChosen())
|
||||||
const setLang = useCallback(async (choice: Lang | 'auto') => {
|
// Changements de langue à la file, et seul le dernier demandé s'applique : un fichier de langue
|
||||||
const l = choice === 'auto' ? detectLang() : choice
|
// lent (A) qui arrivait après un plus rapide (B) remettait l'app en A.
|
||||||
|
const queue = useRef<Promise<void>>(Promise.resolve())
|
||||||
|
const seq = useRef(0)
|
||||||
|
const setLang = useCallback((choice: Lang | 'auto') => {
|
||||||
|
const req = ++seq.current
|
||||||
setAuto(choice === 'auto')
|
setAuto(choice === 'auto')
|
||||||
if (l === getLang()) {
|
const run = queue.current.then(async () => {
|
||||||
await loadLang(l, choice === 'auto' ? null : true)
|
if (req !== seq.current) return
|
||||||
return
|
const l = choice === 'auto' ? detectLang() : choice
|
||||||
}
|
if (l === getLang()) {
|
||||||
await loadLang(l, choice === 'auto' ? null : true)
|
await loadLang(l, choice === 'auto' ? null : true)
|
||||||
for (const k of TRANSLATED_CACHES) {
|
return
|
||||||
try {
|
|
||||||
localStorage.removeItem(k)
|
|
||||||
} catch {
|
|
||||||
/* ignore */
|
|
||||||
}
|
}
|
||||||
}
|
await loadLang(l, choice === 'auto' ? null : true)
|
||||||
setState(l)
|
for (const k of TRANSLATED_CACHES) {
|
||||||
|
try {
|
||||||
|
localStorage.removeItem(k)
|
||||||
|
} catch {
|
||||||
|
/* ignore */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
setState(l)
|
||||||
|
})
|
||||||
|
// Un fichier de langue qui ne se charge jamais ne bloque pas les choix suivants (10 s au plus)
|
||||||
|
queue.current = Promise.race([run.catch(() => {}), new Promise<void>((resolve) => setTimeout(resolve, 10_000))])
|
||||||
|
return run
|
||||||
}, [])
|
}, [])
|
||||||
return (
|
return (
|
||||||
<LangContext.Provider value={{ lang, auto, setLang }}>
|
<LangContext.Provider value={{ lang, auto, setLang }}>
|
||||||
|
|||||||
@@ -20,6 +20,8 @@
|
|||||||
--color-accent-fill: #d11f2f;
|
--color-accent-fill: #d11f2f;
|
||||||
/* Texte posé sur un bouton plein (blanc ou noir selon le thème) */
|
/* Texte posé sur un bouton plein (blanc ou noir selon le thème) */
|
||||||
--color-on-accent: #ffffff;
|
--color-on-accent: #ffffff;
|
||||||
|
/* Voile sombre derrière les fenêtres (identique dans toutes les apparences) */
|
||||||
|
--color-scrim: rgb(0 0 0 / 0.7);
|
||||||
|
|
||||||
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
--font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
|
||||||
}
|
}
|
||||||
|
|||||||
+24
-52
@@ -39,21 +39,21 @@ const SEASONS_SINCE = '2026-10-04T10:00:00.000Z'
|
|||||||
|
|
||||||
const n0 = (v: unknown, max = 100000) => (typeof v === 'number' && Number.isFinite(v) && v >= 0 ? Math.min(max, Math.round(v)) : 0)
|
const n0 = (v: unknown, max = 100000) => (typeof v === 'number' && Number.isFinite(v) && v >= 0 ? Math.min(max, Math.round(v)) : 0)
|
||||||
|
|
||||||
// Dernière lecture (le cache est relu par chaque carte : on évite de le réanalyser à chaque fois)
|
// Cache gardé en mémoire : loadAiring() est appelé par chaque carte à chaque rendu, on évite de relire
|
||||||
let memo: { raw: string | null; cache: AiringCache } | undefined
|
// (et réanalyser) le stockage à chaque fois. Invalidé à l'enregistrement, sur CACHE_EVENT et quand
|
||||||
|
// un autre onglet modifie le stockage.
|
||||||
|
let memo: AiringCache | undefined
|
||||||
|
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
|
window.addEventListener('storage', (e) => {
|
||||||
|
if (e.key === null || e.key === KEY) memo = undefined
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
/** Relit le cache en ne gardant que des entrées bien formées. */
|
/** Relit le cache en ne gardant que des entrées bien formées. */
|
||||||
export function loadAiring(): AiringCache {
|
export function loadAiring(): AiringCache {
|
||||||
let text: string | null = null
|
memo ??= parseAiring()
|
||||||
try {
|
return memo
|
||||||
text = localStorage.getItem(KEY)
|
|
||||||
} catch {
|
|
||||||
/* stockage indisponible */
|
|
||||||
}
|
|
||||||
if (memo && memo.raw === text) return memo.cache
|
|
||||||
const cache = parseAiring()
|
|
||||||
memo = { raw: text, cache }
|
|
||||||
return cache
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function parseAiring(): AiringCache {
|
function parseAiring(): AiringCache {
|
||||||
@@ -73,12 +73,15 @@ function parseAiring(): AiringCache {
|
|||||||
/** Émis quand le cache des sorties change (pastille du calendrier). */
|
/** Émis quand le cache des sorties change (pastille du calendrier). */
|
||||||
export const CACHE_EVENT = 'azuucine:schedule'
|
export const CACHE_EVENT = 'azuucine:schedule'
|
||||||
|
|
||||||
|
if (typeof window !== 'undefined') window.addEventListener(CACHE_EVENT, () => (memo = undefined))
|
||||||
|
|
||||||
export function saveAiring(cache: AiringCache) {
|
export function saveAiring(cache: AiringCache) {
|
||||||
try {
|
try {
|
||||||
localStorage.setItem(KEY, JSON.stringify(cache))
|
localStorage.setItem(KEY, JSON.stringify(cache))
|
||||||
} catch {
|
} catch {
|
||||||
/* ignore */
|
/* ignore */
|
||||||
}
|
}
|
||||||
|
memo = undefined
|
||||||
window.dispatchEvent(new Event(CACHE_EVENT))
|
window.dispatchEvent(new Event(CACHE_EVENT))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -183,17 +186,18 @@ async function checkTmdb(tvId: string, key: string): Promise<Omit<AiringInfo, 'c
|
|||||||
if (!res.ok) throw new Error(`TMDB ${res.status}`)
|
if (!res.ok) throw new Error(`TMDB ${res.status}`)
|
||||||
d = (await res.json()) as TmdbTv
|
d = (await res.json()) as TmdbTv
|
||||||
}
|
}
|
||||||
// Épisodes diffusés = épisodes des saisons terminées + position du dernier épisode diffusé
|
// Épisodes diffusés = épisodes des saisons terminées + position du dernier épisode diffusé.
|
||||||
|
// Les épisodes spéciaux (saison 0) ne comptent pas : un spécial diffusé en dernier ramenait
|
||||||
|
// le compte à son numéro (ex. 1). On se fie alors au prochain épisode régulier annoncé.
|
||||||
let aired = n0(d.number_of_episodes)
|
let aired = n0(d.number_of_episodes)
|
||||||
const last = d.last_episode_to_air
|
const last = d.last_episode_to_air
|
||||||
if (last && Array.isArray(d.seasons) && d.seasons.length) {
|
|
||||||
aired = n0(
|
|
||||||
d.seasons
|
|
||||||
.filter((s) => n0(s.season_number) > 0 && n0(s.season_number) < n0(last.season_number))
|
|
||||||
.reduce((sum, s) => sum + n0(s.episode_count), 0) + n0(last.episode_number),
|
|
||||||
)
|
|
||||||
}
|
|
||||||
const nx = d.next_episode_to_air
|
const nx = d.next_episode_to_air
|
||||||
|
const before = (season: number) =>
|
||||||
|
(d.seasons ?? []).filter((s) => n0(s.season_number) > 0 && n0(s.season_number) < season).reduce((sum, s) => sum + n0(s.episode_count), 0)
|
||||||
|
if (last && Array.isArray(d.seasons) && d.seasons.length) {
|
||||||
|
if (n0(last.season_number) > 0) aired = n0(before(n0(last.season_number)) + n0(last.episode_number))
|
||||||
|
else if (nx && n0(nx.season_number) > 0 && n0(nx.episode_number) > 0) aired = n0(before(n0(nx.season_number)) + n0(nx.episode_number) - 1)
|
||||||
|
}
|
||||||
const nextDate = safeDay(nx?.air_date)
|
const nextDate = safeDay(nx?.air_date)
|
||||||
// Rien encore diffusé (série annoncée) : les épisodes prévus ne sont pas « sortis »
|
// Rien encore diffusé (série annoncée) : les épisodes prévus ne sont pas « sortis »
|
||||||
if (!last && (nx || d.status === 'Planned' || d.status === 'In Production')) aired = 0
|
if (!last && (nx || d.status === 'Planned' || d.status === 'In Production')) aired = 0
|
||||||
@@ -283,35 +287,3 @@ export async function refreshAiring(items: MediaItem[], cache: AiringCache, tmdb
|
|||||||
}
|
}
|
||||||
return next
|
return next
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Novelty {
|
|
||||||
item: MediaItem
|
|
||||||
info: AiringInfo
|
|
||||||
/** Épisodes sortis que je n'ai pas encore vus */
|
|
||||||
unwatched: number
|
|
||||||
kind: 'new_episodes' | 'new_season' | 'upcoming'
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Ce qu'il faut signaler sur l'accueil. */
|
|
||||||
export function novelties(items: MediaItem[], cache: AiringCache): Novelty[] {
|
|
||||||
const out: Novelty[] = []
|
|
||||||
const soon = Date.now() + 14 * 24 * 3600 * 1000
|
|
||||||
for (const item of trackable(items)) {
|
|
||||||
const info = cache[item.id]
|
|
||||||
if (!info) continue
|
|
||||||
const unwatched = Math.max(0, info.aired - item.episodesWatched)
|
|
||||||
// Série terminée depuis (ex. Friends) : les épisodes non vus ne sont pas des nouveautés,
|
|
||||||
// et une « nouvelle saison » n'y est qu'un décalage de numérotation entre TMDB et AniList.
|
|
||||||
if (info.ended) continue
|
|
||||||
if (item.status === 'termine') {
|
|
||||||
// Terminé de mon côté, mais de nouveaux épisodes sont sortis depuis → nouvelle saison
|
|
||||||
if (unwatched > 0 && episodeCap(item) && info.aired > episodeCap(item)!) out.push({ item, info, unwatched, kind: 'new_season' })
|
|
||||||
} else if (unwatched > 0) {
|
|
||||||
out.push({ item, info, unwatched, kind: 'new_episodes' })
|
|
||||||
} else if (info.next && new Date(info.next.date).getTime() < soon) {
|
|
||||||
out.push({ item, info, unwatched: 0, kind: 'upcoming' })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
const order = { new_season: 0, new_episodes: 1, upcoming: 2 }
|
|
||||||
return out.sort((a, b) => order[a.kind] - order[b.kind] || (a.info.next?.date ?? '').localeCompare(b.info.next?.date ?? ''))
|
|
||||||
}
|
|
||||||
+8
-7
@@ -1,5 +1,5 @@
|
|||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
import type { BackupFile, Criteria, CustomList, MediaItem, MediaType, NotifPrefs, Settings, TopCategory, TopEntry, WatchStatus } from '../types'
|
import type { BackupFile, Criteria, CustomList, MediaItem, MediaType, Settings, TopCategory, TopEntry, WatchStatus } from '../types'
|
||||||
import { ALL_TOP_CATEGORIES, MEDIA_TYPES, STATUSES } from './constants'
|
import { ALL_TOP_CATEGORIES, MEDIA_TYPES, STATUSES } from './constants'
|
||||||
import { episodeCap } from './franchise'
|
import { episodeCap } from './franchise'
|
||||||
import { convertLegacyBackup, isLegacyBackup } from './legacyImport'
|
import { convertLegacyBackup, isLegacyBackup } from './legacyImport'
|
||||||
@@ -34,6 +34,11 @@ const int = (v: unknown, min = 0, max = 1e6) => {
|
|||||||
const n = num(v, min, max)
|
const n = num(v, min, max)
|
||||||
return n == null ? undefined : Math.round(n)
|
return n == null ? undefined : Math.round(n)
|
||||||
}
|
}
|
||||||
|
/** Année plausible, sinon absente (une valeur aberrante n'est pas ramenée à 1870 ou 2200). */
|
||||||
|
const year = (v: unknown) => {
|
||||||
|
const n = num(v, -Infinity, Infinity)
|
||||||
|
return n != null && n >= 1870 && n <= 2200 ? Math.round(n) : undefined
|
||||||
|
}
|
||||||
const rating = (v: unknown) => {
|
const rating = (v: unknown) => {
|
||||||
const n = num(v, 0, 10)
|
const n = num(v, 0, 10)
|
||||||
return n == null || n === 0 ? undefined : Math.round(n * 2) / 2
|
return n == null || n === 0 ? undefined : Math.round(n * 2) / 2
|
||||||
@@ -108,7 +113,7 @@ export function normalizeItem(raw: unknown): MediaItem | null {
|
|||||||
originalTitle: cleanText(r.originalTitle, LIMITS.title),
|
originalTitle: cleanText(r.originalTitle, LIMITS.title),
|
||||||
type,
|
type,
|
||||||
subtype: type === 'autre' ? cleanText(r.subtype, LIMITS.shortText) : undefined,
|
subtype: type === 'autre' ? cleanText(r.subtype, LIMITS.shortText) : undefined,
|
||||||
year: int(r.year, 1870, 2200),
|
year: year(r.year),
|
||||||
status: (STATUS_SET.has(r.status as string) ? r.status : 'a_voir') as WatchStatus,
|
status: (STATUS_SET.has(r.status as string) ? r.status : 'a_voir') as WatchStatus,
|
||||||
rating: rating(r.rating),
|
rating: rating(r.rating),
|
||||||
criteria,
|
criteria,
|
||||||
@@ -137,6 +142,7 @@ export function normalizeItem(raw: unknown): MediaItem | null {
|
|||||||
rewatch: normalizeRewatch(r.rewatch),
|
rewatch: normalizeRewatch(r.rewatch),
|
||||||
seasonRatings: normalizeSeasonRatings(r.seasonRatings),
|
seasonRatings: normalizeSeasonRatings(r.seasonRatings),
|
||||||
episodeLog: normalizeEpisodeLog(r.episodeLog),
|
episodeLog: normalizeEpisodeLog(r.episodeLog),
|
||||||
|
rewatchLog: normalizeEpisodeLog(r.rewatchLog),
|
||||||
publicRating: (() => {
|
publicRating: (() => {
|
||||||
const n = num(r.publicRating, 0, 10)
|
const n = num(r.publicRating, 0, 10)
|
||||||
return n ? Math.round(n * 10) / 10 : undefined
|
return n ? Math.round(n * 10) / 10 : undefined
|
||||||
@@ -154,11 +160,6 @@ export function normalizeSettings(raw: unknown): Partial<Settings> | undefined {
|
|||||||
if (Array.isArray(raw.topCategories)) out.topCategories = ALL_TOP_CATEGORIES.filter((c) => (raw.topCategories as unknown[]).includes(c))
|
if (Array.isArray(raw.topCategories)) out.topCategories = ALL_TOP_CATEGORIES.filter((c) => (raw.topCategories as unknown[]).includes(c))
|
||||||
if (isHexColor(raw.accentColor)) out.accentColor = raw.accentColor.toLowerCase()
|
if (isHexColor(raw.accentColor)) out.accentColor = raw.accentColor.toLowerCase()
|
||||||
if (raw.themeMode === 'auto' || raw.themeMode === 'light' || raw.themeMode === 'dark' || raw.themeMode === 'night' || raw.themeMode === 'starfield') out.themeMode = raw.themeMode
|
if (raw.themeMode === 'auto' || raw.themeMode === 'light' || raw.themeMode === 'dark' || raw.themeMode === 'night' || raw.themeMode === 'starfield') out.themeMode = raw.themeMode
|
||||||
if (isPlainObject(raw.notifPrefs)) {
|
|
||||||
const np: NotifPrefs = {}
|
|
||||||
for (const k of ['episodes', 'follows', 'accepted', 'reactions', 'comments', 'lists'] as const) if (typeof raw.notifPrefs[k] === 'boolean') np[k] = raw.notifPrefs[k] as boolean
|
|
||||||
out.notifPrefs = np
|
|
||||||
}
|
|
||||||
const challenges = normalizeChallenges(raw.challenges)
|
const challenges = normalizeChallenges(raw.challenges)
|
||||||
if (challenges) out.challenges = challenges
|
if (challenges) out.challenges = challenges
|
||||||
if (Array.isArray(raw.statsHiddenMonths)) {
|
if (Array.isArray(raw.statsHiddenMonths)) {
|
||||||
|
|||||||
+40
-53
@@ -6,7 +6,7 @@ import { subtypeLabel, tmdbGenres } from './genres'
|
|||||||
import { franchiseKey } from './franchise'
|
import { franchiseKey } from './franchise'
|
||||||
import { cleanText, isSafeExternalId, isSafeTmdbPath, LIMITS, remoteImage, safeCountries, safeDay, safePosterUrl, safeSeasons, safeStringList } from './security'
|
import { cleanText, isSafeExternalId, isSafeTmdbPath, LIMITS, remoteImage, safeCountries, safeDay, safePosterUrl, safeSeasons, safeStringList } from './security'
|
||||||
import { localDay } from './utils'
|
import { localDay } from './utils'
|
||||||
import { parseAniListLinks, parseTmdbProviders, type StreamLink, type WatchRegion } from './watchProviders'
|
import { getWatchRegion, parseAniListLinks, parseTmdbProviders, type StreamLink, type WatchRegion } from './watchProviders'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recherche dans les bases publiques :
|
* Recherche dans les bases publiques :
|
||||||
@@ -120,12 +120,21 @@ export function isPlausibleTmdbKey(key: string): boolean {
|
|||||||
/** Seules ces adresses de l'API TMDB peuvent être appelées. */
|
/** Seules ces adresses de l'API TMDB peuvent être appelées. */
|
||||||
const TMDB_PATHS = /^\/(search\/(multi|person)|configuration|discover\/(movie|tv)|(movie|tv)\/\d{1,10}(\/recommendations|\/season\/\d{1,3})?|find\/(tt)?\d{1,10}|person\/\d{1,10})$/
|
const TMDB_PATHS = /^\/(search\/(multi|person)|configuration|discover\/(movie|tv)|(movie|tv)\/\d{1,10}(\/recommendations|\/season\/\d{1,3})?|find\/(tt)?\d{1,10}|person\/\d{1,10})$/
|
||||||
|
|
||||||
|
/** Délai max d'une requête vers TMDB / AniList (réseau lent ou serveur muet). */
|
||||||
|
const FETCH_TIMEOUT = 12_000
|
||||||
|
const timeout = () => AbortSignal.timeout(FETCH_TIMEOUT)
|
||||||
|
|
||||||
|
/** Texte recherché : sans caractères de contrôle, et pas plus long que ce qu'accepte le proxy (100 caractères). */
|
||||||
|
// eslint-disable-next-line no-control-regex
|
||||||
|
const searchText = (q: string) => q.replace(/[\u0000-\u001f\u007f]/g, ' ').trim().slice(0, 100)
|
||||||
|
|
||||||
/** « Clé » spéciale : avec un compte, les requêtes passent par le serveur qui détient la vraie clé TMDB. */
|
/** « Clé » spéciale : avec un compte, les requêtes passent par le serveur qui détient la vraie clé TMDB. */
|
||||||
export const CLOUD_TMDB = 'cloud-proxy'
|
export const CLOUD_TMDB = 'cloud-proxy'
|
||||||
|
|
||||||
async function tmdbFetch<T>(path: string, key: string, params: Record<string, string> = {}): Promise<T> {
|
async function tmdbFetch<T>(path: string, key: string, params: Record<string, string> = {}): Promise<T> {
|
||||||
const k = key.trim()
|
const k = key.trim()
|
||||||
if (!TMDB_PATHS.test(path)) throw new Error(t('err.tmdbRefused'))
|
if (!TMDB_PATHS.test(path)) throw new Error(t('err.tmdbRefused'))
|
||||||
|
if (typeof params.query === 'string') params = { ...params, query: searchText(params.query) }
|
||||||
if (k === CLOUD_TMDB) return tmdbViaCloud<T>(path, { language: tmdbLanguage(), ...params })
|
if (k === CLOUD_TMDB) return tmdbViaCloud<T>(path, { language: tmdbLanguage(), ...params })
|
||||||
if (!isPlausibleTmdbKey(k)) throw new Error(t('err.tmdbKeyRefused'))
|
if (!isPlausibleTmdbKey(k)) throw new Error(t('err.tmdbKeyRefused'))
|
||||||
const isBearer = k.length > 40 // jeton de lecture v4 (JWT) vs clé v3 (32 caractères)
|
const isBearer = k.length > 40 // jeton de lecture v4 (JWT) vs clé v3 (32 caractères)
|
||||||
@@ -137,6 +146,7 @@ async function tmdbFetch<T>(path: string, key: string, params: Record<string, st
|
|||||||
headers: isBearer ? { Authorization: `Bearer ${k}` } : {},
|
headers: isBearer ? { Authorization: `Bearer ${k}` } : {},
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
|
signal: timeout(),
|
||||||
})
|
})
|
||||||
if (res.status === 401) throw new Error(t('err.tmdbKeyRefused'))
|
if (res.status === 401) throw new Error(t('err.tmdbKeyRefused'))
|
||||||
if (!res.ok) throw new Error(t('err.tmdbStatus', { status: res.status }))
|
if (!res.ok) throw new Error(t('err.tmdbStatus', { status: res.status }))
|
||||||
@@ -179,7 +189,7 @@ function tmdbToResult(r: TmdbItem, kind: 'movie' | 'tv'): SearchResult | null {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function searchTmdb(query: string, key: string): Promise<SearchResult[]> {
|
export async function searchTmdb(query: string, key: string): Promise<SearchResult[]> {
|
||||||
const data = await tmdbFetch<{ results: TmdbItem[] }>('/search/multi', key, { query: query.slice(0, LIMITS.searchQuery), include_adult: 'false' })
|
const data = await tmdbFetch<{ results: TmdbItem[] }>('/search/multi', key, { query: searchText(query), include_adult: 'false' })
|
||||||
return (Array.isArray(data.results) ? data.results : [])
|
return (Array.isArray(data.results) ? data.results : [])
|
||||||
.filter((r) => r.media_type === 'movie' || r.media_type === 'tv')
|
.filter((r) => r.media_type === 'movie' || r.media_type === 'tv')
|
||||||
.slice(0, 15)
|
.slice(0, 15)
|
||||||
@@ -275,7 +285,8 @@ export async function getTmdbDetails(result: SearchResult, key: string): Promise
|
|||||||
const d = await tmdbFetch<TmdbDetails>(`/${kind}/${id}`, key, { append_to_response: 'watch/providers' })
|
const d = await tmdbFetch<TmdbDetails>(`/${kind}/${id}`, key, { append_to_response: 'watch/providers' })
|
||||||
const guess = guessTmdbType(kind, (d.genres ?? []).map((g) => g.id), d.origin_country ?? [], d.original_language)
|
const guess = guessTmdbType(kind, (d.genres ?? []).map((g) => g.id), d.origin_country ?? [], d.original_language)
|
||||||
const providers = d['watch/providers']?.results
|
const providers = d['watch/providers']?.results
|
||||||
const provider = (providers?.[region()] ?? providers?.FR)?.flatrate?.[0]?.provider_name
|
// Même pays que « Où regarder » (choisi à la main, sinon celui du navigateur)
|
||||||
|
const provider = (providers?.[getWatchRegion()] ?? providers?.FR)?.flatrate?.[0]?.provider_name
|
||||||
const title = (kind === 'movie' ? d.title : d.name) ?? result.title
|
const title = (kind === 'movie' ? d.title : d.name) ?? result.title
|
||||||
const original = kind === 'movie' ? d.original_title : d.original_name
|
const original = kind === 'movie' ? d.original_title : d.original_name
|
||||||
const epRuntime = d.episode_run_time?.[0] || d.last_episode_to_air?.runtime || undefined
|
const epRuntime = d.episode_run_time?.[0] || d.last_episode_to_air?.runtime || undefined
|
||||||
@@ -403,11 +414,13 @@ interface AniMedia {
|
|||||||
genres?: string[]
|
genres?: string[]
|
||||||
seasonYear?: number | null
|
seasonYear?: number | null
|
||||||
startDate?: { year?: number | null }
|
startDate?: { year?: number | null }
|
||||||
title: { romaji?: string | null; english?: string | null; native?: string | null }
|
title?: { romaji?: string | null; english?: string | null; native?: string | null } | null
|
||||||
coverImage?: { medium?: string | null; large?: string | null }
|
coverImage?: { medium?: string | null; large?: string | null }
|
||||||
description?: string | null
|
description?: string | null
|
||||||
countryOfOrigin?: string | null
|
countryOfOrigin?: string | null
|
||||||
averageScore?: number | null
|
averageScore?: number | null
|
||||||
|
/** Demandé seulement par certaines requêtes (recommandations, fiche par id) */
|
||||||
|
isAdult?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
const ANILIST_GENRES: Record<string, string> = {
|
const ANILIST_GENRES: Record<string, string> = {
|
||||||
@@ -450,6 +463,7 @@ export async function searchAniList(query: string): Promise<SearchResult[]> {
|
|||||||
body: JSON.stringify({ query: ANILIST_QUERY, variables: { search: query.slice(0, LIMITS.searchQuery) } }),
|
body: JSON.stringify({ query: ANILIST_QUERY, variables: { search: query.slice(0, LIMITS.searchQuery) } }),
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
|
signal: timeout(),
|
||||||
})
|
})
|
||||||
if (res.status === 429) throw new Error(t('err.anilistRate'))
|
if (res.status === 429) throw new Error(t('err.anilistRate'))
|
||||||
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
||||||
@@ -462,8 +476,8 @@ export async function searchAniList(query: string): Promise<SearchResult[]> {
|
|||||||
function aniToResult(m: AniMedia): SearchResult | null {
|
function aniToResult(m: AniMedia): SearchResult | null {
|
||||||
if (!m || !Number.isInteger(m.id)) return null
|
if (!m || !Number.isInteger(m.id)) return null
|
||||||
const isMovie = m.format === 'MOVIE'
|
const isMovie = m.format === 'MOVIE'
|
||||||
const title = m.title.english || m.title.romaji || m.title.native || '?'
|
const title = m.title?.english || m.title?.romaji || m.title?.native || '?'
|
||||||
const original = m.title.native || m.title.romaji || undefined
|
const original = m.title?.native || m.title?.romaji || undefined
|
||||||
const year = m.seasonYear ?? m.startDate?.year ?? undefined
|
const year = m.seasonYear ?? m.startDate?.year ?? undefined
|
||||||
const type: MediaType = isMovie ? 'film' : 'anime'
|
const type: MediaType = isMovie ? 'film' : 'anime'
|
||||||
return safeResult({
|
return safeResult({
|
||||||
@@ -471,7 +485,7 @@ function aniToResult(m: AniMedia): SearchResult | null {
|
|||||||
externalId: `anilist:${m.id}`,
|
externalId: `anilist:${m.id}`,
|
||||||
title,
|
title,
|
||||||
originalTitle: original && original !== title ? original : undefined,
|
originalTitle: original && original !== title ? original : undefined,
|
||||||
altTitles: [m.title.romaji, m.title.english, m.title.native].filter((x): x is string => !!x).slice(0, 3),
|
altTitles: [m.title?.romaji, m.title?.english, m.title?.native].filter((x): x is string => !!x).slice(0, 3),
|
||||||
year: year ?? undefined,
|
year: year ?? undefined,
|
||||||
thumb: m.coverImage?.medium ?? undefined,
|
thumb: m.coverImage?.medium ?? undefined,
|
||||||
posterUrl: m.coverImage?.large ?? m.coverImage?.medium ?? undefined,
|
posterUrl: m.coverImage?.large ?? m.coverImage?.medium ?? undefined,
|
||||||
@@ -540,18 +554,20 @@ export async function aniListRecommendations(externalId: string): Promise<Search
|
|||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
query: `query ($id: Int) { Media(id: $id) { recommendations(sort: RATING_DESC, perPage: 15) { nodes { mediaRecommendation { ${ANILIST_FIELDS} } } } } }`,
|
query: `query ($id: Int) { Media(id: $id) { recommendations(sort: RATING_DESC, perPage: 15) { nodes { mediaRecommendation { isAdult ${ANILIST_FIELDS} } } } } }`,
|
||||||
variables: { id },
|
variables: { id },
|
||||||
}),
|
}),
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
|
signal: timeout(),
|
||||||
})
|
})
|
||||||
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
||||||
const json = (await res.json()) as { data?: { Media?: { recommendations?: { nodes?: { mediaRecommendation?: AniMedia | null }[] } } } }
|
const json = (await res.json()) as { data?: { Media?: { recommendations?: { nodes?: { mediaRecommendation?: AniMedia | null }[] } } } }
|
||||||
const nodes = json.data?.Media?.recommendations?.nodes
|
const nodes = json.data?.Media?.recommendations?.nodes
|
||||||
return (Array.isArray(nodes) ? nodes : [])
|
return (Array.isArray(nodes) ? nodes : [])
|
||||||
.map((n) => n.mediaRecommendation)
|
.map((n) => n.mediaRecommendation)
|
||||||
.filter((m): m is AniMedia => !!m)
|
// Pas de contenu adulte (comme la recherche, qui demande isAdult: false)
|
||||||
|
.filter((m): m is AniMedia => !!m && !m.isAdult)
|
||||||
.map(aniToResult)
|
.map(aniToResult)
|
||||||
.filter((r): r is SearchResult => r !== null)
|
.filter((r): r is SearchResult => r !== null)
|
||||||
}
|
}
|
||||||
@@ -620,43 +636,6 @@ export async function getTmdbCredits(externalId: string, key: string): Promise<C
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ─────────────────────────── Notes du public ───────────────────────────
|
|
||||||
|
|
||||||
/** Note moyenne TMDB d'un film / d'une série (undefined si trop peu de votes). */
|
|
||||||
export async function getTmdbPublicRating(externalId: string, key: string): Promise<number | undefined> {
|
|
||||||
if (!isSafeExternalId(externalId) || !externalId.startsWith('tmdb:')) return undefined
|
|
||||||
const [, kind, id] = externalId.split(':') as ['tmdb', 'movie' | 'tv', string]
|
|
||||||
const d = await tmdbFetch<TmdbDetails>(`/${kind}/${id}`, key)
|
|
||||||
return tmdbPublicRating(d.vote_average, d.vote_count)
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Notes moyennes AniList (sur 10) pour plusieurs animes d'un coup. */
|
|
||||||
export async function getAniListPublicRatings(ids: number[]): Promise<Map<number, number>> {
|
|
||||||
const out = new Map<number, number>()
|
|
||||||
const clean = ids.filter((n) => Number.isInteger(n) && n > 0).slice(0, 500)
|
|
||||||
for (let i = 0; i < clean.length; i += 50) {
|
|
||||||
const res = await fetch(ANILIST, {
|
|
||||||
method: 'POST',
|
|
||||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
|
||||||
referrerPolicy: 'no-referrer',
|
|
||||||
credentials: 'omit',
|
|
||||||
body: JSON.stringify({
|
|
||||||
query: 'query ($ids: [Int]) { Page(perPage: 50) { media(id_in: $ids, type: ANIME) { id averageScore } } }',
|
|
||||||
variables: { ids: clean.slice(i, i + 50) },
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
|
||||||
const json = (await res.json()) as { data?: { Page?: { media?: { id: number; averageScore?: number | null }[] } } }
|
|
||||||
const media = json.data?.Page?.media
|
|
||||||
for (const m of Array.isArray(media) ? media : []) {
|
|
||||||
if (Number.isInteger(m?.id) && typeof m.averageScore === 'number' && m.averageScore > 0 && m.averageScore <= 100) {
|
|
||||||
out.set(m.id, Math.round(m.averageScore) / 10)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
// ─────────────────────────── Dates de sortie (calendrier) ───────────────────────────
|
// ─────────────────────────── Dates de sortie (calendrier) ───────────────────────────
|
||||||
|
|
||||||
export interface ReleaseInfo {
|
export interface ReleaseInfo {
|
||||||
@@ -712,6 +691,7 @@ export async function getAniListReleases(ids: number[]): Promise<Map<number, Rel
|
|||||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
|
signal: timeout(),
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
query:
|
query:
|
||||||
'query ($ids: [Int]) { Page(perPage: 50) { media(id_in: $ids, type: ANIME) { id startDate { year month day } nextAiringEpisode { episode airingAt } } } }',
|
'query ($ids: [Int]) { Page(perPage: 50) { media(id_in: $ids, type: ANIME) { id startDate { year month day } nextAiringEpisode { episode airingAt } } } }',
|
||||||
@@ -944,6 +924,7 @@ export async function aniListAiring(from: string, to: string, minPopularity = 40
|
|||||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
|
signal: timeout(),
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
query: `query ($start: Int, $end: Int, $page: Int) { Page(page: $page, perPage: 50) { pageInfo { hasNextPage }
|
query: `query ($start: Int, $end: Int, $page: Int) { Page(page: $page, perPage: 50) { pageInfo { hasNextPage }
|
||||||
airingSchedules(airingAt_greater: $start, airingAt_lesser: $end, sort: TIME) { airingAt episode
|
airingSchedules(airingAt_greater: $start, airingAt_lesser: $end, sort: TIME) { airingAt episode
|
||||||
@@ -1005,14 +986,16 @@ export async function getAniListById(externalId: string): Promise<SearchResult |
|
|||||||
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
|
signal: timeout(),
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
query: `query ($id: Int) { Media(id: $id, type: ANIME) {${ANILIST_FIELDS} } }`,
|
query: `query ($id: Int) { Media(id: $id, type: ANIME) { isAdult ${ANILIST_FIELDS} } }`,
|
||||||
variables: { id: Number(externalId.split(':')[1]) },
|
variables: { id: Number(externalId.split(':')[1]) },
|
||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
||||||
const json = (await res.json()) as { data?: { Media?: AniMedia } }
|
const json = (await res.json()) as { data?: { Media?: AniMedia } }
|
||||||
return json.data?.Media ? aniToResult(json.data.Media) : null
|
const m = json.data?.Media
|
||||||
|
return m && !m.isAdult ? aniToResult(m) : null
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Résultat « recherche » TMDB minimal à partir d'une sortie (pour l'ajout rapide). */
|
/** Résultat « recherche » TMDB minimal à partir d'une sortie (pour l'ajout rapide). */
|
||||||
@@ -1097,7 +1080,8 @@ async function tmdbExtras(externalId: string, key: string): Promise<TitleExtras>
|
|||||||
// Une seule requête pour le casting et « Où regarder ». Si le proxy n'accepte pas encore la combinaison
|
// Une seule requête pour le casting et « Où regarder ». Si le proxy n'accepte pas encore la combinaison
|
||||||
// (fonction serveur pas redéployée), on retombe sur le casting seul.
|
// (fonction serveur pas redéployée), on retombe sur le casting seul.
|
||||||
const d = await tmdbFetch<TmdbExtras>(`/${kind}/${id}`, key, { append_to_response: 'credits,watch/providers' }).catch((e: unknown) => {
|
const d = await tmdbFetch<TmdbExtras>(`/${kind}/${id}`, key, { append_to_response: 'credits,watch/providers' }).catch((e: unknown) => {
|
||||||
if (key.trim() !== CLOUD_TMDB) throw e
|
// Seul un refus du paramètre (400) justifie le second essai : hors ligne, 429, 5xx… on ne double pas la requête
|
||||||
|
if (key.trim() !== CLOUD_TMDB || !(e instanceof Error) || e.message !== t('err.tmdbStatus', { status: 400 })) throw e
|
||||||
return tmdbFetch<TmdbExtras>(`/${kind}/${id}`, key, { append_to_response: 'credits' })
|
return tmdbFetch<TmdbExtras>(`/${kind}/${id}`, key, { append_to_response: 'credits' })
|
||||||
})
|
})
|
||||||
const cast = (Array.isArray(d.credits?.cast) ? d.credits!.cast! : [])
|
const cast = (Array.isArray(d.credits?.cast) ? d.credits!.cast! : [])
|
||||||
@@ -1170,6 +1154,7 @@ async function aniListExtras(externalId: string): Promise<TitleExtras> {
|
|||||||
body: JSON.stringify({ query: ANILIST_EXTRAS, variables: { id } }),
|
body: JSON.stringify({ query: ANILIST_EXTRAS, variables: { id } }),
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
|
signal: timeout(),
|
||||||
})
|
})
|
||||||
if (res.status === 429) throw new Error(t('err.anilistRate'))
|
if (res.status === 429) throw new Error(t('err.anilistRate'))
|
||||||
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
||||||
@@ -1212,11 +1197,13 @@ export function getTitleExtras(externalId: string, tmdbKey?: string): Promise<Ti
|
|||||||
if (!isSafeExternalId(externalId)) return Promise.reject(new Error(t('err.tmdbRef')))
|
if (!isSafeExternalId(externalId)) return Promise.reject(new Error(t('err.tmdbRef')))
|
||||||
const isTmdb = externalId.startsWith('tmdb:')
|
const isTmdb = externalId.startsWith('tmdb:')
|
||||||
if (isTmdb && !tmdbKey?.trim()) return Promise.reject(new Error(t('search.animeOnly')))
|
if (isTmdb && !tmdbKey?.trim()) return Promise.reject(new Error(t('search.animeOnly')))
|
||||||
const cached = extrasCache.get(externalId)
|
// La langue fait partie de la clé : changer de langue ne doit pas resservir l'ancienne version
|
||||||
|
const cacheKey = `${externalId}:${tmdbLanguage()}`
|
||||||
|
const cached = extrasCache.get(cacheKey)
|
||||||
if (cached) return cached
|
if (cached) return cached
|
||||||
const p = isTmdb ? tmdbExtras(externalId, tmdbKey!) : aniListExtras(externalId)
|
const p = isTmdb ? tmdbExtras(externalId, tmdbKey!) : aniListExtras(externalId)
|
||||||
extrasCache.set(externalId, p)
|
extrasCache.set(cacheKey, p)
|
||||||
p.catch(() => extrasCache.delete(externalId))
|
p.catch(() => extrasCache.delete(cacheKey))
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1247,7 +1234,7 @@ function tmdbWithPrefill(r: TmdbItem, kind: 'movie' | 'tv'): SearchResult | null
|
|||||||
|
|
||||||
/** Recherche TMDB (films et séries) avec métadonnées de base, dans l'ordre de pertinence de TMDB. */
|
/** Recherche TMDB (films et séries) avec métadonnées de base, dans l'ordre de pertinence de TMDB. */
|
||||||
export async function tmdbImportSearch(query: string, key: string): Promise<SearchResult[]> {
|
export async function tmdbImportSearch(query: string, key: string): Promise<SearchResult[]> {
|
||||||
const data = await tmdbFetch<{ results: TmdbItem[] }>('/search/multi', key, { query: query.slice(0, 100), include_adult: 'false' })
|
const data = await tmdbFetch<{ results: TmdbItem[] }>('/search/multi', key, { query: searchText(query), include_adult: 'false' })
|
||||||
return (Array.isArray(data.results) ? data.results : [])
|
return (Array.isArray(data.results) ? data.results : [])
|
||||||
.filter((r) => r && (r.media_type === 'movie' || r.media_type === 'tv'))
|
.filter((r) => r && (r.media_type === 'movie' || r.media_type === 'tv'))
|
||||||
.slice(0, 20)
|
.slice(0, 20)
|
||||||
|
|||||||
+55
-14
@@ -88,13 +88,25 @@ export const newChallengeId = () => Math.random().toString(36).slice(2, 12).padE
|
|||||||
|
|
||||||
const LOG_MAX_DAYS = 400
|
const LOG_MAX_DAYS = 400
|
||||||
|
|
||||||
/** Nouveau journal après un changement du nombre d'épisodes vus (aujourd'hui). */
|
/**
|
||||||
|
* Nouveau journal après un changement du nombre d'épisodes vus (aujourd'hui).
|
||||||
|
* Épisodes décochés : on les retire des jours les plus récents d'abord (sinon cocher 10 un jour,
|
||||||
|
* en décocher 5 le lendemain puis les recocher compterait 15 épisodes).
|
||||||
|
*/
|
||||||
export function logEpisodes(log: Record<string, number> | undefined, delta: number, day = localDay()): Record<string, number> | undefined {
|
export function logEpisodes(log: Record<string, number> | undefined, delta: number, day = localDay()): Record<string, number> | undefined {
|
||||||
if (!delta) return log
|
if (!delta) return log
|
||||||
const next = { ...(log ?? {}) }
|
const next = { ...(log ?? {}) }
|
||||||
const value = Math.max(0, (next[day] ?? 0) + delta)
|
if (delta > 0) next[day] = Math.min((next[day] ?? 0) + delta, 100000)
|
||||||
if (value) next[day] = Math.min(value, 100000)
|
else {
|
||||||
else delete next[day]
|
let rest = -delta
|
||||||
|
for (const d of Object.keys(next).sort().reverse()) {
|
||||||
|
if (rest <= 0) break
|
||||||
|
const take = Math.min(rest, next[d])
|
||||||
|
rest -= take
|
||||||
|
if (next[d] - take > 0) next[d] -= take
|
||||||
|
else delete next[d]
|
||||||
|
}
|
||||||
|
}
|
||||||
const days = Object.keys(next).sort()
|
const days = Object.keys(next).sort()
|
||||||
for (const d of days.slice(0, Math.max(0, days.length - LOG_MAX_DAYS))) delete next[d]
|
for (const d of days.slice(0, Math.max(0, days.length - LOG_MAX_DAYS))) delete next[d]
|
||||||
return Object.keys(next).length ? next : undefined
|
return Object.keys(next).length ? next : undefined
|
||||||
@@ -143,12 +155,21 @@ export interface ChallengeProgress {
|
|||||||
|
|
||||||
const matches = (item: MediaItem, media: Media) => media === 'all' || item.type === media
|
const matches = (item: MediaItem, media: Media) => media === 'all' || item.type === media
|
||||||
|
|
||||||
/** Nombre compté par jour (pour la date de réussite et le rythme). */
|
/**
|
||||||
|
* Nombre compté par jour (pour la date de réussite et le rythme) : valeurs ponctuelles (`perDay`)
|
||||||
|
* et, pour les estimations réparties sur une période, variations du débit quotidien (`rateDelta`,
|
||||||
|
* +débit au premier jour, −débit le lendemain du dernier) au lieu d'une valeur par jour.
|
||||||
|
*/
|
||||||
function dailyCounts(c: Pick<Challenge, 'media' | 'unit' | 'start' | 'end'>, items: MediaItem[]) {
|
function dailyCounts(c: Pick<Challenge, 'media' | 'unit' | 'start' | 'end'>, items: MediaItem[]) {
|
||||||
const s = toNum(c.start)
|
const s = toNum(c.start)
|
||||||
const e = toNum(c.end)
|
const e = toNum(c.end)
|
||||||
const perDay = new Map<number, number>()
|
const perDay = new Map<number, number>()
|
||||||
|
const rateDelta = new Map<number, number>()
|
||||||
const add = (day: number, n: number) => perDay.set(day, (perDay.get(day) ?? 0) + n)
|
const add = (day: number, n: number) => perDay.set(day, (perDay.get(day) ?? 0) + n)
|
||||||
|
const addRange = (lo: number, hi: number, rate: number) => {
|
||||||
|
rateDelta.set(lo, (rateDelta.get(lo) ?? 0) + rate)
|
||||||
|
rateDelta.set(hi + 1, (rateDelta.get(hi + 1) ?? 0) - rate)
|
||||||
|
}
|
||||||
const entries: CountedEntry[] = []
|
const entries: CountedEntry[] = []
|
||||||
let estimated = false
|
let estimated = false
|
||||||
|
|
||||||
@@ -169,7 +190,7 @@ function dailyCounts(c: Pick<Challenge, 'media' | 'unit' | 'start' | 'end'>, ite
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Épisodes (les films n'en ont pas)
|
// Épisodes (les films n'en ont pas)
|
||||||
if (!TYPE_BY_VALUE[item.type].episodic || item.episodesWatched <= 0) continue
|
if (!TYPE_BY_VALUE[item.type].episodic || (item.episodesWatched <= 0 && !item.rewatchLog)) continue
|
||||||
let amount = 0
|
let amount = 0
|
||||||
let last = ''
|
let last = ''
|
||||||
let partEstimated = false
|
let partEstimated = false
|
||||||
@@ -184,10 +205,18 @@ function dailyCounts(c: Pick<Challenge, 'media' | 'unit' | 'start' | 'end'>, ite
|
|||||||
if (d > last) last = d
|
if (d > last) last = d
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Épisodes revus : comptés le jour où ils ont été vus, sans toucher à l'estimation du premier visionnage
|
||||||
|
for (const [d, n] of Object.entries(item.rewatchLog ?? {})) {
|
||||||
|
if (d >= c.start && d <= c.end) {
|
||||||
|
amount += n
|
||||||
|
add(toNum(d), n)
|
||||||
|
if (d > last) last = d
|
||||||
|
}
|
||||||
|
}
|
||||||
const unlogged = Math.max(0, item.episodesWatched - logged)
|
const unlogged = Math.max(0, item.episodesWatched - logged)
|
||||||
const from = item.startDate ?? item.endDate
|
const from = item.startDate ?? item.endDate
|
||||||
if (unlogged > 0 && from) {
|
if (unlogged > 0 && from) {
|
||||||
let to = item.endDate ?? (logDays[0] ? fromNum(toNum(logDays[0]) - 1) : item.updatedAt.slice(0, 10))
|
let to = item.endDate ?? (logDays[0] ? fromNum(toNum(logDays[0]) - 1) : localDay(new Date(item.updatedAt)))
|
||||||
if (!safeDay(to) || to < from) to = from
|
if (!safeDay(to) || to < from) to = from
|
||||||
const a = toNum(from)
|
const a = toNum(from)
|
||||||
const b = toNum(to)
|
const b = toNum(to)
|
||||||
@@ -195,7 +224,7 @@ function dailyCounts(c: Pick<Challenge, 'media' | 'unit' | 'start' | 'end'>, ite
|
|||||||
const hi = Math.min(b, e)
|
const hi = Math.min(b, e)
|
||||||
if (hi >= lo) {
|
if (hi >= lo) {
|
||||||
const rate = unlogged / (b - a + 1)
|
const rate = unlogged / (b - a + 1)
|
||||||
for (let d = lo; d <= hi; d++) add(d, rate)
|
addRange(lo, hi, rate)
|
||||||
amount += rate * (hi - lo + 1)
|
amount += rate * (hi - lo + 1)
|
||||||
partEstimated = true
|
partEstimated = true
|
||||||
const lastEst = fromNum(hi)
|
const lastEst = fromNum(hi)
|
||||||
@@ -207,22 +236,34 @@ function dailyCounts(c: Pick<Challenge, 'media' | 'unit' | 'start' | 'end'>, ite
|
|||||||
entries.push({ item, date: last, amount: partEstimated ? Math.max(1, Math.round(amount)) : amount, estimated: partEstimated })
|
entries.push({ item, date: last, amount: partEstimated ? Math.max(1, Math.round(amount)) : amount, estimated: partEstimated })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return { perDay, entries, estimated }
|
return { perDay, rateDelta, entries, estimated }
|
||||||
}
|
}
|
||||||
|
|
||||||
export function computeProgress(c: Challenge, items: MediaItem[], today = localDay()): ChallengeProgress {
|
export function computeProgress(c: Challenge, items: MediaItem[], today = localDay()): ChallengeProgress {
|
||||||
const { perDay, entries, estimated } = dailyCounts(c, items)
|
const { perDay, rateDelta, entries, estimated } = dailyCounts(c, items)
|
||||||
const s = toNum(c.start)
|
const s = toNum(c.start)
|
||||||
const e = toNum(c.end)
|
const e = toNum(c.end)
|
||||||
const now = toNum(today)
|
const now = toNum(today)
|
||||||
|
|
||||||
// Cumul jour par jour : date de réussite
|
// Cumul jour par jour : date de réussite. Le total affiché est arrondi : l'objectif est atteint
|
||||||
|
// dès que le cumul arrondi y arrive (même règle que `count`, sinon la date ne correspondrait pas).
|
||||||
|
const goal = c.target - 0.5 - 1e-6
|
||||||
let total = 0
|
let total = 0
|
||||||
|
let rate = 0
|
||||||
|
let next: number | undefined // premier jour pas encore compté
|
||||||
let doneAt: string | undefined
|
let doneAt: string | undefined
|
||||||
const days = [...perDay.keys()].sort((a, b) => a - b)
|
const days = [...new Set([...perDay.keys(), ...rateDelta.keys()])].sort((a, b) => a - b)
|
||||||
for (const d of days) {
|
for (const d of days) {
|
||||||
total += perDay.get(d)!
|
// Jours sans événement depuis le précédent : seul le débit estimé s'ajoute
|
||||||
if (!doneAt && total + 1e-6 >= c.target) doneAt = fromNum(d)
|
if (next !== undefined && d > next && rate > 1e-12) {
|
||||||
|
const span = d - next
|
||||||
|
if (!doneAt && total + rate * span >= goal) doneAt = fromNum(next + Math.max(1, Math.ceil((goal - total) / rate)) - 1)
|
||||||
|
total += rate * span
|
||||||
|
}
|
||||||
|
rate += rateDelta.get(d) ?? 0
|
||||||
|
total += (perDay.get(d) ?? 0) + Math.max(0, rate)
|
||||||
|
if (!doneAt && total >= goal) doneAt = fromNum(d)
|
||||||
|
next = d + 1
|
||||||
}
|
}
|
||||||
const count = Math.round(total)
|
const count = Math.round(total)
|
||||||
const done = count >= c.target
|
const done = count >= c.target
|
||||||
|
|||||||
+36
-8
@@ -1,19 +1,37 @@
|
|||||||
import { t } from '../../i18n'
|
import { t } from '../../i18n'
|
||||||
import { AuthError, getAccessToken } from './auth'
|
import { AuthError, getAccessToken, getSession } from './auth'
|
||||||
import { SUPABASE_ANON_KEY, SUPABASE_URL } from './config'
|
import { SUPABASE_ANON_KEY, SUPABASE_URL, TimeoutError, withTimeout } from './config'
|
||||||
|
|
||||||
|
/** fetch avec un délai maximal (le serveur qui ne répond pas ne bloque jamais l'app). */
|
||||||
|
async function timedFetch(url: string, init: RequestInit = {}): Promise<Response> {
|
||||||
|
try {
|
||||||
|
// Délai proportionnel à la taille de l'envoi (photo, grosse synchro sur une connexion lente : ~5 Ko/s minimum),
|
||||||
|
// et long pour la suppression de compte (le serveur efface tout avant de répondre)
|
||||||
|
const bytes = init.body instanceof Blob ? init.body.size : typeof init.body === 'string' ? init.body.length : 0
|
||||||
|
const ms = url.includes('/functions/v1/delete-account') ? 120_000 : Math.max(20_000, 20_000 + bytes / 5)
|
||||||
|
return await withTimeout((signal) => fetch(url, { ...init, signal }), init.signal, ms)
|
||||||
|
} catch (e) {
|
||||||
|
if (e instanceof TimeoutError) throw new Error(t('common.offline'))
|
||||||
|
throw e
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/** Appel authentifié à Supabase (base de données ou fonctions serveur). Réessaie une fois si le jeton a expiré. */
|
/** Appel authentifié à Supabase (base de données ou fonctions serveur). Réessaie une fois si le jeton a expiré. */
|
||||||
export async function cloudFetch(path: string, init: RequestInit = {}): Promise<Response> {
|
export async function cloudFetch(path: string, init: RequestInit = {}): Promise<Response> {
|
||||||
|
let failed: string | undefined
|
||||||
for (let attempt = 0; attempt < 2; attempt++) {
|
for (let attempt = 0; attempt < 2; attempt++) {
|
||||||
const token = await getAccessToken(attempt > 0)
|
// Après un refus : on ne force le renouvellement que si le jeton refusé est toujours le jeton courant
|
||||||
|
// (plusieurs appels refusés en même temps ne déclenchent qu'un renouvellement, les autres reprennent le nouveau)
|
||||||
|
const token = await getAccessToken(failed !== undefined && getSession()?.accessToken === failed)
|
||||||
if (!token) throw new AuthError(t('auth.err.session'))
|
if (!token) throw new AuthError(t('auth.err.session'))
|
||||||
const res = await fetch(SUPABASE_URL + path, {
|
const res = await timedFetch(SUPABASE_URL + path, {
|
||||||
...init,
|
...init,
|
||||||
headers: { apikey: SUPABASE_ANON_KEY, Authorization: `Bearer ${token}`, ...(init.headers ?? {}) },
|
headers: { apikey: SUPABASE_ANON_KEY, Authorization: `Bearer ${token}`, ...(init.headers ?? {}) },
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
})
|
})
|
||||||
if (res.status !== 401) return res
|
if (res.status !== 401) return res
|
||||||
|
failed = token
|
||||||
}
|
}
|
||||||
throw new AuthError(t('auth.err.session'))
|
throw new AuthError(t('auth.err.session'))
|
||||||
}
|
}
|
||||||
@@ -24,7 +42,7 @@ export async function tmdbViaCloud<T>(path: string, params: Record<string, strin
|
|||||||
// Sans compte (mode découverte) : appel anonyme, limité côté serveur par adresse IP
|
// Sans compte (mode découverte) : appel anonyme, limité côté serveur par adresse IP
|
||||||
const res = (await getAccessToken())
|
const res = (await getAccessToken())
|
||||||
? await cloudFetch(`/functions/v1/tmdb?${q}`)
|
? await cloudFetch(`/functions/v1/tmdb?${q}`)
|
||||||
: await fetch(`${SUPABASE_URL}/functions/v1/tmdb?${q}`, { headers: { apikey: SUPABASE_ANON_KEY }, credentials: 'omit', referrerPolicy: 'no-referrer' })
|
: await timedFetch(`${SUPABASE_URL}/functions/v1/tmdb?${q}`, { headers: { apikey: SUPABASE_ANON_KEY }, credentials: 'omit', referrerPolicy: 'no-referrer' })
|
||||||
if (res.status === 429) throw new Error(t('err.searchRate'))
|
if (res.status === 429) throw new Error(t('err.searchRate'))
|
||||||
if (!res.ok) throw new Error(t('err.tmdbStatus', { status: res.status }))
|
if (!res.ok) throw new Error(t('err.tmdbStatus', { status: res.status }))
|
||||||
return res.json() as Promise<T>
|
return res.json() as Promise<T>
|
||||||
@@ -36,14 +54,24 @@ export type ProxyState = 'ok' | 'missing-key' | 'not-deployed' | 'offline' | 'er
|
|||||||
export async function checkTmdbProxy(): Promise<ProxyState> {
|
export async function checkTmdbProxy(): Promise<ProxyState> {
|
||||||
if (!navigator.onLine) return 'offline'
|
if (!navigator.onLine) return 'offline'
|
||||||
try {
|
try {
|
||||||
const res = await cloudFetch(`/functions/v1/tmdb?${new URLSearchParams({ path: '/configuration' })}`)
|
const path = `/functions/v1/tmdb?${new URLSearchParams({ path: '/configuration' })}`
|
||||||
|
let res: Response
|
||||||
|
try {
|
||||||
|
res = await cloudFetch(path)
|
||||||
|
} catch (e) {
|
||||||
|
// Pas de session valable : ce n'est pas le proxy qui manque, on le teste sans compte (comme la recherche)
|
||||||
|
if (!(e instanceof AuthError)) throw e
|
||||||
|
res = await timedFetch(SUPABASE_URL + path, { headers: { apikey: SUPABASE_ANON_KEY }, credentials: 'omit', referrerPolicy: 'no-referrer' })
|
||||||
|
}
|
||||||
if (res.ok) return 'ok'
|
if (res.ok) return 'ok'
|
||||||
if (res.status === 404) return 'not-deployed'
|
if (res.status === 404) return 'not-deployed'
|
||||||
const body = (await res.json().catch(() => ({}))) as { error?: string; status?: number }
|
const body = (await res.json().catch(() => ({}))) as { error?: string; status?: number }
|
||||||
if (res.status === 500 && body.error?.includes('TMDB_API_KEY')) return 'missing-key'
|
if (res.status === 500 && body.error?.includes('TMDB_API_KEY')) return 'missing-key'
|
||||||
if (res.status === 502 && body.status === 401) return 'missing-key'
|
if (res.status === 502 && body.status === 401) return 'missing-key'
|
||||||
return 'error'
|
return 'error'
|
||||||
} catch {
|
} catch (e) {
|
||||||
return navigator.onLine ? 'not-deployed' : 'offline'
|
if (!navigator.onLine) return 'offline'
|
||||||
|
// Échec réseau (fonction absente) ; un serveur qui ne répond pas à temps n'est pas « non déployé »
|
||||||
|
return e instanceof TypeError ? 'not-deployed' : 'error'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+98
-28
@@ -1,5 +1,5 @@
|
|||||||
import { t, type TKey } from '../../i18n'
|
import { t, type TKey } from '../../i18n'
|
||||||
import { SUPABASE_ANON_KEY, SUPABASE_URL } from './config'
|
import { SUPABASE_ANON_KEY, SUPABASE_URL, withTimeout } from './config'
|
||||||
import { isPwnedPassword } from '../pwned'
|
import { isPwnedPassword } from '../pwned'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -108,17 +108,21 @@ const msg = (code: string) => (CODE_KEYS[code] ? t(CODE_KEYS[code], { n: PASSWOR
|
|||||||
async function gotrue(path: string, init: { method?: string; body?: unknown; token?: string } = {}): Promise<Record<string, unknown>> {
|
async function gotrue(path: string, init: { method?: string; body?: unknown; token?: string } = {}): Promise<Record<string, unknown>> {
|
||||||
let res: Response
|
let res: Response
|
||||||
try {
|
try {
|
||||||
res = await fetch(`${SUPABASE_URL}/auth/v1${path}`, {
|
// Délai maximal : sans réponse, on fait comme hors-ligne plutôt que d'attendre indéfiniment
|
||||||
method: init.method ?? 'POST',
|
res = await withTimeout((signal) =>
|
||||||
headers: {
|
fetch(`${SUPABASE_URL}/auth/v1${path}`, {
|
||||||
apikey: SUPABASE_ANON_KEY,
|
method: init.method ?? 'POST',
|
||||||
'Content-Type': 'application/json',
|
headers: {
|
||||||
...(init.token ? { Authorization: `Bearer ${init.token}` } : {}),
|
apikey: SUPABASE_ANON_KEY,
|
||||||
},
|
'Content-Type': 'application/json',
|
||||||
body: init.body ? JSON.stringify(init.body) : undefined,
|
...(init.token ? { Authorization: `Bearer ${init.token}` } : {}),
|
||||||
credentials: 'omit',
|
},
|
||||||
referrerPolicy: 'no-referrer',
|
body: init.body ? JSON.stringify(init.body) : undefined,
|
||||||
})
|
credentials: 'omit',
|
||||||
|
referrerPolicy: 'no-referrer',
|
||||||
|
signal,
|
||||||
|
}),
|
||||||
|
)
|
||||||
} catch {
|
} catch {
|
||||||
throw new Error(t('common.offline'))
|
throw new Error(t('common.offline'))
|
||||||
}
|
}
|
||||||
@@ -131,8 +135,7 @@ async function gotrue(path: string, init: { method?: string; body?: unknown; tok
|
|||||||
if (!res.ok) {
|
if (!res.ok) {
|
||||||
const code = String(data.error_code ?? data.code ?? data.error ?? '')
|
const code = String(data.error_code ?? data.code ?? data.error ?? '')
|
||||||
const err = new AuthError(msg(code) ?? (res.status === 429 ? t('auth.err.rate') : t('auth.err.status', { status: res.status })))
|
const err = new AuthError(msg(code) ?? (res.status === 429 ? t('auth.err.rate') : t('auth.err.status', { status: res.status })))
|
||||||
;(err as AuthError & { status: number; code: string }).status = res.status
|
;(err as AuthError & { status: number }).status = res.status
|
||||||
;(err as AuthError & { status: number; code: string }).code = code
|
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
return data
|
return data
|
||||||
@@ -160,8 +163,9 @@ export async function signIn(email: string, password: string): Promise<void> {
|
|||||||
setSession(s)
|
setSession(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Crée un compte. Renvoie true si un email de confirmation a été envoyé (pas encore connecté). */
|
/**
|
||||||
/** Inscription. Le pseudo choisi est repris par la base à la création du profil (s'il est libre). */
|
* Inscription. Renvoie true si un email de confirmation a été envoyé (pas encore connecté). Le pseudo choisi est repris par la base à la création du profil (s'il est libre).
|
||||||
|
*/
|
||||||
export async function signUp(email: string, password: string, username?: string): Promise<boolean> {
|
export async function signUp(email: string, password: string, username?: string): Promise<boolean> {
|
||||||
if (password.length < PASSWORD_MIN) throw new AuthError(t('auth.err.weak', { n: PASSWORD_MIN }))
|
if (password.length < PASSWORD_MIN) throw new AuthError(t('auth.err.weak', { n: PASSWORD_MIN }))
|
||||||
if (await isPwnedPassword(password)) throw new AuthError(t('auth.err.pwned'))
|
if (await isPwnedPassword(password)) throw new AuthError(t('auth.err.pwned'))
|
||||||
@@ -190,7 +194,17 @@ export async function updatePassword(password: string): Promise<void> {
|
|||||||
|
|
||||||
/** Déconnexion : invalide la session côté serveur (si possible) et l'efface de l'appareil. */
|
/** Déconnexion : invalide la session côté serveur (si possible) et l'efface de l'appareil. */
|
||||||
export async function signOut(): Promise<void> {
|
export async function signOut(): Promise<void> {
|
||||||
const s = current
|
let s = current
|
||||||
|
// Jeton d'accès expiré (ou presque) : on tente d'abord de le renouveler, sinon le serveur refuserait
|
||||||
|
// la déconnexion et la session resterait ouverte côté serveur. Effacée sur l'appareil quoi qu'il arrive.
|
||||||
|
if (s && navigator.onLine && s.expiresAt - 60_000 <= Date.now()) {
|
||||||
|
try {
|
||||||
|
const next = await refresh()
|
||||||
|
if (next && next.user.id === s.user.id) s = next
|
||||||
|
} catch {
|
||||||
|
/* au mieux */
|
||||||
|
}
|
||||||
|
}
|
||||||
setSession(null)
|
setSession(null)
|
||||||
if (s && navigator.onLine) {
|
if (s && navigator.onLine) {
|
||||||
try {
|
try {
|
||||||
@@ -226,17 +240,34 @@ export async function signInWithGoogle(): Promise<void> {
|
|||||||
location.assign(`${SUPABASE_URL}/auth/v1/authorize?${params}`)
|
location.assign(`${SUPABASE_URL}/auth/v1/authorize?${params}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Retour de Google : adresse avec ?code=… (ou ?error=…). */
|
/** Vérificateur gardé pendant l'aller-retour vers Google (null s'il n'y en a pas). */
|
||||||
export const hasOAuthRedirect = () => /[?&](code|error)=/.test(location.search)
|
function readVerifier(): { verifier?: unknown; at?: unknown } | null {
|
||||||
|
try {
|
||||||
|
const raw = localStorage.getItem(VERIFIER_KEY)
|
||||||
|
const parsed: unknown = raw ? JSON.parse(raw) : null
|
||||||
|
return parsed && typeof parsed === 'object' ? (parsed as { verifier?: unknown; at?: unknown }) : null
|
||||||
|
} catch {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Retour de Google : adresse avec ?code=… (ou ?error=…), seulement si une connexion Google a été lancée
|
||||||
|
* depuis cet appareil (vérificateur présent) — une autre adresse avec ?code= n'est pas un retour de Google.
|
||||||
|
*/
|
||||||
|
export const hasOAuthRedirect = () => /[?&](code|error)=/.test(location.search) && readVerifier() !== null
|
||||||
|
|
||||||
async function consumeOAuthRedirect(): Promise<{ error?: string }> {
|
async function consumeOAuthRedirect(): Promise<{ error?: string }> {
|
||||||
const params = new URLSearchParams(location.search)
|
const params = new URLSearchParams(location.search)
|
||||||
const code = params.get('code') ?? ''
|
const code = params.get('code') ?? ''
|
||||||
const oauthError = params.get('error_description') ?? params.get('error')
|
const oauthError = params.get('error_description') ?? params.get('error')
|
||||||
history.replaceState(null, '', `${location.pathname}#/`)
|
history.replaceState(null, '', `${location.pathname}#/`)
|
||||||
let saved: { verifier?: string; at?: number } = {}
|
const stored = readVerifier()
|
||||||
|
const saved = {
|
||||||
|
verifier: typeof stored?.verifier === 'string' ? stored.verifier : undefined,
|
||||||
|
at: typeof stored?.at === 'number' ? stored.at : undefined,
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
saved = JSON.parse(localStorage.getItem(VERIFIER_KEY) ?? '{}')
|
|
||||||
localStorage.removeItem(VERIFIER_KEY)
|
localStorage.removeItem(VERIFIER_KEY)
|
||||||
} catch {
|
} catch {
|
||||||
/* ignore */
|
/* ignore */
|
||||||
@@ -260,26 +291,65 @@ async function consumeOAuthRedirect(): Promise<{ error?: string }> {
|
|||||||
|
|
||||||
let refreshing: Promise<Session | null> | null = null
|
let refreshing: Promise<Session | null> | null = null
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Session plus récente laissée par un autre onglet (même compte, jeton de renouvellement différent,
|
||||||
|
* ou nouveau jeton d'accès encore valable) : à reprendre plutôt que de renouveler avec un jeton périmé.
|
||||||
|
*/
|
||||||
|
function newerStored(s: Session): Session | null {
|
||||||
|
const stored = load()
|
||||||
|
if (!stored || stored.user.id !== s.user.id) return null
|
||||||
|
// Seulement une session plus récente que la nôtre (si notre propre écriture avait échoué, le stockage est en retard)
|
||||||
|
if (stored.expiresAt <= s.expiresAt) return null
|
||||||
|
if (stored.refreshToken !== s.refreshToken) return stored
|
||||||
|
if (stored.accessToken !== s.accessToken && stored.expiresAt - 60_000 > Date.now()) return stored
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
async function refresh(): Promise<Session | null> {
|
async function refresh(): Promise<Session | null> {
|
||||||
const s = current
|
if (!current) return null
|
||||||
if (!s) return null
|
|
||||||
refreshing ??= (async () => {
|
refreshing ??= (async () => {
|
||||||
|
const s = current
|
||||||
|
if (!s) return null
|
||||||
|
// Un autre onglet a peut-être déjà renouvelé la session (le jeton de renouvellement ne sert qu'une fois)
|
||||||
|
const adopted = newerStored(s)
|
||||||
|
if (adopted) {
|
||||||
|
setSession(adopted)
|
||||||
|
return adopted
|
||||||
|
}
|
||||||
|
const sent = s.refreshToken
|
||||||
try {
|
try {
|
||||||
const data = await gotrue('/token?grant_type=refresh_token', { body: { refresh_token: s.refreshToken } })
|
const data = await gotrue('/token?grant_type=refresh_token', { body: { refresh_token: sent } })
|
||||||
const next = toSession(data)
|
const next = toSession(data)
|
||||||
// Déconnexion (ou autre compte) pendant le renouvellement : on ne ressuscite pas l'ancienne session
|
// Déconnexion (ou autre compte) pendant le renouvellement : on ne ressuscite pas l'ancienne session
|
||||||
if (!next || next.user.id !== s.user.id || current?.user.id !== s.user.id) return null
|
if (!next || next.user.id !== s.user.id || current?.user.id !== s.user.id) return null
|
||||||
|
// Session plus récente entre-temps (nouvelle connexion, autre onglet) : on ne l'écrase pas
|
||||||
|
if (current.refreshToken !== sent) return current
|
||||||
setSession(next)
|
setSession(next)
|
||||||
return next
|
return next
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
// Un autre onglet a renouvelé pendant ce temps : notre jeton était simplement périmé
|
||||||
|
if (current?.user.id === s.user.id && current.refreshToken !== sent) return current
|
||||||
|
const adoptedLate = newerStored(s)
|
||||||
|
if (adoptedLate && current?.user.id === s.user.id) {
|
||||||
|
setSession(adoptedLate)
|
||||||
|
return adoptedLate
|
||||||
|
}
|
||||||
// Jeton de renouvellement refusé (révoqué, compte supprimé…) : on déconnecte
|
// Jeton de renouvellement refusé (révoqué, compte supprimé…) : on déconnecte
|
||||||
const status = (e as { status?: number }).status
|
const status = (e as { status?: number }).status
|
||||||
if ((status === 400 || status === 401 || status === 403) && current?.user.id === s.user.id) setSession(null)
|
const stored = load()
|
||||||
|
if (
|
||||||
|
(status === 400 || status === 401 || status === 403) &&
|
||||||
|
current?.user.id === s.user.id &&
|
||||||
|
current.refreshToken === sent &&
|
||||||
|
(!stored || stored.refreshToken === sent)
|
||||||
|
) {
|
||||||
|
setSession(null)
|
||||||
|
}
|
||||||
return null
|
return null
|
||||||
} finally {
|
|
||||||
refreshing = null
|
|
||||||
}
|
}
|
||||||
})()
|
})().finally(() => {
|
||||||
|
refreshing = null
|
||||||
|
})
|
||||||
return refreshing
|
return refreshing
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -17,3 +17,35 @@ export const cloudEnabled = !!(SUPABASE_URL && SUPABASE_ANON_KEY)
|
|||||||
if (!cloudEnabled && (rawUrl || rawKey)) {
|
if (!cloudEnabled && (rawUrl || rawKey)) {
|
||||||
console.warn('[Kino] .env incomplet ou invalide : les comptes sont désactivés (mode local). Vérifie VITE_SUPABASE_URL et VITE_SUPABASE_ANON_KEY.')
|
console.warn('[Kino] .env incomplet ou invalide : les comptes sont désactivés (mode local). Vérifie VITE_SUPABASE_URL et VITE_SUPABASE_ANON_KEY.')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Délai maximal d'attente d'une réponse du serveur (la déconnexion ou la synchro ne doivent jamais rester bloquées). */
|
||||||
|
export const CLOUD_TIMEOUT_MS = 20_000
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Lance `run` avec un signal qui s'interrompt au bout de `ms` (ou si `signal`, celui de l'appelant, s'interrompt).
|
||||||
|
* Le délai ne court que jusqu'à l'arrivée des en-têtes : la lecture d'une longue réponse n'est pas coupée.
|
||||||
|
* `timedOut()` indique si c'est le délai (et non l'appelant) qui a interrompu l'appel.
|
||||||
|
*/
|
||||||
|
export async function withTimeout<T>(run: (signal: AbortSignal) => Promise<T>, signal?: AbortSignal | null, ms = CLOUD_TIMEOUT_MS): Promise<T> {
|
||||||
|
const ctrl = new AbortController()
|
||||||
|
let expired = false
|
||||||
|
const onAbort = () => ctrl.abort(signal?.reason)
|
||||||
|
if (signal?.aborted) ctrl.abort(signal.reason)
|
||||||
|
else signal?.addEventListener('abort', onAbort, { once: true })
|
||||||
|
const timer = setTimeout(() => {
|
||||||
|
expired = true
|
||||||
|
ctrl.abort()
|
||||||
|
}, ms)
|
||||||
|
try {
|
||||||
|
return await run(ctrl.signal)
|
||||||
|
} catch (e) {
|
||||||
|
if (expired) throw new TimeoutError()
|
||||||
|
throw e
|
||||||
|
} finally {
|
||||||
|
clearTimeout(timer)
|
||||||
|
signal?.removeEventListener('abort', onAbort)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Le serveur n'a pas répondu à temps. */
|
||||||
|
export class TimeoutError extends Error {}
|
||||||
+15
-15
@@ -28,15 +28,8 @@ export const REPORT_DETAILS_MAX = 500
|
|||||||
export const BUG_DESCRIPTION_MIN = 10
|
export const BUG_DESCRIPTION_MIN = 10
|
||||||
export const BUG_DESCRIPTION_MAX = 2000
|
export const BUG_DESCRIPTION_MAX = 2000
|
||||||
|
|
||||||
/** Erreur renvoyée par le serveur, avec son code court (« rate limited », « not found »…). */
|
/** Erreur renvoyée par le serveur (message déjà traduit). */
|
||||||
export class ModerationError extends Error {
|
export class ModerationError extends Error {}
|
||||||
constructor(
|
|
||||||
message: string,
|
|
||||||
readonly code: string,
|
|
||||||
) {
|
|
||||||
super(message)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function rpc<T>(name: string, args: Record<string, unknown> = {}): Promise<T> {
|
async function rpc<T>(name: string, args: Record<string, unknown> = {}): Promise<T> {
|
||||||
const res = await cloudFetch(`/rest/v1/rpc/${name}`, {
|
const res = await cloudFetch(`/rest/v1/rpc/${name}`, {
|
||||||
@@ -49,7 +42,7 @@ async function rpc<T>(name: string, args: Record<string, unknown> = {}): Promise
|
|||||||
const code = typeof body.message === 'string' ? body.message.slice(0, 40) : `http ${res.status}`
|
const code = typeof body.message === 'string' ? body.message.slice(0, 40) : `http ${res.status}`
|
||||||
const msg =
|
const msg =
|
||||||
code === 'rate limited' ? t('report.errRate') : code === 'not found' ? t('report.errNotFound') : res.status === 404 ? t('report.errUnavailable') : t('social.err.server', { status: res.status })
|
code === 'rate limited' ? t('report.errRate') : code === 'not found' ? t('report.errNotFound') : res.status === 404 ? t('report.errUnavailable') : t('social.err.server', { status: res.status })
|
||||||
throw new ModerationError(msg, code)
|
throw new ModerationError(msg)
|
||||||
}
|
}
|
||||||
const text = await res.text()
|
const text = await res.text()
|
||||||
return (text ? JSON.parse(text) : null) as T
|
return (text ? JSON.parse(text) : null) as T
|
||||||
@@ -88,13 +81,18 @@ const listeners = new Set<() => void>()
|
|||||||
const emit = () => listeners.forEach((fn) => fn())
|
const emit = () => listeners.forEach((fn) => fn())
|
||||||
|
|
||||||
/** Charge (une fois par session) la liste des comptes que j'ai bloqués. Silencieux si le serveur n'est pas à jour. */
|
/** Charge (une fois par session) la liste des comptes que j'ai bloqués. Silencieux si le serveur n'est pas à jour. */
|
||||||
export function loadBlocks(force = false): Promise<void> {
|
export function loadBlocks(): Promise<void> {
|
||||||
const uid = getSession()?.user.id
|
const uid = getSession()?.user.id
|
||||||
if (loaded && !force && loadedFor === uid) return loaded
|
if (loaded && loadedFor === uid) return loaded
|
||||||
if (loadedFor !== uid) blocked = []
|
if (loadedFor !== uid) blocked = []
|
||||||
loadedFor = uid
|
loadedFor = uid
|
||||||
loaded = rpc<unknown>('my_blocks')
|
const p: Promise<void> = rpc<unknown>('my_blocks')
|
||||||
.then((rows) => {
|
.then((rows) => {
|
||||||
|
// Réponse arrivée après un changement de compte : elle ne concerne plus le compte ouvert
|
||||||
|
if (loadedFor !== uid || getSession()?.user.id !== uid) {
|
||||||
|
if (loaded === p) loaded = null
|
||||||
|
return
|
||||||
|
}
|
||||||
blocked = (Array.isArray(rows) ? rows : []).flatMap((r) => {
|
blocked = (Array.isArray(rows) ? rows : []).flatMap((r) => {
|
||||||
if (!isPlainObject(r) || typeof r.id !== 'string' || !UUID.test(r.id)) return []
|
if (!isPlainObject(r) || typeof r.id !== 'string' || !UUID.test(r.id)) return []
|
||||||
const username = cleanText(r.username, 20) ?? ''
|
const username = cleanText(r.username, 20) ?? ''
|
||||||
@@ -103,9 +101,11 @@ export function loadBlocks(force = false): Promise<void> {
|
|||||||
emit()
|
emit()
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
/* fonction pas encore déployée / hors-ligne : rien n'est masqué */
|
/* fonction pas encore déployée / hors-ligne : rien n'est masqué, on réessaiera au prochain affichage */
|
||||||
|
if (loaded === p) loaded = null
|
||||||
})
|
})
|
||||||
return loaded
|
loaded = p
|
||||||
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isBlocked = (userId: string | undefined | null) => !!userId && loadedFor === getSession()?.user.id && blocked.some((b) => b.id === userId)
|
export const isBlocked = (userId: string | undefined | null) => !!userId && loadedFor === getSession()?.user.id && blocked.some((b) => b.id === userId)
|
||||||
|
|||||||
@@ -1,108 +0,0 @@
|
|||||||
import { t } from '../../i18n'
|
|
||||||
import { cleanText, isPlainObject, safeIso } from '../security'
|
|
||||||
import { cloudFetch } from './api'
|
|
||||||
import { safeMediaUrl } from './social'
|
|
||||||
|
|
||||||
/** Notifications (cloche) : abonnements, demandes acceptées, réactions reçues. */
|
|
||||||
|
|
||||||
export type NotificationKind =
|
|
||||||
| 'follow_request'
|
|
||||||
| 'follow_accepted'
|
|
||||||
| 'new_follower'
|
|
||||||
| 'reaction'
|
|
||||||
| 'new_episode'
|
|
||||||
| 'new_season'
|
|
||||||
| 'review_comment'
|
|
||||||
| 'shared_list_invite'
|
|
||||||
|
|
||||||
export interface AppNotification {
|
|
||||||
id: number
|
|
||||||
kind: NotificationKind
|
|
||||||
created_at: string
|
|
||||||
read_at: string | null
|
|
||||||
emoji: string | null
|
|
||||||
item_id: string | null
|
|
||||||
/** Numéro du dernier épisode sorti (épisodes) */
|
|
||||||
episode: number | null
|
|
||||||
/** Nombre de nouveaux épisodes (épisodes) */
|
|
||||||
ep_count: number | null
|
|
||||||
actor: { username: string; display_name: string; avatar_url: string | null } | null
|
|
||||||
/** Titre de la fiche concernée (réactions, commentaires, épisodes) ou nom de la liste partagée */
|
|
||||||
title: string | null
|
|
||||||
/** Invitation à une liste partagée : en attente, acceptée, ou plus valable (null) */
|
|
||||||
invite_status: 'pending' | 'accepted' | null
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Épisode/saison à signaler (envoyé après la vérification des sorties). */
|
|
||||||
export interface EpisodeNotice {
|
|
||||||
item_id: string
|
|
||||||
kind: 'new_episode' | 'new_season'
|
|
||||||
/** Dernier épisode sorti */
|
|
||||||
episode: number
|
|
||||||
/** Nombre de nouveaux épisodes */
|
|
||||||
count: number
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Enregistre les nouveaux épisodes des séries suivies (dédoublonné côté serveur). Renvoie le nombre créé. */
|
|
||||||
export async function addEpisodeNotifications(list: EpisodeNotice[]): Promise<number> {
|
|
||||||
if (!list.length) return 0
|
|
||||||
try {
|
|
||||||
const n = await rpc<number>('add_episode_notifications', { p_list: list })
|
|
||||||
return typeof n === 'number' ? n : 0
|
|
||||||
} catch {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function rpc<T>(name: string, args: Record<string, unknown> = {}): Promise<T> {
|
|
||||||
const res = await cloudFetch(`/rest/v1/rpc/${name}`, {
|
|
||||||
method: 'POST',
|
|
||||||
headers: { 'Content-Type': 'application/json' },
|
|
||||||
body: JSON.stringify(args),
|
|
||||||
})
|
|
||||||
if (!res.ok) throw new Error(t('social.err.server', { status: res.status }))
|
|
||||||
return res.json() as Promise<T>
|
|
||||||
}
|
|
||||||
|
|
||||||
const KINDS: NotificationKind[] = ['follow_request', 'follow_accepted', 'new_follower', 'reaction', 'new_episode', 'new_season', 'review_comment', 'shared_list_invite']
|
|
||||||
const num = (v: unknown) => (typeof v === 'number' && Number.isFinite(v) ? v : null)
|
|
||||||
|
|
||||||
/** Réponse du serveur relue champ par champ (adresses d'images comprises), comme pour les profils. */
|
|
||||||
function toNotification(v: unknown): AppNotification | null {
|
|
||||||
if (!isPlainObject(v) || typeof v.id !== 'number' || !KINDS.includes(v.kind as NotificationKind)) return null
|
|
||||||
const created = safeIso(v.created_at)
|
|
||||||
if (!created) return null
|
|
||||||
const a = isPlainObject(v.actor) ? v.actor : null
|
|
||||||
const username = a && typeof a.username === 'string' && /^[a-z0-9_]{3,20}$/.test(a.username) ? a.username : null
|
|
||||||
return {
|
|
||||||
id: v.id,
|
|
||||||
kind: v.kind as NotificationKind,
|
|
||||||
created_at: created,
|
|
||||||
read_at: safeIso(v.read_at) ?? null,
|
|
||||||
emoji: cleanText(v.emoji, 8) ?? null,
|
|
||||||
item_id: cleanText(v.item_id, 64) ?? null,
|
|
||||||
episode: num(v.episode),
|
|
||||||
ep_count: num(v.ep_count),
|
|
||||||
actor: username ? { username, display_name: cleanText(a!.display_name, 40) ?? username, avatar_url: safeMediaUrl(a!.avatar_url) ?? null } : null,
|
|
||||||
title: cleanText(v.title, 300) ?? null,
|
|
||||||
invite_status: v.invite_status === 'pending' || v.invite_status === 'accepted' ? v.invite_status : null,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export const listNotifications = async (offset = 0): Promise<AppNotification[]> => {
|
|
||||||
const raw = await rpc<unknown>('get_notifications', { p_offset: offset })
|
|
||||||
return (Array.isArray(raw) ? raw : []).map(toNotification).filter((n): n is AppNotification => n !== null)
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function unreadCount(): Promise<number> {
|
|
||||||
try {
|
|
||||||
const n = await rpc<number>('notifications_unread')
|
|
||||||
return typeof n === 'number' ? n : 0
|
|
||||||
} catch {
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function markNotificationsRead(): Promise<void> {
|
|
||||||
await rpc('mark_notifications_read')
|
|
||||||
}
|
|
||||||
+31
-9
@@ -162,16 +162,32 @@ export async function getMyProfile(): Promise<Profile | null> {
|
|||||||
return row?.username ? getProfile(row.username) : null
|
return row?.username ? getProfile(row.username) : null
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getProfileItems(userId: string, status: string | null, offset: number): Promise<MediaItem[]> {
|
/** Nombre de lignes renvoyées par le serveur (avant le tri des lignes invalides) : sert au décalage de la page suivante. */
|
||||||
if (!UUID.test(userId)) return []
|
const rawCount = (v: unknown) => (Array.isArray(v) ? v.length : 0)
|
||||||
return toItems(await rpc('get_profile_items', { p_user: userId, p_status: status, p_offset: offset, p_limit: 48 }))
|
|
||||||
|
export const PROFILE_ITEMS_PAGE = 48
|
||||||
|
|
||||||
|
/** Une page de la bibliothèque d'un profil. `received` : lignes reçues du serveur (pour la page suivante). */
|
||||||
|
export async function getProfileItems(userId: string, status: string | null, offset: number): Promise<{ items: MediaItem[]; received: number }> {
|
||||||
|
if (!UUID.test(userId)) return { items: [], received: 0 }
|
||||||
|
const raw = await rpc('get_profile_items', { p_user: userId, p_status: status, p_offset: offset, p_limit: PROFILE_ITEMS_PAGE })
|
||||||
|
return { items: toItems(raw), received: rawCount(raw) }
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getFeed(before?: string): Promise<FeedEntry[]> {
|
export const FEED_PAGE = 30
|
||||||
const raw = await rpc('get_feed', { p_before: before ?? null, p_limit: 30 })
|
|
||||||
if (!Array.isArray(raw)) return []
|
/**
|
||||||
|
* Une page du fil. `received` : lignes reçues du serveur ; `cursor` : date de la dernière ligne reçue
|
||||||
|
* (même invalide), d'où repartir pour la page suivante.
|
||||||
|
*/
|
||||||
|
export async function getFeed(before?: string): Promise<{ entries: FeedEntry[]; received: number; cursor?: string }> {
|
||||||
|
const raw = await rpc('get_feed', { p_before: before ?? null, p_limit: FEED_PAGE })
|
||||||
|
if (!Array.isArray(raw)) return { entries: [], received: 0 }
|
||||||
const out: FeedEntry[] = []
|
const out: FeedEntry[] = []
|
||||||
|
let cursor: string | undefined
|
||||||
for (const r of raw.slice(0, 50)) {
|
for (const r of raw.slice(0, 50)) {
|
||||||
|
// Date brute du serveur (précision à la microseconde) : rien n'est sauté ni répété d'une page à l'autre
|
||||||
|
if (isPlainObject(r) && safeIso(r.created_at)) cursor = r.created_at as string
|
||||||
if (!isPlainObject(r) || !isPlainObject(r.user)) continue
|
if (!isPlainObject(r) || !isPlainObject(r.user)) continue
|
||||||
const item = othersItem(r.item)
|
const item = othersItem(r.item)
|
||||||
const name = username(r.user.username)
|
const name = username(r.user.username)
|
||||||
@@ -186,14 +202,20 @@ export async function getFeed(before?: string): Promise<FeedEntry[]> {
|
|||||||
item,
|
item,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return out
|
return { entries: out, received: raw.length, cursor }
|
||||||
}
|
}
|
||||||
|
|
||||||
const toCards = (raw: unknown) => (Array.isArray(raw) ? raw.slice(0, 100).map(toCard).filter((c): c is ProfileCard => c !== null) : [])
|
const toCards = (raw: unknown) => (Array.isArray(raw) ? raw.slice(0, 100).map(toCard).filter((c): c is ProfileCard => c !== null) : [])
|
||||||
|
|
||||||
export const searchProfiles = async (q: string) => (q.trim().length < 2 ? [] : toCards(await rpc('search_profiles', { q: q.trim().slice(0, 40) })))
|
export const searchProfiles = async (q: string) => (q.trim().length < 2 ? [] : toCards(await rpc('search_profiles', { q: q.trim().slice(0, 40) })))
|
||||||
export const getFollowList = async (userId: string, kind: 'followers' | 'following', offset = 0) =>
|
/** Le serveur renvoie au plus 50 comptes à la fois */
|
||||||
UUID.test(userId) ? toCards(await rpc('get_follow_list', { p_user: userId, p_kind: kind, p_offset: offset })) : []
|
export const FOLLOW_PAGE = 50
|
||||||
|
/** Une page d'abonnés / d'abonnements. `received` : lignes reçues du serveur (pour la page suivante). */
|
||||||
|
export async function getFollowList(userId: string, kind: 'followers' | 'following', offset = 0): Promise<{ cards: ProfileCard[]; received: number }> {
|
||||||
|
if (!UUID.test(userId)) return { cards: [], received: 0 }
|
||||||
|
const raw = await rpc('get_follow_list', { p_user: userId, p_kind: kind, p_offset: offset })
|
||||||
|
return { cards: toCards(raw), received: rawCount(raw) }
|
||||||
|
}
|
||||||
export const getFollowRequests = async () => toCards(await rpc('get_follow_requests'))
|
export const getFollowRequests = async () => toCards(await rpc('get_follow_requests'))
|
||||||
|
|
||||||
// ─── Abonnements ───
|
// ─── Abonnements ───
|
||||||
|
|||||||
+177
-47
@@ -1,10 +1,10 @@
|
|||||||
import { t } from '../../i18n'
|
import { t } from '../../i18n'
|
||||||
import type { CustomList, MediaItem, Settings } from '../../types'
|
import type { CustomList, MediaItem, Settings } from '../../types'
|
||||||
import { normalizeItem, normalizeLists, normalizeSettings } from '../backup'
|
import { normalizeItem, normalizeLists, normalizeSettings } from '../backup'
|
||||||
import { mediaDB, onMediaChange } from '../db'
|
import { mediaDB, onMediaChange, type RemoteDecision } from '../db'
|
||||||
import { blobToPosterDataURL } from '../image'
|
import { blobToPosterDataURL } from '../image'
|
||||||
import { isPlainObject, isSafeId, safeIso } from '../security'
|
import { isPlainObject, isSafeId, safeIso } from '../security'
|
||||||
import { scopedKey } from '../scope'
|
import { getScope, scopedKey } from '../scope'
|
||||||
import { cloudFetch } from './api'
|
import { cloudFetch } from './api'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -15,7 +15,7 @@ import { cloudFetch } from './api'
|
|||||||
* En cas de conflit, la modification la plus récente gagne (vérifié aussi par la base).
|
* En cas de conflit, la modification la plus récente gagne (vérifié aussi par la base).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export type SyncedSettings = Pick<Settings, 'ratingScale' | 'topCategories' | 'accentColor' | 'themeMode' | 'notifPrefs' | 'challenges' | 'statsHiddenMonths'>
|
export type SyncedSettings = Pick<Settings, 'ratingScale' | 'topCategories' | 'accentColor' | 'themeMode' | 'challenges' | 'statsHiddenMonths'>
|
||||||
|
|
||||||
export interface SyncHooks {
|
export interface SyncHooks {
|
||||||
getLists: () => CustomList[]
|
getLists: () => CustomList[]
|
||||||
@@ -42,12 +42,48 @@ interface SyncMeta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const PAGE = 500
|
const PAGE = 500
|
||||||
|
/** Limite d'une fiche côté serveur : 400 000 octets (texte jsonb, un peu plus long que JSON.stringify) → marge. */
|
||||||
const MAX_ROW_BYTES = 380_000
|
const MAX_ROW_BYTES = 380_000
|
||||||
const MAX_BATCH_BYTES = 1_500_000
|
const MAX_BATCH_BYTES = 1_500_000
|
||||||
const OVERLAP_MS = 60_000
|
const OVERLAP_MS = 60_000
|
||||||
|
|
||||||
const jsonHeaders = { 'Content-Type': 'application/json' }
|
const jsonHeaders = { 'Content-Type': 'application/json' }
|
||||||
|
|
||||||
|
/** Taille réelle en octets (UTF-8 : un accent ou un emoji compte pour plusieurs). */
|
||||||
|
const encoder = new TextEncoder()
|
||||||
|
const byteSize = (v: unknown) => encoder.encode(JSON.stringify(v)).length
|
||||||
|
|
||||||
|
/** Data URL → Blob sans fetch (la CSP n'autorise pas `data:` en connect-src). */
|
||||||
|
function dataURLToBlob(url: string): Blob {
|
||||||
|
const comma = url.indexOf(',')
|
||||||
|
const head = url.slice(0, comma)
|
||||||
|
const body = url.slice(comma + 1)
|
||||||
|
const type = head.slice(5).split(';')[0] || 'application/octet-stream'
|
||||||
|
if (!/;base64$/i.test(head)) return new Blob([decodeURIComponent(body)], { type })
|
||||||
|
const bin = atob(body)
|
||||||
|
const bytes = new Uint8Array(bin.length)
|
||||||
|
for (let i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i)
|
||||||
|
return new Blob([bytes], { type })
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Refus du serveur propre à une ligne (et non session expirée, limite de débit…) : inutile de la renvoyer. */
|
||||||
|
const isRowRejected = (e: PushError) =>
|
||||||
|
e.status >= 400 && e.status < 500 && ![401, 403, 404, 408, 429].includes(e.status) &&
|
||||||
|
// Quota du compte atteint : ce n'est pas la fiche qui pose problème, on la garde en attente (elle partira plus tard)
|
||||||
|
!/quota/i.test(e.detail)
|
||||||
|
|
||||||
|
/** Erreur d'envoi, avec le code HTTP. */
|
||||||
|
class PushError extends Error {
|
||||||
|
constructor(
|
||||||
|
readonly status: number,
|
||||||
|
readonly detail = '',
|
||||||
|
) {
|
||||||
|
super(t('sync.err.push', { status }))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const maxIso = (a?: string, b?: string) => (a && b ? (a > b ? a : b) : (a ?? b))
|
||||||
|
|
||||||
export interface SyncEngine {
|
export interface SyncEngine {
|
||||||
start: () => void
|
start: () => void
|
||||||
stop: () => void
|
stop: () => void
|
||||||
@@ -84,14 +120,51 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let meta = loadMeta()
|
let meta = loadMeta()
|
||||||
const saveMeta = () => {
|
/** Entrées de la boîte d'envoi envoyées par cet onglet (clé → horodatage envoyé). */
|
||||||
|
const sent = new Map<string, string>()
|
||||||
|
|
||||||
|
/** Toujours le même compte, pas déconnecté : sinon on n'écrit plus rien sur l'appareil. */
|
||||||
|
const alive = () => !stopped && getScope() === userId
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Un autre onglet du même compte partage cette boîte d'envoi : on relit ce qui est enregistré et on
|
||||||
|
* fusionne (sans écraser ses entrées en attente, sans ressusciter celles que cet onglet a envoyées).
|
||||||
|
*/
|
||||||
|
const mergeStored = () => {
|
||||||
|
const stored = loadMeta()
|
||||||
|
for (const [k, v] of Object.entries(stored.outbox)) {
|
||||||
|
if (sent.get(k) === v) continue
|
||||||
|
if (!meta.outbox[k] || meta.outbox[k] < v) meta.outbox[k] = v
|
||||||
|
}
|
||||||
|
meta.itemsCursor = maxIso(meta.itemsCursor, stored.itemsCursor)
|
||||||
|
meta.listsCursor = maxIso(meta.listsCursor, stored.listsCursor)
|
||||||
|
meta.settingsAt = maxIso(meta.settingsAt, stored.settingsAt)
|
||||||
|
meta.lastSyncAt = maxIso(meta.lastSyncAt, stored.lastSyncAt)
|
||||||
|
}
|
||||||
|
|
||||||
|
const saveMeta = (cursors?: Pick<SyncMeta, 'itemsCursor' | 'listsCursor'>) => {
|
||||||
|
if (!alive()) return
|
||||||
try {
|
try {
|
||||||
|
mergeStored()
|
||||||
|
// Curseur volontairement reculé (fiches à relire) : il ne doit pas être ré-avancé par la fusion
|
||||||
|
if (cursors) Object.assign(meta, cursors)
|
||||||
localStorage.setItem(META_KEY, JSON.stringify(meta))
|
localStorage.setItem(META_KEY, JSON.stringify(meta))
|
||||||
} catch {
|
} catch {
|
||||||
/* ignore */
|
/* ignore */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Retire de la boîte d'envoi ce qui vient de partir (sauf si re-modifié entre-temps). */
|
||||||
|
const done = (keys: string[], snapshot: Record<string, string>) => {
|
||||||
|
for (const k of keys) {
|
||||||
|
if (meta.outbox[k] !== snapshot[k]) continue
|
||||||
|
delete meta.outbox[k]
|
||||||
|
sent.set(k, snapshot[k])
|
||||||
|
}
|
||||||
|
saveMeta()
|
||||||
|
setStatus({})
|
||||||
|
}
|
||||||
|
|
||||||
let status: SyncStatus = { state: 'idle', lastSyncAt: meta.lastSyncAt, pending: Object.keys(meta.outbox).length }
|
let status: SyncStatus = { state: 'idle', lastSyncAt: meta.lastSyncAt, pending: Object.keys(meta.outbox).length }
|
||||||
const listeners = new Set<(s: SyncStatus) => void>()
|
const listeners = new Set<(s: SyncStatus) => void>()
|
||||||
const setStatus = (patch: Partial<SyncStatus>) => {
|
const setStatus = (patch: Partial<SyncStatus>) => {
|
||||||
@@ -110,38 +183,68 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
|
|
||||||
/** Réduit une fiche trop lourde (affiche importée en très haute qualité) avant envoi. */
|
/** Réduit une fiche trop lourde (affiche importée en très haute qualité) avant envoi. */
|
||||||
async function fitForUpload(item: MediaItem): Promise<MediaItem> {
|
async function fitForUpload(item: MediaItem): Promise<MediaItem> {
|
||||||
if (JSON.stringify(item).length <= MAX_ROW_BYTES) return item
|
if (byteSize(item) <= MAX_ROW_BYTES) return item
|
||||||
if (item.poster?.startsWith('data:image')) {
|
if (item.poster?.startsWith('data:image')) {
|
||||||
try {
|
try {
|
||||||
const blob = await (await fetch(item.poster)).blob()
|
const blob = dataURLToBlob(item.poster)
|
||||||
const smaller = { ...item, poster: await blobToPosterDataURL(blob, 360, 0.75) }
|
const smaller = { ...item, poster: await blobToPosterDataURL(blob, 360, 0.75) }
|
||||||
if (JSON.stringify(smaller).length <= MAX_ROW_BYTES) return smaller
|
if (byteSize(smaller) <= MAX_ROW_BYTES) return smaller
|
||||||
} catch {
|
} catch {
|
||||||
/* image illisible */
|
/* image illisible */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const { poster: _poster, ...rest } = item
|
const { poster: _poster, ...rest } = item
|
||||||
const stripped = rest as MediaItem
|
const stripped = rest as MediaItem
|
||||||
return JSON.stringify(stripped).length <= MAX_ROW_BYTES ? stripped : { ...stripped, notes: stripped.notes?.slice(0, 5000), overview: undefined }
|
return byteSize(stripped) <= MAX_ROW_BYTES ? stripped : { ...stripped, notes: stripped.notes?.slice(0, 5000), overview: undefined }
|
||||||
}
|
}
|
||||||
|
|
||||||
async function upsert(table: 'items' | 'lists', rows: { id: string; data: unknown; deleted: boolean; updated_at: string }[]) {
|
type UpRow = { id: string; data: unknown; deleted: boolean; updated_at: string }
|
||||||
|
|
||||||
|
async function send(table: 'items' | 'lists', rows: UpRow[]) {
|
||||||
|
const res = await cloudFetch(`/rest/v1/${table}?on_conflict=user_id,id`, {
|
||||||
|
method: 'POST',
|
||||||
|
headers: { ...jsonHeaders, Prefer: 'resolution=merge-duplicates,return=minimal' },
|
||||||
|
body: JSON.stringify(rows.map((r) => ({ ...r, user_id: userId }))),
|
||||||
|
})
|
||||||
|
if (!res.ok) throw new PushError(res.status, (await res.text().catch(() => '')).slice(0, 500))
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Envoi par paquets ; chaque paquet accepté est aussitôt retiré de la boîte d'envoi (`sentRows`). */
|
||||||
|
async function upsert(table: 'items' | 'lists', rows: UpRow[], sentRows: (rows: UpRow[]) => void) {
|
||||||
// Envoi par paquets de taille raisonnable
|
// Envoi par paquets de taille raisonnable
|
||||||
let batch: typeof rows = []
|
let batch: UpRow[] = []
|
||||||
let size = 0
|
let size = 0
|
||||||
const flush = async () => {
|
const flush = async () => {
|
||||||
if (!batch.length) return
|
if (!batch.length) return
|
||||||
const res = await cloudFetch(`/rest/v1/${table}?on_conflict=user_id,id`, {
|
const current = batch
|
||||||
method: 'POST',
|
|
||||||
headers: { ...jsonHeaders, Prefer: 'resolution=merge-duplicates,return=minimal' },
|
|
||||||
body: JSON.stringify(batch.map((r) => ({ ...r, user_id: userId }))),
|
|
||||||
})
|
|
||||||
if (!res.ok) throw new Error(t('sync.err.push', { status: res.status }))
|
|
||||||
batch = []
|
batch = []
|
||||||
size = 0
|
size = 0
|
||||||
|
try {
|
||||||
|
await send(table, current)
|
||||||
|
} catch (e) {
|
||||||
|
if (!(e instanceof PushError) || !isRowRejected(e)) throw e
|
||||||
|
// Paquet refusé : on renvoie ligne par ligne, une fiche invalide ne bloque pas les autres
|
||||||
|
for (const r of current) {
|
||||||
|
let status = e.status
|
||||||
|
try {
|
||||||
|
if (current.length > 1) {
|
||||||
|
await send(table, [r])
|
||||||
|
sentRows([r])
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
} catch (err) {
|
||||||
|
if (!(err instanceof PushError) || !isRowRejected(err)) throw err
|
||||||
|
status = err.status
|
||||||
|
}
|
||||||
|
console.warn(`[sync] ${table}/${r.id} refusé par le serveur (${status}), ignoré`)
|
||||||
|
sentRows([r])
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
sentRows(current)
|
||||||
}
|
}
|
||||||
for (const r of rows) {
|
for (const r of rows) {
|
||||||
const bytes = JSON.stringify(r).length
|
const bytes = byteSize(r)
|
||||||
if (size + bytes > MAX_BATCH_BYTES || batch.length >= 200) await flush()
|
if (size + bytes > MAX_BATCH_BYTES || batch.length >= 200) await flush()
|
||||||
batch.push(r)
|
batch.push(r)
|
||||||
size += bytes
|
size += bytes
|
||||||
@@ -150,13 +253,15 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function push() {
|
async function push() {
|
||||||
|
// Entrées ajoutées par un autre onglet du même compte : envoyées aussi
|
||||||
|
if (alive()) mergeStored()
|
||||||
const snapshot = { ...meta.outbox }
|
const snapshot = { ...meta.outbox }
|
||||||
const keys = Object.keys(snapshot)
|
const keys = Object.keys(snapshot)
|
||||||
if (!keys.length) return
|
if (!keys.length) return
|
||||||
|
|
||||||
const itemIds = keys.filter((k) => k.startsWith('i:')).map((k) => k.slice(2))
|
const itemIds = keys.filter((k) => k.startsWith('i:')).map((k) => k.slice(2))
|
||||||
if (itemIds.length) {
|
if (itemIds.length) {
|
||||||
const rows = []
|
const rows: UpRow[] = []
|
||||||
for (const id of itemIds) {
|
for (const id of itemIds) {
|
||||||
const item = await mediaDB.get(id)
|
const item = await mediaDB.get(id)
|
||||||
if (item) {
|
if (item) {
|
||||||
@@ -166,7 +271,7 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
rows.push({ id, data: null, deleted: true, updated_at: snapshot[`i:${id}`] })
|
rows.push({ id, data: null, deleted: true, updated_at: snapshot[`i:${id}`] })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await upsert('items', rows)
|
await upsert('items', rows, (sentRows) => done(sentRows.map((r) => `i:${r.id}`), snapshot))
|
||||||
}
|
}
|
||||||
|
|
||||||
const listIds = keys.filter((k) => k.startsWith('l:')).map((k) => k.slice(2))
|
const listIds = keys.filter((k) => k.startsWith('l:')).map((k) => k.slice(2))
|
||||||
@@ -178,6 +283,7 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
const l = current.get(id)
|
const l = current.get(id)
|
||||||
return { id, data: l ?? null, deleted: !l, updated_at: snapshot[`l:${id}`] }
|
return { id, data: l ?? null, deleted: !l, updated_at: snapshot[`l:${id}`] }
|
||||||
}),
|
}),
|
||||||
|
(sentRows) => done(sentRows.map((r) => `l:${r.id}`), snapshot),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -187,13 +293,11 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
headers: { ...jsonHeaders, Prefer: 'resolution=merge-duplicates,return=minimal' },
|
headers: { ...jsonHeaders, Prefer: 'resolution=merge-duplicates,return=minimal' },
|
||||||
body: JSON.stringify({ user_id: userId, data: hooks.getSettings(), updated_at: snapshot.s }),
|
body: JSON.stringify({ user_id: userId, data: hooks.getSettings(), updated_at: snapshot.s }),
|
||||||
})
|
})
|
||||||
if (!res.ok) throw new Error(t('sync.err.push', { status: res.status }))
|
if (!res.ok) throw new PushError(res.status)
|
||||||
meta.settingsAt = snapshot.s
|
meta.settingsAt = maxIso(meta.settingsAt, snapshot.s)
|
||||||
|
// On ne retire que ce qui n'a pas été re-modifié pendant l'envoi
|
||||||
|
done(['s'], snapshot)
|
||||||
}
|
}
|
||||||
|
|
||||||
// On ne retire que ce qui n'a pas été re-modifié pendant l'envoi
|
|
||||||
for (const k of keys) if (meta.outbox[k] === snapshot[k]) delete meta.outbox[k]
|
|
||||||
saveMeta()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// ─── Réception ───
|
// ─── Réception ───
|
||||||
@@ -222,39 +326,61 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
return { rows, cursor: last }
|
return { rows, cursor: last }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Curseur après une réception : les lignes ignorées car une modification locale était en attente sont
|
||||||
|
* relues la prochaine fois (si l'envoi local est refusé par le serveur — version distante plus récente —,
|
||||||
|
* c'est elle qu'il faudra récupérer).
|
||||||
|
*/
|
||||||
|
const heldCursor = (cursor: string | undefined, held: string[]) => {
|
||||||
|
const first = held.length ? held.reduce((a, b) => (a < b ? a : b)) : undefined
|
||||||
|
return first && (!cursor || first < cursor) ? first : undefined
|
||||||
|
}
|
||||||
|
|
||||||
async function pullItems() {
|
async function pullItems() {
|
||||||
const { rows, cursor } = await fetchChanges('items', meta.itemsCursor)
|
const { rows, cursor } = await fetchChanges('items', meta.itemsCursor)
|
||||||
const toPut: MediaItem[] = []
|
if (!alive()) return
|
||||||
const toRemove: string[] = []
|
const remote = new Map<string, Row>()
|
||||||
for (const r of rows) {
|
for (const r of rows) remote.set(r.id, r) // la plus récente (ordre du serveur) l'emporte
|
||||||
if (meta.outbox[`i:${r.id}`]) continue // modification locale en attente : elle passera en priorité
|
const held: string[] = []
|
||||||
const local = await mediaDB.get(r.id)
|
// Décision prise dans la transaction d'écriture (une seule pour toutes les fiches) : la boîte d'envoi
|
||||||
if (r.deleted) {
|
// et la version locale sont relues au dernier moment, une modification faite pendant la réception gagne.
|
||||||
if (local) toRemove.push(r.id)
|
const decide = (id: string, local: MediaItem | undefined): RemoteDecision => {
|
||||||
continue
|
const r = remote.get(id)!
|
||||||
|
if (!alive()) return null
|
||||||
|
if (meta.outbox[`i:${id}`]) {
|
||||||
|
held.push(r.server_updated_at) // modification locale en attente : elle passera en priorité
|
||||||
|
return null
|
||||||
}
|
}
|
||||||
|
if (r.deleted) return local ? 'remove' : null
|
||||||
const item = normalizeItem(r.data)
|
const item = normalizeItem(r.data)
|
||||||
if (!item || item.id !== r.id) continue
|
if (!item || item.id !== id) return null
|
||||||
if (local && local.updatedAt > item.updatedAt) continue
|
if (local && local.updatedAt > item.updatedAt) return null
|
||||||
// Même version : on garde l'affiche locale si le serveur ne l'a pas (fiche allégée à l'envoi)
|
// Même version : on garde l'affiche locale si le serveur ne l'a pas (fiche allégée à l'envoi)
|
||||||
if (local && local.updatedAt === item.updatedAt && !item.poster && local.poster) item.poster = local.poster
|
if (local && local.updatedAt === item.updatedAt && !item.poster && local.poster) item.poster = local.poster
|
||||||
if (local && JSON.stringify(local) === JSON.stringify(item)) continue
|
if (local && JSON.stringify(local) === JSON.stringify(item)) return null
|
||||||
toPut.push(item)
|
return { put: item }
|
||||||
}
|
}
|
||||||
await mediaDB.putMany(toPut, { silent: true })
|
const change = await mediaDB.mergeRemote([...remote.keys()], decide)
|
||||||
await mediaDB.removeMany(toRemove, { silent: true })
|
if (!alive()) return
|
||||||
meta.itemsCursor = safeIso(cursor)
|
meta.itemsCursor = safeIso(cursor)
|
||||||
saveMeta()
|
const back = heldCursor(meta.itemsCursor, held)
|
||||||
if (toPut.length || toRemove.length) hooks.itemsChanged()
|
if (back) meta.itemsCursor = back
|
||||||
|
saveMeta(back ? { itemsCursor: back } : undefined)
|
||||||
|
if (change.put.length || change.removed.length) hooks.itemsChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
async function pullLists() {
|
async function pullLists() {
|
||||||
const { rows, cursor } = await fetchChanges('lists', meta.listsCursor)
|
const { rows, cursor } = await fetchChanges('lists', meta.listsCursor)
|
||||||
|
if (!alive()) return
|
||||||
|
const held: string[] = []
|
||||||
if (rows.length) {
|
if (rows.length) {
|
||||||
const map = new Map(hooks.getLists().map((l) => [l.id, l]))
|
const map = new Map(hooks.getLists().map((l) => [l.id, l]))
|
||||||
let changed = false
|
let changed = false
|
||||||
for (const r of rows) {
|
for (const r of rows) {
|
||||||
if (meta.outbox[`l:${r.id}`]) continue
|
if (meta.outbox[`l:${r.id}`]) {
|
||||||
|
held.push(r.server_updated_at)
|
||||||
|
continue
|
||||||
|
}
|
||||||
if (r.deleted) {
|
if (r.deleted) {
|
||||||
changed = map.delete(r.id) || changed
|
changed = map.delete(r.id) || changed
|
||||||
continue
|
continue
|
||||||
@@ -268,7 +394,9 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
if (changed) hooks.applyLists([...map.values()].sort((a, b) => a.createdAt.localeCompare(b.createdAt)))
|
if (changed) hooks.applyLists([...map.values()].sort((a, b) => a.createdAt.localeCompare(b.createdAt)))
|
||||||
}
|
}
|
||||||
meta.listsCursor = safeIso(cursor)
|
meta.listsCursor = safeIso(cursor)
|
||||||
saveMeta()
|
const back = heldCursor(meta.listsCursor, held)
|
||||||
|
if (back) meta.listsCursor = back
|
||||||
|
saveMeta(back ? { listsCursor: back } : undefined)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function pullSettings() {
|
async function pullSettings() {
|
||||||
@@ -279,6 +407,8 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
const at = safeIso(row?.updated_at)
|
const at = safeIso(row?.updated_at)
|
||||||
if (!row || !at || (meta.settingsAt && at <= meta.settingsAt)) return
|
if (!row || !at || (meta.settingsAt && at <= meta.settingsAt)) return
|
||||||
const s = normalizeSettings(row.data)
|
const s = normalizeSettings(row.data)
|
||||||
|
if (!alive()) return
|
||||||
|
// Les appareils à jour envoient toujours la liste des mois masqués ([] = aucun) ; absente = ancienne version, on n'y touche pas
|
||||||
if (s) hooks.applySettings(s)
|
if (s) hooks.applySettings(s)
|
||||||
meta.settingsAt = at
|
meta.settingsAt = at
|
||||||
saveMeta()
|
saveMeta()
|
||||||
@@ -306,12 +436,12 @@ export function createSync(userId: string, hooks: SyncHooks): SyncEngine {
|
|||||||
} catch (e) {
|
} catch (e) {
|
||||||
pushError = e
|
pushError = e
|
||||||
}
|
}
|
||||||
// Déconnexion pendant la synchro : on n'écrit plus rien dans la base de cet utilisateur
|
// Déconnexion (ou changement de compte) pendant la synchro : on n'écrit plus rien sur l'appareil
|
||||||
if (stopped) return
|
if (!alive()) return
|
||||||
await pullItems()
|
await pullItems()
|
||||||
if (stopped) return
|
if (!alive()) return
|
||||||
await pullLists()
|
await pullLists()
|
||||||
if (stopped) return
|
if (!alive()) return
|
||||||
await pullSettings()
|
await pullSettings()
|
||||||
if (pushError) throw pushError
|
if (pushError) throw pushError
|
||||||
meta.lastSyncAt = new Date().toISOString()
|
meta.lastSyncAt = new Date().toISOString()
|
||||||
|
|||||||
+197
-31
@@ -1,5 +1,5 @@
|
|||||||
import type { MediaItem } from '../types'
|
import type { MediaItem } from '../types'
|
||||||
import { dbNameFor, getScope } from './scope'
|
import { dbNameFor, getScope, scopeEpoch } from './scope'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mini-wrapper IndexedDB sans dépendance.
|
* Mini-wrapper IndexedDB sans dépendance.
|
||||||
@@ -10,6 +10,34 @@ const STORE = 'media'
|
|||||||
|
|
||||||
let dbPromise: Promise<IDBDatabase> | null = null
|
let dbPromise: Promise<IDBDatabase> | null = null
|
||||||
let dbName = ''
|
let dbName = ''
|
||||||
|
/** Base ouverte en cache (pour l'oublier si le navigateur la ferme) */
|
||||||
|
let opened: IDBDatabase | null = null
|
||||||
|
|
||||||
|
/** Bases supprimées → « époque » de l'espace et heure de la suppression (voir isWiped). */
|
||||||
|
const wiped = new Map<string, { epoch: number; at: number }>()
|
||||||
|
/** Une écriture tardive arrive dans les secondes qui suivent ; au-delà (reconnexion…), la base peut renaître. */
|
||||||
|
const WIPE_GUARD_MS = 15_000
|
||||||
|
const markWiped = (name: string) => wiped.set(name, { epoch: scopeEpoch(), at: Date.now() })
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Une écriture tardive (synchro, onglet resté ouvert…) juste après une déconnexion ne doit pas
|
||||||
|
* recréer la base supprimée : tant que l'espace n'a pas changé depuis la suppression, elle reste fermée.
|
||||||
|
*/
|
||||||
|
function isWiped(name: string): boolean {
|
||||||
|
const w = wiped.get(name)
|
||||||
|
if (!w) return false
|
||||||
|
if (w.epoch === scopeEpoch() && Date.now() - w.at < WIPE_GUARD_MS) return true
|
||||||
|
wiped.delete(name) // l'espace a changé depuis, ou la suppression est ancienne : la base peut renaître normalement
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Oublie la base en cache si c'est celle-ci (fermée par le navigateur ou par un autre onglet). */
|
||||||
|
function forget(db: IDBDatabase) {
|
||||||
|
if (opened !== db) return
|
||||||
|
opened = null
|
||||||
|
dbPromise = null
|
||||||
|
dbName = ''
|
||||||
|
}
|
||||||
|
|
||||||
function open(name: string): Promise<IDBDatabase> {
|
function open(name: string): Promise<IDBDatabase> {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
@@ -23,7 +51,16 @@ function open(name: string): Promise<IDBDatabase> {
|
|||||||
store.createIndex('updatedAt', 'updatedAt')
|
store.createIndex('updatedAt', 'updatedAt')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
req.onsuccess = () => resolve(req.result)
|
req.onsuccess = () => {
|
||||||
|
const db = req.result
|
||||||
|
// Suppression / mise à jour demandée ailleurs (autre onglet) : on libère la base pour ne pas la bloquer
|
||||||
|
db.onversionchange = () => {
|
||||||
|
db.close()
|
||||||
|
forget(db)
|
||||||
|
}
|
||||||
|
db.onclose = () => forget(db)
|
||||||
|
resolve(db)
|
||||||
|
}
|
||||||
req.onerror = () => reject(req.error)
|
req.onerror = () => reject(req.error)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -33,10 +70,17 @@ function openDB(): Promise<IDBDatabase> {
|
|||||||
if (!dbPromise || dbName !== name) {
|
if (!dbPromise || dbName !== name) {
|
||||||
closeDB()
|
closeDB()
|
||||||
dbName = name
|
dbName = name
|
||||||
dbPromise = open(name).catch((e) => {
|
const p: Promise<IDBDatabase> = open(name).then(
|
||||||
dbPromise = null
|
(db) => {
|
||||||
throw e
|
if (dbPromise === p) opened = db
|
||||||
})
|
return db
|
||||||
|
},
|
||||||
|
(e) => {
|
||||||
|
if (dbPromise === p) dbPromise = null
|
||||||
|
throw e
|
||||||
|
},
|
||||||
|
)
|
||||||
|
dbPromise = p
|
||||||
}
|
}
|
||||||
return dbPromise
|
return dbPromise
|
||||||
}
|
}
|
||||||
@@ -46,13 +90,24 @@ export function closeDB() {
|
|||||||
const p = dbPromise
|
const p = dbPromise
|
||||||
dbPromise = null
|
dbPromise = null
|
||||||
dbName = ''
|
dbName = ''
|
||||||
|
opened = null
|
||||||
p?.then((db) => db.close()).catch(() => {})
|
p?.then((db) => db.close()).catch(() => {})
|
||||||
}
|
}
|
||||||
|
|
||||||
async function run<T>(mode: IDBTransactionMode, fn: (store: IDBObjectStore) => IDBRequest<T> | void, db?: IDBDatabase): Promise<T> {
|
async function run<T>(mode: IDBTransactionMode, fn: (store: IDBObjectStore) => IDBRequest<T> | void, db?: IDBDatabase, retried = false): Promise<T> {
|
||||||
const database = db ?? (await openDB())
|
const database = db ?? (await openDB())
|
||||||
|
let tx: IDBTransaction
|
||||||
|
try {
|
||||||
|
tx = database.transaction(STORE, mode)
|
||||||
|
} catch (e) {
|
||||||
|
// Base fermée entre-temps (navigateur, autre onglet) : on la rouvre une fois
|
||||||
|
if (!db && !retried && (e as DOMException)?.name === 'InvalidStateError') {
|
||||||
|
forget(database)
|
||||||
|
return run(mode, fn, undefined, true)
|
||||||
|
}
|
||||||
|
throw e
|
||||||
|
}
|
||||||
return new Promise<T>((resolve, reject) => {
|
return new Promise<T>((resolve, reject) => {
|
||||||
const tx = database.transaction(STORE, mode)
|
|
||||||
const req = fn(tx.objectStore(STORE))
|
const req = fn(tx.objectStore(STORE))
|
||||||
tx.oncomplete = () => resolve(req ? req.result : (undefined as T))
|
tx.oncomplete = () => resolve(req ? req.result : (undefined as T))
|
||||||
tx.onerror = () => reject(tx.error)
|
tx.onerror = () => reject(tx.error)
|
||||||
@@ -70,49 +125,158 @@ export function onMediaChange(fn: (c: MediaChange) => void): () => void {
|
|||||||
listeners.add(fn)
|
listeners.add(fn)
|
||||||
return () => listeners.delete(fn)
|
return () => listeners.delete(fn)
|
||||||
}
|
}
|
||||||
const notify = (c: MediaChange, silent?: boolean) => {
|
const notify = (c: MediaChange) => {
|
||||||
if (!silent) for (const fn of listeners) fn(c)
|
for (const fn of listeners) fn(c)
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Opts {
|
// ─── Autres onglets du même appareil ───
|
||||||
/** Écriture venant de la synchro : ne pas la renvoyer au serveur */
|
// Chaque écriture prévient les autres onglets ouverts sur la même base, qui relisent alors leurs fiches.
|
||||||
silent?: boolean
|
let channel: BroadcastChannel | null | undefined
|
||||||
|
function getChannel(): BroadcastChannel | null {
|
||||||
|
if (channel === undefined) {
|
||||||
|
try {
|
||||||
|
channel = typeof BroadcastChannel === 'undefined' ? null : new BroadcastChannel('azuucine-db')
|
||||||
|
} catch {
|
||||||
|
channel = null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return channel
|
||||||
}
|
}
|
||||||
|
const broadcast = (name: string, wipe = false) => {
|
||||||
|
try {
|
||||||
|
getChannel()?.postMessage({ db: name, wipe })
|
||||||
|
} catch {
|
||||||
|
/* ignore */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Écriture faite par un autre onglet dans la base de l'espace actif. */
|
||||||
|
export function onExternalChange(fn: () => void): () => void {
|
||||||
|
const ch = getChannel()
|
||||||
|
if (!ch) return () => {}
|
||||||
|
const handler = (e: MessageEvent) => {
|
||||||
|
const data = e.data as { db?: unknown; wipe?: unknown } | null
|
||||||
|
if (!data || data.db !== dbNameFor(getScope())) return
|
||||||
|
// Base supprimée par un autre onglet (déconnexion) : cet onglet ne doit pas la recréer non plus
|
||||||
|
if (data.wipe === true) {
|
||||||
|
markWiped(data.db)
|
||||||
|
if (data.db === dbName) closeDB()
|
||||||
|
}
|
||||||
|
fn()
|
||||||
|
}
|
||||||
|
ch.addEventListener('message', handler)
|
||||||
|
return () => ch.removeEventListener('message', handler)
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Compteur d'écritures dans cet onglet (début et fin) : une lecture qui l'a vu changer peut être périmée. */
|
||||||
|
let writes = 0
|
||||||
|
export const writeVersion = () => writes
|
||||||
|
|
||||||
|
/** Écriture dans la base active, sauf si elle vient d'être supprimée (no-op). */
|
||||||
|
async function write(fn: (store: IDBObjectStore) => IDBRequest | void, changed: () => boolean = () => true): Promise<boolean> {
|
||||||
|
const name = dbNameFor(getScope())
|
||||||
|
if (isWiped(name)) return false
|
||||||
|
writes++
|
||||||
|
try {
|
||||||
|
await run('readwrite', fn)
|
||||||
|
} finally {
|
||||||
|
writes++ // une lecture commencée pendant l'écriture est aussi périmée
|
||||||
|
}
|
||||||
|
// Rien n'a changé (réception sans nouveauté) : inutile de faire recharger les autres onglets
|
||||||
|
if (changed()) broadcast(name)
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Lecture : une base supprimée reste vide (on ne la recrée pas en l'ouvrant). */
|
||||||
|
const read = <T,>(fn: (store: IDBObjectStore) => IDBRequest<T>, empty: T): Promise<T> =>
|
||||||
|
isWiped(dbNameFor(getScope())) ? Promise.resolve(empty) : run<T>('readonly', fn)
|
||||||
|
|
||||||
|
/** Décision pour une fiche reçue du serveur, prise dans la transaction d'écriture (voir mergeRemote). */
|
||||||
|
export type RemoteDecision = { put: MediaItem } | 'remove' | null
|
||||||
|
|
||||||
export const mediaDB = {
|
export const mediaDB = {
|
||||||
getAll: () => run<MediaItem[]>('readonly', (s) => s.getAll() as IDBRequest<MediaItem[]>),
|
getAll: () => read<MediaItem[]>((s) => s.getAll() as IDBRequest<MediaItem[]>, []),
|
||||||
get: (id: string) => run<MediaItem | undefined>('readonly', (s) => s.get(id) as IDBRequest<MediaItem | undefined>),
|
get: (id: string) => read<MediaItem | undefined>((s) => s.get(id) as IDBRequest<MediaItem | undefined>, undefined),
|
||||||
put: async (item: MediaItem, opts: Opts = {}) => {
|
put: async (item: MediaItem) => {
|
||||||
await run('readwrite', (s) => void s.put(item))
|
if (await write((s) => void s.put(item))) notify({ put: [item], removed: [] })
|
||||||
notify({ put: [item], removed: [] }, opts.silent)
|
|
||||||
},
|
},
|
||||||
putMany: async (items: MediaItem[], opts: Opts = {}) => {
|
putMany: async (items: MediaItem[]) => {
|
||||||
if (!items.length) return
|
if (!items.length) return
|
||||||
await run('readwrite', (s) => {
|
const ok = await write((s) => {
|
||||||
for (const item of items) s.put(item)
|
for (const item of items) s.put(item)
|
||||||
})
|
})
|
||||||
notify({ put: items, removed: [] }, opts.silent)
|
if (ok) notify({ put: items, removed: [] })
|
||||||
},
|
},
|
||||||
remove: async (id: string, opts: Opts = {}) => {
|
remove: async (id: string) => {
|
||||||
await run('readwrite', (s) => void s.delete(id))
|
if (await write((s) => void s.delete(id))) notify({ put: [], removed: [id] })
|
||||||
notify({ put: [], removed: [id] }, opts.silent)
|
|
||||||
},
|
},
|
||||||
removeMany: async (ids: string[], opts: Opts = {}) => {
|
removeMany: async (ids: string[]) => {
|
||||||
if (!ids.length) return
|
if (!ids.length) return
|
||||||
await run('readwrite', (s) => {
|
const ok = await write((s) => {
|
||||||
for (const id of ids) s.delete(id)
|
for (const id of ids) s.delete(id)
|
||||||
})
|
})
|
||||||
notify({ put: [], removed: ids }, opts.silent)
|
if (ok) notify({ put: [], removed: ids })
|
||||||
},
|
},
|
||||||
clear: async (opts: Opts = {}) => {
|
/** Vide la base (clés lues et effacées dans la même transaction). */
|
||||||
const ids = await run<IDBValidKey[]>('readonly', (s) => s.getAllKeys())
|
clear: async () => {
|
||||||
await run('readwrite', (s) => void s.clear())
|
let ids: IDBValidKey[] = []
|
||||||
notify({ put: [], removed: ids.map(String) }, opts.silent)
|
const ok = await write((s) => {
|
||||||
|
const req = s.getAllKeys()
|
||||||
|
req.onsuccess = () => {
|
||||||
|
ids = req.result
|
||||||
|
s.clear()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (ok) notify({ put: [], removed: ids.map(String) })
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Remplace tout le contenu en une seule transaction : si une écriture échoue, rien n'est effacé.
|
||||||
|
* La synchro n'est prévenue qu'une fois la transaction terminée.
|
||||||
|
*/
|
||||||
|
replaceAll: async (items: MediaItem[]) => {
|
||||||
|
let ids: IDBValidKey[] = []
|
||||||
|
const ok = await write((s) => {
|
||||||
|
const req = s.getAllKeys()
|
||||||
|
req.onsuccess = () => {
|
||||||
|
ids = req.result
|
||||||
|
s.clear()
|
||||||
|
for (const item of items) s.put(item)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
if (!ok) return
|
||||||
|
const kept = new Set(items.map((i) => i.id))
|
||||||
|
notify({ put: items, removed: ids.map(String).filter((id) => !kept.has(id)) })
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Fusion de fiches reçues du serveur, en une seule transaction : chaque fiche locale est lue puis
|
||||||
|
* `decide` choisit (au moment de l'écriture, donc après toute modification locale déjà enregistrée)
|
||||||
|
* de l'écraser, de la supprimer ou de la garder. Écriture silencieuse (rien à renvoyer au serveur).
|
||||||
|
*/
|
||||||
|
mergeRemote: async (ids: string[], decide: (id: string, local: MediaItem | undefined) => RemoteDecision): Promise<MediaChange> => {
|
||||||
|
const change: MediaChange = { put: [], removed: [] }
|
||||||
|
if (!ids.length) return change
|
||||||
|
await write((s) => {
|
||||||
|
for (const id of ids) {
|
||||||
|
const req = s.get(id) as IDBRequest<MediaItem | undefined>
|
||||||
|
req.onsuccess = () => {
|
||||||
|
const d = decide(id, req.result)
|
||||||
|
if (d === 'remove') {
|
||||||
|
s.delete(id)
|
||||||
|
change.removed.push(id)
|
||||||
|
} else if (d) {
|
||||||
|
s.put(d.put)
|
||||||
|
change.put.push(d.put)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}, () => change.put.length + change.removed.length > 0)
|
||||||
|
return change
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Lit toutes les fiches d'une autre base (ex. les données « sans compte » de cet appareil). */
|
/** Lit toutes les fiches d'une autre base (ex. les données « sans compte » de cet appareil). */
|
||||||
export async function readOtherDatabase(name: string): Promise<MediaItem[]> {
|
export async function readOtherDatabase(name: string): Promise<MediaItem[]> {
|
||||||
|
if (isWiped(name)) return []
|
||||||
const exists = (await indexedDB.databases?.())?.some((d) => d.name === name)
|
const exists = (await indexedDB.databases?.())?.some((d) => d.name === name)
|
||||||
if (exists === false) return []
|
if (exists === false) return []
|
||||||
const db = await open(name)
|
const db = await open(name)
|
||||||
@@ -125,7 +289,9 @@ export async function readOtherDatabase(name: string): Promise<MediaItem[]> {
|
|||||||
|
|
||||||
/** Supprime complètement une base de l'appareil. */
|
/** Supprime complètement une base de l'appareil. */
|
||||||
export function deleteDatabase(name: string): Promise<void> {
|
export function deleteDatabase(name: string): Promise<void> {
|
||||||
|
markWiped(name)
|
||||||
if (name === dbName) closeDB()
|
if (name === dbName) closeDB()
|
||||||
|
broadcast(name, true)
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
const req = indexedDB.deleteDatabase(name)
|
const req = indexedDB.deleteDatabase(name)
|
||||||
req.onsuccess = req.onerror = req.onblocked = () => resolve()
|
req.onsuccess = req.onerror = req.onblocked = () => resolve()
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ const stack: { current: () => void }[] = []
|
|||||||
if (typeof window !== 'undefined') {
|
if (typeof window !== 'undefined') {
|
||||||
window.addEventListener('keydown', (e) => {
|
window.addEventListener('keydown', (e) => {
|
||||||
if (e.key !== 'Escape' || !stack.length) return
|
if (e.key !== 'Escape' || !stack.length) return
|
||||||
|
// Échap pendant une saisie composée (IME : japonais, chinois…) annule la composition, pas la fenêtre
|
||||||
|
if (e.isComposing || e.keyCode === 229) return
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
stack[stack.length - 1].current()
|
stack[stack.length - 1].current()
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -63,15 +63,17 @@ export function seasonPosition(item: Pick<MediaItem, 'episodesWatched' | 'season
|
|||||||
const start = episodesBeforeSeason(seasons, chosen)
|
const start = episodesBeforeSeason(seasons, chosen)
|
||||||
if (item.episodesWatched === start) return { season: chosen, episode: 0, size: seasons[chosen - 1], before: start }
|
if (item.episodesWatched === start) return { season: chosen, episode: 0, size: seasons[chosen - 1], before: start }
|
||||||
}
|
}
|
||||||
let before = 0
|
const at = (k: number, before: number): SeasonPosition => {
|
||||||
for (let k = 0; k < seasons.length; k++) {
|
|
||||||
const size = seasons[k]
|
const size = seasons[k]
|
||||||
if (item.episodesWatched <= before + size || k === seasons.length - 1) {
|
return { season: k + 1, episode: Math.min(size, Math.max(0, item.episodesWatched - before)), size, before }
|
||||||
return { season: k + 1, episode: Math.min(size, Math.max(0, item.episodesWatched - before)), size, before }
|
|
||||||
}
|
|
||||||
before += size
|
|
||||||
}
|
}
|
||||||
return undefined
|
let before = 0
|
||||||
|
for (let k = 0; k < seasons.length - 1; k++) {
|
||||||
|
if (item.episodesWatched <= before + seasons[k]) return at(k, before)
|
||||||
|
before += seasons[k]
|
||||||
|
}
|
||||||
|
// Au-delà : dernière saison
|
||||||
|
return at(seasons.length - 1, before)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Nombre d'épisodes vus au début de la saison n (1 = première). */
|
/** Nombre d'épisodes vus au début de la saison n (1 = première). */
|
||||||
|
|||||||
@@ -93,6 +93,8 @@ export async function loadMonth(
|
|||||||
const cache = load()
|
const cache = load()
|
||||||
const entry = (cache[key] ??= {})
|
const entry = (cache[key] ??= {})
|
||||||
const failed: ReleaseCategory[] = []
|
const failed: ReleaseCategory[] = []
|
||||||
|
// Catégories récupérées pendant cet appel (fusionnées au cache le plus récent à l'enregistrement)
|
||||||
|
const fetched: Partial<Record<ReleaseCategory, { at: string; list: GlobalRelease[] }>> = {}
|
||||||
if (isBrowsableMonth(key) && navigator.onLine) {
|
if (isBrowsableMonth(key) && navigator.onLine) {
|
||||||
const ttl = monthOffset(key) < 0 ? PAST_FRESH_MS : FRESH_MS
|
const ttl = monthOffset(key) < 0 ? PAST_FRESH_MS : FRESH_MS
|
||||||
const from = `${key}-01`
|
const from = `${key}-01`
|
||||||
@@ -114,7 +116,7 @@ export async function loadMonth(
|
|||||||
job = created
|
job = created
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
entry[c] = { at: new Date().toISOString(), list: await job }
|
entry[c] = fetched[c] = { at: new Date().toISOString(), list: await job }
|
||||||
} catch {
|
} catch {
|
||||||
failed.push(c)
|
failed.push(c)
|
||||||
}
|
}
|
||||||
@@ -126,7 +128,13 @@ export async function loadMonth(
|
|||||||
for (const c of stale.filter((x) => x !== 'anime')) await fetchCat(c)
|
for (const c of stale.filter((x) => x !== 'anime')) await fetchCat(c)
|
||||||
})(),
|
})(),
|
||||||
])
|
])
|
||||||
if (stale.length) save(cache)
|
// Deux chargements en parallèle (deux mois, double rendu…) : chacun relit le cache juste avant
|
||||||
|
// d'enregistrer, sinon le dernier à finir effaçait ce que l'autre venait d'ajouter
|
||||||
|
if (Object.keys(fetched).length) {
|
||||||
|
const latest = load()
|
||||||
|
latest[key] = { ...latest[key], ...fetched }
|
||||||
|
save(latest)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return { releases: cats.flatMap((c) => entry[c]?.list ?? []), failed }
|
return { releases: cats.flatMap((c) => entry[c]?.list ?? []), failed }
|
||||||
}
|
}
|
||||||
+8
-2
@@ -50,9 +50,15 @@ export async function remotePosterToLocal(url: string): Promise<string | undefin
|
|||||||
const safe = safePosterUrl(url)
|
const safe = safePosterUrl(url)
|
||||||
if (!safe || safe.startsWith('data:')) return safe
|
if (!safe || safe.startsWith('data:')) return safe
|
||||||
try {
|
try {
|
||||||
const res = await fetch(safe, { mode: 'cors', credentials: 'omit', referrerPolicy: 'no-referrer' })
|
const res = await fetch(safe, { mode: 'cors', credentials: 'omit', referrerPolicy: 'no-referrer', signal: AbortSignal.timeout(15_000) })
|
||||||
|
// Réponse en erreur ou annoncée trop grosse : on ne lit pas le corps
|
||||||
|
const announced = Number(res.headers.get('Content-Length'))
|
||||||
|
if (!res.ok || (Number.isFinite(announced) && announced > LIMITS.imageFileBytes)) {
|
||||||
|
await res.body?.cancel().catch(() => {})
|
||||||
|
return safe
|
||||||
|
}
|
||||||
const blob = await res.blob()
|
const blob = await res.blob()
|
||||||
if (!res.ok || !blob.type.startsWith('image/') || blob.size > LIMITS.imageFileBytes) return safe
|
if (!blob.type.startsWith('image/') || blob.size > LIMITS.imageFileBytes) return safe
|
||||||
return await blobToPosterDataURL(blob)
|
return await blobToPosterDataURL(blob)
|
||||||
} catch {
|
} catch {
|
||||||
return safe
|
return safe
|
||||||
|
|||||||
+100
-23
@@ -1,5 +1,5 @@
|
|||||||
import { t } from '../../i18n'
|
import { t } from '../../i18n'
|
||||||
import { ANILIST, ANILIST_FIELDS, aniToResult, CLOUD_TMDB, getTmdbDetails, tmdbFindExternal, tmdbImportSearch, type AniMedia, type SearchResult } from '../catalogApi'
|
import { ANILIST, ANILIST_FIELDS, aniToResult, CLOUD_TMDB, getTmdbDetails, sanitizeMeta, tmdbFindExternal, tmdbImportSearch, type AniMedia, type SearchResult } from '../catalogApi'
|
||||||
import type { MediaInput } from '../../types'
|
import type { MediaInput } from '../../types'
|
||||||
import { anilistEntries, titleKey, type AniListEntry, type ImportEntry } from './sources'
|
import { anilistEntries, titleKey, type AniListEntry, type ImportEntry } from './sources'
|
||||||
|
|
||||||
@@ -35,17 +35,59 @@ const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms))
|
|||||||
// ─── Cache des correspondances (données publiques uniquement) ───
|
// ─── Cache des correspondances (données publiques uniquement) ───
|
||||||
|
|
||||||
const CACHE_KEY = 'azuucine:import-match'
|
const CACHE_KEY = 'azuucine:import-match'
|
||||||
const CACHE_MAX = 4000
|
const CACHE_MAX = 1500
|
||||||
let cache: Record<string, SearchResult> | null = null
|
/** Taille max du cache une fois sérialisé (caractères) : il ne doit pas remplir le stockage de l'appli. */
|
||||||
|
const CACHE_BUDGET = 1_000_000
|
||||||
|
/** Une correspondance plus vieille que 30 jours est oubliée (titres, affiches et saisons évoluent). */
|
||||||
|
const CACHE_TTL = 30 * 24 * 3600_000
|
||||||
|
|
||||||
function loadCache(): Record<string, SearchResult> {
|
/** Forme compacte en cache : juste de quoi reconstruire la correspondance (pas de vignette, pas de doublons). */
|
||||||
|
interface CachedMatch {
|
||||||
|
id: string
|
||||||
|
t: string
|
||||||
|
o?: string
|
||||||
|
y?: number
|
||||||
|
p?: string
|
||||||
|
g: SearchResult['typeGuess']
|
||||||
|
m?: Partial<MediaInput>
|
||||||
|
/** Titres alternatifs (rapprochement des franchises à la fusion) */
|
||||||
|
a?: string[]
|
||||||
|
at: number
|
||||||
|
}
|
||||||
|
|
||||||
|
let cache: Record<string, CachedMatch> | null = null
|
||||||
|
|
||||||
|
function compact(r: SearchResult, at = Date.now()): CachedMatch {
|
||||||
|
// Ces champs sont déjà dans le résultat : inutile de les garder deux fois
|
||||||
|
const { title: _t, originalTitle: _o, year: _y, externalId: _e, poster: _p, ...rest } = r.prefill ?? {}
|
||||||
|
void [_t, _o, _y, _e, _p]
|
||||||
|
return { id: r.externalId, t: r.title, o: r.originalTitle, y: r.year, p: r.posterUrl, g: r.typeGuess, m: r.prefill ? rest : undefined, a: r.altTitles?.length ? r.altTitles : undefined, at }
|
||||||
|
}
|
||||||
|
|
||||||
|
function expand(c: CachedMatch): SearchResult {
|
||||||
|
const prefill = c.m ? sanitizeMeta({ ...c.m, title: c.t, originalTitle: c.o, year: c.y, externalId: c.id, poster: c.p }) : undefined
|
||||||
|
return { source: 'tmdb', externalId: c.id, title: c.t, originalTitle: c.o, year: c.y, posterUrl: c.p, kindLabel: '', typeGuess: c.g, altTitles: Array.isArray(c.a) ? c.a.filter((x): x is string => typeof x === 'string').slice(0, 3) : undefined, prefill }
|
||||||
|
}
|
||||||
|
|
||||||
|
const isCached = (v: unknown): v is CachedMatch => {
|
||||||
|
const c = v as CachedMatch
|
||||||
|
return !!c && typeof c === 'object' && typeof c.id === 'string' && c.id.startsWith('tmdb:') && typeof c.t === 'string' && typeof c.at === 'number' && typeof c.g === 'string'
|
||||||
|
}
|
||||||
|
|
||||||
|
function loadCache(): Record<string, CachedMatch> {
|
||||||
if (cache) return cache
|
if (cache) return cache
|
||||||
cache = Object.create(null) as Record<string, SearchResult>
|
cache = Object.create(null) as Record<string, CachedMatch>
|
||||||
try {
|
try {
|
||||||
const raw = JSON.parse(localStorage.getItem(CACHE_KEY) ?? '{}') as unknown
|
const raw = JSON.parse(localStorage.getItem(CACHE_KEY) ?? '{}') as unknown
|
||||||
if (raw && typeof raw === 'object' && !Array.isArray(raw)) {
|
if (raw && typeof raw === 'object' && !Array.isArray(raw)) {
|
||||||
|
const now = Date.now()
|
||||||
for (const [k, v] of Object.entries(raw as Record<string, unknown>)) {
|
for (const [k, v] of Object.entries(raw as Record<string, unknown>)) {
|
||||||
if (v && typeof v === 'object' && typeof (v as SearchResult).externalId === 'string') cache[k] = v as SearchResult
|
if (isCached(v)) {
|
||||||
|
if (now - v.at < CACHE_TTL) cache[k] = v
|
||||||
|
} else if (v && typeof v === 'object' && typeof (v as SearchResult).externalId === 'string' && (v as SearchResult).externalId.startsWith('tmdb:') && typeof (v as SearchResult).title === 'string') {
|
||||||
|
// Ancien format (résultat complet) : converti, et compté comme récent
|
||||||
|
cache[k] = compact(v as SearchResult, now)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
@@ -57,9 +99,20 @@ function loadCache(): Record<string, SearchResult> {
|
|||||||
function saveCache() {
|
function saveCache() {
|
||||||
if (!cache) return
|
if (!cache) return
|
||||||
try {
|
try {
|
||||||
const keys = Object.keys(cache)
|
const now = Date.now()
|
||||||
if (keys.length > CACHE_MAX) for (const k of keys.slice(0, keys.length - CACHE_MAX)) delete cache[k]
|
for (const [k, v] of Object.entries(cache)) if (now - v.at >= CACHE_TTL) delete cache[k]
|
||||||
localStorage.setItem(CACHE_KEY, JSON.stringify(cache))
|
// Les plus anciennes d'abord : ce sont elles qu'on retire quand c'est trop gros
|
||||||
|
const keys = Object.keys(cache).sort((a, b) => cache![a].at - cache![b].at)
|
||||||
|
let drop = Math.max(0, keys.length - CACHE_MAX)
|
||||||
|
for (;;) {
|
||||||
|
for (const k of keys.splice(0, drop)) delete cache[k]
|
||||||
|
const json = JSON.stringify(cache)
|
||||||
|
if (json.length <= CACHE_BUDGET || !keys.length) {
|
||||||
|
localStorage.setItem(CACHE_KEY, json)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
drop = Math.max(1, Math.ceil(keys.length / 5))
|
||||||
|
}
|
||||||
} catch {
|
} catch {
|
||||||
/* stockage plein ou bloqué : tant pis pour le cache */
|
/* stockage plein ou bloqué : tant pis pour le cache */
|
||||||
}
|
}
|
||||||
@@ -94,10 +147,17 @@ const isRateError = (e: unknown) => {
|
|||||||
/** Exécute les tâches avec au plus `size` en parallèle. */
|
/** Exécute les tâches avec au plus `size` en parallèle. */
|
||||||
async function pool<T>(list: T[], size: number, token: CancelToken, fn: (x: T) => Promise<void>) {
|
async function pool<T>(list: T[], size: number, token: CancelToken, fn: (x: T) => Promise<void>) {
|
||||||
let i = 0
|
let i = 0
|
||||||
|
// Un travailleur en échec (ex. hors ligne) arrête les autres : inutile de continuer à vider la liste
|
||||||
|
let failed = false
|
||||||
const worker = async () => {
|
const worker = async () => {
|
||||||
while (i < list.length) {
|
while (i < list.length) {
|
||||||
if (token.cancelled) throw new CancelledError()
|
if (token.cancelled || failed) throw new CancelledError()
|
||||||
await fn(list[i++])
|
try {
|
||||||
|
await fn(list[i++])
|
||||||
|
} catch (e) {
|
||||||
|
failed = true
|
||||||
|
throw e
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
await Promise.all(Array.from({ length: Math.min(size, list.length) }, worker))
|
await Promise.all(Array.from({ length: Math.min(size, list.length) }, worker))
|
||||||
@@ -117,7 +177,8 @@ export function bestTmdbMatch(results: SearchResult[], entry: Pick<ImportEntry,
|
|||||||
const close = cands.filter((r) => r.year != null && Math.abs(r.year - y) <= 1)
|
const close = cands.filter((r) => r.year != null && Math.abs(r.year - y) <= 1)
|
||||||
return exact.find(same) ?? close.find(same) ?? exact[0] ?? close[0]
|
return exact.find(same) ?? close.find(same) ?? exact[0] ?? close[0]
|
||||||
}
|
}
|
||||||
return cands.find(same) ?? cands[0]
|
// Sans année, le premier résultat venu peut être n'importe quoi : on exige le même titre
|
||||||
|
return cands.find(same)
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Requête TMDB avec reprise automatique quand la limite de débit est atteinte. */
|
/** Requête TMDB avec reprise automatique quand la limite de débit est atteinte. */
|
||||||
@@ -150,6 +211,7 @@ async function anilistPost<T>(query: string, variables: Record<string, unknown>)
|
|||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
body: JSON.stringify({ query, variables }),
|
body: JSON.stringify({ query, variables }),
|
||||||
|
signal: AbortSignal.timeout(15_000),
|
||||||
})
|
})
|
||||||
if (res.status === 429) throw new Error('rate')
|
if (res.status === 429) throw new Error('rate')
|
||||||
const json = (await res.json().catch(() => ({}))) as { data?: T; errors?: { message?: string; status?: number }[] }
|
const json = (await res.json().catch(() => ({}))) as { data?: T; errors?: { message?: string; status?: number }[] }
|
||||||
@@ -267,26 +329,38 @@ export async function resolveEntries(entries: ImportEntry[], opts: ResolveOption
|
|||||||
const c = loadCache()
|
const c = loadCache()
|
||||||
let sinceSave = 0
|
let sinceSave = 0
|
||||||
const lang = document.documentElement.lang || 'x'
|
const lang = document.documentElement.lang || 'x'
|
||||||
|
// Jeton interne : annulé par l'utilisateur, ou dès qu'un travailleur échoue (hors ligne) pour que les autres
|
||||||
|
// arrêtent d'attendre / de réessayer. Le jeton de l'appelant n'est pas modifié : l'erreur reste affichée.
|
||||||
|
let stopped = false
|
||||||
|
const tk: CancelToken = {
|
||||||
|
get cancelled() {
|
||||||
|
return token.cancelled || stopped
|
||||||
|
},
|
||||||
|
set cancelled(v: boolean) {
|
||||||
|
token.cancelled = v
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
await pool(viaTmdb, 4, token, async (e) => {
|
await pool(viaTmdb, 4, tk, async (e) => {
|
||||||
try {
|
try {
|
||||||
const cacheKey = e.tvdbId ? `tvdb:${e.tvdbId}:${lang}` : e.imdbId ? `imdb:${e.imdbId}:${lang}` : `${e.kind}:${titleKey(e.title)}|${e.year ?? ''}:${lang}`
|
const cacheKey = e.tvdbId ? `tvdb:${e.tvdbId}:${lang}` : e.imdbId ? `imdb:${e.imdbId}:${lang}` : `${e.kind}:${titleKey(e.title)}|${e.year ?? ''}:${lang}`
|
||||||
let result: SearchResult | undefined = c[cacheKey]
|
const hit = c[cacheKey]
|
||||||
|
let result: SearchResult | undefined = hit ? expand(hit) : undefined
|
||||||
if (!result && (e.tvdbId || e.imdbId)) {
|
if (!result && (e.tvdbId || e.imdbId)) {
|
||||||
await rate(token)
|
await rate(tk)
|
||||||
result = await withRetry(() => tmdbFindExternal(e.tvdbId ?? e.imdbId!, e.tvdbId ? 'tvdb_id' : 'imdb_id', key), token, onWait).catch((err) => {
|
result = await withRetry(() => tmdbFindExternal(e.tvdbId ?? e.imdbId!, e.tvdbId ? 'tvdb_id' : 'imdb_id', key), tk, onWait).catch((err) => {
|
||||||
if (err instanceof CancelledError) throw err
|
if (err instanceof CancelledError) throw err
|
||||||
return undefined // ancien serveur sans /find, ou identifiant inconnu : recherche par titre
|
return undefined // ancien serveur sans /find, ou identifiant inconnu : recherche par titre
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (!result && !e.title.startsWith('#')) {
|
if (!result && !e.title.startsWith('#')) {
|
||||||
await rate(token)
|
await rate(tk)
|
||||||
const list = await withRetry(() => tmdbImportSearch(e.title, key), token, onWait)
|
const list = await withRetry(() => tmdbImportSearch(e.title, key), tk, onWait)
|
||||||
result = bestTmdbMatch(list, e)
|
result = bestTmdbMatch(list, e)
|
||||||
}
|
}
|
||||||
if (!result) return
|
if (!result) return
|
||||||
if (!c[cacheKey]) {
|
if (!hit) {
|
||||||
c[cacheKey] = result
|
c[cacheKey] = compact(result)
|
||||||
if (++sinceSave >= 25) {
|
if (++sinceSave >= 25) {
|
||||||
sinceSave = 0
|
sinceSave = 0
|
||||||
saveCache()
|
saveCache()
|
||||||
@@ -295,8 +369,8 @@ export async function resolveEntries(entries: ImportEntry[], opts: ResolveOption
|
|||||||
let meta: Partial<MediaInput> = { ...result.prefill, poster: result.posterUrl }
|
let meta: Partial<MediaInput> = { ...result.prefill, poster: result.posterUrl }
|
||||||
// Séries : saisons et nombre d'épisodes, pour reprendre la progression
|
// Séries : saisons et nombre d'épisodes, pour reprendre la progression
|
||||||
if (result.externalId.startsWith('tmdb:tv:')) {
|
if (result.externalId.startsWith('tmdb:tv:')) {
|
||||||
await rate(token)
|
await rate(tk)
|
||||||
const details = await withRetry(() => getTmdbDetails(result!, key), token, onWait).catch((err) => {
|
const details = await withRetry(() => getTmdbDetails(result!, key), tk, onWait).catch((err) => {
|
||||||
if (err instanceof CancelledError) throw err
|
if (err instanceof CancelledError) throw err
|
||||||
return undefined
|
return undefined
|
||||||
})
|
})
|
||||||
@@ -305,7 +379,10 @@ export async function resolveEntries(entries: ImportEntry[], opts: ResolveOption
|
|||||||
found.set(e.key, { result, meta })
|
found.set(e.key, { result, meta })
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof CancelledError) throw err
|
if (err instanceof CancelledError) throw err
|
||||||
if (!navigator.onLine) throw new Error(t('search.offline'))
|
if (!navigator.onLine) {
|
||||||
|
stopped = true
|
||||||
|
throw new Error(t('search.offline'))
|
||||||
|
}
|
||||||
// Erreur ponctuelle sur un titre : il sera compté comme « non trouvé »
|
// Erreur ponctuelle sur un titre : il sera compté comme « non trouvé »
|
||||||
} finally {
|
} finally {
|
||||||
step()
|
step()
|
||||||
|
|||||||
+13
-6
@@ -2,6 +2,8 @@ import type { MediaItem, MediaType, TopCategory, TopEntry, WatchStatus } from '.
|
|||||||
import { ALL_TOP_CATEGORIES } from './constants'
|
import { ALL_TOP_CATEGORIES } from './constants'
|
||||||
import { cleanText, isSafeExternalId, isSafeTmdbPath, LIMITS, safeCountries, safeDay, safeIso, safeStringList } from './security'
|
import { cleanText, isSafeExternalId, isSafeTmdbPath, LIMITS, safeCountries, safeDay, safeIso, safeStringList } from './security'
|
||||||
import { splitGenres } from './catalogApi'
|
import { splitGenres } from './catalogApi'
|
||||||
|
// Import circulaire sans risque : normalizeItem n'est appelée qu'à l'exécution, jamais au chargement du module
|
||||||
|
import { normalizeItem } from './backup'
|
||||||
import { normalizeText } from './utils'
|
import { normalizeText } from './utils'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -99,7 +101,8 @@ export function convertLegacyBackup(data: LegacyFile): { items: MediaItem[]; ski
|
|||||||
|
|
||||||
// Épisodes vus par fiche
|
// Épisodes vus par fiche
|
||||||
const eps = new Map<number, LegacyEpisode[]>()
|
const eps = new Map<number, LegacyEpisode[]>()
|
||||||
for (const e of data.episodes ?? []) {
|
// Fichier non fiable : chaque liste peut manquer ou ne pas être un tableau
|
||||||
|
for (const e of Array.isArray(data.episodes) ? data.episodes : []) {
|
||||||
if (!e || !(e.watched === 1 || e.watched === true)) continue
|
if (!e || !(e.watched === 1 || e.watched === true)) continue
|
||||||
const list = eps.get(e.item_id) ?? []
|
const list = eps.get(e.item_id) ?? []
|
||||||
list.push(e)
|
list.push(e)
|
||||||
@@ -113,7 +116,8 @@ export function convertLegacyBackup(data: LegacyFile): { items: MediaItem[]; ski
|
|||||||
.map((t) => [t.id, cleanText(t.name, LIMITS.shortText)] as const),
|
.map((t) => [t.id, cleanText(t.name, LIMITS.shortText)] as const),
|
||||||
)
|
)
|
||||||
const itemTags = new Map<number, string[]>()
|
const itemTags = new Map<number, string[]>()
|
||||||
for (const it of data.item_tags ?? []) {
|
for (const it of Array.isArray(data.item_tags) ? data.item_tags : []) {
|
||||||
|
if (!it || typeof it !== 'object') continue
|
||||||
const name = tagNames.get(it.tag_id)
|
const name = tagNames.get(it.tag_id)
|
||||||
if (!name) continue
|
if (!name) continue
|
||||||
itemTags.set(it.item_id, [...(itemTags.get(it.item_id) ?? []), name])
|
itemTags.set(it.item_id, [...(itemTags.get(it.item_id) ?? []), name])
|
||||||
@@ -121,8 +125,8 @@ export function convertLegacyBackup(data: LegacyFile): { items: MediaItem[]; ski
|
|||||||
|
|
||||||
// Tops 5 par catégorie
|
// Tops 5 par catégorie
|
||||||
const tops = new Map<number, TopEntry>()
|
const tops = new Map<number, TopEntry>()
|
||||||
for (const t of data.top5 ?? []) {
|
for (const t of Array.isArray(data.top5) ? data.top5 : []) {
|
||||||
if (ALL_TOP_CATEGORIES.includes(t.category as TopCategory) && t.position >= 1 && t.position <= 5) {
|
if (t && typeof t === 'object' && ALL_TOP_CATEGORIES.includes(t.category as TopCategory) && t.position >= 1 && t.position <= 5) {
|
||||||
tops.set(t.item_id, { category: t.category as TopCategory, rank: t.position })
|
tops.set(t.item_id, { category: t.category as TopCategory, rank: t.position })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -173,7 +177,8 @@ export function convertLegacyBackup(data: LegacyFile): { items: MediaItem[]; ski
|
|||||||
const note = typeof r.note === 'number' && Number.isFinite(r.note) && r.note > 0 ? Math.min(10, Math.round(r.note * 2 * 2) / 2) : undefined
|
const note = typeof r.note === 'number' && Number.isFinite(r.note) && r.note > 0 ? Math.min(10, Math.round(r.note * 2 * 2) / 2) : undefined
|
||||||
const created = toISO(r.date_added) ?? now
|
const created = toISO(r.date_added) ?? now
|
||||||
|
|
||||||
items.push({
|
// Même validation que les sauvegardes Kino (bornes, formats, champs inconnus retirés)
|
||||||
|
const item = normalizeItem({
|
||||||
id: `legacy-${r.id}`,
|
id: `legacy-${r.id}`,
|
||||||
title,
|
title,
|
||||||
originalTitle: r.original_title && r.original_title !== title ? r.original_title : undefined,
|
originalTitle: r.original_title && r.original_title !== title ? r.original_title : undefined,
|
||||||
@@ -208,7 +213,9 @@ export function convertLegacyBackup(data: LegacyFile): { items: MediaItem[]; ski
|
|||||||
})(),
|
})(),
|
||||||
createdAt: created,
|
createdAt: created,
|
||||||
updatedAt: toISO(r.watch_date) ?? created,
|
updatedAt: toISO(r.watch_date) ?? created,
|
||||||
})
|
} satisfies MediaItem)
|
||||||
|
if (item) items.push(item)
|
||||||
|
else skipped++
|
||||||
}
|
}
|
||||||
return { items, skipped }
|
return { items, skipped }
|
||||||
}
|
}
|
||||||
+8
-5
@@ -1,4 +1,4 @@
|
|||||||
import { t } from '../i18n'
|
import { t, tmdbLanguage } from '../i18n'
|
||||||
import { ANILIST, ANILIST_FIELDS, aniToResult, tmdbFetch, tmdbToResult, TMDB_IMG, type AniMedia, type SearchResult, type TmdbItem } from './catalogApi'
|
import { ANILIST, ANILIST_FIELDS, aniToResult, tmdbFetch, tmdbToResult, TMDB_IMG, type AniMedia, type SearchResult, type TmdbItem } from './catalogApi'
|
||||||
import { cleanText, isSafeTmdbPath, safePosterUrl } from './security'
|
import { cleanText, isSafeTmdbPath, safePosterUrl } from './security'
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ interface TmdbPersonHit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function searchTmdbPeople(query: string, key: string): Promise<PersonHit[]> {
|
async function searchTmdbPeople(query: string, key: string): Promise<PersonHit[]> {
|
||||||
const data = await tmdbFetch<{ results?: TmdbPersonHit[] }>('/search/person', key, { query: query.slice(0, 100), include_adult: 'false' })
|
const data = await tmdbFetch<{ results?: TmdbPersonHit[] }>('/search/person', key, { query, include_adult: 'false' })
|
||||||
return (Array.isArray(data.results) ? data.results : [])
|
return (Array.isArray(data.results) ? data.results : [])
|
||||||
.slice(0, 12)
|
.slice(0, 12)
|
||||||
.map((p): PersonHit | null => {
|
.map((p): PersonHit | null => {
|
||||||
@@ -105,6 +105,7 @@ async function aniQuery<T>(query: string, variables: Record<string, unknown>): P
|
|||||||
body: JSON.stringify({ query, variables }),
|
body: JSON.stringify({ query, variables }),
|
||||||
referrerPolicy: 'no-referrer',
|
referrerPolicy: 'no-referrer',
|
||||||
credentials: 'omit',
|
credentials: 'omit',
|
||||||
|
signal: AbortSignal.timeout(12_000),
|
||||||
})
|
})
|
||||||
if (res.status === 429) throw new Error(t('err.anilistRate'))
|
if (res.status === 429) throw new Error(t('err.anilistRate'))
|
||||||
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
||||||
@@ -333,11 +334,13 @@ const personCache = new Map<string, Promise<PersonDetails>>()
|
|||||||
export function getPerson(id: string, tmdbKey?: string): Promise<PersonDetails> {
|
export function getPerson(id: string, tmdbKey?: string): Promise<PersonDetails> {
|
||||||
if (!isPersonId(id)) return Promise.reject(new Error(t('person.notFound')))
|
if (!isPersonId(id)) return Promise.reject(new Error(t('person.notFound')))
|
||||||
if (id.startsWith('tmdbp:') && !tmdbKey?.trim()) return Promise.reject(new Error(t('search.animeOnly')))
|
if (id.startsWith('tmdbp:') && !tmdbKey?.trim()) return Promise.reject(new Error(t('search.animeOnly')))
|
||||||
const cached = personCache.get(id)
|
// Clé avec la langue : biographie et titres changent avec elle
|
||||||
|
const cacheKey = `${id}:${tmdbLanguage()}`
|
||||||
|
const cached = personCache.get(cacheKey)
|
||||||
if (cached) return cached
|
if (cached) return cached
|
||||||
const p = id.startsWith('tmdbp:') ? tmdbPerson(id, tmdbKey!) : aniPerson(id)
|
const p = id.startsWith('tmdbp:') ? tmdbPerson(id, tmdbKey!) : aniPerson(id)
|
||||||
personCache.set(id, p)
|
personCache.set(cacheKey, p)
|
||||||
p.catch(() => personCache.delete(id))
|
p.catch(() => personCache.delete(cacheKey))
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
|
|
||||||
+5
-2
@@ -21,7 +21,8 @@ export function episodesPatch(
|
|||||||
const today = todayISO()
|
const today = todayISO()
|
||||||
|
|
||||||
if (watched > 0) {
|
if (watched > 0) {
|
||||||
if (!item.startDate || item.episodesWatched === 0) patch.startDate = item.episodesWatched === 0 ? today : item.startDate ?? today
|
// Premier épisode coché (ou date de début manquante) : début aujourd'hui
|
||||||
|
if (!item.startDate || item.episodesWatched === 0) patch.startDate = today
|
||||||
if (item.status === 'a_voir' || item.status === 'pause') patch.status = 'en_cours'
|
if (item.status === 'a_voir' || item.status === 'pause') patch.status = 'en_cours'
|
||||||
} else {
|
} else {
|
||||||
patch.startDate = undefined
|
patch.startDate = undefined
|
||||||
@@ -33,7 +34,9 @@ export function episodesPatch(
|
|||||||
patch.status = 'termine'
|
patch.status = 'termine'
|
||||||
// Date de fin = le jour où l'on coche le dernier épisode
|
// Date de fin = le jour où l'on coche le dernier épisode
|
||||||
patch.endDate = item.status === 'termine' && item.endDate ? item.endDate : today
|
patch.endDate = item.status === 'termine' && item.endDate ? item.endDate : today
|
||||||
} else if (watched > 0 && item.status === 'termine' && watched < item.episodesWatched) {
|
} else if (watched > 0 && item.status === 'termine' && (watched < item.episodesWatched || (cap && watched > item.episodesWatched))) {
|
||||||
|
// Terminé, puis un épisode décoché… ou coché alors que de nouveaux épisodes sont sortis
|
||||||
|
// (série en cours dont le total a augmenté) : la fiche repasse « En cours »
|
||||||
patch.status = 'en_cours'
|
patch.status = 'en_cours'
|
||||||
patch.endDate = undefined
|
patch.endDate = undefined
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-201
@@ -1,210 +1,21 @@
|
|||||||
import { getLang } from '../i18n'
|
|
||||||
import { cloudFetch } from './cloud/api'
|
|
||||||
import { cloudEnabled } from './cloud/config'
|
|
||||||
import { detectPlatform } from './pwa'
|
|
||||||
import { scopedKey } from './scope'
|
|
||||||
import { isPlainObject, storageGet, storageSet } from './security'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notifications push (Web Push) sur cet appareil :
|
* Les notifications ont été retirées de l'app (novembre 2026).
|
||||||
* - la permission n'est demandée qu'au clic sur l'interrupteur (jamais au chargement) ;
|
* Un appareil qui les avait activées garde un abonnement dans son navigateur : on le résilie
|
||||||
* - l'abonnement du navigateur est enregistré sur le serveur (register_push_subscription) ;
|
* au lancement, pour qu'il ne reste rien. Le serveur, lui, n'en envoie plus aucune.
|
||||||
* - le serveur envoie ensuite les notifications de la cloche, même app fermée.
|
|
||||||
*/
|
*/
|
||||||
|
export async function dropPushSubscription(): Promise<void> {
|
||||||
export type PushSupport = 'ok' | 'unsupported' | 'needs-install'
|
|
||||||
export type PushState = 'unsupported' | 'needs-install' | 'denied' | 'off' | 'on'
|
|
||||||
|
|
||||||
export class PushError extends Error {
|
|
||||||
constructor(public code: 'denied' | 'not-ready' | 'failed') {
|
|
||||||
super(code)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Dernier enregistrement réussi (par compte) */
|
|
||||||
const storeKey = () => scopedKey('push')
|
|
||||||
const REFRESH_MS = 7 * 24 * 3600 * 1000
|
|
||||||
|
|
||||||
function isStandalone(): boolean {
|
|
||||||
return window.matchMedia?.('(display-mode: standalone)').matches || (navigator as { standalone?: boolean }).standalone === true
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Ce navigateur sait-il recevoir des notifications push ? (iPhone : seulement l'app installée, iOS 16.4+) */
|
|
||||||
export function pushSupport(): PushSupport {
|
|
||||||
if (!cloudEnabled || typeof window === 'undefined') return 'unsupported'
|
|
||||||
const api = 'serviceWorker' in navigator && 'PushManager' in window && 'Notification' in window
|
|
||||||
if (detectPlatform() === 'ios' && (!isStandalone() || !api)) return 'needs-install'
|
|
||||||
return api ? 'ok' : 'unsupported'
|
|
||||||
}
|
|
||||||
|
|
||||||
function withTimeout<T>(p: Promise<T>, ms: number): Promise<T> {
|
|
||||||
return new Promise((resolve, reject) => {
|
|
||||||
const timer = setTimeout(() => reject(new PushError('failed')), ms)
|
|
||||||
p.then(
|
|
||||||
(v) => {
|
|
||||||
clearTimeout(timer)
|
|
||||||
resolve(v)
|
|
||||||
},
|
|
||||||
(e) => {
|
|
||||||
clearTimeout(timer)
|
|
||||||
reject(e)
|
|
||||||
},
|
|
||||||
)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Service worker actif (absent en mode développement : on n'attend pas indéfiniment). */
|
|
||||||
const registration = () => withTimeout(navigator.serviceWorker.ready, 8000)
|
|
||||||
|
|
||||||
async function currentSubscription(): Promise<PushSubscription | null> {
|
|
||||||
const reg = await navigator.serviceWorker.getRegistration()
|
|
||||||
return (await reg?.pushManager.getSubscription()) ?? null
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function getPushState(): Promise<PushState> {
|
|
||||||
const support = pushSupport()
|
|
||||||
if (support !== 'ok') return support
|
|
||||||
if (Notification.permission === 'denied') return 'denied'
|
|
||||||
if (Notification.permission !== 'granted') return 'off'
|
|
||||||
try {
|
try {
|
||||||
return (await currentSubscription()) ? 'on' : 'off'
|
if (!('serviceWorker' in navigator) || !('PushManager' in window)) return
|
||||||
|
const reg = await navigator.serviceWorker.getRegistration()
|
||||||
|
const sub = await reg?.pushManager.getSubscription()
|
||||||
|
await sub?.unsubscribe()
|
||||||
} catch {
|
} catch {
|
||||||
return 'off'
|
/* rien à faire */
|
||||||
}
|
}
|
||||||
}
|
// Ancien état local des notifications push
|
||||||
|
|
||||||
function b64urlToBytes(s: string): Uint8Array<ArrayBuffer> {
|
|
||||||
const b64 = s.replace(/-/g, '+').replace(/_/g, '/')
|
|
||||||
const bin = atob(b64 + '='.repeat((4 - (b64.length % 4)) % 4))
|
|
||||||
const out = new Uint8Array(new ArrayBuffer(bin.length))
|
|
||||||
for (let i = 0; i < bin.length; i++) out[i] = bin.charCodeAt(i)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
function bytesToB64url(buf: ArrayBuffer | null): string {
|
|
||||||
if (!buf) return ''
|
|
||||||
let s = ''
|
|
||||||
for (const b of new Uint8Array(buf)) s += String.fromCharCode(b)
|
|
||||||
return btoa(s).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '')
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Clé publique VAPID du serveur (la clé privée ne quitte jamais Supabase). */
|
|
||||||
async function serverKey(): Promise<string> {
|
|
||||||
let res: Response
|
|
||||||
try {
|
try {
|
||||||
res = await cloudFetch('/functions/v1/send-push')
|
for (const k of Object.keys(localStorage)) if (/^azuucine:(?:[^:]+:)?push$/.test(k)) localStorage.removeItem(k)
|
||||||
} catch {
|
} catch {
|
||||||
throw new PushError('failed')
|
/* stockage indisponible */
|
||||||
}
|
}
|
||||||
if (res.status === 404 || res.status === 503) throw new PushError('not-ready')
|
|
||||||
if (!res.ok) throw new PushError('failed')
|
|
||||||
const body = (await res.json().catch(() => null)) as unknown
|
|
||||||
const key = isPlainObject(body) && typeof body.publicKey === 'string' ? body.publicKey : ''
|
|
||||||
if (!/^B[A-Za-z0-9_-]{86}$/.test(key)) throw new PushError('not-ready')
|
|
||||||
return key
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Petit libellé de l'appareil (« Chrome · Android ») pour s'y retrouver côté serveur. */
|
|
||||||
function deviceLabel(): string {
|
|
||||||
const ua = navigator.userAgent
|
|
||||||
const browser = /Edg\//.test(ua) ? 'Edge' : /Firefox\//.test(ua) ? 'Firefox' : /Chrome\//.test(ua) ? 'Chrome' : /Safari\//.test(ua) ? 'Safari' : 'Web'
|
|
||||||
const p = detectPlatform()
|
|
||||||
const os = p === 'ios' ? 'iOS' : p === 'android' ? 'Android' : /Windows/.test(ua) ? 'Windows' : /Mac/.test(ua) ? 'macOS' : /Linux|CrOS/.test(ua) ? 'Linux' : ''
|
|
||||||
return os ? `${browser} · ${os}` : browser
|
|
||||||
}
|
|
||||||
|
|
||||||
async function register(sub: PushSubscription): Promise<void> {
|
|
||||||
const lang = getLang()
|
|
||||||
const res = await cloudFetch('/rest/v1/rpc/register_push_subscription', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: { 'Content-Type': 'application/json' },
|
|
||||||
body: JSON.stringify({
|
|
||||||
p_endpoint: sub.endpoint,
|
|
||||||
p_p256dh: bytesToB64url(sub.getKey('p256dh')),
|
|
||||||
p_auth: bytesToB64url(sub.getKey('auth')),
|
|
||||||
p_lang: lang,
|
|
||||||
p_ua: deviceLabel(),
|
|
||||||
}),
|
|
||||||
})
|
|
||||||
if (res.status === 404) throw new PushError('not-ready')
|
|
||||||
if (!res.ok) throw new PushError('failed')
|
|
||||||
storageSet(storeKey(), JSON.stringify({ endpoint: sub.endpoint, lang, at: Date.now() }))
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Active les notifications push sur cet appareil. À appeler uniquement depuis un clic. */
|
|
||||||
export async function enablePush(): Promise<PushState> {
|
|
||||||
const support = pushSupport()
|
|
||||||
if (support !== 'ok') return support
|
|
||||||
const permission = await Notification.requestPermission()
|
|
||||||
if (permission === 'denied') throw new PushError('denied')
|
|
||||||
if (permission !== 'granted') return 'off'
|
|
||||||
|
|
||||||
const key = await serverKey()
|
|
||||||
const reg = await registration()
|
|
||||||
let sub = await reg.pushManager.getSubscription()
|
|
||||||
// Abonnement créé avec une autre clé serveur (clés VAPID changées) : on le refait
|
|
||||||
if (sub && sub.options.applicationServerKey && bytesToB64url(sub.options.applicationServerKey) !== key) {
|
|
||||||
await sub.unsubscribe().catch(() => false)
|
|
||||||
sub = null
|
|
||||||
}
|
|
||||||
if (!sub) {
|
|
||||||
try {
|
|
||||||
sub = await reg.pushManager.subscribe({ userVisibleOnly: true, applicationServerKey: b64urlToBytes(key) })
|
|
||||||
} catch {
|
|
||||||
throw new PushError(Notification.permission === 'denied' ? 'denied' : 'failed')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
try {
|
|
||||||
await register(sub)
|
|
||||||
} catch (e) {
|
|
||||||
await sub.unsubscribe().catch(() => false)
|
|
||||||
throw e instanceof PushError ? e : new PushError('failed')
|
|
||||||
}
|
|
||||||
return 'on'
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Coupe les notifications push sur cet appareil (et retire l'appareil du serveur). */
|
|
||||||
export async function disablePush(): Promise<void> {
|
|
||||||
if (pushSupport() !== 'ok') return
|
|
||||||
const sub = await currentSubscription().catch(() => null)
|
|
||||||
storageSet(storeKey(), null)
|
|
||||||
if (!sub) return
|
|
||||||
try {
|
|
||||||
await cloudFetch('/rest/v1/rpc/unregister_push_subscription', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: { 'Content-Type': 'application/json' },
|
|
||||||
body: JSON.stringify({ p_endpoint: sub.endpoint }),
|
|
||||||
})
|
|
||||||
} catch {
|
|
||||||
/* hors-ligne : le serveur oubliera l'abonnement au premier envoi refusé (410) */
|
|
||||||
}
|
|
||||||
await sub.unsubscribe().catch(() => false)
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Désabonne seulement le navigateur (compte supprimé : le serveur a déjà tout effacé). */
|
|
||||||
export async function forgetPushLocally(): Promise<void> {
|
|
||||||
storageSet(storeKey(), null)
|
|
||||||
if (pushSupport() !== 'ok') return
|
|
||||||
const sub = await currentSubscription().catch(() => null)
|
|
||||||
await sub?.unsubscribe().catch(() => false)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Au lancement : réenregistre l'abonnement si le navigateur l'a renouvelé, si la langue a changé,
|
|
||||||
* ou une fois par semaine (le serveur garde ainsi les appareils réellement utilisés).
|
|
||||||
*/
|
|
||||||
export async function keepPushFresh(): Promise<void> {
|
|
||||||
if (pushSupport() !== 'ok' || Notification.permission !== 'granted' || !navigator.onLine) return
|
|
||||||
const sub = await currentSubscription().catch(() => null)
|
|
||||||
if (!sub) return
|
|
||||||
let saved: unknown = null
|
|
||||||
try {
|
|
||||||
saved = JSON.parse(storageGet(storeKey()) ?? 'null')
|
|
||||||
} catch {
|
|
||||||
/* ignore */
|
|
||||||
}
|
|
||||||
// Pas d'enregistrement connu : l'abonnement n'a pas été créé par ce compte, on n'y touche pas
|
|
||||||
if (!isPlainObject(saved)) return
|
|
||||||
const fresh = saved.endpoint === sub.endpoint && saved.lang === getLang() && typeof saved.at === 'number' && Date.now() - saved.at < REFRESH_MS
|
|
||||||
if (!fresh) await register(sub).catch(() => {})
|
|
||||||
}
|
}
|
||||||
+12
-6
@@ -3,7 +3,7 @@ import type { MediaItem } from '../types'
|
|||||||
import { loadAiring, trackable, CACHE_EVENT } from './airing'
|
import { loadAiring, trackable, CACHE_EVENT } from './airing'
|
||||||
import { getAniListReleases, getTmdbRelease, type ReleaseInfo } from './catalogApi'
|
import { getAniListReleases, getTmdbRelease, type ReleaseInfo } from './catalogApi'
|
||||||
import { isPlainObject, isSafeExternalId, isSafeId, readStorage, safeDay, safeIso } from './security'
|
import { isPlainObject, isSafeExternalId, isSafeId, readStorage, safeDay, safeIso } from './security'
|
||||||
import { localDay, todayISO } from './utils'
|
import { localDay } from './utils'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calendrier des sorties :
|
* Calendrier des sorties :
|
||||||
@@ -15,7 +15,6 @@ export interface CalendarEvent {
|
|||||||
date: string // AAAA-MM-JJ
|
date: string // AAAA-MM-JJ
|
||||||
item: MediaItem
|
item: MediaItem
|
||||||
label: string
|
label: string
|
||||||
kind: 'episode' | 'release'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type ReleaseCache = Record<string, ReleaseInfo & { checkedAt: string }>
|
type ReleaseCache = Record<string, ReleaseInfo & { checkedAt: string }>
|
||||||
@@ -86,28 +85,35 @@ export async function refreshReleases(items: MediaItem[], tmdbKey?: string, forc
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Fiches retirées de la bibliothèque : leurs sorties ne servent plus (le cache ne grossit plus sans fin)
|
||||||
|
// (bibliothèque vide = pas encore chargée : on ne touche à rien)
|
||||||
|
if (items.length) {
|
||||||
|
const ids = new Set(items.map((i) => i.id))
|
||||||
|
for (const id of Object.keys(cache)) if (!ids.has(id)) delete cache[id]
|
||||||
|
}
|
||||||
saveReleases(cache)
|
saveReleases(cache)
|
||||||
return cache
|
return cache
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Tous les évènements connus, triés par date (à partir d'il y a 7 jours). */
|
/** Tous les évènements connus, triés par date (à partir d'il y a 7 jours). */
|
||||||
export function calendarEvents(items: MediaItem[], releases: ReleaseCache = loadReleases()): CalendarEvent[] {
|
export function calendarEvents(items: MediaItem[], releases: ReleaseCache = loadReleases()): CalendarEvent[] {
|
||||||
const from = localDay(new Date(Date.now() - 7 * 86400000))
|
// Il y a 7 jours (calcul en jours du calendrier : juste aux changements d'heure)
|
||||||
|
const now = new Date()
|
||||||
|
const from = localDay(new Date(now.getFullYear(), now.getMonth(), now.getDate() - 7))
|
||||||
const airing = loadAiring()
|
const airing = loadAiring()
|
||||||
const events: CalendarEvent[] = []
|
const events: CalendarEvent[] = []
|
||||||
for (const item of trackable(items)) {
|
for (const item of trackable(items)) {
|
||||||
const nx = airing[item.id]?.next
|
const nx = airing[item.id]?.next
|
||||||
if (nx && nx.date >= from) {
|
if (nx && nx.date >= from) {
|
||||||
const label = nx.episode === 1 && nx.season ? t('release.season', { season: nx.season }) : t('release.episode', { ep: nx.episode })
|
const label = nx.episode === 1 && nx.season ? t('release.season', { season: nx.season }) : t('release.episode', { ep: nx.episode })
|
||||||
events.push({ date: nx.date, item, label, kind: 'episode' })
|
events.push({ date: nx.date, item, label })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const byId = new Map(items.map((i) => [i.id, i]))
|
const byId = new Map(items.map((i) => [i.id, i]))
|
||||||
for (const [id, r] of Object.entries(releases)) {
|
for (const [id, r] of Object.entries(releases)) {
|
||||||
const item = byId.get(id)
|
const item = byId.get(id)
|
||||||
if (item && item.status === 'a_voir' && r.date >= from) events.push({ date: r.date, item, label: r.label, kind: 'release' })
|
if (item && item.status === 'a_voir' && r.date >= from) events.push({ date: r.date, item, label: r.label })
|
||||||
}
|
}
|
||||||
return events.sort((a, b) => a.date.localeCompare(b.date) || a.item.title.localeCompare(b.item.title, locale()))
|
return events.sort((a, b) => a.date.localeCompare(b.date) || a.item.title.localeCompare(b.item.title, locale()))
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isToday = (d: string) => d === todayISO()
|
|
||||||
+12
-4
@@ -19,8 +19,6 @@ export const MAX_REWATCHES = 200
|
|||||||
export const canTrackRewatch = (item: Pick<MediaItem, 'type' | 'status'> & Partial<Pick<MediaItem, 'seasons' | 'episodesTotal'>>) =>
|
export const canTrackRewatch = (item: Pick<MediaItem, 'type' | 'status'> & Partial<Pick<MediaItem, 'seasons' | 'episodesTotal'>>) =>
|
||||||
item.status === 'termine' && TYPE_BY_VALUE[item.type].episodic && !!episodeCap(item as MediaItem)
|
item.status === 'termine' && TYPE_BY_VALUE[item.type].episodic && !!episodeCap(item as MediaItem)
|
||||||
|
|
||||||
export const isRewatching = (item: Pick<MediaItem, 'rewatch'>): item is MediaItem & { rewatch: Rewatch } => !!item.rewatch
|
|
||||||
|
|
||||||
/** Nombre total de visionnages (premier + revisionnages terminés). */
|
/** Nombre total de visionnages (premier + revisionnages terminés). */
|
||||||
export const viewCount = (item: Pick<MediaItem, 'status' | 'rewatchDates'>) => (item.status === 'termine' ? 1 : 0) + (item.rewatchDates?.length ?? 0)
|
export const viewCount = (item: Pick<MediaItem, 'status' | 'rewatchDates'>) => (item.status === 'termine' ? 1 : 0) + (item.rewatchDates?.length ?? 0)
|
||||||
|
|
||||||
@@ -60,12 +58,22 @@ export function rewatchEpisodesPatch(item: MediaItem, n: number): { patch: Parti
|
|||||||
return { patch: { rewatch: { ...item.rewatch, episodes } }, finished: false }
|
return { patch: { rewatch: { ...item.rewatch, episodes } }, finished: false }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Revisionnage terminé par ce changement (dernier épisode, ou « Revu en entier ») : il disparaît en même temps
|
||||||
|
* qu'une date rejoint l'historique. Un simple abandon (`stopRewatch`) ne touche pas aux dates.
|
||||||
|
* On regarde le patch et non le nombre de dates : une date déjà présente ce jour-là (ou le plafond de
|
||||||
|
* MAX_REWATCHES) ne l'allonge pas, alors que le revisionnage est bien terminé.
|
||||||
|
*/
|
||||||
|
export const isRewatchFinish = (current: Pick<MediaItem, 'rewatch'>, patch: Partial<MediaInput>) =>
|
||||||
|
!!current.rewatch && 'rewatch' in patch && !patch.rewatch && 'rewatchDates' in patch
|
||||||
|
|
||||||
/** Épisodes vus en plus pendant un revisionnage (pour le journal des défis). */
|
/** Épisodes vus en plus pendant un revisionnage (pour le journal des défis). */
|
||||||
export function rewatchEpisodeDelta(current: MediaItem, next: MediaItem): number {
|
export function rewatchEpisodeDelta(current: MediaItem, next: MediaItem, finished?: boolean): number {
|
||||||
const before = current.rewatch?.episodes ?? 0
|
const before = current.rewatch?.episodes ?? 0
|
||||||
if (next.rewatch) return next.rewatch.episodes - before
|
if (next.rewatch) return next.rewatch.episodes - before
|
||||||
// Revisionnage terminé : les derniers épisodes jusqu'à la fin comptent
|
// Revisionnage terminé : les derniers épisodes jusqu'à la fin comptent
|
||||||
if (current.rewatch && (next.rewatchDates?.length ?? 0) > (current.rewatchDates?.length ?? 0)) {
|
const done = finished ?? (!!current.rewatch && (next.rewatchDates?.length ?? 0) > (current.rewatchDates?.length ?? 0))
|
||||||
|
if (current.rewatch && done) {
|
||||||
const cap = episodeCap(current)
|
const cap = episodeCap(current)
|
||||||
return cap ? Math.max(0, cap - before) : 0
|
return cap ? Math.max(0, cap - before) : 0
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-1
@@ -3,11 +3,16 @@
|
|||||||
* et sa propre base IndexedDB. Sans compte (mode local), on garde les anciens noms.
|
* et sa propre base IndexedDB. Sans compte (mode local), on garde les anciens noms.
|
||||||
*/
|
*/
|
||||||
let scope: string | null = null
|
let scope: string | null = null
|
||||||
|
/** Compteur de changements d'espace (connexion, déconnexion, changement de compte). */
|
||||||
|
let epoch = 0
|
||||||
|
|
||||||
export const getScope = () => scope
|
export const getScope = () => scope
|
||||||
|
export const scopeEpoch = () => epoch
|
||||||
export const setScope = (userId: string | null) => {
|
export const setScope = (userId: string | null) => {
|
||||||
// Un compte (identifiant), ou « guest » : l'espace vide du mode découverte, séparé de tout le reste
|
// Un compte (identifiant), ou « guest » : l'espace vide du mode découverte, séparé de tout le reste
|
||||||
scope = userId && (/^[0-9a-f-]{36}$/i.test(userId) || userId === 'guest') ? userId : null
|
const next = userId && (/^[0-9a-f-]{36}$/i.test(userId) || userId === 'guest') ? userId : null
|
||||||
|
if (next !== scope) epoch++
|
||||||
|
scope = next
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Nom de clé localStorage pour l'espace actif : « azuucine:lists » ou « azuucine:<id>:lists ». */
|
/** Nom de clé localStorage pour l'espace actif : « azuucine:lists » ou « azuucine:<id>:lists ». */
|
||||||
|
|||||||
@@ -37,22 +37,24 @@ function colors() {
|
|||||||
async function loadImage(raw?: string): Promise<HTMLImageElement | null> {
|
async function loadImage(raw?: string): Promise<HTMLImageElement | null> {
|
||||||
const src = safePosterUrl(raw)
|
const src = safePosterUrl(raw)
|
||||||
if (!src) return null
|
if (!src) return null
|
||||||
|
let objectUrl: string | undefined
|
||||||
try {
|
try {
|
||||||
let url = src
|
let url = src
|
||||||
let revoke = false
|
|
||||||
if (!src.startsWith('data:')) {
|
if (!src.startsWith('data:')) {
|
||||||
const res = await fetch(src, { mode: 'cors', credentials: 'omit', referrerPolicy: 'no-referrer' })
|
// Délai max : une affiche qui ne vient pas ne doit pas bloquer la création de l'image
|
||||||
|
const res = await fetch(src, { mode: 'cors', credentials: 'omit', referrerPolicy: 'no-referrer', signal: AbortSignal.timeout(12_000) })
|
||||||
if (!res.ok) return null
|
if (!res.ok) return null
|
||||||
url = URL.createObjectURL(await res.blob())
|
url = objectUrl = URL.createObjectURL(await res.blob())
|
||||||
revoke = true
|
|
||||||
}
|
}
|
||||||
const img = new Image()
|
const img = new Image()
|
||||||
img.src = url
|
img.src = url
|
||||||
await img.decode()
|
await img.decode()
|
||||||
if (revoke) setTimeout(() => URL.revokeObjectURL(url), 5000)
|
|
||||||
return img
|
return img
|
||||||
} catch {
|
} catch {
|
||||||
return null
|
return null
|
||||||
|
} finally {
|
||||||
|
// Une image déjà décodée reste dessinable : l'adresse temporaire peut être libérée, même en cas d'échec
|
||||||
|
if (objectUrl) URL.revokeObjectURL(objectUrl)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+5
-1
@@ -24,7 +24,11 @@ function firstViewMinutes(item: MediaItem): number {
|
|||||||
export function oneViewMinutes(item: MediaItem): number {
|
export function oneViewMinutes(item: MediaItem): number {
|
||||||
if (!TYPE_BY_VALUE[item.type].episodic) return item.duration || DEFAULT_FILM_MINUTES
|
if (!TYPE_BY_VALUE[item.type].episodic) return item.duration || DEFAULT_FILM_MINUTES
|
||||||
const cap = episodeCap(item)
|
const cap = episodeCap(item)
|
||||||
return cap ? cap * (item.episodeDuration || TYPE_BY_VALUE[item.type].episodeMinutes) : 0
|
const epMin = item.episodeDuration || TYPE_BY_VALUE[item.type].episodeMinutes
|
||||||
|
// Nombre d'épisodes inconnu : on compte ceux vus au premier visionnage, sinon la durée saisie
|
||||||
|
// (avant, un revisionnage d'une telle série valait 0 min)
|
||||||
|
if (cap) return cap * epMin
|
||||||
|
return item.episodesWatched > 0 ? item.episodesWatched * epMin : item.duration || 0
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Temps passé à revoir le titre : revisionnages terminés + épisodes du revisionnage en cours. */
|
/** Temps passé à revoir le titre : revisionnages terminés + épisodes du revisionnage en cours. */
|
||||||
|
|||||||
+1
-6
@@ -29,7 +29,7 @@ const CANVAS: Record<Exclude<ThemeMode, 'auto'>, string> = {
|
|||||||
light: '#ffffff',
|
light: '#ffffff',
|
||||||
dark: '#0a0a0a',
|
dark: '#0a0a0a',
|
||||||
night: '#000000',
|
night: '#000000',
|
||||||
starfield: '#0a1230',
|
starfield: '#070b1c',
|
||||||
}
|
}
|
||||||
|
|
||||||
export const isHexColor = (v: unknown): v is string => typeof v === 'string' && /^#[0-9a-f]{6}$/i.test(v)
|
export const isHexColor = (v: unknown): v is string => typeof v === 'string' && /^#[0-9a-f]{6}$/i.test(v)
|
||||||
@@ -92,11 +92,6 @@ function themeColors(color: string, resolved: Exclude<ThemeMode, 'auto'>): Theme
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Compat : thème calculé pour le rendu sombre par défaut. */
|
|
||||||
export function themeFromColor(color: string): ThemeColors {
|
|
||||||
return themeColors(color, 'dark')
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Applique le thème à toute l'app (les classes Tailwind lisent ces variables). */
|
/** Applique le thème à toute l'app (les classes Tailwind lisent ces variables). */
|
||||||
export function applyTheme(accentColor: string, mode: ThemeMode) {
|
export function applyTheme(accentColor: string, mode: ThemeMode) {
|
||||||
const resolved: Exclude<ThemeMode, 'auto'> =
|
const resolved: Exclude<ThemeMode, 'auto'> =
|
||||||
|
|||||||
@@ -55,8 +55,9 @@ function OverviewTab() {
|
|||||||
if (error) return <EmptyState title={t('admin.loadError')} />
|
if (error) return <EmptyState title={t('admin.loadError')} />
|
||||||
if (!data) return <Spinner />
|
if (!data) return <Spinner />
|
||||||
|
|
||||||
const max = data.signups_by_day.reduce((m, d) => Math.max(m, d.n), 1)
|
// Réponse inattendue du serveur (ancienne version) : pas de graphique plutôt qu'un plantage
|
||||||
const days = data.signups_by_day
|
const days = Array.isArray(data.signups_by_day) ? data.signups_by_day : []
|
||||||
|
const max = days.reduce((m, d) => Math.max(m, Number(d?.n) || 0), 1)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="mt-6">
|
<div className="mt-6">
|
||||||
@@ -150,7 +151,8 @@ function UsersTab() {
|
|||||||
} catch {
|
} catch {
|
||||||
/* on garde la liste en l'état */
|
/* on garde la liste en l'état */
|
||||||
} finally {
|
} finally {
|
||||||
if (reqId.current === id) setLoadingMore(false)
|
// Toujours remis à zéro (sinon, recherche changée entre-temps : bouton bloqué pour de bon)
|
||||||
|
setLoadingMore(false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { genreLabel, subtypeLabel } from '../lib/genres'
|
import { genreLabel, subtypeLabel } from '../lib/genres'
|
||||||
import { locale, t } from '../i18n'
|
import { locale, t } from '../i18n'
|
||||||
import { CheckSquare, Hash, Heart, Search, SlidersHorizontal, X } from 'lucide-react'
|
import { CheckSquare, Hash, Heart, Search, SlidersHorizontal, X } from 'lucide-react'
|
||||||
import { useEffect, useMemo, useState } from 'react'
|
import { useDeferredValue, useEffect, useMemo, useState } from 'react'
|
||||||
import { StatusDot } from '../components/Badges'
|
import { StatusDot } from '../components/Badges'
|
||||||
import JournalView from '../components/JournalView'
|
import JournalView from '../components/JournalView'
|
||||||
import ListsView from '../components/ListsView'
|
import ListsView from '../components/ListsView'
|
||||||
@@ -77,8 +77,18 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
|||||||
return next
|
return next
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// Texte de recherche de chaque fiche, normalisé une fois par bibliothèque (et non à chaque touche)
|
||||||
|
const haystacks = useMemo(() => {
|
||||||
|
const map = new Map<string, string>()
|
||||||
|
for (const i of items)
|
||||||
|
map.set(i.id, normalizeText([i.title, i.originalTitle, i.subtype, i.subtype && subtypeLabel(i.subtype), i.platform, ...i.genres, ...i.genres.map(genreLabel), ...(i.tags ?? [])].filter(Boolean).join(' ')))
|
||||||
|
return map
|
||||||
|
}, [items])
|
||||||
|
// La saisie reste fluide : le filtrage suit la frappe sans la bloquer
|
||||||
|
const deferredQuery = useDeferredValue(query)
|
||||||
|
|
||||||
const results = useMemo(() => {
|
const results = useMemo(() => {
|
||||||
const q = normalizeText(query)
|
const q = normalizeText(deferredQuery)
|
||||||
const filtered = items.filter((i) => {
|
const filtered = items.filter((i) => {
|
||||||
if (types.size && !types.has(i.type)) return false
|
if (types.size && !types.has(i.type)) return false
|
||||||
if (status && i.status !== status) return false
|
if (status && i.status !== status) return false
|
||||||
@@ -86,10 +96,7 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
|||||||
if (minRating && (i.rating ?? 0) < minRating) return false
|
if (minRating && (i.rating ?? 0) < minRating) return false
|
||||||
if (favOnly && !i.favorite) return false
|
if (favOnly && !i.favorite) return false
|
||||||
if (tag && !hasTag(i, tag)) return false
|
if (tag && !hasTag(i, tag)) return false
|
||||||
if (q) {
|
if (q && !haystacks.get(i.id)?.includes(q)) return false
|
||||||
const haystack = normalizeText([i.title, i.originalTitle, i.subtype, i.subtype && subtypeLabel(i.subtype), i.platform, ...i.genres, ...i.genres.map(genreLabel), ...(i.tags ?? [])].filter(Boolean).join(' '))
|
|
||||||
if (!haystack.includes(q)) return false
|
|
||||||
}
|
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
const sorted = [...filtered]
|
const sorted = [...filtered]
|
||||||
@@ -98,7 +105,7 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
|||||||
else if (sort === 'watched')
|
else if (sort === 'watched')
|
||||||
sorted.sort((a, b) => (b.endDate ?? b.startDate ?? '').localeCompare(a.endDate ?? a.startDate ?? ''))
|
sorted.sort((a, b) => (b.endDate ?? b.startDate ?? '').localeCompare(a.endDate ?? a.startDate ?? ''))
|
||||||
return sorted
|
return sorted
|
||||||
}, [items, query, types, status, genre, minRating, favOnly, tag, sort])
|
}, [items, haystacks, deferredQuery, types, status, genre, minRating, favOnly, tag, sort])
|
||||||
|
|
||||||
const activeAdvanced = (genre ? 1 : 0) + (minRating ? 1 : 0) + (favOnly ? 1 : 0) + (tag ? 1 : 0)
|
const activeAdvanced = (genre ? 1 : 0) + (minRating ? 1 : 0) + (favOnly ? 1 : 0) + (tag ? 1 : 0)
|
||||||
const anyFilter = query || types.size || status || activeAdvanced
|
const anyFilter = query || types.size || status || activeAdvanced
|
||||||
@@ -164,7 +171,15 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
|||||||
{t('select.count', { count: selected.length })}
|
{t('select.count', { count: selected.length })}
|
||||||
</p>
|
</p>
|
||||||
<button
|
<button
|
||||||
onClick={() => setSelection(allShownSelected ? new Set() : new Set([...selection, ...results.map((i) => i.id)]))}
|
onClick={() => {
|
||||||
|
// « Tout désélectionner » ne retire que les fiches affichées (les autres, masquées par un filtre, restent choisies)
|
||||||
|
const shown = results.map((i) => i.id)
|
||||||
|
if (allShownSelected) {
|
||||||
|
const next = new Set(selection)
|
||||||
|
for (const id of shown) next.delete(id)
|
||||||
|
setSelection(next)
|
||||||
|
} else setSelection(new Set([...selection, ...shown]))
|
||||||
|
}}
|
||||||
className="chip py-1 text-xs"
|
className="chip py-1 text-xs"
|
||||||
disabled={!results.length}
|
disabled={!results.length}
|
||||||
>
|
>
|
||||||
|
|||||||
+24
-41
@@ -1,6 +1,6 @@
|
|||||||
import { useSocial } from '../components/social/SocialProvider'
|
import { useSocial } from '../components/social/SocialProvider'
|
||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
import { Bell, CalendarDays, Dices, Plus } from 'lucide-react'
|
import { CalendarDays, Dices, Plus } from 'lucide-react'
|
||||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||||
import { TYPE_BY_VALUE } from '../lib/constants'
|
import { TYPE_BY_VALUE } from '../lib/constants'
|
||||||
import Avatar from '../components/social/Avatar'
|
import Avatar from '../components/social/Avatar'
|
||||||
@@ -14,7 +14,6 @@ import { progressView } from '../lib/rewatch'
|
|||||||
import type { Tab } from '../components/BottomNav'
|
import type { Tab } from '../components/BottomNav'
|
||||||
import { EmptyState, LinkArrow, PageHeader, SectionTitle, StatTile } from '../components/ui'
|
import { EmptyState, LinkArrow, PageHeader, SectionTitle, StatTile } from '../components/ui'
|
||||||
import { CACHE_EVENT, isCaughtUp, loadAiring, needsCheck, refreshAiring, saveAiring, trackable } from '../lib/airing'
|
import { CACHE_EVENT, isCaughtUp, loadAiring, needsCheck, refreshAiring, saveAiring, trackable } from '../lib/airing'
|
||||||
import { addEpisodeNotifications } from '../lib/cloud/notifications'
|
|
||||||
import { useOnResume } from '../lib/onResume'
|
import { useOnResume } from '../lib/onResume'
|
||||||
import { calendarEvents } from '../lib/releases'
|
import { calendarEvents } from '../lib/releases'
|
||||||
import { computeStats } from '../lib/stats'
|
import { computeStats } from '../lib/stats'
|
||||||
@@ -74,27 +73,14 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
|||||||
const info = next[i.id]
|
const info = next[i.id]
|
||||||
if (!info) return []
|
if (!info) return []
|
||||||
const patch: Partial<MediaItem> = {}
|
const patch: Partial<MediaItem> = {}
|
||||||
if (i.status !== 'termine' && info.aired > (i.episodesTotal ?? 0)) patch.episodesTotal = info.aired
|
// Total relevé aux épisodes sortis. Aussi pour une fiche « Terminé » dont la série continue :
|
||||||
|
// sinon, une fois à jour, les nouveaux épisodes ne pouvaient plus jamais être cochés (le statut ne change pas ici)
|
||||||
|
if ((i.status !== 'termine' || !info.ended) && info.aired > (i.episodesTotal ?? 0)) patch.episodesTotal = info.aired
|
||||||
// Découpage par saison (nouvelle saison annoncée, ou fiche ajoutée avant le suivi par saison)
|
// Découpage par saison (nouvelle saison annoncée, ou fiche ajoutée avant le suivi par saison)
|
||||||
if (info.seasonSizes && info.seasonSizes.join() !== (i.seasons ?? []).join()) patch.seasons = info.seasonSizes
|
if (info.seasonSizes && info.seasonSizes.join() !== (i.seasons ?? []).join()) patch.seasons = info.seasonSizes
|
||||||
if (info.backdrop && !i.backdrop) patch.backdrop = info.backdrop
|
if (info.backdrop && !i.backdrop) patch.backdrop = info.backdrop
|
||||||
return Object.keys(patch).length ? [{ id: i.id, patch }] : []
|
return Object.keys(patch).length ? [{ id: i.id, patch }] : []
|
||||||
})
|
})
|
||||||
// Notifications : on envoie le dernier épisode sorti de chaque série encore en diffusion ;
|
|
||||||
// le serveur retient le précédent et ne signale que ce qui est sorti depuis (le passé n'est pas « nouveau »).
|
|
||||||
if (social.enabled) {
|
|
||||||
const notices = trackable(items).flatMap((i) => {
|
|
||||||
const info = next[i.id]
|
|
||||||
if (!info || info.ended || info.aired < 1 || i.status === 'abandonne') return []
|
|
||||||
const kind = i.status === 'termine' ? ('new_season' as const) : ('new_episode' as const)
|
|
||||||
return [{ item_id: i.id, kind, episode: info.aired, count: Math.max(1, info.aired - i.episodesWatched) }]
|
|
||||||
})
|
|
||||||
void (async () => {
|
|
||||||
let created = 0
|
|
||||||
for (let k = 0; k < notices.length; k += 50) created += await addEpisodeNotifications(notices.slice(k, k + 50))
|
|
||||||
if (created > 0) void social.refresh()
|
|
||||||
})()
|
|
||||||
}
|
|
||||||
if (patches.length) return patchMany(patches)
|
if (patches.length) return patchMany(patches)
|
||||||
})
|
})
|
||||||
.catch(() => {})
|
.catch(() => {})
|
||||||
@@ -102,7 +88,7 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
|||||||
airingRunning.current = false
|
airingRunning.current = false
|
||||||
setCheckingAiring(false)
|
setCheckingAiring(false)
|
||||||
})
|
})
|
||||||
}, [patchMany, social])
|
}, [patchMany])
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (loading || airingStarted.current) return
|
if (loading || airingStarted.current) return
|
||||||
airingStarted.current = true
|
airingStarted.current = true
|
||||||
@@ -128,7 +114,8 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
|||||||
}, [])
|
}, [])
|
||||||
const soon = useMemo(() => {
|
const soon = useMemo(() => {
|
||||||
const today = todayISO()
|
const today = todayISO()
|
||||||
const d = new Date(Date.now() + 7 * 86400000)
|
const now = new Date()
|
||||||
|
const d = new Date(now.getFullYear(), now.getMonth(), now.getDate() + 7)
|
||||||
const end = `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`
|
const end = `${d.getFullYear()}-${String(d.getMonth() + 1).padStart(2, '0')}-${String(d.getDate()).padStart(2, '0')}`
|
||||||
return calendarEvents(items).filter((e) => e.date >= today && e.date <= end).length
|
return calendarEvents(items).filter((e) => e.date >= today && e.date <= end).length
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
@@ -138,18 +125,26 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
|||||||
const airing = useMemo(() => loadAiring(), [cacheVersion]) // eslint-disable-line react-hooks/exhaustive-deps
|
const airing = useMemo(() => loadAiring(), [cacheVersion]) // eslint-disable-line react-hooks/exhaustive-deps
|
||||||
// Pendant la vérification, une série suivie dont on ne connaît pas encore les sorties reste masquée :
|
// Pendant la vérification, une série suivie dont on ne connaît pas encore les sorties reste masquée :
|
||||||
// sinon elle s'affichait puis disparaissait quelques secondes après (une fois vue « à jour »).
|
// sinon elle s'affichait puis disparaissait quelques secondes après (une fois vue « à jour »).
|
||||||
const unknownWhileChecking = (i: MediaItem) => (checkingAiring || loading) && !airing[i.id] && trackable([i]).length > 0
|
// Listes de l'accueil recalculées seulement quand la bibliothèque ou les sorties changent
|
||||||
|
const hideUnknown = checkingAiring || loading
|
||||||
// Un revisionnage en cours apparaît comme une série en cours (avec sa propre progression)
|
// Un revisionnage en cours apparaît comme une série en cours (avec sa propre progression)
|
||||||
const inProgress = items.map(progressView).filter((i) => i.status === 'en_cours' && !isCaughtUp(i, airing) && !unknownWhileChecking(i))
|
const inProgress = useMemo(
|
||||||
|
() => items.map(progressView).filter((i) => i.status === 'en_cours' && !isCaughtUp(i, airing) && !(hideUnknown && !airing[i.id] && trackable([i]).length > 0)),
|
||||||
|
[items, airing, hideUnknown],
|
||||||
|
)
|
||||||
// Bannière : ce que je regarde en ce moment (le plus récemment touché), sinon le prochain « à voir »
|
// Bannière : ce que je regarde en ce moment (le plus récemment touché), sinon le prochain « à voir »
|
||||||
const byRecent = [...inProgress].sort((a, b) => b.updatedAt.localeCompare(a.updatedAt))
|
const byRecent = useMemo(() => [...inProgress].sort((a, b) => b.updatedAt.localeCompare(a.updatedAt)), [inProgress])
|
||||||
const firstToWatch = items.find((i) => i.status === 'a_voir')
|
const firstToWatch = items.find((i) => i.status === 'a_voir')
|
||||||
const featured = (byRecent.length ? byRecent.slice(0, 8) : firstToWatch ? [firstToWatch] : [])
|
const featured = (byRecent.length ? byRecent.slice(0, 8) : firstToWatch ? [firstToWatch] : [])
|
||||||
const toWatch = items.filter((i) => i.status === 'a_voir').slice(0, 12)
|
const toWatch = useMemo(() => items.filter((i) => i.status === 'a_voir').slice(0, 12), [items])
|
||||||
const recent = items
|
const recent = useMemo(
|
||||||
.filter((i) => i.status === 'termine')
|
() =>
|
||||||
.sort((a, b) => (b.endDate ?? b.updatedAt).localeCompare(a.endDate ?? a.updatedAt))
|
items
|
||||||
.slice(0, 12)
|
.filter((i) => i.status === 'termine')
|
||||||
|
.sort((a, b) => (b.endDate ?? b.updatedAt).localeCompare(a.endDate ?? a.updatedAt))
|
||||||
|
.slice(0, 12),
|
||||||
|
[items],
|
||||||
|
)
|
||||||
|
|
||||||
const seeAll = <LinkArrow onClick={() => onNavigate('catalog')}>{t('home.seeAll')}</LinkArrow>
|
const seeAll = <LinkArrow onClick={() => onNavigate('catalog')}>{t('home.seeAll')}</LinkArrow>
|
||||||
|
|
||||||
@@ -171,18 +166,6 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
|||||||
<span className="absolute -end-1 -top-1 grid min-w-5 place-items-center rounded-full bg-accent-fill px-1 text-[10px] font-bold text-on-accent">{soon}</span>
|
<span className="absolute -end-1 -top-1 grid min-w-5 place-items-center rounded-full bg-accent-fill px-1 text-[10px] font-bold text-on-accent">{soon}</span>
|
||||||
)}
|
)}
|
||||||
</button>
|
</button>
|
||||||
{social.enabled && (
|
|
||||||
<button
|
|
||||||
onClick={social.openNotifications}
|
|
||||||
className="relative grid size-11 shrink-0 place-items-center rounded-full border border-line text-ink-2 transition-colors active:bg-surface-2"
|
|
||||||
aria-label={social.unread > 0 ? t('home.notificationsN', { count: social.unread }) : t('home.notifications')}
|
|
||||||
>
|
|
||||||
<Bell size={20} />
|
|
||||||
{social.unread > 0 && (
|
|
||||||
<span className="absolute -end-1 -top-1 grid min-w-5 place-items-center rounded-full bg-accent-fill px-1 text-[10px] font-bold text-on-accent">{social.unread}</span>
|
|
||||||
)}
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
{social.enabled && (
|
{social.enabled && (
|
||||||
<button onClick={() => (social.me ? social.openProfile(social.me.username) : social.openSearch())} className="relative shrink-0 rounded-full" aria-label={t('social.myProfile')}>
|
<button onClick={() => (social.me ? social.openProfile(social.me.username) : social.openSearch())} className="relative shrink-0 rounded-full" aria-label={t('social.myProfile')}>
|
||||||
<Avatar url={social.me?.avatarUrl} name={social.me?.displayName ?? '?'} size={44} />
|
<Avatar url={social.me?.avatarUrl} name={social.me?.displayName ?? '?'} size={44} />
|
||||||
@@ -227,7 +210,7 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
|||||||
{stats.toWatch ? t('home.rouletteHint', { count: stats.toWatch }) : t('home.rouletteHintAll')}
|
{stats.toWatch ? t('home.rouletteHint', { count: stats.toWatch }) : t('home.rouletteHintAll')}
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<span className="text-accent">→</span>
|
<span className="inline-block text-accent rtl:-scale-x-100">→</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+43
-56
@@ -1,9 +1,8 @@
|
|||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
import { LanguageSelect } from '../i18n/react'
|
import { LanguageSelect } from '../i18n/react'
|
||||||
import { Check, Download, ExternalLink, Eye, EyeOff, HardDrive, Import, ShieldCheck, Smartphone, Trash2, Upload, UserX } from 'lucide-react'
|
import { Check, Download, ExternalLink, Eye, EyeOff, HardDrive, Import, ShieldCheck, Smartphone, Trash2, Upload, UserX } from 'lucide-react'
|
||||||
import { useEffect, useRef, useState, type ReactNode } from 'react'
|
import { useEffect, useId, useRef, useState, type ReactNode } from 'react'
|
||||||
import AccountSection from '../components/AccountSection'
|
import AccountSection from '../components/AccountSection'
|
||||||
import PushToggle from '../components/PushToggle'
|
|
||||||
import ConfirmDialog from '../components/ConfirmDialog'
|
import ConfirmDialog from '../components/ConfirmDialog'
|
||||||
import ImportWizard from '../components/ImportWizard'
|
import ImportWizard from '../components/ImportWizard'
|
||||||
import { PageHeader, SectionTitle } from '../components/ui'
|
import { PageHeader, SectionTitle } from '../components/ui'
|
||||||
@@ -14,10 +13,10 @@ import { ALL_TOP_CATEGORIES, TOP_CATEGORIES } from '../lib/constants'
|
|||||||
import { isHexColor, THEME_MODES, THEME_PRESETS } from '../lib/theme'
|
import { isHexColor, THEME_MODES, THEME_PRESETS } from '../lib/theme'
|
||||||
import { detectPlatform, useInstallPrompt } from '../lib/pwa'
|
import { detectPlatform, useInstallPrompt } from '../lib/pwa'
|
||||||
import { isAdmin } from '../lib/cloud/admin'
|
import { isAdmin } from '../lib/cloud/admin'
|
||||||
import type { NotifPrefs } from '../types'
|
|
||||||
import { cx } from '../lib/utils'
|
import { cx } from '../lib/utils'
|
||||||
import { useEscape } from '../lib/escape'
|
import { useEscape } from '../lib/escape'
|
||||||
import { useBackToClose } from '../lib/backNav'
|
import { useBackToClose } from '../lib/backNav'
|
||||||
|
import { useScrollLock } from '../lib/scrollLock'
|
||||||
import { useMedia } from '../store'
|
import { useMedia } from '../store'
|
||||||
import { mergeImportedSettings } from '../lib/challenges'
|
import { mergeImportedSettings } from '../lib/challenges'
|
||||||
import { BugReportRow } from '../components/moderation/BugReport'
|
import { BugReportRow } from '../components/moderation/BugReport'
|
||||||
@@ -25,15 +24,6 @@ import { alertsSummary, useAdminAlerts } from '../components/moderation/useAdmin
|
|||||||
|
|
||||||
type Message = { kind: 'ok' | 'error'; text: string }
|
type Message = { kind: 'ok' | 'error'; text: string }
|
||||||
|
|
||||||
const NOTIF_PREFS: { key: keyof NotifPrefs; readonly label: () => string }[] = [
|
|
||||||
{ key: 'episodes', label: () => t('settings.notifEpisodes') },
|
|
||||||
{ key: 'follows', label: () => t('settings.notifFollows') },
|
|
||||||
{ key: 'accepted', label: () => t('settings.notifAccepted') },
|
|
||||||
{ key: 'reactions', label: () => t('settings.notifReactions') },
|
|
||||||
{ key: 'comments', label: () => t('settings.notifComments') },
|
|
||||||
{ key: 'lists', label: () => t('settings.notifLists') },
|
|
||||||
]
|
|
||||||
|
|
||||||
function Row({ icon, title, hint, onClick, danger }: { icon: ReactNode; title: string; hint?: string; onClick: () => void; danger?: boolean }) {
|
function Row({ icon, title, hint, onClick, danger }: { icon: ReactNode; title: string; hint?: string; onClick: () => void; danger?: boolean }) {
|
||||||
return (
|
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')}>
|
<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')}>
|
||||||
@@ -42,11 +32,17 @@ function Row({ icon, title, hint, onClick, danger }: { icon: ReactNode; title: s
|
|||||||
<span className="block font-medium">{title}</span>
|
<span className="block font-medium">{title}</span>
|
||||||
{hint && <span className="mt-0.5 block text-xs text-ink-3">{hint}</span>}
|
{hint && <span className="mt-0.5 block text-xs text-ink-3">{hint}</span>}
|
||||||
</span>
|
</span>
|
||||||
<span className={danger ? 'text-accent' : 'text-ink-3'}>→</span>
|
<span className={cx('inline-block rtl:-scale-x-100', danger ? 'text-accent' : 'text-ink-3')}>→</span>
|
||||||
</button>
|
</button>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Bloque le défilement de la page tant qu'il est affiché (fenêtre d'installation). */
|
||||||
|
function ScrollLock() {
|
||||||
|
useScrollLock()
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void }) {
|
export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void }) {
|
||||||
const { items, settings, updateSettings, importItems, clearAll, lists, mergeLists, account, guest, requestAccount } = useMedia()
|
const { items, settings, updateSettings, importItems, clearAll, lists, mergeLists, account, guest, requestAccount } = useMedia()
|
||||||
const { canInstall, installed, install } = useInstallPrompt()
|
const { canInstall, installed, install } = useInstallPrompt()
|
||||||
@@ -54,8 +50,16 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
|||||||
// Une seule vérification par connexion (et pas à chaque changement d'état de la synchro)
|
// Une seule vérification par connexion (et pas à chaque changement d'état de la synchro)
|
||||||
const signedIn = !!account
|
const signedIn = !!account
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (signedIn) void isAdmin().then(setAdmin)
|
// Réponse arrivée après une déconnexion (ou la fermeture de la page) : ignorée
|
||||||
|
let alive = true
|
||||||
|
if (signedIn)
|
||||||
|
void isAdmin()
|
||||||
|
.then((ok) => alive && setAdmin(ok))
|
||||||
|
.catch(() => alive && setAdmin(false))
|
||||||
else setAdmin(false)
|
else setAdmin(false)
|
||||||
|
return () => {
|
||||||
|
alive = false
|
||||||
|
}
|
||||||
}, [signedIn])
|
}, [signedIn])
|
||||||
const adminHint = alertsSummary(useAdminAlerts(admin))
|
const adminHint = alertsSummary(useAdminAlerts(admin))
|
||||||
const fileRef = useRef<HTMLInputElement>(null)
|
const fileRef = useRef<HTMLInputElement>(null)
|
||||||
@@ -131,14 +135,18 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
|||||||
const confirmImport = async (mode: 'merge' | 'replace') => {
|
const confirmImport = async (mode: 'merge' | 'replace') => {
|
||||||
if (!pending) return
|
if (!pending) return
|
||||||
setConfirm(null)
|
setConfirm(null)
|
||||||
await importItems(pending.items, mode)
|
try {
|
||||||
if (pending.settings) updateSettings(mode === 'merge' ? mergeImportedSettings(pending.settings, settings) : pending.settings)
|
await importItems(pending.items, mode)
|
||||||
if (pending.lists) mergeLists(pending.lists, mode)
|
if (pending.settings) updateSettings(mode === 'merge' ? mergeImportedSettings(pending.settings, settings) : pending.settings)
|
||||||
setMessage({
|
if (pending.lists) mergeLists(pending.lists, mode)
|
||||||
kind: 'ok',
|
setMessage({
|
||||||
text: pending.skipped ? t('settings.importedSkipped', { n: pending.items.length, skipped: pending.skipped }) : t('settings.imported', { count: pending.items.length }),
|
kind: 'ok',
|
||||||
})
|
text: pending.skipped ? t('settings.importedSkipped', { n: pending.items.length, skipped: pending.skipped }) : t('settings.imported', { count: pending.items.length }),
|
||||||
setPending(undefined)
|
})
|
||||||
|
setPending(undefined)
|
||||||
|
} catch (e) {
|
||||||
|
setMessage({ kind: 'error', text: (e as Error).message })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const onDeleteAccount = async () => {
|
const onDeleteAccount = async () => {
|
||||||
@@ -155,14 +163,19 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
|||||||
|
|
||||||
const onReset = async () => {
|
const onReset = async () => {
|
||||||
setConfirm(null)
|
setConfirm(null)
|
||||||
await clearAll()
|
try {
|
||||||
setMessage({ kind: 'ok', text: t('settings.cleared') })
|
await clearAll()
|
||||||
|
setMessage({ kind: 'ok', text: t('settings.cleared') })
|
||||||
|
} catch (e) {
|
||||||
|
setMessage({ kind: 'error', text: (e as Error).message })
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const [showImport, setShowImport] = useState(false)
|
const [showImport, setShowImport] = useState(false)
|
||||||
const [showInstall, setShowInstall] = useState(false)
|
const [showInstall, setShowInstall] = useState(false)
|
||||||
useEscape(() => setShowInstall(false), showInstall)
|
useEscape(() => setShowInstall(false), showInstall)
|
||||||
useBackToClose(() => setShowInstall(false), showInstall)
|
useBackToClose(() => setShowInstall(false), showInstall)
|
||||||
|
const installTitleId = useId()
|
||||||
const platform = detectPlatform()
|
const platform = detectPlatform()
|
||||||
|
|
||||||
const doNativeInstall = async () => {
|
const doNativeInstall = async () => {
|
||||||
@@ -292,16 +305,17 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
|||||||
<button onClick={() => setShowInstall(true)} className="flex w-full items-center gap-3.5 px-4 py-4 text-start transition-colors active:bg-surface-2">
|
<button onClick={() => setShowInstall(true)} className="flex w-full items-center gap-3.5 px-4 py-4 text-start transition-colors active:bg-surface-2">
|
||||||
<span className="text-ink-2"><Smartphone size={19} /></span>
|
<span className="text-ink-2"><Smartphone size={19} /></span>
|
||||||
<span className="flex-1 font-medium">{t('settings.installApp')}</span>
|
<span className="flex-1 font-medium">{t('settings.installApp')}</span>
|
||||||
<span className="text-ink-3">→</span>
|
<span className="inline-block text-ink-3 rtl:-scale-x-100">→</span>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<p className="mt-2.5 text-xs text-ink-3">{t('settings.installHint')}</p>
|
<p className="mt-2.5 text-xs text-ink-3">{t('settings.installHint')}</p>
|
||||||
|
|
||||||
{showInstall && (
|
{showInstall && (
|
||||||
<div className="fixed inset-0 z-[70] flex items-end justify-center bg-black/70 p-4 sm:items-center" onClick={() => setShowInstall(false)}>
|
<div className="fixed inset-0 z-[70] flex items-end justify-center bg-scrim p-4 sm:items-center" onClick={() => setShowInstall(false)}>
|
||||||
<div role="dialog" aria-modal="true" className="sheet-in safe-bottom w-full max-w-sm rounded-3xl border border-line-strong bg-surface p-5" onClick={(e) => e.stopPropagation()}>
|
<ScrollLock />
|
||||||
<h2 className="flex items-center gap-2 text-lg"><Smartphone size={20} className="text-accent" /> {t('install.title')}</h2>
|
<div role="dialog" aria-modal="true" aria-labelledby={installTitleId} className="sheet-in safe-bottom w-full max-w-sm rounded-3xl border border-line-strong bg-surface p-5" onClick={(e) => e.stopPropagation()}>
|
||||||
|
<h2 id={installTitleId} className="flex items-center gap-2 text-lg"><Smartphone size={20} className="text-accent" /> {t('install.title')}</h2>
|
||||||
<ol className="mt-4 space-y-3">
|
<ol className="mt-4 space-y-3">
|
||||||
{t(`install.${platform}`).split('\n').map((step, i) => (
|
{t(`install.${platform}`).split('\n').map((step, i) => (
|
||||||
<li key={i} className="flex gap-3 text-sm leading-relaxed text-ink-2">
|
<li key={i} className="flex gap-3 text-sm leading-relaxed text-ink-2">
|
||||||
@@ -324,33 +338,6 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{account && (
|
|
||||||
<>
|
|
||||||
<SectionTitle>{t('settings.notifs')}</SectionTitle>
|
|
||||||
<p className="mb-3 text-xs text-ink-3">{t('settings.notifsHint')}</p>
|
|
||||||
<PushToggle />
|
|
||||||
<div className="card divide-y divide-line overflow-hidden">
|
|
||||||
{NOTIF_PREFS.map(({ key, label }) => {
|
|
||||||
const on = settings.notifPrefs?.[key] !== false
|
|
||||||
return (
|
|
||||||
<button
|
|
||||||
key={key}
|
|
||||||
type="button"
|
|
||||||
role="switch"
|
|
||||||
aria-checked={on}
|
|
||||||
onClick={() => updateSettings({ notifPrefs: { ...settings.notifPrefs, [key]: !on } })}
|
|
||||||
className="flex w-full items-center gap-3.5 px-4 py-3.5 text-start"
|
|
||||||
>
|
|
||||||
<span className="flex-1 text-sm font-medium">{label()}</span>
|
|
||||||
<span className={cx('relative h-6 w-11 shrink-0 rounded-full transition-colors', on ? 'bg-accent-fill' : 'border border-line-strong bg-surface-2')}>
|
|
||||||
<span className={cx('absolute top-0.5 size-5 rounded-full bg-ink transition-all', on ? 'start-[22px] bg-on-accent' : 'start-0.5')} />
|
|
||||||
</span>
|
|
||||||
</button>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
</div>
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
|
|
||||||
<SectionTitle>{t('settings.databases')}</SectionTitle>
|
<SectionTitle>{t('settings.databases')}</SectionTitle>
|
||||||
<div className="card space-y-4 p-4">
|
<div className="card space-y-4 p-4">
|
||||||
@@ -391,7 +378,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
|||||||
</p>
|
</p>
|
||||||
{proxy !== 'ok' && proxy !== 'checking' && (
|
{proxy !== 'ok' && proxy !== 'checking' && (
|
||||||
<button onClick={() => void runProxyCheck()} className="mt-2 text-xs font-medium text-ink-3">
|
<button onClick={() => void runProxyCheck()} className="mt-2 text-xs font-medium text-ink-3">
|
||||||
{t('settings.recheck')} <span className="text-accent">→</span>
|
{t('settings.recheck')} <span className="inline-block text-accent rtl:-scale-x-100">→</span>
|
||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -416,7 +416,8 @@ export function BugsTab({ onChange }: { onChange: () => void }) {
|
|||||||
setBusyId(b.id)
|
setBusyId(b.id)
|
||||||
try {
|
try {
|
||||||
await adminSetBugStatus(b.id, s)
|
await adminSetBugStatus(b.id, s)
|
||||||
setRows((p) => p.map((x) => (x.id === b.id ? { ...x, status: s } : x)))
|
// Filtre actif : le signalement qui n'y correspond plus quitte la liste (comme au rechargement)
|
||||||
|
setRows((p) => (filter !== 'all' && filter !== s ? p.filter((x) => x.id !== b.id) : p.map((x) => (x.id === b.id ? { ...x, status: s } : x))))
|
||||||
onChange()
|
onChange()
|
||||||
} catch {
|
} catch {
|
||||||
/* inchangé */
|
/* inchangé */
|
||||||
|
|||||||
+93
-40
@@ -7,19 +7,18 @@ import { applyTheme, DEFAULT_ACCENT } from './lib/theme'
|
|||||||
import { normalizeItem, normalizeLists, normalizeSettings } from './lib/backup'
|
import { normalizeItem, normalizeLists, normalizeSettings } from './lib/backup'
|
||||||
import { CLOUD_TMDB, isPlausibleTmdbKey } from './lib/catalogApi'
|
import { CLOUD_TMDB, isPlausibleTmdbKey } from './lib/catalogApi'
|
||||||
import { createSync, type SyncEngine, type SyncStatus } from './lib/cloud/sync'
|
import { createSync, type SyncEngine, type SyncStatus } from './lib/cloud/sync'
|
||||||
import { deleteDatabase, readOtherDatabase } from './lib/db'
|
import { deleteDatabase, onExternalChange, readOtherDatabase, writeVersion } from './lib/db'
|
||||||
import { cloudFetch } from './lib/cloud/api'
|
import { cloudFetch } from './lib/cloud/api'
|
||||||
import { signOut } from './lib/cloud/auth'
|
import { signOut } from './lib/cloud/auth'
|
||||||
import { disablePush, forgetPushLocally } from './lib/push'
|
|
||||||
import { dbNameFor, scopedKey } from './lib/scope'
|
import { dbNameFor, scopedKey } from './lib/scope'
|
||||||
import { isPlainObject, LIMITS, readStorage, storageGet, storageSet } from './lib/security'
|
import { isPlainObject, LIMITS, readStorage, storageGet, storageSet } from './lib/security'
|
||||||
import { mediaDB, requestPersistentStorage } from './lib/db'
|
import { mediaDB, requestPersistentStorage } from './lib/db'
|
||||||
import { episodesPatch } from './lib/progress'
|
import { episodesPatch } from './lib/progress'
|
||||||
import { uid } from './lib/utils'
|
import { uid } from './lib/utils'
|
||||||
import { episodeCap } from './lib/franchise'
|
import { episodeCap } from './lib/franchise'
|
||||||
import { airedCount } from './lib/airing'
|
import { airedCount, CACHE_EVENT } from './lib/airing'
|
||||||
import { logEpisodes } from './lib/challenges'
|
import { logEpisodes, mergeImportedSettings } from './lib/challenges'
|
||||||
import { rewatchEpisodeDelta, rewatchEpisodesPatch } from './lib/rewatch'
|
import { isRewatchFinish, rewatchEpisodeDelta, rewatchEpisodesPatch } from './lib/rewatch'
|
||||||
|
|
||||||
// Clés propres à l'espace actif (compte connecté, ou appareil sans compte)
|
// Clés propres à l'espace actif (compte connecté, ou appareil sans compte)
|
||||||
const settingsKey = () => scopedKey('settings')
|
const settingsKey = () => scopedKey('settings')
|
||||||
@@ -119,12 +118,28 @@ async function wipeAccountFromDevice(userId: string) {
|
|||||||
} catch {
|
} catch {
|
||||||
/* ignore */
|
/* ignore */
|
||||||
}
|
}
|
||||||
}
|
} // Les caches gardés en mémoire (sorties d'épisodes) sont oubliés eux aussi
|
||||||
|
window.dispatchEvent(new Event(CACHE_EVENT))
|
||||||
}
|
}
|
||||||
|
|
||||||
const MediaContext = createContext<MediaStore | null>(null)
|
const MediaContext = createContext<MediaStore | null>(null)
|
||||||
|
|
||||||
const byUpdatedDesc = (a: MediaItem, b: MediaItem) => b.updatedAt.localeCompare(a.updatedAt)
|
// Dates ISO : la comparaison directe suffit (localeCompare est bien plus lent sur une grosse bibliothèque)
|
||||||
|
const byUpdatedDesc = (a: MediaItem, b: MediaItem) => (a.updatedAt < b.updatedAt ? 1 : a.updatedAt > b.updatedAt ? -1 : 0)
|
||||||
|
|
||||||
|
/** Place une fiche (nouvelle ou modifiée) dans la liste déjà triée, sans tout retrier. */
|
||||||
|
function insertSorted(list: MediaItem[], item: MediaItem): MediaItem[] {
|
||||||
|
const rest = list.filter((i) => i.id !== item.id)
|
||||||
|
const at = rest.findIndex((i) => i.updatedAt <= item.updatedAt)
|
||||||
|
if (at < 0) return [...rest, item]
|
||||||
|
return [...rest.slice(0, at), item, ...rest.slice(at)]
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Fiches lues dans la base → état React (validées, plus récentes d'abord). */
|
||||||
|
const fromDB = (all: MediaItem[]) => all.map(normalizeItem).filter((i): i is MediaItem => i !== null).sort(byUpdatedDesc)
|
||||||
|
|
||||||
|
/** Même statut de synchro (évite de re-rendre toute l'appli pour un statut identique). */
|
||||||
|
const sameStatus = (a: SyncStatus, b: SyncStatus) => a.state === b.state && a.pending === b.pending && a.lastSyncAt === b.lastSyncAt && a.error === b.error
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Service de données : l'état React est la copie de travail,
|
* Service de données : l'état React est la copie de travail,
|
||||||
@@ -184,18 +199,38 @@ export function MediaProvider({
|
|||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const reloadItems = useCallback(async () => {
|
const reloadItems = useCallback(async () => {
|
||||||
const all = await mediaDB.getAll()
|
// Une écriture de cet onglet pendant la lecture rend le résultat périmé (il effacerait une
|
||||||
setItems(all.map(normalizeItem).filter((i): i is MediaItem => i !== null).sort(byUpdatedDesc))
|
// modification toute fraîche de l'écran) : on relit, et sinon on l'ignore (l'écriture met l'état à jour elle-même)
|
||||||
}, [])
|
for (let attempt = 0; attempt < 3; attempt++) {
|
||||||
|
const version = writeVersion()
|
||||||
|
const all = await mediaDB.getAll()
|
||||||
|
if (version !== writeVersion()) continue
|
||||||
|
setItems(fromDB(all))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}, [setItems])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
mediaDB
|
mediaDB
|
||||||
.getAll()
|
.getAll()
|
||||||
.then((all) => setItems(all.map(normalizeItem).filter((i): i is MediaItem => i !== null).sort(byUpdatedDesc)))
|
.then((all) => setItems(fromDB(all)))
|
||||||
.catch((e) => setError(t('store.dbError', { error: String(e?.message ?? e) })))
|
.catch((e) => setError(t('store.dbError', { error: String(e?.message ?? e) })))
|
||||||
.finally(() => setLoading(false))
|
.finally(() => setLoading(false))
|
||||||
void requestPersistentStorage()
|
void requestPersistentStorage()
|
||||||
}, [])
|
}, [setItems])
|
||||||
|
|
||||||
|
// Autres onglets ouverts sur le même espace : leurs modifications apparaissent ici aussi
|
||||||
|
useEffect(() => {
|
||||||
|
const offDB = onExternalChange(() => void reloadItems().catch(() => {}))
|
||||||
|
const onStorage = (e: StorageEvent) => {
|
||||||
|
if (e.key === listsKey()) setListsState(loadLists())
|
||||||
|
}
|
||||||
|
window.addEventListener('storage', onStorage)
|
||||||
|
return () => {
|
||||||
|
offDB()
|
||||||
|
window.removeEventListener('storage', onStorage)
|
||||||
|
}
|
||||||
|
}, [reloadItems])
|
||||||
|
|
||||||
// ─── Compte : synchronisation avec le serveur ───
|
// ─── Compte : synchronisation avec le serveur ───
|
||||||
const [syncStatus, setSyncStatus] = useState<SyncStatus>({ state: 'idle', pending: 0 })
|
const [syncStatus, setSyncStatus] = useState<SyncStatus>({ state: 'idle', pending: 0 })
|
||||||
@@ -207,14 +242,15 @@ export function MediaProvider({
|
|||||||
getLists: () => listsRef.current,
|
getLists: () => listsRef.current,
|
||||||
applyLists: (next) => setLists(() => next, true),
|
applyLists: (next) => setLists(() => next, true),
|
||||||
getSettings: () => {
|
getSettings: () => {
|
||||||
const { ratingScale, topCategories, accentColor, themeMode, notifPrefs, challenges, statsHiddenMonths } = settingsRef.current
|
const { ratingScale, topCategories, accentColor, themeMode, challenges, statsHiddenMonths } = settingsRef.current
|
||||||
return { ratingScale, topCategories, accentColor, themeMode, notifPrefs, challenges, statsHiddenMonths }
|
// Mois masqués : liste vide plutôt qu'absente, sinon « tout réafficher » ne partirait jamais au serveur
|
||||||
|
return { ratingScale, topCategories, accentColor, themeMode, challenges, statsHiddenMonths: statsHiddenMonths ?? [] }
|
||||||
},
|
},
|
||||||
applySettings: (patch) => updateSettingsRef.current(patch, true),
|
applySettings: (patch) => updateSettingsRef.current(patch, true),
|
||||||
itemsChanged: () => void reloadItems(),
|
itemsChanged: () => void reloadItems().catch(() => {}),
|
||||||
})
|
})
|
||||||
syncRef.current = engine
|
syncRef.current = engine
|
||||||
const off = engine.subscribe(setSyncStatus)
|
const off = engine.subscribe((s) => setSyncStatus((prev) => (sameStatus(prev, s) ? prev : s)))
|
||||||
setSyncStatus(engine.status())
|
setSyncStatus(engine.status())
|
||||||
engine.start()
|
engine.start()
|
||||||
|
|
||||||
@@ -249,7 +285,7 @@ export function MediaProvider({
|
|||||||
}, [settings.themeMode])
|
}, [settings.themeMode])
|
||||||
|
|
||||||
const updateSettings = useCallback((patch: Partial<Settings>, silent = false) => {
|
const updateSettings = useCallback((patch: Partial<Settings>, silent = false) => {
|
||||||
if (!silent && syncRef.current && ('ratingScale' in patch || 'topCategories' in patch || 'accentColor' in patch || 'themeMode' in patch || 'notifPrefs' in patch || 'challenges' in patch || 'statsHiddenMonths' in patch)) syncRef.current.markSettings()
|
if (!silent && syncRef.current && ('ratingScale' in patch || 'topCategories' in patch || 'accentColor' in patch || 'themeMode' in patch || 'challenges' in patch || 'statsHiddenMonths' in patch)) syncRef.current.markSettings()
|
||||||
setSettings((prev) => {
|
setSettings((prev) => {
|
||||||
const next = { ...prev, ...patch }
|
const next = { ...prev, ...patch }
|
||||||
try {
|
try {
|
||||||
@@ -269,8 +305,8 @@ export function MediaProvider({
|
|||||||
const item = normalizeItem(raw)
|
const item = normalizeItem(raw)
|
||||||
if (!item) throw new Error(t('store.invalidItem'))
|
if (!item) throw new Error(t('store.invalidItem'))
|
||||||
await mediaDB.put(item)
|
await mediaDB.put(item)
|
||||||
setItems((prev) => [item, ...prev.filter((i) => i.id !== item.id)].sort(byUpdatedDesc))
|
setItems((prev) => insertSorted(prev, item))
|
||||||
}, [])
|
}, [setItems])
|
||||||
|
|
||||||
const add = useCallback(
|
const add = useCallback(
|
||||||
async (input: MediaInput) => {
|
async (input: MediaInput) => {
|
||||||
@@ -286,17 +322,23 @@ export function MediaProvider({
|
|||||||
async (id: string, patch: Partial<MediaInput>) => {
|
async (id: string, patch: Partial<MediaInput>) => {
|
||||||
const current = itemsRef.current.find((i) => i.id === id)
|
const current = itemsRef.current.find((i) => i.id === id)
|
||||||
if (!current) return
|
if (!current) return
|
||||||
const next = { ...current, ...patch, updatedAt: new Date().toISOString() }
|
const raw = { ...current, ...patch, updatedAt: new Date().toISOString() }
|
||||||
// Notes de saison : série entièrement vue → la note finale est la moyenne des saisons notées
|
// Notes de saison : série entièrement vue → la note finale est la moyenne des saisons notées
|
||||||
if (('seasonRatings' in patch || patch.status === 'termine') && next.status === 'termine' && next.seasonRatings) {
|
if (('seasonRatings' in patch || patch.status === 'termine') && raw.status === 'termine' && raw.seasonRatings) {
|
||||||
const avg = seasonsAverage(next.seasonRatings, settingsRef.current.ratingScale)
|
const avg = seasonsAverage(raw.seasonRatings, settingsRef.current.ratingScale)
|
||||||
if (avg != null) next.rating = avg
|
if (avg != null) raw.rating = avg
|
||||||
}
|
}
|
||||||
// Un revisionnage n'existe que sur un titre terminé
|
// Un revisionnage n'existe que sur un titre terminé
|
||||||
if (next.rewatch && next.status !== 'termine') delete next.rewatch
|
if (raw.rewatch && raw.status !== 'termine') delete raw.rewatch
|
||||||
// Défis : on retient le jour où des épisodes sont cochés (ou décochés)
|
// Validation d'abord : le nombre d'épisodes peut y être plafonné, le journal doit suivre la valeur réelle
|
||||||
const delta = (patch.episodesWatched ?? current.episodesWatched) - current.episodesWatched + rewatchEpisodeDelta(current, next)
|
const next = normalizeItem(raw)
|
||||||
|
if (!next) throw new Error(t('store.invalidItem'))
|
||||||
|
// Défis : on retient le jour où des épisodes sont cochés (ou décochés). Les épisodes revus ont leur
|
||||||
|
// propre journal : ils ne doivent pas réduire l'estimation des épisodes vus la première fois.
|
||||||
|
const delta = next.episodesWatched - current.episodesWatched
|
||||||
if (delta) next.episodeLog = logEpisodes(current.episodeLog, delta)
|
if (delta) next.episodeLog = logEpisodes(current.episodeLog, delta)
|
||||||
|
const rewatchDelta = rewatchEpisodeDelta(current, next, isRewatchFinish(current, patch))
|
||||||
|
if (rewatchDelta) next.rewatchLog = logEpisodes(current.rewatchLog, rewatchDelta)
|
||||||
await save(next)
|
await save(next)
|
||||||
},
|
},
|
||||||
[save],
|
[save],
|
||||||
@@ -309,7 +351,7 @@ export function MediaProvider({
|
|||||||
await mediaDB.remove(id)
|
await mediaDB.remove(id)
|
||||||
removedAtRef.current.set(id, Date.now())
|
removedAtRef.current.set(id, Date.now())
|
||||||
setItems((prev) => prev.filter((i) => i.id !== id))
|
setItems((prev) => prev.filter((i) => i.id !== id))
|
||||||
}, [])
|
}, [setItems])
|
||||||
|
|
||||||
const removeMany = useCallback(async (ids: string[]) => {
|
const removeMany = useCallback(async (ids: string[]) => {
|
||||||
if (!ids.length) return
|
if (!ids.length) return
|
||||||
@@ -318,7 +360,7 @@ export function MediaProvider({
|
|||||||
for (const id of ids) removedAtRef.current.set(id, now)
|
for (const id of ids) removedAtRef.current.set(id, now)
|
||||||
const gone = new Set(ids)
|
const gone = new Set(ids)
|
||||||
setItems((prev) => prev.filter((i) => !gone.has(i.id)))
|
setItems((prev) => prev.filter((i) => !gone.has(i.id)))
|
||||||
}, [])
|
}, [setItems])
|
||||||
|
|
||||||
const updateMany = useCallback(
|
const updateMany = useCallback(
|
||||||
async (patches: { id: string; patch: Partial<MediaInput> }[]) => {
|
async (patches: { id: string; patch: Partial<MediaInput> }[]) => {
|
||||||
@@ -384,19 +426,19 @@ export function MediaProvider({
|
|||||||
|
|
||||||
const importItems = useCallback(async (incoming: MediaItem[], mode: 'merge' | 'replace') => {
|
const importItems = useCallback(async (incoming: MediaItem[], mode: 'merge' | 'replace') => {
|
||||||
if (mode === 'replace') {
|
if (mode === 'replace') {
|
||||||
await mediaDB.clear()
|
|
||||||
// Remplacement voulu : les fiches importées deviennent la version la plus récente
|
// Remplacement voulu : les fiches importées deviennent la version la plus récente
|
||||||
// (sinon le serveur garderait ses versions plus récentes et les appareils divergeraient)
|
// (sinon le serveur garderait ses versions plus récentes et les appareils divergeraient).
|
||||||
|
// Effacement et écriture dans la même transaction : en cas d'échec, la bibliothèque reste intacte.
|
||||||
const now = new Date().toISOString()
|
const now = new Date().toISOString()
|
||||||
await mediaDB.putMany(incoming.map((i) => ({ ...i, updatedAt: now })))
|
await mediaDB.replaceAll(incoming.map((i) => ({ ...i, updatedAt: now })))
|
||||||
} else {
|
} else {
|
||||||
// Fusion : une sauvegarde plus ancienne n'écrase pas une fiche modifiée depuis
|
// Fusion : une sauvegarde plus ancienne n'écrase pas une fiche modifiée depuis
|
||||||
const current = new Map((await mediaDB.getAll()).map((i) => [i.id, i]))
|
const current = new Map((await mediaDB.getAll()).map((i) => [i.id, i]))
|
||||||
await mediaDB.putMany(incoming.filter((i) => !current.has(i.id) || current.get(i.id)!.updatedAt < i.updatedAt))
|
await mediaDB.putMany(incoming.filter((i) => !current.has(i.id) || current.get(i.id)!.updatedAt < i.updatedAt))
|
||||||
}
|
}
|
||||||
const all = await mediaDB.getAll()
|
const all = await mediaDB.getAll()
|
||||||
setItems(all.sort(byUpdatedDesc))
|
setItems(fromDB(all))
|
||||||
}, [])
|
}, [setItems])
|
||||||
|
|
||||||
const setTopList = useCallback(
|
const setTopList = useCallback(
|
||||||
async (category: TopCategory, orderedIds: string[]) => {
|
async (category: TopCategory, orderedIds: string[]) => {
|
||||||
@@ -415,7 +457,7 @@ export function MediaProvider({
|
|||||||
if (!changed.length) return
|
if (!changed.length) return
|
||||||
await mediaDB.putMany(changed)
|
await mediaDB.putMany(changed)
|
||||||
const byId = new Map(changed.map((c) => [c.id, c]))
|
const byId = new Map(changed.map((c) => [c.id, c]))
|
||||||
setItems((prev) => prev.map((i) => byId.get(i.id) ?? i))
|
setItems((prev) => prev.map((i) => byId.get(i.id) ?? i).sort(byUpdatedDesc))
|
||||||
},
|
},
|
||||||
[setItems],
|
[setItems],
|
||||||
)
|
)
|
||||||
@@ -423,7 +465,7 @@ export function MediaProvider({
|
|||||||
const clearAll = useCallback(async () => {
|
const clearAll = useCallback(async () => {
|
||||||
await mediaDB.clear()
|
await mediaDB.clear()
|
||||||
setItems([])
|
setItems([])
|
||||||
}, [])
|
}, [setItems])
|
||||||
|
|
||||||
const patchMany = useCallback(
|
const patchMany = useCallback(
|
||||||
async (patches: { id: string; patch: Partial<MediaInput> }[]) => {
|
async (patches: { id: string; patch: Partial<MediaInput> }[]) => {
|
||||||
@@ -463,7 +505,7 @@ export function MediaProvider({
|
|||||||
if (changed.length) {
|
if (changed.length) {
|
||||||
await mediaDB.putMany(changed)
|
await mediaDB.putMany(changed)
|
||||||
const map = new Map(changed.map((c) => [c.id, c]))
|
const map = new Map(changed.map((c) => [c.id, c]))
|
||||||
setItems((prev) => prev.map((i) => map.get(i.id) ?? i))
|
setItems((prev) => prev.map((i) => map.get(i.id) ?? i).sort(byUpdatedDesc))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[setItems, setLists],
|
[setItems, setLists],
|
||||||
@@ -502,8 +544,6 @@ export function MediaProvider({
|
|||||||
if (engine && navigator.onLine) await engine.syncNow()
|
if (engine && navigator.onLine) await engine.syncNow()
|
||||||
if (!force && engine && engine.status().pending > 0) return 'pending'
|
if (!force && engine && engine.status().pending > 0) return 'pending'
|
||||||
engine?.stop()
|
engine?.stop()
|
||||||
// Cet appareil ne doit plus recevoir les notifications push de ce compte
|
|
||||||
await disablePush().catch(() => {})
|
|
||||||
await wipeAccountFromDevice(userId)
|
await wipeAccountFromDevice(userId)
|
||||||
await signOut()
|
await signOut()
|
||||||
return 'done'
|
return 'done'
|
||||||
@@ -516,7 +556,6 @@ export function MediaProvider({
|
|||||||
})
|
})
|
||||||
if (!res.ok) throw new Error(res.status === 429 ? t('account.err.deleteRate') : t('account.err.delete'))
|
if (!res.ok) throw new Error(res.status === 429 ? t('account.err.deleteRate') : t('account.err.delete'))
|
||||||
syncRef.current?.stop()
|
syncRef.current?.stop()
|
||||||
await forgetPushLocally().catch(() => {})
|
|
||||||
await wipeAccountFromDevice(userId)
|
await wipeAccountFromDevice(userId)
|
||||||
await signOut()
|
await signOut()
|
||||||
},
|
},
|
||||||
@@ -529,7 +568,19 @@ export function MediaProvider({
|
|||||||
const oldLists = normalizeLists(readStorage(scopedKey('lists', null), [])) ?? []
|
const oldLists = normalizeLists(readStorage(scopedKey('lists', null), [])) ?? []
|
||||||
if (oldLists.length) setLists((prev) => [...prev, ...oldLists.filter((l) => !prev.some((p) => p.id === l.id))])
|
if (oldLists.length) setLists((prev) => [...prev, ...oldLists.filter((l) => !prev.some((p) => p.id === l.id))])
|
||||||
const oldSettings = normalizeSettings(readStorage(scopedKey('settings', null), {}))
|
const oldSettings = normalizeSettings(readStorage(scopedKey('settings', null), {}))
|
||||||
if (oldSettings && Object.keys(oldSettings).length) updateSettings(oldSettings)
|
if (oldSettings && Object.keys(oldSettings).length) {
|
||||||
|
// Les réglages du compte gardent la main : les anciens ne complètent que ce qu'il n'a pas encore choisi
|
||||||
|
const mine = normalizeSettings(readStorage(settingsKey(), {})) ?? {}
|
||||||
|
const current = settingsRef.current
|
||||||
|
const merged = mergeImportedSettings(oldSettings, current)
|
||||||
|
const patch: Partial<Settings> = {}
|
||||||
|
for (const k of ['ratingScale', 'topCategories', 'accentColor', 'themeMode'] as const) {
|
||||||
|
if (mine[k] === undefined && merged[k] !== undefined) Object.assign(patch, { [k]: merged[k] })
|
||||||
|
}
|
||||||
|
if (oldSettings.challenges?.length) patch.challenges = merged.challenges
|
||||||
|
if (oldSettings.statsHiddenMonths?.length) patch.statsHiddenMonths = [...new Set([...(current.statsHiddenMonths ?? []), ...oldSettings.statsHiddenMonths])].sort()
|
||||||
|
if (Object.keys(patch).length) updateSettings(patch)
|
||||||
|
}
|
||||||
await reloadItems()
|
await reloadItems()
|
||||||
// Les données sont maintenant dans le compte : on retire la copie « sans compte » de l'appareil
|
// Les données sont maintenant dans le compte : on retire la copie « sans compte » de l'appareil
|
||||||
await deleteDatabase(dbNameFor(null))
|
await deleteDatabase(dbNameFor(null))
|
||||||
@@ -570,6 +621,8 @@ export function MediaProvider({
|
|||||||
ask()
|
ask()
|
||||||
return undefined
|
return undefined
|
||||||
}, importItems: noop, setTopList: noop, clearAll: noop,
|
}, importItems: noop, setTopList: noop, clearAll: noop,
|
||||||
|
// Mises à jour automatiques (affiches, notes du public…) : rien à enregistrer, sans demander de compte
|
||||||
|
patchMany: async () => {},
|
||||||
updateMany: noop, removeMany: noop, restore: noop, deleteList: noop, toggleInList: noop,
|
updateMany: noop, removeMany: noop, restore: noop, deleteList: noop, toggleInList: noop,
|
||||||
createList: (name: string) => {
|
createList: (name: string) => {
|
||||||
ask()
|
ask()
|
||||||
|
|||||||
+2
-18
@@ -65,6 +65,8 @@ export interface MediaItem {
|
|||||||
seasonRatings?: Record<string, SeasonRating>
|
seasonRatings?: Record<string, SeasonRating>
|
||||||
/** Épisodes cochés par jour (AAAA-MM-JJ → nombre), pour les défis. Privé (retiré des profils publics). */
|
/** Épisodes cochés par jour (AAAA-MM-JJ → nombre), pour les défis. Privé (retiré des profils publics). */
|
||||||
episodeLog?: Record<string, number>
|
episodeLog?: Record<string, number>
|
||||||
|
/** Épisodes revus par jour pendant un revisionnage (AAAA-MM-JJ → nombre), pour les défis. Privé. */
|
||||||
|
rewatchLog?: Record<string, number>
|
||||||
|
|
||||||
createdAt: string // ISO
|
createdAt: string // ISO
|
||||||
updatedAt: string // ISO
|
updatedAt: string // ISO
|
||||||
@@ -109,8 +111,6 @@ export interface Settings {
|
|||||||
accentColor: string
|
accentColor: string
|
||||||
/** Apparence (clair, sombre, nuit, bleu nuit étoilé). « auto » suit le navigateur. */
|
/** Apparence (clair, sombre, nuit, bleu nuit étoilé). « auto » suit le navigateur. */
|
||||||
themeMode: ThemeMode
|
themeMode: ThemeMode
|
||||||
/** Notifications reçues (true par défaut si absent). Nécessite un compte. */
|
|
||||||
notifPrefs?: NotifPrefs
|
|
||||||
/** Défis de visionnage (synchronisés avec les réglages, privés). */
|
/** Défis de visionnage (synchronisés avec les réglages, privés). */
|
||||||
challenges?: Challenge[]
|
challenges?: Challenge[]
|
||||||
/** Mois masqués dans la courbe des stats (AAAA-MM), ex. le mois où j'ai tout ajouté d'un coup. */
|
/** Mois masqués dans la courbe des stats (AAAA-MM), ex. le mois où j'ai tout ajouté d'un coup. */
|
||||||
@@ -133,22 +133,6 @@ export interface Challenge {
|
|||||||
archived?: boolean
|
archived?: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Types de notifications que l'on choisit de recevoir (true par défaut). */
|
|
||||||
export interface NotifPrefs {
|
|
||||||
/** Nouveaux épisodes / saisons des séries suivies */
|
|
||||||
episodes?: boolean
|
|
||||||
/** Nouveaux abonnés et demandes d'abonnement */
|
|
||||||
follows?: boolean
|
|
||||||
/** Demandes d'abonnement acceptées */
|
|
||||||
accepted?: boolean
|
|
||||||
/** Réactions reçues sur mes avis */
|
|
||||||
reactions?: boolean
|
|
||||||
/** Commentaires reçus sous mes avis */
|
|
||||||
comments?: boolean
|
|
||||||
/** Invitations à des listes partagées */
|
|
||||||
lists?: boolean
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface CustomList {
|
export interface CustomList {
|
||||||
id: string
|
id: string
|
||||||
name: string
|
name: string
|
||||||
|
|||||||
File diff suppressed because it is too large.
Load diff
@@ -1,111 +0,0 @@
|
|||||||
# Notifications push (Web Push) — mise en service
|
|
||||||
|
|
||||||
Les notifications de la cloche (nouveaux abonnés, demandes acceptées, réactions, nouveaux épisodes…)
|
|
||||||
peuvent aussi arriver **sur le téléphone / l'ordinateur, même app fermée**.
|
|
||||||
|
|
||||||
```
|
|
||||||
nouvelle ligne dans public.notifications
|
|
||||||
└─ déclencheur notifications_push (SQL) ── pg_net ──► fonction « send-push » (en-tête x-push-secret)
|
|
||||||
├─ push_claim() : notifications non envoyées + appareils
|
|
||||||
├─ préférences (notifPrefs) appliquées, textes traduits, regroupés
|
|
||||||
├─ chiffrement aes128gcm + jeton VAPID ──► FCM / Mozilla / Apple / Windows
|
|
||||||
└─ push_done() : appareils expirés (404/410) supprimés
|
|
||||||
```
|
|
||||||
|
|
||||||
Rien ne casse tant que ce n'est pas configuré : sans secrets ni Vault, le déclencheur ne fait rien,
|
|
||||||
la cloche fonctionne comme avant et l'interrupteur des Réglages affiche « pas encore disponible ».
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
## 1. Base de données (SQL Editor)
|
|
||||||
|
|
||||||
Prérequis déjà appliqués : `20261007120000_social_notifications.sql` et `20261008140000_episode_notifications_fix.sql`.
|
|
||||||
|
|
||||||
1. Supabase → **SQL Editor** → coller `supabase/A_COLLER_2026-10-09.sql` (contient `20261009150000_web_push.sql` et l'adresse `azuu_push_url` dans Vault) → **Run**.
|
|
||||||
- Elle active l'extension **pg_net** (`create extension if not exists pg_net`). Si l'éditeur refuse,
|
|
||||||
l'activer à la main : **Database → Extensions → pg_net → Enable**, puis relancer le fichier.
|
|
||||||
- Le fichier est idempotent : on peut le relancer sans risque.
|
|
||||||
|
|
||||||
## 2. Clés VAPID et secret partagé (sur ton PC)
|
|
||||||
|
|
||||||
```bash
|
|
||||||
node scripts/gen-vapid.mjs
|
|
||||||
```
|
|
||||||
|
|
||||||
Le script affiche les commandes à copier. **Ne jamais committer ces valeurs** (ni dans `.env`, ni en `VITE_…`).
|
|
||||||
La clé publique n'est pas secrète (l'app la lit via la fonction), la clé privée et le secret du webhook le sont.
|
|
||||||
|
|
||||||
## 3. Secrets des fonctions
|
|
||||||
|
|
||||||
Supabase → **Edge Functions → Secrets** (ou `supabase secrets set …`) :
|
|
||||||
|
|
||||||
| Nom | Valeur |
|
|
||||||
| --- | --- |
|
|
||||||
| `VAPID_PUBLIC_KEY` | clé publique affichée par le script (87 caractères, commence par `B`) |
|
|
||||||
| `VAPID_PRIVATE_KEY` | clé privée affichée par le script (43 caractères) |
|
|
||||||
| `VAPID_SUBJECT` | `mailto:ton-adresse@…` (contact pour les services push) |
|
|
||||||
| `PUSH_WEBHOOK_SECRET` | secret aléatoire affiché par le script (≥ 32 caractères) |
|
|
||||||
|
|
||||||
`SUPABASE_URL` et `SUPABASE_SERVICE_ROLE_KEY` sont fournis automatiquement. `ALLOWED_ORIGINS`
|
|
||||||
(déjà en place pour `tmdb`) sert aussi ici pour la lecture de la clé publique depuis le site.
|
|
||||||
|
|
||||||
## 4. Déployer la fonction
|
|
||||||
|
|
||||||
> ✅ Déjà fait le 9 oct. 2026 (version 1 déployée par Claude). À refaire seulement si `functions/send-push` change.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
supabase functions deploy send-push --project-ref qfgnxonqwldcfdjqhhjz
|
|
||||||
```
|
|
||||||
|
|
||||||
`supabase/config.toml` contient `verify_jwt = false` pour `send-push` : la base l'appelle sans jeton
|
|
||||||
utilisateur, l'accès est protégé par l'en-tête `x-push-secret` (comparé en temps constant).
|
|
||||||
Vérification : ouvrir `https://qfgnxonqwldcfdjqhhjz.supabase.co/functions/v1/send-push` → `{"publicKey":"B…"}`.
|
|
||||||
|
|
||||||
## 5. Adresse et secret dans Supabase Vault (SQL Editor)
|
|
||||||
|
|
||||||
Le déclencheur lit ces deux valeurs dans Vault (elles ne sont jamais écrites dans une migration) :
|
|
||||||
|
|
||||||
```sql
|
|
||||||
select vault.create_secret('https://qfgnxonqwldcfdjqhhjz.supabase.co/functions/v1/send-push', 'azuu_push_url');
|
|
||||||
select vault.create_secret('<la même valeur que PUSH_WEBHOOK_SECRET>', 'azuu_push_secret');
|
|
||||||
```
|
|
||||||
|
|
||||||
Pour changer une valeur plus tard :
|
|
||||||
|
|
||||||
```sql
|
|
||||||
select vault.update_secret((select id from vault.secrets where name = 'azuu_push_secret'), '<nouvelle valeur>');
|
|
||||||
```
|
|
||||||
|
|
||||||
(et mettre la même dans le secret `PUSH_WEBHOOK_SECRET` de la fonction).
|
|
||||||
|
|
||||||
## 6. Publier l'app
|
|
||||||
|
|
||||||
`git push` (Gitea Actions construit et publie). Le service worker se met à jour tout seul ;
|
|
||||||
il charge `push-sw.js` (servi en `Cache-Control: no-cache`, en-tête généré depuis `vite.config.ts`).
|
|
||||||
|
|
||||||
## 7. Tester
|
|
||||||
|
|
||||||
1. Sur l'app : **Réglages → Notifications → Notifications sur cet appareil** (la permission n'est demandée qu'à ce moment-là).
|
|
||||||
- iPhone / iPad : uniquement depuis l'app **installée sur l'écran d'accueil**, iOS 16.4 ou plus récent.
|
|
||||||
2. Depuis un autre compte, s'abonner à ce compte → une notification doit arriver (même app fermée).
|
|
||||||
3. En cas de souci :
|
|
||||||
```sql
|
|
||||||
select count(*) from public.push_subscriptions; -- l'appareil est-il inscrit ?
|
|
||||||
select id, status_code, content, created from net._http_response order by created desc limit 10; -- appels de la base
|
|
||||||
```
|
|
||||||
et **Edge Functions → send-push → Logs**. Un `401` = `PUSH_WEBHOOK_SECRET` et `azuu_push_secret` différents ;
|
|
||||||
un `503 not-configured` = secrets VAPID manquants ou mal copiés.
|
|
||||||
|
|
||||||
## Sécurité (résumé)
|
|
||||||
|
|
||||||
- `push_subscriptions` : RLS activé et forcé ; chacun ne voit / supprime que ses appareils ; ajout uniquement via
|
|
||||||
`register_push_subscription` (security definer) qui n'accepte que des adresses **https** vers les services push
|
|
||||||
connus (`fcm.googleapis.com`, `updates.push.services.mozilla.com`, `*.push.apple.com`, `web.push.apple.com`,
|
|
||||||
`*.notify.windows.com`) : pas de SSRF possible. La fonction d'envoi revérifie la liste.
|
|
||||||
- 10 appareils max par compte (les plus anciens sont retirés), 10 nouvelles inscriptions max par 10 minutes.
|
|
||||||
- Un abonnement déjà lié à un autre compte n'est repris que si l'on fournit les mêmes clés (même navigateur).
|
|
||||||
- À la déconnexion, l'appareil est désinscrit ; à la suppression du compte, tout part en cascade.
|
|
||||||
- `push_claim` / `push_done` : réservées au rôle `service_role`. Les préférences `notifPrefs` sont appliquées
|
|
||||||
à la création **et** à l'envoi.
|
|
||||||
- Changer les clés VAPID invalide les abonnements existants : après une rotation, vider la table
|
|
||||||
(`delete from public.push_subscriptions;`) ; chacun réactive l'interrupteur.
|
|
||||||
@@ -10,5 +10,3 @@ verify_jwt = false
|
|||||||
[functions.delete-account]
|
[functions.delete-account]
|
||||||
verify_jwt = false
|
verify_jwt = false
|
||||||
|
|
||||||
[functions.send-push]
|
|
||||||
verify_jwt = false
|
|
||||||
@@ -28,8 +28,22 @@ export function json(req: Request, status: number, body: unknown, extra: Record<
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
// Petit cache jeton → utilisateur (évite de revérifier le même jeton à chaque requête)
|
// Petit cache jeton → utilisateur (évite de revérifier le même jeton à chaque requête).
|
||||||
const verified = new Map<string, { id: string; until: number }>()
|
// Les jetons refusés sont aussi gardés 30 s (id null) : un jeton invalide répété ne sollicite pas Supabase Auth à chaque fois.
|
||||||
|
const verified = new Map<string, { id: string | null; until: number }>()
|
||||||
|
|
||||||
|
function remember(token: string, id: string | null, ttlMs: number) {
|
||||||
|
// Trop d'entrées : on retire les plus anciennes (ordre d'insertion de la Map) au lieu de tout vider
|
||||||
|
if (verified.size >= 5000) {
|
||||||
|
let n = verified.size - 4000
|
||||||
|
for (const k of verified.keys()) {
|
||||||
|
if (n-- <= 0) break
|
||||||
|
verified.delete(k)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
verified.delete(token)
|
||||||
|
verified.set(token, { id, until: Date.now() + ttlMs })
|
||||||
|
}
|
||||||
|
|
||||||
/** Vérifie le jeton de connexion auprès de Supabase Auth. Renvoie l'id de l'utilisateur, ou null. */
|
/** Vérifie le jeton de connexion auprès de Supabase Auth. Renvoie l'id de l'utilisateur, ou null. */
|
||||||
export async function getUserId(req: Request): Promise<string | null> {
|
export async function getUserId(req: Request): Promise<string | null> {
|
||||||
@@ -38,12 +52,24 @@ export async function getUserId(req: Request): Promise<string | null> {
|
|||||||
if (!token || token.length > 4096 || token === ANON_KEY) return null
|
if (!token || token.length > 4096 || token === ANON_KEY) return null
|
||||||
const cached = verified.get(token)
|
const cached = verified.get(token)
|
||||||
if (cached && cached.until > Date.now()) return cached.id
|
if (cached && cached.until > Date.now()) return cached.id
|
||||||
const res = await fetch(`${SUPABASE_URL}/auth/v1/user`, { headers: { apikey: ANON_KEY, Authorization: `Bearer ${token}` } })
|
let res: Response
|
||||||
if (!res.ok) return null
|
try {
|
||||||
const user = (await res.json()) as { id?: string }
|
res = await fetch(`${SUPABASE_URL}/auth/v1/user`, {
|
||||||
|
headers: { apikey: ANON_KEY, Authorization: `Bearer ${token}` },
|
||||||
|
signal: AbortSignal.timeout(8000),
|
||||||
|
})
|
||||||
|
} catch {
|
||||||
|
return null // Auth injoignable : on ne met rien en cache
|
||||||
|
}
|
||||||
|
if (!res.ok) {
|
||||||
|
await res.body?.cancel()
|
||||||
|
// Jeton refusé (401/403) : mémorisé brièvement ; erreur passagère (5xx…) : pas de cache
|
||||||
|
if (res.status === 401 || res.status === 403) remember(token, null, 30_000)
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
const user = (await res.json().catch(() => ({}))) as { id?: string }
|
||||||
if (typeof user.id !== 'string') return null
|
if (typeof user.id !== 'string') return null
|
||||||
if (verified.size > 5000) verified.clear()
|
remember(token, user.id, 60_000)
|
||||||
verified.set(token, { id: user.id, until: Date.now() + 60_000 })
|
|
||||||
return user.id
|
return user.id
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,7 +79,16 @@ export function rateLimited(userId: string, max: number, windowMs: number): bool
|
|||||||
const now = Date.now()
|
const now = Date.now()
|
||||||
const list = (hits.get(userId) ?? []).filter((t) => now - t < windowMs)
|
const list = (hits.get(userId) ?? []).filter((t) => now - t < windowMs)
|
||||||
list.push(now)
|
list.push(now)
|
||||||
|
// Réinsertion : la clé passe en fin de Map (ordre = dernière activité)
|
||||||
|
hits.delete(userId)
|
||||||
hits.set(userId, list)
|
hits.set(userId, list)
|
||||||
if (hits.size > 10000) hits.clear()
|
// Trop de clés : on retire les moins récemment actives au lieu de tout vider (sinon tout le monde repart à zéro)
|
||||||
|
if (hits.size > 10000) {
|
||||||
|
let n = hits.size - 8000
|
||||||
|
for (const k of hits.keys()) {
|
||||||
|
if (n-- <= 0) break
|
||||||
|
hits.delete(k)
|
||||||
|
}
|
||||||
|
}
|
||||||
return list.length > max
|
return list.length > max
|
||||||
}
|
}
|
||||||
@@ -1,201 +0,0 @@
|
|||||||
// Web Push sans dépendance : chiffrement « aes128gcm » (RFC 8188 + RFC 8291) et
|
|
||||||
// authentification VAPID (RFC 8292, jeton JWT ES256), uniquement avec WebCrypto.
|
|
||||||
// Aucune API propre à Deno ici : le module est aussi testé avec Node (vecteurs de la RFC 8291).
|
|
||||||
|
|
||||||
const enc = new TextEncoder()
|
|
||||||
/** Octets adossés à un ArrayBuffer (exigé par les types WebCrypto / fetch récents) */
|
|
||||||
export type Bytes = Uint8Array<ArrayBuffer>
|
|
||||||
|
|
||||||
export function b64urlEncode(bytes: Bytes): string {
|
|
||||||
let s = ''
|
|
||||||
for (const b of bytes) s += String.fromCharCode(b)
|
|
||||||
return btoa(s).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '')
|
|
||||||
}
|
|
||||||
|
|
||||||
export function b64urlDecode(str: string): Bytes {
|
|
||||||
if (!/^[A-Za-z0-9_-]*={0,2}$/.test(str)) throw new Error('base64url invalide')
|
|
||||||
const b64 = str.replace(/=+$/, '').replace(/-/g, '+').replace(/_/g, '/')
|
|
||||||
const bin = atob(b64 + '='.repeat((4 - (b64.length % 4)) % 4))
|
|
||||||
const out = new Uint8Array(bin.length)
|
|
||||||
for (let i = 0; i < bin.length; i++) out[i] = bin.charCodeAt(i)
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
function concat(...parts: Uint8Array[]): Bytes {
|
|
||||||
const out = new Uint8Array(parts.reduce((n, p) => n + p.length, 0))
|
|
||||||
let o = 0
|
|
||||||
for (const p of parts) {
|
|
||||||
out.set(p, o)
|
|
||||||
o += p.length
|
|
||||||
}
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
|
|
||||||
async function hmac(key: Bytes, data: Bytes): Promise<Bytes> {
|
|
||||||
const k = await crypto.subtle.importKey('raw', key, { name: 'HMAC', hash: 'SHA-256' }, false, ['sign'])
|
|
||||||
return new Uint8Array(await crypto.subtle.sign('HMAC', k, data))
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Clé publique P-256 brute (65 octets, 0x04 || X || Y) → JWK. */
|
|
||||||
function rawToJwk(raw: Bytes, d?: Bytes): JsonWebKey {
|
|
||||||
if (raw.length !== 65 || raw[0] !== 4) throw new Error('clé publique P-256 invalide')
|
|
||||||
return {
|
|
||||||
kty: 'EC',
|
|
||||||
crv: 'P-256',
|
|
||||||
x: b64urlEncode(raw.slice(1, 33)),
|
|
||||||
y: b64urlEncode(raw.slice(33, 65)),
|
|
||||||
...(d ? { d: b64urlEncode(d) } : {}),
|
|
||||||
ext: true,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface EncryptOptions {
|
|
||||||
/** Pour les tests uniquement : paire éphémère et sel imposés (vecteurs RFC 8291). */
|
|
||||||
asPrivate?: Bytes
|
|
||||||
asPublic?: Bytes
|
|
||||||
salt?: Bytes
|
|
||||||
/** Taille d'enregistrement annoncée (4096 par défaut) */
|
|
||||||
rs?: number
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Chiffre un message pour un abonnement push (Content-Encoding: aes128gcm).
|
|
||||||
* @param uaPublic clé « p256dh » de l'abonnement (65 octets)
|
|
||||||
* @param authSecret clé « auth » de l'abonnement (16 octets)
|
|
||||||
*/
|
|
||||||
export async function encryptPayload(
|
|
||||||
plaintext: Bytes,
|
|
||||||
uaPublic: Bytes,
|
|
||||||
authSecret: Bytes,
|
|
||||||
opts: EncryptOptions = {},
|
|
||||||
): Promise<Bytes> {
|
|
||||||
if (uaPublic.length !== 65 || uaPublic[0] !== 4) throw new Error('p256dh invalide')
|
|
||||||
if (authSecret.length < 16) throw new Error('auth invalide')
|
|
||||||
const rs = opts.rs ?? 4096
|
|
||||||
// Un seul enregistrement : le message (+ 1 octet de délimitation + 16 octets de tag) doit tenir dedans
|
|
||||||
if (plaintext.length + 1 + 16 > rs) throw new Error('message trop long')
|
|
||||||
|
|
||||||
// Paire de clés éphémère du serveur d'application
|
|
||||||
let asPriv: CryptoKey
|
|
||||||
let asPublic: Bytes
|
|
||||||
if (opts.asPrivate && opts.asPublic) {
|
|
||||||
asPriv = await crypto.subtle.importKey('jwk', rawToJwk(opts.asPublic, opts.asPrivate), { name: 'ECDH', namedCurve: 'P-256' }, false, ['deriveBits'])
|
|
||||||
asPublic = opts.asPublic
|
|
||||||
} else {
|
|
||||||
const pair = (await crypto.subtle.generateKey({ name: 'ECDH', namedCurve: 'P-256' }, true, ['deriveBits'])) as CryptoKeyPair
|
|
||||||
asPriv = pair.privateKey
|
|
||||||
asPublic = new Uint8Array(await crypto.subtle.exportKey('raw', pair.publicKey))
|
|
||||||
}
|
|
||||||
const uaKey = await crypto.subtle.importKey('raw', uaPublic, { name: 'ECDH', namedCurve: 'P-256' }, false, [])
|
|
||||||
const ecdhSecret = new Uint8Array(await crypto.subtle.deriveBits({ name: 'ECDH', public: uaKey }, asPriv, 256))
|
|
||||||
|
|
||||||
// RFC 8291 §3.3-3.4 (HKDF écrit avec HMAC, une seule itération suffit pour ≤ 32 octets)
|
|
||||||
const prkKey = await hmac(authSecret, ecdhSecret)
|
|
||||||
const keyInfo = concat(enc.encode('WebPush: info\0'), uaPublic, asPublic)
|
|
||||||
const ikm = await hmac(prkKey, concat(keyInfo, new Uint8Array([1])))
|
|
||||||
|
|
||||||
const salt = opts.salt ?? crypto.getRandomValues(new Uint8Array(16))
|
|
||||||
if (salt.length !== 16) throw new Error('sel invalide')
|
|
||||||
const prk = await hmac(salt, ikm)
|
|
||||||
const cek = (await hmac(prk, enc.encode('Content-Encoding: aes128gcm\0\x01'))).slice(0, 16)
|
|
||||||
const nonce = (await hmac(prk, enc.encode('Content-Encoding: nonce\0\x01'))).slice(0, 12)
|
|
||||||
|
|
||||||
// Dernier (et seul) enregistrement : délimiteur 0x02, sans remplissage
|
|
||||||
const record = concat(plaintext, new Uint8Array([2]))
|
|
||||||
const aes = await crypto.subtle.importKey('raw', cek, { name: 'AES-GCM' }, false, ['encrypt'])
|
|
||||||
const cipher = new Uint8Array(await crypto.subtle.encrypt({ name: 'AES-GCM', iv: nonce, tagLength: 128 }, aes, record))
|
|
||||||
|
|
||||||
// En-tête RFC 8188 : sel (16) || rs (4, gros-boutiste) || idlen (1) || keyid (clé publique éphémère)
|
|
||||||
const header = new Uint8Array(16 + 4 + 1 + asPublic.length)
|
|
||||||
header.set(salt, 0)
|
|
||||||
new DataView(header.buffer).setUint32(16, rs, false)
|
|
||||||
header[20] = asPublic.length
|
|
||||||
header.set(asPublic, 21)
|
|
||||||
return concat(header, cipher)
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface VapidKeys {
|
|
||||||
/** Clé publique brute en base64url (65 octets) */
|
|
||||||
publicKey: string
|
|
||||||
/** Clé privée (scalaire « d », 32 octets) en base64url */
|
|
||||||
privateKey: string
|
|
||||||
/** « mailto:… » ou « https://… » */
|
|
||||||
subject: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const signingKeys = new Map<string, Promise<CryptoKey>>()
|
|
||||||
|
|
||||||
function vapidSigningKey(v: VapidKeys): Promise<CryptoKey> {
|
|
||||||
const cacheKey = v.publicKey
|
|
||||||
let p = signingKeys.get(cacheKey)
|
|
||||||
if (!p) {
|
|
||||||
p = crypto.subtle.importKey('jwk', rawToJwk(b64urlDecode(v.publicKey), b64urlDecode(v.privateKey)), { name: 'ECDSA', namedCurve: 'P-256' }, false, ['sign'])
|
|
||||||
signingKeys.set(cacheKey, p)
|
|
||||||
}
|
|
||||||
return p
|
|
||||||
}
|
|
||||||
|
|
||||||
/** En-tête Authorization VAPID pour un point d'envoi donné (jeton valable 12 h). */
|
|
||||||
export async function vapidAuthorization(endpoint: string, v: VapidKeys, nowSec = Math.floor(Date.now() / 1000)): Promise<string> {
|
|
||||||
const aud = new URL(endpoint).origin
|
|
||||||
const header = b64urlEncode(enc.encode(JSON.stringify({ typ: 'JWT', alg: 'ES256' })))
|
|
||||||
const claims = b64urlEncode(enc.encode(JSON.stringify({ aud, exp: nowSec + 12 * 3600, sub: v.subject })))
|
|
||||||
const unsigned = `${header}.${claims}`
|
|
||||||
// WebCrypto renvoie la signature au format r || s (64 octets), celui attendu par JWS
|
|
||||||
const sig = new Uint8Array(await crypto.subtle.sign({ name: 'ECDSA', hash: 'SHA-256' }, await vapidSigningKey(v), enc.encode(unsigned)))
|
|
||||||
return `vapid t=${unsigned}.${b64urlEncode(sig)}, k=${v.publicKey}`
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PushTarget {
|
|
||||||
endpoint: string
|
|
||||||
p256dh: string
|
|
||||||
auth: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PushResult = 'ok' | 'gone' | 'error'
|
|
||||||
|
|
||||||
/** Envoie un message chiffré à un abonnement. « gone » = abonnement expiré (à supprimer). */
|
|
||||||
export async function sendWebPush(target: PushTarget, payload: string, v: VapidKeys, ttl = 24 * 3600, topic?: string): Promise<PushResult> {
|
|
||||||
const body = await encryptPayload(enc.encode(payload), b64urlDecode(target.p256dh), b64urlDecode(target.auth))
|
|
||||||
const headers: Record<string, string> = {
|
|
||||||
Authorization: await vapidAuthorization(target.endpoint, v),
|
|
||||||
'Content-Encoding': 'aes128gcm',
|
|
||||||
'Content-Type': 'application/octet-stream',
|
|
||||||
TTL: String(ttl),
|
|
||||||
Urgency: 'normal',
|
|
||||||
}
|
|
||||||
// « Topic » : un message plus récent du même sujet remplace celui encore en attente
|
|
||||||
if (topic && /^[A-Za-z0-9_-]{1,32}$/.test(topic)) headers.Topic = topic
|
|
||||||
const ctrl = new AbortController()
|
|
||||||
const timer = setTimeout(() => ctrl.abort(), 10_000)
|
|
||||||
try {
|
|
||||||
const res = await fetch(target.endpoint, { method: 'POST', headers, body, signal: ctrl.signal, redirect: 'error' })
|
|
||||||
await res.body?.cancel()
|
|
||||||
if (res.status === 404 || res.status === 410) return 'gone'
|
|
||||||
return res.ok ? 'ok' : 'error'
|
|
||||||
} catch {
|
|
||||||
return 'error'
|
|
||||||
} finally {
|
|
||||||
clearTimeout(timer)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Mêmes hôtes que la vérification côté base (anti-SSRF, double contrôle). */
|
|
||||||
export function isAllowedPushEndpoint(endpoint: string): boolean {
|
|
||||||
if (endpoint.length > 1024) return false
|
|
||||||
let u: URL
|
|
||||||
try {
|
|
||||||
u = new URL(endpoint)
|
|
||||||
} catch {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
if (u.protocol !== 'https:' || u.username || u.password || (u.port && u.port !== '443')) return false
|
|
||||||
const h = u.hostname.toLowerCase()
|
|
||||||
return (
|
|
||||||
h === 'fcm.googleapis.com' ||
|
|
||||||
h === 'updates.push.services.mozilla.com' ||
|
|
||||||
h === 'web.push.apple.com' ||
|
|
||||||
/^[a-z0-9-]{1,63}(\.[a-z0-9-]{1,63})*\.push\.apple\.com$/.test(h) ||
|
|
||||||
/^[a-z0-9-]{1,63}(\.[a-z0-9-]{1,63})*\.notify\.windows\.com$/.test(h)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,104 +0,0 @@
|
|||||||
// Transforme les notifications d'un compte en messages push courts (regroupés si besoin).
|
|
||||||
// Module sans API Deno : testé aussi avec Node.
|
|
||||||
|
|
||||||
import { fill, MESSAGES } from './messages.ts'
|
|
||||||
|
|
||||||
export interface ClaimedItem {
|
|
||||||
id: number
|
|
||||||
kind: string
|
|
||||||
emoji: string | null
|
|
||||||
item_id: string | null
|
|
||||||
episode: number | null
|
|
||||||
ep_count: number | null
|
|
||||||
actor: { username: string; display_name: string } | null
|
|
||||||
title: string | null
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PushMessage {
|
|
||||||
title: string
|
|
||||||
body: string
|
|
||||||
/** Écran à ouvrir au clic (paramètre « open » de l'app) */
|
|
||||||
open: string
|
|
||||||
/** Une notification du même « tag » remplace la précédente sur l'appareil */
|
|
||||||
tag: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const EMOJIS = new Set(['👍', '❤️', '🔥', '😂', '😮', '😢'])
|
|
||||||
|
|
||||||
/** Texte venu de la base : sans caractères de contrôle ni de direction, longueur bornée. */
|
|
||||||
export function clean(v: unknown, max: number): string {
|
|
||||||
if (typeof v !== 'string') return ''
|
|
||||||
const s = v.replace(/[\u0000-\u001f\u007f-\u009f\u200b-\u200f\u202a-\u202e\u2066-\u2069]/g, '').replace(/\s+/g, ' ').trim()
|
|
||||||
return s.length > max ? s.slice(0, max - 1).trimEnd() + '…' : s
|
|
||||||
}
|
|
||||||
|
|
||||||
const SAFE_ID = /^[A-Za-z0-9_-]{1,64}$/
|
|
||||||
const SAFE_USER = /^[a-z0-9_]{3,20}$/
|
|
||||||
|
|
||||||
export function compose(items: ClaimedItem[], lang: string): PushMessage[] {
|
|
||||||
const tx = MESSAGES[lang] ?? MESSAGES.fr
|
|
||||||
const out: PushMessage[] = []
|
|
||||||
const eps = items.filter((i) => i.kind === 'new_episode' || i.kind === 'new_season')
|
|
||||||
const social = items.filter((i) => i.kind !== 'new_episode' && i.kind !== 'new_season')
|
|
||||||
|
|
||||||
// Épisodes : un message par série, ou un seul résumé s'il y en a plusieurs
|
|
||||||
if (eps.length === 1) {
|
|
||||||
const e = eps[0]
|
|
||||||
const n = Number.isInteger(e.episode) && (e.episode as number) > 0 ? (e.episode as number) : null
|
|
||||||
out.push({
|
|
||||||
title: clean(e.title, 80) || 'Kino',
|
|
||||||
body: e.kind === 'new_season' || n === null ? tx.season : fill(tx.episode, { n }),
|
|
||||||
open: e.item_id && SAFE_ID.test(e.item_id) ? `item:${e.item_id}` : 'notifications',
|
|
||||||
tag: e.item_id && SAFE_ID.test(e.item_id) ? `ep-${e.item_id}`.slice(0, 64) : 'episodes',
|
|
||||||
})
|
|
||||||
} else if (eps.length > 1) {
|
|
||||||
const titles = [...new Set(eps.map((e) => clean(e.title, 40)).filter(Boolean))]
|
|
||||||
out.push({
|
|
||||||
title: `${tx.episodesTitle} (${eps.length})`,
|
|
||||||
body: clean(titles.join(' · '), 160) || fill(tx.many, { count: eps.length }),
|
|
||||||
open: 'notifications',
|
|
||||||
tag: 'episodes',
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
// Abonnements / réactions : un message chacun (3 au plus), sinon un résumé
|
|
||||||
if (social.length > 3) {
|
|
||||||
out.push({ title: 'Kino', body: fill(tx.many, { count: social.length }), open: 'notifications', tag: 'social' })
|
|
||||||
} else {
|
|
||||||
for (const s of social) {
|
|
||||||
const name = clean(s.actor?.display_name, 40) || clean(s.actor?.username, 20) || 'Kino'
|
|
||||||
const user = s.actor && SAFE_USER.test(s.actor.username) ? s.actor.username : null
|
|
||||||
let body: string
|
|
||||||
let open = 'notifications'
|
|
||||||
let title = 'Kino'
|
|
||||||
switch (s.kind) {
|
|
||||||
case 'follow_request':
|
|
||||||
body = fill(tx.followRequest, { name })
|
|
||||||
break
|
|
||||||
case 'new_follower':
|
|
||||||
body = fill(tx.newFollower, { name })
|
|
||||||
if (user) open = `u:${user}`
|
|
||||||
break
|
|
||||||
case 'follow_accepted':
|
|
||||||
body = fill(tx.followAccepted, { name })
|
|
||||||
if (user) open = `u:${user}`
|
|
||||||
break
|
|
||||||
case 'reaction':
|
|
||||||
body = fill(tx.reaction, { name, emoji: s.emoji && EMOJIS.has(s.emoji) ? s.emoji : '' }).replace(/\s+/g, ' ')
|
|
||||||
title = clean(s.title, 80) || 'Kino'
|
|
||||||
break
|
|
||||||
case 'review_comment':
|
|
||||||
body = fill(tx.comment, { name })
|
|
||||||
title = clean(s.title, 80) || 'Kino'
|
|
||||||
break
|
|
||||||
case 'shared_list_invite':
|
|
||||||
body = fill(tx.listInvite, { name, list: clean(s.title, 60) })
|
|
||||||
break
|
|
||||||
default:
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
out.push({ title, body, open, tag: `n-${s.id}` })
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return out
|
|
||||||
}
|
|
||||||
Loaded 100 of 107 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user