Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dba91678bd | ||
|
|
3eb8d4651c | ||
|
|
1433fc627c | ||
|
|
e1cd166366 | ||
|
|
c6a1382192 | ||
|
|
e45d0ce969 | ||
|
|
f580e9b5ed | ||
|
|
b2c3452672 | ||
|
|
9c42470ace | ||
|
|
ed905a3278 | ||
|
|
aa5442e02a | ||
|
|
0bf6002e7b | ||
|
|
0f3cc2e7d6 | ||
|
|
4c93b6a726 | ||
|
|
2f37438d16 | ||
|
|
e579cac315 | ||
|
|
9974027925 | ||
|
|
b68ddf895b | ||
|
|
8eda394ae3 |
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
# AzuuCine — contexte projet (lu automatiquement par Claude Code)
|
# Kino (ex-AzuuCine) — contexte projet (lu automatiquement par Claude Code)
|
||||||
|
|
||||||
PWA de suivi de films, séries, animes, K-dramas et C-dramas. Interface en français
|
PWA de suivi de films, séries, animes, K-dramas et C-dramas. Interface en français
|
||||||
(18 langues). Thème sombre par défaut, accent rouge, sans dégradés, police Inter.
|
(18 langues). Thème sombre par défaut, accent rouge, sans dégradés, police Inter.
|
||||||
@@ -7,7 +7,7 @@ PWA de suivi de films, séries, animes, K-dramas et C-dramas. Interface en fran
|
|||||||
- **Vite + React 19 + TypeScript**, **Tailwind CSS v4**, PWA (vite-plugin-pwa, service worker auto-update).
|
- **Vite + React 19 + TypeScript**, **Tailwind CSS v4**, PWA (vite-plugin-pwa, service worker auto-update).
|
||||||
- **Supabase** (Postgres + Auth + Storage + Edge Functions) pour les comptes et le social.
|
- **Supabase** (Postgres + Auth + Storage + Edge Functions) pour les comptes et le social.
|
||||||
- Local-first : IndexedDB par utilisateur + outbox + synchro last-write-wins.
|
- Local-first : IndexedDB par utilisateur + outbox + synchro last-write-wins.
|
||||||
- Dossier local : `C:\Users\romai\Documents\FICHIER\PROJET\AzuuCine`.
|
- Dossier local : `C:\Users\romai\Documents\FICHIER\PROJET\Kino`.
|
||||||
|
|
||||||
## Lancer / vérifier
|
## Lancer / vérifier
|
||||||
```bash
|
```bash
|
||||||
@@ -18,8 +18,9 @@ npm run build # build de prod
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Déploiement
|
## Déploiement
|
||||||
- Remote git : **Gitea** `https://gitea.rdacet.fr/romain/azuucine.git` (branche `main`).
|
- Remote git : **Gitea** `https://gitea.rdacet.fr/romain/kino.git` (branche `main`).
|
||||||
- Push via **PowerShell** : `git push` (GitHub Desktop n'authentifie pas Gitea).
|
- Claude Code (cloud) accède directement à Gitea : jeton `GITEA_TOKEN` en « network secret » de l'environnement (portée `write:repository`). Claude pousse sur une branche `claude/…` ; Romain fusionne dans `main` depuis Gitea (ce qui déploie). Plus de dépôt GitHub.
|
||||||
|
- Push via **PowerShell** : `git push`.
|
||||||
- **Gitea Actions** (`.gitea/workflows/deploy.yml`) build et publie sur le **VPS** (nginx en LXC) à chaque push sur `main`. Site : https://azuucine.rdacet.fr
|
- **Gitea Actions** (`.gitea/workflows/deploy.yml`) build et publie sur le **VPS** (nginx en LXC) à chaque push sur `main`. Site : https://azuucine.rdacet.fr
|
||||||
- `vite.config.ts` contient un garde-fou : le build échoue si `VITE_SUPABASE_URL` / `VITE_SUPABASE_ANON_KEY` manquent en CI (variables/secrets Gitea Actions). La CSP et les en-têtes de sécurité y sont aussi définis (source unique → convertis en conf nginx par `deploy/headers-to-nginx.mjs`).
|
- `vite.config.ts` contient un garde-fou : le build échoue si `VITE_SUPABASE_URL` / `VITE_SUPABASE_ANON_KEY` manquent en CI (variables/secrets Gitea Actions). La CSP et les en-têtes de sécurité y sont aussi définis (source unique → convertis en conf nginx par `deploy/headers-to-nginx.mjs`).
|
||||||
|
|
||||||
@@ -38,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).
|
||||||
|
|
||||||
@@ -51,6 +52,8 @@ npm run build # build de prod
|
|||||||
- Clés plurielles `xxx_one`/`xxx_other` (+ `_few`/`_many` pour ar/ru/pl). Variables `{x}`.
|
- Clés plurielles `xxx_one`/`xxx_other` (+ `_few`/`_many` pour ar/ru/pl). Variables `{x}`.
|
||||||
- Thèmes d'apparence : `auto` (suit le navigateur), `light`, `dark`, `night`, `starfield` (fond étoilé CSS). Toujours utiliser les **tokens de thème** (`bg-bg`, `text-ink`, `bg-accent-fill`…), **jamais de couleur hex en dur**.
|
- Thèmes d'apparence : `auto` (suit le navigateur), `light`, `dark`, `night`, `starfield` (fond étoilé CSS). Toujours utiliser les **tokens de thème** (`bg-bg`, `text-ink`, `bg-accent-fill`…), **jamais de couleur hex en dur**.
|
||||||
|
|
||||||
|
- **Nom affiché : « Kino »** (renommé le 14 oct. 2026). Les identifiants techniques gardent `azuu`/`azuucine` (clés localStorage, bases IndexedDB, fonctions SQL `azuu_*`, secret Vault, dossiers `/srv/azuucine`, runner Gitea) : ne pas les renommer, ça casserait les données existantes.
|
||||||
|
|
||||||
## Conventions
|
## Conventions
|
||||||
- `npm run typecheck` doit passer après chaque modif.
|
- `npm run typecheck` doit passer après chaque modif.
|
||||||
- Ne pas mettre `localStorage`/`sessionStorage` sans try/catch.
|
- Ne pas mettre `localStorage`/`sessionStorage` sans try/catch.
|
||||||
@@ -60,7 +63,6 @@ npm run build # build de prod
|
|||||||
## État / en attente (au 9 oct. 2026)
|
## État / en attente (au 9 oct. 2026)
|
||||||
- Appliqués en ligne : tout jusqu'à `20261008150000`, + `20261009110000_private_tags` et `20261009140000_challenges`.
|
- Appliqués en ligne : tout jusqu'à `20261008150000`, + `20261009110000_private_tags` et `20261009140000_challenges`.
|
||||||
- **À coller dans SQL Editor** : `supabase/A_COLLER_2026-10-09.sql` (commentaires/spoilers, listes partagées, web push, modération, bugs/erreurs). Idempotent.
|
- **À coller dans SQL Editor** : `supabase/A_COLLER_2026-10-09.sql` (commentaires/spoilers, listes partagées, web push, modération, bugs/erreurs). Idempotent.
|
||||||
- Edge functions déployées : `tmdb` v4 (watch/providers, /find), `send-push` v1.
|
- **Notifications retirées (22 nov. 2026)** : plus de cloche ni de push. Migration `20261122120000_remove_notifications.sql` appliquée en ligne (triggers supprimés, `azuu_notify` ne fait plus rien, tables `notifications` / `push_subscriptions` vidées mais gardées). Ne pas les réintroduire sans demande.
|
||||||
- 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`.
|
- Recommandé : activer **Leaked Password Protection** (Authentication → Passwords) ; supprimer `_tmp_ping2` / `_tmp_sd2`.
|
||||||
@@ -1,244 +1 @@
|
|||||||
# AzuuCine
|
Appli de notation de film, série et autre
|
||||||
|
|
||||||
Application personnelle (PWA) pour suivre, noter et organiser mes visionnages : films, séries, animes, K-dramas, C-dramas et autres.
|
|
||||||
Deux modes :
|
|
||||||
- **Avec comptes** (si le fichier `.env` est rempli) : chacun crée son compte, ses données sont enregistrées dans une base
|
|
||||||
Supabase où **personne d'autre ne peut les lire**, synchronisées entre ses appareils, et gardées aussi sur le téléphone
|
|
||||||
pour fonctionner sans internet. La clé TMDB reste sur le serveur.
|
|
||||||
- **100 % local** (sans `.env`) : comme avant, tout reste dans le navigateur de l'appareil.
|
|
||||||
|
|
||||||
## Stack
|
|
||||||
|
|
||||||
- **Vite + React 19 + TypeScript**
|
|
||||||
- **Tailwind CSS v4** (thème sombre par défaut)
|
|
||||||
- **vite-plugin-pwa** : manifeste, icônes, service worker (fonctionne hors-ligne)
|
|
||||||
- **IndexedDB** via un petit wrapper maison (`src/lib/db.ts`), sans dépendance
|
|
||||||
- **lucide-react** pour les icônes
|
|
||||||
- Police **Inter** embarquée via `@fontsource` (aucun appel à Google Fonts)
|
|
||||||
- Recherche en ligne : **TMDB** (films, séries, dramas) et **AniList** (animes)
|
|
||||||
- Comptes : **Supabase** (Auth + Postgres + Edge Functions), appelé sans dépendance (`src/lib/cloud/`)
|
|
||||||
|
|
||||||
## Design
|
|
||||||
|
|
||||||
Fond noir + une couleur d'accent au choix (Réglages → Thème : 12 couleurs prêtes ou couleur libre, rouge par défaut), sobre, typographie simple façon Letterboxd (Inter partout, petites capitales grises pour les sections),
|
|
||||||
boutons en pilule, filets de 1px, **aucun dégradé ni ombre**. Les couleurs sont définies dans `src/index.css` (`@theme`).
|
|
||||||
|
|
||||||
## Arborescence
|
|
||||||
|
|
||||||
```
|
|
||||||
AzuuCine/
|
|
||||||
├── index.html # méta iOS/Android (plein écran, icône, barre d'état)
|
|
||||||
├── vite.config.ts # config Vite + manifeste PWA
|
|
||||||
├── public/icons/ # icônes de l'app (192, 512, maskable, apple-touch)
|
|
||||||
└── src/
|
|
||||||
├── main.tsx # point d'entrée + enregistrement du service worker
|
|
||||||
├── Root.tsx # écran de connexion si les comptes sont activés
|
|
||||||
├── App.tsx # navigation par onglets (#/home, #/catalog…)
|
|
||||||
├── store.tsx # service de données : CRUD, +1 épisode, import (React Context)
|
|
||||||
├── types.ts # modèle MediaItem
|
|
||||||
├── index.css # thème Tailwind + composants (.field, .chip, .btn…)
|
|
||||||
├── lib/
|
|
||||||
│ ├── db.ts # IndexedDB (une base par compte)
|
|
||||||
│ ├── cloud/ # comptes : connexion, synchronisation, proxy TMDB
|
|
||||||
│ ├── backup.ts # export / import JSON + validation des fiches
|
|
||||||
│ ├── catalogApi.ts # recherche TMDB + AniList, détection du type (K-drama, anime…)
|
|
||||||
│ ├── stats.ts # statistiques et estimation du temps passé
|
|
||||||
│ ├── constants.ts # types, statuts, critères, genres, plateformes
|
|
||||||
│ ├── image.ts # compression des affiches importées depuis la galerie
|
|
||||||
│ └── utils.ts
|
|
||||||
├── components/ # BottomNav, MediaCard, MediaForm, Rating, TagInput, Poster…
|
|
||||||
└── pages/ # Accueil, Catalogue, Statistiques, Réglages
|
|
||||||
supabase/
|
|
||||||
├── migrations/…_azuucine.sql # tables + règles de sécurité (RLS) à exécuter une fois
|
|
||||||
└── functions/ # fonctions serveur : tmdb (proxy avec ta clé), delete-account
|
|
||||||
```
|
|
||||||
|
|
||||||
## Sécurité
|
|
||||||
|
|
||||||
**Code public, données privées.** Tu peux publier le code sans risque : rien de secret n'est dedans.
|
|
||||||
|
|
||||||
- **Ce qui est public (normal)** : `VITE_SUPABASE_URL` et `VITE_SUPABASE_ANON_KEY` finissent dans l'app, donc lisibles par
|
|
||||||
n'importe qui. C'est prévu ainsi : elles ne donnent accès qu'à ce que les règles de la base autorisent.
|
|
||||||
- **Ce qui est secret** : ta clé TMDB (`TMDB_API_KEY`) et la clé `service_role` vivent **uniquement dans les secrets
|
|
||||||
Supabase**, côté serveur. Elles ne sont ni dans le code, ni dans `.env`, ni dans l'app. ⚠️ Ne mets jamais une clé
|
|
||||||
secrète dans une variable `VITE_…` : tout ce qui commence par `VITE_` est envoyé au navigateur.
|
|
||||||
- **Isolation des comptes** : Row Level Security sur toutes les tables (`user_id = auth.uid()`), vérifiée par la base
|
|
||||||
elle-même. Même avec la clé publique, impossible de lire ou modifier les données d'un autre compte.
|
|
||||||
- **Profils** : les autres membres ne lisent jamais les tables directement, seulement via des fonctions SQL qui vérifient
|
|
||||||
l'accès (profil public, ou abonné accepté pour un compte privé) et retirent les avis non publics et les listes perso.
|
|
||||||
Les photos ne peuvent être envoyées que dans le dossier de leur propriétaire (JPEG/PNG/WebP, 2 Mo max) ; le pseudo de
|
|
||||||
départ est aléatoire (l'email n'est jamais montré). Les visiteurs non
|
|
||||||
connectés n'ont accès à rien. Quotas par compte (20 000 fiches, 300 listes) et taille maximale par fiche.
|
|
||||||
- **Conflits** : la modification la plus récente gagne, vérifiée par un trigger côté serveur (un appareil resté
|
|
||||||
hors-ligne ne peut pas écraser une version plus récente).
|
|
||||||
- **Proxy TMDB** : seuls les comptes connectés peuvent l'utiliser, uniquement pour quelques adresses et paramètres
|
|
||||||
précis (liste blanche), avec une limite de requêtes par compte et une liste d'origines autorisées (`ALLOWED_ORIGINS`).
|
|
||||||
- **Mots de passe** : gérés par Supabase Auth (hachés, jamais stockés dans l'app). Seule la session (jetons renouvelés
|
|
||||||
automatiquement) est gardée sur l'appareil. Déconnexion = données du compte retirées de l'appareil.
|
|
||||||
- **Données reçues** : tout ce qui vient du serveur, d'un fichier importé ou des API est revalidé et borné
|
|
||||||
(`src/lib/security.ts`, `normalizeItem`) avant d'être affiché ou enregistré.
|
|
||||||
- **Images** : seules les images embarquées (`data:image/…`, SVG exclu) et celles de TMDB / AniList sont acceptées ;
|
|
||||||
les photos de la galerie sont ré-encodées (les métadonnées EXIF/GPS disparaissent).
|
|
||||||
- **Affichage** : React échappe tout le texte (pas d'injection HTML possible) ; aucun `innerHTML`, aucun `eval`.
|
|
||||||
- **Politique de sécurité du contenu (CSP)** ajoutée à la version publiée : seuls les scripts de l'app s'exécutent et
|
|
||||||
seuls TMDB / AniList / ton projet Supabase peuvent être contactés. Le fichier `_headers` généré au build ajoute les
|
|
||||||
en-têtes de sécurité (repris par nginx sur le VPS, Netlify ou Cloudflare Pages) (anti-iframe, HSTS, pas de référent…).
|
|
||||||
- **Serveur de développement** : `npm run dev` n'est accessible que depuis ton PC. `npm run dev:mobile` l'ouvre à ton
|
|
||||||
réseau Wi-Fi, à utiliser seulement chez toi et à couper après.
|
|
||||||
- **Dépendances** : lance `npm run audit` de temps en temps et `npm update` pour les correctifs.
|
|
||||||
|
|
||||||
## Comptes : mise en place de Supabase (une seule fois, ~15 min)
|
|
||||||
|
|
||||||
1. **Crée le projet** : https://supabase.com → *New project* (gratuit). Région : *West EU (Paris)* ou *Frankfurt*.
|
|
||||||
Garde le mot de passe de la base quelque part (tu n'en auras pas besoin dans l'app).
|
|
||||||
2. **Crée les tables** : *SQL Editor* → *New query* → colle tout le fichier
|
|
||||||
`supabase/migrations/20260930120000_azuucine.sql` → **Run**. (Tu peux le relancer sans risque.)
|
|
||||||
3. **Réglages de connexion** : *Authentication* →
|
|
||||||
- *Sign In / Providers* → **Email** activé, **Confirm email** activé (recommandé), longueur minimale du mot de passe : 8.
|
|
||||||
- *URL Configuration* → **Site URL** = l'adresse de ton app en ligne (ex. `https://azuucine.rdacet.fr`),
|
|
||||||
et dans **Redirect URLs** ajoute aussi `http://localhost:5173`. Les liens des emails (confirmation, mot de passe
|
|
||||||
oublié) renvoient vers ces adresses.
|
|
||||||
4. **Le fichier `.env`** : copie `.env.example` en `.env`, puis remplis les 2 valeurs depuis *Project Settings* →
|
|
||||||
*API* (ou *API Keys*) : **Project URL** et la clé **publishable** (ou **anon** si ton projet utilise les anciennes clés).
|
|
||||||
Le `.env` n'est jamais publié (il est dans `.gitignore`).
|
|
||||||
5. **Les fonctions serveur + ta clé TMDB** (dans le dossier du projet, PowerShell) :
|
|
||||||
```powershell
|
|
||||||
npx.cmd supabase login
|
|
||||||
npx.cmd supabase link --project-ref <l'identifiant du projet, dans l'adresse du tableau de bord>
|
|
||||||
npx.cmd supabase secrets set TMDB_API_KEY=<ta clé ou ton jeton TMDB> ALLOWED_ORIGINS=https://azuucine.rdacet.fr,http://localhost:5173
|
|
||||||
npx.cmd supabase functions deploy tmdb --no-verify-jwt
|
|
||||||
npx.cmd supabase functions deploy delete-account --no-verify-jwt
|
|
||||||
```
|
|
||||||
(`--no-verify-jwt` : la connexion est vérifiée dans le code de chaque fonction.) Pour changer la clé TMDB plus tard,
|
|
||||||
relance juste la commande `secrets set`.
|
|
||||||
5 bis. **Profils et abonnements** : dans *SQL Editor*, colle et lance aussi `supabase/migrations/20261002120000_social.sql`
|
|
||||||
(tables des profils, abonnements, fil d'activité, et stockage des photos). Relance ensuite
|
|
||||||
`npx.cmd supabase functions deploy delete-account --project-ref <id> --no-verify-jwt --use-api` pour que la suppression
|
|
||||||
d'un compte efface aussi ses photos.
|
|
||||||
6. **Relance l'app** (`npm run dev`) : l'écran de connexion apparaît. Crée ton compte ; dans *Réglages*, AzuuCine te
|
|
||||||
propose d'ajouter à ton compte les titres déjà présents sur l'appareil.
|
|
||||||
7. **En ligne** : sur le VPS (voir « Déploiement automatique »), Netlify ou Cloudflare Pages, ajoute `VITE_SUPABASE_URL` et `VITE_SUPABASE_ANON_KEY` dans les
|
|
||||||
variables d'environnement du site (le `.env` n'y est pas envoyé), ou fais `npm run build` sur ton PC avec le `.env`
|
|
||||||
et glisse le dossier `dist/`.
|
|
||||||
|
|
||||||
À savoir : sur l'offre gratuite, un projet Supabase **sans aucune visite pendant 7 jours** est mis en pause (rien n'est
|
|
||||||
perdu, tu le relances depuis le tableau de bord). L'app continue de marcher hors-ligne en attendant.
|
|
||||||
|
|
||||||
## 1. Lancer l'app sur ton PC
|
|
||||||
|
|
||||||
Prérequis : [Node.js](https://nodejs.org) 20 ou plus récent.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
cd AzuuCine
|
|
||||||
npm install
|
|
||||||
npm run dev
|
|
||||||
```
|
|
||||||
|
|
||||||
Ouvre ensuite `http://localhost:5173` dans ton navigateur (mode mobile des outils de développement conseillé : F12 → icône téléphone).
|
|
||||||
|
|
||||||
> Pour un test rapide sur ton téléphone connecté au même Wi-Fi, lance `npm run dev:mobile` puis ouvre l'adresse « Network » affichée dans le terminal (ex. `http://192.168.1.20:5173`).
|
|
||||||
> Attention : en `http://`, le mode hors-ligne et l'installation « vraie » ne fonctionnent pas — c'est normal, il faut du HTTPS (étape 2).
|
|
||||||
|
|
||||||
## Recherche dans les bases de films
|
|
||||||
|
|
||||||
Quand tu ajoutes un titre, un champ **« Remplir depuis une base »** permet de le chercher et de préremplir la fiche
|
|
||||||
(titres, type, année, genres, synopsis, nombre et durée des épisodes, durée du film, plateforme en France, affiche).
|
|
||||||
Ta note, ton statut, tes épisodes vus et ton avis ne sont jamais écrasés.
|
|
||||||
|
|
||||||
- **Animes → AniList** : fonctionne tout de suite, sans compte. Les synopsis sont en anglais.
|
|
||||||
- **Films, séries, K-dramas, C-dramas → TMDB** : il faut une clé gratuite.
|
|
||||||
1. Crée un compte sur https://www.themoviedb.org
|
|
||||||
2. Paramètres du compte → **API** → demande une clé (usage personnel).
|
|
||||||
3. Copie la **« Clé d'API »** (ou le « Jeton d'accès en lecture ») dans AzuuCine → Réglages → Bases de films → Valider.
|
|
||||||
|
|
||||||
La clé reste sur l'appareil (à saisir sur chaque téléphone) et n'est jamais incluse dans les exports.
|
|
||||||
Seul le texte recherché est envoyé à TMDB / AniList ; ta bibliothèque reste locale.
|
|
||||||
|
|
||||||
## 2. Mettre l'app en ligne (gratuit, HTTPS)
|
|
||||||
|
|
||||||
Une PWA installable a besoin d'être servie en **HTTPS**. L'hébergeur ne sert que les fichiers de l'app
|
|
||||||
(les données sont dans Supabase avec les comptes, ou sur le téléphone en mode local).
|
|
||||||
|
|
||||||
```bash
|
|
||||||
npm run build
|
|
||||||
```
|
|
||||||
|
|
||||||
Cela crée un dossier `dist/`. Il est publié automatiquement sur mon VPS (voir ci-dessous) ; tu peux aussi le glisser sur
|
|
||||||
n'importe quel hébergeur statique (Netlify Drop, Cloudflare Pages, Vercel…).
|
|
||||||
|
|
||||||
### Déploiement automatique (VPS + Gitea Actions)
|
|
||||||
|
|
||||||
À chaque push sur `main`, le workflow `.gitea/workflows/deploy.yml` fait `npm ci`, `npm run build`, puis publie `dist/`
|
|
||||||
sur le VPS, sur **https://azuucine.rdacet.fr**.
|
|
||||||
|
|
||||||
- **Architecture** (conteneurs LXC) : `azuucine-ci` (runner Gitea Actions, utilisateur `deploy` sans sudo, seul à pouvoir
|
|
||||||
écrire dans `/srv/azuucine`) → dossier partagé `/srv/azuucine` → `azuucine-web` (nginx, lecture seule) → `proxy`
|
|
||||||
(nginx + certbot, HTTPS).
|
|
||||||
- **Variables de build** (publiques) : dans Gitea → Dépôt → Paramètres → Actions, variable `VITE_SUPABASE_URL` et secret
|
|
||||||
`VITE_SUPABASE_ANON_KEY`. Si elles manquent, le build **échoue** (`REQUIRE_SUPABASE=1` active la garde de
|
|
||||||
`vite.config.ts`). Les vrais secrets (clé TMDB, `service_role`) restent dans Supabase.
|
|
||||||
- **En-têtes de sécurité** : définis une seule fois dans `vite.config.ts` (CSP, HSTS, etc.). `deploy/headers-to-nginx.mjs`
|
|
||||||
convertit `dist/_headers` en configuration nginx à chaque déploiement : rien à recopier à la main.
|
|
||||||
- **Config nginx** : `deploy/nginx/site.conf` (dont le type MIME du manifest du PWA) est livrée avec chaque release. Pour un
|
|
||||||
conteneur `azuucine-web` neuf : `lxc-attach -n azuucine-web -- bash < deploy/web/bootstrap.sh`, puis un push sur `main`.
|
|
||||||
- **Versions** : les 3 dernières sont gardées dans `/srv/azuucine/releases/`, `current` pointe sur la version en ligne.
|
|
||||||
- **Retour arrière** (en root sur le VPS) : `/srv/azuucine/rollback.sh` revient à la version précédente,
|
|
||||||
`/srv/azuucine/rollback.sh <nom-de-version>` à une version précise (`ls /srv/azuucine/releases`).
|
|
||||||
- **Supabase** : ajoute `https://azuucine.rdacet.fr` à *Authentication → URL Configuration* (Site URL et Redirect URLs),
|
|
||||||
au secret `ALLOWED_ORIGINS` des Edge Functions, et aux origines autorisées du client OAuth Google.
|
|
||||||
|
|
||||||
## 3. Installer sur l'écran d'accueil
|
|
||||||
|
|
||||||
### iPhone (Safari obligatoire)
|
|
||||||
1. Ouvre l'adresse HTTPS de ton app dans **Safari**.
|
|
||||||
2. Touche le bouton **Partager** (carré avec une flèche vers le haut).
|
|
||||||
3. Choisis **« Sur l'écran d'accueil »**, puis **Ajouter**.
|
|
||||||
4. Lance AzuuCine depuis l'icône : elle s'ouvre en plein écran, comme une app.
|
|
||||||
|
|
||||||
### Android (Chrome)
|
|
||||||
1. Ouvre l'adresse HTTPS dans **Chrome**.
|
|
||||||
2. Touche le menu **⋮** → **« Installer l'application »** (ou « Ajouter à l'écran d'accueil »).
|
|
||||||
3. Confirme : l'icône AzuuCine apparaît dans tes applications.
|
|
||||||
|
|
||||||
## ⚠️ À savoir sur les données
|
|
||||||
|
|
||||||
- **Avec un compte** : tes données sont dans ton compte et sur chaque appareil connecté. Les modifications faites
|
|
||||||
hors-ligne partent dès que le réseau revient (Réglages → Mon compte indique l'état). L'export JSON reste utile comme
|
|
||||||
sauvegarde personnelle.
|
|
||||||
- **En mode local** : les données sont propres à chaque appareil et à chaque navigateur ; désinstaller l'app ou effacer les
|
|
||||||
données du navigateur supprime la bibliothèque, pense à exporter régulièrement.
|
|
||||||
- Sur iPhone, l'app installée sur l'écran d'accueil a **son propre stockage**, distinct de Safari. Utilise toujours l'app installée.
|
|
||||||
|
|
||||||
## Fonctionnalités
|
|
||||||
|
|
||||||
- **Profils et abonnements** (avec un compte) : photo de profil, bannière, nom, pseudo et bio ; s'abonner à d'autres membres comme sur Letterboxd ; leur profil montre leur Top 5, leurs derniers visionnages, leurs stats et leur bibliothèque (avis écrits privés, sauf ceux cochés « Afficher cet avis sur mon profil ») ; compte privé avec demandes d'abonnement ; fil « Mes abonnements » sur l'accueil ; recherche par pseudo ; lien de profil à partager (`…/#/u/pseudo`)
|
|
||||||
- **9 langues** (Réglages → Langue, détectée automatiquement au premier lancement) : français, anglais, espagnol, italien, allemand, portugais (Brésil), chinois simplifié, japonais, coréen. Les dates, les nombres et les infos TMDB suivent la langue choisie. Les textes sont dans `src/i18n/locales/` (le français fait référence).
|
|
||||||
- **Comptes** : inscription par email, synchronisation automatique entre appareils, fonctionne hors-ligne, mot de passe oublié, suppression du compte
|
|
||||||
|
|
||||||
- Fiches : titre + titre original, type (Film, Série, Anime, K-Drama, C-Drama, Autre + précision), année, affiche (photo de la galerie compressée ou URL)
|
|
||||||
- Statut : À voir / En cours / Terminé / En pause / Abandonné (dates de début/fin remplies automatiquement)
|
|
||||||
- Note sur 5 étoiles (demi-étoiles) ou sur 10, au choix dans les réglages, + 4 critères détaillés optionnels + coup de cœur
|
|
||||||
- Suivi des épisodes : vus / total, saison, durée par épisode, bouton **+1** depuis l'accueil et le catalogue (passe en « Terminé » au dernier épisode)
|
|
||||||
- Genres/tags libres avec suggestions, plateforme, avis personnel
|
|
||||||
- Accueil : stats rapides, **roulette** (tirage au sort animé parmi « À voir », « En pause » ou mes préférés à revoir, filtrable par type, temps dispo, genre, plateforme), « En cours », Top 5, « À voir », « Récemment terminés »
|
|
||||||
- Catalogue : recherche instantanée (titre, titre original, tag, plateforme — sans tenir compte des accents), filtres type/statut/genre/note/coups de cœur, tris
|
|
||||||
- **Suggestions « Si tu as aimé… »** à partir de tes titres préférés, ajout en un clic à « À voir »
|
|
||||||
- **Listes perso** (Catalogue → Listes), utilisables aussi comme source de la roulette
|
|
||||||
- **Carrousels** utilisables à la souris sur ordinateur (molette ou glisser)
|
|
||||||
- **Statistiques visuelles** : filtre par année, onglets Vue d'ensemble / Habitudes / Goûts, heures, types, mois par mois, records, notes, genres, pays
|
|
||||||
- **Partage en image** d'une fiche ou d'un Top 5 (story / message)
|
|
||||||
- **Calendrier des sorties** (bouton en haut de l'accueil) : toutes les sorties à venir — films au cinéma en France, épisodes des séries et K/C-dramas les plus suivis (TMDB), tous les épisodes d'animes diffusés (AniList) — filtrables par catégorie, avec ajout en un clic à « À voir ». Onglet « Mes titres » pour ne voir que ta bibliothèque
|
|
||||||
- **Journal** (Catalogue → Journal) : ton historique de visionnage mois par mois, avec les **revisionnages** (section « Revisionnages » d'une fiche terminée)
|
|
||||||
- **Moi vs le public** (Stats → Goûts) : ta note comparée à la moyenne TMDB / AniList, écart moyen, titres que tu as plus ou moins aimés que tout le monde
|
|
||||||
- Export / import JSON (fusion ou remplacement), validation des fichiers importés
|
|
||||||
|
|
||||||
## Scripts
|
|
||||||
|
|
||||||
| Commande | Rôle |
|
|
||||||
|---|---|
|
|
||||||
| `npm run dev` | serveur de développement (uniquement sur ce PC) |
|
|
||||||
| `npm run dev:mobile` | serveur de développement ouvert au Wi-Fi (test sur téléphone) |
|
|
||||||
| `npm run audit` | vérifie les failles connues des dépendances |
|
|
||||||
| `npm run build` | build de production dans `dist/` |
|
|
||||||
| `npm run preview` | prévisualiser le build |
|
|
||||||
| `npm run typecheck` | vérification TypeScript |
|
|
||||||
+1
-1
@@ -46,7 +46,7 @@ openssl rand -base64 32
|
|||||||
|
|
||||||
### 3. Secrets Gitea
|
### 3. Secrets Gitea
|
||||||
|
|
||||||
Dépôt `romain/azuucine` → **Paramètres → Actions → Secrets** :
|
Dépôt `romain/kino` → **Paramètres → Actions → Secrets** :
|
||||||
|
|
||||||
| Nom | Valeur |
|
| Nom | Valeur |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
|
|||||||
+2
-2
@@ -11,10 +11,10 @@
|
|||||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||||
<meta name="mobile-web-app-capable" content="yes" />
|
<meta name="mobile-web-app-capable" content="yes" />
|
||||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
||||||
<meta name="apple-mobile-web-app-title" content="AzuuCine" />
|
<meta name="apple-mobile-web-app-title" content="Kino" />
|
||||||
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
<link rel="apple-touch-icon" href="/icons/apple-touch-icon.png" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/icons/favicon.svg" />
|
<link rel="icon" type="image/svg+xml" href="/icons/favicon.svg" />
|
||||||
<title>AzuuCine</title>
|
<title>Kino</title>
|
||||||
<!-- Thème choisi appliqué avant le premier affichage (fichier local : compatible avec la CSP) -->
|
<!-- Thème choisi appliqué avant le premier affichage (fichier local : compatible avec la CSP) -->
|
||||||
<script src="/theme-boot.js"></script>
|
<script src="/theme-boot.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"version": "2.2.0",
|
"version": "2.2.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "AzuuCine — suivi personnel et privé de films, séries, animes et dramas (PWA, comptes synchronisés ou 100 % locale)",
|
"description": "Kino — suivi personnel et privé de films, séries, animes et dramas (PWA, comptes synchronisés ou 100 % locale)",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"dev:mobile": "vite --host",
|
"dev:mobile": "vite --host",
|
||||||
|
|||||||
+3
-3
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>AzuuCine — Page introuvable</title>
|
<title>Kino — Page introuvable</title>
|
||||||
<meta name="robots" content="noindex" />
|
<meta name="robots" content="noindex" />
|
||||||
<link rel="icon" href="/icons/favicon.svg" type="image/svg+xml" />
|
<link rel="icon" href="/icons/favicon.svg" type="image/svg+xml" />
|
||||||
<style>
|
<style>
|
||||||
@@ -26,8 +26,8 @@
|
|||||||
<p class="code" aria-hidden="true">4<span>0</span>4</p>
|
<p class="code" aria-hidden="true">4<span>0</span>4</p>
|
||||||
<h1>Cette scène a été coupée au montage</h1>
|
<h1>Cette scène a été coupée au montage</h1>
|
||||||
<p>La page que tu cherches n'existe pas ou a été déplacée.</p>
|
<p>La page que tu cherches n'existe pas ou a été déplacée.</p>
|
||||||
<a class="btn" href="/">Retour à AzuuCine</a>
|
<a class="btn" href="/">Retour à Kino</a>
|
||||||
<p class="en">Page not found — <a href="/">back to AzuuCine</a></p>
|
<p class="en">Page not found — <a href="/">back to Kino</a></p>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+7
-7
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>AzuuCine — Mentions légales et conditions d'utilisation</title>
|
<title>Kino — Mentions légales et conditions d'utilisation</title>
|
||||||
<meta name="robots" content="index" />
|
<meta name="robots" content="index" />
|
||||||
<style>
|
<style>
|
||||||
:root { color-scheme: dark; }
|
:root { color-scheme: dark; }
|
||||||
@@ -23,13 +23,13 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<h1>Azuu<span>Cine</span></h1>
|
<h1>Ki<span>no</span></h1>
|
||||||
<p class="muted">Mentions légales, conditions d'utilisation et crédits — mise à jour le 9 octobre 2026</p>
|
<p class="muted">Mentions légales, conditions d'utilisation et crédits — mise à jour le 9 octobre 2026</p>
|
||||||
<nav class="muted"><a href="#mentions">Mentions légales</a><a href="#conditions">Conditions d'utilisation</a><a href="#credits">Crédits</a><a href="/privacy.html">Confidentialité</a></nav>
|
<nav class="muted"><a href="#mentions">Mentions légales</a><a href="#conditions">Conditions d'utilisation</a><a href="#credits">Crédits</a><a href="/privacy.html">Confidentialité</a></nav>
|
||||||
|
|
||||||
<h2 id="mentions">Mentions légales</h2>
|
<h2 id="mentions">Mentions légales</h2>
|
||||||
<h3>Éditeur</h3>
|
<h3>Éditeur</h3>
|
||||||
<p>AzuuCine est édité par <strong>Romain Dacet</strong>, particulier, à titre personnel et non commercial. Directeur de la publication : Romain Dacet. Contact : via <a href="https://rdacet.fr">rdacet.fr</a>.</p>
|
<p>Kino est édité par <strong>Romain Dacet</strong>, particulier, à titre personnel et non commercial. Directeur de la publication : Romain Dacet. Contact : via <a href="https://rdacet.fr">rdacet.fr</a>.</p>
|
||||||
<h3>Hébergement</h3>
|
<h3>Hébergement</h3>
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>Site (fichiers de l'application)</strong> : OVH SAS, 2 rue Kellermann, 59100 Roubaix, France — <a href="https://www.ovhcloud.com">ovhcloud.com</a>.</li>
|
<li><strong>Site (fichiers de l'application)</strong> : OVH SAS, 2 rue Kellermann, 59100 Roubaix, France — <a href="https://www.ovhcloud.com">ovhcloud.com</a>.</li>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
<h2 id="conditions">Conditions d'utilisation</h2>
|
<h2 id="conditions">Conditions d'utilisation</h2>
|
||||||
<h3>Le service</h3>
|
<h3>Le service</h3>
|
||||||
<p>AzuuCine permet de tenir le journal des films, séries, animes et dramas que tu regardes, de les noter, d'écrire des avis et de suivre d'autres membres. Le service est <strong>gratuit</strong>, sans publicité et sans achat : il n'y a donc ni conditions de vente, ni paiement, ni remboursement.</p>
|
<p>Kino permet de tenir le journal des films, séries, animes et dramas que tu regardes, de les noter, d'écrire des avis et de suivre d'autres membres. Le service est <strong>gratuit</strong>, sans publicité et sans achat : il n'y a donc ni conditions de vente, ni paiement, ni remboursement.</p>
|
||||||
<h3>Âge minimum</h3>
|
<h3>Âge minimum</h3>
|
||||||
<p>Il faut avoir <strong>au moins 15 ans</strong> pour créer un compte. En dessous, l'accord d'un parent ou du titulaire de l'autorité parentale est nécessaire.</p>
|
<p>Il faut avoir <strong>au moins 15 ans</strong> pour créer un compte. En dessous, l'accord d'un parent ou du titulaire de l'autorité parentale est nécessaire.</p>
|
||||||
<h3>Ton compte</h3>
|
<h3>Ton compte</h3>
|
||||||
@@ -49,7 +49,7 @@
|
|||||||
<h3>Informations sur les œuvres</h3>
|
<h3>Informations sur les œuvres</h3>
|
||||||
<p>Les fiches (titres, affiches, résumés, notes moyennes, casting, dates de sortie) proviennent de TMDB et d'AniList. Elles sont fournies telles quelles et peuvent contenir des erreurs ; les notes moyennes affichées sont celles de ces services, pas un avis de l'éditeur.</p>
|
<p>Les fiches (titres, affiches, résumés, notes moyennes, casting, dates de sortie) proviennent de TMDB et d'AniList. Elles sont fournies telles quelles et peuvent contenir des erreurs ; les notes moyennes affichées sont celles de ces services, pas un avis de l'éditeur.</p>
|
||||||
<h3>Disponibilité</h3>
|
<h3>Disponibilité</h3>
|
||||||
<p>AzuuCine est un projet personnel, proposé sans garantie de disponibilité permanente. L'éditeur fait de son mieux pour protéger tes données (voir la <a href="/privacy.html">politique de confidentialité</a>) et te conseille d'exporter régulièrement ta bibliothèque.</p>
|
<p>Kino est un projet personnel, proposé sans garantie de disponibilité permanente. L'éditeur fait de son mieux pour protéger tes données (voir la <a href="/privacy.html">politique de confidentialité</a>) et te conseille d'exporter régulièrement ta bibliothèque.</p>
|
||||||
<h3>Droit applicable</h3>
|
<h3>Droit applicable</h3>
|
||||||
<p>Ces conditions sont soumises au droit français. Elles peuvent évoluer ; la date de mise à jour figure en haut de cette page.</p>
|
<p>Ces conditions sont soumises au droit français. Elles peuvent évoluer ; la date de mise à jour figure en haut de cette page.</p>
|
||||||
|
|
||||||
@@ -70,9 +70,9 @@
|
|||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<h1 style="font-size:1.4rem">Legal notice & terms (English summary)</h1>
|
<h1 style="font-size:1.4rem">Legal notice & terms (English summary)</h1>
|
||||||
<p>AzuuCine is published by Romain Dacet, a private individual, on a personal, non-commercial basis (contact: <a href="https://rdacet.fr">rdacet.fr</a>). The site is hosted by OVH SAS (2 rue Kellermann, 59100 Roubaix, France); accounts and data are hosted by Supabase Inc. in the European Union (Ireland). The service is free, with no ads and no purchases. You must be at least 15 years old to sign up (or have a parent's consent). You own what you write; illegal, hateful, harassing or sexual content, impersonation and spam are forbidden and may be removed, and the account suspended. Title data comes from TMDB and AniList (streaming availability: JustWatch) and is provided as is. This product uses the TMDB API but is not endorsed or certified by TMDB. French law applies.</p>
|
<p>Kino is published by Romain Dacet, a private individual, on a personal, non-commercial basis (contact: <a href="https://rdacet.fr">rdacet.fr</a>). The site is hosted by OVH SAS (2 rue Kellermann, 59100 Roubaix, France); accounts and data are hosted by Supabase Inc. in the European Union (Ireland). The service is free, with no ads and no purchases. You must be at least 15 years old to sign up (or have a parent's consent). You own what you write; illegal, hateful, harassing or sexual content, impersonation and spam are forbidden and may be removed, and the account suspended. Title data comes from TMDB and AniList (streaming availability: JustWatch) and is provided as is. This product uses the TMDB API but is not endorsed or certified by TMDB. French law applies.</p>
|
||||||
|
|
||||||
<p class="muted"><a href="/">← Retour à AzuuCine</a></p>
|
<p class="muted"><a href="/">← Retour à Kino</a></p>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
+11
-11
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<title>AzuuCine — Confidentialité</title>
|
<title>Kino — Confidentialité</title>
|
||||||
<meta name="robots" content="index" />
|
<meta name="robots" content="index" />
|
||||||
<style>
|
<style>
|
||||||
:root { color-scheme: dark; }
|
:root { color-scheme: dark; }
|
||||||
@@ -25,13 +25,13 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<main>
|
<main>
|
||||||
<h1>Azuu<span>Cine</span></h1>
|
<h1>Ki<span>no</span></h1>
|
||||||
<p class="muted">Politique de confidentialité — mise à jour le 9 octobre 2026</p>
|
<p class="muted">Politique de confidentialité — mise à jour le 9 octobre 2026</p>
|
||||||
<nav class="muted"><a href="/legal.html#mentions">Mentions légales</a><a href="/legal.html#conditions">Conditions d'utilisation</a><a href="/legal.html#credits">Crédits</a></nav>
|
<nav class="muted"><a href="/legal.html#mentions">Mentions légales</a><a href="/legal.html#conditions">Conditions d'utilisation</a><a href="/legal.html#credits">Crédits</a></nav>
|
||||||
|
|
||||||
<p>AzuuCine est une application gratuite et sans publicité pour tenir le journal des films, séries, animes et dramas que tu regardes. Elle est éditée par Romain Dacet, à titre personnel et non commercial, qui est le <strong>responsable du traitement</strong> de tes données (contact : <a href="https://rdacet.fr">rdacet.fr</a>).</p>
|
<p>Kino est une application gratuite et sans publicité pour tenir le journal des films, séries, animes et dramas que tu regardes. Elle est éditée par Romain Dacet, à titre personnel et non commercial, qui est le <strong>responsable du traitement</strong> de tes données (contact : <a href="https://rdacet.fr">rdacet.fr</a>).</p>
|
||||||
|
|
||||||
<p>Tu peux utiliser AzuuCine <strong>sans compte</strong> : tout reste alors uniquement sur ton appareil. Un compte n'est utile que pour synchroniser plusieurs appareils et pour la partie sociale.</p>
|
<p>Tu peux utiliser Kino <strong>sans compte</strong> : tout reste alors uniquement sur ton appareil. Un compte n'est utile que pour synchroniser plusieurs appareils et pour la partie sociale.</p>
|
||||||
|
|
||||||
<h2>Ce qui est enregistré (et pourquoi)</h2>
|
<h2>Ce qui est enregistré (et pourquoi)</h2>
|
||||||
<table>
|
<table>
|
||||||
@@ -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,25 +47,26 @@
|
|||||||
<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>
|
||||||
|
|
||||||
<h2>Connexion avec Google</h2>
|
<h2>Connexion avec Google</h2>
|
||||||
<p>Si tu choisis « Continuer avec Google », AzuuCine reçoit uniquement ton adresse e-mail, ton nom et l'identifiant de ton compte Google. Aucun accès à tes e-mails, ton Drive, tes contacts ou toute autre donnée Google n'est demandé.</p>
|
<p>Si tu choisis « Continuer avec Google », Kino reçoit uniquement ton adresse e-mail, ton nom et l'identifiant de ton compte Google. Aucun accès à tes e-mails, ton Drive, tes contacts ou toute autre donnée Google n'est demandé.</p>
|
||||||
|
|
||||||
<h2>Où sont les données et qui les traite</h2>
|
<h2>Où sont les données et qui les traite</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>Supabase Inc.</strong> (base de données, authentification, stockage des photos) — sous-traitant, données hébergées dans l'<strong>Union européenne (Irlande)</strong>.</li>
|
<li><strong>Supabase Inc.</strong> (base de données, authentification, stockage des photos) — sous-traitant, données hébergées dans l'<strong>Union européenne (Irlande)</strong>.</li>
|
||||||
<li><strong>OVH SAS</strong> (Roubaix, France) — héberge les fichiers du site. Ce serveur ne reçoit aucune de tes données de compte ; comme tout serveur web, il voit ton adresse IP le temps de te servir les pages.</li>
|
<li><strong>OVH SAS</strong> (Roubaix, France) — héberge les fichiers du site. Ce serveur ne reçoit aucune de tes données de compte ; comme tout serveur web, il voit ton adresse IP le temps de te servir les pages.</li>
|
||||||
<li><strong>TMDB et AniList</strong> — fournissent les fiches et les images des œuvres. Tes recherches leur sont transmises (pour TMDB via notre serveur, sans ton identité — ou directement si tu as renseigné ta propre clé TMDB dans les réglages), et ton navigateur télécharge les affiches directement chez eux, ce qui leur révèle ton adresse IP, comme n'importe quel site qui affiche leurs images. Aucune donnée de compte ne leur est envoyée. Les plateformes affichées dans « Où regarder » viennent de JustWatch (via TMDB) ; le pays choisi reste sur ton appareil, et un lien vers une plateforme n'est ouvert que si tu cliques dessus.</li>
|
<li><strong>TMDB et AniList</strong> — fournissent les fiches et les images des œuvres. Tes recherches leur sont transmises (pour TMDB via notre serveur, sans ton identité — ou directement si tu as renseigné ta propre clé TMDB dans les réglages), et ton navigateur télécharge les affiches directement chez eux, ce qui leur révèle ton adresse IP, comme n'importe quel site qui affiche leurs images. Aucune donnée de compte ne leur est envoyée. Les plateformes affichées dans « Où regarder » viennent de JustWatch (via TMDB) ; le pays choisi reste sur ton appareil, et un lien vers une plateforme n'est ouvert que si tu cliques dessus.</li>
|
||||||
|
<li><strong>Have I Been Pwned</strong> — quand tu crées un compte ou changes ton mot de passe, l'app vérifie qu'il n'apparaît pas dans une fuite de données connue. Seuls les 5 premiers caractères d'une empreinte chiffrée du mot de passe sont envoyés : ni le mot de passe, ni ton e-mail, ni rien qui permette de le retrouver.</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2>Sur ton appareil</h2>
|
<h2>Sur ton appareil</h2>
|
||||||
<p>AzuuCine 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>
|
||||||
@@ -93,9 +93,9 @@
|
|||||||
<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>AzuuCine 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 à AzuuCine</a></p>
|
<p class="muted"><a href="/">← Retour à Kino</a></p>
|
||||||
</main>
|
</main>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
@@ -1,72 +0,0 @@
|
|||||||
/* AzuuCine — 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) || 'AzuuCine'
|
|
||||||
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,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* AzuuCine — thème posé avant le premier affichage (script bloquant, chargé dans <head>).
|
* Kino — thème posé avant le premier affichage (script bloquant, chargé dans <head>).
|
||||||
* Reprend les couleurs calculées au dernier lancement (voir applyTheme dans src/lib/theme.ts),
|
* Reprend les couleurs calculées au dernier lancement (voir applyTheme dans src/lib/theme.ts),
|
||||||
* pour ne jamais voir le thème par défaut le temps que l'app démarre.
|
* pour ne jamais voir le thème par défaut le temps que l'app démarre.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,24 +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(`# Clés VAPID et secret du webhook — à garder secrètes (sauf VAPID_PUBLIC_KEY)
|
|
||||||
# 1) Secrets des fonctions Supabase (Dashboard → Edge Functions → Secrets, ou en ligne de commande) :
|
|
||||||
supabase secrets set VAPID_PUBLIC_KEY=${publicKey}
|
|
||||||
supabase secrets set VAPID_PRIVATE_KEY=${privateKey}
|
|
||||||
supabase secrets set VAPID_SUBJECT=mailto:ton-adresse@example.com
|
|
||||||
supabase secrets set PUSH_WEBHOOK_SECRET=${webhookSecret}
|
|
||||||
|
|
||||||
# 2) Le même PUSH_WEBHOOK_SECRET dans Supabase Vault (SQL Editor) :
|
|
||||||
select vault.create_secret('${webhookSecret}', 'azuu_push_secret');
|
|
||||||
`)
|
|
||||||
+48
-16
@@ -6,6 +6,7 @@ import SideNav from './components/SideNav'
|
|||||||
import AddTitle from './components/title/AddTitle'
|
import AddTitle from './components/title/AddTitle'
|
||||||
import EditDetails from './components/title/EditDetails'
|
import EditDetails from './components/title/EditDetails'
|
||||||
import TitleSheet from './components/title/TitleSheet'
|
import TitleSheet from './components/title/TitleSheet'
|
||||||
|
import PersonSheet from './components/person/PersonSheet'
|
||||||
import Roulette from './components/Roulette'
|
import Roulette from './components/Roulette'
|
||||||
import CalendarView from './components/CalendarView'
|
import CalendarView from './components/CalendarView'
|
||||||
import HomePage from './pages/HomePage'
|
import HomePage from './pages/HomePage'
|
||||||
@@ -14,11 +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 { 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
|
||||||
@@ -34,18 +36,31 @@ function routeFromHash(): Route {
|
|||||||
return (TABS as string[]).includes(h) ? (h as Tab) : 'notfound'
|
return (TABS as string[]).includes(h) ? (h as Tab) : 'notfound'
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Fiche ouverte : un titre de ma bibliothèque, ou un résultat de recherche pas encore ajouté. */
|
/**
|
||||||
type Opened = { item: MediaItem; seed?: undefined } | { seed: SearchResult; item?: undefined }
|
* Fenêtres ouvertes les unes sur les autres : fiche d'un titre (de ma bibliothèque, ou résultat pas encore ajouté)
|
||||||
|
* ou page d'une personne. Titre → acteur → autre titre → … : « retour » remonte d'un cran.
|
||||||
|
*/
|
||||||
|
type Layer =
|
||||||
|
| { kind: 'title'; item: MediaItem; seed?: undefined; focus?: Completion }
|
||||||
|
| { kind: 'title'; seed: SearchResult; item?: undefined }
|
||||||
|
| { kind: 'person'; personId: string; name?: string; photo?: string }
|
||||||
|
let layerUid = 0
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const { error } = useMedia()
|
const { error } = useMedia()
|
||||||
const [route, setRoute] = useState<Route>(routeFromHash)
|
const [route, setRoute] = useState<Route>(routeFromHash)
|
||||||
const [opened, setOpened] = useState<Opened | null>(null)
|
const [layers, setLayers] = useState<(Layer & { uid: number })[]>([])
|
||||||
|
const pushLayer = (l: Layer) => setLayers((ls) => [...ls.slice(-11), { ...l, uid: ++layerUid }])
|
||||||
|
const closeLayer = (uid: number) => setLayers((ls) => ls.filter((x) => x.uid !== uid))
|
||||||
const [adding, setAdding] = useState(false)
|
const [adding, setAdding] = useState(false)
|
||||||
const [manual, setManual] = useState<string | null>(null)
|
const [manual, setManual] = useState<string | null>(null)
|
||||||
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)
|
||||||
@@ -59,10 +74,13 @@ export default function App() {
|
|||||||
// Dans la barre de navigation, l'administration reste rattachée à « Réglages »
|
// Dans la barre de navigation, l'administration reste rattachée à « Réglages »
|
||||||
const navTab: Tab = route === 'admin' ? 'settings' : route === 'notfound' ? 'home' : route
|
const navTab: Tab = route === 'admin' ? 'settings' : route === 'notfound' ? 'home' : route
|
||||||
|
|
||||||
const openItem = (item: MediaItem) => setOpened({ item })
|
/** `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 })
|
||||||
|
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 openNew = () => setAdding(true)
|
const openNew = () => setAdding(true)
|
||||||
const toSettings = () => {
|
const toSettings = () => {
|
||||||
setOpened(null)
|
setLayers([])
|
||||||
setAdding(false)
|
setAdding(false)
|
||||||
setManual(null)
|
setManual(null)
|
||||||
// Laisse les fenêtres retirer leur entrée d'historique avant de changer d'onglet
|
// Laisse les fenêtres retirer leur entrée d'historique avant de changer d'onglet
|
||||||
@@ -71,14 +89,14 @@ export default function App() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<ToastProvider>
|
<ToastProvider>
|
||||||
<SocialProvider onOpenOwnItem={openItem} onOpenSeed={(seed) => setOpened({ seed })}>
|
<SocialProvider onOpenOwnItem={openItem} onOpenSeed={openSeed}>
|
||||||
<SideNav current={navTab} onChange={go} onAdd={openNew} />
|
<SideNav current={navTab} onChange={go} onAdd={openNew} />
|
||||||
<div className="mx-auto min-h-dvh max-w-2xl lg:max-w-none lg:ps-60">
|
<div className="mx-auto min-h-dvh max-w-2xl lg:max-w-none lg:ps-60">
|
||||||
<main className="safe-top px-4 pb-32 lg:px-10 lg:pb-10 2xl:px-14">
|
<main className="safe-top px-4 pb-32 lg:px-10 lg:pb-10 2xl:px-14">
|
||||||
{error && <p className="mt-4 rounded-xl border border-accent p-3 text-sm text-ink">{error}</p>}
|
{error && <p className="mt-4 rounded-xl border border-accent p-3 text-sm text-ink">{error}</p>}
|
||||||
{route === 'home' && <HomePage onOpen={openItem} onAdd={openNew} onNavigate={go} onRoulette={() => setRoulette(true)} onCalendar={() => setCalendar(true)} />}
|
{route === 'home' && <HomePage onOpen={openItem} onAdd={openNew} onNavigate={go} onRoulette={() => setRoulette(true)} onCalendar={() => setCalendar(true)} />}
|
||||||
{route === 'catalog' && <CatalogPage onOpen={openItem} onAdd={openNew} />}
|
{route === 'catalog' && <CatalogPage onOpen={openItem} onAdd={openNew} />}
|
||||||
{route === 'stats' && <StatsPage />}
|
{route === 'stats' && <StatsPage onOpen={openItem} />}
|
||||||
{route === 'settings' && <SettingsPage onOpenAdmin={() => go('admin')} />}
|
{route === 'settings' && <SettingsPage onOpenAdmin={() => go('admin')} />}
|
||||||
{route === 'admin' && <AdminPage onBack={() => go('settings')} />}
|
{route === 'admin' && <AdminPage onBack={() => go('settings')} />}
|
||||||
{route === 'notfound' && <NotFoundPage onHome={() => go('home')} />}
|
{route === 'notfound' && <NotFoundPage onHome={() => go('home')} />}
|
||||||
@@ -86,7 +104,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} />}
|
||||||
@@ -94,20 +111,35 @@ export default function App() {
|
|||||||
{adding && (
|
{adding && (
|
||||||
<AddTitle
|
<AddTitle
|
||||||
onClose={() => setAdding(false)}
|
onClose={() => setAdding(false)}
|
||||||
onPick={(seed) => setOpened({ seed })}
|
onPick={openSeed}
|
||||||
onOpenItem={openItem}
|
onOpenItem={openItem}
|
||||||
|
onOpenPerson={openPerson}
|
||||||
onManual={(title) => setManual(title)}
|
onManual={(title) => setManual(title)}
|
||||||
onGoToSettings={toSettings}
|
onGoToSettings={toSettings}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{opened && (
|
{layers.map((l) =>
|
||||||
|
l.kind === 'title' ? (
|
||||||
<TitleSheet
|
<TitleSheet
|
||||||
key={opened.item ? opened.item.id : opened.seed.externalId}
|
key={l.uid}
|
||||||
item={opened.item}
|
item={l.item}
|
||||||
seed={opened.seed}
|
seed={l.seed}
|
||||||
onClose={() => setOpened(null)}
|
onClose={() => closeLayer(l.uid)}
|
||||||
onGoToSettings={toSettings}
|
onGoToSettings={toSettings}
|
||||||
|
onOpenPerson={openPerson}
|
||||||
|
focus={l.item ? l.focus : undefined}
|
||||||
/>
|
/>
|
||||||
|
) : (
|
||||||
|
<PersonSheet
|
||||||
|
key={l.uid}
|
||||||
|
personId={l.personId}
|
||||||
|
name={l.name}
|
||||||
|
photo={l.photo}
|
||||||
|
onClose={() => closeLayer(l.uid)}
|
||||||
|
onOpenItem={openItem}
|
||||||
|
onOpenSeed={openSeed}
|
||||||
|
/>
|
||||||
|
),
|
||||||
)}
|
)}
|
||||||
{manual !== null && (
|
{manual !== null && (
|
||||||
<EditDetails
|
<EditDetails
|
||||||
@@ -116,7 +148,7 @@ export default function App() {
|
|||||||
onCreated={(item) => {
|
onCreated={(item) => {
|
||||||
setManual(null)
|
setManual(null)
|
||||||
setAdding(false)
|
setAdding(false)
|
||||||
setOpened({ item })
|
openItem(item)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
+52
-2
@@ -1,14 +1,33 @@
|
|||||||
import { useEffect, useMemo, useState } from 'react'
|
import { useEffect, useMemo, useState } from 'react'
|
||||||
import App from './App'
|
import App from './App'
|
||||||
import AuthScreen, { NewPasswordScreen } from './components/AuthScreen'
|
import AuthScreen, { NewPasswordScreen } from './components/AuthScreen'
|
||||||
|
import GuestPrompt, { GuestBanner } from './components/guest/GuestPrompt'
|
||||||
import { consumeAuthRedirect, getSession, hasOAuthRedirect, onSessionChange, type Session } from './lib/cloud/auth'
|
import { consumeAuthRedirect, getSession, hasOAuthRedirect, onSessionChange, type Session } from './lib/cloud/auth'
|
||||||
import { cloudEnabled } from './lib/cloud/config'
|
import { cloudEnabled } from './lib/cloud/config'
|
||||||
import { setScope } from './lib/scope'
|
import { setScope } from './lib/scope'
|
||||||
import { MediaProvider } from './store'
|
import { MediaProvider } from './store'
|
||||||
|
|
||||||
|
const GUEST_KEY = 'azuucine:guest'
|
||||||
|
const readGuest = () => {
|
||||||
|
try {
|
||||||
|
return localStorage.getItem(GUEST_KEY) === '1'
|
||||||
|
} catch {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const writeGuest = (on: boolean) => {
|
||||||
|
try {
|
||||||
|
if (on) localStorage.setItem(GUEST_KEY, '1')
|
||||||
|
else localStorage.removeItem(GUEST_KEY)
|
||||||
|
} catch {
|
||||||
|
/* stockage indisponible : le mode découverte dure le temps de la page */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Point d'entrée : sans configuration Supabase, l'app reste 100 % locale.
|
* Point d'entrée : sans configuration Supabase, l'app reste 100 % locale.
|
||||||
* Avec, il faut être connecté ; chaque compte a son propre espace sur l'appareil.
|
* Avec, on peut se connecter, ou explorer sans compte (mode découverte : recherche, fiches, acteurs…
|
||||||
|
* en lecture seule ; noter ou ajouter un titre demande un compte). Chaque compte a son propre espace sur l'appareil.
|
||||||
*/
|
*/
|
||||||
export default function Root() {
|
export default function Root() {
|
||||||
const [session, setSession] = useState<Session | null>(() => (cloudEnabled ? getSession() : null))
|
const [session, setSession] = useState<Session | null>(() => (cloudEnabled ? getSession() : null))
|
||||||
@@ -17,6 +36,16 @@ export default function Root() {
|
|||||||
cloudEnabled && (/(^#|&)(access_token|error)=/.test(location.hash) || hasOAuthRedirect()) ? 'checking' : 'none',
|
cloudEnabled && (/(^#|&)(access_token|error)=/.test(location.hash) || hasOAuthRedirect()) ? 'checking' : 'none',
|
||||||
)
|
)
|
||||||
const [notice, setNotice] = useState<string>()
|
const [notice, setNotice] = useState<string>()
|
||||||
|
const [guest, setGuest] = useState(readGuest)
|
||||||
|
const [ask, setAsk] = useState(false)
|
||||||
|
// Écran de connexion demandé depuis le mode découverte (« Se connecter » / « Créer un compte »)
|
||||||
|
const [authMode, setAuthMode] = useState<'login' | 'signup'>('login')
|
||||||
|
const leaveGuest = (mode: 'login' | 'signup') => {
|
||||||
|
writeGuest(false)
|
||||||
|
setAsk(false)
|
||||||
|
setAuthMode(mode)
|
||||||
|
setGuest(false)
|
||||||
|
}
|
||||||
const userId = session?.user.id
|
const userId = session?.user.id
|
||||||
const userEmail = session?.user.email
|
const userEmail = session?.user.email
|
||||||
const user = useMemo(() => (userId ? { id: userId, email: userEmail ?? '' } : undefined), [userId, userEmail])
|
const user = useMemo(() => (userId ? { id: userId, email: userEmail ?? '' } : undefined), [userId, userEmail])
|
||||||
@@ -47,9 +76,30 @@ export default function Root() {
|
|||||||
}
|
}
|
||||||
if (redirect === 'checking') return <div className="min-h-dvh bg-bg" />
|
if (redirect === 'checking') return <div className="min-h-dvh bg-bg" />
|
||||||
if (redirect === 'recovery' && session) return <NewPasswordScreen onDone={() => setRedirect('none')} />
|
if (redirect === 'recovery' && session) return <NewPasswordScreen onDone={() => setRedirect('none')} />
|
||||||
|
if (!session && guest) {
|
||||||
|
// Espace à part, vide : rien de ce qui est vu en découverte ne se mélange à un compte
|
||||||
|
setScope('guest')
|
||||||
|
return (
|
||||||
|
<MediaProvider key="guest" guest onNeedAccount={() => setAsk(true)}>
|
||||||
|
<GuestBanner onSignIn={() => leaveGuest('login')} />
|
||||||
|
<App />
|
||||||
|
{ask && <GuestPrompt onSignIn={() => leaveGuest('login')} onSignUp={() => leaveGuest('signup')} onClose={() => setAsk(false)} />}
|
||||||
|
</MediaProvider>
|
||||||
|
)
|
||||||
|
}
|
||||||
if (!session) {
|
if (!session) {
|
||||||
setScope(null)
|
setScope(null)
|
||||||
return <AuthScreen notice={notice} />
|
return (
|
||||||
|
<AuthScreen
|
||||||
|
key={authMode}
|
||||||
|
notice={notice}
|
||||||
|
initialMode={authMode}
|
||||||
|
onExplore={() => {
|
||||||
|
writeGuest(true)
|
||||||
|
setGuest(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// L'espace de stockage doit être choisi avant que le fournisseur de données ne lise quoi que ce soit
|
// L'espace de stockage doit être choisi avant que le fournisseur de données ne lise quoi que ce soit
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ function Shell({ children, subtitle }: { children: ReactNode; subtitle: string }
|
|||||||
<div className="safe-top safe-bottom flex min-h-dvh flex-col items-center justify-center bg-bg px-5 py-10">
|
<div className="safe-top safe-bottom flex min-h-dvh flex-col items-center justify-center bg-bg px-5 py-10">
|
||||||
<div className="w-full max-w-sm">
|
<div className="w-full max-w-sm">
|
||||||
<h1 className="text-center text-[2.4rem] font-bold leading-none">
|
<h1 className="text-center text-[2.4rem] font-bold leading-none">
|
||||||
Azuu<span className="text-accent">Cine</span>
|
Ki<span className="text-accent">no</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p className="mt-3 text-center text-sm text-ink-3">{subtitle}</p>
|
<p className="mt-3 text-center text-sm text-ink-3">{subtitle}</p>
|
||||||
<div className="mt-9">{children}</div>
|
<div className="mt-9">{children}</div>
|
||||||
@@ -49,8 +49,8 @@ function Shell({ children, subtitle }: { children: ReactNode; subtitle: string }
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Écran de connexion / inscription (affiché quand les comptes sont activés et qu'on n'est pas connecté). */
|
/** Écran de connexion / inscription (affiché quand les comptes sont activés et qu'on n'est pas connecté). */
|
||||||
export default function AuthScreen({ notice }: { notice?: string }) {
|
export default function AuthScreen({ notice, onExplore, initialMode = 'login' }: { notice?: string; /** Mode découverte : regarder l'app sans compte */ onExplore?: () => void; initialMode?: 'login' | 'signup' }) {
|
||||||
const [mode, setMode] = useState<Mode>('login')
|
const [mode, setMode] = useState<Mode>(initialMode)
|
||||||
const [email, setEmail] = useState('')
|
const [email, setEmail] = useState('')
|
||||||
const [username, setUsername] = useState('')
|
const [username, setUsername] = useState('')
|
||||||
const [password, setPassword] = useState('')
|
const [password, setPassword] = useState('')
|
||||||
@@ -201,6 +201,12 @@ export default function AuthScreen({ notice }: { notice?: string }) {
|
|||||||
{mode === 'signup' && <p className="text-center text-xs leading-relaxed text-ink-3">{t('auth.consent')}</p>}
|
{mode === 'signup' && <p className="text-center text-xs leading-relaxed text-ink-3">{t('auth.consent')}</p>}
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
|
{onExplore && mode !== 'forgot' && (
|
||||||
|
<button type="button" onClick={onExplore} className="mt-4 w-full rounded-full py-2.5 text-sm font-medium text-ink-2 transition-colors hover:text-ink">
|
||||||
|
{t('guest.explore')} <span className="text-accent rtl:-scale-x-100">→</span>
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
|
||||||
<div className="mt-5 text-center text-sm">
|
<div className="mt-5 text-center text-sm">
|
||||||
{mode === 'login' && (
|
{mode === 'login' && (
|
||||||
<button type="button" onClick={() => switchTo('forgot')} className="text-ink-3">
|
<button type="button" onClick={() => switchTo('forgot')} className="text-ink-3">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
import { BarChart3, Home, LibraryBig, Plus, Settings } from 'lucide-react'
|
import { BarChart3, Home, LibraryBig, Search, Settings } from 'lucide-react'
|
||||||
import { cx } from '../lib/utils'
|
import { cx } from '../lib/utils'
|
||||||
|
|
||||||
export type Tab = 'home' | 'catalog' | 'stats' | 'settings'
|
export type Tab = 'home' | 'catalog' | 'stats' | 'settings'
|
||||||
@@ -44,10 +44,10 @@ export default function BottomNav({ current, onChange, onAdd }: Props) {
|
|||||||
<div className="flex flex-1 justify-center">
|
<div className="flex flex-1 justify-center">
|
||||||
<button
|
<button
|
||||||
onClick={onAdd}
|
onClick={onAdd}
|
||||||
aria-label={t('nav.addTitle')}
|
aria-label={t('search.title')}
|
||||||
className="grid size-12 place-items-center rounded-full bg-accent-fill text-on-accent transition active:scale-95"
|
className="grid size-12 place-items-center rounded-full bg-accent-fill text-on-accent transition active:scale-95"
|
||||||
>
|
>
|
||||||
<Plus size={24} strokeWidth={2.2} />
|
<Search size={22} strokeWidth={2.4} />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{ITEMS.slice(2).map(button)}
|
{ITEMS.slice(2).map(button)}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import type { Completion } from '../lib/seasons'
|
||||||
import { Check, Info, Plus } from 'lucide-react'
|
import { Check, Info, Plus } from 'lucide-react'
|
||||||
import { useEffect, useRef, useState } from 'react'
|
import { useEffect, useRef, useState } from 'react'
|
||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
@@ -8,6 +9,7 @@ import { genreLabel } from '../lib/genres'
|
|||||||
import { backdropSrcSet, tmdbSized } from '../lib/tmdbImage'
|
import { backdropSrcSet, tmdbSized } from '../lib/tmdbImage'
|
||||||
import { cx, formatDate } from '../lib/utils'
|
import { cx, formatDate } from '../lib/utils'
|
||||||
import { useMedia } from '../store'
|
import { useMedia } from '../store'
|
||||||
|
import { useToast } from './Toast'
|
||||||
import type { MediaItem } from '../types'
|
import type { MediaItem } from '../types'
|
||||||
|
|
||||||
/** Où j'en suis : « S2 · É3 » (épisode suivant à voir) */
|
/** Où j'en suis : « S2 · É3 » (épisode suivant à voir) */
|
||||||
@@ -26,9 +28,23 @@ export function waitingLabel(item: MediaItem): string {
|
|||||||
return date ? t('hero.nextOn', { date: formatDate(date) }) : t('hero.upToDate')
|
return date ? t('hero.nextOn', { date: formatDate(date) }) : t('hero.upToDate')
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Grande bannière de l'accueil : défile entre les titres que je regarde en ce moment (ou le prochain à voir). */
|
/** +1 depuis l'accueil : saison (ou série) finie → on ouvre la fiche sur la note ; revisionnage fini → petit message. */
|
||||||
export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen: (item: MediaItem) => void }) {
|
function usePlusOne(onOpen: (item: MediaItem, focus?: Completion) => void) {
|
||||||
const { incrementEpisode } = useMedia()
|
const { incrementEpisode } = useMedia()
|
||||||
|
const toast = useToast()
|
||||||
|
return (item: MediaItem) => {
|
||||||
|
const cap = episodeCap(item)
|
||||||
|
const endsRewatch = !!item.rewatch && !!cap && item.rewatch.episodes + 1 >= cap
|
||||||
|
return incrementEpisode(item.id).then((done) => {
|
||||||
|
if (done) onOpen(item, done)
|
||||||
|
else if (endsRewatch) toast.show(t('rewatch.finishedToast', { title: item.title }))
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Grande bannière de l'accueil : défile entre les titres que je regarde en ce moment (ou le prochain à voir). */
|
||||||
|
export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen: (item: MediaItem, focus?: Completion) => void }) {
|
||||||
|
const plusOne = usePlusOne(onOpen)
|
||||||
// On retient le titre affiché (et pas sa position) : la liste se réordonne quand on avance un épisode
|
// On retient le titre affiché (et pas sa position) : la liste se réordonne quand on avance un épisode
|
||||||
const [currentId, setCurrentId] = useState<string>()
|
const [currentId, setCurrentId] = useState<string>()
|
||||||
const [pausedAt, setPausedAt] = useState(0)
|
const [pausedAt, setPausedAt] = useState(0)
|
||||||
@@ -98,7 +114,7 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
|
|||||||
<span className="absolute inset-0 bg-bg/50" />
|
<span className="absolute inset-0 bg-bg/50" />
|
||||||
</button>
|
</button>
|
||||||
<div className="pointer-events-none absolute inset-x-0 bottom-0 p-5 lg:p-10">
|
<div className="pointer-events-none absolute inset-x-0 bottom-0 p-5 lg:p-10">
|
||||||
<p className="eyebrow text-ink-2">{item.status === 'en_cours' ? t('homeHero.continue') : t('homeHero.next')}</p>
|
<p className="eyebrow text-ink-2">{item.rewatch ? t('rewatch.badge') : item.status === 'en_cours' ? t('homeHero.continue') : t('homeHero.next')}</p>
|
||||||
<h2 className="mt-1.5 line-clamp-2 text-[1.9rem] font-bold leading-[1.1] lg:text-5xl">{item.title}</h2>
|
<h2 className="mt-1.5 line-clamp-2 text-[1.9rem] font-bold leading-[1.1] lg:text-5xl">{item.title}</h2>
|
||||||
{meta && <p className="mt-1.5 text-xs text-ink-2">{meta}</p>}
|
{meta && <p className="mt-1.5 text-xs text-ink-2">{meta}</p>}
|
||||||
<div className="pointer-events-auto mt-4 flex items-center gap-2">
|
<div className="pointer-events-auto mt-4 flex items-center gap-2">
|
||||||
@@ -106,7 +122,8 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
|
|||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPausedAt(Date.now())
|
setPausedAt(Date.now())
|
||||||
void incrementEpisode(item.id)
|
// Saison (ou série) terminée : on ouvre la fiche sur la note
|
||||||
|
void plusOne(item)
|
||||||
}}
|
}}
|
||||||
className="btn btn-primary px-5"
|
className="btn btn-primary px-5"
|
||||||
>
|
>
|
||||||
@@ -140,8 +157,8 @@ export default function HomeHero({ items, onOpen }: { items: MediaItem[]; onOpen
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Carte horizontale « Reprendre » : image, barre de progression, prochain épisode. */
|
/** Carte horizontale « Reprendre » : image, barre de progression, prochain épisode. */
|
||||||
export function ContinueCard({ item, onOpen }: { item: MediaItem; onOpen: (item: MediaItem) => void }) {
|
export function ContinueCard({ item, onOpen }: { item: MediaItem; onOpen: (item: MediaItem, focus?: Completion) => void }) {
|
||||||
const { incrementEpisode } = useMedia()
|
const plusOne = usePlusOne(onOpen)
|
||||||
const image = item.backdrop ?? item.poster
|
const image = item.backdrop ?? item.poster
|
||||||
const next = nextEpisodeLabel(item)
|
const next = nextEpisodeLabel(item)
|
||||||
|
|
||||||
@@ -153,7 +170,7 @@ export function ContinueCard({ item, onOpen }: { item: MediaItem; onOpen: (item:
|
|||||||
</button>
|
</button>
|
||||||
{next && (
|
{next && (
|
||||||
<button
|
<button
|
||||||
onClick={() => incrementEpisode(item.id)}
|
onClick={() => void plusOne(item)}
|
||||||
className="absolute bottom-3 end-2 flex h-8 items-center gap-0.5 rounded-full bg-accent-fill px-3 text-xs font-semibold text-on-accent transition active:scale-90"
|
className="absolute bottom-3 end-2 flex h-8 items-center gap-0.5 rounded-full bg-accent-fill px-3 text-xs font-semibold text-on-accent transition active:scale-90"
|
||||||
aria-label={t('card.plusOne', { title: item.title })}
|
aria-label={t('card.plusOne', { title: item.title })}
|
||||||
>
|
>
|
||||||
@@ -163,7 +180,10 @@ export function ContinueCard({ item, onOpen }: { item: MediaItem; onOpen: (item:
|
|||||||
</div>
|
</div>
|
||||||
<button onClick={() => onOpen(item)} className="mt-2 block w-full text-start">
|
<button onClick={() => onOpen(item)} className="mt-2 block w-full text-start">
|
||||||
<span className="block truncate text-sm font-semibold">{item.title}</span>
|
<span className="block truncate text-sm font-semibold">{item.title}</span>
|
||||||
<span className="block text-xs text-ink-3">{next ? t('homeHero.nextUp', { ep: next }) : waitingLabel(item)}</span>
|
<span className="block text-xs text-ink-3">
|
||||||
|
{item.rewatch && <span className="font-medium text-accent">{t('rewatch.badge')} · </span>}
|
||||||
|
{next ? t('homeHero.nextUp', { ep: next }) : waitingLabel(item)}
|
||||||
|
</span>
|
||||||
</button>
|
</button>
|
||||||
</article>
|
</article>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
import { locale, t } from '../i18n'
|
import { locale, t } from '../i18n'
|
||||||
import { Star } from 'lucide-react'
|
import { Star } from 'lucide-react'
|
||||||
import { useMemo, useState } from 'react'
|
import { useMemo, useState } from 'react'
|
||||||
import { DEFAULT_FILM_MINUTES, TYPE_BY_VALUE } from '../lib/constants'
|
import { oneViewMinutes, rewatchMinutes, watchMinutes } from '../lib/stats'
|
||||||
import { watchMinutes } from '../lib/stats'
|
|
||||||
import { cx, formatDuration, formatRating } from '../lib/utils'
|
import { cx, formatDuration, formatRating } from '../lib/utils'
|
||||||
import { useMedia } from '../store'
|
import { useMedia } from '../store'
|
||||||
import type { MediaItem } from '../types'
|
import type { MediaItem } from '../types'
|
||||||
@@ -28,13 +27,11 @@ function buildEntries(items: MediaItem[]): Entry[] {
|
|||||||
if (item.status === 'termine' && item.endDate) out.push({ date: item.endDate, item, kind: 'fini', minutes: watchMinutes(item) - rewatchMinutes(item) })
|
if (item.status === 'termine' && item.endDate) out.push({ date: item.endDate, item, kind: 'fini', minutes: watchMinutes(item) - rewatchMinutes(item) })
|
||||||
else if ((item.status === 'en_cours' || item.status === 'pause') && item.startDate) out.push({ date: item.startDate, item, kind: 'commence', minutes: 0 })
|
else if ((item.status === 'en_cours' || item.status === 'pause') && item.startDate) out.push({ date: item.startDate, item, kind: 'commence', minutes: 0 })
|
||||||
else if (item.status === 'abandonne' && (item.endDate || item.startDate)) out.push({ date: (item.endDate || item.startDate)!, item, kind: 'abandonne', minutes: 0 })
|
else if (item.status === 'abandonne' && (item.endDate || item.startDate)) out.push({ date: (item.endDate || item.startDate)!, item, kind: 'abandonne', minutes: 0 })
|
||||||
for (const d of item.rewatchDates ?? []) out.push({ date: d, item, kind: 'revu', minutes: TYPE_BY_VALUE[item.type].episodic ? 0 : item.duration || DEFAULT_FILM_MINUTES })
|
for (const d of item.rewatchDates ?? []) out.push({ date: d, item, kind: 'revu', minutes: oneViewMinutes(item) })
|
||||||
}
|
}
|
||||||
return out.sort((a, b) => b.date.localeCompare(a.date) || a.item.title.localeCompare(b.item.title, locale()))
|
return out.sort((a, b) => b.date.localeCompare(a.date) || a.item.title.localeCompare(b.item.title, locale()))
|
||||||
}
|
}
|
||||||
|
|
||||||
const rewatchMinutes = (i: MediaItem) => (TYPE_BY_VALUE[i.type].episodic ? 0 : (i.rewatchDates?.length ?? 0) * (i.duration || DEFAULT_FILM_MINUTES))
|
|
||||||
|
|
||||||
/** Onglet « Journal » du catalogue : chronologie groupée par mois. */
|
/** Onglet « Journal » du catalogue : chronologie groupée par mois. */
|
||||||
export default function JournalView({ onOpen }: { onOpen: (item: MediaItem) => void }) {
|
export default function JournalView({ onOpen }: { onOpen: (item: MediaItem) => void }) {
|
||||||
const { items, settings } = useMedia()
|
const { items, settings } = useMedia()
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import { Heart, Plus } from 'lucide-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'
|
||||||
|
import { progressView } from '../lib/rewatch'
|
||||||
import { useMedia } from '../store'
|
import { useMedia } from '../store'
|
||||||
import type { MediaItem } from '../types'
|
import type { MediaItem } from '../types'
|
||||||
import { StatusPill, TypeBadge } from './Badges'
|
import { StatusPill, TypeBadge } from './Badges'
|
||||||
@@ -38,10 +39,12 @@ function Progress({ item }: { item: MediaItem }) {
|
|||||||
/** Carte verticale (grille du catalogue). */
|
/** Carte verticale (grille du catalogue). */
|
||||||
export function MediaCard({ item, onOpen }: { item: MediaItem; onOpen: (item: MediaItem) => void }) {
|
export 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
|
||||||
|
const view = progressView(item)
|
||||||
const canIncrement =
|
const canIncrement =
|
||||||
TYPE_BY_VALUE[item.type].episodic &&
|
TYPE_BY_VALUE[item.type].episodic &&
|
||||||
item.status === 'en_cours' &&
|
view.status === 'en_cours' &&
|
||||||
canWatchMore(item)
|
canWatchMore(view)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<article>
|
<article>
|
||||||
@@ -69,7 +72,7 @@ export function MediaCard({ item, onOpen }: { item: MediaItem; onOpen: (item: Me
|
|||||||
<StatusPill status={item.status} />
|
<StatusPill status={item.status} />
|
||||||
<RatingBadge value={item.rating} scale={settings.ratingScale} />
|
<RatingBadge value={item.rating} scale={settings.ratingScale} />
|
||||||
</div>
|
</div>
|
||||||
<Progress item={item} />
|
<Progress item={view} />
|
||||||
</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>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { type Tab } from './BottomNav'
|
import { type Tab } from './BottomNav'
|
||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
import { BarChart3, Home, LibraryBig, Plus, Settings } from 'lucide-react'
|
import { BarChart3, Home, LibraryBig, Search, Settings } from 'lucide-react'
|
||||||
import { cx } from '../lib/utils'
|
import { cx } from '../lib/utils'
|
||||||
|
|
||||||
const ITEMS: { tab: Tab; readonly label: string; Icon: typeof Home }[] = [
|
const ITEMS: { tab: Tab; readonly label: string; Icon: typeof Home }[] = [
|
||||||
@@ -20,15 +20,15 @@ export default function SideNav({ current, onChange, onAdd }: Props) {
|
|||||||
return (
|
return (
|
||||||
<nav className="fixed inset-y-0 start-0 z-30 hidden w-60 flex-col border-e border-line bg-bg px-4 py-6 lg:flex">
|
<nav className="fixed inset-y-0 start-0 z-30 hidden w-60 flex-col border-e border-line bg-bg px-4 py-6 lg:flex">
|
||||||
<h1 className="px-2 text-2xl font-bold">
|
<h1 className="px-2 text-2xl font-bold">
|
||||||
Azuu<span className="text-accent">Cine</span>
|
Ki<span className="text-accent">no</span>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
onClick={onAdd}
|
onClick={onAdd}
|
||||||
className="mt-6 flex w-full items-center justify-center gap-2 rounded-full bg-accent-fill px-4 py-2.5 text-sm font-semibold text-on-accent transition active:scale-95"
|
className="mt-6 flex w-full items-center justify-center gap-2 rounded-full bg-accent-fill px-4 py-2.5 text-sm font-semibold text-on-accent transition active:scale-95"
|
||||||
>
|
>
|
||||||
<Plus size={18} strokeWidth={2.2} />
|
<Search size={17} strokeWidth={2.4} />
|
||||||
{t('nav.addTitle')}
|
{t('search.title')}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<div className="mt-6 flex flex-col gap-1">
|
<div className="mt-6 flex flex-col gap-1">
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ function EmptySlot({ rank, onClick, big }: { rank: number; onClick: () => void;
|
|||||||
onClick={onClick}
|
onClick={onClick}
|
||||||
className={cx(
|
className={cx(
|
||||||
'grid aspect-[2/3] place-items-center rounded-xl border border-dashed border-line-strong text-ink-3 transition-colors active:bg-surface-2',
|
'grid aspect-[2/3] place-items-center rounded-xl border border-dashed border-line-strong text-ink-3 transition-colors active:bg-surface-2',
|
||||||
big ? 'w-32' : 'w-full',
|
big ? 'w-32 lg:w-40' : 'w-full',
|
||||||
)}
|
)}
|
||||||
aria-label={t('top.pick', { rank })}
|
aria-label={t('top.pick', { rank })}
|
||||||
>
|
>
|
||||||
@@ -61,7 +61,7 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
|||||||
setSharing(true)
|
setSharing(true)
|
||||||
try {
|
try {
|
||||||
const blob = await renderTopCard(current.plural, [1, 2, 3, 4, 5].map((r) => byRank.get(r)))
|
const blob = await renderTopCard(current.plural, [1, 2, 3, 4, 5].map((r) => byRank.get(r)))
|
||||||
setPreview({ blob, filename: `azuucine-top5-${slug(current.plural)}.png`, title: t('top.shareTitle', { category: current.plural }) })
|
setPreview({ blob, filename: `kino-top5-${slug(current.plural)}.png`, title: t('top.shareTitle', { category: current.plural }) })
|
||||||
} finally {
|
} finally {
|
||||||
setSharing(false)
|
setSharing(false)
|
||||||
}
|
}
|
||||||
@@ -100,7 +100,7 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
|||||||
<RankNumber rank={1} big />
|
<RankNumber rank={1} big />
|
||||||
</span>
|
</span>
|
||||||
{first ? (
|
{first ? (
|
||||||
<button onClick={() => onOpen(first)} className="relative z-10 w-32">
|
<button onClick={() => onOpen(first)} className="relative z-10 w-32 lg:w-40">
|
||||||
<Poster src={first.poster} title={first.title} />
|
<Poster src={first.poster} title={first.title} />
|
||||||
</button>
|
</button>
|
||||||
) : (
|
) : (
|
||||||
@@ -126,8 +126,9 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* N°2 à 5 : chiffres en contour qui dépassent derrière les affiches */}
|
{/* N°2 à 5 : chiffres en contour qui dépassent derrière les affiches.
|
||||||
<div className="mt-14 grid grid-cols-4 gap-x-2">
|
Sur grand écran, la rangée garde les proportions du mobile (affiches plus petites que le n°1). */}
|
||||||
|
<div className="mt-14 grid max-w-xl grid-cols-4 gap-x-2 lg:gap-x-4">
|
||||||
{[2, 3, 4, 5].map((rank) => {
|
{[2, 3, 4, 5].map((rank) => {
|
||||||
const item = byRank.get(rank)
|
const item = byRank.get(rank)
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -0,0 +1,54 @@
|
|||||||
|
import { X } from 'lucide-react'
|
||||||
|
import { t } from '../../i18n'
|
||||||
|
import { useBackToClose } from '../../lib/backNav'
|
||||||
|
import { useEscape } from '../../lib/escape'
|
||||||
|
|
||||||
|
/** Mode découverte : un geste qui demande un compte (noter, ajouter, suivre…). */
|
||||||
|
export default function GuestPrompt({ onSignIn, onSignUp, onClose }: { onSignIn: () => void; onSignUp: () => void; onClose: () => void }) {
|
||||||
|
useEscape(onClose)
|
||||||
|
useBackToClose(onClose)
|
||||||
|
return (
|
||||||
|
<div className="fixed inset-0 z-[80] flex items-end justify-center bg-black/60 sm:items-center" onClick={onClose}>
|
||||||
|
<div
|
||||||
|
role="dialog"
|
||||||
|
aria-modal="true"
|
||||||
|
aria-labelledby="guest-prompt-title"
|
||||||
|
onClick={(e) => e.stopPropagation()}
|
||||||
|
className="safe-bottom relative w-full max-w-sm rounded-t-3xl border border-line bg-surface p-6 sm:rounded-3xl"
|
||||||
|
>
|
||||||
|
<button onClick={onClose} className="absolute end-3 top-3 grid size-9 place-items-center rounded-full text-ink-3" aria-label={t('common.close')}>
|
||||||
|
<X size={18} />
|
||||||
|
</button>
|
||||||
|
<p className="text-2xl font-bold">
|
||||||
|
Ki<span className="text-accent">no</span>
|
||||||
|
</p>
|
||||||
|
<h2 id="guest-prompt-title" className="mt-3 text-lg font-semibold">
|
||||||
|
{t('guest.promptTitle')}
|
||||||
|
</h2>
|
||||||
|
<p className="mt-1.5 text-sm leading-relaxed text-ink-2">{t('guest.promptText')}</p>
|
||||||
|
<div className="mt-6 space-y-2">
|
||||||
|
<button onClick={onSignUp} className="btn btn-primary w-full py-3">
|
||||||
|
{t('auth.signupTab')}
|
||||||
|
</button>
|
||||||
|
<button onClick={onSignIn} className="btn btn-ghost w-full py-3">
|
||||||
|
{t('auth.loginTab')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Bandeau discret en haut de l'app en mode découverte. */
|
||||||
|
export function GuestBanner({ onSignIn }: { onSignIn: () => void }) {
|
||||||
|
return (
|
||||||
|
<div className="safe-top border-b border-line bg-surface lg:ps-60">
|
||||||
|
<div className="mx-auto flex max-w-2xl items-center gap-3 px-4 py-2 lg:max-w-none lg:px-10">
|
||||||
|
<p className="min-w-0 flex-1 truncate text-xs text-ink-2">{t('guest.banner')}</p>
|
||||||
|
<button onClick={onSignIn} className="shrink-0 rounded-full bg-accent-fill px-3 py-1.5 text-xs font-semibold text-on-accent">
|
||||||
|
{t('auth.loginTab')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,222 @@
|
|||||||
|
import { ArrowLeft, Check, Loader2 } from 'lucide-react'
|
||||||
|
import { useEffect, useMemo, useState } from 'react'
|
||||||
|
import { t } from '../../i18n'
|
||||||
|
import { useBackToClose } from '../../lib/backNav'
|
||||||
|
import type { SearchResult } from '../../lib/catalogApi'
|
||||||
|
import { STATUS_BY_VALUE } from '../../lib/constants'
|
||||||
|
import { useEscape } from '../../lib/escape'
|
||||||
|
import { findFranchiseItem } from '../../lib/franchise'
|
||||||
|
import { CREDIT_GROUPS, getPerson, groupLabel, type CreditGroup, type PersonCredit, type PersonDetails } from '../../lib/people'
|
||||||
|
import { useScrollLock } from '../../lib/scrollLock'
|
||||||
|
import { cx, formatDate } from '../../lib/utils'
|
||||||
|
import { useMedia } from '../../store'
|
||||||
|
import type { MediaItem } from '../../types'
|
||||||
|
import Poster from '../Poster'
|
||||||
|
|
||||||
|
type Sort = 'popular' | 'recent'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Page d'une personne (acteur·rice, réalisateur·rice, doubleur·se…) : photo, biographie,
|
||||||
|
* et toute sa filmographie, rangée par métier. Un titre s'ouvre en fiche (déjà dans ma bibliothèque ou non).
|
||||||
|
*/
|
||||||
|
export default function PersonSheet({
|
||||||
|
personId,
|
||||||
|
name: initialName,
|
||||||
|
photo: initialPhoto,
|
||||||
|
onClose,
|
||||||
|
onOpenItem,
|
||||||
|
onOpenSeed,
|
||||||
|
}: {
|
||||||
|
personId: string
|
||||||
|
name?: string
|
||||||
|
photo?: string
|
||||||
|
onClose: () => void
|
||||||
|
onOpenItem: (item: MediaItem) => void
|
||||||
|
onOpenSeed: (seed: SearchResult) => void
|
||||||
|
}) {
|
||||||
|
const { items, settings } = useMedia()
|
||||||
|
useScrollLock()
|
||||||
|
useEscape(onClose)
|
||||||
|
useBackToClose(onClose)
|
||||||
|
|
||||||
|
const [person, setPerson] = useState<PersonDetails>()
|
||||||
|
const [error, setError] = useState<string>()
|
||||||
|
const [group, setGroup] = useState<CreditGroup>()
|
||||||
|
const [sort, setSort] = useState<Sort>('popular')
|
||||||
|
const [bioOpen, setBioOpen] = useState(false)
|
||||||
|
|
||||||
|
useEffect(() => {
|
||||||
|
let alive = true
|
||||||
|
setError(undefined)
|
||||||
|
getPerson(personId, settings.tmdbKey)
|
||||||
|
.then((p) => {
|
||||||
|
if (!alive) return
|
||||||
|
setPerson(p)
|
||||||
|
setGroup((g) => g ?? p.mainGroup)
|
||||||
|
})
|
||||||
|
.catch((e: Error) => alive && setError(navigator.onLine ? e.message : t('search.offline')))
|
||||||
|
return () => {
|
||||||
|
alive = false
|
||||||
|
}
|
||||||
|
}, [personId, settings.tmdbKey])
|
||||||
|
|
||||||
|
const mine = (r: SearchResult) =>
|
||||||
|
items.find((i) => i.externalId === r.externalId) ?? (r.typeGuess !== 'film' ? findFranchiseItem(items, [r.title, r.originalTitle, ...(r.altTitles ?? [])], { type: r.typeGuess }) : undefined)
|
||||||
|
|
||||||
|
const groups = useMemo(() => {
|
||||||
|
const counts = new Map<CreditGroup, number>()
|
||||||
|
for (const c of person?.credits ?? []) counts.set(c.group, (counts.get(c.group) ?? 0) + 1)
|
||||||
|
return CREDIT_GROUPS.filter((g) => counts.has(g)).map((g) => ({ g, n: counts.get(g)! }))
|
||||||
|
}, [person])
|
||||||
|
|
||||||
|
const shown = useMemo(() => {
|
||||||
|
const list = (person?.credits ?? []).filter((c) => c.group === group)
|
||||||
|
const byYear = (a: PersonCredit, b: PersonCredit) => (b.year ?? 0) - (a.year ?? 0)
|
||||||
|
return [...list].sort(sort === 'recent' ? byYear : (a, b) => b.popularity - a.popularity || byYear(a, b))
|
||||||
|
}, [person, group, sort])
|
||||||
|
|
||||||
|
// Combien de ses titres sont déjà dans ma bibliothèque (tous métiers confondus, sans doublon)
|
||||||
|
const library = useMemo(() => {
|
||||||
|
const all = new Map<string, SearchResult>()
|
||||||
|
for (const c of person?.credits ?? []) all.set(c.result.externalId, c.result)
|
||||||
|
let n = 0
|
||||||
|
for (const r of all.values()) if (mine(r)) n++
|
||||||
|
return { n, total: all.size }
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
}, [person, items])
|
||||||
|
|
||||||
|
const name = person?.name ?? initialName ?? ''
|
||||||
|
const photo = person?.photo ?? initialPhoto
|
||||||
|
const life = person && [person.birthday && t('person.born', { date: formatDate(person.birthday) }), person.deathday && t('person.died', { date: formatDate(person.deathday) }), person.place].filter(Boolean)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="sheet sheet-in" role="dialog" aria-modal="true" aria-label={name || t('person.title')}>
|
||||||
|
<header className="safe-top border-b border-line">
|
||||||
|
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 lg:max-w-none lg:px-10">
|
||||||
|
<button onClick={onClose} className="grid size-10 shrink-0 place-items-center rounded-full text-ink-2" aria-label={t('common.close')}>
|
||||||
|
<ArrowLeft size={22} className="rtl:-scale-x-100" />
|
||||||
|
</button>
|
||||||
|
<h2 className="min-w-0 flex-1 truncate text-center text-base font-semibold">{name}</h2>
|
||||||
|
<span className="size-10 shrink-0" />
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div className="sheet-scroll">
|
||||||
|
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-6 lg:max-w-none lg:px-10">
|
||||||
|
{/* En-tête : photo + identité */}
|
||||||
|
<div className="flex items-start gap-4 lg:gap-8">
|
||||||
|
<div className="w-28 shrink-0 lg:w-48">
|
||||||
|
{photo ? (
|
||||||
|
<img src={photo} alt={name} className="aspect-[2/3] w-full rounded-xl border border-line bg-surface-2 object-cover" />
|
||||||
|
) : (
|
||||||
|
<div className="grid aspect-[2/3] w-full place-items-center rounded-xl border border-line bg-surface-2 text-4xl font-bold text-ink-3" aria-hidden="true">
|
||||||
|
{name.charAt(0) || '?'}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<div className="min-w-0 flex-1">
|
||||||
|
<h1 className="text-2xl leading-tight lg:text-5xl">{name}</h1>
|
||||||
|
{person?.department && <p className="eyebrow mt-2 text-accent">{person.department}</p>}
|
||||||
|
{life && life.length > 0 && <p className="mt-2 text-sm text-ink-2">{life.join(' · ')}</p>}
|
||||||
|
{person && library.n > 0 && (
|
||||||
|
<p className="mt-3 inline-flex items-center gap-1.5 rounded-full border border-line px-3 py-1 text-xs text-ink-2">
|
||||||
|
<Check size={13} className="text-accent" /> {t('person.inLibrary', { count: library.n, total: library.total })}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
{/* Biographie (bureau : à côté de la photo) */}
|
||||||
|
{person?.bio && (
|
||||||
|
<div className="mt-4 hidden max-w-3xl lg:block">
|
||||||
|
<Bio text={person.bio} open={bioOpen} onToggle={() => setBioOpen((v) => !v)} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{person?.bio && (
|
||||||
|
<div className="mt-5 lg:hidden">
|
||||||
|
<Bio text={person.bio} open={bioOpen} onToggle={() => setBioOpen((v) => !v)} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{error && <p className="mt-6 text-sm text-accent">{error}</p>}
|
||||||
|
{!person && !error && (
|
||||||
|
<p className="mt-10 flex items-center justify-center gap-2 text-sm text-ink-3">
|
||||||
|
<Loader2 size={16} className="animate-spin" /> {t('social.loading')}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{person && (
|
||||||
|
<section className="mt-8" aria-label={t('person.filmography')}>
|
||||||
|
<div className="flex flex-wrap items-center gap-2">
|
||||||
|
{groups.map(({ g, n }) => (
|
||||||
|
<button key={g} onClick={() => setGroup(g)} className={cx('chip', group === g && 'chip-on')} aria-pressed={group === g}>
|
||||||
|
{groupLabel(g)} <span className="opacity-60">{n}</span>
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
<div className="ms-auto flex gap-1 rounded-full border border-line p-0.5 text-xs">
|
||||||
|
{(['popular', 'recent'] as const).map((s) => (
|
||||||
|
<button
|
||||||
|
key={s}
|
||||||
|
onClick={() => setSort(s)}
|
||||||
|
aria-pressed={sort === s}
|
||||||
|
className={cx('rounded-full px-3 py-1.5 font-medium transition-colors', sort === s ? 'bg-ink text-bg' : 'text-ink-3')}
|
||||||
|
>
|
||||||
|
{s === 'popular' ? t('person.sortPopular') : t('person.sortRecent')}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{shown.length === 0 ? (
|
||||||
|
<p className="mt-8 text-center text-sm text-ink-3">{t('person.empty')}</p>
|
||||||
|
) : (
|
||||||
|
<ul className="mt-5 grid grid-cols-3 gap-x-3 gap-y-5 sm:grid-cols-4 lg:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10">
|
||||||
|
{shown.map((c) => {
|
||||||
|
const it = mine(c.result)
|
||||||
|
return (
|
||||||
|
<li key={c.group + c.result.externalId}>
|
||||||
|
<button onClick={() => (it ? onOpenItem(it) : onOpenSeed(c.result))} className="group block w-full text-start">
|
||||||
|
<div className="relative">
|
||||||
|
<Poster src={c.result.posterUrl ?? c.result.thumb} title={c.result.title} />
|
||||||
|
{it && (
|
||||||
|
<span
|
||||||
|
className="absolute end-1.5 top-1.5 grid size-6 place-items-center rounded-full bg-accent-fill text-on-accent"
|
||||||
|
title={STATUS_BY_VALUE[it.status].label}
|
||||||
|
aria-label={STATUS_BY_VALUE[it.status].label}
|
||||||
|
>
|
||||||
|
<Check size={14} strokeWidth={2.6} />
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<p className="mt-1.5 line-clamp-2 text-xs font-medium leading-snug">{c.result.title}</p>
|
||||||
|
<p className="mt-0.5 line-clamp-2 text-[11px] leading-snug text-ink-3">{[c.year, c.role].filter(Boolean).join(' · ')}</p>
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</ul>
|
||||||
|
)}
|
||||||
|
</section>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{person && (
|
||||||
|
<p className="mt-10 text-center text-[11px] text-ink-3">{personId.startsWith('tmdbp:') ? t('person.sourceTmdb') : t('person.sourceAnilist')}</p>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function Bio({ text, open, onToggle }: { text: string; open: boolean; onToggle: () => void }) {
|
||||||
|
const long = text.length > 320
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<p className={cx('whitespace-pre-line text-sm leading-relaxed text-ink-2', !open && long && 'line-clamp-4')}>{text}</p>
|
||||||
|
{long && (
|
||||||
|
<button onClick={onToggle} className="mt-1.5 text-sm font-medium text-ink" aria-expanded={open}>
|
||||||
|
{open ? t('person.bioLess') : t('person.bioMore')}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -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>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -38,7 +38,7 @@ export default function PeopleSearch({ onClose }: { onClose: () => void }) {
|
|||||||
if (!me) return
|
if (!me) return
|
||||||
const url = profileLink(me.username)
|
const url = profileLink(me.username)
|
||||||
try {
|
try {
|
||||||
if (navigator.share && window.matchMedia?.('(pointer: coarse)').matches) await navigator.share({ title: 'AzuuCine', text: t('social.inviteText'), url })
|
if (navigator.share && window.matchMedia?.('(pointer: coarse)').matches) await navigator.share({ title: 'Kino', text: t('social.inviteText'), url })
|
||||||
else {
|
else {
|
||||||
await navigator.clipboard.writeText(url)
|
await navigator.clipboard.writeText(url)
|
||||||
setCopied(true)
|
setCopied(true)
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import Avatar from './Avatar'
|
|||||||
import { useSocial } from './SocialProvider'
|
import { useSocial } from './SocialProvider'
|
||||||
|
|
||||||
/** Ligne « personne » : photo, nom, @pseudo, et bouton d'abonnement (ou actions personnalisées). */
|
/** Ligne « personne » : photo, nom, @pseudo, et bouton d'abonnement (ou actions personnalisées). */
|
||||||
export default function PersonRow({ person, actions }: { person: ProfileCard; actions?: ReactNode }) {
|
export default function PersonRow({ person, actions, onOpen }: { person: ProfileCard; actions?: ReactNode; /** Appelé juste avant d'ouvrir le profil */ onOpen?: () => void }) {
|
||||||
const social = useSocial()
|
const social = useSocial()
|
||||||
const [relation, setRelation] = useState(person.relation)
|
const [relation, setRelation] = useState(person.relation)
|
||||||
const [busy, setBusy] = useState(false)
|
const [busy, setBusy] = useState(false)
|
||||||
@@ -31,7 +31,13 @@ export default function PersonRow({ person, actions }: { person: ProfileCard; ac
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center gap-3 py-2.5">
|
<div className="flex items-center gap-3 py-2.5">
|
||||||
<button onClick={() => social.openProfile(person.username)} className="flex min-w-0 flex-1 items-center gap-3 text-start">
|
<button
|
||||||
|
onClick={() => {
|
||||||
|
onOpen?.()
|
||||||
|
social.openProfile(person.username)
|
||||||
|
}}
|
||||||
|
className="flex min-w-0 flex-1 items-center gap-3 text-start"
|
||||||
|
>
|
||||||
<Avatar url={person.avatarUrl} name={person.displayName} size={44} />
|
<Avatar url={person.avatarUrl} name={person.displayName} size={44} />
|
||||||
<span className="min-w-0">
|
<span className="min-w-0">
|
||||||
<span className="block truncate text-sm font-semibold">{person.displayName}</span>
|
<span className="block truncate text-sm font-semibold">{person.displayName}</span>
|
||||||
|
|||||||
@@ -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,7 +8,6 @@ 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 CommentsSheet from './CommentsSheet'
|
||||||
@@ -30,10 +28,6 @@ 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
|
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
|
||||||
@@ -60,8 +54,6 @@ const SocialContext = createContext<SocialApi>({
|
|||||||
openEdit: () => {},
|
openEdit: () => {},
|
||||||
openFollowList: () => {},
|
openFollowList: () => {},
|
||||||
openReviews: () => {},
|
openReviews: () => {},
|
||||||
openNotifications: () => {},
|
|
||||||
unread: 0,
|
|
||||||
peek: () => {},
|
peek: () => {},
|
||||||
openItem: () => {},
|
openItem: () => {},
|
||||||
openComments: () => {},
|
openComments: () => {},
|
||||||
@@ -80,7 +72,6 @@ type Overlay =
|
|||||||
| { 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: '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,7 +91,6 @@ 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[]>([])
|
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)
|
||||||
@@ -125,10 +115,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 */
|
||||||
}
|
}
|
||||||
@@ -202,12 +191,6 @@ 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 }),
|
peek: (item, owner) => setPeeked({ item, owner }),
|
||||||
openItem,
|
openItem,
|
||||||
openComments: (authorId, itemId, title) => push({ kind: 'comments', authorId, itemId, title }),
|
openComments: (authorId, itemId, title) => push({ kind: 'comments', authorId, itemId, title }),
|
||||||
@@ -217,7 +200,7 @@ export function SocialProvider({
|
|||||||
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 (
|
||||||
@@ -239,30 +222,8 @@ export function SocialProvider({
|
|||||||
<CommentsSheet key={k} authorId={o.authorId} itemId={o.itemId} title={o.title} onClose={pop} />
|
<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={k} id={o.id} onClose={pop} />
|
||||||
) : o.kind === 'invite' ? (
|
|
||||||
<InvitePeople key={k} listId={o.listId} listName={o.listName} onClose={pop} />
|
|
||||||
) : (
|
) : (
|
||||||
<Notifications
|
<InvitePeople key={k} listId={o.listId} listName={o.listName} onClose={pop} />
|
||||||
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}
|
||||||
|
|||||||
@@ -0,0 +1,98 @@
|
|||||||
|
import type { ReactNode } from 'react'
|
||||||
|
import { cx } from '../../lib/utils'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Petites briques de graphiques, sans bibliothèque.
|
||||||
|
* Une seule série par graphique → une seule couleur (l'accent du thème), valeurs écrites en encre (jamais en couleur),
|
||||||
|
* grille et axes discrets, survol / focus qui affiche la valeur exacte.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** Grand chiffre + libellé (pas besoin d'un graphique pour une seule valeur). */
|
||||||
|
export function StatTile({ label, value, hint }: { label: string; value: ReactNode; hint?: ReactNode }) {
|
||||||
|
return (
|
||||||
|
<div className="card min-w-0 p-4">
|
||||||
|
<p className="text-xs text-ink-3">{label}</p>
|
||||||
|
<p className="mt-1 truncate text-2xl font-bold tracking-tight lg:text-3xl">{value}</p>
|
||||||
|
{hint && <p className="mt-0.5 truncate text-xs text-ink-2">{hint}</p>}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Barres horizontales triées (classements : genres, pays, types…). Valeur écrite au bout de chaque barre. */
|
||||||
|
export function BarList({ rows, format = String }: { rows: { key: string; label: ReactNode; value: number; sub?: string }[]; format?: (n: number) => string }) {
|
||||||
|
const max = Math.max(1, ...rows.map((r) => r.value))
|
||||||
|
return (
|
||||||
|
<ul className="space-y-2.5">
|
||||||
|
{rows.map((r) => (
|
||||||
|
<li key={r.key}>
|
||||||
|
<div className="mb-1 flex items-baseline justify-between gap-3 text-sm">
|
||||||
|
<span className="min-w-0 truncate">{r.label}</span>
|
||||||
|
<span className="shrink-0 tabular-nums text-ink-2">
|
||||||
|
{format(r.value)}
|
||||||
|
{r.sub && <span className="ms-1.5 text-xs text-ink-3">{r.sub}</span>}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div className="h-2 rounded-full bg-surface-2" aria-hidden="true">
|
||||||
|
<div className="h-2 rounded-full bg-accent-fill" style={{ width: `${Math.max(2, (r.value / max) * 100)}%` }} />
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Colonnes verticales (évolution dans le temps, répartition des notes).
|
||||||
|
* Chaque colonne est focalisable : survol / clavier → bulle avec la valeur exacte.
|
||||||
|
*/
|
||||||
|
export function Columns({
|
||||||
|
bars,
|
||||||
|
height = 140,
|
||||||
|
label,
|
||||||
|
}: {
|
||||||
|
bars: { key: string; axis: string; value: number; tip: string; highlight?: boolean; /** Masquée par l'utilisateur : pas de barre, libellé barré */ hidden?: boolean }[]
|
||||||
|
height?: number
|
||||||
|
/** Nom du graphique (lecteurs d'écran) */
|
||||||
|
label: string
|
||||||
|
}) {
|
||||||
|
const max = Math.max(1, ...bars.filter((b) => !b.hidden).map((b) => b.value))
|
||||||
|
return (
|
||||||
|
<figure aria-label={label}>
|
||||||
|
<div className="relative flex items-end gap-[2px] border-b border-line" style={{ height }}>
|
||||||
|
{/* Repère discret à mi-hauteur */}
|
||||||
|
<div className="pointer-events-none absolute inset-x-0 border-t border-dashed border-line" style={{ bottom: height / 2 }} aria-hidden="true" />
|
||||||
|
{bars.map((b) => (
|
||||||
|
<div key={b.key} tabIndex={0} aria-label={b.tip} className="group relative flex h-full flex-1 items-end justify-center outline-none">
|
||||||
|
<div
|
||||||
|
className={cx('w-full max-w-9 rounded-t-[4px] transition-opacity', b.value > 0 && !b.hidden ? 'bg-accent-fill' : 'bg-transparent', !b.highlight && 'opacity-80 group-hover:opacity-100 group-focus-visible:opacity-100')}
|
||||||
|
style={{ height: b.value > 0 && !b.hidden ? `${Math.max(3, (b.value / max) * 100)}%` : 0 }}
|
||||||
|
/>
|
||||||
|
<span className="pointer-events-none absolute bottom-full z-10 mb-1.5 hidden whitespace-nowrap rounded-lg border border-line bg-surface px-2 py-1 text-xs text-ink shadow-sm group-hover:block group-focus-visible:block">
|
||||||
|
{b.tip}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
<div className="mt-1.5 flex gap-[2px]" aria-hidden="true">
|
||||||
|
{bars.map((b) => (
|
||||||
|
<span key={b.key} className={cx('flex-1 truncate text-center text-[10px] text-ink-3', b.highlight && 'font-semibold text-ink', b.hidden && 'line-through opacity-50')}>
|
||||||
|
{b.axis}
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</figure>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Bloc titré de la page. */
|
||||||
|
export function Panel({ title, action, children, className }: { title: string; action?: ReactNode; children: ReactNode; className?: string }) {
|
||||||
|
return (
|
||||||
|
<section className={cx('card p-4 lg:p-5', className)}>
|
||||||
|
<div className="mb-4 flex items-center justify-between gap-3">
|
||||||
|
<h2 className="eyebrow text-ink-2">{title}</h2>
|
||||||
|
{action}
|
||||||
|
</div>
|
||||||
|
{children}
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,115 @@
|
|||||||
|
import { Check, X } from 'lucide-react'
|
||||||
|
import { useMemo, useState } from 'react'
|
||||||
|
import { locale, t } from '../../i18n'
|
||||||
|
import { useBackToClose } from '../../lib/backNav'
|
||||||
|
import { useEscape } from '../../lib/escape'
|
||||||
|
import { useScrollLock } from '../../lib/scrollLock'
|
||||||
|
import { availableYears, monthly } from '../../lib/stats'
|
||||||
|
import { cx, formatDuration } from '../../lib/utils'
|
||||||
|
import { useMedia } from '../../store'
|
||||||
|
import { Columns } from './Charts'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Paramètres des stats : la courbe mois par mois, et en dessous une case par mois pour l'afficher ou non
|
||||||
|
* (ex. le mois où toute la bibliothèque a été ajoutée d'un coup). Les mois masqués suivent le compte (réglages synchronisés).
|
||||||
|
*/
|
||||||
|
export default function StatsSettings({ onClose, initialYear }: { onClose: () => void; initialYear: string }) {
|
||||||
|
const { items, settings, updateSettings } = useMedia()
|
||||||
|
useScrollLock()
|
||||||
|
useEscape(onClose)
|
||||||
|
useBackToClose(onClose)
|
||||||
|
|
||||||
|
const years = useMemo(() => availableYears(items), [items])
|
||||||
|
const [year, setYear] = useState(initialYear && years.includes(initialYear) ? initialYear : '')
|
||||||
|
const months = useMemo(() => monthly(items, year), [items, year])
|
||||||
|
const hidden = new Set(settings.statsHiddenMonths ?? [])
|
||||||
|
|
||||||
|
const setShown = (key: string, shown: boolean) => {
|
||||||
|
const next = new Set(hidden)
|
||||||
|
if (shown) next.delete(key)
|
||||||
|
else next.add(key)
|
||||||
|
updateSettings({ statsHiddenMonths: next.size ? [...next].sort() : undefined })
|
||||||
|
}
|
||||||
|
const label = (key: string) => new Date(`${key}-15T12:00:00`).toLocaleDateString(locale(), { month: 'long', year: 'numeric' })
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="sheet sheet-in" role="dialog" aria-modal="true" aria-label={t('stats.settings')}>
|
||||||
|
<header className="safe-top border-b border-line">
|
||||||
|
<div className="mx-auto flex max-w-2xl items-center gap-2 px-3 py-2.5 lg:max-w-3xl">
|
||||||
|
<button onClick={onClose} className="grid size-10 shrink-0 place-items-center rounded-full text-ink-2" aria-label={t('common.close')}>
|
||||||
|
<X size={22} />
|
||||||
|
</button>
|
||||||
|
<h2 className="min-w-0 flex-1 truncate text-center text-base font-semibold">{t('stats.settings')}</h2>
|
||||||
|
<span className="size-10 shrink-0" />
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div className="sheet-scroll">
|
||||||
|
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-5 lg:max-w-3xl">
|
||||||
|
<div className="flex items-center justify-between gap-3">
|
||||||
|
<h3 className="eyebrow text-ink-2">{year ? t('stats.monthByMonth', { year }) : t('stats.last12')}</h3>
|
||||||
|
<select value={year} onChange={(e) => setYear(e.target.value)} className="field w-auto py-2 pe-8 text-sm" aria-label={t('stats.period')}>
|
||||||
|
<option value="">{t('stats.last12')}</option>
|
||||||
|
{years.map((y) => (
|
||||||
|
<option key={y} value={y}>
|
||||||
|
{y}
|
||||||
|
</option>
|
||||||
|
))}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Aperçu en direct */}
|
||||||
|
<div className="card mt-4 p-4">
|
||||||
|
<Columns
|
||||||
|
label={year ? t('stats.monthByMonth', { year }) : t('stats.last12')}
|
||||||
|
height={150}
|
||||||
|
bars={months.map((m) => ({
|
||||||
|
key: m.key,
|
||||||
|
axis: m.initial,
|
||||||
|
value: m.count,
|
||||||
|
hidden: hidden.has(m.key),
|
||||||
|
tip: hidden.has(m.key) ? `${m.label} : ${t('stats.monthHidden')}` : `${m.label} : ${t('stats.monthFinished', { count: m.count })}`,
|
||||||
|
}))}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<p className="mt-5 text-sm text-ink-2">{t('stats.hideMonthsHint')}</p>
|
||||||
|
|
||||||
|
{/* Une case par mois : cochée = affiché dans la courbe */}
|
||||||
|
<ul className="mt-3 grid grid-cols-2 gap-2 sm:grid-cols-3">
|
||||||
|
{months.map((m) => {
|
||||||
|
const shown = !hidden.has(m.key)
|
||||||
|
return (
|
||||||
|
<li key={m.key}>
|
||||||
|
<button
|
||||||
|
onClick={() => setShown(m.key, !shown)}
|
||||||
|
role="checkbox"
|
||||||
|
aria-checked={shown}
|
||||||
|
className={cx('flex w-full items-center gap-2.5 rounded-xl border px-3 py-2.5 text-start transition-colors', shown ? 'border-line' : 'border-dashed border-line-strong text-ink-3')}
|
||||||
|
>
|
||||||
|
<span className={cx('grid size-5 shrink-0 place-items-center rounded-md border', shown ? 'border-accent bg-accent-fill text-on-accent' : 'border-line-strong')}>
|
||||||
|
{shown && <Check size={13} strokeWidth={2.8} />}
|
||||||
|
</span>
|
||||||
|
<span className="min-w-0">
|
||||||
|
<span className="block truncate text-sm font-medium first-letter:uppercase">{label(m.key)}</span>
|
||||||
|
<span className="block truncate text-xs text-ink-3">
|
||||||
|
{t('stats.monthFinished', { count: m.count })}
|
||||||
|
{m.minutes ? ` · ${formatDuration(m.minutes)}` : ''}
|
||||||
|
</span>
|
||||||
|
</span>
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
{hidden.size > 0 && (
|
||||||
|
<button onClick={() => updateSettings({ statsHiddenMonths: undefined })} className="mt-5 text-sm font-medium text-ink-2">
|
||||||
|
{t('stats.showAllMonths')}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -1,40 +1,59 @@
|
|||||||
import { Check, Loader2, PenLine, Search, X } from 'lucide-react'
|
import { Check, Loader2, PenLine, Search, X } from 'lucide-react'
|
||||||
import { useEffect, useRef, useState } from 'react'
|
import { useEffect, useRef, useState, type ReactNode } 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 { searchAll, type SearchResult } from '../../lib/catalogApi'
|
import { searchAll, type SearchResult } from '../../lib/catalogApi'
|
||||||
|
import { searchProfiles, type ProfileCard } from '../../lib/cloud/social'
|
||||||
|
import { useEscape } from '../../lib/escape'
|
||||||
import { findFranchiseItem } from '../../lib/franchise'
|
import { findFranchiseItem } from '../../lib/franchise'
|
||||||
|
import { searchPeople, type PersonHit } from '../../lib/people'
|
||||||
import { useScrollLock } from '../../lib/scrollLock'
|
import { useScrollLock } from '../../lib/scrollLock'
|
||||||
|
import { cx } from '../../lib/utils'
|
||||||
import { useMedia } from '../../store'
|
import { useMedia } from '../../store'
|
||||||
import type { MediaItem } from '../../types'
|
import type { MediaItem } from '../../types'
|
||||||
|
import PersonRow from '../social/PersonRow'
|
||||||
|
import { useSocial } from '../social/SocialProvider'
|
||||||
|
|
||||||
|
type Tab = 'all' | 'titles' | 'people' | 'members'
|
||||||
|
|
||||||
|
/** Une recherche (titres, personnes ou membres) : résultats, chargement, erreur. */
|
||||||
|
interface Slot<T> {
|
||||||
|
items: T[]
|
||||||
|
loading: boolean
|
||||||
|
error?: string
|
||||||
|
}
|
||||||
|
const empty = <T,>(): Slot<T> => ({ items: [], loading: false })
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* « Ajouter » : on cherche le titre (films, séries et animes en une fois), puis on ouvre sa fiche pour le noter / l'ajouter.
|
* Recherche : titres (films, séries, animes), personnes (acteurs, réalisateurs, doubleurs) et membres, en une fois.
|
||||||
* Si le titre, ou une autre saison de la même série, est déjà dans la bibliothèque, on ouvre directement ma fiche.
|
* Un titre déjà dans la bibliothèque (ou une autre saison de la même série) ouvre directement ma fiche.
|
||||||
*/
|
*/
|
||||||
export default function AddTitle({
|
export default function AddTitle({
|
||||||
onClose,
|
onClose,
|
||||||
onPick,
|
onPick,
|
||||||
onOpenItem,
|
onOpenItem,
|
||||||
|
onOpenPerson,
|
||||||
onManual,
|
onManual,
|
||||||
onGoToSettings,
|
onGoToSettings,
|
||||||
}: {
|
}: {
|
||||||
onClose: () => void
|
onClose: () => void
|
||||||
onPick: (r: SearchResult) => void
|
onPick: (r: SearchResult) => void
|
||||||
onOpenItem: (item: MediaItem) => void
|
onOpenItem: (item: MediaItem) => void
|
||||||
|
onOpenPerson: (p: PersonHit) => void
|
||||||
onManual: (title: string) => void
|
onManual: (title: string) => void
|
||||||
onGoToSettings?: () => void
|
onGoToSettings?: () => void
|
||||||
}) {
|
}) {
|
||||||
const { items, settings } = useMedia()
|
const { items, settings } = useMedia()
|
||||||
|
const social = useSocial()
|
||||||
useScrollLock()
|
useScrollLock()
|
||||||
useEscape(onClose)
|
useEscape(onClose)
|
||||||
useBackToClose(onClose)
|
useBackToClose(onClose)
|
||||||
const hasKey = !!settings.tmdbKey?.trim()
|
const hasKey = !!settings.tmdbKey?.trim()
|
||||||
const [query, setQuery] = useState('')
|
const [query, setQuery] = useState('')
|
||||||
const [results, setResults] = useState<SearchResult[]>([])
|
const [tab, setTab] = useState<Tab>('all')
|
||||||
const [loading, setLoading] = useState(false)
|
const [titles, setTitles] = useState<Slot<SearchResult>>(empty)
|
||||||
const [error, setError] = useState<string>()
|
const [people, setPeople] = useState<Slot<PersonHit>>(empty)
|
||||||
|
const [members, setMembers] = useState<Slot<ProfileCard>>(empty)
|
||||||
const request = useRef(0)
|
const request = useRef(0)
|
||||||
const inLibrary = (r: SearchResult) =>
|
const inLibrary = (r: SearchResult) =>
|
||||||
items.find((i) => i.externalId === r.externalId) ?? findFranchiseItem(items, [r.title, r.originalTitle, ...(r.altTitles ?? [])], { type: r.typeGuess })
|
items.find((i) => i.externalId === r.externalId) ?? findFranchiseItem(items, [r.title, r.originalTitle, ...(r.altTitles ?? [])], { type: r.typeGuess })
|
||||||
@@ -43,77 +62,41 @@ export default function AddTitle({
|
|||||||
const q = query.trim()
|
const q = query.trim()
|
||||||
// Toute réponse d'une recherche précédente devient caduque
|
// Toute réponse d'une recherche précédente devient caduque
|
||||||
const id = ++request.current
|
const id = ++request.current
|
||||||
setError(undefined)
|
|
||||||
if (q.length < 2) {
|
if (q.length < 2) {
|
||||||
setResults([])
|
setTitles(empty)
|
||||||
setLoading(false)
|
setPeople(empty)
|
||||||
|
setMembers(empty)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
setLoading(true)
|
setTitles((s) => ({ ...s, loading: true, error: undefined }))
|
||||||
const timer = setTimeout(async () => {
|
setPeople((s) => ({ ...s, loading: true, error: undefined }))
|
||||||
try {
|
setMembers((s) => ({ ...s, loading: social.enabled, error: undefined }))
|
||||||
const res = await searchAll(q, hasKey ? settings.tmdbKey : undefined)
|
const errorText = (e: unknown) => (navigator.onLine ? (e as Error).message : t('search.offline'))
|
||||||
if (id === request.current) setResults(res)
|
const run = <T,>(p: Promise<T[]>, set: (s: Slot<T>) => void) =>
|
||||||
} catch (e) {
|
p.then(
|
||||||
if (id === request.current) {
|
(list) => id === request.current && set({ items: list, loading: false }),
|
||||||
setResults([])
|
(e) => id === request.current && set({ items: [], loading: false, error: errorText(e) }),
|
||||||
setError(navigator.onLine ? (e as Error).message : t('search.offline'))
|
)
|
||||||
}
|
const timer = setTimeout(() => {
|
||||||
} finally {
|
void run(searchAll(q, hasKey ? settings.tmdbKey : undefined), setTitles)
|
||||||
if (id === request.current) setLoading(false)
|
void run(searchPeople(q, hasKey ? settings.tmdbKey : undefined), setPeople)
|
||||||
}
|
if (social.enabled) void run(searchProfiles(q), setMembers)
|
||||||
}, 350)
|
}, 350)
|
||||||
return () => clearTimeout(timer)
|
return () => clearTimeout(timer)
|
||||||
}, [query, hasKey, settings.tmdbKey])
|
}, [query, hasKey, settings.tmdbKey, social.enabled])
|
||||||
|
|
||||||
const searched = query.trim().length >= 2
|
const searched = query.trim().length >= 2
|
||||||
|
const loading = titles.loading || people.loading || members.loading
|
||||||
|
const tabs: { id: Tab; label: string; n?: number }[] = [
|
||||||
|
{ id: 'all', label: t('search.tabAll') },
|
||||||
|
{ id: 'titles', label: t('search.tabTitles'), n: searched ? titles.items.length : undefined },
|
||||||
|
{ id: 'people', label: t('search.tabPeople'), n: searched ? people.items.length : undefined },
|
||||||
|
...(social.enabled ? [{ id: 'members' as const, label: t('search.tabMembers'), n: searched ? members.items.length : undefined }] : []),
|
||||||
|
]
|
||||||
|
|
||||||
return (
|
const titleList = (list: SearchResult[]) => (
|
||||||
<div className="sheet sheet-in" role="dialog" aria-modal="true" aria-label={t('title.addTitle')}>
|
|
||||||
<header className="safe-top border-b border-line">
|
|
||||||
<div className="mx-auto max-w-2xl px-3 pb-3 pt-2.5 lg:max-w-none lg:px-10">
|
|
||||||
<div className="flex items-center gap-2">
|
|
||||||
<button onClick={onClose} className="grid size-10 shrink-0 place-items-center rounded-full text-ink-2" aria-label={t('common.close')}>
|
|
||||||
<X size={22} />
|
|
||||||
</button>
|
|
||||||
<h2 className="min-w-0 flex-1 truncate text-center text-base font-semibold">{t('title.addTitle')}</h2>
|
|
||||||
<span className="size-10 shrink-0" />
|
|
||||||
</div>
|
|
||||||
<div className="relative mt-2">
|
|
||||||
<Search size={18} className="pointer-events-none absolute start-3.5 top-1/2 -translate-y-1/2 text-ink-3" />
|
|
||||||
<input
|
|
||||||
type="search"
|
|
||||||
value={query}
|
|
||||||
onChange={(e) => setQuery(e.target.value)}
|
|
||||||
placeholder={t('title.searchPh')}
|
|
||||||
className="field ps-10"
|
|
||||||
enterKeyHint="search"
|
|
||||||
autoComplete="off"
|
|
||||||
autoFocus
|
|
||||||
/>
|
|
||||||
{loading && <Loader2 size={17} className="absolute end-3.5 top-1/2 -translate-y-1/2 animate-spin text-ink-3" />}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</header>
|
|
||||||
|
|
||||||
<div className="sheet-scroll">
|
|
||||||
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-2 lg:max-w-none lg:px-10">
|
|
||||||
{!hasKey && (
|
|
||||||
<div className="mt-4 rounded-2xl border border-dashed border-line-strong p-4 text-sm text-ink-2">
|
|
||||||
{t('search.animeOnly')}
|
|
||||||
{onGoToSettings && (
|
|
||||||
<button onClick={onGoToSettings} className="mt-2 block font-medium text-ink">
|
|
||||||
{t('search.openSettings')} <span className="text-accent">→</span>
|
|
||||||
</button>
|
|
||||||
)}
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
|
|
||||||
{error && <p className="mt-4 text-sm text-accent">{error}</p>}
|
|
||||||
|
|
||||||
{results.length > 0 && (
|
|
||||||
<ul className="divide-y divide-line lg:grid lg:grid-cols-2 lg:gap-x-10 lg:divide-y-0 xl:grid-cols-3">
|
<ul className="divide-y divide-line lg:grid lg:grid-cols-2 lg:gap-x-10 lg:divide-y-0 xl:grid-cols-3">
|
||||||
{results.map((r) => {
|
{list.map((r) => {
|
||||||
const mine = inLibrary(r)
|
const mine = inLibrary(r)
|
||||||
return (
|
return (
|
||||||
<li key={r.externalId}>
|
<li key={r.externalId}>
|
||||||
@@ -133,18 +116,149 @@ export default function AddTitle({
|
|||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
</span>
|
</span>
|
||||||
<span className="shrink-0 text-accent">→</span>
|
<span className="shrink-0 text-accent rtl:-scale-x-100">→</span>
|
||||||
</button>
|
</button>
|
||||||
</li>
|
</li>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
</ul>
|
</ul>
|
||||||
|
)
|
||||||
|
|
||||||
|
const personList = (list: PersonHit[]) => (
|
||||||
|
<ul className="divide-y divide-line lg:grid lg:grid-cols-2 lg:gap-x-10 lg:divide-y-0 xl:grid-cols-3">
|
||||||
|
{list.map((p) => (
|
||||||
|
<li key={p.id}>
|
||||||
|
<button onClick={() => onOpenPerson(p)} className="flex w-full items-center gap-3 py-2.5 text-start active:bg-surface lg:border-b lg:border-line">
|
||||||
|
{p.photo ? (
|
||||||
|
<img src={p.photo} alt="" loading="lazy" className="size-14 shrink-0 rounded-full border border-line bg-surface-2 object-cover" />
|
||||||
|
) : (
|
||||||
|
<span className="grid size-14 shrink-0 place-items-center rounded-full border border-line bg-surface-2 text-lg font-semibold text-ink-3">{p.name.charAt(0)}</span>
|
||||||
|
)}
|
||||||
|
<span className="min-w-0 flex-1">
|
||||||
|
<span className="block truncate font-semibold">{p.name}</span>
|
||||||
|
{p.department && <span className="block text-[11px] uppercase tracking-wide text-ink-3">{p.department}</span>}
|
||||||
|
{p.knownFor.length > 0 && <span className="mt-0.5 block truncate text-xs text-ink-2">{p.knownFor.join(' · ')}</span>}
|
||||||
|
</span>
|
||||||
|
<span className="shrink-0 text-accent rtl:-scale-x-100">→</span>
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
)
|
||||||
|
|
||||||
|
const memberList = (list: ProfileCard[]) => (
|
||||||
|
<div className="divide-y divide-line lg:grid lg:grid-cols-2 lg:gap-x-10 lg:divide-y-0 xl:grid-cols-3">
|
||||||
|
{list.map((m) => (
|
||||||
|
<div key={m.id} className="lg:border-b lg:border-line">
|
||||||
|
{/* Les profils s'ouvrent sous les fenêtres de l'app : on referme la recherche pour que le profil soit visible */}
|
||||||
|
<PersonRow person={m} onOpen={onClose} />
|
||||||
|
</div>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
|
const section = (label: string, body: ReactNode, more?: () => void) => (
|
||||||
|
<section className="mt-6">
|
||||||
|
<div className="mb-1 flex items-center justify-between">
|
||||||
|
<h3 className="eyebrow text-ink-2">{label}</h3>
|
||||||
|
{more && (
|
||||||
|
<button onClick={more} className="text-xs font-medium text-ink-2">
|
||||||
|
{t('search.seeAll')} <span className="text-accent rtl:-scale-x-100">→</span>
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
{body}
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
|
||||||
|
const errorLine = (e?: string) => e && <p className="mt-4 text-sm text-accent">{e}</p>
|
||||||
|
const none = (text: string) => <p className="mt-6 text-center text-sm text-ink-3">{text}</p>
|
||||||
|
const nothingAtAll = searched && !loading && !titles.items.length && !people.items.length && !members.items.length
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="sheet sheet-in" role="dialog" aria-modal="true" aria-label={t('search.title')}>
|
||||||
|
<header className="safe-top border-b border-line">
|
||||||
|
<div className="mx-auto max-w-2xl px-3 pb-3 pt-2.5 lg:max-w-none lg:px-10">
|
||||||
|
<div className="flex items-center gap-2">
|
||||||
|
<button onClick={onClose} className="grid size-10 shrink-0 place-items-center rounded-full text-ink-2" aria-label={t('common.close')}>
|
||||||
|
<X size={22} />
|
||||||
|
</button>
|
||||||
|
<h2 className="min-w-0 flex-1 truncate text-center text-base font-semibold">{t('search.title')}</h2>
|
||||||
|
<span className="size-10 shrink-0" />
|
||||||
|
</div>
|
||||||
|
<div className="relative mt-2">
|
||||||
|
<Search size={18} className="pointer-events-none absolute start-3.5 top-1/2 -translate-y-1/2 text-ink-3" />
|
||||||
|
<input
|
||||||
|
type="search"
|
||||||
|
value={query}
|
||||||
|
onChange={(e) => setQuery(e.target.value)}
|
||||||
|
placeholder={social.enabled ? t('search.placeholder') : t('search.placeholderNoMembers')}
|
||||||
|
aria-label={t('search.title')}
|
||||||
|
className="field ps-10"
|
||||||
|
enterKeyHint="search"
|
||||||
|
autoComplete="off"
|
||||||
|
autoFocus
|
||||||
|
/>
|
||||||
|
{loading && <Loader2 size={17} className="absolute end-3.5 top-1/2 -translate-y-1/2 animate-spin text-ink-3" />}
|
||||||
|
</div>
|
||||||
|
<div className="no-scrollbar -mx-1 mt-3 flex gap-2 overflow-x-auto px-1" role="tablist">
|
||||||
|
{tabs.map((x) => (
|
||||||
|
<button key={x.id} role="tab" aria-selected={tab === x.id} onClick={() => setTab(x.id)} className={cx('chip shrink-0', tab === x.id && 'chip-on')}>
|
||||||
|
{x.label}
|
||||||
|
{x.n !== undefined && x.n > 0 && <span className="opacity-60">{x.n}</span>}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div className="sheet-scroll">
|
||||||
|
<div className="mx-auto max-w-2xl px-4 pb-[calc(10rem+env(safe-area-inset-bottom))] pt-2 lg:max-w-none lg:px-10">
|
||||||
|
{!hasKey && (tab === 'all' || tab === 'titles' || tab === 'people') && (
|
||||||
|
<div className="mt-4 rounded-2xl border border-dashed border-line-strong p-4 text-sm text-ink-2">
|
||||||
|
{t('search.animeOnly')}
|
||||||
|
{onGoToSettings && (
|
||||||
|
<button onClick={onGoToSettings} className="mt-2 block font-medium text-ink">
|
||||||
|
{t('search.openSettings')} <span className="text-accent">→</span>
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{!loading && !error && searched && results.length === 0 && <p className="mt-6 text-center text-sm text-ink-3">{t('title.noResults')}</p>}
|
{!searched && <p className="mt-8 text-center text-sm text-ink-3">{social.enabled ? t('search.hint') : t('search.hintNoMembers')}</p>}
|
||||||
|
|
||||||
{!searched && <p className="mt-8 text-center text-sm text-ink-3">{t('title.searchHint')}</p>}
|
{searched && tab === 'all' && (
|
||||||
|
<>
|
||||||
|
{nothingAtAll && none(t('title.noResults'))}
|
||||||
|
{people.items.length > 0 && section(t('search.tabPeople'), personList(people.items.slice(0, 3)), people.items.length > 3 ? () => setTab('people') : undefined)}
|
||||||
|
{members.items.length > 0 && section(t('search.tabMembers'), memberList(members.items.slice(0, 3)), members.items.length > 3 ? () => setTab('members') : undefined)}
|
||||||
|
{titles.items.length > 0 && section(t('search.tabTitles'), titleList(titles.items))}
|
||||||
|
{errorLine(titles.error)}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
{searched && tab === 'titles' && (
|
||||||
|
<>
|
||||||
|
{errorLine(titles.error)}
|
||||||
|
{titleList(titles.items)}
|
||||||
|
{!titles.loading && !titles.error && titles.items.length === 0 && none(t('title.noResults'))}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
{searched && tab === 'people' && (
|
||||||
|
<>
|
||||||
|
{errorLine(people.error)}
|
||||||
|
{personList(people.items)}
|
||||||
|
{!people.loading && !people.error && people.items.length === 0 && none(t('search.noPeople'))}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
{searched && tab === 'members' && (
|
||||||
|
<>
|
||||||
|
{errorLine(members.error)}
|
||||||
|
{memberList(members.items)}
|
||||||
|
{!members.loading && !members.error && members.items.length === 0 && none(t('search.noMembers'))}
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{(tab === 'all' || tab === 'titles') && (
|
||||||
<button onClick={() => onManual(query.trim())} className="mt-8 flex w-full items-center gap-3 rounded-2xl border border-dashed border-line-strong px-4 py-3.5 text-start">
|
<button onClick={() => onManual(query.trim())} className="mt-8 flex w-full items-center gap-3 rounded-2xl border border-dashed border-line-strong px-4 py-3.5 text-start">
|
||||||
<PenLine size={18} className="shrink-0 text-accent" />
|
<PenLine size={18} className="shrink-0 text-accent" />
|
||||||
<span>
|
<span>
|
||||||
@@ -152,6 +266,7 @@ export default function AddTitle({
|
|||||||
<span className="block text-xs text-ink-3">{t('title.manualHint')}</span>
|
<span className="block text-xs text-ink-3">{t('title.manualHint')}</span>
|
||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
)}
|
||||||
|
|
||||||
<p className="mt-6 text-center text-[11px] leading-relaxed text-ink-3">{t('search.privacy', { source: hasKey ? 'TMDB / AniList' : 'AniList' })}</p>
|
<p className="mt-6 text-center text-[11px] leading-relaxed text-ink-3">{t('search.privacy', { source: hasKey ? 'TMDB / AniList' : 'AniList' })}</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import { canonicalGenre, canonicalSubtype, genreLabel, genreSuggestions as defau
|
|||||||
import { fileToPosterDataURL } from '../../lib/image'
|
import { fileToPosterDataURL } from '../../lib/image'
|
||||||
import { useScrollLock } from '../../lib/scrollLock'
|
import { useScrollLock } from '../../lib/scrollLock'
|
||||||
import { cx } from '../../lib/utils'
|
import { cx } 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 TagInput from '../TagInput'
|
import TagInput from '../TagInput'
|
||||||
@@ -101,7 +101,7 @@ export default function EditDetails({
|
|||||||
onCreated?.(created)
|
onCreated?.(created)
|
||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setSaveError((e as Error).message)
|
if (!(e instanceof GuestError)) setSaveError((e as Error).message)
|
||||||
} finally {
|
} finally {
|
||||||
setSaving(false)
|
setSaving(false)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,111 @@
|
|||||||
|
import { Check, RotateCcw } from 'lucide-react'
|
||||||
|
import { useState } from 'react'
|
||||||
|
import { t } from '../../i18n'
|
||||||
|
import { episodeCap } from '../../lib/franchise'
|
||||||
|
import { addRewatchDate, canTrackRewatch, MAX_REWATCHES, startRewatch, stopRewatch, viewCount } from '../../lib/rewatch'
|
||||||
|
import { formatDate, todayISO } from '../../lib/utils'
|
||||||
|
import type { MediaInput, MediaItem } from '../../types'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* « Revoir » (titre terminé) : un film se note revu à une date ; une série se revoit épisode par épisode
|
||||||
|
* (progression à part, le premier visionnage ne bouge pas) ou se note revue d'un coup.
|
||||||
|
*/
|
||||||
|
export default function RewatchPanel({
|
||||||
|
item,
|
||||||
|
justFinished,
|
||||||
|
onChange,
|
||||||
|
onUndoable,
|
||||||
|
}: {
|
||||||
|
item: MediaItem
|
||||||
|
/** Le revisionnage vient de se terminer (dernier épisode coché) */
|
||||||
|
justFinished: boolean
|
||||||
|
onChange: (patch: Partial<MediaInput>) => void
|
||||||
|
/** Changement annulable (« Annuler » dans le toast) */
|
||||||
|
onUndoable: (patch: Partial<MediaInput>, message: string) => void
|
||||||
|
}) {
|
||||||
|
const [adding, setAdding] = useState(false)
|
||||||
|
const [date, setDate] = useState(todayISO())
|
||||||
|
const views = viewCount(item)
|
||||||
|
const full = (item.rewatchDates?.length ?? 0) >= MAX_REWATCHES
|
||||||
|
const trackable = canTrackRewatch(item)
|
||||||
|
const cap = episodeCap(item)
|
||||||
|
|
||||||
|
const addDate = () => {
|
||||||
|
if (!date || date > todayISO() || full) return
|
||||||
|
onUndoable(addRewatchDate(item, date), t('rewatch.added', { title: item.title }))
|
||||||
|
setAdding(false)
|
||||||
|
setDate(todayISO())
|
||||||
|
}
|
||||||
|
|
||||||
|
const dateForm = (
|
||||||
|
<div className="flex items-end gap-2">
|
||||||
|
<label className="block min-w-0 flex-1">
|
||||||
|
<span className="label">{t('form.rewatchDate')}</span>
|
||||||
|
<input className="field" type="date" value={date} max={todayISO()} onChange={(e) => setDate(e.target.value)} />
|
||||||
|
</label>
|
||||||
|
<button onClick={addDate} disabled={!date || full} className="btn btn-primary shrink-0 px-4 py-2.5 text-sm">
|
||||||
|
<Check size={16} /> {t('rewatch.add')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="card mx-4 mt-4 p-4" aria-label={t('rewatch.title')}>
|
||||||
|
<div className="mb-3 flex items-baseline justify-between gap-3">
|
||||||
|
<h3 className="eyebrow text-ink-2">{t('rewatch.title')}</h3>
|
||||||
|
{views > 1 && <span className="text-xs font-medium text-ink-2">{t('rewatch.views', { count: views })}</span>}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{justFinished && !item.rewatch && (
|
||||||
|
<p className="mb-3 flex items-center gap-2 rounded-xl bg-surface-2 px-3 py-2.5 text-sm" role="status">
|
||||||
|
<Check size={16} className="shrink-0 text-accent" /> {t('rewatch.finished', { count: views })}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{item.rewatch ? (
|
||||||
|
<div>
|
||||||
|
<p className="text-sm">
|
||||||
|
<span className="font-semibold text-accent">{t('rewatch.badge')}</span>
|
||||||
|
<span className="text-ink-3"> · {t('rewatch.since', { date: formatDate(item.rewatch.startDate) })}</span>
|
||||||
|
</p>
|
||||||
|
{cap ? (
|
||||||
|
<>
|
||||||
|
<p className="mt-1 text-xs text-ink-3">{t('rewatch.progress', { seen: item.rewatch.episodes, total: cap })}</p>
|
||||||
|
<div className="mt-2 h-1 rounded-full bg-surface-2">
|
||||||
|
<div className="h-full rounded-full bg-accent" style={{ width: `${Math.min(100, (item.rewatch.episodes / cap) * 100)}%` }} />
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
) : null}
|
||||||
|
<p className="mt-3 text-xs text-ink-3">{t('rewatch.trackingHint')}</p>
|
||||||
|
<div className="mt-3 flex flex-wrap gap-2">
|
||||||
|
<button onClick={() => onUndoable({ ...stopRewatch(), ...addRewatchDate(item) }, t('rewatch.added', { title: item.title }))} className="btn btn-ghost px-4 py-2 text-sm">
|
||||||
|
<Check size={16} /> {t('rewatch.markDone')}
|
||||||
|
</button>
|
||||||
|
<button onClick={() => onUndoable(stopRewatch(), t('rewatch.stopped', { title: item.title }))} className="px-3 py-2 text-sm font-medium text-ink-3">
|
||||||
|
{t('rewatch.stop')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : trackable ? (
|
||||||
|
<div>
|
||||||
|
<button onClick={() => onChange(startRewatch())} className="btn btn-primary w-full py-3">
|
||||||
|
<RotateCcw size={17} /> {t('rewatch.start')}
|
||||||
|
</button>
|
||||||
|
<p className="mt-2 text-xs text-ink-3">{t('rewatch.startHint')}</p>
|
||||||
|
{adding ? (
|
||||||
|
<div className="mt-4">{dateForm}</div>
|
||||||
|
) : (
|
||||||
|
<button onClick={() => setAdding(true)} className="mt-3 text-sm font-medium text-ink-2">
|
||||||
|
{t('rewatch.alreadyDone')}
|
||||||
|
</button>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
<div>
|
||||||
|
<p className="mb-3 text-xs text-ink-3">{t('form.rewatchHint')}</p>
|
||||||
|
{dateForm}
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,182 @@
|
|||||||
|
import { Check, Pencil } from 'lucide-react'
|
||||||
|
import { useEffect, useRef, useState } from 'react'
|
||||||
|
import { t } from '../../i18n'
|
||||||
|
import { episodesBeforeSeason } from '../../lib/franchise'
|
||||||
|
import { seasonsAverage } from '../../lib/seasons'
|
||||||
|
import { cx, formatRating } from '../../lib/utils'
|
||||||
|
import type { MediaItem, RatingScale, SeasonRating } from '../../types'
|
||||||
|
import { RatingInput } from '../Rating'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* « Mes saisons » : une note et un avis par saison.
|
||||||
|
* Une saison se note dès qu'on l'a commencée ; quand toute la série est vue, la note finale
|
||||||
|
* devient la moyenne des saisons notées (calculée dans le store).
|
||||||
|
*/
|
||||||
|
export default function SeasonRatings({
|
||||||
|
item,
|
||||||
|
scale,
|
||||||
|
highlight,
|
||||||
|
onChange,
|
||||||
|
}: {
|
||||||
|
item: MediaItem
|
||||||
|
scale: RatingScale
|
||||||
|
/** Saison à mettre en avant (on vient de la finir) */
|
||||||
|
highlight?: number
|
||||||
|
onChange: (seasonRatings: MediaItem['seasonRatings']) => void
|
||||||
|
}) {
|
||||||
|
const seasons = item.seasons ?? []
|
||||||
|
const ratings: Record<string, SeasonRating> = item.seasonRatings ?? {}
|
||||||
|
const avg = seasonsAverage(ratings, scale)
|
||||||
|
|
||||||
|
const set = (n: number, patch: Partial<SeasonRating>) => {
|
||||||
|
const key = String(n)
|
||||||
|
const next: Record<string, SeasonRating> = { ...ratings, [key]: { ...ratings[key], ...patch } }
|
||||||
|
const cur = next[key]
|
||||||
|
if (cur.rating == null && !cur.notes) delete next[key]
|
||||||
|
onChange(Object.keys(next).length ? next : undefined)
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<section className="mx-4 mt-6" aria-label={t('seasons.title')}>
|
||||||
|
<div className="mb-2 flex items-baseline justify-between gap-3">
|
||||||
|
<h3 className="eyebrow text-ink-2">{t('seasons.title')}</h3>
|
||||||
|
{avg != null && (
|
||||||
|
<span className="text-xs text-ink-3">
|
||||||
|
{t('seasons.average')} <span className="font-semibold text-ink">{formatRating(avg, scale)}</span>
|
||||||
|
</span>
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
<p className="mb-3 text-xs leading-relaxed text-ink-3">{t('seasons.hint')}</p>
|
||||||
|
<ul className="space-y-2">
|
||||||
|
{seasons.map((size, k) => {
|
||||||
|
const n = k + 1
|
||||||
|
const before = episodesBeforeSeason(seasons, n)
|
||||||
|
const seen = Math.max(0, Math.min(size, item.episodesWatched - before))
|
||||||
|
return (
|
||||||
|
<SeasonRow
|
||||||
|
key={n}
|
||||||
|
n={n}
|
||||||
|
size={size}
|
||||||
|
seen={seen}
|
||||||
|
value={ratings[String(n)]}
|
||||||
|
scale={scale}
|
||||||
|
highlight={highlight === n}
|
||||||
|
onChange={(patch) => set(n, patch)}
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
})}
|
||||||
|
</ul>
|
||||||
|
</section>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function SeasonRow({
|
||||||
|
n,
|
||||||
|
size,
|
||||||
|
seen,
|
||||||
|
value,
|
||||||
|
scale,
|
||||||
|
highlight,
|
||||||
|
onChange,
|
||||||
|
}: {
|
||||||
|
n: number
|
||||||
|
size: number
|
||||||
|
seen: number
|
||||||
|
value?: SeasonRating
|
||||||
|
scale: RatingScale
|
||||||
|
highlight: boolean
|
||||||
|
onChange: (patch: Partial<SeasonRating>) => void
|
||||||
|
}) {
|
||||||
|
const started = seen > 0
|
||||||
|
const done = seen >= size
|
||||||
|
const [writing, setWriting] = useState(false)
|
||||||
|
const [draft, setDraft] = useState(value?.notes ?? '')
|
||||||
|
const [spoiler, setSpoiler] = useState(!!value?.spoiler)
|
||||||
|
const ref = useRef<HTMLLIElement>(null)
|
||||||
|
|
||||||
|
// Saison qu'on vient de finir : on l'amène à l'écran
|
||||||
|
useEffect(() => {
|
||||||
|
if (highlight) ref.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
||||||
|
}, [highlight])
|
||||||
|
|
||||||
|
return (
|
||||||
|
<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="min-w-0">
|
||||||
|
<p className="font-semibold">{t('seasons.season', { n })}</p>
|
||||||
|
<p className={cx('text-xs', done ? 'text-ink-2' : 'text-ink-3')}>
|
||||||
|
{done ? (
|
||||||
|
<span className="inline-flex items-center gap-1">
|
||||||
|
<Check size={12} className="text-accent" /> {t('seasons.seen')}
|
||||||
|
</span>
|
||||||
|
) : started ? (
|
||||||
|
t('seasons.progress', { seen, size })
|
||||||
|
) : (
|
||||||
|
t('seasons.notStarted')
|
||||||
|
)}
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
{highlight && !value?.rating && <span className="eyebrow shrink-0 text-accent">{t('seasons.rateNow')}</span>}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{started && (
|
||||||
|
<div className="mt-2.5">
|
||||||
|
<RatingInput value={value?.rating} onChange={(rating) => onChange({ rating })} scale={scale} size="sm" label={t('seasons.season', { n })} />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{started &&
|
||||||
|
(writing ? (
|
||||||
|
<div className="mt-3">
|
||||||
|
<textarea
|
||||||
|
value={draft}
|
||||||
|
onChange={(e) => setDraft(e.target.value)}
|
||||||
|
maxLength={5000}
|
||||||
|
rows={4}
|
||||||
|
autoFocus
|
||||||
|
placeholder={t('seasons.reviewPh', { n })}
|
||||||
|
className="field resize-y text-sm"
|
||||||
|
/>
|
||||||
|
<label className="mt-2 flex items-center gap-2 text-xs text-ink-2">
|
||||||
|
<input type="checkbox" checked={spoiler} onChange={(e) => setSpoiler(e.target.checked)} className="accent-[var(--color-accent)]" />
|
||||||
|
{t('spoiler.checkbox')}
|
||||||
|
</label>
|
||||||
|
<div className="mt-2.5 flex justify-end gap-2">
|
||||||
|
<button
|
||||||
|
onClick={() => {
|
||||||
|
setDraft(value?.notes ?? '')
|
||||||
|
setWriting(false)
|
||||||
|
}}
|
||||||
|
className="btn btn-ghost px-4 py-2 text-sm"
|
||||||
|
>
|
||||||
|
{t('common.cancel')}
|
||||||
|
</button>
|
||||||
|
<button
|
||||||
|
onClick={() => {
|
||||||
|
const notes = draft.trim() || undefined
|
||||||
|
onChange({ notes, spoiler: notes && spoiler ? true : undefined })
|
||||||
|
setWriting(false)
|
||||||
|
}}
|
||||||
|
className="btn btn-primary px-4 py-2 text-sm"
|
||||||
|
>
|
||||||
|
{t('common.save')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : value?.notes ? (
|
||||||
|
<button onClick={() => setWriting(true)} className="mt-3 block w-full text-start">
|
||||||
|
<span className="flex items-center gap-1.5 text-xs text-ink-3">
|
||||||
|
{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>}
|
||||||
|
<Pencil size={11} />
|
||||||
|
</span>
|
||||||
|
<p className="mt-1 line-clamp-4 whitespace-pre-line text-sm leading-relaxed">{value.notes}</p>
|
||||||
|
</button>
|
||||||
|
) : (
|
||||||
|
<button onClick={() => setWriting(true)} className="mt-2.5 inline-flex items-center gap-1.5 text-xs font-medium text-ink-2">
|
||||||
|
<Pencil size={12} /> {t('seasons.writeReview')}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
|
</li>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -14,7 +14,7 @@ import { useScrollLock } from '../../lib/scrollLock'
|
|||||||
import { backdropSrcSet, tmdbSized } from '../../lib/tmdbImage'
|
import { backdropSrcSet, tmdbSized } from '../../lib/tmdbImage'
|
||||||
import { renderItemCard, slug } from '../../lib/shareCard'
|
import { renderItemCard, slug } from '../../lib/shareCard'
|
||||||
import { cx, formatDate, formatDuration, formatRating, todayISO } from '../../lib/utils'
|
import { cx, formatDate, formatDuration, formatRating, todayISO } from '../../lib/utils'
|
||||||
import { useMedia } from '../../store'
|
import { GuestError, useMedia } from '../../store'
|
||||||
import { allTags, cleanTag } from '../../lib/bulk'
|
import { allTags, cleanTag } from '../../lib/bulk'
|
||||||
import { useLibraryActions } from '../library/useLibraryActions'
|
import { useLibraryActions } from '../library/useLibraryActions'
|
||||||
import TagInput from '../TagInput'
|
import TagInput from '../TagInput'
|
||||||
@@ -29,6 +29,10 @@ import SharePreview from '../SharePreview'
|
|||||||
import EditDetails from './EditDetails'
|
import EditDetails from './EditDetails'
|
||||||
import ReviewEditor from './ReviewEditor'
|
import ReviewEditor from './ReviewEditor'
|
||||||
import WhereToWatch from './WhereToWatch'
|
import WhereToWatch from './WhereToWatch'
|
||||||
|
import SeasonRatings from './SeasonRatings'
|
||||||
|
import RewatchPanel from './RewatchPanel'
|
||||||
|
import { progressView, rewatchEpisodesPatch } from '../../lib/rewatch'
|
||||||
|
import { completionOf, hasSeasons, seasonsAverage, type Completion } from '../../lib/seasons'
|
||||||
import ReviewComments from '../social/ReviewComments'
|
import ReviewComments from '../social/ReviewComments'
|
||||||
import SharedListPicker from '../social/SharedListPicker'
|
import SharedListPicker from '../social/SharedListPicker'
|
||||||
|
|
||||||
@@ -42,13 +46,17 @@ interface Props {
|
|||||||
seed?: SearchResult
|
seed?: SearchResult
|
||||||
onClose: () => void
|
onClose: () => void
|
||||||
onGoToSettings?: () => void
|
onGoToSettings?: () => void
|
||||||
|
/** Ouvre la page d'un acteur / réalisateur (sa filmographie) */
|
||||||
|
onOpenPerson?: (p: { id: string; name?: string; photo?: string }) => void
|
||||||
|
/** Ouverte après un +1 qui termine une saison (ou la série) : on amène l'utilisateur à la note */
|
||||||
|
focus?: Completion
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fiche d'un titre, façon Letterboxd : tout se fait ici, et chaque geste est enregistré tout de suite.
|
* Fiche d'un titre, façon Letterboxd : tout se fait ici, et chaque geste est enregistré tout de suite.
|
||||||
* Vu / En cours / À voir, note, coup de cœur, avis, épisodes, casting et note moyenne du public.
|
* Vu / En cours / À voir, note, coup de cœur, avis, épisodes, casting et note moyenne du public.
|
||||||
*/
|
*/
|
||||||
export default function TitleSheet({ item: initial, seed, onClose, onGoToSettings }: Props) {
|
export default function TitleSheet({ item: initial, seed, onClose, onGoToSettings, onOpenPerson, focus: initialFocus }: Props) {
|
||||||
const { items, settings, add, update, lists, patchMany } = useMedia()
|
const { items, settings, add, update, lists, patchMany } = useMedia()
|
||||||
const actions = useLibraryActions()
|
const actions = useLibraryActions()
|
||||||
const social = useSocial()
|
const social = useSocial()
|
||||||
@@ -169,7 +177,8 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
pendingRef.current = {}
|
pendingRef.current = {}
|
||||||
if (Object.keys(pending).length) await update(created.id, pending)
|
if (Object.keys(pending).length) await update(created.id, pending)
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setToast((e as Error).message)
|
// Mode découverte : la demande de compte est déjà ouverte
|
||||||
|
if (!(e instanceof GuestError)) setToast((e as Error).message)
|
||||||
} finally {
|
} finally {
|
||||||
addingRef.current = false
|
addingRef.current = false
|
||||||
setBusy(false)
|
setBusy(false)
|
||||||
@@ -219,9 +228,25 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** Nouveaux épisodes vus : le statut et les dates suivent (comme la liste d'épisodes). */
|
/** Nouveaux épisodes vus : le statut et les dates suivent (comme la liste d'épisodes). */
|
||||||
|
// Saison (ou série) qu'on vient de finir : on montre où la noter
|
||||||
|
const [focus, setFocus] = useState<Completion | undefined>(initialFocus)
|
||||||
|
const ratingRef = useRef<HTMLDivElement>(null)
|
||||||
|
useEffect(() => {
|
||||||
|
if (focus && 'final' in focus) ratingRef.current?.scrollIntoView({ behavior: 'smooth', block: 'center' })
|
||||||
|
}, [focus])
|
||||||
|
|
||||||
|
// Revisionnage qui vient de se terminer (dernier épisode coché ici)
|
||||||
|
const [rewatchDone, setRewatchDone] = useState(false)
|
||||||
const setEpisodes = (n: number, season?: number) => {
|
const setEpisodes = (n: number, season?: number) => {
|
||||||
if (!item) return
|
if (!item) return
|
||||||
void update(item.id, episodesPatch(item, n, season))
|
// Revisionnage : sa propre progression, le premier visionnage reste tel quel
|
||||||
|
if (item.rewatch) {
|
||||||
|
const { patch, finished } = rewatchEpisodesPatch(item, n)
|
||||||
|
void update(item.id, patch).then(() => finished && setRewatchDone(true))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const done = completionOf(item, item.episodesWatched, n)
|
||||||
|
void update(item.id, episodesPatch(item, n, season)).then(() => done && setFocus(done))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Épisodes déjà sortis (fiche suivie) : on ne coche pas un épisode à venir
|
// Épisodes déjà sortis (fiche suivie) : on ne coche pas un épisode à venir
|
||||||
@@ -229,16 +254,18 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
const airingRef = item ? { id: item.id, type: item.type, externalId: item.externalId } : undefined
|
const airingRef = item ? { id: item.id, type: item.type, externalId: item.externalId } : undefined
|
||||||
const aired = airingRef ? airedCount(airingRef, airingCache) : undefined
|
const aired = airingRef ? airedCount(airingRef, airingCache) : undefined
|
||||||
/** Bouton principal des épisodes : « J'ai vu S2 · É3 », « À jour », « Tout vu »… */
|
/** Bouton principal des épisodes : « J'ai vu S2 · É3 », « À jour », « Tout vu »… */
|
||||||
|
// Pendant un revisionnage, les épisodes affichés sont ceux du revisionnage
|
||||||
|
const shown = item ? progressView(item) : undefined
|
||||||
const nextEpisode = (() => {
|
const nextEpisode = (() => {
|
||||||
if (!item || !episodic) return undefined
|
if (!shown || !episodic) return undefined
|
||||||
const cap = episodeCap(item)
|
const cap = episodeCap(shown)
|
||||||
if (cap && item.episodesWatched >= cap) return { label: t('hero.allSeen'), done: true }
|
if (cap && shown.episodesWatched >= cap) return { label: t('hero.allSeen'), done: true }
|
||||||
if (aired != null && item.episodesWatched >= aired) {
|
if (aired != null && shown.episodesWatched >= aired) {
|
||||||
const date = airingRef ? nextAirDate(airingRef, airingCache) : undefined
|
const date = airingRef ? nextAirDate(airingRef, airingCache) : undefined
|
||||||
return { label: date ? t('hero.nextOn', { date: formatDate(date) }) : t('hero.upToDate'), done: true }
|
return { label: date ? t('hero.nextOn', { date: formatDate(date) }) : t('hero.upToDate'), done: true }
|
||||||
}
|
}
|
||||||
const pos = seasonPosition({ ...item, episodesWatched: item.episodesWatched + 1, season: undefined })
|
const pos = seasonPosition({ ...shown, episodesWatched: shown.episodesWatched + 1, season: undefined })
|
||||||
const ep = t('episodes.short', { n: pos ? pos.episode : item.episodesWatched + 1 })
|
const ep = t('episodes.short', { n: pos ? pos.episode : shown.episodesWatched + 1 })
|
||||||
return { label: t('hero.seenEp', { ep: pos ? `${t('episodes.seasonShort', { n: pos.season })} · ${ep}` : ep }), done: false }
|
return { label: t('hero.seenEp', { ep: pos ? `${t('episodes.seasonShort', { n: pos.season })} · ${ep}` : ep }), done: false }
|
||||||
})()
|
})()
|
||||||
const hasEpisodeList = !!item && (!!item.seasons || (!!item.externalId && !!item.episodesTotal))
|
const hasEpisodeList = !!item && (!!item.seasons || (!!item.externalId && !!item.episodesTotal))
|
||||||
@@ -259,7 +286,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
credits = await getTmdbCredits(item.externalId, settings.tmdbKey).catch(() => undefined)
|
credits = await getTmdbCredits(item.externalId, settings.tmdbKey).catch(() => undefined)
|
||||||
}
|
}
|
||||||
const blob = await renderItemCard(item, settings.ratingScale, credits)
|
const blob = await renderItemCard(item, settings.ratingScale, credits)
|
||||||
setPreview({ blob, filename: `azuucine-${slug(item.title)}.png` })
|
setPreview({ blob, filename: `kino-${slug(item.title)}.png` })
|
||||||
} finally {
|
} finally {
|
||||||
setSharing(false)
|
setSharing(false)
|
||||||
}
|
}
|
||||||
@@ -339,7 +366,22 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
{metaLine.length > 0 && <p className="mt-2 text-xs uppercase tracking-wide text-ink-2 lg:text-sm">{metaLine.join(' · ')}</p>}
|
{metaLine.length > 0 && <p className="mt-2 text-xs uppercase tracking-wide text-ink-2 lg:text-sm">{metaLine.join(' · ')}</p>}
|
||||||
{extras && extras.directors.length > 0 && (
|
{extras && extras.directors.length > 0 && (
|
||||||
<p className="mt-2 text-sm text-ink-2 lg:text-base">
|
<p className="mt-2 text-sm text-ink-2 lg:text-base">
|
||||||
{extras.directorKind === 'director' ? t('title.directedBy') : t('title.createdBy')} <span className="font-medium text-ink">{extras.directors.join(', ')}</span>
|
{extras.directorKind === 'director' ? t('title.directedBy') : t('title.createdBy')}{' '}
|
||||||
|
{(extras.directorPeople ?? extras.directors.map((name) => ({ name, personId: undefined }))).map((d, k) => (
|
||||||
|
<span key={d.name}>
|
||||||
|
{k > 0 && ', '}
|
||||||
|
{d.personId && onOpenPerson ? (
|
||||||
|
<button
|
||||||
|
onClick={() => onOpenPerson({ id: d.personId!, name: d.name })}
|
||||||
|
className="font-medium text-ink underline decoration-line-strong underline-offset-4 hover:decoration-accent"
|
||||||
|
>
|
||||||
|
{d.name}
|
||||||
|
</button>
|
||||||
|
) : (
|
||||||
|
<span className="font-medium text-ink">{d.name}</span>
|
||||||
|
)}
|
||||||
|
</span>
|
||||||
|
))}
|
||||||
</p>
|
</p>
|
||||||
)}
|
)}
|
||||||
{status && (
|
{status && (
|
||||||
@@ -395,7 +437,7 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div className="mt-5 border-t border-line pt-4">
|
<div ref={ratingRef} className={cx('mt-5 border-t border-line pt-4', focus && 'final' in focus && !item?.rating && 'rounded-xl ring-2 ring-accent ring-offset-4 ring-offset-surface')}>
|
||||||
<div className="mb-2 flex items-center justify-between">
|
<div className="mb-2 flex items-center justify-between">
|
||||||
<span className="eyebrow">{t('title.yourRating')}</span>
|
<span className="eyebrow">{t('title.yourRating')}</span>
|
||||||
{episodic && (
|
{episodic && (
|
||||||
@@ -409,6 +451,11 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<RatingInput value={item?.rating} onChange={rate} scale={settings.ratingScale} />
|
<RatingInput value={item?.rating} onChange={rate} scale={settings.ratingScale} />
|
||||||
|
{item && hasSeasons(item) && (
|
||||||
|
<p className="mt-1.5 text-xs text-ink-3">
|
||||||
|
{seasonsAverage(item.seasonRatings, settings.ratingScale) != null && item.status === 'termine' ? t('seasons.finalApplied') : t('seasons.finalHint')}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
{item?.rating != null && <Criteria item={item} scale={settings.ratingScale} onChange={(criteria) => void update(item.id, { criteria })} />}
|
{item?.rating != null && <Criteria item={item} scale={settings.ratingScale} onChange={(criteria) => void update(item.id, { criteria })} />}
|
||||||
</div>
|
</div>
|
||||||
{busy && (
|
{busy && (
|
||||||
@@ -418,12 +465,29 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
)}
|
)}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
{/* Revoir (titre terminé) */}
|
||||||
|
{item && item.status === 'termine' && (
|
||||||
|
<RewatchPanel
|
||||||
|
item={item}
|
||||||
|
justFinished={rewatchDone}
|
||||||
|
onChange={(patch) => {
|
||||||
|
setRewatchDone(false)
|
||||||
|
void update(item.id, patch)
|
||||||
|
}}
|
||||||
|
onUndoable={(patch, message) => {
|
||||||
|
const before = item
|
||||||
|
setRewatchDone(false)
|
||||||
|
void update(item.id, patch).then(() => actions.offerUndo(message, [before]))
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
{/* Épisodes */}
|
{/* Épisodes */}
|
||||||
{item && episodic && (
|
{item && shown && episodic && (
|
||||||
<section className="mx-4 mt-4">
|
<section className="mx-4 mt-4">
|
||||||
{nextEpisode && (
|
{nextEpisode && (
|
||||||
<button
|
<button
|
||||||
onClick={nextEpisode.done ? undefined : () => setEpisodes(item.episodesWatched + 1)}
|
onClick={nextEpisode.done ? undefined : () => setEpisodes(shown.episodesWatched + 1)}
|
||||||
disabled={nextEpisode.done}
|
disabled={nextEpisode.done}
|
||||||
className={cx('btn mb-3 w-full py-3', nextEpisode.done ? 'btn-ghost' : 'btn-primary')}
|
className={cx('btn mb-3 w-full py-3', nextEpisode.done ? 'btn-ghost' : 'btn-primary')}
|
||||||
>
|
>
|
||||||
@@ -432,29 +496,29 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
{hasEpisodeList ? (
|
{hasEpisodeList ? (
|
||||||
<EpisodeList form={item} aired={aired} onChange={setEpisodes} />
|
<EpisodeList form={shown} aired={aired} onChange={setEpisodes} />
|
||||||
) : (
|
) : (
|
||||||
<div className="card p-4">
|
<div className="card p-4">
|
||||||
<div className="flex items-center justify-between gap-3">
|
<div className="flex items-center justify-between gap-3">
|
||||||
<div>
|
<div>
|
||||||
<span className="eyebrow">{t('home.episodesSeen')}</span>
|
<span className="eyebrow">{t('home.episodesSeen')}</span>
|
||||||
<p className="mt-1 text-2xl font-bold tabular-nums">
|
<p className="mt-1 text-2xl font-bold tabular-nums">
|
||||||
{item.episodesWatched}
|
{shown.episodesWatched}
|
||||||
{episodeCap(item) ? <span className="text-base font-normal text-ink-3"> / {episodeCap(item)}</span> : null}
|
{episodeCap(shown) ? <span className="text-base font-normal text-ink-3"> / {episodeCap(shown)}</span> : null}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<button onClick={() => setEpisodes(item.episodesWatched - 1)} className="grid size-11 place-items-center rounded-full border border-line-strong text-ink-2" aria-label={t('form.minusEp')}>
|
<button onClick={() => setEpisodes(shown.episodesWatched - 1)} className="grid size-11 place-items-center rounded-full border border-line-strong text-ink-2" aria-label={t('form.minusEp')}>
|
||||||
<Minus size={18} />
|
<Minus size={18} />
|
||||||
</button>
|
</button>
|
||||||
<button onClick={() => setEpisodes(item.episodesWatched + 1)} className="grid size-11 place-items-center rounded-full bg-accent-fill text-on-accent" aria-label={t('form.plusEp')}>
|
<button onClick={() => setEpisodes(shown.episodesWatched + 1)} className="grid size-11 place-items-center rounded-full bg-accent-fill text-on-accent" aria-label={t('form.plusEp')}>
|
||||||
<Plus size={18} strokeWidth={2.5} />
|
<Plus size={18} strokeWidth={2.5} />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{episodeCap(item) ? (
|
{episodeCap(shown) ? (
|
||||||
<div className="mt-3 h-1 rounded-full bg-surface-2">
|
<div className="mt-3 h-1 rounded-full bg-surface-2">
|
||||||
<div className="h-full rounded-full bg-accent" style={{ width: `${Math.min(100, (item.episodesWatched / episodeCap(item)!) * 100)}%` }} />
|
<div className="h-full rounded-full bg-accent" style={{ width: `${Math.min(100, (shown.episodesWatched / episodeCap(shown)!) * 100)}%` }} />
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
@@ -462,6 +526,16 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
</section>
|
</section>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
{/* Notes et avis par saison */}
|
||||||
|
{item && hasSeasons(item) && (
|
||||||
|
<SeasonRatings
|
||||||
|
item={item}
|
||||||
|
scale={settings.ratingScale}
|
||||||
|
highlight={focus && 'season' in focus ? focus.season : undefined}
|
||||||
|
onChange={(seasonRatings) => void update(item.id, { seasonRatings })}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="order-2 min-w-0 lg:col-start-1 lg:row-start-1">
|
<div className="order-2 min-w-0 lg:col-start-1 lg:row-start-1">
|
||||||
@@ -523,17 +597,25 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
<section className="mt-8">
|
<section className="mt-8">
|
||||||
<h3 className="eyebrow mx-4 mb-3 text-ink-2">{t('title.cast')}</h3>
|
<h3 className="eyebrow mx-4 mb-3 text-ink-2">{t('title.cast')}</h3>
|
||||||
<div className="no-scrollbar flex gap-3 overflow-x-auto px-4 pb-1">
|
<div className="no-scrollbar flex gap-3 overflow-x-auto px-4 pb-1">
|
||||||
{extras.cast.map((c, k) => (
|
{extras.cast.map((c, k) => {
|
||||||
<div key={c.name + k} className="w-[5.5rem] shrink-0 text-center">
|
const open = c.personId && onOpenPerson ? () => onOpenPerson({ id: c.personId!, name: c.voice ?? c.name, photo: c.voice ? undefined : c.photo }) : undefined
|
||||||
|
const Tag = open ? 'button' : 'div'
|
||||||
|
return (
|
||||||
|
<Tag
|
||||||
|
key={c.name + k}
|
||||||
|
{...(open ? { onClick: open, type: 'button' as const } : {})}
|
||||||
|
className="group w-[5.5rem] shrink-0 text-center"
|
||||||
|
>
|
||||||
{c.photo ? (
|
{c.photo ? (
|
||||||
<img src={c.photo} alt="" loading="lazy" className="mx-auto size-20 rounded-full border border-line bg-surface-2 object-cover" />
|
<img src={c.photo} alt="" loading="lazy" className="mx-auto size-20 rounded-full border border-line bg-surface-2 object-cover transition-colors group-hover:border-accent" />
|
||||||
) : (
|
) : (
|
||||||
<span className="mx-auto grid size-20 place-items-center rounded-full border border-line bg-surface-2 text-lg font-semibold text-ink-3">{c.name.charAt(0)}</span>
|
<span className="mx-auto grid size-20 place-items-center rounded-full border border-line bg-surface-2 text-lg font-semibold text-ink-3 transition-colors group-hover:border-accent">{c.name.charAt(0)}</span>
|
||||||
)}
|
)}
|
||||||
<p className="mt-2 line-clamp-2 text-xs font-medium leading-snug">{c.name}</p>
|
<p className="mt-2 line-clamp-2 text-xs font-medium leading-snug">{c.name}</p>
|
||||||
{(c.role || c.voice) && <p className="mt-0.5 line-clamp-2 text-[11px] leading-snug text-ink-3">{c.role ?? t('title.voice', { name: c.voice! })}</p>}
|
{(c.role || c.voice) && <p className="mt-0.5 line-clamp-2 text-[11px] leading-snug text-ink-3">{c.role ?? t('title.voice', { name: c.voice! })}</p>}
|
||||||
</div>
|
</Tag>
|
||||||
))}
|
)
|
||||||
|
})}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
)}
|
)}
|
||||||
@@ -816,12 +898,7 @@ function Tracking({ item, lists, tagSuggestions, onChange }: { item: MediaItem;
|
|||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
)}
|
)}
|
||||||
<button
|
{!rewatches.length && <p className="text-xs text-ink-3">{t('rewatch.historyEmpty')}</p>}
|
||||||
onClick={() => rewatches.length < 100 && onChange({ rewatchDates: [todayISO(), ...rewatches].sort().reverse() })}
|
|
||||||
className="btn btn-ghost py-2 text-sm"
|
|
||||||
>
|
|
||||||
<Plus size={16} /> {t('title.rewatchedToday')}
|
|
||||||
</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
+109
-37
@@ -199,6 +199,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'أكّد عنوانك أولًا عبر الرابط الذي وصلك بالبريد الإلكتروني.',
|
'auth.err.notConfirmed': 'أكّد عنوانك أولًا عبر الرابط الذي وصلك بالبريد الإلكتروني.',
|
||||||
'auth.err.exists': 'يوجد حساب بهذا البريد الإلكتروني بالفعل.',
|
'auth.err.exists': 'يوجد حساب بهذا البريد الإلكتروني بالفعل.',
|
||||||
'auth.err.weak': 'كلمة المرور ضعيفة جدًا ({n} أحرف على الأقل، مزيج من الحروف والأرقام).',
|
'auth.err.weak': 'كلمة المرور ضعيفة جدًا ({n} أحرف على الأقل، مزيج من الحروف والأرقام).',
|
||||||
|
'auth.err.pwned': "ظهرت كلمة المرور هذه في تسريب بيانات معروف — اختر كلمة أخرى.",
|
||||||
'auth.err.samePassword': 'يجب أن تختلف كلمة المرور الجديدة عن القديمة.',
|
'auth.err.samePassword': 'يجب أن تختلف كلمة المرور الجديدة عن القديمة.',
|
||||||
'auth.err.emailRate': 'طلبات كثيرة جدًا. أعد المحاولة بعد بضع دقائق.',
|
'auth.err.emailRate': 'طلبات كثيرة جدًا. أعد المحاولة بعد بضع دقائق.',
|
||||||
'auth.err.rate': 'محاولات كثيرة جدًا. أعد المحاولة بعد بضع دقائق.',
|
'auth.err.rate': 'محاولات كثيرة جدًا. أعد المحاولة بعد بضع دقائق.',
|
||||||
@@ -242,16 +243,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'نجوم',
|
'theme.modeStarfield': 'نجوم',
|
||||||
'settings.accentColor': 'لون التمييز',
|
'settings.accentColor': 'لون التمييز',
|
||||||
'settings.installApp': 'تثبيت التطبيق',
|
'settings.installApp': 'تثبيت التطبيق',
|
||||||
'settings.installHint': 'أضِف AzuuCine إلى شاشتك الرئيسية أو سطح المكتب.',
|
'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,16 +253,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': 'لا توجد تقييمات بعد',
|
'reviews.none': 'لا توجد تقييمات بعد',
|
||||||
'reviews.seeAll': 'عرض كل التقييمات',
|
'reviews.seeAll': 'عرض كل التقييمات',
|
||||||
'reviews.react': 'تفاعل',
|
'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',
|
||||||
@@ -315,10 +299,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'تثبيت AzuuCine',
|
'install.title': 'تثبيت Kino',
|
||||||
'install.ios': 'افتح AzuuCine في Safari.\nاضغط زر المشاركة (المربع مع سهم للأعلى).\nاختر «إضافة إلى الشاشة الرئيسية» ثم «إضافة».',
|
'install.ios': 'افتح Kino في Safari.\nاضغط زر المشاركة (المربع مع سهم للأعلى).\nاختر «إضافة إلى الشاشة الرئيسية» ثم «إضافة».',
|
||||||
'install.android': 'افتح AzuuCine في Chrome.\nاضغط قائمة ⋮ في أعلى اليمين.\nاختر «إضافة إلى الشاشة الرئيسية» (أو «تثبيت التطبيق»).',
|
'install.android': 'افتح Kino في Chrome.\nاضغط قائمة ⋮ في أعلى اليمين.\nاختر «إضافة إلى الشاشة الرئيسية» (أو «تثبيت التطبيق»).',
|
||||||
'install.desktop': 'في شريط العنوان، انقر أيقونة التثبيت على اليمين (شاشة بها سهم).\nأو: قائمة ⋮ في المتصفح → «تثبيت AzuuCine».\nأكِّد بـ «تثبيت».',
|
'install.desktop': 'في شريط العنوان، انقر أيقونة التثبيت على اليمين (شاشة بها سهم).\nأو: قائمة ⋮ في المتصفح → «تثبيت Kino».\nأكِّد بـ «تثبيت».',
|
||||||
'install.other': 'افتح قائمة متصفحك.\nابحث عن «تثبيت التطبيق» أو «إضافة إلى الشاشة الرئيسية».',
|
'install.other': 'افتح قائمة متصفحك.\nابحث عن «تثبيت التطبيق» أو «إضافة إلى الشاشة الرئيسية».',
|
||||||
'install.gotIt': 'حسنًا',
|
'install.gotIt': 'حسنًا',
|
||||||
'settings.themeX': 'سمة {name}',
|
'settings.themeX': 'سمة {name}',
|
||||||
@@ -834,7 +818,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_few': 'بتقييم {rating}',
|
'stats.ratedAs_few': 'بتقييم {rating}',
|
||||||
'stats.ratedAs_many': 'بتقييم {rating}',
|
'stats.ratedAs_many': 'بتقييم {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'نسخة AzuuCine الاحتياطية',
|
'backup.shareTitle': 'نسخة Kino الاحتياطية',
|
||||||
'backup.tooBig': 'الملف كبير جدًا (30 م.ب كحد أقصى).',
|
'backup.tooBig': 'الملف كبير جدًا (30 م.ب كحد أقصى).',
|
||||||
'backup.notJson': 'هذا الملف ليس JSON صالحًا.',
|
'backup.notJson': 'هذا الملف ليس JSON صالحًا.',
|
||||||
'backup.noItems': 'لم يُعثر على أي سجل في هذا الملف.',
|
'backup.noItems': 'لم يُعثر على أي سجل في هذا الملف.',
|
||||||
@@ -923,9 +907,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'البحث عن أصدقاء',
|
'social.findFriends': 'البحث عن أصدقاء',
|
||||||
'social.searchPh': 'اسم المستخدم أو الاسم…',
|
'social.searchPh': 'اسم المستخدم أو الاسم…',
|
||||||
'social.noResults': 'لا أحد مطابق.',
|
'social.noResults': 'لا أحد مطابق.',
|
||||||
'social.inviteHint': 'أصدقاؤك ليسوا على AzuuCine بعد؟ أرسل لهم رابط ملفك الشخصي.',
|
'social.inviteHint': 'أصدقاؤك ليسوا على Kino بعد؟ أرسل لهم رابط ملفك الشخصي.',
|
||||||
'social.shareMyProfile': 'مشاركة ملفي الشخصي',
|
'social.shareMyProfile': 'مشاركة ملفي الشخصي',
|
||||||
'social.inviteText': 'تابعني على AzuuCine!',
|
'social.inviteText': 'تابعني على Kino!',
|
||||||
'social.myProfile': 'ملفي الشخصي',
|
'social.myProfile': 'ملفي الشخصي',
|
||||||
|
|
||||||
'feed.title': 'متابعاتي',
|
'feed.title': 'متابعاتي',
|
||||||
@@ -941,7 +925,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': 'متصفحك يحظر التخزين: يتعذّر تسجيل الدخول.',
|
'auth.err.storage': 'متصفحك يحظر التخزين: يتعذّر تسجيل الدخول.',
|
||||||
'welcome.title': 'اختر اسم المستخدم',
|
'welcome.title': 'اختر اسم المستخدم',
|
||||||
'welcome.titleA': 'مرحبًا بك في',
|
'welcome.titleA': 'مرحبًا بك في',
|
||||||
'welcome.titleB': 'AzuuCine',
|
'welcome.titleB': 'Kino',
|
||||||
'welcome.text': 'اختر اسم مستخدم: من خلاله سيجدك أصدقاؤك ويتابعونك.',
|
'welcome.text': 'اختر اسم مستخدم: من خلاله سيجدك أصدقاؤك ويتابعونك.',
|
||||||
'welcome.usernamePh': 'your_username',
|
'welcome.usernamePh': 'your_username',
|
||||||
'welcome.namePh': 'اسمك',
|
'welcome.namePh': 'اسمك',
|
||||||
@@ -1289,13 +1273,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، أضف AzuuCine أولًا إلى الشاشة الرئيسية (iOS 16.4 أو أحدث)، ثم افتح التطبيق من أيقونته لتفعيل الإشعارات.",
|
|
||||||
'push.unsupported': "هذا المتصفح لا يدعم الإشعارات الفورية.",
|
|
||||||
'push.denied': "الإشعارات محظورة لهذا الموقع. اسمح بها من إعدادات المتصفح ثم حاول مجددًا.",
|
|
||||||
'push.notReady': "الإشعارات الفورية غير متاحة على الخادم بعد.",
|
|
||||||
'push.error': "تعذّر تفعيل الإشعارات. تحقق من اتصالك وحاول مجددًا.",
|
|
||||||
'netPill.offlineSync': "غير متصل — ستتم مزامنة تعديلاتك",
|
'netPill.offlineSync': "غير متصل — ستتم مزامنة تعديلاتك",
|
||||||
'netPill.offlineLocal': "غير متصل — كل شيء محفوظ على هذا الجهاز",
|
'netPill.offlineLocal': "غير متصل — كل شيء محفوظ على هذا الجهاز",
|
||||||
'netPill.synced': "تمت المزامنة",
|
'netPill.synced': "تمت المزامنة",
|
||||||
@@ -1435,10 +1412,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': "قائمة مشتركة جديدة",
|
||||||
@@ -1491,6 +1464,105 @@ const dict: Translations = {
|
|||||||
'shared.nMembers_few': "{count} أعضاء",
|
'shared.nMembers_few': "{count} أعضاء",
|
||||||
'shared.nMembers_many': "{count} عضوًا",
|
'shared.nMembers_many': "{count} عضوًا",
|
||||||
'shared.nMembers_other': "{count} عضو",
|
'shared.nMembers_other': "{count} عضو",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "بحث",
|
||||||
|
'search.placeholder': "أعمال، ممثلون، مخرجون، أعضاء…",
|
||||||
|
'search.placeholderNoMembers': "أعمال، ممثلون، مخرجون…",
|
||||||
|
'search.tabAll': "الكل",
|
||||||
|
'search.tabTitles': "الأعمال",
|
||||||
|
'search.tabPeople': "الأشخاص",
|
||||||
|
'search.tabMembers': "الأعضاء",
|
||||||
|
'search.seeAll': "عرض الكل",
|
||||||
|
'search.hint': "ابحث عن فيلم أو مسلسل أو أنمي أو ممثل أو مخرج أو عضو باسم المستخدم.",
|
||||||
|
'search.hintNoMembers': "ابحث عن فيلم أو مسلسل أو أنمي أو ممثل أو مخرج.",
|
||||||
|
'search.noPeople': "لم يُعثر على أشخاص.",
|
||||||
|
'search.noMembers': "لم يُعثر على أعضاء.",
|
||||||
|
'person.title': "شخص",
|
||||||
|
'person.group.acting': "التمثيل",
|
||||||
|
'person.group.voice': "الأداء الصوتي",
|
||||||
|
'person.group.directing': "الإخراج",
|
||||||
|
'person.group.writing': "السيناريو",
|
||||||
|
'person.group.production': "الإنتاج",
|
||||||
|
'person.group.other': "مهام أخرى",
|
||||||
|
'person.animeStaff': "فريق الأنمي",
|
||||||
|
'person.notFound': "لم يُعثر على الشخص.",
|
||||||
|
'person.born': "وُلد في {date}",
|
||||||
|
'person.died': "توفي في {date}",
|
||||||
|
'person.inLibrary': "في مكتبتك: {count} / {total}",
|
||||||
|
'person.filmography': "الأعمال",
|
||||||
|
'person.sortPopular': "الأكثر شعبية",
|
||||||
|
'person.sortRecent': "الأحدث",
|
||||||
|
'person.empty': "لا شيء في هذه الفئة.",
|
||||||
|
'person.bioMore': "اقرأ المزيد",
|
||||||
|
'person.bioLess': "عرض أقل",
|
||||||
|
'person.sourceTmdb': "المعلومات والأعمال: TMDB",
|
||||||
|
'person.sourceAnilist': "المعلومات والأعمال: AniList",
|
||||||
|
'person.job.director': "إخراج",
|
||||||
|
'person.job.screenplay': "سيناريو",
|
||||||
|
'person.job.writer': "كاتب",
|
||||||
|
'person.job.story': "القصة",
|
||||||
|
'person.job.novel': "رواية",
|
||||||
|
'person.job.creator': "فكرة",
|
||||||
|
'person.job.producer': "إنتاج",
|
||||||
|
'person.job.execProducer': "منتج منفذ",
|
||||||
|
'person.job.composer': "موسيقى",
|
||||||
|
'person.job.dop': "تصوير",
|
||||||
|
'person.job.editor': "مونتاج",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "عام",
|
||||||
|
'stats.tabOther': "أخرى",
|
||||||
|
'stats.period': "الفترة",
|
||||||
|
'stats.allYears': "كل السنوات",
|
||||||
|
'stats.timeSpent': "الوقت المستغرق",
|
||||||
|
'stats.finished': "المكتملة",
|
||||||
|
'stats.filmsSeen': "الأفلام المشاهدة",
|
||||||
|
'stats.rewatched': "أعيدت مشاهدتها",
|
||||||
|
'stats.avgLength': "متوسط المدة",
|
||||||
|
'stats.episodesSeen': "الحلقات المشاهدة",
|
||||||
|
'stats.decades': "عقود الإصدار",
|
||||||
|
'stats.settings': "إعدادات الإحصاءات",
|
||||||
|
'stats.monthHidden': "مخفي",
|
||||||
|
'stats.hideMonthsHint': "ألغِ تحديد شهر لإزالته من الرسم (مثل الشهر الذي أضفت فيه كل شيء دفعة واحدة). تبقى أعماله محسوبة في كل مكان آخر.",
|
||||||
|
'stats.showAllMonths': "إظهار الكل من جديد",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "استكشف بدون حساب",
|
||||||
|
'guest.promptTitle': "أنشئ حسابك للمتابعة",
|
||||||
|
'guest.promptText': "لتقييم عمل أو إضافته إلى مكتبتك أو كتابة مراجعة، تحتاج إلى حساب. إنه مجاني ويستغرق 30 ثانية.",
|
||||||
|
'guest.banner': "أنت تستكشف بدون حساب: سجّل الدخول لتقييم أعمالك ومتابعتها.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "مواسمي",
|
||||||
|
'seasons.average': "المتوسط:",
|
||||||
|
'seasons.hint': "قيّم كل موسم بعد مشاهدته. عند انتهاء المسلسل يصبح تقييمك النهائي متوسط المواسم التي قيّمتها.",
|
||||||
|
'seasons.season': "الموسم {n}",
|
||||||
|
'seasons.seen': "تمت المشاهدة",
|
||||||
|
'seasons.progress': "{seen}/{size} حلقات",
|
||||||
|
'seasons.notStarted': "لم يبدأ بعد",
|
||||||
|
'seasons.rateNow': "قيّمه",
|
||||||
|
'seasons.reviewPh': "رأيك في الموسم {n}…",
|
||||||
|
'seasons.writeReview': "اكتب مراجعة لهذا الموسم",
|
||||||
|
'seasons.finalHint': "عند انتهاء المسلسل سيكون تقييمك متوسط المواسم التي قيّمتها.",
|
||||||
|
'seasons.finalApplied': "متوسط المواسم التي قيّمتها.",
|
||||||
|
"rewatch.title": "إعادة المشاهدة",
|
||||||
|
"rewatch.badge": "إعادة مشاهدة جارية",
|
||||||
|
"rewatch.views_one": "شوهد مرة واحدة",
|
||||||
|
"rewatch.views_other": "شوهد {count} مرة",
|
||||||
|
"rewatch.added": "«{title}»: أُضيفت إعادة مشاهدة",
|
||||||
|
"rewatch.add": "إضافة",
|
||||||
|
"rewatch.finished": "انتهت إعادة المشاهدة وأُضيفت إلى سجلك.",
|
||||||
|
"rewatch.since": "بدأت في {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} حلقة أُعيدت مشاهدتها",
|
||||||
|
"rewatch.trackingHint": "الحلقات التي تحددها الآن تُحسب لإعادة المشاهدة هذه. مشاهدتك الأولى وتقييمك ومراجعاتك تبقى كما هي.",
|
||||||
|
"rewatch.markDone": "إنهاء الآن",
|
||||||
|
"rewatch.stop": "إيقاف",
|
||||||
|
"rewatch.stopped": "«{title}»: أُوقفت إعادة المشاهدة",
|
||||||
|
"rewatch.start": "بدء إعادة مشاهدة",
|
||||||
|
"rewatch.startHint": "يبدأ التقدم من الحلقة 1 دون المساس بمشاهدتك الأولى.",
|
||||||
|
"rewatch.alreadyDone": "أعدت مشاهدته من قبل؟ أضف تاريخًا",
|
||||||
|
"rewatch.historyEmpty": "لا توجد إعادة مشاهدة بعد: استخدم «إعادة المشاهدة» أعلاه.",
|
||||||
|
"rewatch.views_two": "شوهد مرتين",
|
||||||
|
"rewatch.views_few": "شوهد {count} مرات",
|
||||||
|
"rewatch.views_many": "شوهد {count} مرة",
|
||||||
|
"rewatch.finishedToast": "«{title}»: انتهت إعادة المشاهدة",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Bestätige zuerst deine Adresse über den Link in der E-Mail.',
|
'auth.err.notConfirmed': 'Bestätige zuerst deine Adresse über den Link in der E-Mail.',
|
||||||
'auth.err.exists': 'Mit dieser E-Mail gibt es schon ein Konto.',
|
'auth.err.exists': 'Mit dieser E-Mail gibt es schon ein Konto.',
|
||||||
'auth.err.weak': 'Passwort zu schwach (mindestens {n} Zeichen, Buchstaben und Zahlen gemischt).',
|
'auth.err.weak': 'Passwort zu schwach (mindestens {n} Zeichen, Buchstaben und Zahlen gemischt).',
|
||||||
|
'auth.err.pwned': "Dieses Passwort ist in einem bekannten Datenleck aufgetaucht – bitte wähle ein anderes.",
|
||||||
'auth.err.samePassword': 'Das neue Passwort muss sich vom alten unterscheiden.',
|
'auth.err.samePassword': 'Das neue Passwort muss sich vom alten unterscheiden.',
|
||||||
'auth.err.emailRate': 'Zu viele Anfragen. Versuch’s in ein paar Minuten nochmal.',
|
'auth.err.emailRate': 'Zu viele Anfragen. Versuch’s in ein paar Minuten nochmal.',
|
||||||
'auth.err.rate': 'Zu viele Versuche. Versuch’s in ein paar Minuten nochmal.',
|
'auth.err.rate': 'Zu viele Versuche. Versuch’s in ein paar Minuten nochmal.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Sternenhimmel',
|
'theme.modeStarfield': 'Sternenhimmel',
|
||||||
'settings.accentColor': 'Akzentfarbe',
|
'settings.accentColor': 'Akzentfarbe',
|
||||||
'settings.installApp': 'App installieren',
|
'settings.installApp': 'App installieren',
|
||||||
'settings.installHint': 'Füge AzuuCine 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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': 'Noch keine Rezensionen',
|
'reviews.none': 'Noch keine Rezensionen',
|
||||||
'reviews.seeAll': 'Alle Rezensionen ansehen',
|
'reviews.seeAll': 'Alle Rezensionen ansehen',
|
||||||
'reviews.react': 'Reagieren',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'AzuuCine installieren',
|
'install.title': 'Kino installieren',
|
||||||
'install.ios': 'Öffne AzuuCine 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“.',
|
||||||
'install.android': 'Öffne AzuuCine in Chrome.\nTippe oben rechts auf das Menü ⋮.\nWähle „Zum Startbildschirm hinzufügen“ (oder „App installieren“).',
|
'install.android': 'Öffne Kino in Chrome.\nTippe oben rechts auf das Menü ⋮.\nWähle „Zum Startbildschirm hinzufügen“ (oder „App installieren“).',
|
||||||
'install.desktop': 'Klicke in der Adressleiste rechts auf das Installationssymbol (ein Bildschirm mit Pfeil).\nOder: Browser-Menü ⋮ → „AzuuCine installieren“.\nBestätige mit „Installieren“.',
|
'install.desktop': 'Klicke in der Adressleiste rechts auf das Installationssymbol (ein Bildschirm mit Pfeil).\nOder: Browser-Menü ⋮ → „Kino installieren“.\nBestätige mit „Installieren“.',
|
||||||
'install.other': 'Öffne das Menü deines Browsers.\nSuche nach „App installieren“ oder „Zum Startbildschirm hinzufügen“.',
|
'install.other': 'Öffne das Menü deines Browsers.\nSuche nach „App installieren“ oder „Zum Startbildschirm hinzufügen“.',
|
||||||
'install.gotIt': 'Verstanden',
|
'install.gotIt': 'Verstanden',
|
||||||
'settings.themeX': 'Design {name}',
|
'settings.themeX': 'Design {name}',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': 'mit {rating} bewertet',
|
'stats.ratedAs_one': 'mit {rating} bewertet',
|
||||||
'stats.ratedAs_other': 'mit {rating} bewertet',
|
'stats.ratedAs_other': 'mit {rating} bewertet',
|
||||||
|
|
||||||
'backup.shareTitle': 'AzuuCine-Backup',
|
'backup.shareTitle': 'Kino-Backup',
|
||||||
'backup.tooBig': 'Datei zu groß (max. 30 MB).',
|
'backup.tooBig': 'Datei zu groß (max. 30 MB).',
|
||||||
'backup.notJson': 'Diese Datei ist kein gültiges JSON.',
|
'backup.notJson': 'Diese Datei ist kein gültiges JSON.',
|
||||||
'backup.noItems': 'In dieser Datei wurden keine Einträge gefunden.',
|
'backup.noItems': 'In dieser Datei wurden keine Einträge gefunden.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Freunde finden',
|
'social.findFriends': 'Freunde finden',
|
||||||
'social.searchPh': 'Username oder Name…',
|
'social.searchPh': 'Username oder Name…',
|
||||||
'social.noResults': 'Niemand gefunden.',
|
'social.noResults': 'Niemand gefunden.',
|
||||||
'social.inviteHint': 'Deine Freunde sind noch nicht auf AzuuCine? Schick ihnen den Link zu deinem Profil.',
|
'social.inviteHint': 'Deine Freunde sind noch nicht auf Kino? Schick ihnen den Link zu deinem Profil.',
|
||||||
'social.shareMyProfile': 'Mein Profil teilen',
|
'social.shareMyProfile': 'Mein Profil teilen',
|
||||||
'social.inviteText': 'Folge mir auf AzuuCine!',
|
'social.inviteText': 'Folge mir auf Kino!',
|
||||||
'social.myProfile': 'Mein Profil',
|
'social.myProfile': 'Mein Profil',
|
||||||
|
|
||||||
'feed.title': 'Mein Feed',
|
'feed.title': 'Mein Feed',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "Dein Browser blockiert den Speicher: Anmeldung nicht möglich.",
|
'auth.err.storage': "Dein Browser blockiert den Speicher: Anmeldung nicht möglich.",
|
||||||
'welcome.title': "Wähle deinen Benutzernamen",
|
'welcome.title': "Wähle deinen Benutzernamen",
|
||||||
'welcome.titleA': "Willkommen bei",
|
'welcome.titleA': "Willkommen bei",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "Wähle einen Benutzernamen: So finden dich deine Freunde und können dir folgen.",
|
'welcome.text': "Wähle einen Benutzernamen: So finden dich deine Freunde und können dir folgen.",
|
||||||
'welcome.usernamePh': "dein_name",
|
'welcome.usernamePh': "dein_name",
|
||||||
'welcome.namePh': "Dein Name",
|
'welcome.namePh': "Dein Name",
|
||||||
@@ -1074,13 +1058,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 AzuuCine 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",
|
||||||
@@ -1220,10 +1197,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",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} Kommentare",
|
'comments.toggle_other': "{count} Kommentare",
|
||||||
'shared.nMembers_one': "{count} Mitglied",
|
'shared.nMembers_one': "{count} Mitglied",
|
||||||
'shared.nMembers_other': "{count} Mitglieder",
|
'shared.nMembers_other': "{count} Mitglieder",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Suchen",
|
||||||
|
'search.placeholder': "Titel, Schauspieler, Regie, Mitglieder…",
|
||||||
|
'search.placeholderNoMembers': "Titel, Schauspieler, Regie…",
|
||||||
|
'search.tabAll': "Alle",
|
||||||
|
'search.tabTitles': "Titel",
|
||||||
|
'search.tabPeople': "Personen",
|
||||||
|
'search.tabMembers': "Mitglieder",
|
||||||
|
'search.seeAll': "Alle anzeigen",
|
||||||
|
'search.hint': "Suche einen Film, eine Serie, einen Anime, Schauspieler, Regisseur oder ein Mitglied per Benutzername.",
|
||||||
|
'search.hintNoMembers': "Suche einen Film, eine Serie, einen Anime, Schauspieler oder Regisseur.",
|
||||||
|
'search.noPeople': "Keine Personen gefunden.",
|
||||||
|
'search.noMembers': "Keine Mitglieder gefunden.",
|
||||||
|
'person.title': "Person",
|
||||||
|
'person.group.acting': "Schauspiel",
|
||||||
|
'person.group.voice': "Synchron",
|
||||||
|
'person.group.directing': "Regie",
|
||||||
|
'person.group.writing': "Drehbuch",
|
||||||
|
'person.group.production': "Produktion",
|
||||||
|
'person.group.other': "Weitere Funktionen",
|
||||||
|
'person.animeStaff': "Anime-Team",
|
||||||
|
'person.notFound': "Person nicht gefunden.",
|
||||||
|
'person.born': "Geboren am {date}",
|
||||||
|
'person.died': "Gestorben am {date}",
|
||||||
|
'person.inLibrary': "In deiner Bibliothek: {count} / {total}",
|
||||||
|
'person.filmography': "Filmografie",
|
||||||
|
'person.sortPopular': "Beliebt",
|
||||||
|
'person.sortRecent': "Neueste",
|
||||||
|
'person.empty': "Nichts in dieser Kategorie.",
|
||||||
|
'person.bioMore': "Mehr lesen",
|
||||||
|
'person.bioLess': "Weniger",
|
||||||
|
'person.sourceTmdb': "Infos und Filmografie: TMDB",
|
||||||
|
'person.sourceAnilist': "Infos und Filmografie: AniList",
|
||||||
|
'person.job.director': "Regie",
|
||||||
|
'person.job.screenplay': "Drehbuch",
|
||||||
|
'person.job.writer': "Autor",
|
||||||
|
'person.job.story': "Story",
|
||||||
|
'person.job.novel': "Roman",
|
||||||
|
'person.job.creator': "Idee",
|
||||||
|
'person.job.producer': "Produktion",
|
||||||
|
'person.job.execProducer': "Ausführende Produktion",
|
||||||
|
'person.job.composer': "Musik",
|
||||||
|
'person.job.dop': "Kamera",
|
||||||
|
'person.job.editor': "Schnitt",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Überblick",
|
||||||
|
'stats.tabOther': "Andere",
|
||||||
|
'stats.period': "Zeitraum",
|
||||||
|
'stats.allYears': "Alle Jahre",
|
||||||
|
'stats.timeSpent': "Verbrachte Zeit",
|
||||||
|
'stats.finished': "Beendet",
|
||||||
|
'stats.filmsSeen': "Gesehene Filme",
|
||||||
|
'stats.rewatched': "erneut gesehen",
|
||||||
|
'stats.avgLength': "Durchschnittliche Länge",
|
||||||
|
'stats.episodesSeen': "Gesehene Folgen",
|
||||||
|
'stats.decades': "Erscheinungsjahrzehnte",
|
||||||
|
'stats.settings': "Statistik-Einstellungen",
|
||||||
|
'stats.monthHidden': "ausgeblendet",
|
||||||
|
'stats.hideMonthsHint': "Entferne den Haken bei einem Monat, um ihn aus dem Diagramm zu nehmen (z. B. den Monat, in dem du alles auf einmal hinzugefügt hast). Die Titel zählen überall sonst weiter.",
|
||||||
|
'stats.showAllMonths': "Alle wieder anzeigen",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Ohne Konto erkunden",
|
||||||
|
'guest.promptTitle': "Erstelle ein Konto, um weiterzumachen",
|
||||||
|
'guest.promptText': "Zum Bewerten, Hinzufügen zu deiner Bibliothek oder Schreiben einer Rezension brauchst du ein Konto. Es ist kostenlos und dauert 30 Sekunden.",
|
||||||
|
'guest.banner': "Du erkundest ohne Konto: Melde dich an, um zu bewerten und deine Titel zu verfolgen.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Meine Staffeln",
|
||||||
|
'seasons.average': "Durchschnitt:",
|
||||||
|
'seasons.hint': "Bewerte jede Staffel, sobald du sie gesehen hast. Ist die Serie beendet, wird deine Gesamtbewertung der Durchschnitt deiner bewerteten Staffeln.",
|
||||||
|
'seasons.season': "Staffel {n}",
|
||||||
|
'seasons.seen': "Gesehen",
|
||||||
|
'seasons.progress': "{seen}/{size} Folgen",
|
||||||
|
'seasons.notStarted': "Noch nicht begonnen",
|
||||||
|
'seasons.rateNow': "Jetzt bewerten",
|
||||||
|
'seasons.reviewPh': "Deine Meinung zu Staffel {n} …",
|
||||||
|
'seasons.writeReview': "Eine Rezension zu dieser Staffel schreiben",
|
||||||
|
'seasons.finalHint': "Am Ende der Serie ist deine Bewertung der Durchschnitt deiner bewerteten Staffeln.",
|
||||||
|
'seasons.finalApplied': "Durchschnitt deiner bewerteten Staffeln.",
|
||||||
|
"rewatch.title": "Erneut ansehen",
|
||||||
|
"rewatch.badge": "Erneutes Ansehen",
|
||||||
|
"rewatch.views_one": "{count}-mal gesehen",
|
||||||
|
"rewatch.views_other": "{count}-mal gesehen",
|
||||||
|
"rewatch.added": "„{title}“: erneutes Ansehen hinzugefügt",
|
||||||
|
"rewatch.add": "Hinzufügen",
|
||||||
|
"rewatch.finished": "Erneutes Ansehen beendet, es steht jetzt in deinem Verlauf.",
|
||||||
|
"rewatch.since": "begonnen am {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} Folgen erneut gesehen",
|
||||||
|
"rewatch.trackingHint": "Folgen, die du jetzt abhakst, zählen für dieses erneute Ansehen. Dein erstes Ansehen, deine Bewertung und Rezensionen bleiben unverändert.",
|
||||||
|
"rewatch.markDone": "Jetzt abschließen",
|
||||||
|
"rewatch.stop": "Abbrechen",
|
||||||
|
"rewatch.stopped": "„{title}“: erneutes Ansehen abgebrochen",
|
||||||
|
"rewatch.start": "Erneut ansehen beginnen",
|
||||||
|
"rewatch.startHint": "Der Fortschritt beginnt wieder bei Folge 1, dein erstes Ansehen bleibt unberührt.",
|
||||||
|
"rewatch.alreadyDone": "Schon erneut gesehen? Datum hinzufügen",
|
||||||
|
"rewatch.historyEmpty": "Noch kein erneutes Ansehen: nutze „Erneut ansehen“ oben.",
|
||||||
|
"rewatch.finishedToast": "„{title}“: erneutes Ansehen beendet",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Confirm your address first with the link we emailed you.',
|
'auth.err.notConfirmed': 'Confirm your address first with the link we emailed you.',
|
||||||
'auth.err.exists': 'An account already exists with this email.',
|
'auth.err.exists': 'An account already exists with this email.',
|
||||||
'auth.err.weak': 'Password too weak (at least {n} characters, mix letters and numbers).',
|
'auth.err.weak': 'Password too weak (at least {n} characters, mix letters and numbers).',
|
||||||
|
'auth.err.pwned': "This password has appeared in a known data breach — please choose another one.",
|
||||||
'auth.err.samePassword': 'Your new password must be different from the old one.',
|
'auth.err.samePassword': 'Your new password must be different from the old one.',
|
||||||
'auth.err.emailRate': 'Too many requests. Try again in a few minutes.',
|
'auth.err.emailRate': 'Too many requests. Try again in a few minutes.',
|
||||||
'auth.err.rate': 'Too many attempts. Try again in a few minutes.',
|
'auth.err.rate': 'Too many attempts. Try again in a few minutes.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Starry',
|
'theme.modeStarfield': 'Starry',
|
||||||
'settings.accentColor': 'Accent color',
|
'settings.accentColor': 'Accent color',
|
||||||
'settings.installApp': 'Install the app',
|
'settings.installApp': 'Install the app',
|
||||||
'settings.installHint': 'Add AzuuCine 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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': 'No reviews yet',
|
'reviews.none': 'No reviews yet',
|
||||||
'reviews.seeAll': 'See all reviews',
|
'reviews.seeAll': 'See all reviews',
|
||||||
'reviews.react': 'React',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Install AzuuCine',
|
'install.title': 'Install Kino',
|
||||||
'install.ios': 'Open AzuuCine 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”.',
|
||||||
'install.android': 'Open AzuuCine in Chrome.\nTap the ⋮ menu at the top right.\nChoose “Add to Home screen” (or “Install app”).',
|
'install.android': 'Open Kino in Chrome.\nTap the ⋮ menu at the top right.\nChoose “Add to Home screen” (or “Install app”).',
|
||||||
'install.desktop': 'In the address bar, click the install icon on the right (a screen with an arrow).\nOr: browser ⋮ menu → “Install AzuuCine”.\nConfirm with “Install”.',
|
'install.desktop': 'In the address bar, click the install icon on the right (a screen with an arrow).\nOr: browser ⋮ menu → “Install Kino”.\nConfirm with “Install”.',
|
||||||
'install.other': 'Open your browser’s menu.\nLook for “Install app” or “Add to Home screen”.',
|
'install.other': 'Open your browser’s menu.\nLook for “Install app” or “Add to Home screen”.',
|
||||||
'install.gotIt': 'Got it',
|
'install.gotIt': 'Got it',
|
||||||
'settings.themeX': '{name} theme',
|
'settings.themeX': '{name} theme',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': 'rated {rating}',
|
'stats.ratedAs_one': 'rated {rating}',
|
||||||
'stats.ratedAs_other': 'rated {rating}',
|
'stats.ratedAs_other': 'rated {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'AzuuCine backup',
|
'backup.shareTitle': 'Kino backup',
|
||||||
'backup.tooBig': 'File too large (30 MB max).',
|
'backup.tooBig': 'File too large (30 MB max).',
|
||||||
'backup.notJson': 'This file isn’t valid JSON.',
|
'backup.notJson': 'This file isn’t valid JSON.',
|
||||||
'backup.noItems': 'No entries found in this file.',
|
'backup.noItems': 'No entries found in this file.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Find friends',
|
'social.findFriends': 'Find friends',
|
||||||
'social.searchPh': 'Username or name…',
|
'social.searchPh': 'Username or name…',
|
||||||
'social.noResults': 'No one matches.',
|
'social.noResults': 'No one matches.',
|
||||||
'social.inviteHint': 'Your friends aren’t on AzuuCine yet? Send them a link to your profile.',
|
'social.inviteHint': 'Your friends aren’t on Kino yet? Send them a link to your profile.',
|
||||||
'social.shareMyProfile': 'Share my profile',
|
'social.shareMyProfile': 'Share my profile',
|
||||||
'social.inviteText': 'Follow me on AzuuCine!',
|
'social.inviteText': 'Follow me on Kino!',
|
||||||
'social.myProfile': 'My profile',
|
'social.myProfile': 'My profile',
|
||||||
|
|
||||||
'feed.title': 'Following',
|
'feed.title': 'Following',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "Your browser is blocking storage: unable to sign in.",
|
'auth.err.storage': "Your browser is blocking storage: unable to sign in.",
|
||||||
'welcome.title': "Pick your username",
|
'welcome.title': "Pick your username",
|
||||||
'welcome.titleA': "Welcome to",
|
'welcome.titleA': "Welcome to",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "Pick a username: it's how your friends will find and follow you.",
|
'welcome.text': "Pick a username: it's how your friends will find and follow you.",
|
||||||
'welcome.usernamePh': "your_username",
|
'welcome.usernamePh': "your_username",
|
||||||
'welcome.namePh': "Your name",
|
'welcome.namePh': "Your name",
|
||||||
@@ -1074,13 +1058,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 AzuuCine 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",
|
||||||
@@ -1220,10 +1197,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",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} comments",
|
'comments.toggle_other': "{count} comments",
|
||||||
'shared.nMembers_one': "{count} member",
|
'shared.nMembers_one': "{count} member",
|
||||||
'shared.nMembers_other': "{count} members",
|
'shared.nMembers_other': "{count} members",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Search",
|
||||||
|
'search.placeholder': "Titles, actors, directors, members…",
|
||||||
|
'search.placeholderNoMembers': "Titles, actors, directors…",
|
||||||
|
'search.tabAll': "All",
|
||||||
|
'search.tabTitles': "Titles",
|
||||||
|
'search.tabPeople': "People",
|
||||||
|
'search.tabMembers': "Members",
|
||||||
|
'search.seeAll': "See all",
|
||||||
|
'search.hint': "Search for a movie, show, anime, actor, director or a member by username.",
|
||||||
|
'search.hintNoMembers': "Search for a movie, show, anime, actor or director.",
|
||||||
|
'search.noPeople': "No people found.",
|
||||||
|
'search.noMembers': "No members found.",
|
||||||
|
'person.title': "Person",
|
||||||
|
'person.group.acting': "Acting",
|
||||||
|
'person.group.voice': "Voice acting",
|
||||||
|
'person.group.directing': "Directing",
|
||||||
|
'person.group.writing': "Writing",
|
||||||
|
'person.group.production': "Production",
|
||||||
|
'person.group.other': "Other roles",
|
||||||
|
'person.animeStaff': "Anime staff",
|
||||||
|
'person.notFound': "Person not found.",
|
||||||
|
'person.born': "Born {date}",
|
||||||
|
'person.died': "Died {date}",
|
||||||
|
'person.inLibrary': "In your library: {count} / {total}",
|
||||||
|
'person.filmography': "Filmography",
|
||||||
|
'person.sortPopular': "Popular",
|
||||||
|
'person.sortRecent': "Recent",
|
||||||
|
'person.empty': "Nothing in this category.",
|
||||||
|
'person.bioMore': "Read more",
|
||||||
|
'person.bioLess': "Show less",
|
||||||
|
'person.sourceTmdb': "Info and filmography: TMDB",
|
||||||
|
'person.sourceAnilist': "Info and filmography: AniList",
|
||||||
|
'person.job.director': "Director",
|
||||||
|
'person.job.screenplay': "Screenplay",
|
||||||
|
'person.job.writer': "Writer",
|
||||||
|
'person.job.story': "Story",
|
||||||
|
'person.job.novel': "Novel",
|
||||||
|
'person.job.creator': "Creator",
|
||||||
|
'person.job.producer': "Producer",
|
||||||
|
'person.job.execProducer': "Executive producer",
|
||||||
|
'person.job.composer': "Composer",
|
||||||
|
'person.job.dop': "Cinematography",
|
||||||
|
'person.job.editor': "Editor",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Overview",
|
||||||
|
'stats.tabOther': "Other",
|
||||||
|
'stats.period': "Period",
|
||||||
|
'stats.allYears': "All years",
|
||||||
|
'stats.timeSpent': "Time spent",
|
||||||
|
'stats.finished': "Finished",
|
||||||
|
'stats.filmsSeen': "Movies watched",
|
||||||
|
'stats.rewatched': "rewatched",
|
||||||
|
'stats.avgLength': "Average length",
|
||||||
|
'stats.episodesSeen': "Episodes watched",
|
||||||
|
'stats.decades': "Release decades",
|
||||||
|
'stats.settings': "Stats settings",
|
||||||
|
'stats.monthHidden': "hidden",
|
||||||
|
'stats.hideMonthsHint': "Uncheck a month to remove it from the chart (for example the month you added everything at once). Its titles still count everywhere else.",
|
||||||
|
'stats.showAllMonths': "Show all again",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Explore without an account",
|
||||||
|
'guest.promptTitle': "Create your account to continue",
|
||||||
|
'guest.promptText': "To rate, add a title to your library or write a review, you need an account. It's free and takes 30 seconds.",
|
||||||
|
'guest.banner': "You're exploring without an account: sign in to rate and track your titles.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "My seasons",
|
||||||
|
'seasons.average': "Average:",
|
||||||
|
'seasons.hint': "Rate each season once you've watched it. When the show is finished, your final rating becomes the average of your rated seasons.",
|
||||||
|
'seasons.season': "Season {n}",
|
||||||
|
'seasons.seen': "Watched",
|
||||||
|
'seasons.progress': "{seen}/{size} episodes",
|
||||||
|
'seasons.notStarted': "Not started yet",
|
||||||
|
'seasons.rateNow': "Rate it",
|
||||||
|
'seasons.reviewPh': "Your review of season {n}…",
|
||||||
|
'seasons.writeReview': "Write a review of this season",
|
||||||
|
'seasons.finalHint': "When the show is finished, your rating will be the average of your rated seasons.",
|
||||||
|
'seasons.finalApplied': "Average of your rated seasons.",
|
||||||
|
"rewatch.title": "Rewatch",
|
||||||
|
"rewatch.badge": "Rewatching",
|
||||||
|
"rewatch.views_one": "Watched {count} time",
|
||||||
|
"rewatch.views_other": "Watched {count} times",
|
||||||
|
"rewatch.added": "“{title}”: rewatch added",
|
||||||
|
"rewatch.add": "Add",
|
||||||
|
"rewatch.finished": "Rewatch finished, it’s now in your history.",
|
||||||
|
"rewatch.since": "started {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} episodes rewatched",
|
||||||
|
"rewatch.trackingHint": "Episodes you check now count toward this rewatch. Your first watch, rating and reviews stay as they are.",
|
||||||
|
"rewatch.markDone": "Finish now",
|
||||||
|
"rewatch.stop": "Stop",
|
||||||
|
"rewatch.stopped": "“{title}”: rewatch stopped",
|
||||||
|
"rewatch.start": "Start a rewatch",
|
||||||
|
"rewatch.startHint": "Progress starts again from episode 1, without touching your first watch.",
|
||||||
|
"rewatch.alreadyDone": "Already rewatched? Add a date",
|
||||||
|
"rewatch.historyEmpty": "No rewatches yet: use “Rewatch” above.",
|
||||||
|
"rewatch.finishedToast": "“{title}”: rewatch finished",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Primero confirma tu dirección con el enlace que recibiste por correo.',
|
'auth.err.notConfirmed': 'Primero confirma tu dirección con el enlace que recibiste por correo.',
|
||||||
'auth.err.exists': 'Ya existe una cuenta con este correo.',
|
'auth.err.exists': 'Ya existe una cuenta con este correo.',
|
||||||
'auth.err.weak': 'Contraseña demasiado débil (al menos {n} caracteres, mezcla letras y números).',
|
'auth.err.weak': 'Contraseña demasiado débil (al menos {n} caracteres, mezcla letras y números).',
|
||||||
|
'auth.err.pwned': "Esta contraseña apareció en una filtración de datos conocida: elige otra.",
|
||||||
'auth.err.samePassword': 'La nueva contraseña tiene que ser distinta de la anterior.',
|
'auth.err.samePassword': 'La nueva contraseña tiene que ser distinta de la anterior.',
|
||||||
'auth.err.emailRate': 'Demasiadas solicitudes. Vuelve a intentarlo en unos minutos.',
|
'auth.err.emailRate': 'Demasiadas solicitudes. Vuelve a intentarlo en unos minutos.',
|
||||||
'auth.err.rate': 'Demasiados intentos. Vuelve a intentarlo en unos minutos.',
|
'auth.err.rate': 'Demasiados intentos. Vuelve a intentarlo en unos minutos.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Estrellado',
|
'theme.modeStarfield': 'Estrellado',
|
||||||
'settings.accentColor': 'Color de acento',
|
'settings.accentColor': 'Color de acento',
|
||||||
'settings.installApp': 'Instalar la aplicación',
|
'settings.installApp': 'Instalar la aplicación',
|
||||||
'settings.installHint': 'Añade AzuuCine 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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'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',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Instalar AzuuCine',
|
'install.title': 'Instalar Kino',
|
||||||
'install.ios': 'Abre AzuuCine 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».',
|
||||||
'install.android': 'Abre AzuuCine en Chrome.\nToca el menú ⋮ arriba a la derecha.\nElige «Añadir a la pantalla de inicio» (o «Instalar aplicación»).',
|
'install.android': 'Abre Kino en Chrome.\nToca el menú ⋮ arriba a la derecha.\nElige «Añadir a la pantalla de inicio» (o «Instalar aplicación»).',
|
||||||
'install.desktop': 'En la barra de direcciones, haz clic en el icono de instalación a la derecha (una pantalla con una flecha).\nO: menú ⋮ del navegador → «Instalar AzuuCine».\nConfirma con «Instalar».',
|
'install.desktop': 'En la barra de direcciones, haz clic en el icono de instalación a la derecha (una pantalla con una flecha).\nO: menú ⋮ del navegador → «Instalar Kino».\nConfirma con «Instalar».',
|
||||||
'install.other': 'Abre el menú de tu navegador.\nBusca «Instalar aplicación» o «Añadir a la pantalla de inicio».',
|
'install.other': 'Abre el menú de tu navegador.\nBusca «Instalar aplicación» o «Añadir a la pantalla de inicio».',
|
||||||
'install.gotIt': 'Entendido',
|
'install.gotIt': 'Entendido',
|
||||||
'settings.themeX': 'Tema {name}',
|
'settings.themeX': 'Tema {name}',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': 'puntuado {rating}',
|
'stats.ratedAs_one': 'puntuado {rating}',
|
||||||
'stats.ratedAs_other': 'puntuados {rating}',
|
'stats.ratedAs_other': 'puntuados {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'Copia de seguridad de AzuuCine',
|
'backup.shareTitle': 'Copia de seguridad de Kino',
|
||||||
'backup.tooBig': 'Archivo demasiado grande (30 MB como máximo).',
|
'backup.tooBig': 'Archivo demasiado grande (30 MB como máximo).',
|
||||||
'backup.notJson': 'Este archivo no es un JSON válido.',
|
'backup.notJson': 'Este archivo no es un JSON válido.',
|
||||||
'backup.noItems': 'No se encontró ninguna ficha en este archivo.',
|
'backup.noItems': 'No se encontró ninguna ficha en este archivo.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Buscar amigos',
|
'social.findFriends': 'Buscar amigos',
|
||||||
'social.searchPh': 'Usuario o nombre…',
|
'social.searchPh': 'Usuario o nombre…',
|
||||||
'social.noResults': 'No hay nadie que coincida.',
|
'social.noResults': 'No hay nadie que coincida.',
|
||||||
'social.inviteHint': '¿Tus amigos aún no están en AzuuCine? Envíales el enlace de tu perfil.',
|
'social.inviteHint': '¿Tus amigos aún no están en Kino? Envíales el enlace de tu perfil.',
|
||||||
'social.shareMyProfile': 'Compartir mi perfil',
|
'social.shareMyProfile': 'Compartir mi perfil',
|
||||||
'social.inviteText': '¡Sígueme en AzuuCine!',
|
'social.inviteText': '¡Sígueme en Kino!',
|
||||||
'social.myProfile': 'Mi perfil',
|
'social.myProfile': 'Mi perfil',
|
||||||
|
|
||||||
'feed.title': 'A quién sigo',
|
'feed.title': 'A quién sigo',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "Tu navegador bloquea el almacenamiento: no se puede iniciar sesión.",
|
'auth.err.storage': "Tu navegador bloquea el almacenamiento: no se puede iniciar sesión.",
|
||||||
'welcome.title': "Elige tu nombre de usuario",
|
'welcome.title': "Elige tu nombre de usuario",
|
||||||
'welcome.titleA': "Bienvenido a",
|
'welcome.titleA': "Bienvenido a",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "Elige tu nombre de usuario: así te encontrarán y seguirán tus amigos.",
|
'welcome.text': "Elige tu nombre de usuario: así te encontrarán y seguirán tus amigos.",
|
||||||
'welcome.usernamePh': "tu_usuario",
|
'welcome.usernamePh': "tu_usuario",
|
||||||
'welcome.namePh': "Tu nombre",
|
'welcome.namePh': "Tu nombre",
|
||||||
@@ -1074,13 +1058,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 AzuuCine 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",
|
||||||
@@ -1220,10 +1197,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",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} comentarios",
|
'comments.toggle_other': "{count} comentarios",
|
||||||
'shared.nMembers_one': "{count} miembro",
|
'shared.nMembers_one': "{count} miembro",
|
||||||
'shared.nMembers_other': "{count} miembros",
|
'shared.nMembers_other': "{count} miembros",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Buscar",
|
||||||
|
'search.placeholder': "Títulos, actores, directores, miembros…",
|
||||||
|
'search.placeholderNoMembers': "Títulos, actores, directores…",
|
||||||
|
'search.tabAll': "Todo",
|
||||||
|
'search.tabTitles': "Títulos",
|
||||||
|
'search.tabPeople': "Personas",
|
||||||
|
'search.tabMembers': "Miembros",
|
||||||
|
'search.seeAll': "Ver todo",
|
||||||
|
'search.hint': "Busca una película, serie, anime, actor, director o un miembro por su usuario.",
|
||||||
|
'search.hintNoMembers': "Busca una película, serie, anime, actor o director.",
|
||||||
|
'search.noPeople': "No se encontraron personas.",
|
||||||
|
'search.noMembers': "No se encontraron miembros.",
|
||||||
|
'person.title': "Persona",
|
||||||
|
'person.group.acting': "Actuación",
|
||||||
|
'person.group.voice': "Doblaje",
|
||||||
|
'person.group.directing': "Dirección",
|
||||||
|
'person.group.writing': "Guion",
|
||||||
|
'person.group.production': "Producción",
|
||||||
|
'person.group.other': "Otros puestos",
|
||||||
|
'person.animeStaff': "Equipo de anime",
|
||||||
|
'person.notFound': "Persona no encontrada.",
|
||||||
|
'person.born': "Nació el {date}",
|
||||||
|
'person.died': "Murió el {date}",
|
||||||
|
'person.inLibrary': "En tu biblioteca: {count} / {total}",
|
||||||
|
'person.filmography': "Filmografía",
|
||||||
|
'person.sortPopular': "Populares",
|
||||||
|
'person.sortRecent': "Recientes",
|
||||||
|
'person.empty': "Nada en esta categoría.",
|
||||||
|
'person.bioMore': "Leer más",
|
||||||
|
'person.bioLess': "Mostrar menos",
|
||||||
|
'person.sourceTmdb': "Información y filmografía: TMDB",
|
||||||
|
'person.sourceAnilist': "Información y filmografía: AniList",
|
||||||
|
'person.job.director': "Dirección",
|
||||||
|
'person.job.screenplay': "Guion",
|
||||||
|
'person.job.writer': "Guionista",
|
||||||
|
'person.job.story': "Historia",
|
||||||
|
'person.job.novel': "Novela",
|
||||||
|
'person.job.creator': "Creación",
|
||||||
|
'person.job.producer': "Producción",
|
||||||
|
'person.job.execProducer': "Producción ejecutiva",
|
||||||
|
'person.job.composer': "Música",
|
||||||
|
'person.job.dop': "Fotografía",
|
||||||
|
'person.job.editor': "Montaje",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "General",
|
||||||
|
'stats.tabOther': "Otros",
|
||||||
|
'stats.period': "Periodo",
|
||||||
|
'stats.allYears': "Todos los años",
|
||||||
|
'stats.timeSpent': "Tiempo dedicado",
|
||||||
|
'stats.finished': "Terminados",
|
||||||
|
'stats.filmsSeen': "Películas vistas",
|
||||||
|
'stats.rewatched': "revistas",
|
||||||
|
'stats.avgLength': "Duración media",
|
||||||
|
'stats.episodesSeen': "Episodios vistos",
|
||||||
|
'stats.decades': "Décadas de estreno",
|
||||||
|
'stats.settings': "Ajustes de estadísticas",
|
||||||
|
'stats.monthHidden': "oculto",
|
||||||
|
'stats.hideMonthsHint': "Desmarca un mes para quitarlo del gráfico (por ejemplo, el mes en que lo añadiste todo de golpe). Sus títulos siguen contando en todo lo demás.",
|
||||||
|
'stats.showAllMonths': "Mostrar todo de nuevo",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Explorar sin cuenta",
|
||||||
|
'guest.promptTitle': "Crea tu cuenta para continuar",
|
||||||
|
'guest.promptText': "Para puntuar, añadir un título a tu biblioteca o escribir una reseña necesitas una cuenta. Es gratis y lleva 30 segundos.",
|
||||||
|
'guest.banner': "Estás explorando sin cuenta: inicia sesión para puntuar y seguir tus títulos.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Mis temporadas",
|
||||||
|
'seasons.average': "Media:",
|
||||||
|
'seasons.hint': "Puntúa cada temporada cuando la hayas visto. Al terminar la serie, tu nota final será la media de tus temporadas puntuadas.",
|
||||||
|
'seasons.season': "Temporada {n}",
|
||||||
|
'seasons.seen': "Vista",
|
||||||
|
'seasons.progress': "{seen}/{size} episodios",
|
||||||
|
'seasons.notStarted': "Aún no empezada",
|
||||||
|
'seasons.rateNow': "Puntúala",
|
||||||
|
'seasons.reviewPh': "Tu reseña de la temporada {n}…",
|
||||||
|
'seasons.writeReview': "Escribir una reseña de esta temporada",
|
||||||
|
'seasons.finalHint': "Al terminar la serie, tu nota será la media de tus temporadas puntuadas.",
|
||||||
|
'seasons.finalApplied': "Media de tus temporadas puntuadas.",
|
||||||
|
"rewatch.title": "Volver a ver",
|
||||||
|
"rewatch.badge": "Revisionado",
|
||||||
|
"rewatch.views_one": "Visto {count} vez",
|
||||||
|
"rewatch.views_other": "Visto {count} veces",
|
||||||
|
"rewatch.added": "«{title}»: revisionado añadido",
|
||||||
|
"rewatch.add": "Añadir",
|
||||||
|
"rewatch.finished": "Revisionado terminado, ya está en tu historial.",
|
||||||
|
"rewatch.since": "empezado el {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} episodios vueltos a ver",
|
||||||
|
"rewatch.trackingHint": "Los episodios que marques cuentan para este revisionado. Tu primer visionado, tu nota y tus reseñas no cambian.",
|
||||||
|
"rewatch.markDone": "Terminar ahora",
|
||||||
|
"rewatch.stop": "Detener",
|
||||||
|
"rewatch.stopped": "«{title}»: revisionado detenido",
|
||||||
|
"rewatch.start": "Empezar un revisionado",
|
||||||
|
"rewatch.startHint": "El progreso vuelve al episodio 1, sin tocar tu primer visionado.",
|
||||||
|
"rewatch.alreadyDone": "¿Ya lo volviste a ver? Añadir una fecha",
|
||||||
|
"rewatch.historyEmpty": "Aún no hay revisionados: usa «Volver a ver» arriba.",
|
||||||
|
"rewatch.finishedToast": "«{title}»: revisionado terminado",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -198,6 +198,7 @@ const dict = {
|
|||||||
'auth.err.notConfirmed': 'Confirme d\'abord ton adresse avec le lien reçu par email.',
|
'auth.err.notConfirmed': 'Confirme d\'abord ton adresse avec le lien reçu par email.',
|
||||||
'auth.err.exists': 'Un compte existe déjà avec cet email.',
|
'auth.err.exists': 'Un compte existe déjà avec cet email.',
|
||||||
'auth.err.weak': 'Mot de passe trop faible (au moins {n} caractères, mélange lettres et chiffres).',
|
'auth.err.weak': 'Mot de passe trop faible (au moins {n} caractères, mélange lettres et chiffres).',
|
||||||
|
'auth.err.pwned': "Ce mot de passe est apparu dans une fuite de données connue : choisis-en un autre.",
|
||||||
'auth.err.samePassword': 'Le nouveau mot de passe doit être différent de l\'ancien.',
|
'auth.err.samePassword': 'Le nouveau mot de passe doit être différent de l\'ancien.',
|
||||||
'auth.err.emailRate': 'Trop de demandes. Réessaie dans quelques minutes.',
|
'auth.err.emailRate': 'Trop de demandes. Réessaie dans quelques minutes.',
|
||||||
'auth.err.rate': 'Trop de tentatives. Réessaie dans quelques minutes.',
|
'auth.err.rate': 'Trop de tentatives. Réessaie dans quelques minutes.',
|
||||||
@@ -238,16 +239,8 @@ const dict = {
|
|||||||
'theme.modeStarfield': 'Étoilé',
|
'theme.modeStarfield': 'Étoilé',
|
||||||
'settings.accentColor': 'Couleur d\'accent',
|
'settings.accentColor': 'Couleur d\'accent',
|
||||||
'settings.installApp': 'Installer l\'application',
|
'settings.installApp': 'Installer l\'application',
|
||||||
'settings.installHint': 'Ajoute AzuuCine à 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,16 +249,7 @@ const dict = {
|
|||||||
'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',
|
'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',
|
||||||
@@ -311,10 +295,10 @@ const dict = {
|
|||||||
'admin.suspendedDone': 'Compte suspendu',
|
'admin.suspendedDone': 'Compte suspendu',
|
||||||
'admin.reactivatedDone': 'Compte réactivé',
|
'admin.reactivatedDone': 'Compte réactivé',
|
||||||
'admin.loadError': 'Impossible de charger les données.',
|
'admin.loadError': 'Impossible de charger les données.',
|
||||||
'install.title': 'Installer AzuuCine',
|
'install.title': 'Installer Kino',
|
||||||
'install.ios': 'Ouvre AzuuCine 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 ».',
|
||||||
'install.android': 'Ouvre AzuuCine dans Chrome.\nAppuie sur le menu ⋮ en haut à droite.\nChoisis « Ajouter à l\'écran d\'accueil » (ou « Installer l\'application »).',
|
'install.android': 'Ouvre Kino dans Chrome.\nAppuie sur le menu ⋮ en haut à droite.\nChoisis « Ajouter à l\'écran d\'accueil » (ou « Installer l\'application »).',
|
||||||
'install.desktop': 'Dans la barre d\'adresse, clique sur l\'icône d\'installation à droite (un écran avec une flèche).\nOu : menu ⋮ du navigateur → « Installer AzuuCine ».\nConfirme avec « Installer ».',
|
'install.desktop': 'Dans la barre d\'adresse, clique sur l\'icône d\'installation à droite (un écran avec une flèche).\nOu : menu ⋮ du navigateur → « Installer Kino ».\nConfirme avec « Installer ».',
|
||||||
'install.other': 'Ouvre le menu de ton navigateur.\nCherche « Installer l\'application » ou « Ajouter à l\'écran d\'accueil ».',
|
'install.other': 'Ouvre le menu de ton navigateur.\nCherche « Installer l\'application » ou « Ajouter à l\'écran d\'accueil ».',
|
||||||
'install.gotIt': 'Compris',
|
'install.gotIt': 'Compris',
|
||||||
'settings.themeX': 'Thème {name}',
|
'settings.themeX': 'Thème {name}',
|
||||||
@@ -728,7 +712,7 @@ const dict = {
|
|||||||
'stats.ratedAs_one': 'noté {rating}',
|
'stats.ratedAs_one': 'noté {rating}',
|
||||||
'stats.ratedAs_other': 'notés {rating}',
|
'stats.ratedAs_other': 'notés {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'Sauvegarde AzuuCine',
|
'backup.shareTitle': 'Sauvegarde Kino',
|
||||||
'backup.tooBig': 'Fichier trop volumineux (30 Mo maximum).',
|
'backup.tooBig': 'Fichier trop volumineux (30 Mo maximum).',
|
||||||
'backup.notJson': 'Ce fichier n\'est pas un JSON valide.',
|
'backup.notJson': 'Ce fichier n\'est pas un JSON valide.',
|
||||||
'backup.noItems': 'Aucune fiche trouvée dans ce fichier.',
|
'backup.noItems': 'Aucune fiche trouvée dans ce fichier.',
|
||||||
@@ -805,9 +789,9 @@ const dict = {
|
|||||||
'social.findFriends': 'Trouver des amis',
|
'social.findFriends': 'Trouver des amis',
|
||||||
'social.searchPh': 'Pseudo ou nom…',
|
'social.searchPh': 'Pseudo ou nom…',
|
||||||
'social.noResults': 'Personne ne correspond.',
|
'social.noResults': 'Personne ne correspond.',
|
||||||
'social.inviteHint': 'Tes amis ne sont pas encore sur AzuuCine ? Envoie-leur le lien de ton profil.',
|
'social.inviteHint': 'Tes amis ne sont pas encore sur Kino ? Envoie-leur le lien de ton profil.',
|
||||||
'social.shareMyProfile': 'Partager mon profil',
|
'social.shareMyProfile': 'Partager mon profil',
|
||||||
'social.inviteText': 'Suis-moi sur AzuuCine !',
|
'social.inviteText': 'Suis-moi sur Kino !',
|
||||||
'social.myProfile': 'Mon profil',
|
'social.myProfile': 'Mon profil',
|
||||||
|
|
||||||
'feed.title': 'Mes abonnements',
|
'feed.title': 'Mes abonnements',
|
||||||
@@ -823,7 +807,7 @@ const dict = {
|
|||||||
'auth.err.storage': "Ton navigateur bloque le stockage : impossible de se connecter.",
|
'auth.err.storage': "Ton navigateur bloque le stockage : impossible de se connecter.",
|
||||||
'welcome.title': "Choisis ton pseudo",
|
'welcome.title': "Choisis ton pseudo",
|
||||||
'welcome.titleA': "Bienvenue sur",
|
'welcome.titleA': "Bienvenue sur",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "Choisis ton pseudo : c'est grâce à lui que tes amis te trouveront et pourront te suivre.",
|
'welcome.text': "Choisis ton pseudo : c'est grâce à lui que tes amis te trouveront et pourront te suivre.",
|
||||||
'welcome.usernamePh': "ton_pseudo",
|
'welcome.usernamePh': "ton_pseudo",
|
||||||
'welcome.namePh': "Ton nom",
|
'welcome.namePh': "Ton nom",
|
||||||
@@ -1076,13 +1060,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 AzuuCine à 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é",
|
||||||
@@ -1222,10 +1199,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",
|
||||||
@@ -1270,6 +1243,102 @@ const dict = {
|
|||||||
'comments.toggle_other': "{count} commentaires",
|
'comments.toggle_other': "{count} commentaires",
|
||||||
'shared.nMembers_one': "{count} membre",
|
'shared.nMembers_one': "{count} membre",
|
||||||
'shared.nMembers_other': "{count} membres",
|
'shared.nMembers_other': "{count} membres",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Rechercher",
|
||||||
|
'search.placeholder': "Titres, acteurs, réalisateurs, membres…",
|
||||||
|
'search.placeholderNoMembers': "Titres, acteurs, réalisateurs…",
|
||||||
|
'search.tabAll': "Tout",
|
||||||
|
'search.tabTitles': "Titres",
|
||||||
|
'search.tabPeople': "Personnes",
|
||||||
|
'search.tabMembers': "Membres",
|
||||||
|
'search.seeAll': "Voir tout",
|
||||||
|
'search.hint': "Cherche un film, une série, un anime, un acteur, un réalisateur ou un membre par son pseudo.",
|
||||||
|
'search.hintNoMembers': "Cherche un film, une série, un anime, un acteur ou un réalisateur.",
|
||||||
|
'search.noPeople': "Aucune personne trouvée.",
|
||||||
|
'search.noMembers': "Aucun membre trouvé.",
|
||||||
|
'person.title': "Personne",
|
||||||
|
'person.group.acting': "Acteur·rice",
|
||||||
|
'person.group.voice': "Doublage",
|
||||||
|
'person.group.directing': "Réalisation",
|
||||||
|
'person.group.writing': "Scénario",
|
||||||
|
'person.group.production': "Production",
|
||||||
|
'person.group.other': "Autres postes",
|
||||||
|
'person.animeStaff': "Staff d'anime",
|
||||||
|
'person.notFound': "Personne introuvable.",
|
||||||
|
'person.born': "Né·e le {date}",
|
||||||
|
'person.died': "Mort·e le {date}",
|
||||||
|
'person.inLibrary': "Dans ta bibliothèque : {count} / {total}",
|
||||||
|
'person.filmography': "Filmographie",
|
||||||
|
'person.sortPopular': "Populaires",
|
||||||
|
'person.sortRecent': "Récents",
|
||||||
|
'person.empty': "Rien dans cette catégorie.",
|
||||||
|
'person.bioMore': "Lire la suite",
|
||||||
|
'person.bioLess': "Réduire",
|
||||||
|
'person.sourceTmdb': "Infos et filmographie : TMDB",
|
||||||
|
'person.sourceAnilist': "Infos et filmographie : AniList",
|
||||||
|
'person.job.director': "Réalisation",
|
||||||
|
'person.job.screenplay': "Scénario",
|
||||||
|
'person.job.writer': "Scénariste",
|
||||||
|
'person.job.story': "Histoire",
|
||||||
|
'person.job.novel': "Roman",
|
||||||
|
'person.job.creator': "Création",
|
||||||
|
'person.job.producer': "Production",
|
||||||
|
'person.job.execProducer': "Production exécutive",
|
||||||
|
'person.job.composer': "Musique",
|
||||||
|
'person.job.dop': "Image",
|
||||||
|
'person.job.editor': "Montage",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Général",
|
||||||
|
'stats.tabOther': "Autres",
|
||||||
|
'stats.period': "Période",
|
||||||
|
'stats.allYears': "Toutes les années",
|
||||||
|
'stats.timeSpent': "Temps passé",
|
||||||
|
'stats.finished': "Terminés",
|
||||||
|
'stats.filmsSeen': "Films vus",
|
||||||
|
'stats.rewatched': "revus",
|
||||||
|
'stats.avgLength': "Durée moyenne",
|
||||||
|
'stats.episodesSeen': "Épisodes vus",
|
||||||
|
'stats.decades': "Décennies de sortie",
|
||||||
|
'stats.settings': "Paramètres des stats",
|
||||||
|
'stats.monthHidden': "masqué",
|
||||||
|
'stats.hideMonthsHint': "Décoche un mois pour le retirer de la courbe (par exemple le mois où tu as tout ajouté d'un coup). Les titres restent comptés partout ailleurs.",
|
||||||
|
'stats.showAllMonths': "Tout réafficher",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Explorer sans compte",
|
||||||
|
'guest.promptTitle': "Crée ton compte pour continuer",
|
||||||
|
'guest.promptText': "Pour noter, ajouter un titre à ta bibliothèque ou écrire un avis, il te faut un compte. C'est gratuit et ça prend 30 secondes.",
|
||||||
|
'guest.banner': "Tu explores sans compte : connecte-toi pour noter et suivre tes titres.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Mes saisons",
|
||||||
|
'seasons.average': "Moyenne :",
|
||||||
|
'seasons.hint': "Note chaque saison quand tu l'as vue. Une fois la série terminée, ta note finale devient la moyenne de tes saisons notées.",
|
||||||
|
'seasons.season': "Saison {n}",
|
||||||
|
'seasons.seen': "Vue",
|
||||||
|
'seasons.progress': "{seen}/{size} épisodes",
|
||||||
|
'seasons.notStarted': "Pas encore commencée",
|
||||||
|
'seasons.rateNow': "À noter",
|
||||||
|
'seasons.reviewPh': "Ton avis sur la saison {n}…",
|
||||||
|
'seasons.writeReview': "Écrire un avis sur cette saison",
|
||||||
|
'seasons.finalHint': "À la fin de la série, ta note sera la moyenne de tes saisons notées.",
|
||||||
|
'seasons.finalApplied': "Moyenne de tes saisons notées.",
|
||||||
|
"rewatch.title": "Revoir",
|
||||||
|
"rewatch.badge": "Revisionnage",
|
||||||
|
"rewatch.views_one": "Vu {count} fois",
|
||||||
|
"rewatch.views_other": "Vu {count} fois",
|
||||||
|
"rewatch.added": "« {title} » : revisionnage ajouté",
|
||||||
|
"rewatch.add": "Ajouter",
|
||||||
|
"rewatch.finished": "Revisionnage terminé, il rejoint ton historique.",
|
||||||
|
"rewatch.since": "commencé le {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} épisodes revus",
|
||||||
|
"rewatch.trackingHint": "Les épisodes que tu coches comptent pour ce revisionnage. Ton premier visionnage, ta note et tes avis restent intacts.",
|
||||||
|
"rewatch.markDone": "Terminer maintenant",
|
||||||
|
"rewatch.stop": "Arrêter",
|
||||||
|
"rewatch.stopped": "« {title} » : revisionnage arrêté",
|
||||||
|
"rewatch.start": "Commencer un revisionnage",
|
||||||
|
"rewatch.startHint": "La progression repart de l’épisode 1, sans toucher à ton premier visionnage.",
|
||||||
|
"rewatch.alreadyDone": "Déjà revu ? Ajouter une date",
|
||||||
|
"rewatch.historyEmpty": "Aucun revisionnage pour l’instant : utilise « Revoir » plus haut.",
|
||||||
|
"rewatch.finishedToast": "« {title} » : revisionnage terminé",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'पहले ईमेल में मिले लिंक से अपना पता कन्फ़र्म करें।',
|
'auth.err.notConfirmed': 'पहले ईमेल में मिले लिंक से अपना पता कन्फ़र्म करें।',
|
||||||
'auth.err.exists': 'इस ईमेल से पहले से एक अकाउंट मौजूद है।',
|
'auth.err.exists': 'इस ईमेल से पहले से एक अकाउंट मौजूद है।',
|
||||||
'auth.err.weak': 'पासवर्ड बहुत कमज़ोर है (कम से कम {n} कैरेक्टर, अक्षर और अंक मिलाकर)।',
|
'auth.err.weak': 'पासवर्ड बहुत कमज़ोर है (कम से कम {n} कैरेक्टर, अक्षर और अंक मिलाकर)।',
|
||||||
|
'auth.err.pwned': "यह पासवर्ड किसी ज्ञात डेटा लीक में सामने आ चुका है — कृपया कोई दूसरा चुनें।",
|
||||||
'auth.err.samePassword': 'नया पासवर्ड पुराने से अलग होना चाहिए।',
|
'auth.err.samePassword': 'नया पासवर्ड पुराने से अलग होना चाहिए।',
|
||||||
'auth.err.emailRate': 'बहुत ज़्यादा रिक्वेस्ट। कुछ मिनट बाद फिर कोशिश करें।',
|
'auth.err.emailRate': 'बहुत ज़्यादा रिक्वेस्ट। कुछ मिनट बाद फिर कोशिश करें।',
|
||||||
'auth.err.rate': 'बहुत ज़्यादा कोशिशें। कुछ मिनट बाद फिर कोशिश करें।',
|
'auth.err.rate': 'बहुत ज़्यादा कोशिशें। कुछ मिनट बाद फिर कोशिश करें।',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'तारों भरा',
|
'theme.modeStarfield': 'तारों भरा',
|
||||||
'settings.accentColor': 'एक्सेंट रंग',
|
'settings.accentColor': 'एक्सेंट रंग',
|
||||||
'settings.installApp': 'ऐप इंस्टॉल करें',
|
'settings.installApp': 'ऐप इंस्टॉल करें',
|
||||||
'settings.installHint': 'AzuuCine को अपनी होम स्क्रीन या डेस्कटॉप पर जोड़ें।',
|
'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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': 'अभी कोई समीक्षा नहीं',
|
'reviews.none': 'अभी कोई समीक्षा नहीं',
|
||||||
'reviews.seeAll': 'सभी समीक्षाएँ देखें',
|
'reviews.seeAll': 'सभी समीक्षाएँ देखें',
|
||||||
'reviews.react': 'प्रतिक्रिया दें',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'AzuuCine इंस्टॉल करें',
|
'install.title': 'Kino इंस्टॉल करें',
|
||||||
'install.ios': 'AzuuCine को Safari में खोलें।\nShare बटन दबाएँ (ऊपर तीर वाला वर्ग)।\n“Add to Home Screen” चुनें, फिर “Add”।',
|
'install.ios': 'Kino को Safari में खोलें।\nShare बटन दबाएँ (ऊपर तीर वाला वर्ग)।\n“Add to Home Screen” चुनें, फिर “Add”।',
|
||||||
'install.android': 'AzuuCine को Chrome में खोलें।\nऊपर दाईं ओर ⋮ मेनू दबाएँ।\n“होम स्क्रीन में जोड़ें” (या “ऐप इंस्टॉल करें”) चुनें।',
|
'install.android': 'Kino को Chrome में खोलें।\nऊपर दाईं ओर ⋮ मेनू दबाएँ।\n“होम स्क्रीन में जोड़ें” (या “ऐप इंस्टॉल करें”) चुनें।',
|
||||||
'install.desktop': 'एड्रेस बार में दाईं ओर इंस्टॉल आइकन पर क्लिक करें (तीर वाली स्क्रीन)।\nया: ब्राउज़र का ⋮ मेनू → “AzuuCine इंस्टॉल करें”।\n“Install” से पुष्टि करें।',
|
'install.desktop': 'एड्रेस बार में दाईं ओर इंस्टॉल आइकन पर क्लिक करें (तीर वाली स्क्रीन)।\nया: ब्राउज़र का ⋮ मेनू → “Kino इंस्टॉल करें”।\n“Install” से पुष्टि करें।',
|
||||||
'install.other': 'अपने ब्राउज़र का मेनू खोलें।\n“ऐप इंस्टॉल करें” या “होम स्क्रीन में जोड़ें” खोजें।',
|
'install.other': 'अपने ब्राउज़र का मेनू खोलें।\n“ऐप इंस्टॉल करें” या “होम स्क्रीन में जोड़ें” खोजें।',
|
||||||
'install.gotIt': 'समझ गया',
|
'install.gotIt': 'समझ गया',
|
||||||
'settings.themeX': '{name} थीम',
|
'settings.themeX': '{name} थीम',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': '{rating} रेटिंग',
|
'stats.ratedAs_one': '{rating} रेटिंग',
|
||||||
'stats.ratedAs_other': '{rating} रेटिंग',
|
'stats.ratedAs_other': '{rating} रेटिंग',
|
||||||
|
|
||||||
'backup.shareTitle': 'AzuuCine बैकअप',
|
'backup.shareTitle': 'Kino बैकअप',
|
||||||
'backup.tooBig': 'फ़ाइल बहुत बड़ी है (अधिकतम 30 MB)।',
|
'backup.tooBig': 'फ़ाइल बहुत बड़ी है (अधिकतम 30 MB)।',
|
||||||
'backup.notJson': 'यह फ़ाइल मान्य JSON नहीं है।',
|
'backup.notJson': 'यह फ़ाइल मान्य JSON नहीं है।',
|
||||||
'backup.noItems': 'इस फ़ाइल में कोई एंट्री नहीं मिली।',
|
'backup.noItems': 'इस फ़ाइल में कोई एंट्री नहीं मिली।',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'दोस्त खोजें',
|
'social.findFriends': 'दोस्त खोजें',
|
||||||
'social.searchPh': 'यूज़रनेम या नाम…',
|
'social.searchPh': 'यूज़रनेम या नाम…',
|
||||||
'social.noResults': 'कोई मेल नहीं मिला।',
|
'social.noResults': 'कोई मेल नहीं मिला।',
|
||||||
'social.inviteHint': 'आपके दोस्त अभी AzuuCine पर नहीं हैं? उन्हें अपनी प्रोफ़ाइल का लिंक भेजें।',
|
'social.inviteHint': 'आपके दोस्त अभी Kino पर नहीं हैं? उन्हें अपनी प्रोफ़ाइल का लिंक भेजें।',
|
||||||
'social.shareMyProfile': 'मेरी प्रोफ़ाइल शेयर करें',
|
'social.shareMyProfile': 'मेरी प्रोफ़ाइल शेयर करें',
|
||||||
'social.inviteText': 'AzuuCine पर मुझे फ़ॉलो करें!',
|
'social.inviteText': 'Kino पर मुझे फ़ॉलो करें!',
|
||||||
'social.myProfile': 'मेरी प्रोफ़ाइल',
|
'social.myProfile': 'मेरी प्रोफ़ाइल',
|
||||||
|
|
||||||
'feed.title': 'फ़ॉलोइंग',
|
'feed.title': 'फ़ॉलोइंग',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': 'आपका ब्राउज़र स्टोरेज ब्लॉक कर रहा है: साइन इन नहीं हो सकता।',
|
'auth.err.storage': 'आपका ब्राउज़र स्टोरेज ब्लॉक कर रहा है: साइन इन नहीं हो सकता।',
|
||||||
'welcome.title': 'अपना यूज़रनेम चुनें',
|
'welcome.title': 'अपना यूज़रनेम चुनें',
|
||||||
'welcome.titleA': 'स्वागत है',
|
'welcome.titleA': 'स्वागत है',
|
||||||
'welcome.titleB': 'AzuuCine',
|
'welcome.titleB': 'Kino',
|
||||||
'welcome.text': 'एक यूज़रनेम चुनें: इसी से आपके दोस्त आपको ढूँढकर फ़ॉलो कर पाएँगे।',
|
'welcome.text': 'एक यूज़रनेम चुनें: इसी से आपके दोस्त आपको ढूँढकर फ़ॉलो कर पाएँगे।',
|
||||||
'welcome.usernamePh': 'your_username',
|
'welcome.usernamePh': 'your_username',
|
||||||
'welcome.namePh': 'आपका नाम',
|
'welcome.namePh': 'आपका नाम',
|
||||||
@@ -1074,13 +1058,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 पर पहले AzuuCine को होम स्क्रीन पर जोड़ें (iOS 16.4 या नया), फिर सूचनाएँ चालू करने के लिए ऐप को उसके आइकन से खोलें।",
|
|
||||||
'push.unsupported': "यह ब्राउज़र पुश सूचनाएँ सपोर्ट नहीं करता।",
|
|
||||||
'push.denied': "इस साइट के लिए सूचनाएँ ब्लॉक हैं। ब्राउज़र सेटिंग्स में अनुमति दें, फिर दोबारा कोशिश करें।",
|
|
||||||
'push.notReady': "पुश सूचनाएँ अभी सर्वर पर उपलब्ध नहीं हैं।",
|
|
||||||
'push.error': "सूचनाएँ चालू नहीं हो सकीं। अपना कनेक्शन जाँचें और दोबारा कोशिश करें।",
|
|
||||||
'netPill.offlineSync': "ऑफ़लाइन — आपके बदलाव सिंक हो जाएँगे",
|
'netPill.offlineSync': "ऑफ़लाइन — आपके बदलाव सिंक हो जाएँगे",
|
||||||
'netPill.offlineLocal': "ऑफ़लाइन — सब कुछ इस डिवाइस पर सहेजा रहता है",
|
'netPill.offlineLocal': "ऑफ़लाइन — सब कुछ इस डिवाइस पर सहेजा रहता है",
|
||||||
'netPill.synced': "सिंक हो गया",
|
'netPill.synced': "सिंक हो गया",
|
||||||
@@ -1220,10 +1197,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': "नई साझा सूची",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} टिप्पणियाँ",
|
'comments.toggle_other': "{count} टिप्पणियाँ",
|
||||||
'shared.nMembers_one': "{count} सदस्य",
|
'shared.nMembers_one': "{count} सदस्य",
|
||||||
'shared.nMembers_other': "{count} सदस्य",
|
'shared.nMembers_other': "{count} सदस्य",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "खोजें",
|
||||||
|
'search.placeholder': "टाइटल, कलाकार, निर्देशक, सदस्य…",
|
||||||
|
'search.placeholderNoMembers': "टाइटल, कलाकार, निर्देशक…",
|
||||||
|
'search.tabAll': "सभी",
|
||||||
|
'search.tabTitles': "टाइटल",
|
||||||
|
'search.tabPeople': "लोग",
|
||||||
|
'search.tabMembers': "सदस्य",
|
||||||
|
'search.seeAll': "सभी देखें",
|
||||||
|
'search.hint': "कोई फ़िल्म, सीरीज़, ऐनिमे, कलाकार, निर्देशक या यूज़रनेम से सदस्य खोजें।",
|
||||||
|
'search.hintNoMembers': "कोई फ़िल्म, सीरीज़, ऐनिमे, कलाकार या निर्देशक खोजें।",
|
||||||
|
'search.noPeople': "कोई व्यक्ति नहीं मिला।",
|
||||||
|
'search.noMembers': "कोई सदस्य नहीं मिला।",
|
||||||
|
'person.title': "व्यक्ति",
|
||||||
|
'person.group.acting': "अभिनय",
|
||||||
|
'person.group.voice': "डबिंग",
|
||||||
|
'person.group.directing': "निर्देशन",
|
||||||
|
'person.group.writing': "पटकथा",
|
||||||
|
'person.group.production': "निर्माण",
|
||||||
|
'person.group.other': "अन्य भूमिकाएँ",
|
||||||
|
'person.animeStaff': "ऐनिमे टीम",
|
||||||
|
'person.notFound': "व्यक्ति नहीं मिला।",
|
||||||
|
'person.born': "जन्म: {date}",
|
||||||
|
'person.died': "निधन: {date}",
|
||||||
|
'person.inLibrary': "आपकी लाइब्रेरी में: {count} / {total}",
|
||||||
|
'person.filmography': "फ़िल्मोग्राफ़ी",
|
||||||
|
'person.sortPopular': "लोकप्रिय",
|
||||||
|
'person.sortRecent': "नवीनतम",
|
||||||
|
'person.empty': "इस श्रेणी में कुछ नहीं।",
|
||||||
|
'person.bioMore': "और पढ़ें",
|
||||||
|
'person.bioLess': "कम दिखाएँ",
|
||||||
|
'person.sourceTmdb': "जानकारी और फ़िल्मोग्राफ़ी: TMDB",
|
||||||
|
'person.sourceAnilist': "जानकारी और फ़िल्मोग्राफ़ी: AniList",
|
||||||
|
'person.job.director': "निर्देशन",
|
||||||
|
'person.job.screenplay': "पटकथा",
|
||||||
|
'person.job.writer': "लेखक",
|
||||||
|
'person.job.story': "कहानी",
|
||||||
|
'person.job.novel': "उपन्यास",
|
||||||
|
'person.job.creator': "रचनाकार",
|
||||||
|
'person.job.producer': "निर्माता",
|
||||||
|
'person.job.execProducer': "कार्यकारी निर्माता",
|
||||||
|
'person.job.composer': "संगीत",
|
||||||
|
'person.job.dop': "छायांकन",
|
||||||
|
'person.job.editor': "संपादन",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "सामान्य",
|
||||||
|
'stats.tabOther': "अन्य",
|
||||||
|
'stats.period': "अवधि",
|
||||||
|
'stats.allYears': "सभी वर्ष",
|
||||||
|
'stats.timeSpent': "बिताया समय",
|
||||||
|
'stats.finished': "पूरे किए",
|
||||||
|
'stats.filmsSeen': "देखी गई फ़िल्में",
|
||||||
|
'stats.rewatched': "दोबारा देखी",
|
||||||
|
'stats.avgLength': "औसत अवधि",
|
||||||
|
'stats.episodesSeen': "देखे गए एपिसोड",
|
||||||
|
'stats.decades': "रिलीज़ के दशक",
|
||||||
|
'stats.settings': "आँकड़ों की सेटिंग",
|
||||||
|
'stats.monthHidden': "छिपा",
|
||||||
|
'stats.hideMonthsHint': "किसी महीने को ग्राफ़ से हटाने के लिए उसका चिह्न हटाएँ (जैसे वह महीना जब आपने सब कुछ एक साथ जोड़ा)। उसके टाइटल बाकी जगह गिने जाते रहेंगे।",
|
||||||
|
'stats.showAllMonths': "सब फिर से दिखाएँ",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "बिना खाते के देखें",
|
||||||
|
'guest.promptTitle': "जारी रखने के लिए अपना खाता बनाएँ",
|
||||||
|
'guest.promptText': "रेटिंग देने, लाइब्रेरी में टाइटल जोड़ने या समीक्षा लिखने के लिए खाता चाहिए। यह मुफ़्त है और 30 सेकंड लगते हैं।",
|
||||||
|
'guest.banner': "आप बिना खाते के देख रहे हैं: रेटिंग देने और टाइटल ट्रैक करने के लिए लॉग इन करें।",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "मेरे सीज़न",
|
||||||
|
'seasons.average': "औसत:",
|
||||||
|
'seasons.hint': "हर सीज़न देखने के बाद उसे रेटिंग दें। सीरीज़ पूरी होने पर आपकी अंतिम रेटिंग आपके रेट किए सीज़नों का औसत होगी।",
|
||||||
|
'seasons.season': "सीज़न {n}",
|
||||||
|
'seasons.seen': "देखा",
|
||||||
|
'seasons.progress': "{seen}/{size} एपिसोड",
|
||||||
|
'seasons.notStarted': "अभी शुरू नहीं",
|
||||||
|
'seasons.rateNow': "रेट करें",
|
||||||
|
'seasons.reviewPh': "सीज़न {n} पर आपकी राय…",
|
||||||
|
'seasons.writeReview': "इस सीज़न की समीक्षा लिखें",
|
||||||
|
'seasons.finalHint': "सीरीज़ पूरी होने पर आपकी रेटिंग रेट किए सीज़नों का औसत होगी।",
|
||||||
|
'seasons.finalApplied': "रेट किए सीज़नों का औसत।",
|
||||||
|
"rewatch.title": "फिर से देखें",
|
||||||
|
"rewatch.badge": "दोबारा देख रहे हैं",
|
||||||
|
"rewatch.views_one": "{count} बार देखा",
|
||||||
|
"rewatch.views_other": "{count} बार देखा",
|
||||||
|
"rewatch.added": "“{title}”: दोबारा देखना जोड़ा गया",
|
||||||
|
"rewatch.add": "जोड़ें",
|
||||||
|
"rewatch.finished": "दोबारा देखना पूरा हुआ, अब यह आपके इतिहास में है।",
|
||||||
|
"rewatch.since": "{date} को शुरू हुआ",
|
||||||
|
"rewatch.progress": "{seen} / {total} एपिसोड दोबारा देखे",
|
||||||
|
"rewatch.trackingHint": "अब आप जो एपिसोड चुनेंगे वे इस बार दोबारा देखने में गिने जाएंगे। आपका पहला देखना, रेटिंग और समीक्षाएँ वैसी ही रहेंगी।",
|
||||||
|
"rewatch.markDone": "अभी पूरा करें",
|
||||||
|
"rewatch.stop": "रोकें",
|
||||||
|
"rewatch.stopped": "“{title}”: दोबारा देखना रोका गया",
|
||||||
|
"rewatch.start": "दोबारा देखना शुरू करें",
|
||||||
|
"rewatch.startHint": "प्रगति एपिसोड 1 से फिर शुरू होगी, आपके पहले देखने पर कोई असर नहीं।",
|
||||||
|
"rewatch.alreadyDone": "पहले ही दोबारा देख लिया? तारीख जोड़ें",
|
||||||
|
"rewatch.historyEmpty": "अभी तक दोबारा नहीं देखा: ऊपर “फिर से देखें” का उपयोग करें।",
|
||||||
|
"rewatch.finishedToast": "“{title}”: दोबारा देखना पूरा हुआ",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Konfirmasi dulu alamatmu lewat tautan yang dikirim ke email.',
|
'auth.err.notConfirmed': 'Konfirmasi dulu alamatmu lewat tautan yang dikirim ke email.',
|
||||||
'auth.err.exists': 'Sudah ada akun dengan email ini.',
|
'auth.err.exists': 'Sudah ada akun dengan email ini.',
|
||||||
'auth.err.weak': 'Kata sandi terlalu lemah (minimal {n} karakter, campur huruf dan angka).',
|
'auth.err.weak': 'Kata sandi terlalu lemah (minimal {n} karakter, campur huruf dan angka).',
|
||||||
|
'auth.err.pwned': "Kata sandi ini pernah muncul dalam kebocoran data yang diketahui — pilih yang lain.",
|
||||||
'auth.err.samePassword': 'Kata sandi baru harus beda dari yang lama.',
|
'auth.err.samePassword': 'Kata sandi baru harus beda dari yang lama.',
|
||||||
'auth.err.emailRate': 'Terlalu banyak permintaan. Coba lagi beberapa menit lagi.',
|
'auth.err.emailRate': 'Terlalu banyak permintaan. Coba lagi beberapa menit lagi.',
|
||||||
'auth.err.rate': 'Terlalu banyak percobaan. Coba lagi beberapa menit lagi.',
|
'auth.err.rate': 'Terlalu banyak percobaan. Coba lagi beberapa menit lagi.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Berbintang',
|
'theme.modeStarfield': 'Berbintang',
|
||||||
'settings.accentColor': 'Warna aksen',
|
'settings.accentColor': 'Warna aksen',
|
||||||
'settings.installApp': 'Pasang aplikasi',
|
'settings.installApp': 'Pasang aplikasi',
|
||||||
'settings.installHint': 'Tambahkan AzuuCine 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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': 'Belum ada ulasan',
|
'reviews.none': 'Belum ada ulasan',
|
||||||
'reviews.seeAll': 'Lihat semua ulasan',
|
'reviews.seeAll': 'Lihat semua ulasan',
|
||||||
'reviews.react': 'Reaksi',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Pasang AzuuCine',
|
'install.title': 'Pasang Kino',
|
||||||
'install.ios': 'Buka AzuuCine 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”.',
|
||||||
'install.android': 'Buka AzuuCine di Chrome.\nKetuk menu ⋮ di kanan atas.\nPilih “Tambahkan ke layar utama” (atau “Pasang aplikasi”).',
|
'install.android': 'Buka Kino di Chrome.\nKetuk menu ⋮ di kanan atas.\nPilih “Tambahkan ke layar utama” (atau “Pasang aplikasi”).',
|
||||||
'install.desktop': 'Di bilah alamat, klik ikon pasang di sebelah kanan (layar dengan panah).\nAtau: menu ⋮ browser → “Pasang AzuuCine”.\nKonfirmasi dengan “Pasang”.',
|
'install.desktop': 'Di bilah alamat, klik ikon pasang di sebelah kanan (layar dengan panah).\nAtau: menu ⋮ browser → “Pasang Kino”.\nKonfirmasi dengan “Pasang”.',
|
||||||
'install.other': 'Buka menu browser kamu.\nCari “Pasang aplikasi” atau “Tambahkan ke layar utama”.',
|
'install.other': 'Buka menu browser kamu.\nCari “Pasang aplikasi” atau “Tambahkan ke layar utama”.',
|
||||||
'install.gotIt': 'Mengerti',
|
'install.gotIt': 'Mengerti',
|
||||||
'settings.themeX': 'Tema {name}',
|
'settings.themeX': 'Tema {name}',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': 'dinilai {rating}',
|
'stats.ratedAs_one': 'dinilai {rating}',
|
||||||
'stats.ratedAs_other': 'dinilai {rating}',
|
'stats.ratedAs_other': 'dinilai {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'Cadangan AzuuCine',
|
'backup.shareTitle': 'Cadangan Kino',
|
||||||
'backup.tooBig': 'File terlalu besar (maks. 30 MB).',
|
'backup.tooBig': 'File terlalu besar (maks. 30 MB).',
|
||||||
'backup.notJson': 'File ini bukan JSON yang valid.',
|
'backup.notJson': 'File ini bukan JSON yang valid.',
|
||||||
'backup.noItems': 'Tidak ada entri di file ini.',
|
'backup.noItems': 'Tidak ada entri di file ini.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Cari teman',
|
'social.findFriends': 'Cari teman',
|
||||||
'social.searchPh': 'Username atau nama…',
|
'social.searchPh': 'Username atau nama…',
|
||||||
'social.noResults': 'Tidak ada yang cocok.',
|
'social.noResults': 'Tidak ada yang cocok.',
|
||||||
'social.inviteHint': 'Temanmu belum ada di AzuuCine? Kirimi mereka tautan profilmu.',
|
'social.inviteHint': 'Temanmu belum ada di Kino? Kirimi mereka tautan profilmu.',
|
||||||
'social.shareMyProfile': 'Bagikan profilku',
|
'social.shareMyProfile': 'Bagikan profilku',
|
||||||
'social.inviteText': 'Ikuti aku di AzuuCine!',
|
'social.inviteText': 'Ikuti aku di Kino!',
|
||||||
'social.myProfile': 'Profilku',
|
'social.myProfile': 'Profilku',
|
||||||
|
|
||||||
'feed.title': 'Yang kuikuti',
|
'feed.title': 'Yang kuikuti',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': 'Browser kamu memblokir penyimpanan: tidak bisa masuk.',
|
'auth.err.storage': 'Browser kamu memblokir penyimpanan: tidak bisa masuk.',
|
||||||
'welcome.title': 'Pilih username-mu',
|
'welcome.title': 'Pilih username-mu',
|
||||||
'welcome.titleA': 'Selamat datang di',
|
'welcome.titleA': 'Selamat datang di',
|
||||||
'welcome.titleB': 'AzuuCine',
|
'welcome.titleB': 'Kino',
|
||||||
'welcome.text': 'Pilih username: lewat username inilah teman-temanmu bisa menemukan dan mengikutimu.',
|
'welcome.text': 'Pilih username: lewat username inilah teman-temanmu bisa menemukan dan mengikutimu.',
|
||||||
'welcome.usernamePh': 'username_kamu',
|
'welcome.usernamePh': 'username_kamu',
|
||||||
'welcome.namePh': 'Namamu',
|
'welcome.namePh': 'Namamu',
|
||||||
@@ -1074,13 +1058,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 AzuuCine 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",
|
||||||
@@ -1220,10 +1197,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",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} komentar",
|
'comments.toggle_other': "{count} komentar",
|
||||||
'shared.nMembers_one': "{count} anggota",
|
'shared.nMembers_one': "{count} anggota",
|
||||||
'shared.nMembers_other': "{count} anggota",
|
'shared.nMembers_other': "{count} anggota",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Cari",
|
||||||
|
'search.placeholder': "Judul, aktor, sutradara, anggota…",
|
||||||
|
'search.placeholderNoMembers': "Judul, aktor, sutradara…",
|
||||||
|
'search.tabAll': "Semua",
|
||||||
|
'search.tabTitles': "Judul",
|
||||||
|
'search.tabPeople': "Orang",
|
||||||
|
'search.tabMembers': "Anggota",
|
||||||
|
'search.seeAll': "Lihat semua",
|
||||||
|
'search.hint': "Cari film, serial, anime, aktor, sutradara, atau anggota lewat nama pengguna.",
|
||||||
|
'search.hintNoMembers': "Cari film, serial, anime, aktor, atau sutradara.",
|
||||||
|
'search.noPeople': "Tidak ada orang ditemukan.",
|
||||||
|
'search.noMembers': "Tidak ada anggota ditemukan.",
|
||||||
|
'person.title': "Orang",
|
||||||
|
'person.group.acting': "Akting",
|
||||||
|
'person.group.voice': "Pengisi suara",
|
||||||
|
'person.group.directing': "Penyutradaraan",
|
||||||
|
'person.group.writing': "Skenario",
|
||||||
|
'person.group.production': "Produksi",
|
||||||
|
'person.group.other': "Peran lain",
|
||||||
|
'person.animeStaff': "Staf anime",
|
||||||
|
'person.notFound': "Orang tidak ditemukan.",
|
||||||
|
'person.born': "Lahir {date}",
|
||||||
|
'person.died': "Wafat {date}",
|
||||||
|
'person.inLibrary': "Di perpustakaanmu: {count} / {total}",
|
||||||
|
'person.filmography': "Filmografi",
|
||||||
|
'person.sortPopular': "Populer",
|
||||||
|
'person.sortRecent': "Terbaru",
|
||||||
|
'person.empty': "Tidak ada di kategori ini.",
|
||||||
|
'person.bioMore': "Baca selengkapnya",
|
||||||
|
'person.bioLess': "Ringkas",
|
||||||
|
'person.sourceTmdb': "Info dan filmografi: TMDB",
|
||||||
|
'person.sourceAnilist': "Info dan filmografi: AniList",
|
||||||
|
'person.job.director': "Sutradara",
|
||||||
|
'person.job.screenplay': "Skenario",
|
||||||
|
'person.job.writer': "Penulis",
|
||||||
|
'person.job.story': "Cerita",
|
||||||
|
'person.job.novel': "Novel",
|
||||||
|
'person.job.creator': "Pencipta",
|
||||||
|
'person.job.producer': "Produser",
|
||||||
|
'person.job.execProducer': "Produser eksekutif",
|
||||||
|
'person.job.composer': "Musik",
|
||||||
|
'person.job.dop': "Sinematografi",
|
||||||
|
'person.job.editor': "Penyunting",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Umum",
|
||||||
|
'stats.tabOther': "Lainnya",
|
||||||
|
'stats.period': "Periode",
|
||||||
|
'stats.allYears': "Semua tahun",
|
||||||
|
'stats.timeSpent': "Waktu yang dihabiskan",
|
||||||
|
'stats.finished': "Selesai",
|
||||||
|
'stats.filmsSeen': "Film ditonton",
|
||||||
|
'stats.rewatched': "ditonton ulang",
|
||||||
|
'stats.avgLength': "Durasi rata-rata",
|
||||||
|
'stats.episodesSeen': "Episode ditonton",
|
||||||
|
'stats.decades': "Dekade rilis",
|
||||||
|
'stats.settings': "Pengaturan statistik",
|
||||||
|
'stats.monthHidden': "disembunyikan",
|
||||||
|
'stats.hideMonthsHint': "Hapus centang bulan untuk mengeluarkannya dari grafik (misalnya bulan saat kamu menambahkan semuanya sekaligus). Judulnya tetap dihitung di tempat lain.",
|
||||||
|
'stats.showAllMonths': "Tampilkan semua lagi",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Jelajahi tanpa akun",
|
||||||
|
'guest.promptTitle': "Buat akunmu untuk melanjutkan",
|
||||||
|
'guest.promptText': "Untuk memberi nilai, menambahkan judul ke perpustakaanmu, atau menulis ulasan, kamu perlu akun. Gratis dan hanya 30 detik.",
|
||||||
|
'guest.banner': "Kamu menjelajah tanpa akun: masuk untuk memberi nilai dan melacak judulmu.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Musimku",
|
||||||
|
'seasons.average': "Rata-rata:",
|
||||||
|
'seasons.hint': "Beri nilai tiap musim setelah kamu menontonnya. Saat serial selesai, nilai akhirmu jadi rata-rata musim yang kamu nilai.",
|
||||||
|
'seasons.season': "Musim {n}",
|
||||||
|
'seasons.seen': "Sudah ditonton",
|
||||||
|
'seasons.progress': "{seen}/{size} episode",
|
||||||
|
'seasons.notStarted': "Belum dimulai",
|
||||||
|
'seasons.rateNow': "Beri nilai",
|
||||||
|
'seasons.reviewPh': "Ulasanmu tentang musim {n}…",
|
||||||
|
'seasons.writeReview': "Tulis ulasan musim ini",
|
||||||
|
'seasons.finalHint': "Saat serial selesai, nilaimu jadi rata-rata musim yang kamu nilai.",
|
||||||
|
'seasons.finalApplied': "Rata-rata musim yang kamu nilai.",
|
||||||
|
"rewatch.title": "Tonton ulang",
|
||||||
|
"rewatch.badge": "Menonton ulang",
|
||||||
|
"rewatch.views_one": "Ditonton {count} kali",
|
||||||
|
"rewatch.views_other": "Ditonton {count} kali",
|
||||||
|
"rewatch.added": "“{title}”: tonton ulang ditambahkan",
|
||||||
|
"rewatch.add": "Tambah",
|
||||||
|
"rewatch.finished": "Tonton ulang selesai, kini ada di riwayatmu.",
|
||||||
|
"rewatch.since": "dimulai {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} episode ditonton ulang",
|
||||||
|
"rewatch.trackingHint": "Episode yang kamu centang sekarang dihitung untuk tonton ulang ini. Tontonan pertama, nilai, dan ulasanmu tidak berubah.",
|
||||||
|
"rewatch.markDone": "Selesaikan sekarang",
|
||||||
|
"rewatch.stop": "Hentikan",
|
||||||
|
"rewatch.stopped": "“{title}”: tonton ulang dihentikan",
|
||||||
|
"rewatch.start": "Mulai tonton ulang",
|
||||||
|
"rewatch.startHint": "Progres mulai lagi dari episode 1, tanpa mengubah tontonan pertamamu.",
|
||||||
|
"rewatch.alreadyDone": "Sudah ditonton ulang? Tambah tanggal",
|
||||||
|
"rewatch.historyEmpty": "Belum ada tonton ulang: gunakan “Tonton ulang” di atas.",
|
||||||
|
"rewatch.finishedToast": "“{title}”: tonton ulang selesai",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Prima conferma il tuo indirizzo con il link ricevuto via email.',
|
'auth.err.notConfirmed': 'Prima conferma il tuo indirizzo con il link ricevuto via email.',
|
||||||
'auth.err.exists': 'Esiste già un account con questa email.',
|
'auth.err.exists': 'Esiste già un account con questa email.',
|
||||||
'auth.err.weak': 'Password troppo debole (almeno {n} caratteri, mescola lettere e numeri).',
|
'auth.err.weak': 'Password troppo debole (almeno {n} caratteri, mescola lettere e numeri).',
|
||||||
|
'auth.err.pwned': "Questa password è comparsa in una fuga di dati nota: scegline un'altra.",
|
||||||
'auth.err.samePassword': 'La nuova password deve essere diversa da quella vecchia.',
|
'auth.err.samePassword': 'La nuova password deve essere diversa da quella vecchia.',
|
||||||
'auth.err.emailRate': 'Troppe richieste. Riprova tra qualche minuto.',
|
'auth.err.emailRate': 'Troppe richieste. Riprova tra qualche minuto.',
|
||||||
'auth.err.rate': 'Troppi tentativi. Riprova tra qualche minuto.',
|
'auth.err.rate': 'Troppi tentativi. Riprova tra qualche minuto.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Stellato',
|
'theme.modeStarfield': 'Stellato',
|
||||||
'settings.accentColor': 'Colore accento',
|
'settings.accentColor': 'Colore accento',
|
||||||
'settings.installApp': 'Installa l\'app',
|
'settings.installApp': 'Installa l\'app',
|
||||||
'settings.installHint': 'Aggiungi AzuuCine 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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'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',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Installa AzuuCine',
|
'install.title': 'Installa Kino',
|
||||||
'install.ios': 'Apri AzuuCine 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».',
|
||||||
'install.android': 'Apri AzuuCine in Chrome.\nTocca il menu ⋮ in alto a destra.\nScegli «Aggiungi a schermata Home» (o «Installa app»).',
|
'install.android': 'Apri Kino in Chrome.\nTocca il menu ⋮ in alto a destra.\nScegli «Aggiungi a schermata Home» (o «Installa app»).',
|
||||||
'install.desktop': 'Nella barra degli indirizzi, clicca sull\'icona di installazione a destra (uno schermo con una freccia).\nOppure: menu ⋮ del browser → «Installa AzuuCine».\nConferma con «Installa».',
|
'install.desktop': 'Nella barra degli indirizzi, clicca sull\'icona di installazione a destra (uno schermo con una freccia).\nOppure: menu ⋮ del browser → «Installa Kino».\nConferma con «Installa».',
|
||||||
'install.other': 'Apri il menu del browser.\nCerca «Installa app» o «Aggiungi a schermata Home».',
|
'install.other': 'Apri il menu del browser.\nCerca «Installa app» o «Aggiungi a schermata Home».',
|
||||||
'install.gotIt': 'Ho capito',
|
'install.gotIt': 'Ho capito',
|
||||||
'settings.themeX': 'Tema {name}',
|
'settings.themeX': 'Tema {name}',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': 'votato {rating}',
|
'stats.ratedAs_one': 'votato {rating}',
|
||||||
'stats.ratedAs_other': 'votati {rating}',
|
'stats.ratedAs_other': 'votati {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'Backup AzuuCine',
|
'backup.shareTitle': 'Backup Kino',
|
||||||
'backup.tooBig': 'File troppo grande (massimo 30 MB).',
|
'backup.tooBig': 'File troppo grande (massimo 30 MB).',
|
||||||
'backup.notJson': 'Questo file non è un JSON valido.',
|
'backup.notJson': 'Questo file non è un JSON valido.',
|
||||||
'backup.noItems': 'Nessuna scheda trovata in questo file.',
|
'backup.noItems': 'Nessuna scheda trovata in questo file.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Trova amici',
|
'social.findFriends': 'Trova amici',
|
||||||
'social.searchPh': 'Username o nome…',
|
'social.searchPh': 'Username o nome…',
|
||||||
'social.noResults': 'Nessun risultato.',
|
'social.noResults': 'Nessun risultato.',
|
||||||
'social.inviteHint': 'I tuoi amici non sono ancora su AzuuCine? Mandagli il link del tuo profilo.',
|
'social.inviteHint': 'I tuoi amici non sono ancora su Kino? Mandagli il link del tuo profilo.',
|
||||||
'social.shareMyProfile': 'Condividi il mio profilo',
|
'social.shareMyProfile': 'Condividi il mio profilo',
|
||||||
'social.inviteText': 'Seguimi su AzuuCine!',
|
'social.inviteText': 'Seguimi su Kino!',
|
||||||
'social.myProfile': 'Il mio profilo',
|
'social.myProfile': 'Il mio profilo',
|
||||||
|
|
||||||
'feed.title': 'Persone che segui',
|
'feed.title': 'Persone che segui',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "Il tuo browser blocca l'archiviazione: impossibile accedere.",
|
'auth.err.storage': "Il tuo browser blocca l'archiviazione: impossibile accedere.",
|
||||||
'welcome.title': "Scegli il tuo username",
|
'welcome.title': "Scegli il tuo username",
|
||||||
'welcome.titleA': "Benvenuto su",
|
'welcome.titleA': "Benvenuto su",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "Scegli un username: è così che i tuoi amici ti troveranno e ti seguiranno.",
|
'welcome.text': "Scegli un username: è così che i tuoi amici ti troveranno e ti seguiranno.",
|
||||||
'welcome.usernamePh': "il_tuo_username",
|
'welcome.usernamePh': "il_tuo_username",
|
||||||
'welcome.namePh': "Il tuo nome",
|
'welcome.namePh': "Il tuo nome",
|
||||||
@@ -1074,13 +1058,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 AzuuCine 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",
|
||||||
@@ -1220,10 +1197,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",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} commenti",
|
'comments.toggle_other': "{count} commenti",
|
||||||
'shared.nMembers_one': "{count} membro",
|
'shared.nMembers_one': "{count} membro",
|
||||||
'shared.nMembers_other': "{count} membri",
|
'shared.nMembers_other': "{count} membri",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Cerca",
|
||||||
|
'search.placeholder': "Titoli, attori, registi, membri…",
|
||||||
|
'search.placeholderNoMembers': "Titoli, attori, registi…",
|
||||||
|
'search.tabAll': "Tutto",
|
||||||
|
'search.tabTitles': "Titoli",
|
||||||
|
'search.tabPeople': "Persone",
|
||||||
|
'search.tabMembers': "Membri",
|
||||||
|
'search.seeAll': "Vedi tutto",
|
||||||
|
'search.hint': "Cerca un film, una serie, un anime, un attore, un regista o un membro per nome utente.",
|
||||||
|
'search.hintNoMembers': "Cerca un film, una serie, un anime, un attore o un regista.",
|
||||||
|
'search.noPeople': "Nessuna persona trovata.",
|
||||||
|
'search.noMembers': "Nessun membro trovato.",
|
||||||
|
'person.title': "Persona",
|
||||||
|
'person.group.acting': "Recitazione",
|
||||||
|
'person.group.voice': "Doppiaggio",
|
||||||
|
'person.group.directing': "Regia",
|
||||||
|
'person.group.writing': "Sceneggiatura",
|
||||||
|
'person.group.production': "Produzione",
|
||||||
|
'person.group.other': "Altri ruoli",
|
||||||
|
'person.animeStaff': "Staff anime",
|
||||||
|
'person.notFound': "Persona non trovata.",
|
||||||
|
'person.born': "Nato/a il {date}",
|
||||||
|
'person.died': "Morto/a il {date}",
|
||||||
|
'person.inLibrary': "Nella tua libreria: {count} / {total}",
|
||||||
|
'person.filmography': "Filmografia",
|
||||||
|
'person.sortPopular': "Popolari",
|
||||||
|
'person.sortRecent': "Recenti",
|
||||||
|
'person.empty': "Niente in questa categoria.",
|
||||||
|
'person.bioMore': "Leggi di più",
|
||||||
|
'person.bioLess': "Riduci",
|
||||||
|
'person.sourceTmdb': "Info e filmografia: TMDB",
|
||||||
|
'person.sourceAnilist': "Info e filmografia: AniList",
|
||||||
|
'person.job.director': "Regia",
|
||||||
|
'person.job.screenplay': "Sceneggiatura",
|
||||||
|
'person.job.writer': "Sceneggiatore",
|
||||||
|
'person.job.story': "Soggetto",
|
||||||
|
'person.job.novel': "Romanzo",
|
||||||
|
'person.job.creator': "Ideazione",
|
||||||
|
'person.job.producer': "Produzione",
|
||||||
|
'person.job.execProducer': "Produzione esecutiva",
|
||||||
|
'person.job.composer': "Musiche",
|
||||||
|
'person.job.dop': "Fotografia",
|
||||||
|
'person.job.editor': "Montaggio",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Generale",
|
||||||
|
'stats.tabOther': "Altro",
|
||||||
|
'stats.period': "Periodo",
|
||||||
|
'stats.allYears': "Tutti gli anni",
|
||||||
|
'stats.timeSpent': "Tempo trascorso",
|
||||||
|
'stats.finished': "Finiti",
|
||||||
|
'stats.filmsSeen': "Film visti",
|
||||||
|
'stats.rewatched': "rivisti",
|
||||||
|
'stats.avgLength': "Durata media",
|
||||||
|
'stats.episodesSeen': "Episodi visti",
|
||||||
|
'stats.decades': "Decenni di uscita",
|
||||||
|
'stats.settings': "Impostazioni statistiche",
|
||||||
|
'stats.monthHidden': "nascosto",
|
||||||
|
'stats.hideMonthsHint': "Deseleziona un mese per toglierlo dal grafico (ad esempio il mese in cui hai aggiunto tutto in una volta). I suoi titoli contano comunque altrove.",
|
||||||
|
'stats.showAllMonths': "Mostra di nuovo tutto",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Esplora senza account",
|
||||||
|
'guest.promptTitle': "Crea il tuo account per continuare",
|
||||||
|
'guest.promptText': "Per votare, aggiungere un titolo alla tua libreria o scrivere una recensione ti serve un account. È gratis e richiede 30 secondi.",
|
||||||
|
'guest.banner': "Stai esplorando senza account: accedi per votare e seguire i tuoi titoli.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Le mie stagioni",
|
||||||
|
'seasons.average': "Media:",
|
||||||
|
'seasons.hint': "Vota ogni stagione dopo averla vista. Finita la serie, il tuo voto finale sarà la media delle stagioni votate.",
|
||||||
|
'seasons.season': "Stagione {n}",
|
||||||
|
'seasons.seen': "Vista",
|
||||||
|
'seasons.progress': "{seen}/{size} episodi",
|
||||||
|
'seasons.notStarted': "Non ancora iniziata",
|
||||||
|
'seasons.rateNow': "Da votare",
|
||||||
|
'seasons.reviewPh': "La tua recensione della stagione {n}…",
|
||||||
|
'seasons.writeReview': "Scrivi una recensione di questa stagione",
|
||||||
|
'seasons.finalHint': "Finita la serie, il tuo voto sarà la media delle stagioni votate.",
|
||||||
|
'seasons.finalApplied': "Media delle stagioni votate.",
|
||||||
|
"rewatch.title": "Rivedi",
|
||||||
|
"rewatch.badge": "Nuova visione",
|
||||||
|
"rewatch.views_one": "Visto {count} volta",
|
||||||
|
"rewatch.views_other": "Visto {count} volte",
|
||||||
|
"rewatch.added": "«{title}»: nuova visione aggiunta",
|
||||||
|
"rewatch.add": "Aggiungi",
|
||||||
|
"rewatch.finished": "Nuova visione terminata, ora è nella tua cronologia.",
|
||||||
|
"rewatch.since": "iniziata il {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} episodi rivisti",
|
||||||
|
"rewatch.trackingHint": "Gli episodi che segni contano per questa nuova visione. La prima visione, il voto e le recensioni restano invariati.",
|
||||||
|
"rewatch.markDone": "Termina ora",
|
||||||
|
"rewatch.stop": "Interrompi",
|
||||||
|
"rewatch.stopped": "«{title}»: nuova visione interrotta",
|
||||||
|
"rewatch.start": "Inizia una nuova visione",
|
||||||
|
"rewatch.startHint": "Il progresso riparte dall’episodio 1, senza toccare la prima visione.",
|
||||||
|
"rewatch.alreadyDone": "Già rivisto? Aggiungi una data",
|
||||||
|
"rewatch.historyEmpty": "Nessuna nuova visione per ora: usa «Rivedi» qui sopra.",
|
||||||
|
"rewatch.finishedToast": "«{title}»: nuova visione terminata",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': '先にメールで届いたリンクからアドレスを確認してください。',
|
'auth.err.notConfirmed': '先にメールで届いたリンクからアドレスを確認してください。',
|
||||||
'auth.err.exists': 'このメールアドレスのアカウントはすでに存在します。',
|
'auth.err.exists': 'このメールアドレスのアカウントはすでに存在します。',
|
||||||
'auth.err.weak': 'パスワードが弱すぎます({n}文字以上、英字と数字を組み合わせてください)。',
|
'auth.err.weak': 'パスワードが弱すぎます({n}文字以上、英字と数字を組み合わせてください)。',
|
||||||
|
'auth.err.pwned': "このパスワードは既知のデータ漏えいで見つかっています。別のパスワードを選んでください。",
|
||||||
'auth.err.samePassword': '新しいパスワードは以前のものと違うものにしてください。',
|
'auth.err.samePassword': '新しいパスワードは以前のものと違うものにしてください。',
|
||||||
'auth.err.emailRate': 'リクエストが多すぎます。数分後にもう一度お試しください。',
|
'auth.err.emailRate': 'リクエストが多すぎます。数分後にもう一度お試しください。',
|
||||||
'auth.err.rate': '試行回数が多すぎます。数分後にもう一度お試しください。',
|
'auth.err.rate': '試行回数が多すぎます。数分後にもう一度お試しください。',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': '星空',
|
'theme.modeStarfield': '星空',
|
||||||
'settings.accentColor': 'アクセントカラー',
|
'settings.accentColor': 'アクセントカラー',
|
||||||
'settings.installApp': 'アプリをインストール',
|
'settings.installApp': 'アプリをインストール',
|
||||||
'settings.installHint': 'AzuuCine をホーム画面やデスクトップに追加します。',
|
'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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': 'まだレビューがありません',
|
'reviews.none': 'まだレビューがありません',
|
||||||
'reviews.seeAll': 'すべてのレビューを見る',
|
'reviews.seeAll': 'すべてのレビューを見る',
|
||||||
'reviews.react': 'リアクション',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'AzuuCine をインストール',
|
'install.title': 'Kino をインストール',
|
||||||
'install.ios': 'Safari で AzuuCine を開きます。\n共有ボタン(上矢印付きの四角)をタップします。\n「ホーム画面に追加」を選び、「追加」をタップします。',
|
'install.ios': 'Safari で Kino を開きます。\n共有ボタン(上矢印付きの四角)をタップします。\n「ホーム画面に追加」を選び、「追加」をタップします。',
|
||||||
'install.android': 'Chrome で AzuuCine を開きます。\n右上の ⋮ メニューをタップします。\n「ホーム画面に追加」(または「アプリをインストール」)を選びます。',
|
'install.android': 'Chrome で Kino を開きます。\n右上の ⋮ メニューをタップします。\n「ホーム画面に追加」(または「アプリをインストール」)を選びます。',
|
||||||
'install.desktop': 'アドレスバー右側のインストールアイコン(矢印付きの画面)をクリックします。\nまたは:ブラウザの ⋮ メニュー →「AzuuCine をインストール」。\n「インストール」で確定します。',
|
'install.desktop': 'アドレスバー右側のインストールアイコン(矢印付きの画面)をクリックします。\nまたは:ブラウザの ⋮ メニュー →「Kino をインストール」。\n「インストール」で確定します。',
|
||||||
'install.other': 'ブラウザのメニューを開きます。\n「アプリをインストール」または「ホーム画面に追加」を探します。',
|
'install.other': 'ブラウザのメニューを開きます。\n「アプリをインストール」または「ホーム画面に追加」を探します。',
|
||||||
'install.gotIt': 'わかりました',
|
'install.gotIt': 'わかりました',
|
||||||
'settings.themeX': '{name}テーマ',
|
'settings.themeX': '{name}テーマ',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': '評価{rating}',
|
'stats.ratedAs_one': '評価{rating}',
|
||||||
'stats.ratedAs_other': '評価{rating}',
|
'stats.ratedAs_other': '評価{rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'AzuuCineのバックアップ',
|
'backup.shareTitle': 'Kinoのバックアップ',
|
||||||
'backup.tooBig': 'ファイルが大きすぎます(最大30 MB)。',
|
'backup.tooBig': 'ファイルが大きすぎます(最大30 MB)。',
|
||||||
'backup.notJson': 'このファイルは有効なJSONではありません。',
|
'backup.notJson': 'このファイルは有効なJSONではありません。',
|
||||||
'backup.noItems': 'このファイルに作品データが見つかりません。',
|
'backup.noItems': 'このファイルに作品データが見つかりません。',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': '友だちを探す',
|
'social.findFriends': '友だちを探す',
|
||||||
'social.searchPh': 'ユーザー名または名前…',
|
'social.searchPh': 'ユーザー名または名前…',
|
||||||
'social.noResults': '該当するユーザーはいません。',
|
'social.noResults': '該当するユーザーはいません。',
|
||||||
'social.inviteHint': '友だちがまだAzuuCineを使っていませんか?プロフィールのリンクを送りましょう。',
|
'social.inviteHint': '友だちがまだKinoを使っていませんか?プロフィールのリンクを送りましょう。',
|
||||||
'social.shareMyProfile': 'マイプロフィールをシェア',
|
'social.shareMyProfile': 'マイプロフィールをシェア',
|
||||||
'social.inviteText': 'AzuuCineでフォローしてね!',
|
'social.inviteText': 'Kinoでフォローしてね!',
|
||||||
'social.myProfile': 'マイプロフィール',
|
'social.myProfile': 'マイプロフィール',
|
||||||
|
|
||||||
'feed.title': 'フォロー中',
|
'feed.title': 'フォロー中',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "ブラウザがストレージをブロックしているため、ログインできません。",
|
'auth.err.storage': "ブラウザがストレージをブロックしているため、ログインできません。",
|
||||||
'welcome.title': "ユーザー名を選ぶ",
|
'welcome.title': "ユーザー名を選ぶ",
|
||||||
'welcome.titleA': "ようこそ",
|
'welcome.titleA': "ようこそ",
|
||||||
'welcome.titleB': "AzuuCine へ",
|
'welcome.titleB': "Kino へ",
|
||||||
'welcome.text': "ユーザー名を選んでください。友だちはこの名前であなたを見つけてフォローできます。",
|
'welcome.text': "ユーザー名を選んでください。友だちはこの名前であなたを見つけてフォローできます。",
|
||||||
'welcome.usernamePh': "your_name",
|
'welcome.usernamePh': "your_name",
|
||||||
'welcome.namePh': "表示名",
|
'welcome.namePh': "表示名",
|
||||||
@@ -1074,13 +1058,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 では、まず AzuuCine をホーム画面に追加し(iOS 16.4 以降)、アイコンからアプリを開いて通知をオンにしてください。",
|
|
||||||
'push.unsupported': "このブラウザはプッシュ通知に対応していません。",
|
|
||||||
'push.denied': "このサイトの通知はブロックされています。ブラウザの設定で許可してから、もう一度お試しください。",
|
|
||||||
'push.notReady': "プッシュ通知はまだサーバーで利用できません。",
|
|
||||||
'push.error': "通知をオンにできませんでした。接続を確認して、もう一度お試しください。",
|
|
||||||
'netPill.offlineSync': "オフライン — 変更は後で同期されます",
|
'netPill.offlineSync': "オフライン — 変更は後で同期されます",
|
||||||
'netPill.offlineLocal': "オフライン — すべてこのデバイスに保存されています",
|
'netPill.offlineLocal': "オフライン — すべてこのデバイスに保存されています",
|
||||||
'netPill.synced': "同期済み",
|
'netPill.synced': "同期済み",
|
||||||
@@ -1220,10 +1197,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': "新しい共有リスト",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "コメント{count}件",
|
'comments.toggle_other': "コメント{count}件",
|
||||||
'shared.nMembers_one': "メンバー{count}人",
|
'shared.nMembers_one': "メンバー{count}人",
|
||||||
'shared.nMembers_other': "メンバー{count}人",
|
'shared.nMembers_other': "メンバー{count}人",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "検索",
|
||||||
|
'search.placeholder': "作品、俳優、監督、メンバー…",
|
||||||
|
'search.placeholderNoMembers': "作品、俳優、監督…",
|
||||||
|
'search.tabAll': "すべて",
|
||||||
|
'search.tabTitles': "作品",
|
||||||
|
'search.tabPeople': "人物",
|
||||||
|
'search.tabMembers': "メンバー",
|
||||||
|
'search.seeAll': "すべて見る",
|
||||||
|
'search.hint': "映画・ドラマ・アニメ・俳優・監督、またはユーザー名でメンバーを検索できます。",
|
||||||
|
'search.hintNoMembers': "映画・ドラマ・アニメ・俳優・監督を検索できます。",
|
||||||
|
'search.noPeople': "人物が見つかりません。",
|
||||||
|
'search.noMembers': "メンバーが見つかりません。",
|
||||||
|
'person.title': "人物",
|
||||||
|
'person.group.acting': "出演",
|
||||||
|
'person.group.voice': "声の出演",
|
||||||
|
'person.group.directing': "監督",
|
||||||
|
'person.group.writing': "脚本",
|
||||||
|
'person.group.production': "製作",
|
||||||
|
'person.group.other': "その他",
|
||||||
|
'person.animeStaff': "アニメスタッフ",
|
||||||
|
'person.notFound': "人物が見つかりません。",
|
||||||
|
'person.born': "{date} 生まれ",
|
||||||
|
'person.died': "{date} 没",
|
||||||
|
'person.inLibrary': "ライブラリ内:{count} / {total}",
|
||||||
|
'person.filmography': "作品一覧",
|
||||||
|
'person.sortPopular': "人気順",
|
||||||
|
'person.sortRecent': "新しい順",
|
||||||
|
'person.empty': "このカテゴリには何もありません。",
|
||||||
|
'person.bioMore': "続きを読む",
|
||||||
|
'person.bioLess': "閉じる",
|
||||||
|
'person.sourceTmdb': "情報と作品一覧:TMDB",
|
||||||
|
'person.sourceAnilist': "情報と作品一覧:AniList",
|
||||||
|
'person.job.director': "監督",
|
||||||
|
'person.job.screenplay': "脚本",
|
||||||
|
'person.job.writer': "脚本家",
|
||||||
|
'person.job.story': "原案",
|
||||||
|
'person.job.novel': "原作小説",
|
||||||
|
'person.job.creator': "企画",
|
||||||
|
'person.job.producer': "製作",
|
||||||
|
'person.job.execProducer': "製作総指揮",
|
||||||
|
'person.job.composer': "音楽",
|
||||||
|
'person.job.dop': "撮影",
|
||||||
|
'person.job.editor': "編集",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "全体",
|
||||||
|
'stats.tabOther': "その他",
|
||||||
|
'stats.period': "期間",
|
||||||
|
'stats.allYears': "すべての年",
|
||||||
|
'stats.timeSpent': "視聴時間",
|
||||||
|
'stats.finished': "完了",
|
||||||
|
'stats.filmsSeen': "観た映画",
|
||||||
|
'stats.rewatched': "再視聴",
|
||||||
|
'stats.avgLength': "平均の長さ",
|
||||||
|
'stats.episodesSeen': "観たエピソード",
|
||||||
|
'stats.decades': "公開年代",
|
||||||
|
'stats.settings': "統計の設定",
|
||||||
|
'stats.monthHidden': "非表示",
|
||||||
|
'stats.hideMonthsHint': "グラフから外したい月のチェックを外してください(例:まとめて追加した月)。その作品はほかの統計では引き続き数えられます。",
|
||||||
|
'stats.showAllMonths': "すべて再表示",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "アカウントなしで見る",
|
||||||
|
'guest.promptTitle': "続けるにはアカウントを作成",
|
||||||
|
'guest.promptText': "評価やライブラリへの追加、レビューの投稿にはアカウントが必要です。無料で30秒で作れます。",
|
||||||
|
'guest.banner': "アカウントなしで閲覧中:評価や作品の記録にはログインしてください。",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "シーズン評価",
|
||||||
|
'seasons.average': "平均:",
|
||||||
|
'seasons.hint': "観終わったシーズンごとに評価できます。シリーズを観終えると、評価したシーズンの平均が最終評価になります。",
|
||||||
|
'seasons.season': "シーズン{n}",
|
||||||
|
'seasons.seen': "視聴済み",
|
||||||
|
'seasons.progress': "{seen}/{size}話",
|
||||||
|
'seasons.notStarted': "未視聴",
|
||||||
|
'seasons.rateNow': "評価しよう",
|
||||||
|
'seasons.reviewPh': "シーズン{n}の感想…",
|
||||||
|
'seasons.writeReview': "このシーズンのレビューを書く",
|
||||||
|
'seasons.finalHint': "シリーズを観終えると、評価したシーズンの平均があなたの評価になります。",
|
||||||
|
'seasons.finalApplied': "評価したシーズンの平均です。",
|
||||||
|
"rewatch.title": "もう一度見る",
|
||||||
|
"rewatch.badge": "再視聴中",
|
||||||
|
"rewatch.views_one": "{count} 回視聴",
|
||||||
|
"rewatch.views_other": "{count} 回視聴",
|
||||||
|
"rewatch.added": "「{title}」:再視聴を追加しました",
|
||||||
|
"rewatch.add": "追加",
|
||||||
|
"rewatch.finished": "再視聴が完了し、履歴に追加されました。",
|
||||||
|
"rewatch.since": "{date} に開始",
|
||||||
|
"rewatch.progress": "{seen} / {total} 話を再視聴",
|
||||||
|
"rewatch.trackingHint": "今チェックしたエピソードはこの再視聴にカウントされます。最初の視聴、評価、レビューはそのままです。",
|
||||||
|
"rewatch.markDone": "今すぐ完了",
|
||||||
|
"rewatch.stop": "中止",
|
||||||
|
"rewatch.stopped": "「{title}」:再視聴を中止しました",
|
||||||
|
"rewatch.start": "再視聴を始める",
|
||||||
|
"rewatch.startHint": "進捗は第1話から再スタートし、最初の視聴には影響しません。",
|
||||||
|
"rewatch.alreadyDone": "もう再視聴した?日付を追加",
|
||||||
|
"rewatch.historyEmpty": "まだ再視聴はありません:上の「もう一度見る」を使ってください。",
|
||||||
|
"rewatch.finishedToast": "「{title}」:再視聴が完了しました",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': '먼저 이메일로 받은 링크로 주소를 인증해 주세요.',
|
'auth.err.notConfirmed': '먼저 이메일로 받은 링크로 주소를 인증해 주세요.',
|
||||||
'auth.err.exists': '이미 이 이메일로 가입된 계정이 있어요.',
|
'auth.err.exists': '이미 이 이메일로 가입된 계정이 있어요.',
|
||||||
'auth.err.weak': '비밀번호가 너무 약해요 ({n}자 이상, 영문과 숫자를 섞어 주세요).',
|
'auth.err.weak': '비밀번호가 너무 약해요 ({n}자 이상, 영문과 숫자를 섞어 주세요).',
|
||||||
|
'auth.err.pwned': "이 비밀번호는 알려진 데이터 유출에서 발견됐어요. 다른 비밀번호를 선택해 주세요.",
|
||||||
'auth.err.samePassword': '새 비밀번호는 이전 비밀번호와 달라야 해요.',
|
'auth.err.samePassword': '새 비밀번호는 이전 비밀번호와 달라야 해요.',
|
||||||
'auth.err.emailRate': '요청이 너무 많아요. 몇 분 뒤에 다시 시도해 주세요.',
|
'auth.err.emailRate': '요청이 너무 많아요. 몇 분 뒤에 다시 시도해 주세요.',
|
||||||
'auth.err.rate': '시도 횟수가 너무 많아요. 몇 분 뒤에 다시 시도해 주세요.',
|
'auth.err.rate': '시도 횟수가 너무 많아요. 몇 분 뒤에 다시 시도해 주세요.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': '별',
|
'theme.modeStarfield': '별',
|
||||||
'settings.accentColor': '강조 색상',
|
'settings.accentColor': '강조 색상',
|
||||||
'settings.installApp': '앱 설치',
|
'settings.installApp': '앱 설치',
|
||||||
'settings.installHint': 'AzuuCine을 홈 화면이나 바탕화면에 추가하세요.',
|
'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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': '아직 리뷰가 없어요',
|
'reviews.none': '아직 리뷰가 없어요',
|
||||||
'reviews.seeAll': '리뷰 모두 보기',
|
'reviews.seeAll': '리뷰 모두 보기',
|
||||||
'reviews.react': '반응하기',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'AzuuCine 설치',
|
'install.title': 'Kino 설치',
|
||||||
'install.ios': 'Safari에서 AzuuCine을 엽니다.\n공유 버튼(위쪽 화살표가 있는 사각형)을 누릅니다.\n“홈 화면에 추가”를 선택한 뒤 “추가”를 누릅니다.',
|
'install.ios': 'Safari에서 Kino을 엽니다.\n공유 버튼(위쪽 화살표가 있는 사각형)을 누릅니다.\n“홈 화면에 추가”를 선택한 뒤 “추가”를 누릅니다.',
|
||||||
'install.android': 'Chrome에서 AzuuCine을 엽니다.\n오른쪽 위 ⋮ 메뉴를 누릅니다.\n“홈 화면에 추가”(또는 “앱 설치”)를 선택합니다.',
|
'install.android': 'Chrome에서 Kino을 엽니다.\n오른쪽 위 ⋮ 메뉴를 누릅니다.\n“홈 화면에 추가”(또는 “앱 설치”)를 선택합니다.',
|
||||||
'install.desktop': '주소창 오른쪽의 설치 아이콘(화살표가 있는 화면)을 클릭합니다.\n또는: 브라우저 ⋮ 메뉴 → “AzuuCine 설치”.\n“설치”로 확인합니다.',
|
'install.desktop': '주소창 오른쪽의 설치 아이콘(화살표가 있는 화면)을 클릭합니다.\n또는: 브라우저 ⋮ 메뉴 → “Kino 설치”.\n“설치”로 확인합니다.',
|
||||||
'install.other': '브라우저 메뉴를 엽니다.\n“앱 설치” 또는 “홈 화면에 추가”를 찾습니다.',
|
'install.other': '브라우저 메뉴를 엽니다.\n“앱 설치” 또는 “홈 화면에 추가”를 찾습니다.',
|
||||||
'install.gotIt': '확인',
|
'install.gotIt': '확인',
|
||||||
'settings.themeX': '{name} 테마',
|
'settings.themeX': '{name} 테마',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': '평점 {rating}',
|
'stats.ratedAs_one': '평점 {rating}',
|
||||||
'stats.ratedAs_other': '평점 {rating}',
|
'stats.ratedAs_other': '평점 {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'AzuuCine 백업',
|
'backup.shareTitle': 'Kino 백업',
|
||||||
'backup.tooBig': '파일이 너무 커요 (최대 30MB).',
|
'backup.tooBig': '파일이 너무 커요 (최대 30MB).',
|
||||||
'backup.notJson': '올바른 JSON 파일이 아니에요.',
|
'backup.notJson': '올바른 JSON 파일이 아니에요.',
|
||||||
'backup.noItems': '이 파일에서 항목을 찾지 못했어요.',
|
'backup.noItems': '이 파일에서 항목을 찾지 못했어요.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': '친구 찾기',
|
'social.findFriends': '친구 찾기',
|
||||||
'social.searchPh': '아이디 또는 이름…',
|
'social.searchPh': '아이디 또는 이름…',
|
||||||
'social.noResults': '일치하는 사람이 없어요.',
|
'social.noResults': '일치하는 사람이 없어요.',
|
||||||
'social.inviteHint': '친구가 아직 AzuuCine에 없나요? 내 프로필 링크를 보내 보세요.',
|
'social.inviteHint': '친구가 아직 Kino에 없나요? 내 프로필 링크를 보내 보세요.',
|
||||||
'social.shareMyProfile': '내 프로필 공유',
|
'social.shareMyProfile': '내 프로필 공유',
|
||||||
'social.inviteText': 'AzuuCine에서 나를 팔로우해 주세요!',
|
'social.inviteText': 'Kino에서 나를 팔로우해 주세요!',
|
||||||
'social.myProfile': '내 프로필',
|
'social.myProfile': '내 프로필',
|
||||||
|
|
||||||
'feed.title': '팔로잉',
|
'feed.title': '팔로잉',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "브라우저가 저장소를 차단해 로그인할 수 없어요.",
|
'auth.err.storage': "브라우저가 저장소를 차단해 로그인할 수 없어요.",
|
||||||
'welcome.title': "사용자 이름 선택",
|
'welcome.title': "사용자 이름 선택",
|
||||||
'welcome.titleA': "환영해요,",
|
'welcome.titleA': "환영해요,",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "사용자 이름을 정해 주세요. 친구들이 이 이름으로 나를 찾고 팔로우할 수 있어요.",
|
'welcome.text': "사용자 이름을 정해 주세요. 친구들이 이 이름으로 나를 찾고 팔로우할 수 있어요.",
|
||||||
'welcome.usernamePh': "your_name",
|
'welcome.usernamePh': "your_name",
|
||||||
'welcome.namePh': "내 이름",
|
'welcome.namePh': "내 이름",
|
||||||
@@ -1074,13 +1058,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에서는 먼저 AzuuCine을 홈 화면에 추가한 뒤(iOS 16.4 이상) 아이콘으로 앱을 열어 알림을 켜 주세요.",
|
|
||||||
'push.unsupported': "이 브라우저는 푸시 알림을 지원하지 않아요.",
|
|
||||||
'push.denied': "이 사이트의 알림이 차단되어 있어요. 브라우저 설정에서 허용한 뒤 다시 시도해 주세요.",
|
|
||||||
'push.notReady': "서버에서 아직 푸시 알림을 사용할 수 없어요.",
|
|
||||||
'push.error': "알림을 켜지 못했어요. 연결을 확인하고 다시 시도해 주세요.",
|
|
||||||
'netPill.offlineSync': "오프라인 — 변경 사항은 나중에 동기화돼요",
|
'netPill.offlineSync': "오프라인 — 변경 사항은 나중에 동기화돼요",
|
||||||
'netPill.offlineLocal': "오프라인 — 모든 내용이 이 기기에 저장돼 있어요",
|
'netPill.offlineLocal': "오프라인 — 모든 내용이 이 기기에 저장돼 있어요",
|
||||||
'netPill.synced': "동기화됨",
|
'netPill.synced': "동기화됨",
|
||||||
@@ -1220,10 +1197,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': "새 공유 목록",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "댓글 {count}개",
|
'comments.toggle_other': "댓글 {count}개",
|
||||||
'shared.nMembers_one': "멤버 {count}명",
|
'shared.nMembers_one': "멤버 {count}명",
|
||||||
'shared.nMembers_other': "멤버 {count}명",
|
'shared.nMembers_other': "멤버 {count}명",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "검색",
|
||||||
|
'search.placeholder': "작품, 배우, 감독, 회원…",
|
||||||
|
'search.placeholderNoMembers': "작품, 배우, 감독…",
|
||||||
|
'search.tabAll': "전체",
|
||||||
|
'search.tabTitles': "작품",
|
||||||
|
'search.tabPeople': "인물",
|
||||||
|
'search.tabMembers': "회원",
|
||||||
|
'search.seeAll': "모두 보기",
|
||||||
|
'search.hint': "영화, 시리즈, 애니, 배우, 감독 또는 사용자 이름으로 회원을 검색하세요.",
|
||||||
|
'search.hintNoMembers': "영화, 시리즈, 애니, 배우 또는 감독을 검색하세요.",
|
||||||
|
'search.noPeople': "인물을 찾을 수 없어요.",
|
||||||
|
'search.noMembers': "회원을 찾을 수 없어요.",
|
||||||
|
'person.title': "인물",
|
||||||
|
'person.group.acting': "연기",
|
||||||
|
'person.group.voice': "성우",
|
||||||
|
'person.group.directing': "연출",
|
||||||
|
'person.group.writing': "각본",
|
||||||
|
'person.group.production': "제작",
|
||||||
|
'person.group.other': "기타",
|
||||||
|
'person.animeStaff': "애니 제작진",
|
||||||
|
'person.notFound': "인물을 찾을 수 없어요.",
|
||||||
|
'person.born': "{date} 출생",
|
||||||
|
'person.died': "{date} 사망",
|
||||||
|
'person.inLibrary': "내 라이브러리: {count} / {total}",
|
||||||
|
'person.filmography': "필모그래피",
|
||||||
|
'person.sortPopular': "인기순",
|
||||||
|
'person.sortRecent': "최신순",
|
||||||
|
'person.empty': "이 분류에는 아무것도 없어요.",
|
||||||
|
'person.bioMore': "더 보기",
|
||||||
|
'person.bioLess': "접기",
|
||||||
|
'person.sourceTmdb': "정보 및 필모그래피: TMDB",
|
||||||
|
'person.sourceAnilist': "정보 및 필모그래피: AniList",
|
||||||
|
'person.job.director': "감독",
|
||||||
|
'person.job.screenplay': "각본",
|
||||||
|
'person.job.writer': "작가",
|
||||||
|
'person.job.story': "원안",
|
||||||
|
'person.job.novel': "원작 소설",
|
||||||
|
'person.job.creator': "크리에이터",
|
||||||
|
'person.job.producer': "제작",
|
||||||
|
'person.job.execProducer': "총괄 제작",
|
||||||
|
'person.job.composer': "음악",
|
||||||
|
'person.job.dop': "촬영",
|
||||||
|
'person.job.editor': "편집",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "전체",
|
||||||
|
'stats.tabOther': "기타",
|
||||||
|
'stats.period': "기간",
|
||||||
|
'stats.allYears': "모든 연도",
|
||||||
|
'stats.timeSpent': "시청 시간",
|
||||||
|
'stats.finished': "완료",
|
||||||
|
'stats.filmsSeen': "본 영화",
|
||||||
|
'stats.rewatched': "다시 봄",
|
||||||
|
'stats.avgLength': "평균 길이",
|
||||||
|
'stats.episodesSeen': "본 에피소드",
|
||||||
|
'stats.decades': "개봉 연대",
|
||||||
|
'stats.settings': "통계 설정",
|
||||||
|
'stats.monthHidden': "숨김",
|
||||||
|
'stats.hideMonthsHint': "그래프에서 빼고 싶은 달의 체크를 해제하세요(예: 한꺼번에 추가한 달). 해당 작품은 다른 통계에서는 계속 집계돼요.",
|
||||||
|
'stats.showAllMonths': "모두 다시 표시",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "계정 없이 둘러보기",
|
||||||
|
'guest.promptTitle': "계속하려면 계정을 만드세요",
|
||||||
|
'guest.promptText': "평가하거나 라이브러리에 작품을 추가하거나 리뷰를 쓰려면 계정이 필요해요. 무료이고 30초면 돼요.",
|
||||||
|
'guest.banner': "계정 없이 둘러보는 중이에요: 평가하고 작품을 기록하려면 로그인하세요.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "내 시즌",
|
||||||
|
'seasons.average': "평균:",
|
||||||
|
'seasons.hint': "시즌을 다 보면 시즌별로 평가하세요. 시리즈를 다 보면 평가한 시즌들의 평균이 최종 평점이 돼요.",
|
||||||
|
'seasons.season': "시즌 {n}",
|
||||||
|
'seasons.seen': "시청 완료",
|
||||||
|
'seasons.progress': "{seen}/{size}화",
|
||||||
|
'seasons.notStarted': "아직 시작 안 함",
|
||||||
|
'seasons.rateNow': "평가하기",
|
||||||
|
'seasons.reviewPh': "시즌 {n}에 대한 리뷰…",
|
||||||
|
'seasons.writeReview': "이 시즌 리뷰 쓰기",
|
||||||
|
'seasons.finalHint': "시리즈를 다 보면 평가한 시즌들의 평균이 평점이 돼요.",
|
||||||
|
'seasons.finalApplied': "평가한 시즌들의 평균이에요.",
|
||||||
|
"rewatch.title": "다시 보기",
|
||||||
|
"rewatch.badge": "다시 보는 중",
|
||||||
|
"rewatch.views_one": "{count}번 봄",
|
||||||
|
"rewatch.views_other": "{count}번 봄",
|
||||||
|
"rewatch.added": "‘{title}’: 다시 보기 추가됨",
|
||||||
|
"rewatch.add": "추가",
|
||||||
|
"rewatch.finished": "다시 보기를 마쳤어요. 기록에 추가됐어요.",
|
||||||
|
"rewatch.since": "{date} 시작",
|
||||||
|
"rewatch.progress": "{seen} / {total}화 다시 봄",
|
||||||
|
"rewatch.trackingHint": "지금 체크하는 회차는 이번 다시 보기에 포함돼요. 첫 시청, 평점, 리뷰는 그대로예요.",
|
||||||
|
"rewatch.markDone": "지금 완료",
|
||||||
|
"rewatch.stop": "중단",
|
||||||
|
"rewatch.stopped": "‘{title}’: 다시 보기 중단됨",
|
||||||
|
"rewatch.start": "다시 보기 시작",
|
||||||
|
"rewatch.startHint": "진행률이 1화부터 다시 시작되며 첫 시청에는 영향이 없어요.",
|
||||||
|
"rewatch.alreadyDone": "이미 다시 봤나요? 날짜 추가",
|
||||||
|
"rewatch.historyEmpty": "아직 다시 본 기록이 없어요: 위의 ‘다시 보기’를 사용하세요.",
|
||||||
|
"rewatch.finishedToast": "‘{title}’: 다시 보기 완료",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Bevestig eerst je adres via de link in je e-mail.',
|
'auth.err.notConfirmed': 'Bevestig eerst je adres via de link in je e-mail.',
|
||||||
'auth.err.exists': 'Er bestaat al een account met dit e-mailadres.',
|
'auth.err.exists': 'Er bestaat al een account met dit e-mailadres.',
|
||||||
'auth.err.weak': 'Wachtwoord te zwak (minstens {n} tekens, mix van letters en cijfers).',
|
'auth.err.weak': 'Wachtwoord te zwak (minstens {n} tekens, mix van letters en cijfers).',
|
||||||
|
'auth.err.pwned': "Dit wachtwoord is uitgelekt bij een bekend datalek — kies een ander.",
|
||||||
'auth.err.samePassword': 'Je nieuwe wachtwoord moet anders zijn dan het oude.',
|
'auth.err.samePassword': 'Je nieuwe wachtwoord moet anders zijn dan het oude.',
|
||||||
'auth.err.emailRate': 'Te veel verzoeken. Probeer het over een paar minuten opnieuw.',
|
'auth.err.emailRate': 'Te veel verzoeken. Probeer het over een paar minuten opnieuw.',
|
||||||
'auth.err.rate': 'Te veel pogingen. Probeer het over een paar minuten opnieuw.',
|
'auth.err.rate': 'Te veel pogingen. Probeer het over een paar minuten opnieuw.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Sterren',
|
'theme.modeStarfield': 'Sterren',
|
||||||
'settings.accentColor': 'Accentkleur',
|
'settings.accentColor': 'Accentkleur',
|
||||||
'settings.installApp': 'App installeren',
|
'settings.installApp': 'App installeren',
|
||||||
'settings.installHint': 'Voeg AzuuCine 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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': 'Nog geen recensies',
|
'reviews.none': 'Nog geen recensies',
|
||||||
'reviews.seeAll': 'Alle recensies bekijken',
|
'reviews.seeAll': 'Alle recensies bekijken',
|
||||||
'reviews.react': 'Reageren',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'AzuuCine installeren',
|
'install.title': 'Kino installeren',
|
||||||
'install.ios': 'Open AzuuCine 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”.',
|
||||||
'install.android': 'Open AzuuCine in Chrome.\nTik rechtsboven op het menu ⋮.\nKies “Toevoegen aan startscherm” (of “App installeren”).',
|
'install.android': 'Open Kino in Chrome.\nTik rechtsboven op het menu ⋮.\nKies “Toevoegen aan startscherm” (of “App installeren”).',
|
||||||
'install.desktop': 'Klik in de adresbalk rechts op het installatiepictogram (een scherm met een pijl).\nOf: browsermenu ⋮ → “AzuuCine installeren”.\nBevestig met “Installeren”.',
|
'install.desktop': 'Klik in de adresbalk rechts op het installatiepictogram (een scherm met een pijl).\nOf: browsermenu ⋮ → “Kino installeren”.\nBevestig met “Installeren”.',
|
||||||
'install.other': 'Open het menu van je browser.\nZoek naar “App installeren” of “Toevoegen aan startscherm”.',
|
'install.other': 'Open het menu van je browser.\nZoek naar “App installeren” of “Toevoegen aan startscherm”.',
|
||||||
'install.gotIt': 'Begrepen',
|
'install.gotIt': 'Begrepen',
|
||||||
'settings.themeX': 'Thema {name}',
|
'settings.themeX': 'Thema {name}',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': 'beoordeeld met {rating}',
|
'stats.ratedAs_one': 'beoordeeld met {rating}',
|
||||||
'stats.ratedAs_other': 'beoordeeld met {rating}',
|
'stats.ratedAs_other': 'beoordeeld met {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'AzuuCine-back-up',
|
'backup.shareTitle': 'Kino-back-up',
|
||||||
'backup.tooBig': 'Bestand te groot (max. 30 MB).',
|
'backup.tooBig': 'Bestand te groot (max. 30 MB).',
|
||||||
'backup.notJson': 'Dit bestand is geen geldige JSON.',
|
'backup.notJson': 'Dit bestand is geen geldige JSON.',
|
||||||
'backup.noItems': 'Geen items gevonden in dit bestand.',
|
'backup.noItems': 'Geen items gevonden in dit bestand.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Vrienden zoeken',
|
'social.findFriends': 'Vrienden zoeken',
|
||||||
'social.searchPh': 'Gebruikersnaam of naam…',
|
'social.searchPh': 'Gebruikersnaam of naam…',
|
||||||
'social.noResults': 'Niemand gevonden.',
|
'social.noResults': 'Niemand gevonden.',
|
||||||
'social.inviteHint': 'Zitten je vrienden nog niet op AzuuCine? Stuur ze de link naar je profiel.',
|
'social.inviteHint': 'Zitten je vrienden nog niet op Kino? Stuur ze de link naar je profiel.',
|
||||||
'social.shareMyProfile': 'Mijn profiel delen',
|
'social.shareMyProfile': 'Mijn profiel delen',
|
||||||
'social.inviteText': 'Volg me op AzuuCine!',
|
'social.inviteText': 'Volg me op Kino!',
|
||||||
'social.myProfile': 'Mijn profiel',
|
'social.myProfile': 'Mijn profiel',
|
||||||
|
|
||||||
'feed.title': 'Volgend',
|
'feed.title': 'Volgend',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "Je browser blokkeert opslag: inloggen is niet mogelijk.",
|
'auth.err.storage': "Je browser blokkeert opslag: inloggen is niet mogelijk.",
|
||||||
'welcome.title': "Kies je gebruikersnaam",
|
'welcome.title': "Kies je gebruikersnaam",
|
||||||
'welcome.titleA': "Welkom bij",
|
'welcome.titleA': "Welkom bij",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "Kies je gebruikersnaam: zo vinden je vrienden je en kunnen ze je volgen.",
|
'welcome.text': "Kies je gebruikersnaam: zo vinden je vrienden je en kunnen ze je volgen.",
|
||||||
'welcome.usernamePh': "jouw_naam",
|
'welcome.usernamePh': "jouw_naam",
|
||||||
'welcome.namePh': "Je naam",
|
'welcome.namePh': "Je naam",
|
||||||
@@ -1074,13 +1058,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 AzuuCine 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",
|
||||||
@@ -1220,10 +1197,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",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} reacties",
|
'comments.toggle_other': "{count} reacties",
|
||||||
'shared.nMembers_one': "{count} lid",
|
'shared.nMembers_one': "{count} lid",
|
||||||
'shared.nMembers_other': "{count} leden",
|
'shared.nMembers_other': "{count} leden",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Zoeken",
|
||||||
|
'search.placeholder': "Titels, acteurs, regisseurs, leden…",
|
||||||
|
'search.placeholderNoMembers': "Titels, acteurs, regisseurs…",
|
||||||
|
'search.tabAll': "Alles",
|
||||||
|
'search.tabTitles': "Titels",
|
||||||
|
'search.tabPeople': "Personen",
|
||||||
|
'search.tabMembers': "Leden",
|
||||||
|
'search.seeAll': "Alles bekijken",
|
||||||
|
'search.hint': "Zoek een film, serie, anime, acteur, regisseur of een lid op gebruikersnaam.",
|
||||||
|
'search.hintNoMembers': "Zoek een film, serie, anime, acteur of regisseur.",
|
||||||
|
'search.noPeople': "Geen personen gevonden.",
|
||||||
|
'search.noMembers': "Geen leden gevonden.",
|
||||||
|
'person.title': "Persoon",
|
||||||
|
'person.group.acting': "Acteren",
|
||||||
|
'person.group.voice': "Stemacteren",
|
||||||
|
'person.group.directing': "Regie",
|
||||||
|
'person.group.writing': "Scenario",
|
||||||
|
'person.group.production': "Productie",
|
||||||
|
'person.group.other': "Overige functies",
|
||||||
|
'person.animeStaff': "Anime-staf",
|
||||||
|
'person.notFound': "Persoon niet gevonden.",
|
||||||
|
'person.born': "Geboren op {date}",
|
||||||
|
'person.died': "Overleden op {date}",
|
||||||
|
'person.inLibrary': "In je bibliotheek: {count} / {total}",
|
||||||
|
'person.filmography': "Filmografie",
|
||||||
|
'person.sortPopular': "Populair",
|
||||||
|
'person.sortRecent': "Recent",
|
||||||
|
'person.empty': "Niets in deze categorie.",
|
||||||
|
'person.bioMore': "Lees meer",
|
||||||
|
'person.bioLess': "Minder",
|
||||||
|
'person.sourceTmdb': "Info en filmografie: TMDB",
|
||||||
|
'person.sourceAnilist': "Info en filmografie: AniList",
|
||||||
|
'person.job.director': "Regie",
|
||||||
|
'person.job.screenplay': "Scenario",
|
||||||
|
'person.job.writer': "Schrijver",
|
||||||
|
'person.job.story': "Verhaal",
|
||||||
|
'person.job.novel': "Roman",
|
||||||
|
'person.job.creator': "Bedenker",
|
||||||
|
'person.job.producer': "Productie",
|
||||||
|
'person.job.execProducer': "Uitvoerend producent",
|
||||||
|
'person.job.composer': "Muziek",
|
||||||
|
'person.job.dop': "Camera",
|
||||||
|
'person.job.editor': "Montage",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Overzicht",
|
||||||
|
'stats.tabOther': "Overig",
|
||||||
|
'stats.period': "Periode",
|
||||||
|
'stats.allYears': "Alle jaren",
|
||||||
|
'stats.timeSpent': "Bestede tijd",
|
||||||
|
'stats.finished': "Afgerond",
|
||||||
|
'stats.filmsSeen': "Geziene films",
|
||||||
|
'stats.rewatched': "opnieuw gezien",
|
||||||
|
'stats.avgLength': "Gemiddelde duur",
|
||||||
|
'stats.episodesSeen': "Geziene afleveringen",
|
||||||
|
'stats.decades': "Decennia van uitgave",
|
||||||
|
'stats.settings': "Statistiekinstellingen",
|
||||||
|
'stats.monthHidden': "verborgen",
|
||||||
|
'stats.hideMonthsHint': "Vink een maand uit om hem uit de grafiek te halen (bijvoorbeeld de maand waarin je alles in één keer toevoegde). De titels tellen elders gewoon mee.",
|
||||||
|
'stats.showAllMonths': "Alles weer tonen",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Verkennen zonder account",
|
||||||
|
'guest.promptTitle': "Maak een account om verder te gaan",
|
||||||
|
'guest.promptText': "Om te beoordelen, een titel aan je bibliotheek toe te voegen of een recensie te schrijven heb je een account nodig. Het is gratis en duurt 30 seconden.",
|
||||||
|
'guest.banner': "Je verkent zonder account: log in om te beoordelen en je titels te volgen.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Mijn seizoenen",
|
||||||
|
'seasons.average': "Gemiddeld:",
|
||||||
|
'seasons.hint': "Beoordeel elk seizoen zodra je het gezien hebt. Is de serie uit, dan wordt je eindscore het gemiddelde van je beoordeelde seizoenen.",
|
||||||
|
'seasons.season': "Seizoen {n}",
|
||||||
|
'seasons.seen': "Gezien",
|
||||||
|
'seasons.progress': "{seen}/{size} afleveringen",
|
||||||
|
'seasons.notStarted': "Nog niet begonnen",
|
||||||
|
'seasons.rateNow': "Beoordeel",
|
||||||
|
'seasons.reviewPh': "Jouw recensie van seizoen {n}…",
|
||||||
|
'seasons.writeReview': "Een recensie over dit seizoen schrijven",
|
||||||
|
'seasons.finalHint': "Aan het eind van de serie is je score het gemiddelde van je beoordeelde seizoenen.",
|
||||||
|
'seasons.finalApplied': "Gemiddelde van je beoordeelde seizoenen.",
|
||||||
|
"rewatch.title": "Opnieuw kijken",
|
||||||
|
"rewatch.badge": "Opnieuw aan het kijken",
|
||||||
|
"rewatch.views_one": "{count} keer gezien",
|
||||||
|
"rewatch.views_other": "{count} keer gezien",
|
||||||
|
"rewatch.added": "‘{title}’: opnieuw kijken toegevoegd",
|
||||||
|
"rewatch.add": "Toevoegen",
|
||||||
|
"rewatch.finished": "Opnieuw kijken afgerond, het staat nu in je geschiedenis.",
|
||||||
|
"rewatch.since": "begonnen op {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} afleveringen opnieuw gezien",
|
||||||
|
"rewatch.trackingHint": "Afleveringen die je nu afvinkt tellen voor deze nieuwe kijkbeurt. Je eerste keer, je score en recensies blijven zoals ze zijn.",
|
||||||
|
"rewatch.markDone": "Nu afronden",
|
||||||
|
"rewatch.stop": "Stoppen",
|
||||||
|
"rewatch.stopped": "‘{title}’: opnieuw kijken gestopt",
|
||||||
|
"rewatch.start": "Opnieuw beginnen met kijken",
|
||||||
|
"rewatch.startHint": "De voortgang begint weer bij aflevering 1, zonder je eerste keer te wijzigen.",
|
||||||
|
"rewatch.alreadyDone": "Al opnieuw gezien? Datum toevoegen",
|
||||||
|
"rewatch.historyEmpty": "Nog niet opnieuw gekeken: gebruik ‘Opnieuw kijken’ hierboven.",
|
||||||
|
"rewatch.finishedToast": "‘{title}’: opnieuw kijken afgerond",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+108
-37
@@ -198,6 +198,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Najpierw potwierdź swój adres linkiem z e-maila.',
|
'auth.err.notConfirmed': 'Najpierw potwierdź swój adres linkiem z e-maila.',
|
||||||
'auth.err.exists': 'Konto z tym adresem e-mail już istnieje.',
|
'auth.err.exists': 'Konto z tym adresem e-mail już istnieje.',
|
||||||
'auth.err.weak': 'Hasło jest za słabe (co najmniej {n} znaków, litery i cyfry).',
|
'auth.err.weak': 'Hasło jest za słabe (co najmniej {n} znaków, litery i cyfry).',
|
||||||
|
'auth.err.pwned': "To hasło pojawiło się w znanym wycieku danych — wybierz inne.",
|
||||||
'auth.err.samePassword': 'Nowe hasło musi być inne niż poprzednie.',
|
'auth.err.samePassword': 'Nowe hasło musi być inne niż poprzednie.',
|
||||||
'auth.err.emailRate': 'Za dużo próśb. Spróbuj ponownie za kilka minut.',
|
'auth.err.emailRate': 'Za dużo próśb. Spróbuj ponownie za kilka minut.',
|
||||||
'auth.err.rate': 'Za dużo prób. Spróbuj ponownie za kilka minut.',
|
'auth.err.rate': 'Za dużo prób. Spróbuj ponownie za kilka minut.',
|
||||||
@@ -240,16 +241,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Gwiazdy',
|
'theme.modeStarfield': 'Gwiazdy',
|
||||||
'settings.accentColor': 'Kolor akcentu',
|
'settings.accentColor': 'Kolor akcentu',
|
||||||
'settings.installApp': 'Zainstaluj aplikację',
|
'settings.installApp': 'Zainstaluj aplikację',
|
||||||
'settings.installHint': 'Dodaj AzuuCine 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,16 +251,7 @@ const dict: Translations = {
|
|||||||
'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',
|
'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',
|
||||||
@@ -313,10 +297,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Zainstaluj AzuuCine',
|
'install.title': 'Zainstaluj Kino',
|
||||||
'install.ios': 'Otwórz AzuuCine 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”.',
|
||||||
'install.android': 'Otwórz AzuuCine w Chrome.\nDotknij menu ⋮ w prawym górnym rogu.\nWybierz „Dodaj do ekranu głównego” (lub „Zainstaluj aplikację”).',
|
'install.android': 'Otwórz Kino w Chrome.\nDotknij menu ⋮ w prawym górnym rogu.\nWybierz „Dodaj do ekranu głównego” (lub „Zainstaluj aplikację”).',
|
||||||
'install.desktop': 'Na pasku adresu kliknij ikonę instalacji po prawej (ekran ze strzałką).\nLub: menu ⋮ przeglądarki → „Zainstaluj AzuuCine”.\nPotwierdź przyciskiem „Zainstaluj”.',
|
'install.desktop': 'Na pasku adresu kliknij ikonę instalacji po prawej (ekran ze strzałką).\nLub: menu ⋮ przeglądarki → „Zainstaluj Kino”.\nPotwierdź przyciskiem „Zainstaluj”.',
|
||||||
'install.other': 'Otwórz menu przeglądarki.\nPoszukaj „Zainstaluj aplikację” lub „Dodaj do ekranu głównego”.',
|
'install.other': 'Otwórz menu przeglądarki.\nPoszukaj „Zainstaluj aplikację” lub „Dodaj do ekranu głównego”.',
|
||||||
'install.gotIt': 'Rozumiem',
|
'install.gotIt': 'Rozumiem',
|
||||||
'settings.themeX': 'Motyw {name}',
|
'settings.themeX': 'Motyw {name}',
|
||||||
@@ -798,7 +782,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_many': 'ocenionych na {rating}',
|
'stats.ratedAs_many': 'ocenionych na {rating}',
|
||||||
'stats.ratedAs_other': 'ocenione na {rating}',
|
'stats.ratedAs_other': 'ocenione na {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'Kopia zapasowa AzuuCine',
|
'backup.shareTitle': 'Kopia zapasowa Kino',
|
||||||
'backup.tooBig': 'Plik jest za duży (maks. 30 MB).',
|
'backup.tooBig': 'Plik jest za duży (maks. 30 MB).',
|
||||||
'backup.notJson': 'Ten plik nie jest prawidłowym plikiem JSON.',
|
'backup.notJson': 'Ten plik nie jest prawidłowym plikiem JSON.',
|
||||||
'backup.noItems': 'W tym pliku nie znaleziono żadnych wpisów.',
|
'backup.noItems': 'W tym pliku nie znaleziono żadnych wpisów.',
|
||||||
@@ -883,9 +867,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Znajdź znajomych',
|
'social.findFriends': 'Znajdź znajomych',
|
||||||
'social.searchPh': 'Nazwa użytkownika lub imię…',
|
'social.searchPh': 'Nazwa użytkownika lub imię…',
|
||||||
'social.noResults': 'Nikt nie pasuje.',
|
'social.noResults': 'Nikt nie pasuje.',
|
||||||
'social.inviteHint': 'Twoich znajomych nie ma jeszcze w AzuuCine? Wyślij im link do swojego profilu.',
|
'social.inviteHint': 'Twoich znajomych nie ma jeszcze w Kino? Wyślij im link do swojego profilu.',
|
||||||
'social.shareMyProfile': 'Udostępnij mój profil',
|
'social.shareMyProfile': 'Udostępnij mój profil',
|
||||||
'social.inviteText': 'Obserwuj mnie w AzuuCine!',
|
'social.inviteText': 'Obserwuj mnie w Kino!',
|
||||||
'social.myProfile': 'Mój profil',
|
'social.myProfile': 'Mój profil',
|
||||||
|
|
||||||
'feed.title': 'Obserwowani',
|
'feed.title': 'Obserwowani',
|
||||||
@@ -901,7 +885,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': 'Twoja przeglądarka blokuje pamięć: nie można się zalogować.',
|
'auth.err.storage': 'Twoja przeglądarka blokuje pamięć: nie można się zalogować.',
|
||||||
'welcome.title': 'Wybierz nazwę użytkownika',
|
'welcome.title': 'Wybierz nazwę użytkownika',
|
||||||
'welcome.titleA': 'Witaj w',
|
'welcome.titleA': 'Witaj w',
|
||||||
'welcome.titleB': 'AzuuCine',
|
'welcome.titleB': 'Kino',
|
||||||
'welcome.text': 'Wybierz nazwę użytkownika: dzięki niej znajomi cię znajdą i będą mogli cię obserwować.',
|
'welcome.text': 'Wybierz nazwę użytkownika: dzięki niej znajomi cię znajdą i będą mogli cię obserwować.',
|
||||||
'welcome.usernamePh': 'twoja_nazwa',
|
'welcome.usernamePh': 'twoja_nazwa',
|
||||||
'welcome.namePh': 'Twoje imię',
|
'welcome.namePh': 'Twoje imię',
|
||||||
@@ -1210,13 +1194,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 AzuuCine 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",
|
||||||
@@ -1356,10 +1333,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",
|
||||||
@@ -1408,6 +1381,104 @@ const dict: Translations = {
|
|||||||
'shared.nMembers_few': "{count} członków",
|
'shared.nMembers_few': "{count} członków",
|
||||||
'shared.nMembers_many': "{count} członków",
|
'shared.nMembers_many': "{count} członków",
|
||||||
'shared.nMembers_other': "{count} członka",
|
'shared.nMembers_other': "{count} członka",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Szukaj",
|
||||||
|
'search.placeholder': "Tytuły, aktorzy, reżyserzy, użytkownicy…",
|
||||||
|
'search.placeholderNoMembers': "Tytuły, aktorzy, reżyserzy…",
|
||||||
|
'search.tabAll': "Wszystko",
|
||||||
|
'search.tabTitles': "Tytuły",
|
||||||
|
'search.tabPeople': "Osoby",
|
||||||
|
'search.tabMembers': "Użytkownicy",
|
||||||
|
'search.seeAll': "Zobacz wszystko",
|
||||||
|
'search.hint': "Szukaj filmu, serialu, anime, aktora, reżysera lub użytkownika po nazwie.",
|
||||||
|
'search.hintNoMembers': "Szukaj filmu, serialu, anime, aktora lub reżysera.",
|
||||||
|
'search.noPeople': "Nie znaleziono osób.",
|
||||||
|
'search.noMembers': "Nie znaleziono użytkowników.",
|
||||||
|
'person.title': "Osoba",
|
||||||
|
'person.group.acting': "Aktorstwo",
|
||||||
|
'person.group.voice': "Dubbing",
|
||||||
|
'person.group.directing': "Reżyseria",
|
||||||
|
'person.group.writing': "Scenariusz",
|
||||||
|
'person.group.production': "Produkcja",
|
||||||
|
'person.group.other': "Inne funkcje",
|
||||||
|
'person.animeStaff': "Ekipa anime",
|
||||||
|
'person.notFound': "Nie znaleziono osoby.",
|
||||||
|
'person.born': "Urodzony/a {date}",
|
||||||
|
'person.died': "Zmarł/a {date}",
|
||||||
|
'person.inLibrary': "W twojej bibliotece: {count} / {total}",
|
||||||
|
'person.filmography': "Filmografia",
|
||||||
|
'person.sortPopular': "Popularne",
|
||||||
|
'person.sortRecent': "Najnowsze",
|
||||||
|
'person.empty': "Nic w tej kategorii.",
|
||||||
|
'person.bioMore': "Czytaj dalej",
|
||||||
|
'person.bioLess': "Zwiń",
|
||||||
|
'person.sourceTmdb': "Informacje i filmografia: TMDB",
|
||||||
|
'person.sourceAnilist': "Informacje i filmografia: AniList",
|
||||||
|
'person.job.director': "Reżyseria",
|
||||||
|
'person.job.screenplay': "Scenariusz",
|
||||||
|
'person.job.writer': "Scenarzysta",
|
||||||
|
'person.job.story': "Historia",
|
||||||
|
'person.job.novel': "Powieść",
|
||||||
|
'person.job.creator': "Twórca",
|
||||||
|
'person.job.producer': "Produkcja",
|
||||||
|
'person.job.execProducer': "Producent wykonawczy",
|
||||||
|
'person.job.composer': "Muzyka",
|
||||||
|
'person.job.dop': "Zdjęcia",
|
||||||
|
'person.job.editor': "Montaż",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Ogólne",
|
||||||
|
'stats.tabOther': "Inne",
|
||||||
|
'stats.period': "Okres",
|
||||||
|
'stats.allYears': "Wszystkie lata",
|
||||||
|
'stats.timeSpent': "Spędzony czas",
|
||||||
|
'stats.finished': "Ukończone",
|
||||||
|
'stats.filmsSeen': "Obejrzane filmy",
|
||||||
|
'stats.rewatched': "obejrzane ponownie",
|
||||||
|
'stats.avgLength': "Średnia długość",
|
||||||
|
'stats.episodesSeen': "Obejrzane odcinki",
|
||||||
|
'stats.decades': "Dekady premiery",
|
||||||
|
'stats.settings': "Ustawienia statystyk",
|
||||||
|
'stats.monthHidden': "ukryty",
|
||||||
|
'stats.hideMonthsHint': "Odznacz miesiąc, aby usunąć go z wykresu (np. miesiąc, w którym dodałeś wszystko naraz). Tytuły nadal liczą się w pozostałych statystykach.",
|
||||||
|
'stats.showAllMonths': "Pokaż wszystko",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Przeglądaj bez konta",
|
||||||
|
'guest.promptTitle': "Załóż konto, aby kontynuować",
|
||||||
|
'guest.promptText': "Aby oceniać, dodawać tytuły do biblioteki lub pisać recenzje, potrzebujesz konta. To darmowe i zajmuje 30 sekund.",
|
||||||
|
'guest.banner': "Przeglądasz bez konta: zaloguj się, aby oceniać i śledzić swoje tytuły.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Moje sezony",
|
||||||
|
'seasons.average': "Średnia:",
|
||||||
|
'seasons.hint': "Oceniaj każdy sezon po obejrzeniu. Po skończeniu serialu twoja ocena końcowa będzie średnią ocenionych sezonów.",
|
||||||
|
'seasons.season': "Sezon {n}",
|
||||||
|
'seasons.seen': "Obejrzany",
|
||||||
|
'seasons.progress': "{seen}/{size} odcinków",
|
||||||
|
'seasons.notStarted': "Jeszcze nie rozpoczęty",
|
||||||
|
'seasons.rateNow': "Oceń",
|
||||||
|
'seasons.reviewPh': "Twoja recenzja sezonu {n}…",
|
||||||
|
'seasons.writeReview': "Napisz recenzję tego sezonu",
|
||||||
|
'seasons.finalHint': "Po skończeniu serialu twoja ocena będzie średnią ocenionych sezonów.",
|
||||||
|
'seasons.finalApplied': "Średnia ocenionych sezonów.",
|
||||||
|
"rewatch.title": "Obejrzyj ponownie",
|
||||||
|
"rewatch.badge": "Ponowne oglądanie",
|
||||||
|
"rewatch.views_one": "Obejrzane {count} raz",
|
||||||
|
"rewatch.views_other": "Obejrzane {count} razy",
|
||||||
|
"rewatch.added": "„{title}”: dodano ponowne obejrzenie",
|
||||||
|
"rewatch.add": "Dodaj",
|
||||||
|
"rewatch.finished": "Ponowne oglądanie zakończone, jest już w twojej historii.",
|
||||||
|
"rewatch.since": "rozpoczęte {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} odcinków obejrzanych ponownie",
|
||||||
|
"rewatch.trackingHint": "Zaznaczane teraz odcinki liczą się do ponownego oglądania. Pierwsze obejrzenie, ocena i recenzje się nie zmieniają.",
|
||||||
|
"rewatch.markDone": "Zakończ teraz",
|
||||||
|
"rewatch.stop": "Przerwij",
|
||||||
|
"rewatch.stopped": "„{title}”: przerwano ponowne oglądanie",
|
||||||
|
"rewatch.start": "Zacznij oglądać ponownie",
|
||||||
|
"rewatch.startHint": "Postęp zaczyna się od odcinka 1, pierwsze obejrzenie zostaje bez zmian.",
|
||||||
|
"rewatch.alreadyDone": "Już obejrzane ponownie? Dodaj datę",
|
||||||
|
"rewatch.historyEmpty": "Brak ponownych obejrzeń: użyj „Obejrzyj ponownie” powyżej.",
|
||||||
|
"rewatch.views_few": "Obejrzane {count} razy",
|
||||||
|
"rewatch.views_many": "Obejrzane {count} razy",
|
||||||
|
"rewatch.finishedToast": "„{title}”: ponowne oglądanie zakończone",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Primeiro confirme seu endereço com o link que você recebeu por e-mail.',
|
'auth.err.notConfirmed': 'Primeiro confirme seu endereço com o link que você recebeu por e-mail.',
|
||||||
'auth.err.exists': 'Já existe uma conta com esse e-mail.',
|
'auth.err.exists': 'Já existe uma conta com esse e-mail.',
|
||||||
'auth.err.weak': 'Senha muito fraca (pelo menos {n} caracteres, misturando letras e números).',
|
'auth.err.weak': 'Senha muito fraca (pelo menos {n} caracteres, misturando letras e números).',
|
||||||
|
'auth.err.pwned': "Esta palavra-passe apareceu numa fuga de dados conhecida: escolhe outra.",
|
||||||
'auth.err.samePassword': 'A nova senha precisa ser diferente da antiga.',
|
'auth.err.samePassword': 'A nova senha precisa ser diferente da antiga.',
|
||||||
'auth.err.emailRate': 'Muitas solicitações. Tente de novo em alguns minutos.',
|
'auth.err.emailRate': 'Muitas solicitações. Tente de novo em alguns minutos.',
|
||||||
'auth.err.rate': 'Muitas tentativas. Tente de novo em alguns minutos.',
|
'auth.err.rate': 'Muitas tentativas. Tente de novo em alguns minutos.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Estrelado',
|
'theme.modeStarfield': 'Estrelado',
|
||||||
'settings.accentColor': 'Cor de destaque',
|
'settings.accentColor': 'Cor de destaque',
|
||||||
'settings.installApp': 'Instalar o app',
|
'settings.installApp': 'Instalar o app',
|
||||||
'settings.installHint': 'Adicione o AzuuCine à 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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'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',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Instalar o AzuuCine',
|
'install.title': 'Instalar o Kino',
|
||||||
'install.ios': 'Abra o AzuuCine 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”.',
|
||||||
'install.android': 'Abra o AzuuCine no Chrome.\nToque no menu ⋮ no canto superior direito.\nEscolha “Adicionar à tela inicial” (ou “Instalar app”).',
|
'install.android': 'Abra o Kino no Chrome.\nToque no menu ⋮ no canto superior direito.\nEscolha “Adicionar à tela inicial” (ou “Instalar app”).',
|
||||||
'install.desktop': 'Na barra de endereço, clique no ícone de instalação à direita (uma tela com uma seta).\nOu: menu ⋮ do navegador → “Instalar AzuuCine”.\nConfirme com “Instalar”.',
|
'install.desktop': 'Na barra de endereço, clique no ícone de instalação à direita (uma tela com uma seta).\nOu: menu ⋮ do navegador → “Instalar Kino”.\nConfirme com “Instalar”.',
|
||||||
'install.other': 'Abra o menu do seu navegador.\nProcure por “Instalar app” ou “Adicionar à tela inicial”.',
|
'install.other': 'Abra o menu do seu navegador.\nProcure por “Instalar app” ou “Adicionar à tela inicial”.',
|
||||||
'install.gotIt': 'Entendi',
|
'install.gotIt': 'Entendi',
|
||||||
'settings.themeX': 'Tema {name}',
|
'settings.themeX': 'Tema {name}',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': 'nota {rating}',
|
'stats.ratedAs_one': 'nota {rating}',
|
||||||
'stats.ratedAs_other': 'nota {rating}',
|
'stats.ratedAs_other': 'nota {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'Backup do AzuuCine',
|
'backup.shareTitle': 'Backup do Kino',
|
||||||
'backup.tooBig': 'Arquivo grande demais (máximo de 30 MB).',
|
'backup.tooBig': 'Arquivo grande demais (máximo de 30 MB).',
|
||||||
'backup.notJson': 'Este arquivo não é um JSON válido.',
|
'backup.notJson': 'Este arquivo não é um JSON válido.',
|
||||||
'backup.noItems': 'Nenhuma ficha encontrada neste arquivo.',
|
'backup.noItems': 'Nenhuma ficha encontrada neste arquivo.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Encontrar amigos',
|
'social.findFriends': 'Encontrar amigos',
|
||||||
'social.searchPh': 'Nome de usuário ou nome…',
|
'social.searchPh': 'Nome de usuário ou nome…',
|
||||||
'social.noResults': 'Ninguém encontrado.',
|
'social.noResults': 'Ninguém encontrado.',
|
||||||
'social.inviteHint': 'Seus amigos ainda não estão no AzuuCine? Mande para eles o link do seu perfil.',
|
'social.inviteHint': 'Seus amigos ainda não estão no Kino? Mande para eles o link do seu perfil.',
|
||||||
'social.shareMyProfile': 'Compartilhar meu perfil',
|
'social.shareMyProfile': 'Compartilhar meu perfil',
|
||||||
'social.inviteText': 'Me siga no AzuuCine!',
|
'social.inviteText': 'Me siga no Kino!',
|
||||||
'social.myProfile': 'Meu perfil',
|
'social.myProfile': 'Meu perfil',
|
||||||
|
|
||||||
'feed.title': 'Quem eu sigo',
|
'feed.title': 'Quem eu sigo',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "Seu navegador está bloqueando o armazenamento: não é possível entrar.",
|
'auth.err.storage': "Seu navegador está bloqueando o armazenamento: não é possível entrar.",
|
||||||
'welcome.title': "Escolha seu nome de usuário",
|
'welcome.title': "Escolha seu nome de usuário",
|
||||||
'welcome.titleA': "Boas-vindas ao",
|
'welcome.titleA': "Boas-vindas ao",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "Escolha um nome de usuário: é assim que seus amigos vão te encontrar e seguir.",
|
'welcome.text': "Escolha um nome de usuário: é assim que seus amigos vão te encontrar e seguir.",
|
||||||
'welcome.usernamePh': "seu_usuario",
|
'welcome.usernamePh': "seu_usuario",
|
||||||
'welcome.namePh': "Seu nome",
|
'welcome.namePh': "Seu nome",
|
||||||
@@ -1074,13 +1058,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 AzuuCine à 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",
|
||||||
@@ -1220,10 +1197,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",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} comentários",
|
'comments.toggle_other': "{count} comentários",
|
||||||
'shared.nMembers_one': "{count} membro",
|
'shared.nMembers_one': "{count} membro",
|
||||||
'shared.nMembers_other': "{count} membros",
|
'shared.nMembers_other': "{count} membros",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Pesquisar",
|
||||||
|
'search.placeholder': "Títulos, atores, realizadores, membros…",
|
||||||
|
'search.placeholderNoMembers': "Títulos, atores, realizadores…",
|
||||||
|
'search.tabAll': "Tudo",
|
||||||
|
'search.tabTitles': "Títulos",
|
||||||
|
'search.tabPeople': "Pessoas",
|
||||||
|
'search.tabMembers': "Membros",
|
||||||
|
'search.seeAll': "Ver tudo",
|
||||||
|
'search.hint': "Pesquisa um filme, série, anime, ator, realizador ou um membro pelo nome de utilizador.",
|
||||||
|
'search.hintNoMembers': "Pesquisa um filme, série, anime, ator ou realizador.",
|
||||||
|
'search.noPeople': "Nenhuma pessoa encontrada.",
|
||||||
|
'search.noMembers': "Nenhum membro encontrado.",
|
||||||
|
'person.title': "Pessoa",
|
||||||
|
'person.group.acting': "Atuação",
|
||||||
|
'person.group.voice': "Dobragem",
|
||||||
|
'person.group.directing': "Realização",
|
||||||
|
'person.group.writing': "Argumento",
|
||||||
|
'person.group.production': "Produção",
|
||||||
|
'person.group.other': "Outras funções",
|
||||||
|
'person.animeStaff': "Equipa de anime",
|
||||||
|
'person.notFound': "Pessoa não encontrada.",
|
||||||
|
'person.born': "Nasceu a {date}",
|
||||||
|
'person.died': "Morreu a {date}",
|
||||||
|
'person.inLibrary': "Na tua biblioteca: {count} / {total}",
|
||||||
|
'person.filmography': "Filmografia",
|
||||||
|
'person.sortPopular': "Populares",
|
||||||
|
'person.sortRecent': "Recentes",
|
||||||
|
'person.empty': "Nada nesta categoria.",
|
||||||
|
'person.bioMore': "Ler mais",
|
||||||
|
'person.bioLess': "Mostrar menos",
|
||||||
|
'person.sourceTmdb': "Informação e filmografia: TMDB",
|
||||||
|
'person.sourceAnilist': "Informação e filmografia: AniList",
|
||||||
|
'person.job.director': "Realização",
|
||||||
|
'person.job.screenplay': "Argumento",
|
||||||
|
'person.job.writer': "Argumentista",
|
||||||
|
'person.job.story': "História",
|
||||||
|
'person.job.novel': "Romance",
|
||||||
|
'person.job.creator': "Criação",
|
||||||
|
'person.job.producer': "Produção",
|
||||||
|
'person.job.execProducer': "Produção executiva",
|
||||||
|
'person.job.composer': "Música",
|
||||||
|
'person.job.dop': "Fotografia",
|
||||||
|
'person.job.editor': "Montagem",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Geral",
|
||||||
|
'stats.tabOther': "Outros",
|
||||||
|
'stats.period': "Período",
|
||||||
|
'stats.allYears': "Todos os anos",
|
||||||
|
'stats.timeSpent': "Tempo passado",
|
||||||
|
'stats.finished': "Terminados",
|
||||||
|
'stats.filmsSeen': "Filmes vistos",
|
||||||
|
'stats.rewatched': "revistos",
|
||||||
|
'stats.avgLength': "Duração média",
|
||||||
|
'stats.episodesSeen': "Episódios vistos",
|
||||||
|
'stats.decades': "Décadas de estreia",
|
||||||
|
'stats.settings': "Definições das estatísticas",
|
||||||
|
'stats.monthHidden': "oculto",
|
||||||
|
'stats.hideMonthsHint': "Desmarca um mês para o retirar do gráfico (por exemplo, o mês em que adicionaste tudo de uma vez). Os títulos continuam a contar em todo o resto.",
|
||||||
|
'stats.showAllMonths': "Mostrar tudo outra vez",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Explorar sem conta",
|
||||||
|
'guest.promptTitle': "Cria a tua conta para continuar",
|
||||||
|
'guest.promptText': "Para avaliar, adicionar um título à tua biblioteca ou escrever uma crítica, precisas de uma conta. É grátis e demora 30 segundos.",
|
||||||
|
'guest.banner': "Estás a explorar sem conta: inicia sessão para avaliar e acompanhar os teus títulos.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "As minhas temporadas",
|
||||||
|
'seasons.average': "Média:",
|
||||||
|
'seasons.hint': "Avalia cada temporada quando a vires. Quando a série terminar, a tua nota final passa a ser a média das temporadas avaliadas.",
|
||||||
|
'seasons.season': "Temporada {n}",
|
||||||
|
'seasons.seen': "Vista",
|
||||||
|
'seasons.progress': "{seen}/{size} episódios",
|
||||||
|
'seasons.notStarted': "Ainda não começada",
|
||||||
|
'seasons.rateNow': "Avaliar",
|
||||||
|
'seasons.reviewPh': "A tua crítica da temporada {n}…",
|
||||||
|
'seasons.writeReview': "Escrever uma crítica desta temporada",
|
||||||
|
'seasons.finalHint': "No fim da série, a tua nota será a média das temporadas avaliadas.",
|
||||||
|
'seasons.finalApplied': "Média das tuas temporadas avaliadas.",
|
||||||
|
"rewatch.title": "Rever",
|
||||||
|
"rewatch.badge": "Revendo",
|
||||||
|
"rewatch.views_one": "Visto {count} vez",
|
||||||
|
"rewatch.views_other": "Visto {count} vezes",
|
||||||
|
"rewatch.added": "“{title}”: nova visualização adicionada",
|
||||||
|
"rewatch.add": "Adicionar",
|
||||||
|
"rewatch.finished": "Nova visualização concluída, agora está no seu histórico.",
|
||||||
|
"rewatch.since": "iniciada em {date}",
|
||||||
|
"rewatch.progress": "{seen} / {total} episódios revistos",
|
||||||
|
"rewatch.trackingHint": "Os episódios que você marcar contam para esta nova visualização. A primeira, sua nota e suas avaliações não mudam.",
|
||||||
|
"rewatch.markDone": "Concluir agora",
|
||||||
|
"rewatch.stop": "Parar",
|
||||||
|
"rewatch.stopped": "“{title}”: nova visualização interrompida",
|
||||||
|
"rewatch.start": "Começar a rever",
|
||||||
|
"rewatch.startHint": "O progresso volta ao episódio 1, sem mexer na sua primeira visualização.",
|
||||||
|
"rewatch.alreadyDone": "Já reviu? Adicionar uma data",
|
||||||
|
"rewatch.historyEmpty": "Nenhuma nova visualização ainda: use “Rever” acima.",
|
||||||
|
"rewatch.finishedToast": "“{title}”: nova visualização concluída",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+108
-37
@@ -198,6 +198,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Сначала подтверди адрес по ссылке из письма.',
|
'auth.err.notConfirmed': 'Сначала подтверди адрес по ссылке из письма.',
|
||||||
'auth.err.exists': 'Аккаунт с этой почтой уже существует.',
|
'auth.err.exists': 'Аккаунт с этой почтой уже существует.',
|
||||||
'auth.err.weak': 'Слишком простой пароль (минимум {n} символов, буквы и цифры).',
|
'auth.err.weak': 'Слишком простой пароль (минимум {n} символов, буквы и цифры).',
|
||||||
|
'auth.err.pwned': "Этот пароль встречался в известной утечке данных — выбери другой.",
|
||||||
'auth.err.samePassword': 'Новый пароль должен отличаться от старого.',
|
'auth.err.samePassword': 'Новый пароль должен отличаться от старого.',
|
||||||
'auth.err.emailRate': 'Слишком много запросов. Попробуй через несколько минут.',
|
'auth.err.emailRate': 'Слишком много запросов. Попробуй через несколько минут.',
|
||||||
'auth.err.rate': 'Слишком много попыток. Попробуй через несколько минут.',
|
'auth.err.rate': 'Слишком много попыток. Попробуй через несколько минут.',
|
||||||
@@ -240,16 +241,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Звёзды',
|
'theme.modeStarfield': 'Звёзды',
|
||||||
'settings.accentColor': 'Цвет акцента',
|
'settings.accentColor': 'Цвет акцента',
|
||||||
'settings.installApp': 'Установить приложение',
|
'settings.installApp': 'Установить приложение',
|
||||||
'settings.installHint': 'Добавь AzuuCine на главный экран или рабочий стол.',
|
'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,16 +251,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': 'Пока нет отзывов',
|
'reviews.none': 'Пока нет отзывов',
|
||||||
'reviews.seeAll': 'Смотреть все отзывы',
|
'reviews.seeAll': 'Смотреть все отзывы',
|
||||||
'reviews.react': 'Отреагировать',
|
'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',
|
||||||
@@ -313,10 +297,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Установить AzuuCine',
|
'install.title': 'Установить Kino',
|
||||||
'install.ios': 'Открой AzuuCine в Safari.\nНажми кнопку «Поделиться» (квадрат со стрелкой вверх).\nВыбери «На экран «Домой»», затем «Добавить».',
|
'install.ios': 'Открой Kino в Safari.\nНажми кнопку «Поделиться» (квадрат со стрелкой вверх).\nВыбери «На экран «Домой»», затем «Добавить».',
|
||||||
'install.android': 'Открой AzuuCine в Chrome.\nНажми меню ⋮ в правом верхнем углу.\nВыбери «Добавить на главный экран» (или «Установить приложение»).',
|
'install.android': 'Открой Kino в Chrome.\nНажми меню ⋮ в правом верхнем углу.\nВыбери «Добавить на главный экран» (или «Установить приложение»).',
|
||||||
'install.desktop': 'В адресной строке нажми значок установки справа (экран со стрелкой).\nИли: меню ⋮ браузера → «Установить AzuuCine».\nПодтверди кнопкой «Установить».',
|
'install.desktop': 'В адресной строке нажми значок установки справа (экран со стрелкой).\nИли: меню ⋮ браузера → «Установить Kino».\nПодтверди кнопкой «Установить».',
|
||||||
'install.other': 'Открой меню браузера.\nНайди «Установить приложение» или «Добавить на главный экран».',
|
'install.other': 'Открой меню браузера.\nНайди «Установить приложение» или «Добавить на главный экран».',
|
||||||
'install.gotIt': 'Понятно',
|
'install.gotIt': 'Понятно',
|
||||||
'settings.themeX': 'Тема «{name}»',
|
'settings.themeX': 'Тема «{name}»',
|
||||||
@@ -798,7 +782,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_many': 'с оценкой {rating}',
|
'stats.ratedAs_many': 'с оценкой {rating}',
|
||||||
'stats.ratedAs_other': 'с оценкой {rating}',
|
'stats.ratedAs_other': 'с оценкой {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'Резервная копия AzuuCine',
|
'backup.shareTitle': 'Резервная копия Kino',
|
||||||
'backup.tooBig': 'Файл слишком большой (максимум 30 МБ).',
|
'backup.tooBig': 'Файл слишком большой (максимум 30 МБ).',
|
||||||
'backup.notJson': 'Этот файл не является корректным JSON.',
|
'backup.notJson': 'Этот файл не является корректным JSON.',
|
||||||
'backup.noItems': 'В этом файле нет записей.',
|
'backup.noItems': 'В этом файле нет записей.',
|
||||||
@@ -883,9 +867,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Найти друзей',
|
'social.findFriends': 'Найти друзей',
|
||||||
'social.searchPh': 'Ник или имя…',
|
'social.searchPh': 'Ник или имя…',
|
||||||
'social.noResults': 'Никого не найдено.',
|
'social.noResults': 'Никого не найдено.',
|
||||||
'social.inviteHint': 'Твоих друзей ещё нет в AzuuCine? Отправь им ссылку на свой профиль.',
|
'social.inviteHint': 'Твоих друзей ещё нет в Kino? Отправь им ссылку на свой профиль.',
|
||||||
'social.shareMyProfile': 'Поделиться профилем',
|
'social.shareMyProfile': 'Поделиться профилем',
|
||||||
'social.inviteText': 'Подписывайся на меня в AzuuCine!',
|
'social.inviteText': 'Подписывайся на меня в Kino!',
|
||||||
'social.myProfile': 'Мой профиль',
|
'social.myProfile': 'Мой профиль',
|
||||||
|
|
||||||
'feed.title': 'Подписки',
|
'feed.title': 'Подписки',
|
||||||
@@ -901,7 +885,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': 'Браузер блокирует хранилище: войти не получится.',
|
'auth.err.storage': 'Браузер блокирует хранилище: войти не получится.',
|
||||||
'welcome.title': 'Выбери ник',
|
'welcome.title': 'Выбери ник',
|
||||||
'welcome.titleA': 'Добро пожаловать в',
|
'welcome.titleA': 'Добро пожаловать в',
|
||||||
'welcome.titleB': 'AzuuCine',
|
'welcome.titleB': 'Kino',
|
||||||
'welcome.text': 'Выбери ник: по нему друзья смогут найти тебя и подписаться.',
|
'welcome.text': 'Выбери ник: по нему друзья смогут найти тебя и подписаться.',
|
||||||
'welcome.usernamePh': 'tvoy_nik',
|
'welcome.usernamePh': 'tvoy_nik',
|
||||||
'welcome.namePh': 'Твоё имя',
|
'welcome.namePh': 'Твоё имя',
|
||||||
@@ -1210,13 +1194,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 сначала добавьте AzuuCine на экран «Домой» (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': "Синхронизировано",
|
||||||
@@ -1356,10 +1333,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': "Новый общий список",
|
||||||
@@ -1408,6 +1381,104 @@ const dict: Translations = {
|
|||||||
'shared.nMembers_few': "{count} участника",
|
'shared.nMembers_few': "{count} участника",
|
||||||
'shared.nMembers_many': "{count} участников",
|
'shared.nMembers_many': "{count} участников",
|
||||||
'shared.nMembers_other': "{count} участника",
|
'shared.nMembers_other': "{count} участника",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Поиск",
|
||||||
|
'search.placeholder': "Фильмы, актёры, режиссёры, участники…",
|
||||||
|
'search.placeholderNoMembers': "Фильмы, актёры, режиссёры…",
|
||||||
|
'search.tabAll': "Всё",
|
||||||
|
'search.tabTitles': "Тайтлы",
|
||||||
|
'search.tabPeople': "Люди",
|
||||||
|
'search.tabMembers': "Участники",
|
||||||
|
'search.seeAll': "Показать всё",
|
||||||
|
'search.hint': "Найди фильм, сериал, аниме, актёра, режиссёра или участника по имени пользователя.",
|
||||||
|
'search.hintNoMembers': "Найди фильм, сериал, аниме, актёра или режиссёра.",
|
||||||
|
'search.noPeople': "Никого не найдено.",
|
||||||
|
'search.noMembers': "Участники не найдены.",
|
||||||
|
'person.title': "Человек",
|
||||||
|
'person.group.acting': "Актёрская работа",
|
||||||
|
'person.group.voice': "Озвучка",
|
||||||
|
'person.group.directing': "Режиссура",
|
||||||
|
'person.group.writing': "Сценарий",
|
||||||
|
'person.group.production': "Продюсирование",
|
||||||
|
'person.group.other': "Другие роли",
|
||||||
|
'person.animeStaff': "Команда аниме",
|
||||||
|
'person.notFound': "Человек не найден.",
|
||||||
|
'person.born': "Родился(-ась) {date}",
|
||||||
|
'person.died': "Умер(-ла) {date}",
|
||||||
|
'person.inLibrary': "В твоей библиотеке: {count} / {total}",
|
||||||
|
'person.filmography': "Фильмография",
|
||||||
|
'person.sortPopular': "Популярные",
|
||||||
|
'person.sortRecent': "Новые",
|
||||||
|
'person.empty': "В этой категории ничего нет.",
|
||||||
|
'person.bioMore': "Читать дальше",
|
||||||
|
'person.bioLess': "Свернуть",
|
||||||
|
'person.sourceTmdb': "Данные и фильмография: TMDB",
|
||||||
|
'person.sourceAnilist': "Данные и фильмография: AniList",
|
||||||
|
'person.job.director': "Режиссёр",
|
||||||
|
'person.job.screenplay': "Сценарий",
|
||||||
|
'person.job.writer': "Сценарист",
|
||||||
|
'person.job.story': "Сюжет",
|
||||||
|
'person.job.novel': "Роман",
|
||||||
|
'person.job.creator': "Создатель",
|
||||||
|
'person.job.producer': "Продюсер",
|
||||||
|
'person.job.execProducer': "Исполнительный продюсер",
|
||||||
|
'person.job.composer': "Композитор",
|
||||||
|
'person.job.dop': "Оператор",
|
||||||
|
'person.job.editor': "Монтаж",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Общее",
|
||||||
|
'stats.tabOther': "Другое",
|
||||||
|
'stats.period': "Период",
|
||||||
|
'stats.allYears': "Все годы",
|
||||||
|
'stats.timeSpent': "Затраченное время",
|
||||||
|
'stats.finished': "Завершено",
|
||||||
|
'stats.filmsSeen': "Просмотрено фильмов",
|
||||||
|
'stats.rewatched': "пересмотрено",
|
||||||
|
'stats.avgLength': "Средняя длительность",
|
||||||
|
'stats.episodesSeen': "Просмотрено серий",
|
||||||
|
'stats.decades': "Десятилетия выхода",
|
||||||
|
'stats.settings': "Настройки статистики",
|
||||||
|
'stats.monthHidden': "скрыт",
|
||||||
|
'stats.hideMonthsHint': "Сними отметку с месяца, чтобы убрать его с графика (например, месяц, когда ты добавил всё сразу). Тайтлы по-прежнему учитываются во всём остальном.",
|
||||||
|
'stats.showAllMonths': "Показать всё снова",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Посмотреть без аккаунта",
|
||||||
|
'guest.promptTitle': "Создай аккаунт, чтобы продолжить",
|
||||||
|
'guest.promptText': "Чтобы ставить оценки, добавлять тайтлы в библиотеку или писать отзывы, нужен аккаунт. Это бесплатно и занимает 30 секунд.",
|
||||||
|
'guest.banner': "Ты смотришь без аккаунта: войди, чтобы ставить оценки и отслеживать тайтлы.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Мои сезоны",
|
||||||
|
'seasons.average': "Среднее:",
|
||||||
|
'seasons.hint': "Оценивай каждый сезон после просмотра. Когда сериал закончится, итоговая оценка станет средней по оценённым сезонам.",
|
||||||
|
'seasons.season': "Сезон {n}",
|
||||||
|
'seasons.seen': "Просмотрен",
|
||||||
|
'seasons.progress': "{seen}/{size} серий",
|
||||||
|
'seasons.notStarted': "Ещё не начат",
|
||||||
|
'seasons.rateNow': "Оцени",
|
||||||
|
'seasons.reviewPh': "Твой отзыв о сезоне {n}…",
|
||||||
|
'seasons.writeReview': "Написать отзыв об этом сезоне",
|
||||||
|
'seasons.finalHint': "В конце сериала оценкой станет среднее по оценённым сезонам.",
|
||||||
|
'seasons.finalApplied': "Среднее по оценённым сезонам.",
|
||||||
|
"rewatch.title": "Пересмотреть",
|
||||||
|
"rewatch.badge": "Пересмотр",
|
||||||
|
"rewatch.views_one": "Просмотрено {count} раз",
|
||||||
|
"rewatch.views_other": "Просмотрено {count} раза",
|
||||||
|
"rewatch.added": "«{title}»: пересмотр добавлен",
|
||||||
|
"rewatch.add": "Добавить",
|
||||||
|
"rewatch.finished": "Пересмотр завершён и добавлен в историю.",
|
||||||
|
"rewatch.since": "начат {date}",
|
||||||
|
"rewatch.progress": "Пересмотрено серий: {seen} / {total}",
|
||||||
|
"rewatch.trackingHint": "Отмеченные сейчас серии засчитываются в пересмотр. Первый просмотр, оценка и отзывы не меняются.",
|
||||||
|
"rewatch.markDone": "Завершить сейчас",
|
||||||
|
"rewatch.stop": "Остановить",
|
||||||
|
"rewatch.stopped": "«{title}»: пересмотр остановлен",
|
||||||
|
"rewatch.start": "Начать пересмотр",
|
||||||
|
"rewatch.startHint": "Прогресс начнётся с 1-й серии, первый просмотр не изменится.",
|
||||||
|
"rewatch.alreadyDone": "Уже пересмотрели? Добавить дату",
|
||||||
|
"rewatch.historyEmpty": "Пересмотров пока нет: нажмите «Пересмотреть» выше.",
|
||||||
|
"rewatch.views_few": "Просмотрено {count} раза",
|
||||||
|
"rewatch.views_many": "Просмотрено {count} раз",
|
||||||
|
"rewatch.finishedToast": "«{title}»: пересмотр завершён",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'ยืนยันอีเมลของคุณก่อนด้วยลิงก์ที่เราส่งไปให้',
|
'auth.err.notConfirmed': 'ยืนยันอีเมลของคุณก่อนด้วยลิงก์ที่เราส่งไปให้',
|
||||||
'auth.err.exists': 'มีบัญชีที่ใช้อีเมลนี้อยู่แล้ว',
|
'auth.err.exists': 'มีบัญชีที่ใช้อีเมลนี้อยู่แล้ว',
|
||||||
'auth.err.weak': 'รหัสผ่านไม่ปลอดภัยพอ (อย่างน้อย {n} ตัวอักษร ผสมตัวอักษรและตัวเลข)',
|
'auth.err.weak': 'รหัสผ่านไม่ปลอดภัยพอ (อย่างน้อย {n} ตัวอักษร ผสมตัวอักษรและตัวเลข)',
|
||||||
|
'auth.err.pwned': "รหัสผ่านนี้เคยหลุดในเหตุข้อมูลรั่วไหลที่ทราบกัน — โปรดเลือกรหัสอื่น",
|
||||||
'auth.err.samePassword': 'รหัสผ่านใหม่ต้องไม่ซ้ำกับรหัสผ่านเดิม',
|
'auth.err.samePassword': 'รหัสผ่านใหม่ต้องไม่ซ้ำกับรหัสผ่านเดิม',
|
||||||
'auth.err.emailRate': 'ส่งคำขอบ่อยเกินไป ลองใหม่อีกครั้งในอีกไม่กี่นาที',
|
'auth.err.emailRate': 'ส่งคำขอบ่อยเกินไป ลองใหม่อีกครั้งในอีกไม่กี่นาที',
|
||||||
'auth.err.rate': 'พยายามหลายครั้งเกินไป ลองใหม่อีกครั้งในอีกไม่กี่นาที',
|
'auth.err.rate': 'พยายามหลายครั้งเกินไป ลองใหม่อีกครั้งในอีกไม่กี่นาที',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'ดาว',
|
'theme.modeStarfield': 'ดาว',
|
||||||
'settings.accentColor': 'สีเน้น',
|
'settings.accentColor': 'สีเน้น',
|
||||||
'settings.installApp': 'ติดตั้งแอป',
|
'settings.installApp': 'ติดตั้งแอป',
|
||||||
'settings.installHint': 'เพิ่ม AzuuCine ไปที่หน้าจอหลักหรือเดสก์ท็อปของคุณ',
|
'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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': 'ยังไม่มีรีวิว',
|
'reviews.none': 'ยังไม่มีรีวิว',
|
||||||
'reviews.seeAll': 'ดูรีวิวทั้งหมด',
|
'reviews.seeAll': 'ดูรีวิวทั้งหมด',
|
||||||
'reviews.react': 'แสดงความรู้สึก',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'ติดตั้ง AzuuCine',
|
'install.title': 'ติดตั้ง Kino',
|
||||||
'install.ios': 'เปิด AzuuCine ใน Safari\nแตะปุ่มแชร์ (สี่เหลี่ยมที่มีลูกศรชี้ขึ้น)\nเลือก “เพิ่มไปยังหน้าจอโฮม” แล้ว “เพิ่ม”',
|
'install.ios': 'เปิด Kino ใน Safari\nแตะปุ่มแชร์ (สี่เหลี่ยมที่มีลูกศรชี้ขึ้น)\nเลือก “เพิ่มไปยังหน้าจอโฮม” แล้ว “เพิ่ม”',
|
||||||
'install.android': 'เปิด AzuuCine ใน Chrome\nแตะเมนู ⋮ ที่มุมขวาบน\nเลือก “เพิ่มไปยังหน้าจอหลัก” (หรือ “ติดตั้งแอป”)',
|
'install.android': 'เปิด Kino ใน Chrome\nแตะเมนู ⋮ ที่มุมขวาบน\nเลือก “เพิ่มไปยังหน้าจอหลัก” (หรือ “ติดตั้งแอป”)',
|
||||||
'install.desktop': 'ในแถบที่อยู่ คลิกไอคอนติดตั้งทางขวา (หน้าจอที่มีลูกศร)\nหรือ: เมนู ⋮ ของเบราว์เซอร์ → “ติดตั้ง AzuuCine”\nยืนยันด้วย “ติดตั้ง”',
|
'install.desktop': 'ในแถบที่อยู่ คลิกไอคอนติดตั้งทางขวา (หน้าจอที่มีลูกศร)\nหรือ: เมนู ⋮ ของเบราว์เซอร์ → “ติดตั้ง Kino”\nยืนยันด้วย “ติดตั้ง”',
|
||||||
'install.other': 'เปิดเมนูของเบราว์เซอร์\nมองหา “ติดตั้งแอป” หรือ “เพิ่มไปยังหน้าจอหลัก”',
|
'install.other': 'เปิดเมนูของเบราว์เซอร์\nมองหา “ติดตั้งแอป” หรือ “เพิ่มไปยังหน้าจอหลัก”',
|
||||||
'install.gotIt': 'เข้าใจแล้ว',
|
'install.gotIt': 'เข้าใจแล้ว',
|
||||||
'settings.themeX': 'ธีม {name}',
|
'settings.themeX': 'ธีม {name}',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': 'ได้คะแนน {rating}',
|
'stats.ratedAs_one': 'ได้คะแนน {rating}',
|
||||||
'stats.ratedAs_other': 'ได้คะแนน {rating}',
|
'stats.ratedAs_other': 'ได้คะแนน {rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'ข้อมูลสำรอง AzuuCine',
|
'backup.shareTitle': 'ข้อมูลสำรอง Kino',
|
||||||
'backup.tooBig': 'ไฟล์ใหญ่เกินไป (สูงสุด 30 MB)',
|
'backup.tooBig': 'ไฟล์ใหญ่เกินไป (สูงสุด 30 MB)',
|
||||||
'backup.notJson': 'ไฟล์นี้ไม่ใช่ JSON ที่ถูกต้อง',
|
'backup.notJson': 'ไฟล์นี้ไม่ใช่ JSON ที่ถูกต้อง',
|
||||||
'backup.noItems': 'ไม่พบรายการในไฟล์นี้',
|
'backup.noItems': 'ไม่พบรายการในไฟล์นี้',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'ค้นหาเพื่อน',
|
'social.findFriends': 'ค้นหาเพื่อน',
|
||||||
'social.searchPh': 'ชื่อผู้ใช้หรือชื่อ…',
|
'social.searchPh': 'ชื่อผู้ใช้หรือชื่อ…',
|
||||||
'social.noResults': 'ไม่พบใครที่ตรงกัน',
|
'social.noResults': 'ไม่พบใครที่ตรงกัน',
|
||||||
'social.inviteHint': 'เพื่อนของคุณยังไม่ได้ใช้ AzuuCine ใช่ไหม? ส่งลิงก์โปรไฟล์ของคุณให้เลย',
|
'social.inviteHint': 'เพื่อนของคุณยังไม่ได้ใช้ Kino ใช่ไหม? ส่งลิงก์โปรไฟล์ของคุณให้เลย',
|
||||||
'social.shareMyProfile': 'แชร์โปรไฟล์ของฉัน',
|
'social.shareMyProfile': 'แชร์โปรไฟล์ของฉัน',
|
||||||
'social.inviteText': 'มาติดตามฉันบน AzuuCine กัน!',
|
'social.inviteText': 'มาติดตามฉันบน Kino กัน!',
|
||||||
'social.myProfile': 'โปรไฟล์ของฉัน',
|
'social.myProfile': 'โปรไฟล์ของฉัน',
|
||||||
|
|
||||||
'feed.title': 'กำลังติดตาม',
|
'feed.title': 'กำลังติดตาม',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': 'เบราว์เซอร์ของคุณบล็อกพื้นที่จัดเก็บ จึงเข้าสู่ระบบไม่ได้',
|
'auth.err.storage': 'เบราว์เซอร์ของคุณบล็อกพื้นที่จัดเก็บ จึงเข้าสู่ระบบไม่ได้',
|
||||||
'welcome.title': 'ตั้งชื่อผู้ใช้ของคุณ',
|
'welcome.title': 'ตั้งชื่อผู้ใช้ของคุณ',
|
||||||
'welcome.titleA': 'ยินดีต้อนรับสู่',
|
'welcome.titleA': 'ยินดีต้อนรับสู่',
|
||||||
'welcome.titleB': 'AzuuCine',
|
'welcome.titleB': 'Kino',
|
||||||
'welcome.text': 'ตั้งชื่อผู้ใช้ เพื่อนของคุณจะใช้ชื่อนี้ค้นหาและติดตามคุณ',
|
'welcome.text': 'ตั้งชื่อผู้ใช้ เพื่อนของคุณจะใช้ชื่อนี้ค้นหาและติดตามคุณ',
|
||||||
'welcome.usernamePh': 'ชื่อผู้ใช้ของคุณ',
|
'welcome.usernamePh': 'ชื่อผู้ใช้ของคุณ',
|
||||||
'welcome.namePh': 'ชื่อของคุณ',
|
'welcome.namePh': 'ชื่อของคุณ',
|
||||||
@@ -1074,13 +1058,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 ให้เพิ่ม AzuuCine ไปยังหน้าจอโฮมก่อน (iOS 16.4 ขึ้นไป) แล้วเปิดแอปจากไอคอนเพื่อเปิดการแจ้งเตือน",
|
|
||||||
'push.unsupported': "เบราว์เซอร์นี้ไม่รองรับการแจ้งเตือนแบบพุช",
|
|
||||||
'push.denied': "การแจ้งเตือนถูกบล็อกสำหรับเว็บไซต์นี้ อนุญาตในการตั้งค่าเบราว์เซอร์แล้วลองอีกครั้ง",
|
|
||||||
'push.notReady': "เซิร์ฟเวอร์ยังไม่พร้อมสำหรับการแจ้งเตือนแบบพุช",
|
|
||||||
'push.error': "เปิดการแจ้งเตือนไม่สำเร็จ ตรวจสอบการเชื่อมต่อแล้วลองอีกครั้ง",
|
|
||||||
'netPill.offlineSync': "ออฟไลน์ — การเปลี่ยนแปลงจะซิงค์ภายหลัง",
|
'netPill.offlineSync': "ออฟไลน์ — การเปลี่ยนแปลงจะซิงค์ภายหลัง",
|
||||||
'netPill.offlineLocal': "ออฟไลน์ — ทุกอย่างยังบันทึกอยู่ในอุปกรณ์นี้",
|
'netPill.offlineLocal': "ออฟไลน์ — ทุกอย่างยังบันทึกอยู่ในอุปกรณ์นี้",
|
||||||
'netPill.synced': "ซิงค์แล้ว",
|
'netPill.synced': "ซิงค์แล้ว",
|
||||||
@@ -1220,10 +1197,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': "รายการที่แชร์ใหม่",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} ความคิดเห็น",
|
'comments.toggle_other': "{count} ความคิดเห็น",
|
||||||
'shared.nMembers_one': "สมาชิก {count} คน",
|
'shared.nMembers_one': "สมาชิก {count} คน",
|
||||||
'shared.nMembers_other': "สมาชิก {count} คน",
|
'shared.nMembers_other': "สมาชิก {count} คน",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "ค้นหา",
|
||||||
|
'search.placeholder': "เรื่อง นักแสดง ผู้กำกับ สมาชิก…",
|
||||||
|
'search.placeholderNoMembers': "เรื่อง นักแสดง ผู้กำกับ…",
|
||||||
|
'search.tabAll': "ทั้งหมด",
|
||||||
|
'search.tabTitles': "เรื่อง",
|
||||||
|
'search.tabPeople': "บุคคล",
|
||||||
|
'search.tabMembers': "สมาชิก",
|
||||||
|
'search.seeAll': "ดูทั้งหมด",
|
||||||
|
'search.hint': "ค้นหาภาพยนตร์ ซีรีส์ อนิเมะ นักแสดง ผู้กำกับ หรือสมาชิกด้วยชื่อผู้ใช้",
|
||||||
|
'search.hintNoMembers': "ค้นหาภาพยนตร์ ซีรีส์ อนิเมะ นักแสดง หรือผู้กำกับ",
|
||||||
|
'search.noPeople': "ไม่พบบุคคล",
|
||||||
|
'search.noMembers': "ไม่พบสมาชิก",
|
||||||
|
'person.title': "บุคคล",
|
||||||
|
'person.group.acting': "การแสดง",
|
||||||
|
'person.group.voice': "พากย์เสียง",
|
||||||
|
'person.group.directing': "กำกับ",
|
||||||
|
'person.group.writing': "บทภาพยนตร์",
|
||||||
|
'person.group.production': "อำนวยการสร้าง",
|
||||||
|
'person.group.other': "ตำแหน่งอื่น",
|
||||||
|
'person.animeStaff': "ทีมงานอนิเมะ",
|
||||||
|
'person.notFound': "ไม่พบบุคคล",
|
||||||
|
'person.born': "เกิด {date}",
|
||||||
|
'person.died': "เสียชีวิต {date}",
|
||||||
|
'person.inLibrary': "ในคลังของคุณ: {count} / {total}",
|
||||||
|
'person.filmography': "ผลงาน",
|
||||||
|
'person.sortPopular': "ยอดนิยม",
|
||||||
|
'person.sortRecent': "ล่าสุด",
|
||||||
|
'person.empty': "ไม่มีในหมวดนี้",
|
||||||
|
'person.bioMore': "อ่านต่อ",
|
||||||
|
'person.bioLess': "ย่อ",
|
||||||
|
'person.sourceTmdb': "ข้อมูลและผลงาน: TMDB",
|
||||||
|
'person.sourceAnilist': "ข้อมูลและผลงาน: AniList",
|
||||||
|
'person.job.director': "ผู้กำกับ",
|
||||||
|
'person.job.screenplay': "บทภาพยนตร์",
|
||||||
|
'person.job.writer': "ผู้เขียนบท",
|
||||||
|
'person.job.story': "เรื่อง",
|
||||||
|
'person.job.novel': "นวนิยาย",
|
||||||
|
'person.job.creator': "ผู้สร้างสรรค์",
|
||||||
|
'person.job.producer': "ผู้อำนวยการสร้าง",
|
||||||
|
'person.job.execProducer': "ผู้อำนวยการสร้างบริหาร",
|
||||||
|
'person.job.composer': "ดนตรี",
|
||||||
|
'person.job.dop': "กำกับภาพ",
|
||||||
|
'person.job.editor': "ตัดต่อ",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "ภาพรวม",
|
||||||
|
'stats.tabOther': "อื่น ๆ",
|
||||||
|
'stats.period': "ช่วงเวลา",
|
||||||
|
'stats.allYears': "ทุกปี",
|
||||||
|
'stats.timeSpent': "เวลาที่ใช้",
|
||||||
|
'stats.finished': "ดูจบ",
|
||||||
|
'stats.filmsSeen': "ภาพยนตร์ที่ดู",
|
||||||
|
'stats.rewatched': "ดูซ้ำ",
|
||||||
|
'stats.avgLength': "ความยาวเฉลี่ย",
|
||||||
|
'stats.episodesSeen': "ตอนที่ดู",
|
||||||
|
'stats.decades': "ทศวรรษที่ออกฉาย",
|
||||||
|
'stats.settings': "ตั้งค่าสถิติ",
|
||||||
|
'stats.monthHidden': "ซ่อน",
|
||||||
|
'stats.hideMonthsHint': "ยกเลิกเครื่องหมายเดือนเพื่อเอาออกจากกราฟ (เช่น เดือนที่คุณเพิ่มทุกอย่างพร้อมกัน) เรื่องในเดือนนั้นยังนับในส่วนอื่นตามปกติ",
|
||||||
|
'stats.showAllMonths': "แสดงทั้งหมดอีกครั้ง",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "สำรวจโดยไม่ต้องมีบัญชี",
|
||||||
|
'guest.promptTitle': "สร้างบัญชีเพื่อดำเนินการต่อ",
|
||||||
|
'guest.promptText': "หากต้องการให้คะแนน เพิ่มเรื่องในคลัง หรือเขียนรีวิว คุณต้องมีบัญชี ฟรีและใช้เวลาเพียง 30 วินาที",
|
||||||
|
'guest.banner': "คุณกำลังสำรวจโดยไม่มีบัญชี: เข้าสู่ระบบเพื่อให้คะแนนและติดตามเรื่องของคุณ",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "ซีซันของฉัน",
|
||||||
|
'seasons.average': "ค่าเฉลี่ย:",
|
||||||
|
'seasons.hint': "ให้คะแนนแต่ละซีซันเมื่อดูจบ เมื่อดูซีรีส์จบ คะแนนสุดท้ายจะเป็นค่าเฉลี่ยของซีซันที่คุณให้คะแนน",
|
||||||
|
'seasons.season': "ซีซัน {n}",
|
||||||
|
'seasons.seen': "ดูแล้ว",
|
||||||
|
'seasons.progress': "{seen}/{size} ตอน",
|
||||||
|
'seasons.notStarted': "ยังไม่เริ่ม",
|
||||||
|
'seasons.rateNow': "ให้คะแนน",
|
||||||
|
'seasons.reviewPh': "รีวิวของคุณสำหรับซีซัน {n}…",
|
||||||
|
'seasons.writeReview': "เขียนรีวิวซีซันนี้",
|
||||||
|
'seasons.finalHint': "เมื่อดูซีรีส์จบ คะแนนของคุณจะเป็นค่าเฉลี่ยของซีซันที่ให้คะแนน",
|
||||||
|
'seasons.finalApplied': "ค่าเฉลี่ยของซีซันที่คุณให้คะแนน",
|
||||||
|
"rewatch.title": "ดูซ้ำ",
|
||||||
|
"rewatch.badge": "กำลังดูซ้ำ",
|
||||||
|
"rewatch.views_one": "ดูแล้ว {count} ครั้ง",
|
||||||
|
"rewatch.views_other": "ดูแล้ว {count} ครั้ง",
|
||||||
|
"rewatch.added": "“{title}”: เพิ่มการดูซ้ำแล้ว",
|
||||||
|
"rewatch.add": "เพิ่ม",
|
||||||
|
"rewatch.finished": "ดูซ้ำจบแล้ว และถูกเพิ่มในประวัติของคุณ",
|
||||||
|
"rewatch.since": "เริ่มเมื่อ {date}",
|
||||||
|
"rewatch.progress": "ดูซ้ำแล้ว {seen} / {total} ตอน",
|
||||||
|
"rewatch.trackingHint": "ตอนที่คุณติ๊กตอนนี้จะนับเป็นการดูซ้ำครั้งนี้ การดูครั้งแรก คะแนน และรีวิวของคุณจะไม่เปลี่ยน",
|
||||||
|
"rewatch.markDone": "จบตอนนี้",
|
||||||
|
"rewatch.stop": "หยุด",
|
||||||
|
"rewatch.stopped": "“{title}”: หยุดการดูซ้ำแล้ว",
|
||||||
|
"rewatch.start": "เริ่มดูซ้ำ",
|
||||||
|
"rewatch.startHint": "ความคืบหน้าเริ่มใหม่จากตอนที่ 1 โดยไม่กระทบการดูครั้งแรก",
|
||||||
|
"rewatch.alreadyDone": "ดูซ้ำไปแล้ว? เพิ่มวันที่",
|
||||||
|
"rewatch.historyEmpty": "ยังไม่มีการดูซ้ำ: ใช้ “ดูซ้ำ” ด้านบน",
|
||||||
|
"rewatch.finishedToast": "“{title}”: ดูซ้ำจบแล้ว",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Önce e-postayla gelen bağlantıyla adresini onayla.',
|
'auth.err.notConfirmed': 'Önce e-postayla gelen bağlantıyla adresini onayla.',
|
||||||
'auth.err.exists': 'Bu e-postayla zaten bir hesap var.',
|
'auth.err.exists': 'Bu e-postayla zaten bir hesap var.',
|
||||||
'auth.err.weak': 'Şifre çok zayıf (en az {n} karakter, harf ve rakam karışık).',
|
'auth.err.weak': 'Şifre çok zayıf (en az {n} karakter, harf ve rakam karışık).',
|
||||||
|
'auth.err.pwned': "Bu şifre bilinen bir veri sızıntısında yer aldı — lütfen başka bir şifre seç.",
|
||||||
'auth.err.samePassword': 'Yeni şifren eskisinden farklı olmalı.',
|
'auth.err.samePassword': 'Yeni şifren eskisinden farklı olmalı.',
|
||||||
'auth.err.emailRate': 'Çok fazla istek. Birkaç dakika sonra tekrar dene.',
|
'auth.err.emailRate': 'Çok fazla istek. Birkaç dakika sonra tekrar dene.',
|
||||||
'auth.err.rate': 'Çok fazla deneme. Birkaç dakika sonra tekrar dene.',
|
'auth.err.rate': 'Çok fazla deneme. Birkaç dakika sonra tekrar dene.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Yıldızlı',
|
'theme.modeStarfield': 'Yıldızlı',
|
||||||
'settings.accentColor': 'Vurgu rengi',
|
'settings.accentColor': 'Vurgu rengi',
|
||||||
'settings.installApp': 'Uygulamayı yükle',
|
'settings.installApp': 'Uygulamayı yükle',
|
||||||
'settings.installHint': 'AzuuCine’i 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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'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',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'AzuuCine’i yükle',
|
'install.title': 'Kino’yu yükle',
|
||||||
'install.ios': 'AzuuCine’i 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ç.',
|
||||||
'install.android': 'AzuuCine’i Chrome’da aç.\nSağ üstteki ⋮ menüsüne dokun.\n“Ana ekrana ekle” (veya “Uygulamayı yükle”) seç.',
|
'install.android': 'Kino’yu Chrome’da aç.\nSağ üstteki ⋮ menüsüne dokun.\n“Ana ekrana ekle” (veya “Uygulamayı yükle”) seç.',
|
||||||
'install.desktop': 'Adres çubuğunda sağdaki yükleme simgesine tıkla (oklu ekran).\nVeya: tarayıcı ⋮ menüsü → “AzuuCine’i yükle”.\n“Yükle” ile onayla.',
|
'install.desktop': 'Adres çubuğunda sağdaki yükleme simgesine tıkla (oklu ekran).\nVeya: tarayıcı ⋮ menüsü → “Kino’yu yükle”.\n“Yükle” ile onayla.',
|
||||||
'install.other': 'Tarayıcının menüsünü aç.\n“Uygulamayı yükle” veya “Ana ekrana ekle” seçeneğini ara.',
|
'install.other': 'Tarayıcının menüsünü aç.\n“Uygulamayı yükle” veya “Ana ekrana ekle” seçeneğini ara.',
|
||||||
'install.gotIt': 'Anladım',
|
'install.gotIt': 'Anladım',
|
||||||
'settings.themeX': '{name} tema',
|
'settings.themeX': '{name} tema',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': '{rating} puan',
|
'stats.ratedAs_one': '{rating} puan',
|
||||||
'stats.ratedAs_other': '{rating} puan',
|
'stats.ratedAs_other': '{rating} puan',
|
||||||
|
|
||||||
'backup.shareTitle': 'AzuuCine yedeği',
|
'backup.shareTitle': 'Kino yedeği',
|
||||||
'backup.tooBig': 'Dosya çok büyük (en fazla 30 MB).',
|
'backup.tooBig': 'Dosya çok büyük (en fazla 30 MB).',
|
||||||
'backup.notJson': 'Bu dosya geçerli bir JSON değil.',
|
'backup.notJson': 'Bu dosya geçerli bir JSON değil.',
|
||||||
'backup.noItems': 'Bu dosyada kayıt bulunamadı.',
|
'backup.noItems': 'Bu dosyada kayıt bulunamadı.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Arkadaş bul',
|
'social.findFriends': 'Arkadaş bul',
|
||||||
'social.searchPh': 'Kullanıcı adı veya isim…',
|
'social.searchPh': 'Kullanıcı adı veya isim…',
|
||||||
'social.noResults': 'Eşleşen kimse yok.',
|
'social.noResults': 'Eşleşen kimse yok.',
|
||||||
'social.inviteHint': "Arkadaşların henüz AzuuCine'da değil mi? Onlara profilinin bağlantısını gönder.",
|
'social.inviteHint': "Arkadaşların henüz Kino'da değil mi? Onlara profilinin bağlantısını gönder.",
|
||||||
'social.shareMyProfile': 'Profilimi paylaş',
|
'social.shareMyProfile': 'Profilimi paylaş',
|
||||||
'social.inviteText': "Beni AzuuCine'da takip et!",
|
'social.inviteText': "Beni Kino'da takip et!",
|
||||||
'social.myProfile': 'Profilim',
|
'social.myProfile': 'Profilim',
|
||||||
|
|
||||||
'feed.title': 'Takip ettiklerim',
|
'feed.title': 'Takip ettiklerim',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "Tarayıcın depolamayı engelliyor: giriş yapılamıyor.",
|
'auth.err.storage': "Tarayıcın depolamayı engelliyor: giriş yapılamıyor.",
|
||||||
'welcome.title': "Kullanıcı adını seç",
|
'welcome.title': "Kullanıcı adını seç",
|
||||||
'welcome.titleA': "Hoş geldin:",
|
'welcome.titleA': "Hoş geldin:",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "Bir kullanıcı adı seç: arkadaşların seni bununla bulup takip edecek.",
|
'welcome.text': "Bir kullanıcı adı seç: arkadaşların seni bununla bulup takip edecek.",
|
||||||
'welcome.usernamePh': "kullanici_adin",
|
'welcome.usernamePh': "kullanici_adin",
|
||||||
'welcome.namePh': "Adın",
|
'welcome.namePh': "Adın",
|
||||||
@@ -1074,13 +1058,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 AzuuCine’i 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",
|
||||||
@@ -1220,10 +1197,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",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} yorum",
|
'comments.toggle_other': "{count} yorum",
|
||||||
'shared.nMembers_one': "{count} üye",
|
'shared.nMembers_one': "{count} üye",
|
||||||
'shared.nMembers_other': "{count} üye",
|
'shared.nMembers_other': "{count} üye",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Ara",
|
||||||
|
'search.placeholder': "Yapımlar, oyuncular, yönetmenler, üyeler…",
|
||||||
|
'search.placeholderNoMembers': "Yapımlar, oyuncular, yönetmenler…",
|
||||||
|
'search.tabAll': "Tümü",
|
||||||
|
'search.tabTitles': "Yapımlar",
|
||||||
|
'search.tabPeople': "Kişiler",
|
||||||
|
'search.tabMembers': "Üyeler",
|
||||||
|
'search.seeAll': "Tümünü gör",
|
||||||
|
'search.hint': "Bir film, dizi, anime, oyuncu, yönetmen ya da kullanıcı adıyla bir üye ara.",
|
||||||
|
'search.hintNoMembers': "Bir film, dizi, anime, oyuncu ya da yönetmen ara.",
|
||||||
|
'search.noPeople': "Kişi bulunamadı.",
|
||||||
|
'search.noMembers': "Üye bulunamadı.",
|
||||||
|
'person.title': "Kişi",
|
||||||
|
'person.group.acting': "Oyunculuk",
|
||||||
|
'person.group.voice': "Seslendirme",
|
||||||
|
'person.group.directing': "Yönetmenlik",
|
||||||
|
'person.group.writing': "Senaryo",
|
||||||
|
'person.group.production': "Yapımcılık",
|
||||||
|
'person.group.other': "Diğer görevler",
|
||||||
|
'person.animeStaff': "Anime ekibi",
|
||||||
|
'person.notFound': "Kişi bulunamadı.",
|
||||||
|
'person.born': "Doğum: {date}",
|
||||||
|
'person.died': "Ölüm: {date}",
|
||||||
|
'person.inLibrary': "Kitaplığında: {count} / {total}",
|
||||||
|
'person.filmography': "Filmografi",
|
||||||
|
'person.sortPopular': "Popüler",
|
||||||
|
'person.sortRecent': "En yeni",
|
||||||
|
'person.empty': "Bu kategoride bir şey yok.",
|
||||||
|
'person.bioMore': "Devamını oku",
|
||||||
|
'person.bioLess': "Daha az",
|
||||||
|
'person.sourceTmdb': "Bilgiler ve filmografi: TMDB",
|
||||||
|
'person.sourceAnilist': "Bilgiler ve filmografi: AniList",
|
||||||
|
'person.job.director': "Yönetmen",
|
||||||
|
'person.job.screenplay': "Senaryo",
|
||||||
|
'person.job.writer': "Yazar",
|
||||||
|
'person.job.story': "Hikâye",
|
||||||
|
'person.job.novel': "Roman",
|
||||||
|
'person.job.creator': "Yaratıcı",
|
||||||
|
'person.job.producer': "Yapımcı",
|
||||||
|
'person.job.execProducer': "Baş yapımcı",
|
||||||
|
'person.job.composer': "Müzik",
|
||||||
|
'person.job.dop': "Görüntü yönetmeni",
|
||||||
|
'person.job.editor': "Kurgu",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Genel",
|
||||||
|
'stats.tabOther': "Diğer",
|
||||||
|
'stats.period': "Dönem",
|
||||||
|
'stats.allYears': "Tüm yıllar",
|
||||||
|
'stats.timeSpent': "Harcanan süre",
|
||||||
|
'stats.finished': "Bitenler",
|
||||||
|
'stats.filmsSeen': "İzlenen filmler",
|
||||||
|
'stats.rewatched': "yeniden izlenen",
|
||||||
|
'stats.avgLength': "Ortalama süre",
|
||||||
|
'stats.episodesSeen': "İzlenen bölümler",
|
||||||
|
'stats.decades': "Yayın on yılları",
|
||||||
|
'stats.settings': "İstatistik ayarları",
|
||||||
|
'stats.monthHidden': "gizli",
|
||||||
|
'stats.hideMonthsHint': "Bir ayı grafikten çıkarmak için işaretini kaldır (örneğin her şeyi bir kerede eklediğin ay). Yapımlar diğer her yerde sayılmaya devam eder.",
|
||||||
|
'stats.showAllMonths': "Hepsini yeniden göster",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Hesapsız keşfet",
|
||||||
|
'guest.promptTitle': "Devam etmek için hesabını oluştur",
|
||||||
|
'guest.promptText': "Puan vermek, kitaplığına yapım eklemek ya da inceleme yazmak için bir hesap gerekir. Ücretsiz ve 30 saniye sürer.",
|
||||||
|
'guest.banner': "Hesapsız keşfediyorsun: puan vermek ve yapımlarını takip etmek için giriş yap.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Sezonlarım",
|
||||||
|
'seasons.average': "Ortalama:",
|
||||||
|
'seasons.hint': "Her sezonu izledikten sonra puanla. Dizi bitince son puanın, puanladığın sezonların ortalaması olur.",
|
||||||
|
'seasons.season': "{n}. sezon",
|
||||||
|
'seasons.seen': "İzlendi",
|
||||||
|
'seasons.progress': "{seen}/{size} bölüm",
|
||||||
|
'seasons.notStarted': "Henüz başlanmadı",
|
||||||
|
'seasons.rateNow': "Puanla",
|
||||||
|
'seasons.reviewPh': "{n}. sezon hakkındaki incelemen…",
|
||||||
|
'seasons.writeReview': "Bu sezon için inceleme yaz",
|
||||||
|
'seasons.finalHint': "Dizi bitince puanın, puanladığın sezonların ortalaması olacak.",
|
||||||
|
'seasons.finalApplied': "Puanladığın sezonların ortalaması.",
|
||||||
|
"rewatch.title": "Yeniden izle",
|
||||||
|
"rewatch.badge": "Yeniden izleniyor",
|
||||||
|
"rewatch.views_one": "{count} kez izlendi",
|
||||||
|
"rewatch.views_other": "{count} kez izlendi",
|
||||||
|
"rewatch.added": "“{title}”: yeniden izleme eklendi",
|
||||||
|
"rewatch.add": "Ekle",
|
||||||
|
"rewatch.finished": "Yeniden izleme bitti, artık geçmişinde.",
|
||||||
|
"rewatch.since": "{date} tarihinde başladı",
|
||||||
|
"rewatch.progress": "{seen} / {total} bölüm yeniden izlendi",
|
||||||
|
"rewatch.trackingHint": "Şimdi işaretlediğin bölümler bu yeniden izlemeye sayılır. İlk izlemen, puanın ve incelemelerin değişmez.",
|
||||||
|
"rewatch.markDone": "Şimdi bitir",
|
||||||
|
"rewatch.stop": "Durdur",
|
||||||
|
"rewatch.stopped": "“{title}”: yeniden izleme durduruldu",
|
||||||
|
"rewatch.start": "Yeniden izlemeye başla",
|
||||||
|
"rewatch.startHint": "İlerleme 1. bölümden yeniden başlar, ilk izlemene dokunulmaz.",
|
||||||
|
"rewatch.alreadyDone": "Zaten yeniden izledin mi? Tarih ekle",
|
||||||
|
"rewatch.historyEmpty": "Henüz yeniden izleme yok: yukarıdaki “Yeniden izle”yi kullan.",
|
||||||
|
"rewatch.finishedToast": "“{title}”: yeniden izleme bitti",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': 'Hãy xác nhận địa chỉ email trước bằng liên kết đã gửi cho bạn.',
|
'auth.err.notConfirmed': 'Hãy xác nhận địa chỉ email trước bằng liên kết đã gửi cho bạn.',
|
||||||
'auth.err.exists': 'Đã có tài khoản dùng email này.',
|
'auth.err.exists': 'Đã có tài khoản dùng email này.',
|
||||||
'auth.err.weak': 'Mật khẩu quá yếu (ít nhất {n} ký tự, kết hợp chữ và số).',
|
'auth.err.weak': 'Mật khẩu quá yếu (ít nhất {n} ký tự, kết hợp chữ và số).',
|
||||||
|
'auth.err.pwned': "Mật khẩu này đã xuất hiện trong một vụ rò rỉ dữ liệu đã biết — hãy chọn mật khẩu khác.",
|
||||||
'auth.err.samePassword': 'Mật khẩu mới phải khác mật khẩu cũ.',
|
'auth.err.samePassword': 'Mật khẩu mới phải khác mật khẩu cũ.',
|
||||||
'auth.err.emailRate': 'Quá nhiều yêu cầu. Thử lại sau vài phút nhé.',
|
'auth.err.emailRate': 'Quá nhiều yêu cầu. Thử lại sau vài phút nhé.',
|
||||||
'auth.err.rate': 'Quá nhiều lần thử. Thử lại sau vài phút nhé.',
|
'auth.err.rate': 'Quá nhiều lần thử. Thử lại sau vài phút nhé.',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': 'Sao',
|
'theme.modeStarfield': 'Sao',
|
||||||
'settings.accentColor': 'Màu nhấn',
|
'settings.accentColor': 'Màu nhấn',
|
||||||
'settings.installApp': 'Cài đặt ứng dụng',
|
'settings.installApp': 'Cài đặt ứng dụng',
|
||||||
'settings.installHint': 'Thêm AzuuCine 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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'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',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': 'Cài đặt AzuuCine',
|
'install.title': 'Cài đặt Kino',
|
||||||
'install.ios': 'Mở AzuuCine 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”.',
|
||||||
'install.android': 'Mở AzuuCine trong Chrome.\nChạm menu ⋮ ở góc trên bên phải.\nChọn “Thêm vào màn hình chính” (hoặc “Cài đặt ứng dụng”).',
|
'install.android': 'Mở Kino trong Chrome.\nChạm menu ⋮ ở góc trên bên phải.\nChọn “Thêm vào màn hình chính” (hoặc “Cài đặt ứng dụng”).',
|
||||||
'install.desktop': 'Trên thanh địa chỉ, nhấp biểu tượng cài đặt bên phải (màn hình có mũi tên).\nHoặc: menu ⋮ của trình duyệt → “Cài đặt AzuuCine”.\nXác nhận bằng “Cài đặt”.',
|
'install.desktop': 'Trên thanh địa chỉ, nhấp biểu tượng cài đặt bên phải (màn hình có mũi tên).\nHoặc: menu ⋮ của trình duyệt → “Cài đặt Kino”.\nXác nhận bằng “Cài đặt”.',
|
||||||
'install.other': 'Mở menu trình duyệt của bạn.\nTìm “Cài đặt ứng dụng” hoặc “Thêm vào màn hình chính”.',
|
'install.other': 'Mở menu trình duyệt của bạn.\nTìm “Cài đặt ứng dụng” hoặc “Thêm vào màn hình chính”.',
|
||||||
'install.gotIt': 'Đã hiểu',
|
'install.gotIt': 'Đã hiểu',
|
||||||
'settings.themeX': 'Giao diện {name}',
|
'settings.themeX': 'Giao diện {name}',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'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}',
|
||||||
|
|
||||||
'backup.shareTitle': 'Bản sao lưu AzuuCine',
|
'backup.shareTitle': 'Bản sao lưu Kino',
|
||||||
'backup.tooBig': 'Tệp quá lớn (tối đa 30 MB).',
|
'backup.tooBig': 'Tệp quá lớn (tối đa 30 MB).',
|
||||||
'backup.notJson': 'Tệp này không phải JSON hợp lệ.',
|
'backup.notJson': 'Tệp này không phải JSON hợp lệ.',
|
||||||
'backup.noItems': 'Không tìm thấy mục nào trong tệp này.',
|
'backup.noItems': 'Không tìm thấy mục nào trong tệp này.',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': 'Tìm bạn bè',
|
'social.findFriends': 'Tìm bạn bè',
|
||||||
'social.searchPh': 'Tên người dùng hoặc tên…',
|
'social.searchPh': 'Tên người dùng hoặc tên…',
|
||||||
'social.noResults': 'Không tìm thấy ai.',
|
'social.noResults': 'Không tìm thấy ai.',
|
||||||
'social.inviteHint': 'Bạn bè của bạn chưa dùng AzuuCine? Gửi cho họ liên kết hồ sơ của bạn.',
|
'social.inviteHint': 'Bạn bè của bạn chưa dùng Kino? Gửi cho họ liên kết hồ sơ của bạn.',
|
||||||
'social.shareMyProfile': 'Chia sẻ hồ sơ của tôi',
|
'social.shareMyProfile': 'Chia sẻ hồ sơ của tôi',
|
||||||
'social.inviteText': 'Theo dõi mình trên AzuuCine nhé!',
|
'social.inviteText': 'Theo dõi mình trên Kino nhé!',
|
||||||
'social.myProfile': 'Hồ sơ của tôi',
|
'social.myProfile': 'Hồ sơ của tôi',
|
||||||
|
|
||||||
'feed.title': 'Đang theo dõi',
|
'feed.title': 'Đang theo dõi',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': 'Trình duyệt của bạn đang chặn bộ nhớ: không thể đăng nhập.',
|
'auth.err.storage': 'Trình duyệt của bạn đang chặn bộ nhớ: không thể đăng nhập.',
|
||||||
'welcome.title': 'Chọn tên người dùng',
|
'welcome.title': 'Chọn tên người dùng',
|
||||||
'welcome.titleA': 'Chào mừng đến với',
|
'welcome.titleA': 'Chào mừng đến với',
|
||||||
'welcome.titleB': 'AzuuCine',
|
'welcome.titleB': 'Kino',
|
||||||
'welcome.text': 'Chọn tên người dùng: bạn bè sẽ tìm và theo dõi bạn qua tên này.',
|
'welcome.text': 'Chọn tên người dùng: bạn bè sẽ tìm và theo dõi bạn qua tên này.',
|
||||||
'welcome.usernamePh': 'ten_cua_ban',
|
'welcome.usernamePh': 'ten_cua_ban',
|
||||||
'welcome.namePh': 'Tên của bạn',
|
'welcome.namePh': 'Tên của bạn',
|
||||||
@@ -1074,13 +1058,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 AzuuCine 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ộ",
|
||||||
@@ -1220,10 +1197,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",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} bình luận",
|
'comments.toggle_other': "{count} bình luận",
|
||||||
'shared.nMembers_one': "{count} thành viên",
|
'shared.nMembers_one': "{count} thành viên",
|
||||||
'shared.nMembers_other': "{count} thành viên",
|
'shared.nMembers_other': "{count} thành viên",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "Tìm kiếm",
|
||||||
|
'search.placeholder': "Phim, diễn viên, đạo diễn, thành viên…",
|
||||||
|
'search.placeholderNoMembers': "Phim, diễn viên, đạo diễn…",
|
||||||
|
'search.tabAll': "Tất cả",
|
||||||
|
'search.tabTitles': "Phim",
|
||||||
|
'search.tabPeople': "Người",
|
||||||
|
'search.tabMembers': "Thành viên",
|
||||||
|
'search.seeAll': "Xem tất cả",
|
||||||
|
'search.hint': "Tìm phim, series, anime, diễn viên, đạo diễn hoặc thành viên theo tên người dùng.",
|
||||||
|
'search.hintNoMembers': "Tìm phim, series, anime, diễn viên hoặc đạo diễn.",
|
||||||
|
'search.noPeople': "Không tìm thấy ai.",
|
||||||
|
'search.noMembers': "Không tìm thấy thành viên.",
|
||||||
|
'person.title': "Người",
|
||||||
|
'person.group.acting': "Diễn xuất",
|
||||||
|
'person.group.voice': "Lồng tiếng",
|
||||||
|
'person.group.directing': "Đạo diễn",
|
||||||
|
'person.group.writing': "Biên kịch",
|
||||||
|
'person.group.production': "Sản xuất",
|
||||||
|
'person.group.other': "Vai trò khác",
|
||||||
|
'person.animeStaff': "Ê-kíp anime",
|
||||||
|
'person.notFound': "Không tìm thấy người này.",
|
||||||
|
'person.born': "Sinh ngày {date}",
|
||||||
|
'person.died': "Mất ngày {date}",
|
||||||
|
'person.inLibrary': "Trong thư viện của bạn: {count} / {total}",
|
||||||
|
'person.filmography': "Danh sách phim",
|
||||||
|
'person.sortPopular': "Phổ biến",
|
||||||
|
'person.sortRecent': "Mới nhất",
|
||||||
|
'person.empty': "Không có gì trong mục này.",
|
||||||
|
'person.bioMore': "Đọc thêm",
|
||||||
|
'person.bioLess': "Thu gọn",
|
||||||
|
'person.sourceTmdb': "Thông tin và danh sách phim: TMDB",
|
||||||
|
'person.sourceAnilist': "Thông tin và danh sách phim: AniList",
|
||||||
|
'person.job.director': "Đạo diễn",
|
||||||
|
'person.job.screenplay': "Kịch bản",
|
||||||
|
'person.job.writer': "Biên kịch",
|
||||||
|
'person.job.story': "Cốt truyện",
|
||||||
|
'person.job.novel': "Tiểu thuyết",
|
||||||
|
'person.job.creator': "Sáng tạo",
|
||||||
|
'person.job.producer': "Sản xuất",
|
||||||
|
'person.job.execProducer': "Giám đốc sản xuất",
|
||||||
|
'person.job.composer': "Âm nhạc",
|
||||||
|
'person.job.dop': "Quay phim",
|
||||||
|
'person.job.editor': "Dựng phim",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "Tổng quan",
|
||||||
|
'stats.tabOther': "Khác",
|
||||||
|
'stats.period': "Thời gian",
|
||||||
|
'stats.allYears': "Tất cả các năm",
|
||||||
|
'stats.timeSpent': "Thời gian đã xem",
|
||||||
|
'stats.finished': "Đã xong",
|
||||||
|
'stats.filmsSeen': "Phim đã xem",
|
||||||
|
'stats.rewatched': "xem lại",
|
||||||
|
'stats.avgLength': "Thời lượng trung bình",
|
||||||
|
'stats.episodesSeen': "Tập đã xem",
|
||||||
|
'stats.decades': "Thập niên phát hành",
|
||||||
|
'stats.settings': "Cài đặt thống kê",
|
||||||
|
'stats.monthHidden': "đã ẩn",
|
||||||
|
'stats.hideMonthsHint': "Bỏ chọn một tháng để loại nó khỏi biểu đồ (ví dụ tháng bạn thêm mọi thứ cùng lúc). Các phim vẫn được tính ở mọi nơi khác.",
|
||||||
|
'stats.showAllMonths': "Hiện lại tất cả",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "Khám phá không cần tài khoản",
|
||||||
|
'guest.promptTitle': "Tạo tài khoản để tiếp tục",
|
||||||
|
'guest.promptText': "Để chấm điểm, thêm phim vào thư viện hoặc viết đánh giá, bạn cần một tài khoản. Miễn phí và chỉ mất 30 giây.",
|
||||||
|
'guest.banner': "Bạn đang khám phá mà không có tài khoản: đăng nhập để chấm điểm và theo dõi phim.",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "Các mùa của tôi",
|
||||||
|
'seasons.average': "Trung bình:",
|
||||||
|
'seasons.hint': "Chấm điểm từng mùa sau khi xem. Khi xem hết series, điểm cuối cùng là trung bình các mùa bạn đã chấm.",
|
||||||
|
'seasons.season': "Mùa {n}",
|
||||||
|
'seasons.seen': "Đã xem",
|
||||||
|
'seasons.progress': "{seen}/{size} tập",
|
||||||
|
'seasons.notStarted': "Chưa bắt đầu",
|
||||||
|
'seasons.rateNow': "Chấm điểm",
|
||||||
|
'seasons.reviewPh': "Đánh giá của bạn về mùa {n}…",
|
||||||
|
'seasons.writeReview': "Viết đánh giá cho mùa này",
|
||||||
|
'seasons.finalHint': "Khi xem hết series, điểm của bạn sẽ là trung bình các mùa đã chấm.",
|
||||||
|
'seasons.finalApplied': "Trung bình các mùa bạn đã chấm.",
|
||||||
|
"rewatch.title": "Xem lại",
|
||||||
|
"rewatch.badge": "Đang xem lại",
|
||||||
|
"rewatch.views_one": "Đã xem {count} lần",
|
||||||
|
"rewatch.views_other": "Đã xem {count} lần",
|
||||||
|
"rewatch.added": "“{title}”: đã thêm lần xem lại",
|
||||||
|
"rewatch.add": "Thêm",
|
||||||
|
"rewatch.finished": "Đã xem lại xong, giờ đã có trong lịch sử của bạn.",
|
||||||
|
"rewatch.since": "bắt đầu ngày {date}",
|
||||||
|
"rewatch.progress": "Đã xem lại {seen} / {total} tập",
|
||||||
|
"rewatch.trackingHint": "Các tập bạn đánh dấu bây giờ được tính cho lần xem lại này. Lần xem đầu, điểm và đánh giá của bạn vẫn giữ nguyên.",
|
||||||
|
"rewatch.markDone": "Hoàn tất ngay",
|
||||||
|
"rewatch.stop": "Dừng",
|
||||||
|
"rewatch.stopped": "“{title}”: đã dừng xem lại",
|
||||||
|
"rewatch.start": "Bắt đầu xem lại",
|
||||||
|
"rewatch.startHint": "Tiến độ bắt đầu lại từ tập 1, không ảnh hưởng lần xem đầu.",
|
||||||
|
"rewatch.alreadyDone": "Đã xem lại rồi? Thêm ngày",
|
||||||
|
"rewatch.historyEmpty": "Chưa có lần xem lại: dùng “Xem lại” ở trên.",
|
||||||
|
"rewatch.finishedToast": "“{title}”: đã xem lại xong",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+106
-37
@@ -196,6 +196,7 @@ const dict: Translations = {
|
|||||||
'auth.err.notConfirmed': '请先通过邮件里的链接验证你的邮箱。',
|
'auth.err.notConfirmed': '请先通过邮件里的链接验证你的邮箱。',
|
||||||
'auth.err.exists': '该邮箱已注册账号。',
|
'auth.err.exists': '该邮箱已注册账号。',
|
||||||
'auth.err.weak': '密码太弱(至少{n}个字符,需混合字母和数字)。',
|
'auth.err.weak': '密码太弱(至少{n}个字符,需混合字母和数字)。',
|
||||||
|
'auth.err.pwned': "此密码曾出现在已知的数据泄露中,请换一个。",
|
||||||
'auth.err.samePassword': '新密码不能与旧密码相同。',
|
'auth.err.samePassword': '新密码不能与旧密码相同。',
|
||||||
'auth.err.emailRate': '请求太频繁了,过几分钟再试吧。',
|
'auth.err.emailRate': '请求太频繁了,过几分钟再试吧。',
|
||||||
'auth.err.rate': '尝试次数太多,过几分钟再试吧。',
|
'auth.err.rate': '尝试次数太多,过几分钟再试吧。',
|
||||||
@@ -236,16 +237,8 @@ const dict: Translations = {
|
|||||||
'theme.modeStarfield': '星空',
|
'theme.modeStarfield': '星空',
|
||||||
'settings.accentColor': '强调色',
|
'settings.accentColor': '强调色',
|
||||||
'settings.installApp': '安装应用',
|
'settings.installApp': '安装应用',
|
||||||
'settings.installHint': '将 AzuuCine 添加到主屏幕或桌面。',
|
'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,16 +247,7 @@ const dict: Translations = {
|
|||||||
'reviews.none': '还没有评价',
|
'reviews.none': '还没有评价',
|
||||||
'reviews.seeAll': '查看全部评价',
|
'reviews.seeAll': '查看全部评价',
|
||||||
'reviews.react': '回应',
|
'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',
|
||||||
@@ -309,10 +293,10 @@ const dict: Translations = {
|
|||||||
'admin.suspendedDone': 'Account suspended',
|
'admin.suspendedDone': 'Account suspended',
|
||||||
'admin.reactivatedDone': 'Account reactivated',
|
'admin.reactivatedDone': 'Account reactivated',
|
||||||
'admin.loadError': 'Could not load the data.',
|
'admin.loadError': 'Could not load the data.',
|
||||||
'install.title': '安装 AzuuCine',
|
'install.title': '安装 Kino',
|
||||||
'install.ios': '在 Safari 中打开 AzuuCine。\n点按“分享”按钮(带向上箭头的方块)。\n选择“添加到主屏幕”,然后点“添加”。',
|
'install.ios': '在 Safari 中打开 Kino。\n点按“分享”按钮(带向上箭头的方块)。\n选择“添加到主屏幕”,然后点“添加”。',
|
||||||
'install.android': '在 Chrome 中打开 AzuuCine。\n点按右上角的 ⋮ 菜单。\n选择“添加到主屏幕”(或“安装应用”)。',
|
'install.android': '在 Chrome 中打开 Kino。\n点按右上角的 ⋮ 菜单。\n选择“添加到主屏幕”(或“安装应用”)。',
|
||||||
'install.desktop': '在地址栏右侧点击安装图标(带箭头的屏幕)。\n或:浏览器 ⋮ 菜单 →“安装 AzuuCine”。\n点“安装”确认。',
|
'install.desktop': '在地址栏右侧点击安装图标(带箭头的屏幕)。\n或:浏览器 ⋮ 菜单 →“安装 Kino”。\n点“安装”确认。',
|
||||||
'install.other': '打开浏览器的菜单。\n查找“安装应用”或“添加到主屏幕”。',
|
'install.other': '打开浏览器的菜单。\n查找“安装应用”或“添加到主屏幕”。',
|
||||||
'install.gotIt': '知道了',
|
'install.gotIt': '知道了',
|
||||||
'settings.themeX': '{name}主题',
|
'settings.themeX': '{name}主题',
|
||||||
@@ -726,7 +710,7 @@ const dict: Translations = {
|
|||||||
'stats.ratedAs_one': '评分{rating}',
|
'stats.ratedAs_one': '评分{rating}',
|
||||||
'stats.ratedAs_other': '评分{rating}',
|
'stats.ratedAs_other': '评分{rating}',
|
||||||
|
|
||||||
'backup.shareTitle': 'AzuuCine 备份',
|
'backup.shareTitle': 'Kino 备份',
|
||||||
'backup.tooBig': '文件太大(最大30 MB)。',
|
'backup.tooBig': '文件太大(最大30 MB)。',
|
||||||
'backup.notJson': '这个文件不是有效的 JSON。',
|
'backup.notJson': '这个文件不是有效的 JSON。',
|
||||||
'backup.noItems': '这个文件中没有找到任何条目。',
|
'backup.noItems': '这个文件中没有找到任何条目。',
|
||||||
@@ -803,9 +787,9 @@ const dict: Translations = {
|
|||||||
'social.findFriends': '寻找好友',
|
'social.findFriends': '寻找好友',
|
||||||
'social.searchPh': '用户名或昵称…',
|
'social.searchPh': '用户名或昵称…',
|
||||||
'social.noResults': '没有找到匹配的人。',
|
'social.noResults': '没有找到匹配的人。',
|
||||||
'social.inviteHint': '你的朋友还没用 AzuuCine?把你的主页链接发给他们吧。',
|
'social.inviteHint': '你的朋友还没用 Kino?把你的主页链接发给他们吧。',
|
||||||
'social.shareMyProfile': '分享我的主页',
|
'social.shareMyProfile': '分享我的主页',
|
||||||
'social.inviteText': '来 AzuuCine 关注我吧!',
|
'social.inviteText': '来 Kino 关注我吧!',
|
||||||
'social.myProfile': '我的主页',
|
'social.myProfile': '我的主页',
|
||||||
|
|
||||||
'feed.title': '我的关注',
|
'feed.title': '我的关注',
|
||||||
@@ -821,7 +805,7 @@ const dict: Translations = {
|
|||||||
'auth.err.storage': "浏览器阻止了存储,无法登录。",
|
'auth.err.storage': "浏览器阻止了存储,无法登录。",
|
||||||
'welcome.title': "选择你的用户名",
|
'welcome.title': "选择你的用户名",
|
||||||
'welcome.titleA': "欢迎来到",
|
'welcome.titleA': "欢迎来到",
|
||||||
'welcome.titleB': "AzuuCine",
|
'welcome.titleB': "Kino",
|
||||||
'welcome.text': "选择一个用户名:朋友们会通过它找到并关注你。",
|
'welcome.text': "选择一个用户名:朋友们会通过它找到并关注你。",
|
||||||
'welcome.usernamePh': "your_name",
|
'welcome.usernamePh': "your_name",
|
||||||
'welcome.namePh': "你的名字",
|
'welcome.namePh': "你的名字",
|
||||||
@@ -1074,13 +1058,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 上,请先将 AzuuCine 添加到主屏幕(iOS 16.4 或更高版本),再从图标打开应用以开启通知。",
|
|
||||||
'push.unsupported': "此浏览器不支持推送通知。",
|
|
||||||
'push.denied': "此网站的通知已被阻止。请在浏览器设置中允许后重试。",
|
|
||||||
'push.notReady': "服务器暂未开放推送通知。",
|
|
||||||
'push.error': "无法开启通知。请检查网络连接后重试。",
|
|
||||||
'netPill.offlineSync': "离线 — 你的修改将稍后同步",
|
'netPill.offlineSync': "离线 — 你的修改将稍后同步",
|
||||||
'netPill.offlineLocal': "离线 — 所有内容都保存在此设备上",
|
'netPill.offlineLocal': "离线 — 所有内容都保存在此设备上",
|
||||||
'netPill.synced': "已同步",
|
'netPill.synced': "已同步",
|
||||||
@@ -1220,10 +1197,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': "新建共享片单",
|
||||||
@@ -1268,6 +1241,102 @@ const dict: Translations = {
|
|||||||
'comments.toggle_other': "{count} 条评论",
|
'comments.toggle_other': "{count} 条评论",
|
||||||
'shared.nMembers_one': "{count} 位成员",
|
'shared.nMembers_one': "{count} 位成员",
|
||||||
'shared.nMembers_other': "{count} 位成员",
|
'shared.nMembers_other': "{count} 位成员",
|
||||||
|
// — Recherche unifiée et pages des personnes —
|
||||||
|
'search.title': "搜索",
|
||||||
|
'search.placeholder': "作品、演员、导演、成员…",
|
||||||
|
'search.placeholderNoMembers': "作品、演员、导演…",
|
||||||
|
'search.tabAll': "全部",
|
||||||
|
'search.tabTitles': "作品",
|
||||||
|
'search.tabPeople': "人物",
|
||||||
|
'search.tabMembers': "成员",
|
||||||
|
'search.seeAll': "查看全部",
|
||||||
|
'search.hint': "搜索电影、剧集、动画、演员、导演,或按用户名搜索成员。",
|
||||||
|
'search.hintNoMembers': "搜索电影、剧集、动画、演员或导演。",
|
||||||
|
'search.noPeople': "未找到人物。",
|
||||||
|
'search.noMembers': "未找到成员。",
|
||||||
|
'person.title': "人物",
|
||||||
|
'person.group.acting': "表演",
|
||||||
|
'person.group.voice': "配音",
|
||||||
|
'person.group.directing': "导演",
|
||||||
|
'person.group.writing': "编剧",
|
||||||
|
'person.group.production': "制作",
|
||||||
|
'person.group.other': "其他职务",
|
||||||
|
'person.animeStaff': "动画制作人员",
|
||||||
|
'person.notFound': "未找到该人物。",
|
||||||
|
'person.born': "生于 {date}",
|
||||||
|
'person.died': "逝于 {date}",
|
||||||
|
'person.inLibrary': "在你的片库中:{count} / {total}",
|
||||||
|
'person.filmography': "作品年表",
|
||||||
|
'person.sortPopular': "热门",
|
||||||
|
'person.sortRecent': "最新",
|
||||||
|
'person.empty': "此类别中没有内容。",
|
||||||
|
'person.bioMore': "展开",
|
||||||
|
'person.bioLess': "收起",
|
||||||
|
'person.sourceTmdb': "资料与作品:TMDB",
|
||||||
|
'person.sourceAnilist': "资料与作品:AniList",
|
||||||
|
'person.job.director': "导演",
|
||||||
|
'person.job.screenplay': "编剧",
|
||||||
|
'person.job.writer': "编剧",
|
||||||
|
'person.job.story': "故事",
|
||||||
|
'person.job.novel': "原著小说",
|
||||||
|
'person.job.creator': "主创",
|
||||||
|
'person.job.producer': "制片",
|
||||||
|
'person.job.execProducer': "执行制片",
|
||||||
|
'person.job.composer': "配乐",
|
||||||
|
'person.job.dop': "摄影",
|
||||||
|
'person.job.editor': "剪辑",
|
||||||
|
// — Statistiques (refonte) —
|
||||||
|
'stats.tabAll': "总览",
|
||||||
|
'stats.tabOther': "其他",
|
||||||
|
'stats.period': "时间段",
|
||||||
|
'stats.allYears': "所有年份",
|
||||||
|
'stats.timeSpent': "观看时长",
|
||||||
|
'stats.finished': "已看完",
|
||||||
|
'stats.filmsSeen': "看过的电影",
|
||||||
|
'stats.rewatched': "重看",
|
||||||
|
'stats.avgLength': "平均时长",
|
||||||
|
'stats.episodesSeen': "看过的集数",
|
||||||
|
'stats.decades': "上映年代",
|
||||||
|
'stats.settings': "统计设置",
|
||||||
|
'stats.monthHidden': "已隐藏",
|
||||||
|
'stats.hideMonthsHint': "取消勾选某个月即可将其从图表中移除(例如一次性添加所有内容的那个月)。这些作品在其他统计中仍会计入。",
|
||||||
|
'stats.showAllMonths': "全部重新显示",
|
||||||
|
// — Mode découverte (sans compte) —
|
||||||
|
'guest.explore': "无需账户先逛逛",
|
||||||
|
'guest.promptTitle': "创建账户以继续",
|
||||||
|
'guest.promptText': "评分、把作品加入片库或撰写评论都需要账户。免费,只需 30 秒。",
|
||||||
|
'guest.banner': "你正在以访客身份浏览:登录后即可评分并记录你的作品。",
|
||||||
|
// — Notes par saison —
|
||||||
|
'seasons.title': "我的各季",
|
||||||
|
'seasons.average': "平均:",
|
||||||
|
'seasons.hint': "每看完一季就为它评分。整部剧看完后,最终评分为你已评分各季的平均值。",
|
||||||
|
'seasons.season': "第 {n} 季",
|
||||||
|
'seasons.seen': "已看完",
|
||||||
|
'seasons.progress': "{seen}/{size} 集",
|
||||||
|
'seasons.notStarted': "尚未开始",
|
||||||
|
'seasons.rateNow': "去评分",
|
||||||
|
'seasons.reviewPh': "你对第 {n} 季的评价…",
|
||||||
|
'seasons.writeReview': "为这一季写评价",
|
||||||
|
'seasons.finalHint': "整部剧看完后,你的评分将是已评分各季的平均值。",
|
||||||
|
'seasons.finalApplied': "已评分各季的平均值。",
|
||||||
|
"rewatch.title": "重看",
|
||||||
|
"rewatch.badge": "重看中",
|
||||||
|
"rewatch.views_one": "看过 {count} 次",
|
||||||
|
"rewatch.views_other": "看过 {count} 次",
|
||||||
|
"rewatch.added": "《{title}》:已添加重看",
|
||||||
|
"rewatch.add": "添加",
|
||||||
|
"rewatch.finished": "重看完成,已加入你的记录。",
|
||||||
|
"rewatch.since": "开始于 {date}",
|
||||||
|
"rewatch.progress": "已重看 {seen} / {total} 集",
|
||||||
|
"rewatch.trackingHint": "现在勾选的剧集计入这次重看。你的首次观看、评分和评论保持不变。",
|
||||||
|
"rewatch.markDone": "立即完成",
|
||||||
|
"rewatch.stop": "停止",
|
||||||
|
"rewatch.stopped": "《{title}》:已停止重看",
|
||||||
|
"rewatch.start": "开始重看",
|
||||||
|
"rewatch.startHint": "进度从第 1 集重新开始,不影响首次观看。",
|
||||||
|
"rewatch.alreadyDone": "已经重看过?添加日期",
|
||||||
|
"rewatch.historyEmpty": "还没有重看记录:使用上方的“重看”。",
|
||||||
|
"rewatch.finishedToast": "《{title}》:重看完成",
|
||||||
}
|
}
|
||||||
|
|
||||||
export default dict
|
export default dict
|
||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
@import 'tailwindcss';
|
@import 'tailwindcss';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Thème AzuuCine — fond noir + une couleur d'accent (rouge par défaut, modifiable dans Réglages → Thème).
|
* Thème Kino — fond noir + une couleur d'accent (rouge par défaut, modifiable dans Réglages → Thème).
|
||||||
* Pas de dégradés ni d'ombres : aplats, filets de 1px, boutons pilule.
|
* Pas de dégradés ni d'ombres : aplats, filets de 1px, boutons pilule.
|
||||||
* Une seule police (Inter), comme une appli type Letterboxd.
|
* Une seule police (Inter), comme une appli type Letterboxd.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+11
-9
@@ -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'
|
||||||
@@ -20,6 +20,8 @@ import {
|
|||||||
} from './security'
|
} from './security'
|
||||||
import { normalizeText, todayISO, uid } from './utils'
|
import { normalizeText, todayISO, uid } from './utils'
|
||||||
import { normalizeChallenges, normalizeEpisodeLog } from './challenges'
|
import { normalizeChallenges, normalizeEpisodeLog } from './challenges'
|
||||||
|
import { normalizeSeasonRatings } from './seasons'
|
||||||
|
import { normalizeRewatch } from './rewatch'
|
||||||
|
|
||||||
const TYPES = new Set<string>(MEDIA_TYPES.map((t) => t.value))
|
const TYPES = new Set<string>(MEDIA_TYPES.map((t) => t.value))
|
||||||
const STATUS_SET = new Set<string>(STATUSES.map((s) => s.value))
|
const STATUS_SET = new Set<string>(STATUSES.map((s) => s.value))
|
||||||
@@ -132,6 +134,8 @@ export function normalizeItem(raw: unknown): MediaItem | null {
|
|||||||
tags,
|
tags,
|
||||||
countries: safeCountries(r.countries),
|
countries: safeCountries(r.countries),
|
||||||
rewatchDates: safeDates(r.rewatchDates),
|
rewatchDates: safeDates(r.rewatchDates),
|
||||||
|
rewatch: normalizeRewatch(r.rewatch),
|
||||||
|
seasonRatings: normalizeSeasonRatings(r.seasonRatings),
|
||||||
episodeLog: normalizeEpisodeLog(r.episodeLog),
|
episodeLog: normalizeEpisodeLog(r.episodeLog),
|
||||||
publicRating: (() => {
|
publicRating: (() => {
|
||||||
const n = num(r.publicRating, 0, 10)
|
const n = num(r.publicRating, 0, 10)
|
||||||
@@ -150,13 +154,11 @@ 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)) {
|
||||||
|
out.statsHiddenMonths = [...new Set(raw.statsHiddenMonths.filter((m): m is string => typeof m === 'string' && /^\d{4}-(0[1-9]|1[0-2])$/.test(m)))].sort().slice(-600)
|
||||||
|
}
|
||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -168,7 +170,7 @@ function dedupe(items: MediaItem[]): MediaItem[] {
|
|||||||
export function buildBackup(items: MediaItem[], settings: Settings, lists: CustomList[] = []): BackupFile {
|
export function buildBackup(items: MediaItem[], settings: Settings, lists: CustomList[] = []): BackupFile {
|
||||||
// La clé TMDB n'est jamais incluse dans la sauvegarde
|
// La clé TMDB n'est jamais incluse dans la sauvegarde
|
||||||
const { tmdbKey: _omit, ...safeSettings } = settings
|
const { tmdbKey: _omit, ...safeSettings } = settings
|
||||||
return { app: 'AzuuCine', version: 1, exportedAt: new Date().toISOString(), settings: safeSettings, items, lists }
|
return { app: 'Kino', version: 1, exportedAt: new Date().toISOString(), settings: safeSettings, items, lists }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -177,7 +179,7 @@ export function buildBackup(items: MediaItem[], settings: Settings, lists: Custo
|
|||||||
*/
|
*/
|
||||||
export async function exportBackup(items: MediaItem[], settings: Settings, lists: CustomList[] = []): Promise<'shared' | 'downloaded'> {
|
export async function exportBackup(items: MediaItem[], settings: Settings, lists: CustomList[] = []): Promise<'shared' | 'downloaded'> {
|
||||||
const json = JSON.stringify(buildBackup(items, settings, lists), null, 2)
|
const json = JSON.stringify(buildBackup(items, settings, lists), null, 2)
|
||||||
const filename = `azuucine-sauvegarde-${todayISO()}.json`
|
const filename = `kino-sauvegarde-${todayISO()}.json`
|
||||||
const file = new File([json], filename, { type: 'application/json' })
|
const file = new File([json], filename, { type: 'application/json' })
|
||||||
|
|
||||||
const isTouch = window.matchMedia?.('(pointer: coarse)').matches
|
const isTouch = window.matchMedia?.('(pointer: coarse)').matches
|
||||||
@@ -210,7 +212,7 @@ export interface ParsedBackup {
|
|||||||
format: 'azuucine' | 'legacy'
|
format: 'azuucine' | 'legacy'
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Accepte le format AzuuCine, un simple tableau de fiches, ou une sauvegarde de l'ancienne appli. */
|
/** Accepte le format Kino, un simple tableau de fiches, ou une sauvegarde de l'ancienne appli. */
|
||||||
export async function parseBackupFile(file: File): Promise<ParsedBackup> {
|
export async function parseBackupFile(file: File): Promise<ParsedBackup> {
|
||||||
if (file.size > LIMITS.importFileBytes) throw new Error(t('backup.tooBig'))
|
if (file.size > LIMITS.importFileBytes) throw new Error(t('backup.tooBig'))
|
||||||
const text = await file.text()
|
const text = await file.text()
|
||||||
|
|||||||
+45
-10
@@ -118,7 +118,7 @@ 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|configuration|discover\/(movie|tv)|(movie|tv)\/\d{1,10}(\/recommendations|\/season\/\d{1,3})?|find\/(tt)?\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})$/
|
||||||
|
|
||||||
/** « 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'
|
||||||
@@ -145,7 +145,7 @@ async function tmdbFetch<T>(path: string, key: string, params: Record<string, st
|
|||||||
|
|
||||||
const yearOf = (d?: string) => (d && /^\d{4}/.test(d) ? Number(d.slice(0, 4)) : undefined)
|
const yearOf = (d?: string) => (d && /^\d{4}/.test(d) ? Number(d.slice(0, 4)) : undefined)
|
||||||
|
|
||||||
/** Devine le type AzuuCine à partir des métadonnées TMDB. */
|
/** Devine le type Kino à partir des métadonnées TMDB. */
|
||||||
function guessTmdbType(kind: 'movie' | 'tv', genreIds: number[], countries: string[], lang?: string): { type: MediaType; subtype?: string } {
|
function guessTmdbType(kind: 'movie' | 'tv', genreIds: number[], countries: string[], lang?: string): { type: MediaType; subtype?: string } {
|
||||||
const has = (c: string) => countries.includes(c)
|
const has = (c: string) => countries.includes(c)
|
||||||
if (genreIds.includes(99)) return { type: 'autre', subtype: 'Documentaire' }
|
if (genreIds.includes(99)) return { type: 'autre', subtype: 'Documentaire' }
|
||||||
@@ -582,6 +582,21 @@ interface TmdbCredits {
|
|||||||
const names = (list: (string | undefined)[], max: number) =>
|
const names = (list: (string | undefined)[], max: number) =>
|
||||||
[...new Set(list.map((n) => cleanText(n, 60)).filter((n): n is string => !!n))].slice(0, max)
|
[...new Set(list.map((n) => cleanText(n, 60)).filter((n): n is string => !!n))].slice(0, max)
|
||||||
|
|
||||||
|
const tmdbPersonId = (id: unknown) => (typeof id === 'number' && Number.isInteger(id) && id > 0 && id < 1e10 ? `tmdbp:${id}` : undefined)
|
||||||
|
const aniPersonId = (id: unknown) => (typeof id === 'number' && Number.isInteger(id) && id > 0 && id < 1e10 ? `anilistp:${id}` : undefined)
|
||||||
|
|
||||||
|
/** Noms + pages des personnes (sans doublon, 3 au plus). */
|
||||||
|
function crewRefs(list: { id?: number; name?: string }[], toId: (id: unknown) => string | undefined): CrewRef[] {
|
||||||
|
const out: CrewRef[] = []
|
||||||
|
for (const c of list) {
|
||||||
|
const name = cleanText(c.name, 60)
|
||||||
|
if (!name || out.some((o) => o.name === name)) continue
|
||||||
|
out.push({ name, personId: toId(c.id) })
|
||||||
|
if (out.length >= 3) break
|
||||||
|
}
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
/** Réalisation, production et casting principal depuis TMDB. */
|
/** Réalisation, production et casting principal depuis TMDB. */
|
||||||
export async function getTmdbCredits(externalId: string, key: string): Promise<Credits | undefined> {
|
export async function getTmdbCredits(externalId: string, key: string): Promise<Credits | undefined> {
|
||||||
if (!isSafeExternalId(externalId) || !externalId.startsWith('tmdb:')) return undefined
|
if (!isSafeExternalId(externalId) || !externalId.startsWith('tmdb:')) return undefined
|
||||||
@@ -1026,6 +1041,14 @@ export interface CastMember {
|
|||||||
photo?: string
|
photo?: string
|
||||||
/** Doubleur·se (animes) */
|
/** Doubleur·se (animes) */
|
||||||
voice?: string
|
voice?: string
|
||||||
|
/** Page de la personne (acteur·rice, ou doubleur·se pour les animes) : « tmdbp:123 » / « anilistp:123 » */
|
||||||
|
personId?: string
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Personne de l'équipe (réalisation, création) avec sa page. */
|
||||||
|
export interface CrewRef {
|
||||||
|
name: string
|
||||||
|
personId?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface TitleExtras {
|
export interface TitleExtras {
|
||||||
@@ -1039,6 +1062,8 @@ export interface TitleExtras {
|
|||||||
cast: CastMember[]
|
cast: CastMember[]
|
||||||
/** Réalisation (films) ou création (séries) */
|
/** Réalisation (films) ou création (séries) */
|
||||||
directors: string[]
|
directors: string[]
|
||||||
|
/** Les mêmes, avec de quoi ouvrir leur page */
|
||||||
|
directorPeople?: CrewRef[]
|
||||||
directorKind: 'director' | 'creator'
|
directorKind: 'director' | 'creator'
|
||||||
tagline?: string
|
tagline?: string
|
||||||
runtime?: number
|
runtime?: number
|
||||||
@@ -1057,10 +1082,10 @@ interface TmdbExtras {
|
|||||||
runtime?: number
|
runtime?: number
|
||||||
episode_run_time?: number[]
|
episode_run_time?: number[]
|
||||||
number_of_seasons?: number
|
number_of_seasons?: number
|
||||||
created_by?: { name?: string }[]
|
created_by?: { id?: number; name?: string }[]
|
||||||
credits?: {
|
credits?: {
|
||||||
cast?: { name?: string; character?: string; profile_path?: string | null; order?: number }[]
|
cast?: { id?: number; name?: string; character?: string; profile_path?: string | null; order?: number }[]
|
||||||
crew?: { name?: string; job?: string }[]
|
crew?: { id?: number; name?: string; job?: string }[]
|
||||||
}
|
}
|
||||||
'watch/providers'?: unknown
|
'watch/providers'?: unknown
|
||||||
}
|
}
|
||||||
@@ -1083,6 +1108,7 @@ async function tmdbExtras(externalId: string, key: string): Promise<TitleExtras>
|
|||||||
name: cleanText(c.name, 60),
|
name: cleanText(c.name, 60),
|
||||||
role: cleanText(c.character, 80),
|
role: cleanText(c.character, 80),
|
||||||
photo: isSafeTmdbPath(c.profile_path) ? `${TMDB_IMG}/w185${c.profile_path}` : undefined,
|
photo: isSafeTmdbPath(c.profile_path) ? `${TMDB_IMG}/w185${c.profile_path}` : undefined,
|
||||||
|
personId: tmdbPersonId(c.id),
|
||||||
}))
|
}))
|
||||||
.filter((c): c is CastMember => !!c.name)
|
.filter((c): c is CastMember => !!c.name)
|
||||||
const crew = Array.isArray(d.credits?.crew) ? d.credits!.crew! : []
|
const crew = Array.isArray(d.credits?.crew) ? d.credits!.crew! : []
|
||||||
@@ -1096,6 +1122,10 @@ async function tmdbExtras(externalId: string, key: string): Promise<TitleExtras>
|
|||||||
kind === 'movie'
|
kind === 'movie'
|
||||||
? names(crew.filter((c) => c.job === 'Director').map((c) => c.name), 3)
|
? names(crew.filter((c) => c.job === 'Director').map((c) => c.name), 3)
|
||||||
: names((Array.isArray(d.created_by) ? d.created_by : []).map((c) => c.name), 3),
|
: names((Array.isArray(d.created_by) ? d.created_by : []).map((c) => c.name), 3),
|
||||||
|
directorPeople: crewRefs(
|
||||||
|
kind === 'movie' ? crew.filter((c) => c.job === 'Director') : Array.isArray(d.created_by) ? d.created_by : [],
|
||||||
|
tmdbPersonId,
|
||||||
|
),
|
||||||
directorKind: kind === 'movie' ? 'director' : 'creator',
|
directorKind: kind === 'movie' ? 'director' : 'creator',
|
||||||
tagline: cleanText(d.tagline, 200),
|
tagline: cleanText(d.tagline, 200),
|
||||||
runtime: count(kind === 'movie' ? d.runtime : d.episode_run_time?.[0], 6000),
|
runtime: count(kind === 'movie' ? d.runtime : d.episode_run_time?.[0], 6000),
|
||||||
@@ -1114,10 +1144,10 @@ query ($id: Int) {
|
|||||||
characters(sort: [ROLE, RELEVANCE], perPage: 16) {
|
characters(sort: [ROLE, RELEVANCE], perPage: 16) {
|
||||||
edges {
|
edges {
|
||||||
node { name { full } image { medium } }
|
node { name { full } image { medium } }
|
||||||
voiceActors(language: JAPANESE, sort: [RELEVANCE]) { name { full } }
|
voiceActors(language: JAPANESE, sort: [RELEVANCE]) { id name { full } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
staff(sort: [RELEVANCE], perPage: 12) { edges { role node { name { full } } } }
|
staff(sort: [RELEVANCE], perPage: 12) { edges { role node { id name { full } } } }
|
||||||
externalLinks { site url type language color icon }
|
externalLinks { site url type language color icon }
|
||||||
}
|
}
|
||||||
}`
|
}`
|
||||||
@@ -1127,8 +1157,8 @@ interface AniExtras {
|
|||||||
bannerImage?: string | null
|
bannerImage?: string | null
|
||||||
duration?: number | null
|
duration?: number | null
|
||||||
stats?: { scoreDistribution?: { score?: number; amount?: number }[] | null } | null
|
stats?: { scoreDistribution?: { score?: number; amount?: number }[] | null } | null
|
||||||
characters?: { edges?: { node?: { name?: { full?: string }; image?: { medium?: string } }; voiceActors?: { name?: { full?: string } }[] }[] } | null
|
characters?: { edges?: { node?: { name?: { full?: string }; image?: { medium?: string } }; voiceActors?: { id?: number; name?: { full?: string } }[] }[] } | null
|
||||||
staff?: { edges?: { role?: string; node?: { name?: { full?: string } } }[] } | null
|
staff?: { edges?: { role?: string; node?: { id?: number; name?: { full?: string } } }[] } | null
|
||||||
externalLinks?: unknown
|
externalLinks?: unknown
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1156,6 +1186,7 @@ async function aniListExtras(externalId: string): Promise<TitleExtras> {
|
|||||||
name: cleanText(e.node?.name?.full, 60),
|
name: cleanText(e.node?.name?.full, 60),
|
||||||
photo: safePosterUrl(e.node?.image?.medium),
|
photo: safePosterUrl(e.node?.image?.medium),
|
||||||
voice: cleanText(e.voiceActors?.[0]?.name?.full, 60),
|
voice: cleanText(e.voiceActors?.[0]?.name?.full, 60),
|
||||||
|
personId: aniPersonId(e.voiceActors?.[0]?.id),
|
||||||
}))
|
}))
|
||||||
.filter((c): c is CastMember => !!c.name)
|
.filter((c): c is CastMember => !!c.name)
|
||||||
const staff = Array.isArray(m.staff?.edges) ? m.staff!.edges! : []
|
const staff = Array.isArray(m.staff?.edges) ? m.staff!.edges! : []
|
||||||
@@ -1166,6 +1197,10 @@ async function aniListExtras(externalId: string): Promise<TitleExtras> {
|
|||||||
distribution: votes ? distribution : undefined,
|
distribution: votes ? distribution : undefined,
|
||||||
cast,
|
cast,
|
||||||
directors: names(staff.filter((s) => /^Director$/i.test(s.role ?? '')).map((s) => s.node?.name?.full), 3),
|
directors: names(staff.filter((s) => /^Director$/i.test(s.role ?? '')).map((s) => s.node?.name?.full), 3),
|
||||||
|
directorPeople: crewRefs(
|
||||||
|
staff.filter((s) => /^Director$/i.test(s.role ?? '')).map((s) => ({ id: s.node?.id, name: s.node?.name?.full })),
|
||||||
|
aniPersonId,
|
||||||
|
),
|
||||||
directorKind: 'director',
|
directorKind: 'director',
|
||||||
runtime: count(m.duration, 6000),
|
runtime: count(m.duration, 6000),
|
||||||
streaming: parseAniListLinks(m.externalLinks),
|
streaming: parseAniListLinks(m.externalLinks),
|
||||||
@@ -1229,7 +1264,7 @@ export async function tmdbFindExternal(id: string, source: 'tvdb_id' | 'imdb_id'
|
|||||||
return (tv && tmdbWithPrefill(tv, 'tv')) || (movie && tmdbWithPrefill(movie, 'movie')) || undefined
|
return (tv && tmdbWithPrefill(tv, 'tv')) || (movie && tmdbWithPrefill(movie, 'movie')) || undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
export { ANILIST, ANILIST_FIELDS, aniToResult, type AniMedia }
|
export { ANILIST, ANILIST_FIELDS, aniToResult, tmdbFetch, tmdbToResult, TMDB_IMG, type AniMedia, type TmdbItem }
|
||||||
/** Adresse de l'affiche TMDB d'un titre (listes partagées : la copie locale de l'affiche ne se partage pas). */
|
/** Adresse de l'affiche TMDB d'un titre (listes partagées : la copie locale de l'affiche ne se partage pas). */
|
||||||
export async function getTmdbPosterUrl(externalId: string, key: string): Promise<string | undefined> {
|
export async function getTmdbPosterUrl(externalId: string, key: string): Promise<string | undefined> {
|
||||||
if (!isSafeExternalId(externalId) || !externalId.startsWith('tmdb:')) return undefined
|
if (!isSafeExternalId(externalId) || !externalId.startsWith('tmdb:')) return undefined
|
||||||
|
|||||||
@@ -21,7 +21,10 @@ export async function cloudFetch(path: string, init: RequestInit = {}): Promise<
|
|||||||
/** Proxy TMDB : la clé TMDB reste sur le serveur. */
|
/** Proxy TMDB : la clé TMDB reste sur le serveur. */
|
||||||
export async function tmdbViaCloud<T>(path: string, params: Record<string, string>): Promise<T> {
|
export async function tmdbViaCloud<T>(path: string, params: Record<string, string>): Promise<T> {
|
||||||
const q = new URLSearchParams({ path, ...params })
|
const q = new URLSearchParams({ path, ...params })
|
||||||
const res = await cloudFetch(`/functions/v1/tmdb?${q}`)
|
// Sans compte (mode découverte) : appel anonyme, limité côté serveur par adresse IP
|
||||||
|
const res = (await getAccessToken())
|
||||||
|
? await cloudFetch(`/functions/v1/tmdb?${q}`)
|
||||||
|
: await fetch(`${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>
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
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 } from './config'
|
||||||
|
import { isPwnedPassword } from '../pwned'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Connexion aux comptes (Supabase Auth), sans dépendance.
|
* Connexion aux comptes (Supabase Auth), sans dépendance.
|
||||||
@@ -163,6 +164,7 @@ export async function signIn(email: string, password: string): Promise<void> {
|
|||||||
/** Inscription. Le pseudo choisi est repris par la base à la création du profil (s'il est libre). */
|
/** Inscription. 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'))
|
||||||
const data = await gotrue(`/signup?redirect_to=${encodeURIComponent(appUrl())}`, {
|
const data = await gotrue(`/signup?redirect_to=${encodeURIComponent(appUrl())}`, {
|
||||||
body: { email: cleanEmail(email), password, ...(username ? { data: { username } } : {}) },
|
body: { email: cleanEmail(email), password, ...(username ? { data: { username } } : {}) },
|
||||||
})
|
})
|
||||||
@@ -180,6 +182,7 @@ export async function requestPasswordReset(email: string): Promise<void> {
|
|||||||
|
|
||||||
export async function updatePassword(password: string): Promise<void> {
|
export async function updatePassword(password: string): Promise<void> {
|
||||||
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'))
|
||||||
const token = await getAccessToken()
|
const token = await getAccessToken()
|
||||||
if (!token) throw new AuthError(t('auth.err.session'))
|
if (!token) throw new AuthError(t('auth.err.session'))
|
||||||
await gotrue('/user', { method: 'PUT', body: { password }, token })
|
await gotrue('/user', { method: 'PUT', body: { password }, token })
|
||||||
|
|||||||
@@ -15,5 +15,5 @@ export const SUPABASE_ANON_KEY = validKey ? rawKey : ''
|
|||||||
export const cloudEnabled = !!(SUPABASE_URL && SUPABASE_ANON_KEY)
|
export const cloudEnabled = !!(SUPABASE_URL && SUPABASE_ANON_KEY)
|
||||||
|
|
||||||
if (!cloudEnabled && (rawUrl || rawKey)) {
|
if (!cloudEnabled && (rawUrl || rawKey)) {
|
||||||
console.warn('[AzuuCine] .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.')
|
||||||
}
|
}
|
||||||
@@ -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')
|
|
||||||
}
|
|
||||||
@@ -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'>
|
export type SyncedSettings = Pick<Settings, 'ratingScale' | 'topCategories' | 'accentColor' | 'themeMode' | 'challenges' | 'statsHiddenMonths'>
|
||||||
|
|
||||||
export interface SyncHooks {
|
export interface SyncHooks {
|
||||||
getLists: () => CustomList[]
|
getLists: () => CustomList[]
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import type { Match } from './resolve'
|
|||||||
import { titleKey, type ImportEntry } from './sources'
|
import { titleKey, type ImportEntry } from './sources'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Transforme les entrées trouvées en fiches AzuuCine et les fusionne avec la bibliothèque :
|
* Transforme les entrées trouvées en fiches Kino et les fusionne avec la bibliothèque :
|
||||||
* - pas de doublon (même référence TMDB / AniList, même film, ou autre saison de la même série) ;
|
* - pas de doublon (même référence TMDB / AniList, même film, ou autre saison de la même série) ;
|
||||||
* - une fiche existante n'est jamais écrasée : on complète ce qui manque, et le statut / la progression
|
* - une fiche existante n'est jamais écrasée : on complète ce qui manque, et le statut / la progression
|
||||||
* n'avancent que si l'activité importée est plus récente que la dernière modification de la fiche.
|
* n'avancent que si l'activité importée est plus récente que la dernière modification de la fiche.
|
||||||
|
|||||||
@@ -0,0 +1,343 @@
|
|||||||
|
import { t } from '../i18n'
|
||||||
|
import { ANILIST, ANILIST_FIELDS, aniToResult, tmdbFetch, tmdbToResult, TMDB_IMG, type AniMedia, type SearchResult, type TmdbItem } from './catalogApi'
|
||||||
|
import { cleanText, isSafeTmdbPath, safePosterUrl } from './security'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Acteurs, réalisateurs, doubleurs… : recherche et filmographie.
|
||||||
|
* Identifiants : « tmdbp:123 » (TMDB, films et séries) ou « anilistp:123 » (AniList, animes : doubleurs et staff).
|
||||||
|
*/
|
||||||
|
|
||||||
|
export interface PersonHit {
|
||||||
|
id: string
|
||||||
|
name: string
|
||||||
|
photo?: string
|
||||||
|
/** Métier principal, déjà traduit (« Acteur·rice », « Réalisation »…) */
|
||||||
|
department?: string
|
||||||
|
/** Quelques titres connus, pour reconnaître la personne */
|
||||||
|
knownFor: string[]
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Rubrique d'un crédit (filtre de la page personne). */
|
||||||
|
export type CreditGroup = 'acting' | 'voice' | 'directing' | 'writing' | 'production' | 'other'
|
||||||
|
export const CREDIT_GROUPS: CreditGroup[] = ['acting', 'voice', 'directing', 'writing', 'production', 'other']
|
||||||
|
|
||||||
|
export interface PersonCredit {
|
||||||
|
result: SearchResult
|
||||||
|
group: CreditGroup
|
||||||
|
/** Personnage joué, ou poste (« Réalisateur », « Scénario »…) */
|
||||||
|
role?: string
|
||||||
|
year?: number
|
||||||
|
popularity: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PersonDetails {
|
||||||
|
id: string
|
||||||
|
name: string
|
||||||
|
photo?: string
|
||||||
|
bio?: string
|
||||||
|
birthday?: string
|
||||||
|
deathday?: string
|
||||||
|
place?: string
|
||||||
|
department?: string
|
||||||
|
/** Rubrique à montrer d'abord (le métier principal) */
|
||||||
|
mainGroup: CreditGroup
|
||||||
|
credits: PersonCredit[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export const isPersonId = (id: unknown): id is string => typeof id === 'string' && /^(tmdbp|anilistp):\d{1,10}$/.test(id)
|
||||||
|
|
||||||
|
const num = (v: unknown) => (typeof v === 'number' && Number.isFinite(v) ? v : 0)
|
||||||
|
const day = (v: unknown) => (typeof v === 'string' && /^\d{4}-\d{2}-\d{2}$/.test(v) ? v : undefined)
|
||||||
|
|
||||||
|
function departmentGroup(dep?: string | null): CreditGroup {
|
||||||
|
switch (dep) {
|
||||||
|
case 'Acting':
|
||||||
|
return 'acting'
|
||||||
|
case 'Directing':
|
||||||
|
return 'directing'
|
||||||
|
case 'Writing':
|
||||||
|
return 'writing'
|
||||||
|
case 'Production':
|
||||||
|
return 'production'
|
||||||
|
default:
|
||||||
|
return 'other'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export const groupLabel = (g: CreditGroup) => t(`person.group.${g}`)
|
||||||
|
|
||||||
|
// ─────────────────────────── Recherche ───────────────────────────
|
||||||
|
|
||||||
|
interface TmdbPersonHit {
|
||||||
|
id?: number
|
||||||
|
name?: string
|
||||||
|
profile_path?: string | null
|
||||||
|
known_for_department?: string
|
||||||
|
known_for?: TmdbItem[]
|
||||||
|
popularity?: number
|
||||||
|
}
|
||||||
|
|
||||||
|
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' })
|
||||||
|
return (Array.isArray(data.results) ? data.results : [])
|
||||||
|
.slice(0, 12)
|
||||||
|
.map((p): PersonHit | null => {
|
||||||
|
const name = cleanText(p.name, 80)
|
||||||
|
if (!name || !Number.isInteger(p.id)) return null
|
||||||
|
return {
|
||||||
|
id: `tmdbp:${p.id}`,
|
||||||
|
name,
|
||||||
|
photo: isSafeTmdbPath(p.profile_path) ? `${TMDB_IMG}/w185${p.profile_path}` : undefined,
|
||||||
|
department: groupLabel(departmentGroup(p.known_for_department)),
|
||||||
|
knownFor: (Array.isArray(p.known_for) ? p.known_for : [])
|
||||||
|
.map((k) => cleanText(k.title ?? k.name, 60))
|
||||||
|
.filter((x): x is string => !!x)
|
||||||
|
.slice(0, 3),
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.filter((p): p is PersonHit => p !== null)
|
||||||
|
}
|
||||||
|
|
||||||
|
async function aniQuery<T>(query: string, variables: Record<string, unknown>): Promise<T> {
|
||||||
|
const res = await fetch(ANILIST, {
|
||||||
|
method: 'POST',
|
||||||
|
headers: { 'Content-Type': 'application/json', Accept: 'application/json' },
|
||||||
|
body: JSON.stringify({ query, variables }),
|
||||||
|
referrerPolicy: 'no-referrer',
|
||||||
|
credentials: 'omit',
|
||||||
|
})
|
||||||
|
if (res.status === 429) throw new Error(t('err.anilistRate'))
|
||||||
|
if (!res.ok) throw new Error(t('err.anilistStatus', { status: res.status }))
|
||||||
|
return ((await res.json()) as { data?: T }).data ?? ({} as T)
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AniStaffHit {
|
||||||
|
id?: number
|
||||||
|
name?: { full?: string | null } | null
|
||||||
|
image?: { medium?: string | null } | null
|
||||||
|
primaryOccupations?: string[] | null
|
||||||
|
characterMedia?: { nodes?: { title?: { english?: string | null; romaji?: string | null } }[] } | null
|
||||||
|
staffMedia?: { nodes?: { title?: { english?: string | null; romaji?: string | null } }[] } | null
|
||||||
|
}
|
||||||
|
|
||||||
|
async function searchAniPeople(query: string): Promise<PersonHit[]> {
|
||||||
|
const data = await aniQuery<{ Page?: { staff?: AniStaffHit[] } }>(
|
||||||
|
`query ($s: String) { Page(perPage: 6) { staff(search: $s, sort: [SEARCH_MATCH, FAVOURITES_DESC]) {
|
||||||
|
id name { full } image { medium } primaryOccupations
|
||||||
|
characterMedia(perPage: 3, sort: POPULARITY_DESC) { nodes { title { english romaji } } }
|
||||||
|
staffMedia(perPage: 3, sort: POPULARITY_DESC, type: ANIME) { nodes { title { english romaji } } }
|
||||||
|
} } }`,
|
||||||
|
{ s: query.slice(0, 100) },
|
||||||
|
)
|
||||||
|
return (Array.isArray(data.Page?.staff) ? data.Page!.staff! : [])
|
||||||
|
.map((p): PersonHit | null => {
|
||||||
|
const name = cleanText(p.name?.full, 80)
|
||||||
|
if (!name || !Number.isInteger(p.id)) return null
|
||||||
|
const occ = (p.primaryOccupations ?? []).join(' ')
|
||||||
|
const media = [...(p.characterMedia?.nodes ?? []), ...(p.staffMedia?.nodes ?? [])]
|
||||||
|
return {
|
||||||
|
id: `anilistp:${p.id}`,
|
||||||
|
name,
|
||||||
|
photo: safePosterUrl(p.image?.medium),
|
||||||
|
department: /voice/i.test(occ) ? groupLabel('voice') : /director/i.test(occ) ? groupLabel('directing') : t('person.animeStaff'),
|
||||||
|
knownFor: [...new Set(media.map((m) => cleanText(m.title?.english || m.title?.romaji, 60)).filter((x): x is string => !!x))].slice(0, 3),
|
||||||
|
}
|
||||||
|
})
|
||||||
|
.filter((p): p is PersonHit => p !== null)
|
||||||
|
}
|
||||||
|
|
||||||
|
const foldName = (s: string) => s.normalize('NFD').replace(/[̀-ͯ]/g, '').toLowerCase().replace(/[^\p{L}\p{N}]+/gu, '')
|
||||||
|
|
||||||
|
/** Acteurs, réalisateurs (TMDB) et doubleurs / staff d'animes (AniList), sans doublon de nom. */
|
||||||
|
export async function searchPeople(query: string, tmdbKey?: string): Promise<PersonHit[]> {
|
||||||
|
const [tm, an] = await Promise.allSettled([tmdbKey ? searchTmdbPeople(query, tmdbKey) : Promise.resolve([]), searchAniPeople(query)])
|
||||||
|
if (tm.status === 'rejected' && an.status === 'rejected') throw tm.reason
|
||||||
|
const tmdb = tm.status === 'fulfilled' ? tm.value : []
|
||||||
|
const seen = new Set(tmdb.map((p) => foldName(p.name)))
|
||||||
|
const ani = (an.status === 'fulfilled' ? an.value : []).filter((p) => !seen.has(foldName(p.name)))
|
||||||
|
return [...tmdb, ...ani]
|
||||||
|
}
|
||||||
|
|
||||||
|
// ─────────────────────────── Page d'une personne ───────────────────────────
|
||||||
|
|
||||||
|
interface TmdbCredit extends TmdbItem {
|
||||||
|
character?: string
|
||||||
|
job?: string
|
||||||
|
department?: string
|
||||||
|
episode_count?: number
|
||||||
|
}
|
||||||
|
|
||||||
|
interface TmdbPerson {
|
||||||
|
name?: string
|
||||||
|
biography?: string
|
||||||
|
birthday?: string | null
|
||||||
|
deathday?: string | null
|
||||||
|
place_of_birth?: string | null
|
||||||
|
profile_path?: string | null
|
||||||
|
known_for_department?: string
|
||||||
|
combined_credits?: { cast?: TmdbCredit[]; crew?: TmdbCredit[] }
|
||||||
|
}
|
||||||
|
|
||||||
|
// Postes TMDB (en anglais) les plus courants, traduits
|
||||||
|
const JOBS: Record<string, string> = {
|
||||||
|
Director: 'person.job.director',
|
||||||
|
Screenplay: 'person.job.screenplay',
|
||||||
|
Writer: 'person.job.writer',
|
||||||
|
Story: 'person.job.story',
|
||||||
|
Novel: 'person.job.novel',
|
||||||
|
Creator: 'person.job.creator',
|
||||||
|
Producer: 'person.job.producer',
|
||||||
|
'Executive Producer': 'person.job.execProducer',
|
||||||
|
'Original Music Composer': 'person.job.composer',
|
||||||
|
'Director of Photography': 'person.job.dop',
|
||||||
|
Editor: 'person.job.editor',
|
||||||
|
}
|
||||||
|
const jobLabel = (job?: string) => (job && JOBS[job] ? t(JOBS[job] as Parameters<typeof t>[0]) : job)
|
||||||
|
|
||||||
|
// Talk-shows, journaux, cérémonies : pas des « rôles »
|
||||||
|
const NOT_A_ROLE = /^(self|himself|herself|themselves|host|narrator \(voice\)|lui-même|elle-même)\b/i
|
||||||
|
const TALK_GENRES = new Set([10767, 10763])
|
||||||
|
|
||||||
|
async function tmdbPerson(id: string, key: string): Promise<PersonDetails> {
|
||||||
|
const pid = id.split(':')[1]
|
||||||
|
const d = await tmdbFetch<TmdbPerson>(`/person/${pid}`, key, { append_to_response: 'combined_credits' })
|
||||||
|
let bio = cleanText(d.biography, 4000)
|
||||||
|
// Pas de biographie dans la langue de l'app : on prend l'anglaise
|
||||||
|
if (!bio) bio = cleanText((await tmdbFetch<TmdbPerson>(`/person/${pid}`, key, { language: 'en-US' }).catch(() => ({}) as TmdbPerson)).biography, 4000)
|
||||||
|
|
||||||
|
const credits = new Map<string, PersonCredit>()
|
||||||
|
const add = (c: TmdbCredit, group: CreditGroup, role?: string) => {
|
||||||
|
const kind = c.media_type === 'movie' || c.media_type === 'tv' ? c.media_type : undefined
|
||||||
|
if (!kind) return
|
||||||
|
if ((c.genre_ids ?? []).some((g) => TALK_GENRES.has(g))) return
|
||||||
|
const result = tmdbToResult(c, kind)
|
||||||
|
if (!result) return
|
||||||
|
const k = `${group}|${result.externalId}`
|
||||||
|
const prev = credits.get(k)
|
||||||
|
const r = cleanText(role, 80)
|
||||||
|
if (prev) {
|
||||||
|
// Plusieurs postes sur le même titre (ex. réalisateur + scénariste d'une série) : on les réunit
|
||||||
|
if (r && prev.role !== r && !(prev.role ?? '').includes(r)) prev.role = prev.role ? `${prev.role}, ${r}` : r
|
||||||
|
return
|
||||||
|
}
|
||||||
|
credits.set(k, { result, group, role: r, year: result.year, popularity: num(c.popularity) + num(c.vote_count) / 1000 })
|
||||||
|
}
|
||||||
|
for (const c of d.combined_credits?.cast ?? []) {
|
||||||
|
if (c.character && NOT_A_ROLE.test(c.character.trim())) continue
|
||||||
|
// Apparitions d'un épisode dans une série : peu utiles
|
||||||
|
if (c.media_type === 'tv' && (c.episode_count ?? 0) <= 1 && !c.character) continue
|
||||||
|
add(c, /\(voice\)/i.test(c.character ?? '') ? 'voice' : 'acting', c.character?.replace(/\s*\(voice\)\s*/i, '').trim() || undefined)
|
||||||
|
}
|
||||||
|
for (const c of d.combined_credits?.crew ?? []) add(c, departmentGroup(c.department), jobLabel(c.job))
|
||||||
|
|
||||||
|
const list = [...credits.values()]
|
||||||
|
const mainGroup = departmentGroup(d.known_for_department)
|
||||||
|
return {
|
||||||
|
id,
|
||||||
|
name: cleanText(d.name, 80) ?? '?',
|
||||||
|
photo: isSafeTmdbPath(d.profile_path) ? `${TMDB_IMG}/h632${d.profile_path}` : undefined,
|
||||||
|
bio,
|
||||||
|
birthday: day(d.birthday),
|
||||||
|
deathday: day(d.deathday),
|
||||||
|
place: cleanText(d.place_of_birth, 120),
|
||||||
|
department: groupLabel(mainGroup),
|
||||||
|
mainGroup: list.some((c) => c.group === mainGroup) ? mainGroup : (list[0]?.group ?? 'acting'),
|
||||||
|
credits: list,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
interface AniStaff {
|
||||||
|
name?: { full?: string | null; native?: string | null } | null
|
||||||
|
image?: { large?: string | null } | null
|
||||||
|
description?: string | null
|
||||||
|
dateOfBirth?: { year?: number | null; month?: number | null; day?: number | null } | null
|
||||||
|
dateOfDeath?: { year?: number | null; month?: number | null; day?: number | null } | null
|
||||||
|
homeTown?: string | null
|
||||||
|
primaryOccupations?: string[] | null
|
||||||
|
characterMedia?: { edges?: { characterRole?: string; characters?: { name?: { full?: string | null } }[]; node?: (AniMedia & { popularity?: number | null }) | null }[] } | null
|
||||||
|
staffMedia?: { edges?: { staffRole?: string; node?: (AniMedia & { popularity?: number | null }) | null }[] } | null
|
||||||
|
}
|
||||||
|
|
||||||
|
const aniDate = (d?: { year?: number | null; month?: number | null; day?: number | null } | null) =>
|
||||||
|
d?.year && d.month && d.day ? `${d.year}-${String(d.month).padStart(2, '0')}-${String(d.day).padStart(2, '0')}` : undefined
|
||||||
|
|
||||||
|
/** Poste AniList → rubrique. */
|
||||||
|
function aniStaffGroup(role: string): CreditGroup {
|
||||||
|
if (/director|storyboard/i.test(role)) return 'directing'
|
||||||
|
if (/script|screenplay|series composition|original (creator|story)|story/i.test(role)) return 'writing'
|
||||||
|
if (/producer|production/i.test(role)) return 'production'
|
||||||
|
return 'other'
|
||||||
|
}
|
||||||
|
|
||||||
|
function cleanAniBio(text?: string | null): string | undefined {
|
||||||
|
if (!text) return undefined
|
||||||
|
const plain = text
|
||||||
|
.replace(/<br\s*\/?>/gi, '\n')
|
||||||
|
.replace(/<[^>]+>/g, '')
|
||||||
|
.replace(/~!|!~/g, '') // balises « spoiler » d'AniList
|
||||||
|
.replace(/__(.+?)__/g, '$1')
|
||||||
|
.replace(/\[(.+?)\]\((?:https?:)?\/\/[^)]+\)/g, '$1') // liens Markdown → texte
|
||||||
|
.replace(/\n{3,}/g, '\n\n')
|
||||||
|
return cleanText(plain, 4000)
|
||||||
|
}
|
||||||
|
|
||||||
|
async function aniPerson(id: string): Promise<PersonDetails> {
|
||||||
|
const sid = Number(id.split(':')[1])
|
||||||
|
const data = await aniQuery<{ Staff?: AniStaff }>(
|
||||||
|
`query ($id: Int) { Staff(id: $id) {
|
||||||
|
name { full native } image { large } description(asHtml: false)
|
||||||
|
dateOfBirth { year month day } dateOfDeath { year month day } homeTown primaryOccupations
|
||||||
|
characterMedia(perPage: 50, sort: POPULARITY_DESC) { edges { characterRole characters { name { full } } node { ${ANILIST_FIELDS} popularity type isAdult } } }
|
||||||
|
staffMedia(perPage: 50, sort: POPULARITY_DESC, type: ANIME) { edges { staffRole node { ${ANILIST_FIELDS} popularity isAdult } } }
|
||||||
|
} }`,
|
||||||
|
{ id: sid },
|
||||||
|
)
|
||||||
|
const s = data.Staff
|
||||||
|
if (!s) throw new Error(t('person.notFound'))
|
||||||
|
const credits = new Map<string, PersonCredit>()
|
||||||
|
const add = (node: (AniMedia & { popularity?: number | null; type?: string; isAdult?: boolean }) | null | undefined, group: CreditGroup, role?: string) => {
|
||||||
|
if (!node || node.isAdult || (node.type && node.type !== 'ANIME')) return
|
||||||
|
const result = aniToResult(node)
|
||||||
|
if (!result) return
|
||||||
|
const k = `${group}|${result.externalId}`
|
||||||
|
const prev = credits.get(k)
|
||||||
|
const r = cleanText(role, 80)
|
||||||
|
if (prev) {
|
||||||
|
if (r && !(prev.role ?? '').includes(r)) prev.role = prev.role ? `${prev.role}, ${r}` : r
|
||||||
|
return
|
||||||
|
}
|
||||||
|
credits.set(k, { result, group, role: r, year: result.year, popularity: num(node.popularity) })
|
||||||
|
}
|
||||||
|
for (const e of s.characterMedia?.edges ?? []) add(e.node, 'voice', e.characters?.map((c) => c.name?.full).filter(Boolean).join(', '))
|
||||||
|
for (const e of s.staffMedia?.edges ?? []) add(e.node, aniStaffGroup(e.staffRole ?? ''), e.staffRole?.replace(/\s*\(.*\)$/, ''))
|
||||||
|
const list = [...credits.values()]
|
||||||
|
const occ = (s.primaryOccupations ?? []).join(' ')
|
||||||
|
const mainGroup: CreditGroup = /voice/i.test(occ) || list.every((c) => c.group === 'voice') ? 'voice' : /director/i.test(occ) ? 'directing' : (list[0]?.group ?? 'voice')
|
||||||
|
return {
|
||||||
|
id,
|
||||||
|
name: cleanText(s.name?.full, 80) ?? cleanText(s.name?.native, 80) ?? '?',
|
||||||
|
photo: safePosterUrl(s.image?.large),
|
||||||
|
bio: cleanAniBio(s.description),
|
||||||
|
birthday: aniDate(s.dateOfBirth),
|
||||||
|
deathday: aniDate(s.dateOfDeath),
|
||||||
|
place: cleanText(s.homeTown, 120),
|
||||||
|
department: mainGroup === 'voice' ? groupLabel('voice') : groupLabel(mainGroup),
|
||||||
|
mainGroup: list.some((c) => c.group === mainGroup) ? mainGroup : (list[0]?.group ?? 'voice'),
|
||||||
|
credits: list,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
const personCache = new Map<string, Promise<PersonDetails>>()
|
||||||
|
|
||||||
|
/** Fiche d'une personne et sa filmographie (gardée en mémoire le temps de la session). */
|
||||||
|
export function getPerson(id: string, tmdbKey?: string): Promise<PersonDetails> {
|
||||||
|
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')))
|
||||||
|
const cached = personCache.get(id)
|
||||||
|
if (cached) return cached
|
||||||
|
const p = id.startsWith('tmdbp:') ? tmdbPerson(id, tmdbKey!) : aniPerson(id)
|
||||||
|
personCache.set(id, p)
|
||||||
|
p.catch(() => personCache.delete(id))
|
||||||
|
return p
|
||||||
|
}
|
||||||
|
|
||||||
+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'
|
try {
|
||||||
export type PushState = 'unsupported' | 'needs-install' | 'denied' | 'off' | 'on'
|
if (!('serviceWorker' in navigator) || !('PushManager' in window)) return
|
||||||
|
|
||||||
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()
|
const reg = await navigator.serviceWorker.getRegistration()
|
||||||
return (await reg?.pushManager.getSubscription()) ?? null
|
const sub = await reg?.pushManager.getSubscription()
|
||||||
}
|
await sub?.unsubscribe()
|
||||||
|
|
||||||
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 {
|
|
||||||
return (await currentSubscription()) ? 'on' : 'off'
|
|
||||||
} 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(() => {})
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,40 @@
|
|||||||
|
/**
|
||||||
|
* Mot de passe déjà apparu dans une fuite de données ? (base publique Have I Been Pwned)
|
||||||
|
*
|
||||||
|
* k-anonymat : seuls les 5 premiers caractères de l'empreinte SHA-1 du mot de passe sont envoyés ;
|
||||||
|
* le service renvoie toutes les empreintes qui commencent pareil (avec du remplissage aléatoire)
|
||||||
|
* et la comparaison se fait ici. Le mot de passe, et même son empreinte complète, ne quittent jamais l'appareil.
|
||||||
|
*
|
||||||
|
* Remplace l'option payante « Prevent use of leaked passwords » de Supabase.
|
||||||
|
* En cas de panne réseau, on laisse passer (la longueur minimale reste vérifiée).
|
||||||
|
*/
|
||||||
|
export async function isPwnedPassword(password: string): Promise<boolean> {
|
||||||
|
try {
|
||||||
|
const digest = await crypto.subtle.digest('SHA-1', new TextEncoder().encode(password))
|
||||||
|
const hex = [...new Uint8Array(digest)].map((b) => b.toString(16).padStart(2, '0')).join('').toUpperCase()
|
||||||
|
const prefix = hex.slice(0, 5)
|
||||||
|
const suffix = hex.slice(5)
|
||||||
|
const ctrl = new AbortController()
|
||||||
|
const timer = setTimeout(() => ctrl.abort(), 5000)
|
||||||
|
try {
|
||||||
|
const res = await fetch(`https://api.pwnedpasswords.com/range/${prefix}`, {
|
||||||
|
headers: { 'Add-Padding': 'true' },
|
||||||
|
signal: ctrl.signal,
|
||||||
|
credentials: 'omit',
|
||||||
|
referrerPolicy: 'no-referrer',
|
||||||
|
})
|
||||||
|
if (!res.ok) return false
|
||||||
|
const text = await res.text()
|
||||||
|
for (const line of text.split('\n')) {
|
||||||
|
const [s, count] = line.trim().split(':')
|
||||||
|
// Les lignes de remplissage ont un compteur à 0
|
||||||
|
if (s === suffix && Number(count) > 0) return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
} finally {
|
||||||
|
clearTimeout(timer)
|
||||||
|
}
|
||||||
|
} catch {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
import type { MediaInput, MediaItem, Rewatch } from '../types'
|
||||||
|
import { TYPE_BY_VALUE } from './constants'
|
||||||
|
import { episodeCap, seasonPosition } from './franchise'
|
||||||
|
import { safeDay } from './security'
|
||||||
|
import { todayISO } from './utils'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Revisionnage : revoir un titre déjà terminé.
|
||||||
|
* - Film (ou format unique) : on ajoute simplement une date dans `rewatchDates`.
|
||||||
|
* - Série : on lance un revisionnage (`rewatch`) qui a sa propre progression d'épisodes.
|
||||||
|
* Le premier visionnage reste intact (statut « Terminé », dates, note, notes de saison) ;
|
||||||
|
* au dernier épisode, le revisionnage se termine et sa date rejoint `rewatchDates`.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** Nombre maximal de revisionnages retenus par fiche. */
|
||||||
|
export const MAX_REWATCHES = 200
|
||||||
|
|
||||||
|
/** Fiche dont on peut suivre un revisionnage épisode par épisode. */
|
||||||
|
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)
|
||||||
|
|
||||||
|
export const isRewatching = (item: Pick<MediaItem, 'rewatch'>): item is MediaItem & { rewatch: Rewatch } => !!item.rewatch
|
||||||
|
|
||||||
|
/** 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)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* La fiche « telle qu'on la regarde en ce moment » : pendant un revisionnage, la progression affichée
|
||||||
|
* (Reprendre, +1, liste d'épisodes) est celle du revisionnage. Hors revisionnage, la fiche est inchangée.
|
||||||
|
*/
|
||||||
|
export function progressView<T extends MediaItem>(item: T): T {
|
||||||
|
if (!item.rewatch) return item
|
||||||
|
const episodesWatched = item.rewatch.episodes
|
||||||
|
const season = item.seasons ? seasonPosition({ ...item, episodesWatched, season: undefined })?.season : item.season
|
||||||
|
return { ...item, episodesWatched, season, status: 'en_cours' }
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Ajout d'une date de revisionnage (film, ou série revue d'un coup). */
|
||||||
|
export function addRewatchDate(item: Pick<MediaItem, 'rewatchDates'>, date = todayISO()): Partial<MediaInput> {
|
||||||
|
// Une date par jour au plus (comme à la synchro)
|
||||||
|
const dates = [...new Set([...(item.rewatchDates ?? []), date])].sort()
|
||||||
|
return { rewatchDates: dates.slice(-MAX_REWATCHES) }
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Démarre un revisionnage de série (progression repartie à zéro). */
|
||||||
|
export const startRewatch = (): Partial<MediaInput> => ({ rewatch: { startDate: todayISO(), episodes: 0 } })
|
||||||
|
|
||||||
|
/** Abandonne le revisionnage en cours (rien n'est ajouté à l'historique). */
|
||||||
|
export const stopRewatch = (): Partial<MediaInput> => ({ rewatch: undefined })
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Nouvelle progression du revisionnage. Au dernier épisode, il est terminé :
|
||||||
|
* la date du jour rejoint l'historique et la fiche redevient simplement « Terminé ».
|
||||||
|
*/
|
||||||
|
export function rewatchEpisodesPatch(item: MediaItem, n: number): { patch: Partial<MediaInput>; finished: boolean } {
|
||||||
|
if (!item.rewatch) return { patch: {}, finished: false }
|
||||||
|
const cap = episodeCap(item)
|
||||||
|
const episodes = Math.max(0, cap ? Math.min(n, cap) : n)
|
||||||
|
if (cap && episodes >= cap) return { patch: { rewatch: undefined, ...addRewatchDate(item) }, finished: true }
|
||||||
|
return { patch: { rewatch: { ...item.rewatch, episodes } }, finished: false }
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Épisodes vus en plus pendant un revisionnage (pour le journal des défis). */
|
||||||
|
export function rewatchEpisodeDelta(current: MediaItem, next: MediaItem): number {
|
||||||
|
const before = current.rewatch?.episodes ?? 0
|
||||||
|
if (next.rewatch) return next.rewatch.episodes - before
|
||||||
|
// Revisionnage terminé : les derniers épisodes jusqu'à la fin comptent
|
||||||
|
if (current.rewatch && (next.rewatchDates?.length ?? 0) > (current.rewatchDates?.length ?? 0)) {
|
||||||
|
const cap = episodeCap(current)
|
||||||
|
return cap ? Math.max(0, cap - before) : 0
|
||||||
|
}
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Nettoyage (sauvegarde, synchro). */
|
||||||
|
export function normalizeRewatch(v: unknown): Rewatch | undefined {
|
||||||
|
if (!v || typeof v !== 'object' || Array.isArray(v)) return undefined
|
||||||
|
const r = v as Record<string, unknown>
|
||||||
|
const startDate = safeDay(r.startDate)
|
||||||
|
const episodes = typeof r.episodes === 'number' && Number.isFinite(r.episodes) ? Math.max(0, Math.min(100000, Math.floor(r.episodes))) : 0
|
||||||
|
return startDate ? { startDate, episodes } : undefined
|
||||||
|
}
|
||||||
+2
-1
@@ -6,7 +6,8 @@ let scope: string | null = null
|
|||||||
|
|
||||||
export const getScope = () => scope
|
export const getScope = () => scope
|
||||||
export const setScope = (userId: string | null) => {
|
export const setScope = (userId: string | null) => {
|
||||||
scope = userId && /^[0-9a-f-]{36}$/i.test(userId) ? userId : null
|
// 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
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 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 ». */
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
import type { MediaItem, RatingScale, SeasonRating } from '../types'
|
||||||
|
import { episodeCap, episodesBeforeSeason } from './franchise'
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Notes par saison (séries de plusieurs saisons) : on note chaque saison vue, avec un avis si on veut.
|
||||||
|
* Quand toute la série est vue, la note finale devient la moyenne des saisons notées,
|
||||||
|
* arrondie à l'étoile (échelle /5) ou au point (échelle /10). Une série déjà notée sans notes de saison n'est pas touchée.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** Série découpée en saisons connues (au moins 2). */
|
||||||
|
export const hasSeasons = (item: Pick<MediaItem, 'seasons'>) => (item.seasons?.length ?? 0) >= 2
|
||||||
|
|
||||||
|
/** Moyenne des saisons notées, arrondie selon l'échelle (valeur stockée sur 10). */
|
||||||
|
export function seasonsAverage(ratings: MediaItem['seasonRatings'], scale: RatingScale): number | undefined {
|
||||||
|
const values = Object.values(ratings ?? {})
|
||||||
|
.map((r) => r.rating)
|
||||||
|
.filter((v): v is number => typeof v === 'number' && v > 0)
|
||||||
|
if (!values.length) return undefined
|
||||||
|
const avg = values.reduce((a, b) => a + b, 0) / values.length
|
||||||
|
// Étoiles : une étoile = 2 points sur 10 → on arrondit à l'étoile entière
|
||||||
|
return scale === '5' ? Math.max(2, Math.round(avg / 2) * 2) : Math.max(1, Math.round(avg))
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Saisons entièrement vues pour un nombre d'épisodes donné (1 = première). */
|
||||||
|
export function seasonsDone(seasons: number[], watched: number): number[] {
|
||||||
|
const out: number[] = []
|
||||||
|
for (let n = 1; n <= seasons.length; n++) if (watched >= episodesBeforeSeason(seasons, n) + seasons[n - 1]) out.push(n)
|
||||||
|
return out
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Ce que vient de terminer un passage de `before` à `after` épisodes : une saison, toute la série, ou rien. */
|
||||||
|
export type Completion = { season: number } | { final: true }
|
||||||
|
|
||||||
|
export function completionOf(item: Pick<MediaItem, 'seasons' | 'episodesTotal'>, before: number, after: number): Completion | undefined {
|
||||||
|
if (after <= before) return undefined
|
||||||
|
const cap = episodeCap(item)
|
||||||
|
if (cap && after >= cap && before < cap) {
|
||||||
|
// Dernière saison d'une série à saisons : on note cette saison (la note finale suit toute seule)
|
||||||
|
return hasSeasons(item) ? { season: item.seasons!.length } : { final: true }
|
||||||
|
}
|
||||||
|
if (!hasSeasons(item)) return undefined
|
||||||
|
const newly = seasonsDone(item.seasons!, after).filter((n) => !seasonsDone(item.seasons!, before).includes(n))
|
||||||
|
return newly.length ? { season: newly[newly.length - 1] } : undefined
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Nettoyage (sauvegarde, synchro) : saisons 1 à 200, note 0,5–10, avis ≤ 5 000 caractères. */
|
||||||
|
export function normalizeSeasonRatings(v: unknown): Record<string, SeasonRating> | undefined {
|
||||||
|
if (!v || typeof v !== 'object' || Array.isArray(v)) return undefined
|
||||||
|
const out: Record<string, SeasonRating> = {}
|
||||||
|
for (const [k, raw] of Object.entries(v as Record<string, unknown>).slice(0, 200)) {
|
||||||
|
if (!/^[1-9]\d{0,2}$/.test(k) || !raw || typeof raw !== 'object') continue
|
||||||
|
const r = raw as Record<string, unknown>
|
||||||
|
const rating = typeof r.rating === 'number' && r.rating >= 0.5 && r.rating <= 10 ? Math.round(r.rating * 2) / 2 : undefined
|
||||||
|
const notes = typeof r.notes === 'string' && r.notes.trim() ? r.notes.slice(0, 5000) : undefined
|
||||||
|
if (rating == null && !notes) continue
|
||||||
|
out[k] = { rating, notes, spoiler: notes && r.spoiler === true ? true : undefined }
|
||||||
|
}
|
||||||
|
return Object.keys(out).length ? out : undefined
|
||||||
|
}
|
||||||
@@ -178,13 +178,13 @@ function drawBrand(ctx: CanvasRenderingContext2D, y: number) {
|
|||||||
ctx.textBaseline = 'alphabetic'
|
ctx.textBaseline = 'alphabetic'
|
||||||
ctx.textAlign = 'left'
|
ctx.textAlign = 'left'
|
||||||
ctx.font = `700 34px ${FONT}`
|
ctx.font = `700 34px ${FONT}`
|
||||||
const a = 'Azuu'
|
const a = 'Ki'
|
||||||
const total = ctx.measureText('AzuuCine').width
|
const total = ctx.measureText('Kino').width
|
||||||
const x = (W - total) / 2
|
const x = (W - total) / 2
|
||||||
ctx.fillStyle = c.ink
|
ctx.fillStyle = c.ink
|
||||||
ctx.fillText(a, x, y)
|
ctx.fillText(a, x, y)
|
||||||
ctx.fillStyle = c.accent
|
ctx.fillStyle = c.accent
|
||||||
ctx.fillText('Cine', x + ctx.measureText(a).width, y)
|
ctx.fillText('no', x + ctx.measureText(a).width, y)
|
||||||
}
|
}
|
||||||
|
|
||||||
async function newCanvas() {
|
async function newCanvas() {
|
||||||
@@ -234,7 +234,7 @@ const hiRes = (url?: string) => (url?.startsWith('https://image.tmdb.org/t/p/w34
|
|||||||
/**
|
/**
|
||||||
* Affiche d'une fiche, façon « poster minimaliste » :
|
* Affiche d'une fiche, façon « poster minimaliste » :
|
||||||
* image en haut, gros titre en capitales + année, puis une fiche technique
|
* image en haut, gros titre en capitales + année, puis une fiche technique
|
||||||
* (durée, réalisation, production, casting, genres, ma note) — aux couleurs d'AzuuCine.
|
* (durée, réalisation, production, casting, genres, ma note) — aux couleurs de Kino.
|
||||||
*/
|
*/
|
||||||
export async function renderItemCard(item: MediaItem, scale: RatingScale, credits?: CardCredits): Promise<Blob> {
|
export async function renderItemCard(item: MediaItem, scale: RatingScale, credits?: CardCredits): Promise<Blob> {
|
||||||
const { canvas, ctx } = await newCanvas()
|
const { canvas, ctx } = await newCanvas()
|
||||||
@@ -351,12 +351,12 @@ export async function renderItemCard(item: MediaItem, scale: RatingScale, credit
|
|||||||
ctx.textAlign = 'left'
|
ctx.textAlign = 'left'
|
||||||
ctx.textBaseline = 'alphabetic'
|
ctx.textBaseline = 'alphabetic'
|
||||||
ctx.font = `800 30px ${FONT}`
|
ctx.font = `800 30px ${FONT}`
|
||||||
const brandW = ctx.measureText('AzuuCine').width
|
const brandW = ctx.measureText('Kino').width
|
||||||
const bx = ix + iw - brandW
|
const bx = ix + iw - brandW
|
||||||
ctx.fillStyle = c.ink
|
ctx.fillStyle = c.ink
|
||||||
ctx.fillText('Azuu', bx, fy + 11)
|
ctx.fillText('Ki', bx, fy + 11)
|
||||||
ctx.fillStyle = c.accent
|
ctx.fillStyle = c.accent
|
||||||
ctx.fillText('Cine', bx + ctx.measureText('Azuu').width, fy + 11)
|
ctx.fillText('no', bx + ctx.measureText('Ki').width, fy + 11)
|
||||||
|
|
||||||
return toBlob(canvas)
|
return toBlob(canvas)
|
||||||
}
|
}
|
||||||
@@ -461,4 +461,4 @@ export const slug = (s: string) =>
|
|||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.replace(/[^a-z0-9]+/g, '-')
|
.replace(/[^a-z0-9]+/g, '-')
|
||||||
.replace(/^-|-$/g, '')
|
.replace(/^-|-$/g, '')
|
||||||
.slice(0, 40) || 'azuucine'
|
.slice(0, 40) || 'kino'
|
||||||
+20
-2
@@ -3,10 +3,15 @@ import type { MediaItem, MediaType, WatchStatus } from '../types'
|
|||||||
import { episodeCap } from './franchise'
|
import { episodeCap } from './franchise'
|
||||||
import { DEFAULT_FILM_MINUTES, MEDIA_TYPES, STATUSES, TYPE_BY_VALUE } from './constants'
|
import { DEFAULT_FILM_MINUTES, MEDIA_TYPES, STATUSES, TYPE_BY_VALUE } from './constants'
|
||||||
|
|
||||||
/** Temps estimé (minutes) passé sur une fiche. */
|
/** Temps estimé (minutes) passé sur une fiche, revisionnages compris. */
|
||||||
export function watchMinutes(item: MediaItem): number {
|
export function watchMinutes(item: MediaItem): number {
|
||||||
const epMin = item.episodeDuration || TYPE_BY_VALUE[item.type].episodeMinutes
|
|
||||||
if (item.type === 'film') return item.status === 'termine' ? (item.duration || DEFAULT_FILM_MINUTES) * (1 + (item.rewatchDates?.length ?? 0)) : 0
|
if (item.type === 'film') return item.status === 'termine' ? (item.duration || DEFAULT_FILM_MINUTES) * (1 + (item.rewatchDates?.length ?? 0)) : 0
|
||||||
|
return firstViewMinutes(item) + rewatchMinutes(item)
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Premier visionnage seul. */
|
||||||
|
function firstViewMinutes(item: MediaItem): number {
|
||||||
|
const epMin = item.episodeDuration || TYPE_BY_VALUE[item.type].episodeMinutes
|
||||||
if (item.episodesWatched > 0) return item.episodesWatched * epMin
|
if (item.episodesWatched > 0) return item.episodesWatched * epMin
|
||||||
if (item.status === 'termine') {
|
if (item.status === 'termine') {
|
||||||
const cap = episodeCap(item)
|
const cap = episodeCap(item)
|
||||||
@@ -15,6 +20,19 @@ export function watchMinutes(item: MediaItem): number {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Durée d'un visionnage complet (un film, ou tous les épisodes d'une série). */
|
||||||
|
export function oneViewMinutes(item: MediaItem): number {
|
||||||
|
if (!TYPE_BY_VALUE[item.type].episodic) return item.duration || DEFAULT_FILM_MINUTES
|
||||||
|
const cap = episodeCap(item)
|
||||||
|
return cap ? cap * (item.episodeDuration || TYPE_BY_VALUE[item.type].episodeMinutes) : 0
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Temps passé à revoir le titre : revisionnages terminés + épisodes du revisionnage en cours. */
|
||||||
|
export function rewatchMinutes(item: MediaItem): number {
|
||||||
|
const epMin = item.episodeDuration || TYPE_BY_VALUE[item.type].episodeMinutes
|
||||||
|
return (item.rewatchDates?.length ?? 0) * oneViewMinutes(item) + (item.rewatch?.episodes ?? 0) * epMin
|
||||||
|
}
|
||||||
|
|
||||||
export interface Count {
|
export interface Count {
|
||||||
label: string
|
label: string
|
||||||
value: number
|
value: number
|
||||||
|
|||||||
+7
-33
@@ -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'
|
||||||
@@ -10,10 +10,10 @@ import TopFive from '../components/TopFive'
|
|||||||
import ChallengesCard from '../components/challenges/ChallengesCard'
|
import ChallengesCard from '../components/challenges/ChallengesCard'
|
||||||
import Recommendations from '../components/Recommendations'
|
import Recommendations from '../components/Recommendations'
|
||||||
import HomeHero, { ContinueCard } from '../components/HomeHero'
|
import HomeHero, { ContinueCard } from '../components/HomeHero'
|
||||||
|
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'
|
||||||
@@ -79,21 +79,6 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
|||||||
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(() => {})
|
||||||
@@ -101,7 +86,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
|
||||||
@@ -138,7 +123,8 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
|||||||
// 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
|
const unknownWhileChecking = (i: MediaItem) => (checkingAiring || loading) && !airing[i.id] && trackable([i]).length > 0
|
||||||
const inProgress = items.filter((i) => i.status === 'en_cours' && !isCaughtUp(i, airing) && !unknownWhileChecking(i))
|
// 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))
|
||||||
// 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 = [...inProgress].sort((a, b) => b.updatedAt.localeCompare(a.updatedAt))
|
||||||
const firstToWatch = items.find((i) => i.status === 'a_voir')
|
const firstToWatch = items.find((i) => i.status === 'a_voir')
|
||||||
@@ -154,8 +140,8 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<PageHeader
|
<PageHeader
|
||||||
title="Azuu"
|
title="Ki"
|
||||||
accent="Cine"
|
accent="no"
|
||||||
subtitle={t('home.subtitle')}
|
subtitle={t('home.subtitle')}
|
||||||
action={
|
action={
|
||||||
<span className="flex shrink-0 items-center gap-2">
|
<span className="flex shrink-0 items-center gap-2">
|
||||||
@@ -169,18 +155,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} />
|
||||||
|
|||||||
+15
-41
@@ -3,7 +3,6 @@ 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, 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,7 +13,6 @@ 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'
|
||||||
@@ -25,15 +23,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')}>
|
||||||
@@ -48,7 +37,7 @@ function Row({ icon, title, hint, onClick, danger }: { icon: ReactNode; title: s
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void }) {
|
export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void }) {
|
||||||
const { items, settings, updateSettings, importItems, clearAll, lists, mergeLists, account } = useMedia()
|
const { items, settings, updateSettings, importItems, clearAll, lists, mergeLists, account, guest, requestAccount } = useMedia()
|
||||||
const { canInstall, installed, install } = useInstallPrompt()
|
const { canInstall, installed, install } = useInstallPrompt()
|
||||||
const [admin, setAdmin] = useState(false)
|
const [admin, setAdmin] = useState(false)
|
||||||
// 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)
|
||||||
@@ -188,6 +177,17 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{account && <AccountSection account={account} onMessage={(kind, text) => setMessage({ kind, text })} />}
|
{account && <AccountSection account={account} onMessage={(kind, text) => setMessage({ kind, text })} />}
|
||||||
|
{guest && (
|
||||||
|
<>
|
||||||
|
<SectionTitle>{t('account.title')}</SectionTitle>
|
||||||
|
<div className="card p-4">
|
||||||
|
<p className="text-sm text-ink-2">{t('guest.banner')}</p>
|
||||||
|
<button onClick={requestAccount} className="btn btn-primary mt-4 w-full py-2.5 text-sm">
|
||||||
|
{t('auth.loginTab')} · {t('auth.signupTab')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
|
||||||
{admin && (
|
{admin && (
|
||||||
<>
|
<>
|
||||||
@@ -313,33 +313,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">
|
||||||
@@ -350,7 +323,8 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
|||||||
</div>
|
</div>
|
||||||
<p className="mt-1 text-xs text-ink-3">{t('settings.noConfig')}</p>
|
<p className="mt-1 text-xs text-ink-3">{t('settings.noConfig')}</p>
|
||||||
</div>
|
</div>
|
||||||
{account ? (
|
{/* Mode découverte : TMDB passe par le serveur, rien à régler ici */}
|
||||||
|
{guest ? null : account ? (
|
||||||
<div className="border-t border-line pt-4">
|
<div className="border-t border-line pt-4">
|
||||||
<div className="flex items-center justify-between">
|
<div className="flex items-center justify-between">
|
||||||
<span className="font-medium">TMDB</span>
|
<span className="font-medium">TMDB</span>
|
||||||
@@ -527,7 +501,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
|||||||
</div>
|
</div>
|
||||||
<p className="mt-3 px-1 text-[11px] leading-relaxed text-ink-3">{t('legal.tmdb')}</p>
|
<p className="mt-3 px-1 text-[11px] leading-relaxed text-ink-3">{t('legal.tmdb')}</p>
|
||||||
|
|
||||||
<p className="mt-10 text-center text-xs text-ink-3">AzuuCine v2.2 · {account ? t('settings.footerCloud') : t('settings.footerLocal')}</p>
|
<p className="mt-10 text-center text-xs text-ink-3">Kino v2.2 · {account ? t('settings.footerCloud') : t('settings.footerLocal')}</p>
|
||||||
|
|
||||||
<ConfirmDialog
|
<ConfirmDialog
|
||||||
open={confirm === 'reset'}
|
open={confirm === 'reset'}
|
||||||
|
|||||||
+273
-6
@@ -1,14 +1,281 @@
|
|||||||
|
import { Settings2 } from 'lucide-react'
|
||||||
|
import { useMemo, useState } from 'react'
|
||||||
import { t } from '../i18n'
|
import { t } from '../i18n'
|
||||||
import { PageHeader } from '../components/ui'
|
import { BarList, Columns, Panel, StatTile } from '../components/stats/Charts'
|
||||||
|
import Poster from '../components/Poster'
|
||||||
|
import StatsSettings from '../components/stats/StatsSettings'
|
||||||
|
import { EmptyState, PageHeader } from '../components/ui'
|
||||||
|
import { STATUSES, TYPE_BY_VALUE } from '../lib/constants'
|
||||||
|
import { genreLabel } from '../lib/genres'
|
||||||
|
import { availableYears, computeStats, countries, itemsForPeriod, monthly, records, watchMinutes } from '../lib/stats'
|
||||||
|
import { cx, formatDuration, formatRating } from '../lib/utils'
|
||||||
|
import { useMedia } from '../store'
|
||||||
|
import type { MediaItem, MediaType } from '../types'
|
||||||
|
|
||||||
|
/** Onglets : tout, puis un par grande famille (les dramas coréens / chinois vont avec les séries). */
|
||||||
|
type Scope = 'all' | 'film' | 'series' | 'anime' | 'other'
|
||||||
|
const SCOPE_TYPES: Record<Exclude<Scope, 'all'>, MediaType[]> = {
|
||||||
|
film: ['film'],
|
||||||
|
series: ['serie', 'kdrama', 'cdrama'],
|
||||||
|
anime: ['anime'],
|
||||||
|
other: ['autre'],
|
||||||
|
}
|
||||||
|
const scopeLabel = (s: Scope) =>
|
||||||
|
s === 'all' ? t('stats.tabAll') : s === 'film' ? t('typePlural.film') : s === 'series' ? t('typePlural.serie') : s === 'anime' ? t('typePlural.anime') : t('stats.tabOther')
|
||||||
|
|
||||||
|
/** Statistiques : vue générale, puis films, séries, animes et autres formats. */
|
||||||
|
export default function StatsPage({ onOpen }: { onOpen: (item: MediaItem) => void }) {
|
||||||
|
const { items, settings } = useMedia()
|
||||||
|
const [scope, setScope] = useState<Scope>('all')
|
||||||
|
const [year, setYear] = useState('')
|
||||||
|
const [settingsOpen, setSettingsOpen] = useState(false)
|
||||||
|
|
||||||
|
const scoped = useMemo(() => (scope === 'all' ? items : items.filter((i) => SCOPE_TYPES[scope].includes(i.type))), [items, scope])
|
||||||
|
const years = useMemo(() => availableYears(scoped), [scoped])
|
||||||
|
const period = year && years.includes(year) ? year : ''
|
||||||
|
const list = useMemo(() => itemsForPeriod(scoped, period), [scoped, period])
|
||||||
|
|
||||||
|
// Onglets : « Général », « Films », « Séries » toujours ; les autres seulement s'ils ont des titres
|
||||||
|
const scopes: Scope[] = (['all', 'film', 'series', 'anime', 'other'] as Scope[]).filter(
|
||||||
|
(s) => s === 'all' || s === 'film' || s === 'series' || items.some((i) => SCOPE_TYPES[s].includes(i.type)),
|
||||||
|
)
|
||||||
|
|
||||||
/** Statistiques : en cours de refonte complète. */
|
|
||||||
export default function StatsPage() {
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<PageHeader title={t('nav.stats')} />
|
<PageHeader title={t('stats.pageTitle')} accent={t('stats.pageAccent')} subtitle={period ? t('stats.subtitleYear', { count: list.length, year: period }) : t('stats.subtitle', { count: list.length })} />
|
||||||
<div className="grid min-h-[50dvh] place-items-center">
|
|
||||||
<p className="text-5xl font-bold tracking-tight text-ink-3 lg:text-7xl">Soon</p>
|
{/* Filtres : une seule rangée (catégorie + période) */}
|
||||||
|
<div className="flex flex-col gap-3 sm:flex-row sm:items-center">
|
||||||
|
<div className="no-scrollbar -mx-1 flex min-w-0 flex-1 gap-2 overflow-x-auto px-1" role="tablist" aria-label={t('nav.stats')}>
|
||||||
|
{scopes.map((s) => (
|
||||||
|
<button key={s} role="tab" aria-selected={scope === s} onClick={() => setScope(s)} className={cx('chip shrink-0', scope === s && 'chip-on')}>
|
||||||
|
{scopeLabel(s)}
|
||||||
|
</button>
|
||||||
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
<label className="self-start sm:self-auto sm:shrink-0">
|
||||||
|
<span className="sr-only">{t('stats.period')}</span>
|
||||||
|
<select value={period} onChange={(e) => setYear(e.target.value)} className="field w-auto py-2 pe-8 text-sm">
|
||||||
|
<option value="">{t('stats.allYears')}</option>
|
||||||
|
{years.map((y) => (
|
||||||
|
<option key={y} value={y}>
|
||||||
|
{y}
|
||||||
|
</option>
|
||||||
|
))}
|
||||||
|
</select>
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{list.length === 0 ? (
|
||||||
|
<EmptyState title={t('stats.emptyTitle')} text={t('stats.emptyText')} />
|
||||||
|
) : (
|
||||||
|
<StatsBody key={scope + period} scope={scope} items={list} year={period} scale={settings.ratingScale} hiddenMonths={settings.statsHiddenMonths} onOpen={onOpen} onSettings={() => setSettingsOpen(true)} />
|
||||||
|
)}
|
||||||
|
{settingsOpen && <StatsSettings initialYear={period} onClose={() => setSettingsOpen(false)} />}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function StatsBody({
|
||||||
|
scope,
|
||||||
|
items,
|
||||||
|
year,
|
||||||
|
scale,
|
||||||
|
hiddenMonths,
|
||||||
|
onOpen,
|
||||||
|
onSettings,
|
||||||
|
}: {
|
||||||
|
scope: Scope
|
||||||
|
items: MediaItem[]
|
||||||
|
year: string
|
||||||
|
scale: '5' | '10'
|
||||||
|
/** Mois masqués dans la courbe (paramètres des stats) */
|
||||||
|
hiddenMonths?: string[]
|
||||||
|
onOpen: (item: MediaItem) => void
|
||||||
|
onSettings: () => void
|
||||||
|
}) {
|
||||||
|
const hidden = useMemo(() => new Set(hiddenMonths ?? []), [hiddenMonths])
|
||||||
|
const s = useMemo(() => computeStats(items), [items])
|
||||||
|
const months = useMemo(() => monthly(items, year), [items, year])
|
||||||
|
const rec = useMemo(() => records(items), [items])
|
||||||
|
const geo = useMemo(() => countries(items), [items])
|
||||||
|
const isFilm = scope === 'film'
|
||||||
|
const episodic = scope !== 'all' && scope !== 'film'
|
||||||
|
|
||||||
|
const films = useMemo(() => items.filter((i) => i.type === 'film' && i.status === 'termine'), [items])
|
||||||
|
const avgFilm = films.length ? films.reduce((n, f) => n + watchMinutes(f) / (1 + (f.rewatchDates?.length ?? 0)), 0) / films.length : 0
|
||||||
|
const rewatches = items.reduce((n, i) => n + (i.rewatchDates?.length ?? 0), 0)
|
||||||
|
|
||||||
|
// Décennies de sortie des titres vus
|
||||||
|
const decades = useMemo(() => {
|
||||||
|
const m = new Map<number, number>()
|
||||||
|
for (const i of items) if (i.status !== 'a_voir' && i.year && i.year > 1870) m.set(Math.floor(i.year / 10) * 10, (m.get(Math.floor(i.year / 10) * 10) ?? 0) + 1)
|
||||||
|
return [...m.entries()].sort((a, b) => b[0] - a[0])
|
||||||
|
}, [items])
|
||||||
|
|
||||||
|
const days = Math.floor(s.totalMinutes / 1440)
|
||||||
|
const timeHint = days > 0 ? `${t('stats.nonStopPre')}${t('stats.days', { count: days })}${t('stats.nonStopPost')}` : undefined
|
||||||
|
// Mois le plus chargé : seulement s'il sort vraiment du lot (pas d'égalité en tête)
|
||||||
|
const ranked = months.filter((m) => !hidden.has(m.key)).sort((a, b) => b.count - a.count)
|
||||||
|
const busiest = ranked[0] && ranked[0].count > (ranked[1]?.count ?? 0) ? ranked[0] : undefined
|
||||||
|
|
||||||
|
// Répartition des notes : 10 tranches sur /10 (½ étoile par tranche en échelle /5)
|
||||||
|
const ratingBars = s.ratingBuckets.map((n, k) => {
|
||||||
|
const v = k + 1
|
||||||
|
const shown = formatRating(v, scale)
|
||||||
|
return { key: String(v), axis: scale === '5' ? (v % 2 === 0 ? shown : '') : shown, value: n, tip: `${t('stats.ratedAs', { count: n, rating: shown })} : ${n}` }
|
||||||
|
})
|
||||||
|
|
||||||
|
const typeRows = s.byType
|
||||||
|
.filter((x) => x.value > 0 && (scope === 'all' || SCOPE_TYPES[scope as Exclude<Scope, 'all'>].includes(x.type)))
|
||||||
|
.sort((a, b) => b.minutes - a.minutes)
|
||||||
|
.map((x) => ({ key: x.type, label: TYPE_BY_VALUE[x.type].label, value: x.minutes, sub: t('stats.finishedN', { count: x.completed }) }))
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="mt-5 space-y-4 pb-6">
|
||||||
|
{/* Les chiffres clés */}
|
||||||
|
<div className="grid grid-cols-2 gap-3 lg:grid-cols-4">
|
||||||
|
<StatTile label={t('stats.timeSpent')} value={formatDuration(s.totalMinutes)} hint={timeHint} />
|
||||||
|
<StatTile label={isFilm ? t('stats.filmsSeen') : t('stats.finished')} value={s.completed} hint={!isFilm && s.inProgress ? `${s.inProgress} · ${STATUSES[1].label}` : rewatches ? `${rewatches} · ${t('stats.rewatched')}` : undefined} />
|
||||||
|
{isFilm ? (
|
||||||
|
<StatTile label={t('stats.avgLength')} value={avgFilm ? formatDuration(avgFilm) : '—'} />
|
||||||
|
) : (
|
||||||
|
<StatTile label={t('stats.episodesSeen')} value={s.episodesWatched.toLocaleString()} />
|
||||||
|
)}
|
||||||
|
<StatTile label={t('stats.avgRating')} value={s.avgRating ? formatRating(Math.round(s.avgRating * 10) / 10, scale) : '—'} hint={s.ratedCount ? t('stats.rated', { count: s.ratedCount }) : undefined} />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="grid gap-4 lg:grid-cols-2">
|
||||||
|
{/* Activité mois par mois */}
|
||||||
|
<Panel
|
||||||
|
title={year ? t('stats.monthByMonth', { year }) : t('stats.last12')}
|
||||||
|
className="lg:col-span-2"
|
||||||
|
action={
|
||||||
|
<button onClick={onSettings} className="-me-2 grid size-9 place-items-center rounded-full text-ink-3 transition-colors hover:text-ink" aria-label={t('stats.settings')}>
|
||||||
|
<Settings2 size={18} />
|
||||||
|
</button>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Columns
|
||||||
|
label={year ? t('stats.monthByMonth', { year }) : t('stats.last12')}
|
||||||
|
height={150}
|
||||||
|
bars={months.map((m) => ({
|
||||||
|
key: m.key,
|
||||||
|
axis: m.initial,
|
||||||
|
value: m.count,
|
||||||
|
highlight: m === busiest,
|
||||||
|
hidden: hidden.has(m.key),
|
||||||
|
tip: hidden.has(m.key)
|
||||||
|
? `${m.label} : ${t('stats.monthHidden')}`
|
||||||
|
: `${m.label} : ${t('stats.monthFinished', { count: m.count })}${m.minutes ? ` · ${formatDuration(m.minutes)}` : ''}`,
|
||||||
|
}))}
|
||||||
|
/>
|
||||||
|
{busiest && busiest.count > 0 && (
|
||||||
|
<p className="mt-3 text-xs text-ink-2">
|
||||||
|
{t('stats.busiest')} <span className="font-medium text-ink">{busiest.label}</span> · {t('stats.monthFinished', { count: busiest.count })}
|
||||||
|
</p>
|
||||||
|
)}
|
||||||
|
</Panel>
|
||||||
|
|
||||||
|
{/* Temps par type (vue générale, et séries quand il y a plusieurs formats) */}
|
||||||
|
{typeRows.length > 1 && (
|
||||||
|
<Panel title={t('stats.timeByType')}>
|
||||||
|
<BarList rows={typeRows} format={formatDuration} />
|
||||||
|
</Panel>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<Panel title={t('stats.myRatings')}>
|
||||||
|
{s.ratedCount ? <Columns label={t('stats.myRatings')} height={120} bars={ratingBars} /> : <p className="text-sm text-ink-3">{t('stats.noRatings')}</p>}
|
||||||
|
</Panel>
|
||||||
|
|
||||||
|
<Panel title={t('stats.favGenres')}>
|
||||||
|
{s.topGenres.length ? (
|
||||||
|
<BarList rows={s.topGenres.map((g) => ({ key: g.label, label: genreLabel(g.label), value: g.value }))} />
|
||||||
|
) : (
|
||||||
|
<p className="text-sm text-ink-3">{t('stats.noGenres')}</p>
|
||||||
|
)}
|
||||||
|
</Panel>
|
||||||
|
|
||||||
|
{geo.list.length > 0 && (
|
||||||
|
<Panel title={t('stats.countries')}>
|
||||||
|
<BarList
|
||||||
|
rows={geo.list.slice(0, 8).map((c) => ({
|
||||||
|
key: c.code,
|
||||||
|
label: (
|
||||||
|
<>
|
||||||
|
<span aria-hidden="true">{c.flag}</span> {c.name}
|
||||||
|
</>
|
||||||
|
),
|
||||||
|
value: c.count,
|
||||||
|
}))}
|
||||||
|
/>
|
||||||
|
</Panel>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{decades.length > 1 && (
|
||||||
|
<Panel title={t('stats.decades')}>
|
||||||
|
<BarList rows={decades.map(([d, n]) => ({ key: String(d), label: `${d} – ${d + 9}`, value: n }))} />
|
||||||
|
</Panel>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<Panel title={t('stats.statuses')}>
|
||||||
|
<BarList rows={s.byStatus.filter((x) => x.value > 0).map((x) => ({ key: x.status, label: x.label, value: x.value }))} />
|
||||||
|
</Panel>
|
||||||
|
|
||||||
|
{s.topPlatforms.length > 0 && (
|
||||||
|
<Panel title={t('stats.platforms')}>
|
||||||
|
<BarList rows={s.topPlatforms.map((p) => ({ key: p.label, label: p.label, value: p.value }))} />
|
||||||
|
</Panel>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{/* Records */}
|
||||||
|
{(rec.marathon && (episodic || scope === 'all')) || (rec.longestFilm && (isFilm || scope === 'all')) ? (
|
||||||
|
<Panel title={t('stats.records')}>
|
||||||
|
<div className="space-y-3">
|
||||||
|
{rec.marathon && (episodic || scope === 'all') && (
|
||||||
|
<RecordRow label={t('stats.marathon')} item={rec.marathon.item} value={t('stats.episodesN', { count: rec.marathon.episodes })} onOpen={onOpen} />
|
||||||
|
)}
|
||||||
|
{rec.longestFilm && (isFilm || scope === 'all') && (
|
||||||
|
<RecordRow label={t('stats.longestFilm')} item={rec.longestFilm} value={formatDuration(rec.longestFilm.duration ?? 0)} onOpen={onOpen} />
|
||||||
|
)}
|
||||||
|
</div>
|
||||||
|
</Panel>
|
||||||
|
) : null}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Mes mieux notés */}
|
||||||
|
{rec.bestRated && rec.bestRated.length > 0 && (
|
||||||
|
<Panel title={t('stats.bestRated')}>
|
||||||
|
<ul className="no-scrollbar -mx-1 flex gap-3 overflow-x-auto px-1 pb-1">
|
||||||
|
{rec.bestRated.map((i) => (
|
||||||
|
<li key={i.id} className="w-24 shrink-0 lg:w-28">
|
||||||
|
<button onClick={() => onOpen(i)} className="block w-full text-start">
|
||||||
|
<Poster src={i.poster} title={i.title} />
|
||||||
|
<p className="mt-1.5 truncate text-xs font-medium">{i.title}</p>
|
||||||
|
<p className="text-[11px] text-ink-3">{formatRating(i.rating, scale)}</p>
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
|
</Panel>
|
||||||
|
)}
|
||||||
|
|
||||||
|
<p className="px-1 text-[11px] leading-relaxed text-ink-3">{t('stats.footnote')}</p>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
function RecordRow({ label, item, value, onOpen }: { label: string; item: MediaItem; value: string; onOpen: (item: MediaItem) => void }) {
|
||||||
|
return (
|
||||||
|
<button onClick={() => onOpen(item)} className="flex w-full items-center gap-3 text-start">
|
||||||
|
<div className="w-12 shrink-0">
|
||||||
|
<Poster src={item.poster} title={item.title} />
|
||||||
|
</div>
|
||||||
|
<div className="min-w-0 flex-1">
|
||||||
|
<p className="text-xs text-ink-3">{label}</p>
|
||||||
|
<p className="truncate font-semibold">{item.title}</p>
|
||||||
|
<p className="text-sm text-ink-2">{value}</p>
|
||||||
|
</div>
|
||||||
|
</button>
|
||||||
|
)
|
||||||
|
}
|
||||||
+77
-18
@@ -1,3 +1,4 @@
|
|||||||
|
import { completionOf, seasonsAverage, type Completion } from './lib/seasons'
|
||||||
import { t } from './i18n'
|
import { t } from './i18n'
|
||||||
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, type ReactNode } from 'react'
|
import { createContext, useCallback, useContext, useEffect, useLayoutEffect, useMemo, useRef, useState, type ReactNode } from 'react'
|
||||||
import type { CustomList, MediaInput, MediaItem, Settings, TopCategory } from './types'
|
import type { CustomList, MediaInput, MediaItem, Settings, TopCategory } from './types'
|
||||||
@@ -9,7 +10,6 @@ import { createSync, type SyncEngine, type SyncStatus } from './lib/cloud/sync'
|
|||||||
import { deleteDatabase, readOtherDatabase } from './lib/db'
|
import { deleteDatabase, readOtherDatabase } 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'
|
||||||
@@ -18,6 +18,7 @@ import { uid } from './lib/utils'
|
|||||||
import { episodeCap } from './lib/franchise'
|
import { episodeCap } from './lib/franchise'
|
||||||
import { airedCount } from './lib/airing'
|
import { airedCount } from './lib/airing'
|
||||||
import { logEpisodes } from './lib/challenges'
|
import { logEpisodes } from './lib/challenges'
|
||||||
|
import { 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')
|
||||||
@@ -53,7 +54,8 @@ interface MediaStore {
|
|||||||
add: (input: MediaInput) => Promise<MediaItem>
|
add: (input: MediaInput) => Promise<MediaItem>
|
||||||
update: (id: string, patch: Partial<MediaInput>) => Promise<void>
|
update: (id: string, patch: Partial<MediaInput>) => Promise<void>
|
||||||
remove: (id: string) => Promise<void>
|
remove: (id: string) => Promise<void>
|
||||||
incrementEpisode: (id: string, delta?: number) => Promise<void>
|
/** +1 épisode. Renvoie ce que ça vient de terminer (une saison, ou toute la série), pour proposer de noter. */
|
||||||
|
incrementEpisode: (id: string, delta?: number) => Promise<Completion | undefined>
|
||||||
importItems: (items: MediaItem[], mode: 'merge' | 'replace') => Promise<void>
|
importItems: (items: MediaItem[], mode: 'merge' | 'replace') => Promise<void>
|
||||||
/** Remplace le Top 5 d'une catégorie par ces fiches, dans l'ordre (max 5). */
|
/** Remplace le Top 5 d'une catégorie par ces fiches, dans l'ordre (max 5). */
|
||||||
setTopList: (category: TopCategory, orderedIds: string[]) => Promise<void>
|
setTopList: (category: TopCategory, orderedIds: string[]) => Promise<void>
|
||||||
@@ -78,6 +80,10 @@ interface MediaStore {
|
|||||||
deleteList: (id: string) => Promise<void>
|
deleteList: (id: string) => Promise<void>
|
||||||
toggleInList: (itemId: string, listId: string) => Promise<void>
|
toggleInList: (itemId: string, listId: string) => Promise<void>
|
||||||
mergeLists: (incoming: CustomList[], mode: 'merge' | 'replace') => void
|
mergeLists: (incoming: CustomList[], mode: 'merge' | 'replace') => void
|
||||||
|
/** Mode découverte (sans compte) : on regarde, mais noter / ajouter demande un compte. */
|
||||||
|
guest: boolean
|
||||||
|
/** Propose de se connecter (mode découverte) */
|
||||||
|
requestAccount: () => void
|
||||||
|
|
||||||
/** Compte connecté (absent en mode 100 % local) */
|
/** Compte connecté (absent en mode 100 % local) */
|
||||||
account?: AccountApi
|
account?: AccountApi
|
||||||
@@ -123,7 +129,26 @@ const byUpdatedDesc = (a: MediaItem, b: MediaItem) => b.updatedAt.localeCompare(
|
|||||||
* Service de données : l'état React est la copie de travail,
|
* Service de données : l'état React est la copie de travail,
|
||||||
* IndexedDB est la source persistante (chaque écriture y est répercutée).
|
* IndexedDB est la source persistante (chaque écriture y est répercutée).
|
||||||
*/
|
*/
|
||||||
export function MediaProvider({ children, cloudUser }: { children: ReactNode; cloudUser?: { id: string; email: string } }) {
|
/** Action refusée en mode découverte (la demande de compte est déjà affichée). */
|
||||||
|
export class GuestError extends Error {
|
||||||
|
constructor() {
|
||||||
|
super('')
|
||||||
|
this.name = 'GuestError'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export function MediaProvider({
|
||||||
|
children,
|
||||||
|
cloudUser,
|
||||||
|
guest = false,
|
||||||
|
onNeedAccount,
|
||||||
|
}: {
|
||||||
|
children: ReactNode
|
||||||
|
cloudUser?: { id: string; email: string }
|
||||||
|
/** Mode découverte : lecture seule, chaque modification ouvre la demande de compte */
|
||||||
|
guest?: boolean
|
||||||
|
onNeedAccount?: () => void
|
||||||
|
}) {
|
||||||
const [items, setItemsState] = useState<MediaItem[]>([])
|
const [items, setItemsState] = useState<MediaItem[]>([])
|
||||||
// Copie toujours à jour (deux « +1 » rapides ne doivent pas partir de la même version)
|
// Copie toujours à jour (deux « +1 » rapides ne doivent pas partir de la même version)
|
||||||
const itemsRef = useRef(items)
|
const itemsRef = useRef(items)
|
||||||
@@ -181,8 +206,8 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
|||||||
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 } = settingsRef.current
|
const { ratingScale, topCategories, accentColor, themeMode, challenges, statsHiddenMonths } = settingsRef.current
|
||||||
return { ratingScale, topCategories, accentColor, themeMode, notifPrefs, challenges }
|
return { ratingScale, topCategories, accentColor, themeMode, challenges, statsHiddenMonths }
|
||||||
},
|
},
|
||||||
applySettings: (patch) => updateSettingsRef.current(patch, true),
|
applySettings: (patch) => updateSettingsRef.current(patch, true),
|
||||||
itemsChanged: () => void reloadItems(),
|
itemsChanged: () => void reloadItems(),
|
||||||
@@ -223,7 +248,7 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
|||||||
}, [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)) 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 {
|
||||||
@@ -261,8 +286,15 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
|||||||
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 next = { ...current, ...patch, updatedAt: new Date().toISOString() }
|
||||||
|
// 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) {
|
||||||
|
const avg = seasonsAverage(next.seasonRatings, settingsRef.current.ratingScale)
|
||||||
|
if (avg != null) next.rating = avg
|
||||||
|
}
|
||||||
|
// Un revisionnage n'existe que sur un titre terminé
|
||||||
|
if (next.rewatch && next.status !== 'termine') delete next.rewatch
|
||||||
// Défis : on retient le jour où des épisodes sont cochés (ou décochés)
|
// Défis : on retient le jour où des épisodes sont cochés (ou décochés)
|
||||||
const delta = (patch.episodesWatched ?? current.episodesWatched) - current.episodesWatched
|
const delta = (patch.episodesWatched ?? current.episodesWatched) - current.episodesWatched + rewatchEpisodeDelta(current, next)
|
||||||
if (delta) next.episodeLog = logEpisodes(current.episodeLog, delta)
|
if (delta) next.episodeLog = logEpisodes(current.episodeLog, delta)
|
||||||
await save(next)
|
await save(next)
|
||||||
},
|
},
|
||||||
@@ -328,6 +360,12 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
|||||||
async (id: string, delta = 1) => {
|
async (id: string, delta = 1) => {
|
||||||
const item = itemsRef.current.find((i) => i.id === id)
|
const item = itemsRef.current.find((i) => i.id === id)
|
||||||
if (!item) return
|
if (!item) return
|
||||||
|
// Revisionnage : on avance sa propre progression (le premier visionnage ne bouge pas)
|
||||||
|
if (item.rewatch) {
|
||||||
|
const { patch } = rewatchEpisodesPatch(item, item.rewatch.episodes + delta)
|
||||||
|
await update(id, patch)
|
||||||
|
return undefined
|
||||||
|
}
|
||||||
let next = Math.max(0, item.episodesWatched + delta)
|
let next = Math.max(0, item.episodesWatched + delta)
|
||||||
const cap = episodeCap(item)
|
const cap = episodeCap(item)
|
||||||
if (cap) next = Math.min(next, cap)
|
if (cap) next = Math.min(next, cap)
|
||||||
@@ -338,6 +376,7 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
|||||||
// Statut, saison et dates (début au premier épisode, fin au dernier) suivent
|
// Statut, saison et dates (début au premier épisode, fin au dernier) suivent
|
||||||
const patch = episodesPatch(item, next)
|
const patch = episodesPatch(item, next)
|
||||||
await update(id, patch)
|
await update(id, patch)
|
||||||
|
return completionOf(item, item.episodesWatched, next)
|
||||||
},
|
},
|
||||||
[update],
|
[update],
|
||||||
)
|
)
|
||||||
@@ -462,8 +501,6 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
|||||||
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'
|
||||||
@@ -476,7 +513,6 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
|||||||
})
|
})
|
||||||
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()
|
||||||
},
|
},
|
||||||
@@ -506,18 +542,41 @@ export function MediaProvider({ children, cloudUser }: { children: ReactNode; cl
|
|||||||
}, [cloudUser, syncStatus, deviceData, reloadItems, setLists, updateSettings])
|
}, [cloudUser, syncStatus, deviceData, reloadItems, setLists, updateSettings])
|
||||||
|
|
||||||
// Avec un compte, TMDB passe par le serveur (la clé n'est jamais sur l'appareil)
|
// Avec un compte, TMDB passe par le serveur (la clé n'est jamais sur l'appareil)
|
||||||
const exposedSettings = useMemo<Settings>(() => (cloudUser ? { ...settings, tmdbKey: CLOUD_TMDB } : settings), [settings, cloudUser])
|
const exposedSettings = useMemo<Settings>(() => (cloudUser || guest ? { ...settings, tmdbKey: CLOUD_TMDB } : settings), [settings, cloudUser, guest])
|
||||||
|
|
||||||
const value = useMemo<MediaStore>(
|
const value = useMemo<MediaStore>(() => {
|
||||||
() => ({
|
const base: MediaStore = {
|
||||||
items, loading, error, settings: exposedSettings, updateSettings, add, update, remove, incrementEpisode, importItems, setTopList, clearAll,
|
items, loading, error, settings: exposedSettings, updateSettings, add, update, remove, incrementEpisode, importItems, setTopList, clearAll,
|
||||||
patchMany, updateMany, removeMany, restore, lists, createList, renameList, deleteList, toggleInList, mergeLists, account,
|
patchMany, updateMany, removeMany, restore, lists, createList, renameList, deleteList, toggleInList, mergeLists, account,
|
||||||
}),
|
guest, requestAccount: () => onNeedAccount?.(),
|
||||||
[
|
}
|
||||||
|
if (!guest) return base
|
||||||
|
// Mode découverte : rien n'est enregistré, chaque geste qui modifierait la bibliothèque propose un compte
|
||||||
|
const ask = () => onNeedAccount?.()
|
||||||
|
const noop = async () => {
|
||||||
|
ask()
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
...base,
|
||||||
|
add: async () => {
|
||||||
|
ask()
|
||||||
|
throw new GuestError()
|
||||||
|
},
|
||||||
|
update: noop, remove: noop, incrementEpisode: async () => {
|
||||||
|
ask()
|
||||||
|
return undefined
|
||||||
|
}, importItems: noop, setTopList: noop, clearAll: noop,
|
||||||
|
updateMany: noop, removeMany: noop, restore: noop, deleteList: noop, toggleInList: noop,
|
||||||
|
createList: (name: string) => {
|
||||||
|
ask()
|
||||||
|
return { id: '', name, createdAt: new Date().toISOString() } as CustomList
|
||||||
|
},
|
||||||
|
renameList: ask, mergeLists: ask,
|
||||||
|
}
|
||||||
|
}, [
|
||||||
items, loading, error, exposedSettings, updateSettings, add, update, remove, incrementEpisode, importItems, setTopList, clearAll,
|
items, loading, error, exposedSettings, updateSettings, add, update, remove, incrementEpisode, importItems, setTopList, clearAll,
|
||||||
patchMany, updateMany, removeMany, restore, lists, createList, renameList, deleteList, toggleInList, mergeLists, account,
|
patchMany, updateMany, removeMany, restore, lists, createList, renameList, deleteList, toggleInList, mergeLists, account, guest, onNeedAccount,
|
||||||
],
|
])
|
||||||
)
|
|
||||||
|
|
||||||
return <MediaContext.Provider value={value}>{children}</MediaContext.Provider>
|
return <MediaContext.Provider value={value}>{children}</MediaContext.Provider>
|
||||||
}
|
}
|
||||||
|
|||||||
+20
-19
@@ -57,8 +57,12 @@ export interface MediaItem {
|
|||||||
countries?: string[]
|
countries?: string[]
|
||||||
/** Dates de revisionnage (AAAA-MM-JJ), en plus du premier visionnage. */
|
/** Dates de revisionnage (AAAA-MM-JJ), en plus du premier visionnage. */
|
||||||
rewatchDates?: string[]
|
rewatchDates?: string[]
|
||||||
|
/** Revisionnage de série en cours : sa propre progression, le premier visionnage reste intact. */
|
||||||
|
rewatch?: Rewatch
|
||||||
/** Note moyenne du public sur 10 (TMDB ou AniList). */
|
/** Note moyenne du public sur 10 (TMDB ou AniList). */
|
||||||
publicRating?: number
|
publicRating?: number
|
||||||
|
/** Notes et avis par saison (« 1 », « 2 »…), pour les séries de plusieurs saisons. */
|
||||||
|
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>
|
||||||
|
|
||||||
@@ -66,6 +70,19 @@ export interface MediaItem {
|
|||||||
updatedAt: string // ISO
|
updatedAt: string // ISO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Revisionnage en cours (séries) : commencé le…, épisodes revus. */
|
||||||
|
export interface Rewatch {
|
||||||
|
startDate: string
|
||||||
|
episodes: number
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Note (sur 10) et avis d'une saison. */
|
||||||
|
export interface SeasonRating {
|
||||||
|
rating?: number
|
||||||
|
notes?: string
|
||||||
|
spoiler?: boolean
|
||||||
|
}
|
||||||
|
|
||||||
export type MediaInput = Omit<MediaItem, 'id' | 'createdAt' | 'updatedAt'>
|
export type MediaInput = Omit<MediaItem, 'id' | 'createdAt' | 'updatedAt'>
|
||||||
|
|
||||||
export type RatingScale = '5' | '10'
|
export type RatingScale = '5' | '10'
|
||||||
@@ -92,10 +109,10 @@ 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. */
|
||||||
|
statsHiddenMonths?: string[]
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Défi : « voir N films en 2026 », « 20 épisodes cette semaine »… */
|
/** Défi : « voir N films en 2026 », « 20 épisodes cette semaine »… */
|
||||||
@@ -114,22 +131,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
|
||||||
@@ -137,7 +138,7 @@ export interface CustomList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface BackupFile {
|
export interface BackupFile {
|
||||||
app: 'AzuuCine'
|
app: 'Kino'
|
||||||
version: 1
|
version: 1
|
||||||
exportedAt: string
|
exportedAt: string
|
||||||
settings: Omit<Settings, 'tmdbKey'>
|
settings: Omit<Settings, 'tmdbKey'>
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
// Outils partagés par les fonctions serveur d'AzuuCine (Deno / Supabase Edge Functions).
|
// Outils partagés par les fonctions serveur de Kino (Deno / Supabase Edge Functions).
|
||||||
|
|
||||||
const SUPABASE_URL = Deno.env.get('SUPABASE_URL') ?? ''
|
const SUPABASE_URL = Deno.env.get('SUPABASE_URL') ?? ''
|
||||||
const ANON_KEY = Deno.env.get('SUPABASE_ANON_KEY') ?? ''
|
const ANON_KEY = Deno.env.get('SUPABASE_ANON_KEY') ?? ''
|
||||||
|
|||||||
@@ -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) || 'AzuuCine',
|
|
||||||
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: 'AzuuCine', 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) || 'AzuuCine'
|
|
||||||
const user = s.actor && SAFE_USER.test(s.actor.username) ? s.actor.username : null
|
|
||||||
let body: string
|
|
||||||
let open = 'notifications'
|
|
||||||
let title = 'AzuuCine'
|
|
||||||
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) || 'AzuuCine'
|
|
||||||
break
|
|
||||||
case 'review_comment':
|
|
||||||
body = fill(tx.comment, { name })
|
|
||||||
title = clean(s.title, 80) || 'AzuuCine'
|
|
||||||
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
|
|
||||||
}
|
|
||||||
@@ -1,119 +0,0 @@
|
|||||||
// Notifications push (Web Push).
|
|
||||||
// - GET : renvoie la clé publique VAPID (pour que l'app puisse s'abonner).
|
|
||||||
// - POST : appelé par la base à chaque nouvelle notification (déclencheur + pg_net),
|
|
||||||
// avec l'en-tête « x-push-secret ». Prend les notifications non envoyées du compte,
|
|
||||||
// applique ses préférences, les regroupe et les envoie à tous ses appareils.
|
|
||||||
// Secrets (supabase secrets set …) : VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY, VAPID_SUBJECT, PUSH_WEBHOOK_SECRET.
|
|
||||||
// Voir supabase/PUSH_SETUP.md.
|
|
||||||
|
|
||||||
import { corsHeaders, json } from '../_shared/auth.ts'
|
|
||||||
import { isAllowedPushEndpoint, sendWebPush, type VapidKeys } from '../_shared/webpush.ts'
|
|
||||||
import { compose, type ClaimedItem } from './compose.ts'
|
|
||||||
|
|
||||||
const SUPABASE_URL = Deno.env.get('SUPABASE_URL') ?? ''
|
|
||||||
const SERVICE_KEY = Deno.env.get('SUPABASE_SERVICE_ROLE_KEY') ?? ''
|
|
||||||
const WEBHOOK_SECRET = Deno.env.get('PUSH_WEBHOOK_SECRET') ?? ''
|
|
||||||
const VAPID: VapidKeys = {
|
|
||||||
publicKey: (Deno.env.get('VAPID_PUBLIC_KEY') ?? '').trim(),
|
|
||||||
privateKey: (Deno.env.get('VAPID_PRIVATE_KEY') ?? '').trim(),
|
|
||||||
subject: (Deno.env.get('VAPID_SUBJECT') ?? '').trim(),
|
|
||||||
}
|
|
||||||
const vapidReady = /^B[A-Za-z0-9_-]{86}$/.test(VAPID.publicKey) && /^[A-Za-z0-9_-]{43}$/.test(VAPID.privateKey) && /^(mailto:|https:\/\/)/.test(VAPID.subject)
|
|
||||||
|
|
||||||
const enc = new TextEncoder()
|
|
||||||
|
|
||||||
/** Comparaison en temps constant (le secret ne peut pas être deviné caractère par caractère). */
|
|
||||||
async function sameSecret(given: string, expected: string): Promise<boolean> {
|
|
||||||
if (!given || expected.length < 32 || given.length > 512) return false
|
|
||||||
const key = await crypto.subtle.importKey('raw', crypto.getRandomValues(new Uint8Array(32)), { name: 'HMAC', hash: 'SHA-256' }, false, ['sign'])
|
|
||||||
const [a, b] = await Promise.all([crypto.subtle.sign('HMAC', key, enc.encode(given)), crypto.subtle.sign('HMAC', key, enc.encode(expected))])
|
|
||||||
const x = new Uint8Array(a)
|
|
||||||
const y = new Uint8Array(b)
|
|
||||||
let diff = 0
|
|
||||||
for (let i = 0; i < x.length; i++) diff |= x[i] ^ y[i]
|
|
||||||
return diff === 0
|
|
||||||
}
|
|
||||||
|
|
||||||
async function rpc<T>(name: string, args: Record<string, unknown>): Promise<T> {
|
|
||||||
const res = await fetch(`${SUPABASE_URL}/rest/v1/rpc/${name}`, {
|
|
||||||
method: 'POST',
|
|
||||||
headers: { apikey: SERVICE_KEY, Authorization: `Bearer ${SERVICE_KEY}`, 'Content-Type': 'application/json' },
|
|
||||||
body: JSON.stringify(args),
|
|
||||||
})
|
|
||||||
if (!res.ok) throw new Error(`${name}: ${res.status}`)
|
|
||||||
const text = await res.text()
|
|
||||||
return (text ? JSON.parse(text) : null) as T
|
|
||||||
}
|
|
||||||
|
|
||||||
interface Sub {
|
|
||||||
endpoint: string
|
|
||||||
p256dh: string
|
|
||||||
auth: string
|
|
||||||
lang: string
|
|
||||||
}
|
|
||||||
|
|
||||||
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
|
|
||||||
|
|
||||||
Deno.serve(async (req) => {
|
|
||||||
if (req.method === 'OPTIONS') return new Response(null, { status: 204, headers: corsHeaders(req) })
|
|
||||||
|
|
||||||
// Clé publique : elle n'a rien de secret (elle est envoyée au service push du navigateur)
|
|
||||||
if (req.method === 'GET') {
|
|
||||||
if (!vapidReady) return json(req, 503, { error: 'not-configured' })
|
|
||||||
return json(req, 200, { publicKey: VAPID.publicKey }, { 'Cache-Control': 'public, max-age=3600' })
|
|
||||||
}
|
|
||||||
if (req.method !== 'POST') return json(req, 405, { error: 'method' })
|
|
||||||
|
|
||||||
// Appel réservé à la base de données
|
|
||||||
if (!WEBHOOK_SECRET || !(await sameSecret(req.headers.get('x-push-secret') ?? '', WEBHOOK_SECRET))) {
|
|
||||||
return json(req, 401, { error: 'auth' })
|
|
||||||
}
|
|
||||||
if (!vapidReady || !SERVICE_KEY || !SUPABASE_URL) return json(req, 503, { error: 'not-configured' })
|
|
||||||
|
|
||||||
let userId = ''
|
|
||||||
try {
|
|
||||||
const body = (await req.json()) as { user_id?: unknown }
|
|
||||||
if (typeof body.user_id === 'string' && UUID.test(body.user_id)) userId = body.user_id
|
|
||||||
} catch {
|
|
||||||
/* corps invalide */
|
|
||||||
}
|
|
||||||
if (!userId) return json(req, 400, { error: 'user' })
|
|
||||||
|
|
||||||
let claim: { subs?: Sub[]; items?: ClaimedItem[] }
|
|
||||||
try {
|
|
||||||
claim = (await rpc<typeof claim>('push_claim', { p_user: userId })) ?? {}
|
|
||||||
} catch {
|
|
||||||
return json(req, 502, { error: 'claim' })
|
|
||||||
}
|
|
||||||
const subs = (claim.subs ?? []).filter((s) => isAllowedPushEndpoint(s.endpoint)).slice(0, 10)
|
|
||||||
const items = (claim.items ?? []).slice(0, 100)
|
|
||||||
if (!subs.length || !items.length) return json(req, 200, { sent: 0 })
|
|
||||||
|
|
||||||
const gone: string[] = []
|
|
||||||
const ok: string[] = []
|
|
||||||
let sent = 0
|
|
||||||
await Promise.all(
|
|
||||||
subs.map(async (s) => {
|
|
||||||
const messages = compose(items, s.lang).slice(0, 4)
|
|
||||||
let alive = true
|
|
||||||
for (const m of messages) {
|
|
||||||
if (!alive) break
|
|
||||||
const payload = JSON.stringify({ title: m.title, body: m.body, tag: m.tag, url: `/?open=${encodeURIComponent(m.open)}` })
|
|
||||||
const r = await sendWebPush(s, payload, VAPID, 24 * 3600, m.tag.replace(/[^A-Za-z0-9_-]/g, '').slice(0, 32))
|
|
||||||
if (r === 'gone') {
|
|
||||||
gone.push(s.endpoint)
|
|
||||||
alive = false
|
|
||||||
} else if (r === 'ok') {
|
|
||||||
sent++
|
|
||||||
if (!ok.includes(s.endpoint)) ok.push(s.endpoint)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}),
|
|
||||||
)
|
|
||||||
try {
|
|
||||||
await rpc('push_done', { p_user: userId, p_gone: gone, p_ok: ok })
|
|
||||||
} catch {
|
|
||||||
/* le ménage se fera au prochain envoi */
|
|
||||||
}
|
|
||||||
return json(req, 200, { sent, gone: gone.length })
|
|
||||||
})
|
|
||||||
@@ -1,238 +0,0 @@
|
|||||||
// Textes courts des notifications push, dans la langue choisie sur l'appareil à l'inscription.
|
|
||||||
// Variables : {name} (auteur), {emoji}, {n} (numéro d'épisode), {count}, {list} (nom de liste).
|
|
||||||
|
|
||||||
export interface PushTexts {
|
|
||||||
followRequest: string
|
|
||||||
newFollower: string
|
|
||||||
followAccepted: string
|
|
||||||
reaction: string
|
|
||||||
episode: string
|
|
||||||
season: string
|
|
||||||
episodesTitle: string
|
|
||||||
many: string
|
|
||||||
comment: string
|
|
||||||
listInvite: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export const MESSAGES: Record<string, PushTexts> = {
|
|
||||||
fr: {
|
|
||||||
followRequest: '{name} veut s’abonner à toi',
|
|
||||||
newFollower: '{name} te suit désormais',
|
|
||||||
followAccepted: '{name} a accepté ta demande d’abonnement',
|
|
||||||
reaction: '{name} a réagi {emoji} à ton avis',
|
|
||||||
episode: 'Épisode {n} disponible',
|
|
||||||
season: 'Nouvelle saison disponible',
|
|
||||||
episodesTitle: 'Nouveaux épisodes',
|
|
||||||
many: 'Nouvelles notifications : {count}',
|
|
||||||
comment: '{name} a commenté ton avis',
|
|
||||||
listInvite: "{name} t'invite dans la liste « {list} »",
|
|
||||||
},
|
|
||||||
en: {
|
|
||||||
followRequest: '{name} wants to follow you',
|
|
||||||
newFollower: '{name} is now following you',
|
|
||||||
followAccepted: '{name} accepted your follow request',
|
|
||||||
reaction: '{name} reacted {emoji} to your review',
|
|
||||||
episode: 'Episode {n} is out',
|
|
||||||
season: 'New season is out',
|
|
||||||
episodesTitle: 'New episodes',
|
|
||||||
many: 'New notifications: {count}',
|
|
||||||
comment: '{name} commented on your review',
|
|
||||||
listInvite: '{name} invited you to the list “{list}”',
|
|
||||||
},
|
|
||||||
es: {
|
|
||||||
followRequest: '{name} quiere seguirte',
|
|
||||||
newFollower: '{name} ahora te sigue',
|
|
||||||
followAccepted: '{name} aceptó tu solicitud de seguimiento',
|
|
||||||
reaction: '{name} reaccionó {emoji} a tu reseña',
|
|
||||||
episode: 'Episodio {n} disponible',
|
|
||||||
season: 'Nueva temporada disponible',
|
|
||||||
episodesTitle: 'Nuevos episodios',
|
|
||||||
many: 'Notificaciones nuevas: {count}',
|
|
||||||
comment: '{name} comentó tu reseña',
|
|
||||||
listInvite: '{name} te invitó a la lista «{list}»',
|
|
||||||
},
|
|
||||||
it: {
|
|
||||||
followRequest: '{name} vuole seguirti',
|
|
||||||
newFollower: '{name} ora ti segue',
|
|
||||||
followAccepted: '{name} ha accettato la tua richiesta',
|
|
||||||
reaction: '{name} ha reagito {emoji} alla tua recensione',
|
|
||||||
episode: 'Episodio {n} disponibile',
|
|
||||||
season: 'Nuova stagione disponibile',
|
|
||||||
episodesTitle: 'Nuovi episodi',
|
|
||||||
many: 'Nuove notifiche: {count}',
|
|
||||||
comment: '{name} ha commentato la tua recensione',
|
|
||||||
listInvite: '{name} ti ha invitato nella lista «{list}»',
|
|
||||||
},
|
|
||||||
de: {
|
|
||||||
followRequest: '{name} möchte dir folgen',
|
|
||||||
newFollower: '{name} folgt dir jetzt',
|
|
||||||
followAccepted: '{name} hat deine Anfrage angenommen',
|
|
||||||
reaction: '{name} hat mit {emoji} auf deine Bewertung reagiert',
|
|
||||||
episode: 'Folge {n} ist verfügbar',
|
|
||||||
season: 'Neue Staffel verfügbar',
|
|
||||||
episodesTitle: 'Neue Folgen',
|
|
||||||
many: 'Neue Benachrichtigungen: {count}',
|
|
||||||
comment: '{name} hat deine Bewertung kommentiert',
|
|
||||||
listInvite: '{name} hat dich zur Liste „{list}“ eingeladen',
|
|
||||||
},
|
|
||||||
pt: {
|
|
||||||
followRequest: '{name} quer seguir você',
|
|
||||||
newFollower: '{name} agora segue você',
|
|
||||||
followAccepted: '{name} aceitou seu pedido para seguir',
|
|
||||||
reaction: '{name} reagiu {emoji} à sua avaliação',
|
|
||||||
episode: 'Episódio {n} disponível',
|
|
||||||
season: 'Nova temporada disponível',
|
|
||||||
episodesTitle: 'Novos episódios',
|
|
||||||
many: 'Novas notificações: {count}',
|
|
||||||
comment: '{name} comentou sua avaliação',
|
|
||||||
listInvite: '{name} convidou você para a lista “{list}”',
|
|
||||||
},
|
|
||||||
nl: {
|
|
||||||
followRequest: '{name} wil je volgen',
|
|
||||||
newFollower: '{name} volgt je nu',
|
|
||||||
followAccepted: '{name} heeft je volgverzoek geaccepteerd',
|
|
||||||
reaction: '{name} reageerde {emoji} op je recensie',
|
|
||||||
episode: 'Aflevering {n} is uit',
|
|
||||||
season: 'Nieuw seizoen beschikbaar',
|
|
||||||
episodesTitle: 'Nieuwe afleveringen',
|
|
||||||
many: 'Nieuwe meldingen: {count}',
|
|
||||||
comment: '{name} reageerde op je recensie',
|
|
||||||
listInvite: '{name} nodigde je uit voor de lijst ‘{list}’',
|
|
||||||
},
|
|
||||||
pl: {
|
|
||||||
followRequest: '{name} chce cię obserwować',
|
|
||||||
newFollower: '{name} obserwuje cię',
|
|
||||||
followAccepted: '{name} zaakceptował(a) twoją prośbę',
|
|
||||||
reaction: '{name} zareagował(a) {emoji} na twoją recenzję',
|
|
||||||
episode: 'Odcinek {n} jest dostępny',
|
|
||||||
season: 'Nowy sezon jest dostępny',
|
|
||||||
episodesTitle: 'Nowe odcinki',
|
|
||||||
many: 'Nowe powiadomienia: {count}',
|
|
||||||
comment: '{name} skomentował(a) twoją recenzję',
|
|
||||||
listInvite: '{name} zaprasza cię do listy „{list}”',
|
|
||||||
},
|
|
||||||
ru: {
|
|
||||||
followRequest: '{name} хочет подписаться на вас',
|
|
||||||
newFollower: '{name} теперь подписан(а) на вас',
|
|
||||||
followAccepted: '{name} принял(а) ваш запрос на подписку',
|
|
||||||
reaction: '{name} отреагировал(а) {emoji} на ваш отзыв',
|
|
||||||
episode: 'Вышла серия {n}',
|
|
||||||
season: 'Вышел новый сезон',
|
|
||||||
episodesTitle: 'Новые серии',
|
|
||||||
many: 'Новые уведомления: {count}',
|
|
||||||
comment: '{name} прокомментировал(а) ваш отзыв',
|
|
||||||
listInvite: '{name} приглашает вас в список «{list}»',
|
|
||||||
},
|
|
||||||
tr: {
|
|
||||||
followRequest: '{name} seni takip etmek istiyor',
|
|
||||||
newFollower: '{name} artık seni takip ediyor',
|
|
||||||
followAccepted: '{name} takip isteğini kabul etti',
|
|
||||||
reaction: '{name} incelemene {emoji} tepkisi verdi',
|
|
||||||
episode: '{n}. bölüm yayında',
|
|
||||||
season: 'Yeni sezon yayında',
|
|
||||||
episodesTitle: 'Yeni bölümler',
|
|
||||||
many: 'Yeni bildirimler: {count}',
|
|
||||||
comment: '{name} incelemene yorum yaptı',
|
|
||||||
listInvite: '{name} seni “{list}” listesine davet etti',
|
|
||||||
},
|
|
||||||
ar: {
|
|
||||||
followRequest: '{name} يريد متابعتك',
|
|
||||||
newFollower: '{name} يتابعك الآن',
|
|
||||||
followAccepted: '{name} قبل طلب المتابعة',
|
|
||||||
reaction: '{name} تفاعل {emoji} مع مراجعتك',
|
|
||||||
episode: 'الحلقة {n} متاحة',
|
|
||||||
season: 'موسم جديد متاح',
|
|
||||||
episodesTitle: 'حلقات جديدة',
|
|
||||||
many: 'إشعارات جديدة: {count}',
|
|
||||||
comment: '{name} علّق على مراجعتك',
|
|
||||||
listInvite: '{name} يدعوك إلى القائمة «{list}»',
|
|
||||||
},
|
|
||||||
hi: {
|
|
||||||
followRequest: '{name} आपको फ़ॉलो करना चाहते हैं',
|
|
||||||
newFollower: '{name} अब आपको फ़ॉलो करते हैं',
|
|
||||||
followAccepted: '{name} ने आपका फ़ॉलो अनुरोध स्वीकार किया',
|
|
||||||
reaction: '{name} ने आपकी समीक्षा पर {emoji} प्रतिक्रिया दी',
|
|
||||||
episode: 'एपिसोड {n} उपलब्ध है',
|
|
||||||
season: 'नया सीज़न उपलब्ध है',
|
|
||||||
episodesTitle: 'नए एपिसोड',
|
|
||||||
many: 'नई सूचनाएँ: {count}',
|
|
||||||
comment: '{name} ने आपकी समीक्षा पर टिप्पणी की',
|
|
||||||
listInvite: '{name} ने आपको सूची “{list}” में आमंत्रित किया',
|
|
||||||
},
|
|
||||||
id: {
|
|
||||||
followRequest: '{name} ingin mengikutimu',
|
|
||||||
newFollower: '{name} sekarang mengikutimu',
|
|
||||||
followAccepted: '{name} menerima permintaan mengikutimu',
|
|
||||||
reaction: '{name} bereaksi {emoji} pada ulasanmu',
|
|
||||||
episode: 'Episode {n} sudah tersedia',
|
|
||||||
season: 'Musim baru sudah tersedia',
|
|
||||||
episodesTitle: 'Episode baru',
|
|
||||||
many: 'Notifikasi baru: {count}',
|
|
||||||
comment: '{name} mengomentari ulasanmu',
|
|
||||||
listInvite: '{name} mengundangmu ke daftar “{list}”',
|
|
||||||
},
|
|
||||||
th: {
|
|
||||||
followRequest: '{name} ต้องการติดตามคุณ',
|
|
||||||
newFollower: '{name} ติดตามคุณแล้ว',
|
|
||||||
followAccepted: '{name} ยอมรับคำขอติดตามของคุณแล้ว',
|
|
||||||
reaction: '{name} แสดงความรู้สึก {emoji} ต่อรีวิวของคุณ',
|
|
||||||
episode: 'ตอนที่ {n} มาแล้ว',
|
|
||||||
season: 'ซีซันใหม่มาแล้ว',
|
|
||||||
episodesTitle: 'ตอนใหม่',
|
|
||||||
many: 'การแจ้งเตือนใหม่: {count}',
|
|
||||||
comment: '{name} แสดงความคิดเห็นในรีวิวของคุณ',
|
|
||||||
listInvite: '{name} เชิญคุณเข้าร่วมรายการ “{list}”',
|
|
||||||
},
|
|
||||||
vi: {
|
|
||||||
followRequest: '{name} muốn theo dõi bạn',
|
|
||||||
newFollower: '{name} đã theo dõi bạn',
|
|
||||||
followAccepted: '{name} đã chấp nhận yêu cầu theo dõi',
|
|
||||||
reaction: '{name} đã bày tỏ {emoji} với đánh giá của bạn',
|
|
||||||
episode: 'Tập {n} đã ra mắt',
|
|
||||||
season: 'Mùa mới đã ra mắt',
|
|
||||||
episodesTitle: 'Tập mới',
|
|
||||||
many: 'Thông báo mới: {count}',
|
|
||||||
comment: '{name} đã bình luận về đánh giá của bạn',
|
|
||||||
listInvite: '{name} mời bạn vào danh sách “{list}”',
|
|
||||||
},
|
|
||||||
zh: {
|
|
||||||
followRequest: '{name} 想要关注你',
|
|
||||||
newFollower: '{name} 关注了你',
|
|
||||||
followAccepted: '{name} 接受了你的关注请求',
|
|
||||||
reaction: '{name} 对你的评论回应了 {emoji}',
|
|
||||||
episode: '第 {n} 集已上线',
|
|
||||||
season: '新一季已上线',
|
|
||||||
episodesTitle: '新剧集',
|
|
||||||
many: '新通知:{count}',
|
|
||||||
comment: '{name} 评论了你的影评',
|
|
||||||
listInvite: '{name} 邀请你加入列表「{list}」',
|
|
||||||
},
|
|
||||||
ja: {
|
|
||||||
followRequest: '{name}さんがあなたをフォローしたいと言っています',
|
|
||||||
newFollower: '{name}さんがあなたをフォローしました',
|
|
||||||
followAccepted: '{name}さんがフォローリクエストを承認しました',
|
|
||||||
reaction: '{name}さんがあなたのレビューに{emoji}でリアクションしました',
|
|
||||||
episode: '第{n}話が配信されました',
|
|
||||||
season: '新シーズンが配信されました',
|
|
||||||
episodesTitle: '新しいエピソード',
|
|
||||||
many: '新しい通知:{count}',
|
|
||||||
comment: '{name}さんがあなたのレビューにコメントしました',
|
|
||||||
listInvite: '{name}さんがリスト「{list}」にあなたを招待しました',
|
|
||||||
},
|
|
||||||
ko: {
|
|
||||||
followRequest: '{name}님이 팔로우를 요청했어요',
|
|
||||||
newFollower: '{name}님이 회원님을 팔로우해요',
|
|
||||||
followAccepted: '{name}님이 팔로우 요청을 수락했어요',
|
|
||||||
reaction: '{name}님이 리뷰에 {emoji} 반응을 남겼어요',
|
|
||||||
episode: '{n}화가 공개됐어요',
|
|
||||||
season: '새 시즌이 공개됐어요',
|
|
||||||
episodesTitle: '새 에피소드',
|
|
||||||
many: '새 알림: {count}',
|
|
||||||
comment: '{name}님이 리뷰에 댓글을 남겼어요',
|
|
||||||
listInvite: "{name}님이 '{list}' 리스트에 초대했어요",
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
export function fill(text: string, vars: Record<string, string | number>): string {
|
|
||||||
return text.replace(/\{(\w+)\}/g, (m, k: string) => (k in vars ? String(vars[k]) : m))
|
|
||||||
}
|
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
// Proxy TMDB : l'app appelle cette fonction, qui ajoute TA clé TMDB côté serveur.
|
// Proxy TMDB : l'app appelle cette fonction, qui ajoute TA clé TMDB côté serveur.
|
||||||
// La clé est un « secret » Supabase (supabase secrets set TMDB_API_KEY=...) : elle n'est
|
// La clé est un « secret » Supabase (supabase secrets set TMDB_API_KEY=...) : elle n'est
|
||||||
// jamais dans le code, jamais envoyée au navigateur, et seuls les comptes connectés peuvent s'en servir.
|
// jamais dans le code, jamais envoyée au navigateur. Les visiteurs sans compte y ont droit aussi, avec une limite plus basse par IP.
|
||||||
|
|
||||||
import { corsHeaders, getUserId, json, rateLimited } from '../_shared/auth.ts'
|
import { corsHeaders, getUserId, json, rateLimited } from '../_shared/auth.ts'
|
||||||
|
|
||||||
const TMDB_KEY = Deno.env.get('TMDB_API_KEY') ?? ''
|
const TMDB_KEY = Deno.env.get('TMDB_API_KEY') ?? ''
|
||||||
|
|
||||||
// Mêmes adresses que dans l'app — tout le reste est refusé
|
// Mêmes adresses que dans l'app — tout le reste est refusé
|
||||||
const PATHS = /^\/(search\/multi|configuration|discover\/(movie|tv)|(movie|tv)\/\d{1,10}(\/recommendations|\/season\/\d{1,3})?|find\/(tt)?\d{1,10})$/
|
const 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})$/
|
||||||
|
|
||||||
// Paramètres autorisés et forme de leur valeur
|
// Paramètres autorisés et forme de leur valeur
|
||||||
const PARAMS: Record<string, RegExp> = {
|
const PARAMS: Record<string, RegExp> = {
|
||||||
@@ -16,7 +16,7 @@ const PARAMS: Record<string, RegExp> = {
|
|||||||
include_adult: /^false$/,
|
include_adult: /^false$/,
|
||||||
page: /^[1-9]\d?$/,
|
page: /^[1-9]\d?$/,
|
||||||
// Une ou plusieurs sous-réponses connues, séparées par des virgules (ex. « credits,watch/providers » pour la fiche)
|
// Une ou plusieurs sous-réponses connues, séparées par des virgules (ex. « credits,watch/providers » pour la fiche)
|
||||||
append_to_response: /^(watch\/providers|credits|release_dates)(,(watch\/providers|credits|release_dates)){0,2}$/,
|
append_to_response: /^(watch\/providers|credits|release_dates|combined_credits)(,(watch\/providers|credits|release_dates|combined_credits)){0,2}$/,
|
||||||
region: /^[A-Z]{2}$/,
|
region: /^[A-Z]{2}$/,
|
||||||
'release_date.gte': /^\d{4}-\d{2}-\d{2}$/,
|
'release_date.gte': /^\d{4}-\d{2}-\d{2}$/,
|
||||||
'release_date.lte': /^\d{4}-\d{2}-\d{2}$/,
|
'release_date.lte': /^\d{4}-\d{2}-\d{2}$/,
|
||||||
@@ -26,7 +26,7 @@ const PARAMS: Record<string, RegExp> = {
|
|||||||
sort_by: /^popularity\.desc$/,
|
sort_by: /^popularity\.desc$/,
|
||||||
with_origin_country: /^[A-Z]{2}(\|[A-Z]{2}){0,20}$/,
|
with_origin_country: /^[A-Z]{2}(\|[A-Z]{2}){0,20}$/,
|
||||||
without_genres: /^\d{1,6}(\|\d{1,6}){0,10}$/,
|
without_genres: /^\d{1,6}(\|\d{1,6}){0,10}$/,
|
||||||
// Import TV Time / IMDb : /find/{id}
|
// Import TV Time / IMDb : /find/{id} — et pages des personnes : /search/person, /person/{id}
|
||||||
external_source: /^(tvdb_id|imdb_id)$/,
|
external_source: /^(tvdb_id|imdb_id)$/,
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,9 +35,14 @@ Deno.serve(async (req) => {
|
|||||||
if (req.method !== 'GET') return json(req, 405, { error: 'method' })
|
if (req.method !== 'GET') return json(req, 405, { error: 'method' })
|
||||||
if (!TMDB_KEY) return json(req, 500, { error: 'TMDB_API_KEY manquante' })
|
if (!TMDB_KEY) return json(req, 500, { error: 'TMDB_API_KEY manquante' })
|
||||||
|
|
||||||
|
// Compte connecté : 600 requêtes / 10 min. Visiteur sans compte (mode découverte) : 200 / 10 min par adresse IP.
|
||||||
const userId = await getUserId(req)
|
const userId = await getUserId(req)
|
||||||
if (!userId) return json(req, 401, { error: 'auth' })
|
if (userId) {
|
||||||
if (rateLimited(userId, 600, 10 * 60_000)) return json(req, 429, { error: 'rate' })
|
if (rateLimited(userId, 600, 10 * 60_000)) return json(req, 429, { error: 'rate' })
|
||||||
|
} else {
|
||||||
|
const ip = (req.headers.get('x-forwarded-for') ?? '').split(',')[0].trim() || req.headers.get('cf-connecting-ip') || 'inconnu'
|
||||||
|
if (rateLimited(`ip:${ip.slice(0, 64)}`, 200, 10 * 60_000)) return json(req, 429, { error: 'rate' })
|
||||||
|
}
|
||||||
|
|
||||||
const url = new URL(req.url)
|
const url = new URL(req.url)
|
||||||
const path = url.searchParams.get('path') ?? ''
|
const path = url.searchParams.get('path') ?? ''
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
-- Kino — suppression du système de notifications (22 novembre 2026). Idempotent.
|
||||||
|
-- Plus aucune notification n'est créée ni envoyée (cloche et push). Les tables restent en place,
|
||||||
|
-- vides, car d'autres fonctions y font encore référence (listes partagées…).
|
||||||
|
|
||||||
|
-- Envoi push à chaque notification, et notifications automatiques (abonnements, réactions)
|
||||||
|
drop trigger if exists notifications_push on public.notifications;
|
||||||
|
drop trigger if exists follows_notify on public.follows;
|
||||||
|
drop trigger if exists reactions_notify on public.review_reactions;
|
||||||
|
|
||||||
|
-- Commentaires, invitations… appelaient azuu_notify : elle ne fait plus rien
|
||||||
|
create or replace function public.azuu_notify(p_user uuid, p_kind text, p_actor uuid, p_item text default null, p_emoji text default null)
|
||||||
|
returns void language plpgsql security definer set search_path = '' as $$
|
||||||
|
begin
|
||||||
|
return;
|
||||||
|
end $$;
|
||||||
|
|
||||||
|
-- Nouveaux épisodes : plus de notification
|
||||||
|
create or replace function public.add_episode_notifications(p_list jsonb)
|
||||||
|
returns integer language plpgsql security definer set search_path = '' as $$
|
||||||
|
begin
|
||||||
|
return 0;
|
||||||
|
end $$;
|
||||||
|
|
||||||
|
-- Plus aucun appareil ne peut s'inscrire aux notifications push
|
||||||
|
revoke execute on function public.register_push_subscription(text, text, text, text, text) from public, anon, authenticated;
|
||||||
|
|
||||||
|
-- Données devenues inutiles : appareils inscrits et notifications déjà reçues
|
||||||
|
delete from public.push_subscriptions;
|
||||||
|
delete from public.notifications;
|
||||||
+3
-10
@@ -3,10 +3,6 @@ import react from '@vitejs/plugin-react'
|
|||||||
import tailwindcss from '@tailwindcss/vite'
|
import tailwindcss from '@tailwindcss/vite'
|
||||||
import { VitePWA } from 'vite-plugin-pwa'
|
import { VitePWA } from 'vite-plugin-pwa'
|
||||||
|
|
||||||
// Gestion des notifications push (public/push-sw.js), ajoutée au service worker généré.
|
|
||||||
// La date de build dans l'adresse fait changer sw.js à chaque version : push-sw.js est toujours rechargé.
|
|
||||||
const pushSwVersion = Date.now().toString(36)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Politique de sécurité du contenu (CSP) : le navigateur n'exécute que les scripts de l'app,
|
* Politique de sécurité du contenu (CSP) : le navigateur n'exécute que les scripts de l'app,
|
||||||
* et ne contacte que TMDB / AniList. Même si une donnée piégée arrivait à s'afficher,
|
* et ne contacte que TMDB / AniList. Même si une donnée piégée arrivait à s'afficher,
|
||||||
@@ -18,7 +14,7 @@ export const buildCsp = (supabaseUrl = '') => [
|
|||||||
"style-src 'self' 'unsafe-inline'",
|
"style-src 'self' 'unsafe-inline'",
|
||||||
`img-src 'self' data: blob: https://image.tmdb.org https://s4.anilist.co${supabaseUrl ? ' ' + supabaseUrl : ''}`,
|
`img-src 'self' data: blob: https://image.tmdb.org https://s4.anilist.co${supabaseUrl ? ' ' + supabaseUrl : ''}`,
|
||||||
"font-src 'self'",
|
"font-src 'self'",
|
||||||
`connect-src 'self' https://api.themoviedb.org https://graphql.anilist.co https://image.tmdb.org https://s4.anilist.co${supabaseUrl ? ' ' + supabaseUrl : ''}`,
|
`connect-src 'self' https://api.themoviedb.org https://graphql.anilist.co https://image.tmdb.org https://s4.anilist.co https://api.pwnedpasswords.com${supabaseUrl ? ' ' + supabaseUrl : ''}`,
|
||||||
"manifest-src 'self'",
|
"manifest-src 'self'",
|
||||||
"worker-src 'self'",
|
"worker-src 'self'",
|
||||||
"media-src 'none'",
|
"media-src 'none'",
|
||||||
@@ -59,8 +55,6 @@ function contentSecurityPolicy(supabaseUrl: string): Plugin {
|
|||||||
'# Le service worker doit toujours être revérifié pour que les mises à jour arrivent',
|
'# Le service worker doit toujours être revérifié pour que les mises à jour arrivent',
|
||||||
'/sw.js',
|
'/sw.js',
|
||||||
' Cache-Control: no-cache',
|
' Cache-Control: no-cache',
|
||||||
'/push-sw.js',
|
|
||||||
' Cache-Control: no-cache',
|
|
||||||
'',
|
'',
|
||||||
].join('\n'),
|
].join('\n'),
|
||||||
})
|
})
|
||||||
@@ -96,8 +90,8 @@ export default defineConfig(({ mode }) => {
|
|||||||
registerType: 'autoUpdate',
|
registerType: 'autoUpdate',
|
||||||
includeAssets: ['icons/apple-touch-icon.png', 'icons/favicon.svg'],
|
includeAssets: ['icons/apple-touch-icon.png', 'icons/favicon.svg'],
|
||||||
manifest: {
|
manifest: {
|
||||||
name: 'AzuuCine',
|
name: 'Kino',
|
||||||
short_name: 'AzuuCine',
|
short_name: 'Kino',
|
||||||
description: 'Mon journal privé de films, séries, animes et dramas',
|
description: 'Mon journal privé de films, séries, animes et dramas',
|
||||||
lang: 'fr',
|
lang: 'fr',
|
||||||
theme_color: '#0a0a0a',
|
theme_color: '#0a0a0a',
|
||||||
@@ -113,7 +107,6 @@ export default defineConfig(({ mode }) => {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
workbox: {
|
workbox: {
|
||||||
importScripts: [`push-sw.js?v=${pushSwVersion}`],
|
|
||||||
globPatterns: ['**/*.{js,css,html,svg,png,ico,webmanifest,woff2}'],
|
globPatterns: ['**/*.{js,css,html,svg,png,ico,webmanifest,woff2}'],
|
||||||
// L'app vit entièrement sur « / » (routes après le #) : toute autre adresse reçoit la page 404 du serveur
|
// L'app vit entièrement sur « / » (routes après le #) : toute autre adresse reçoit la page 404 du serveur
|
||||||
navigateFallbackAllowlist: [/^\/(?:index\.html)?(?:\?.*)?$/],
|
navigateFallbackAllowlist: [/^\/(?:index\.html)?(?:\?.*)?$/],
|
||||||
|
|||||||
Reference in new issue
Block a user