Administration retirée : signalements et bugs par e-mail, base allégée
deploy / deploy (push) Successful in 46s
deploy / deploy (push) Successful in 46s
- Écran d'administration supprimé (page, onglets de modération, alertes, appels admin). - « Signaler » (avis, commentaire, profil, liste) et « Signaler un bug » ouvrent un e-mail pré-rempli vers contact@bobinoo.org (motifs en rappel, références du contenu ; version et appareil pour un bug). - Remontée automatique des erreurs supprimée. À la place : une ancienne version ouverte qui ne trouve plus un fichier après une mise à jour se recharge d'elle-même (« Importing a module script failed »). - Base (20261130120000_remove_admin, appliquée) : 20 fonctions et 5 tables d'administration supprimées (admins, reports, bug_reports, client_errors, moderation_log) ; get_profile, get_review_comments, delete_review_comment, delete_shared_list et la garde de suspension réécrites sans « admin ». Suspension d'un compte : à la main dans Supabase. - 116 textes inutilisés retirés dans chacune des 18 langues. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
38 files changed
+294
-4003
No files matched your search
@@ -31,25 +31,24 @@ npm run build # build de prod
|
||||
- **Secrets (JAMAIS dans le dépôt, jamais dans .env/VITE_)** : la clé TMDB et la `service_role` vivent dans les **secrets Supabase** / Edge Functions. Ne jamais les committer ni les coller dans le chat.
|
||||
- **Migrations** : `supabase/migrations/*.sql`. ⚠️ L'outil MCP `apply_migration` **tombe souvent en timeout** sur ce projet (création de fonctions). **Appliquer le SQL en le collant dans Supabase → SQL Editor → Run.** Tous les fichiers sont écrits **idempotents** (`create or replace`, `if not exists`, `drop ... if exists`).
|
||||
- Edge functions : `tmdb` (proxy pour cacher la clé TMDB), `ratings` (notes Trakt : moyenne, votes, répartition 1→10 des films et séries, secret `TRAKT_CLIENT_ID`, app Trakt du compte bobinoo26 ; réserve partagée `title_ratings` 24 h + correspondance TMDB → Trakt, lue/écrite avec la clé de service, aucune règle d'accès pour les clients), `delete-account`. Storage bucket `profile-media`. Secret `ALLOWED_ORIGINS` = `https://bobinoo.org,https://www.bobinoo.org`.
|
||||
- Compte **admin** = Romain, user id `4529202d-618c-4b40-ab13-228eef3f71ad` (table `public.admins`).
|
||||
|
||||
### Règles de sécurité Supabase (NON négociables — « aucune faille »)
|
||||
- **RLS activé partout** ; chaque utilisateur ne voit que ses données.
|
||||
- Toute fonction exposée est **`security definer` + `set search_path = ''`** et **vérifie les droits en interne** (`auth.uid()`, `can_view()`, `is_admin()`), puis `revoke ... from public, anon` / `grant execute ... to authenticated`.
|
||||
- Toute fonction exposée est **`security definer` + `set search_path = ''`** et **vérifie les droits en interne** (`auth.uid()`, `can_view()`), puis `revoke ... from public, anon` / `grant execute ... to authenticated`.
|
||||
- La clé TMDB ne doit jamais fuiter côté client (passe par l'edge function `tmdb`).
|
||||
|
||||
## Architecture client (repères)
|
||||
- `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`, `api.ts` (`cloudFetch`).
|
||||
- `src/lib/cloud/` — `auth.ts` (GoTrue maison, PKCE Google), `sync.ts` (push/pull LWW), `social.ts`, `moderation.ts` (blocages), `reviews.ts`, `api.ts` (`cloudFetch`).
|
||||
- `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/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/App.tsx` — shell + routes par hash (`#/home`, `#/admin`…), `BottomNav` (mobile) + `SideNav` (desktop ≥ lg).
|
||||
- `src/pages/` — `HomePage`, `CatalogPage`, `StatsPage`, `SettingsPage`.
|
||||
- `src/App.tsx` — shell + routes par hash (`#/home`, `#/catalog`…), `BottomNav` (mobile) + `SideNav` (desktop ≥ lg).
|
||||
|
||||
## i18n (IMPORTANT)
|
||||
- 18 langues dans `src/i18n/locales/*.ts`. **`fr` est la référence** : toute clé doit exister dans **toutes** les langues (sinon erreur TS).
|
||||
- Textes vus par les membres → traduire dans les 18. Un écran réservé à l'admin → `fr` + `en` suffit.
|
||||
- Textes vus par les membres → traduire dans les 18.
|
||||
- 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` (les anciens `night`/`starfield` sont relus comme `dark`). Accent fixe, défini dans `src/index.css`. Toujours utiliser les **tokens de thème** (`bg-bg`, `text-ink`, `bg-accent-fill`…), **jamais de couleur hex en dur**.
|
||||
|
||||
@@ -66,10 +65,10 @@ npm run build # build de prod
|
||||
- **Appels aux données publiques** (proxy TMDB, notes Trakt) : `publicFetch` dans `cloud/api.ts`, sans aucun en-tête → pas de pré-requête CORS (un aller-retour au lieu de deux). Limite côté serveur par adresse IP (tmdb 1000, ratings 400 / 10 min). Les données perso restent sur `cloudFetch` (jeton).
|
||||
|
||||
## État (au 28 nov. 2026)
|
||||
- **Toutes les migrations de `supabase/migrations/` sont appliquées en ligne**, jusqu'à `20261129210000_drop_azuu_backup.sql` incluse (pg_net supprimée, index des notifications revus, réserve des notes Trakt ; notifications aux abonnés en une requête, quota vérifié une fois par envoi (trigger `*_quota_stmt`), fiche renvoyée à l'identique non réécrite).
|
||||
- **Toutes les migrations de `supabase/migrations/` sont appliquées en ligne**, jusqu'à `20261130120000_remove_admin.sql` incluse (pg_net supprimée, index des notifications revus, réserve des notes Trakt ; notifications aux abonnés en une requête, quota vérifié une fois par envoi (trigger `*_quota_stmt`), fiche renvoyée à l'identique non réécrite).
|
||||
- **29 nov. 2026** : 123 avis du compte de Romain contenaient « Réalisation : … » (ancien import, `legacyImport.ts`, corrigé). Lignes retirées en base (la copie de sauvegarde a été supprimée le même jour, correction validée).
|
||||
- **Affiches** : une fiche garde l'**adresse** de l'affiche (TMDB w342 / AniList), jamais l'image copiée en base64 (≈ 50 Ko par fiche, renvoyés à chaque modification et chez les amis). Seule une image choisie dans la galerie (EditDetails, 360 px) est intégrée. Le 29 nov. 2026, 109 affiches intégrées (342 px, copies automatiques) ont été remplacées par leur adresse TMDB : base des fiches 5,95 Mo → 267 Ko.
|
||||
- **Cache (service worker, `vite.config.ts`)** : pré-téléchargement ~1 Mo (app + français). Les 17 autres langues (`assets/locale-*`), l'admin (`assets/admin-*`) et les variantes de police sont mises en cache à la demande (`app-files`). Caches d'exécution : `posters` (petites images TMDB/AniList, 1500), `backdrops` (grandes images, 80) — réponses opaques acceptées (`posters-v2` / `backdrops-v2`, d'un essai abandonné, sont supprimés au lancement par `main.tsx`), `catalog` (fiches TMDB avec `append_to_response`, saisons, personnes, notes Trakt : StaleWhileRevalidate 14 j ; jamais `/tv/123` seul, recherche, sorties ni données perso). React est dans son propre fichier (`react-*.js`), gardé d'une version à l'autre.
|
||||
- **Cache (service worker, `vite.config.ts`)** : pré-téléchargement ~1 Mo (app + français). Les 17 autres langues (`assets/locale-*`) et les variantes de police sont mises en cache à la demande (`app-files`). Caches d'exécution : `posters` (petites images TMDB/AniList, 1500), `backdrops` (grandes images, 80) — réponses opaques acceptées (`posters-v2` / `backdrops-v2`, d'un essai abandonné, sont supprimés au lancement par `main.tsx`), `catalog` (fiches TMDB avec `append_to_response`, saisons, personnes, notes Trakt : StaleWhileRevalidate 14 j ; jamais `/tv/123` seul, recherche, sorties ni données perso). React est dans son propre fichier (`react-*.js`), gardé d'une version à l'autre.
|
||||
- **Chargés à la demande** (préchargés au repos par `preloadScreens`, gardés par le service worker) : fiche d'un titre (`TitleSheet`), recherche d'ajout (`AddTitle`), onglets Journal / Listes, listes partagées, assistant d'import (`ImportWizard`), dessin des cartes de partage (`shareCard` ; `shareImage.ts` reste léger), convertisseur des anciennes sauvegardes (`legacyImport`). Garder les petits composants partagés dans leur propre fichier (ex. `NewListForm.tsx`) : un import direct depuis un écran à la demande le ramène dans le fichier principal.
|
||||
- **Note Trakt** (`getPublicRatings` / `cachedPublicRatings` dans `catalogApi.ts`) : à part du reste de la fiche, gardée sur l'appareil (`azuucine:ratings`, 800 titres, rafraîchie après 2 jours) → affichage immédiat. Premier chargement : place réservée sans chiffre provisoire.
|
||||
- **Épisodes d'une saison** (`getTmdbSeasonEpisodes` / `cachedSeasonEpisodes`) : gardés sur l'appareil (`azuucine:seasons`, budget 400 Ko, rafraîchis après 12 h) ; images autour du prochain épisode chargées tout de suite (`episodeWindow`, `preloadImages`).
|
||||
@@ -80,12 +79,12 @@ npm run build # build de prod
|
||||
- **Compression** : `deploy/nginx/site.conf` active gzip (JS, CSS, JSON, SVG), avec `gzip_http_version 1.0` car le proxy en façade parle HTTP/1.0. Sans ça les fichiers partaient bruts. Mesure Lighthouse mobile (1re visite, 29 nov. 2026) : score 67 → 97, premier affichage 3,9 → 1,8 s, poids 789 → 248 Ko.
|
||||
- **Anciennes icônes installées depuis kino.rdacet.fr / azuucine.rdacet.fr** : ces adresses n'existent plus, l'app installée tourne sur sa copie (plus de mises à jour) et les fonctions serveur la refusent (CORS) → « Impossible de joindre le serveur ». Solution : supprimer l'icône et réinstaller depuis https://bobinoo.org. La date de la version est affichée en bas des Réglages.
|
||||
- **Notifications** (dans l'app, pas de push) : abonnements (`new_follower`, `follow_request`, `unfollow`, `follow_accepted`, trigger `follows_notify`), réaction / commentaire sur mon avis (`reaction`, `review_comment`, triggers sur `review_reactions` / `review_comments`), activité des comptes suivis (`friend_review`, `friend_started`, `friend_added`, trigger `items_notify` → `azuu_notify_followers`, rafales regroupées sur 3 h). Pas de notification pour les listes perso (privées). RPC `get_notifications` (avec le titre lié) / `unread_notifications` / `mark_notifications_read`. La fonction Edge `send-push` répond 410 : à supprimer depuis le tableau de bord Supabase.
|
||||
- **Administration** : écran `#/admin` (Réglages → Administration), visible seulement pour les comptes de la table `admins`. Seul admin depuis le 30 nov. 2026 : le compte `rx0m_dct` (l'ancien compte admin avait été supprimé par erreur, la liste était vide).
|
||||
- **Pas d'administration** (retirée le 30 nov. 2026) : pas d'écran admin, pas de signalements, bugs ou erreurs stockés en base. « Signaler » (avis, commentaire, profil, liste) et « Signaler un bug » ouvrent un e-mail pré-rempli vers contact@bobinoo.org (`mailto` dans `components/moderation/BugReport.tsx`). Modération à la main dans Supabase (voir `docs/database.md`). Après une mise à jour, une ancienne version ouverte qui ne trouve plus un fichier se recharge d'elle-même (`ErrorBoundary`).
|
||||
- **E-mails du compte** (inscription, mot de passe oublié, changement d'adresse) : envoyés par `contact@bobinoo.org` (OVH Zimbra Starter, SMTP `ssl0.ovh.net:465`, DKIM actif), modèles dans `docs/emails/`. Testé le 30 nov. 2026 : reçu en boîte de réception, lien de confirmation OK. Limite Supabase : 30 e-mails / heure. `contact@bobinoo.org` est aussi l'adresse de contact des pages légales, de « Signaler un bug » et du Play Store.
|
||||
- **Retirés (27-28 nov. 2026)** : défis, couleur d'accent au choix, apparences Nuit/Étoilé, notation sur 10 (les notes restent stockées sur 10 en interne, affichées sur 5 étoiles).
|
||||
- **Double authentification (TOTP)** : optionnelle, Réglages → Mon compte (`src/components/TwoFactor.tsx`, fonctions dans `src/lib/cloud/auth.ts`). À la connexion, `Root.tsx` demande le code (`MfaScreen`) si le compte a un facteur vérifié. Côté serveur, `azuu_mfa_ok()` : règles RLS restrictives « mfa required » (items, lists, settings, follows, profiles, activity), `is_admin()` et `azuu_me_active()` ; les fonctions Edge (`_shared/auth.ts`) refusent un jeton « aal1 » d'un compte protégé.
|
||||
- **Dépendances figées** : versions exactes dans `package.json` + `.npmrc` (`save-exact=true`), CI en `npm ci`.
|
||||
- **Chargement** : les écrans rares (stats, réglages, admin, roulette, calendrier, écrans sociaux…) sont chargés à la demande puis préchargés au repos (`App.tsx` → `loaders`, `SocialProvider.tsx` → `socialLoaders`).
|
||||
- **Chargement** : les écrans rares (stats, réglages, roulette, calendrier, écrans sociaux…) sont chargés à la demande puis préchargés au repos (`App.tsx` → `loaders`, `SocialProvider.tsx` → `socialLoaders`).
|
||||
- **Audit (22-24 nov. 2026)** : `20261122140000_audit_hardening.sql` versionne aussi les fonctions admin / « comptes suspendus » qui n'existaient qu'en ligne. Blocage = le compte bloquant devient invisible pour le bloqué ; fiches supprimées = `data` vidée (trigger `azuu_tombstone`) ; profils lisibles directement seulement par soi-même.
|
||||
- **Runner Gitea** : `kino` (étiquette `azuucine`), service `gitea-runner` dans le conteneur LXC `kino` du VPS. S'il est hors ligne, plus rien ne se déploie (voir `deploy/RUNNER.md`).
|
||||
- **Sauvegardes de la base** : faites par Romain sur son VPS chaque soir (la sauvegarde via Gitea Actions a été retirée le 28 nov. 2026).
|
||||
|
||||
+10
-14
@@ -10,9 +10,9 @@ système de Postgres et de Supabase. Les fiches (`items`) pèsent ~0,5 Mo pour 2
|
||||
|
||||
- **Données perso** (`items`, `lists`, `settings`) : l'app les lit et les écrit directement, via la synchro
|
||||
(`src/lib/cloud/sync.ts`). La règle RLS limite chaque ligne à son propriétaire.
|
||||
- **Tout le reste** (social, listes partagées, admin) passe par des **fonctions** (RPC). Les tables concernées n'ont
|
||||
- **Tout le reste** (social, listes partagées) passe par des **fonctions** (RPC). Les tables concernées n'ont
|
||||
aucune règle RLS : personne ne peut les lire ni les écrire en direct, seules les fonctions le peuvent.
|
||||
Les 13 alertes « RLS Enabled No Policy » du tableau de bord sont donc voulues.
|
||||
Les 8 alertes « RLS Enabled No Policy » du tableau de bord sont donc voulues.
|
||||
- **Double authentification** : la règle restrictive « mfa required » (via `azuu_mfa_ok()`) sur
|
||||
`items`, `lists`, `settings`, `follows`, `profiles` et `activity` bloque un compte protégé tant que le code n'est
|
||||
pas validé. Les fonctions font la même vérification.
|
||||
@@ -46,29 +46,25 @@ Triggers sur `items` / `lists` / `settings` :
|
||||
| `review_reactions`, `review_comments` | Réactions et commentaires sur un avis (l'avis = `author_id` + `item_id`) |
|
||||
| `shared_lists`, `shared_list_members`, `shared_list_items` | Listes partagées entre amis |
|
||||
|
||||
### Modération et suivi
|
||||
| Table | Contenu |
|
||||
|---|---|
|
||||
| `admins` | Comptes administrateurs |
|
||||
| `reports` | Signalements |
|
||||
| `moderation_log` | Journal des actions de modération |
|
||||
| `bug_reports` | Bugs signalés depuis l'app |
|
||||
| `client_errors` | Erreurs de l'app (sans donnée perso, regroupées) |
|
||||
### Modération
|
||||
Pas d'écran d'administration (retiré le 30 nov. 2026).
|
||||
- **Signalements et bugs** : ils arrivent par e-mail à contact@bobinoo.org. Dans l'app, « Signaler » et « Signaler un bug » ouvrent un e-mail pré-rempli.
|
||||
- **Suspendre un compte** : dans Supabase, Table Editor → `profiles`, cocher `suspended`. Le compte devient alors invisible pour les autres.
|
||||
- **Retirer un avis** : vider `data->notes` de la fiche dans `items`.
|
||||
|
||||
### Réserve partagée
|
||||
| Table | Contenu |
|
||||
|---|---|
|
||||
| `title_ratings` | Notes Trakt de chaque titre, rafraîchies après 24 h, remplies par la fonction Edge `ratings` |
|
||||
|
||||
## Fonctions (85)
|
||||
## Fonctions (65)
|
||||
|
||||
Les noms indiquent le rôle :
|
||||
- **Sans préfixe** (`get_feed`, `title_reviews`, `block_user`…) : appelées par l'app.
|
||||
- **`admin_*`** : écran d'administration (refusées si on n'est pas admin).
|
||||
- **`azuu_*`** : aides internes et triggers, jamais appelables par l'app.
|
||||
- **Règles** : `can_view`, `is_admin`, `azuu_mfa_ok`, `azuu_me_active`.
|
||||
- **Règles** : `can_view`, `azuu_mfa_ok`, `azuu_me_active`.
|
||||
|
||||
La description de chacune est dans le tableau de bord, et dans `supabase/migrations/20261129200000_cleanup_and_comments.sql`.
|
||||
La description de chacune est dans le tableau de bord (et dans les migrations `20261129200000_cleanup_and_comments.sql`, `20261130120000_remove_admin.sql`).
|
||||
|
||||
## Hors base
|
||||
|
||||
|
||||
+3
-9
@@ -23,8 +23,6 @@ const CalendarView = lazyPreload(() => import('./components/CalendarView'))
|
||||
const StatsPage = lazyPreload(() => import('./pages/StatsPage'))
|
||||
const SettingsPage = lazyPreload(() => import('./pages/SettingsPage'))
|
||||
const NotFoundPage = lazyPreload(() => import('./pages/NotFoundPage'))
|
||||
// Administration : réservée aux admins, jamais préchargée
|
||||
const AdminPage = lazyPreload(() => import('./pages/AdminPage'))
|
||||
function preloadScreens() {
|
||||
// Les plus utilisés d'abord
|
||||
for (const screen of [TitleSheet, AddTitle, StatsPage, SettingsPage, PersonSheet, CalendarView, Roulette, EditDetails, NotFoundPage]) void screen.preload().catch(() => {})
|
||||
@@ -33,8 +31,7 @@ function preloadScreens() {
|
||||
}
|
||||
|
||||
const TABS: Tab[] = ['home', 'catalog', 'stats', 'settings']
|
||||
// L'administration a sa propre route (#/admin), hors de la navigation principale
|
||||
type Route = Tab | 'admin' | 'notfound'
|
||||
type Route = Tab | 'notfound'
|
||||
|
||||
function routeFromHash(): Route {
|
||||
const hash = window.location.hash
|
||||
@@ -42,7 +39,6 @@ function routeFromHash(): Route {
|
||||
if (!hash.startsWith('#/')) return 'home'
|
||||
const h = hash.slice(2)
|
||||
if (h === '' || h.startsWith('u/')) return 'home'
|
||||
if (h === 'admin') return 'admin'
|
||||
return (TABS as string[]).includes(h) ? (h as Tab) : 'notfound'
|
||||
}
|
||||
|
||||
@@ -106,8 +102,7 @@ export default function App() {
|
||||
window.location.hash = `/${t}`
|
||||
window.scrollTo({ top: 0 })
|
||||
}, [])
|
||||
// Dans la barre de navigation, l'administration reste rattachée à « Réglages »
|
||||
const navTab: Tab = navRoute === 'admin' ? 'settings' : navRoute === 'notfound' ? 'home' : navRoute
|
||||
const navTab: Tab = navRoute === 'notfound' ? 'home' : navRoute
|
||||
|
||||
/** `focus` : saison (ou série) qu'on vient de finir avec +1 → la fiche s'ouvre sur la note */
|
||||
// Stable : les cartes mémorisées (MediaCard) ne se redessinent pas à chaque rendu de l'app
|
||||
@@ -138,8 +133,7 @@ export default function App() {
|
||||
{route === 'catalog' && <CatalogPage onOpen={openItem} onAdd={openNew} />}
|
||||
<Suspense fallback={null}>
|
||||
{route === 'stats' && <StatsPage />}
|
||||
{route === 'settings' && <SettingsPage onOpenAdmin={() => go('admin')} />}
|
||||
{route === 'admin' && <AdminPage onBack={() => go('settings')} />}
|
||||
{route === 'settings' && <SettingsPage />}
|
||||
{route === 'notfound' && <NotFoundPage onHome={() => go('home')} />}
|
||||
</Suspense>
|
||||
</main>
|
||||
|
||||
@@ -1,10 +1,30 @@
|
||||
import { Component, type ErrorInfo, type ReactNode } from 'react'
|
||||
import { Component, type ReactNode } from 'react'
|
||||
import { t } from '../i18n'
|
||||
import { reportError } from '../lib/errorReporter'
|
||||
|
||||
/** Fichier d'un écran introuvable : une nouvelle version a été mise en ligne pendant que l'app était ouverte. */
|
||||
const isOutdatedFile = (e: unknown) =>
|
||||
/Importing a module script failed|Failed to fetch dynamically imported module|error loading dynamically imported module|Unable to preload CSS/i.test(
|
||||
String((e as Error)?.message ?? e),
|
||||
)
|
||||
|
||||
/** Recharge l'app une seule fois par minute (jamais en boucle si le problème est ailleurs). */
|
||||
function reloadOnce(): boolean {
|
||||
const KEY = 'azuucine:reloaded-at'
|
||||
try {
|
||||
const last = Number(sessionStorage.getItem(KEY) ?? 0)
|
||||
if (Date.now() - last < 60_000) return false
|
||||
sessionStorage.setItem(KEY, String(Date.now()))
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
location.reload()
|
||||
return true
|
||||
}
|
||||
|
||||
/**
|
||||
* Filet de sécurité global : si l'affichage plante, on montre un écran propre
|
||||
* (« Oups… ») au lieu d'une page blanche, et l'erreur est remontée (sans donnée perso).
|
||||
* Filet de sécurité global : si l'affichage plante, on montre un écran propre (« Oups… ») au lieu d'une page blanche.
|
||||
* Cas fréquent après une mise à jour : l'ancienne version ouverte cherche un fichier qui n'existe plus →
|
||||
* l'app se recharge d'elle-même sur la nouvelle version.
|
||||
*/
|
||||
export default class ErrorBoundary extends Component<{ children: ReactNode }, { failed: boolean }> {
|
||||
state = { failed: false }
|
||||
@@ -13,8 +33,8 @@ export default class ErrorBoundary extends Component<{ children: ReactNode }, {
|
||||
return { failed: true }
|
||||
}
|
||||
|
||||
componentDidCatch(error: unknown, info: ErrorInfo) {
|
||||
reportError(error, 'render', info.componentStack ?? '')
|
||||
componentDidCatch(error: unknown) {
|
||||
if (isOutdatedFile(error)) reloadOnce()
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
import { Bug, Check, Loader2, Mail } from 'lucide-react'
|
||||
import { useMemo, useState } from 'react'
|
||||
import { createPortal } from 'react-dom'
|
||||
import { Bug, Mail } from 'lucide-react'
|
||||
import { t, type TKey } from '../../i18n'
|
||||
import { techInfo } from '../../lib/appInfo'
|
||||
import { useBackToClose } from '../../lib/backNav'
|
||||
import { BUG_DESCRIPTION_MAX, BUG_DESCRIPTION_MIN, submitBugReport } from '../../lib/cloud/moderation'
|
||||
import { useEscape } from '../../lib/escape'
|
||||
import { useScrollLock } from '../../lib/scrollLock'
|
||||
import { useMedia } from '../../store'
|
||||
|
||||
/** Contact de l'éditeur (sans compte, le formulaire n'est pas disponible). */
|
||||
export const SUPPORT_URL = 'mailto:contact@bobinoo.org'
|
||||
/** Adresse de contact de l'éditeur (bugs, signalements, questions). */
|
||||
export const CONTACT_EMAIL = 'contact@bobinoo.org'
|
||||
|
||||
/** Lien « mailto: » avec objet et texte pré-remplis. */
|
||||
export function mailto(subject: string, body: string): string {
|
||||
return `mailto:${CONTACT_EMAIL}?subject=${encodeURIComponent(subject)}&body=${encodeURIComponent(body)}`
|
||||
}
|
||||
|
||||
const INFO_LABEL: Record<string, TKey> = {
|
||||
version: 'bug.info.version',
|
||||
@@ -25,143 +24,25 @@ const INFO_LABEL: Record<string, TKey> = {
|
||||
online: 'bug.info.online',
|
||||
}
|
||||
|
||||
/** Ligne « Signaler un bug » de la section « À propos » des réglages. */
|
||||
/**
|
||||
* Ligne « Signaler un bug » des réglages : ouvre un e-mail vers contact@bobinoo.org, avec la version de l'app
|
||||
* et l'appareil en bas du message (rien de personnel : ni compte, ni bibliothèque).
|
||||
*/
|
||||
export function BugReportRow() {
|
||||
const { account } = useMedia()
|
||||
const [open, setOpen] = useState(false)
|
||||
if (!account) {
|
||||
const { settings } = useMedia()
|
||||
// Infos calculées au toucher (page, fenêtre, réseau du moment)
|
||||
const open = () => {
|
||||
const info = Object.entries(techInfo(settings.themeMode)).map(([k, v]) => `${INFO_LABEL[k] ? t(INFO_LABEL[k]) : k} : ${v}`)
|
||||
window.location.href = mailto(`${t('bug.title')} · Bobinoo`, `${t('bug.intro')}\n\n\n\n—\n${info.join('\n')}`)
|
||||
}
|
||||
return (
|
||||
<a href={SUPPORT_URL} className="flex items-center gap-3.5 px-4 py-4 transition-colors active:bg-surface-2">
|
||||
<button type="button" onClick={open} className="flex w-full items-center gap-3.5 px-4 py-4 text-start transition-colors active:bg-surface-2">
|
||||
<Bug size={19} className="text-ink-2" />
|
||||
<span className="flex-1">
|
||||
<span className="block font-medium">{t('bug.title')}</span>
|
||||
<span className="mt-0.5 block text-xs text-ink-3">{t('bug.hintLocal')}</span>
|
||||
</span>
|
||||
<Mail size={16} className="text-ink-3" />
|
||||
</a>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<button type="button" onClick={() => setOpen(true)} className="flex w-full items-center gap-3.5 px-4 py-4 text-start transition-colors active:bg-surface-2">
|
||||
<Bug size={19} className="text-ink-2" />
|
||||
<span className="flex-1">
|
||||
<span className="block font-medium">{t('bug.title')}</span>
|
||||
<span className="mt-0.5 block text-xs text-ink-3">{t('bug.hint')}</span>
|
||||
</span>
|
||||
<span className="text-ink-3">→</span>
|
||||
</button>
|
||||
{open && createPortal(<BugReportDialog onClose={() => setOpen(false)} />, document.body)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
/** Formulaire « Signaler un bug » : description + infos techniques (montrées avant l'envoi, rien de personnel). */
|
||||
function BugReportDialog({ onClose }: { onClose: () => void }) {
|
||||
const { settings } = useMedia()
|
||||
const info = useMemo(() => techInfo(settings.themeMode), [settings.themeMode])
|
||||
const [text, setText] = useState('')
|
||||
const [busy, setBusy] = useState(false)
|
||||
const [error, setError] = useState<string>()
|
||||
const [done, setDone] = useState(false)
|
||||
useScrollLock()
|
||||
useEscape(onClose)
|
||||
useBackToClose(onClose)
|
||||
|
||||
const tooShort = text.trim().length < BUG_DESCRIPTION_MIN
|
||||
|
||||
const submit = async () => {
|
||||
if (tooShort || busy) return
|
||||
setBusy(true)
|
||||
setError(undefined)
|
||||
try {
|
||||
await submitBugReport(text, info)
|
||||
setDone(true)
|
||||
} catch (e) {
|
||||
setError((e as Error).message)
|
||||
} finally {
|
||||
setBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="fixed inset-0 z-[80] flex touch-none items-end justify-center overscroll-none bg-scrim sm:items-center sm:p-4" onClick={onClose}>
|
||||
<div
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="bug-title"
|
||||
className="sheet-in safe-bottom max-h-[92dvh] w-full max-w-lg touch-pan-y overflow-y-auto overscroll-contain rounded-t-3xl border border-line-strong bg-surface p-5 sm:rounded-3xl"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
{done ? (
|
||||
<div className="flex flex-col items-center py-4 text-center">
|
||||
<span className="grid size-12 place-items-center rounded-full border border-line-strong text-accent">
|
||||
<Check size={22} />
|
||||
</span>
|
||||
<h2 id="bug-title" className="mt-4 text-lg font-semibold">
|
||||
{t('bug.thanks')}
|
||||
</h2>
|
||||
<p className="mt-2 text-sm leading-relaxed text-ink-2">{t('bug.thanksText')}</p>
|
||||
<button type="button" onClick={onClose} className="btn btn-ghost mt-6 w-full" autoFocus>
|
||||
{t('common.close')}
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<h2 id="bug-title" className="flex items-center gap-2 text-lg font-semibold">
|
||||
<Bug size={18} className="text-accent" />
|
||||
{t('bug.title')}
|
||||
</h2>
|
||||
<p className="mt-1.5 text-sm text-ink-3">{t('bug.intro')}</p>
|
||||
|
||||
<label className="mt-4 block">
|
||||
<span className="label">{t('bug.description')}</span>
|
||||
<textarea
|
||||
className="field min-h-32 resize-y text-sm"
|
||||
maxLength={BUG_DESCRIPTION_MAX}
|
||||
value={text}
|
||||
onChange={(e) => setText(e.target.value)}
|
||||
placeholder={t('bug.placeholder')}
|
||||
autoFocus
|
||||
/>
|
||||
<span className="mt-1 block text-end text-[11px] tabular-nums text-ink-3">
|
||||
{text.length}/{BUG_DESCRIPTION_MAX}
|
||||
</span>
|
||||
</label>
|
||||
|
||||
<details className="mt-2 rounded-xl border border-line px-3.5 py-2.5 text-sm" open>
|
||||
<summary className="cursor-pointer font-medium text-ink-2">{t('bug.techTitle')}</summary>
|
||||
<dl className="mt-2 grid grid-cols-[auto_1fr] gap-x-4 gap-y-1 text-xs">
|
||||
{Object.entries(info).map(([k, v]) => (
|
||||
<div key={k} className="contents">
|
||||
<dt className="text-ink-3">{INFO_LABEL[k] ? t(INFO_LABEL[k]) : k}</dt>
|
||||
<dd className="min-w-0 break-words text-ink-2" dir="ltr">
|
||||
{v}
|
||||
</dd>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
<p className="mt-2 text-[11px] leading-relaxed text-ink-3">{t('bug.techPrivacy')}</p>
|
||||
</details>
|
||||
|
||||
{error && (
|
||||
<p role="alert" className="mt-3 rounded-xl border border-accent px-3 py-2 text-sm text-ink">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className="mt-4 grid grid-cols-2 gap-2">
|
||||
<button type="button" onClick={onClose} className="btn btn-ghost">
|
||||
{t('common.cancel')}
|
||||
</button>
|
||||
<button type="button" onClick={submit} disabled={tooShort || busy} className="btn btn-primary">
|
||||
{busy && <Loader2 size={16} className="animate-spin" />}
|
||||
{t('bug.send')}
|
||||
</button>
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -1,12 +1,38 @@
|
||||
import { Flag, MoreHorizontal } from 'lucide-react'
|
||||
import { useState, type ReactNode } from 'react'
|
||||
import { createPortal } from 'react-dom'
|
||||
import { t } from '../../i18n'
|
||||
import { t, type TKey } from '../../i18n'
|
||||
import { useBackToClose } from '../../lib/backNav'
|
||||
import type { ReportTarget } from '../../lib/cloud/moderation'
|
||||
import { REPORT_REASONS, type ReportReason, type ReportTarget } from '../../lib/cloud/moderation'
|
||||
import { useEscape } from '../../lib/escape'
|
||||
import { cx } from '../../lib/utils'
|
||||
import ReportDialog from './ReportDialog'
|
||||
import { mailto } from './BugReport'
|
||||
|
||||
const REASON_LABEL: Record<ReportReason, TKey> = {
|
||||
spoiler: 'report.reason.spoiler',
|
||||
harassment: 'report.reason.harassment',
|
||||
hate: 'report.reason.hate',
|
||||
sexual: 'report.reason.sexual',
|
||||
spam: 'report.reason.spam',
|
||||
impersonation: 'report.reason.impersonation',
|
||||
other: 'report.reason.other',
|
||||
}
|
||||
|
||||
const TITLE: Record<ReportTarget['type'], TKey> = {
|
||||
review: 'report.titleReview',
|
||||
profile: 'report.titleProfile',
|
||||
comment: 'report.titleComment',
|
||||
list: 'report.titleList',
|
||||
}
|
||||
|
||||
/** Signalement par e-mail vers contact@bobinoo.org : motifs possibles en rappel, références du contenu en bas. */
|
||||
function reportMail(target: ReportTarget): string {
|
||||
const reasons = REPORT_REASONS.map((r) => t(REASON_LABEL[r])).join(' · ')
|
||||
return mailto(
|
||||
`${t(TITLE[target.type])} · Bobinoo`,
|
||||
`${t('report.reason')} (${reasons}) :\n\n\n${t('report.details')} :\n\n\n—\n${target.type} · ${target.id} · ${target.userId}`,
|
||||
)
|
||||
}
|
||||
|
||||
export interface MenuAction {
|
||||
icon: ReactNode
|
||||
@@ -15,8 +41,8 @@ export interface MenuAction {
|
||||
}
|
||||
|
||||
/**
|
||||
* Bouton « ⋯ » réutilisable : ouvre un petit menu avec « Signaler » (+ actions en plus,
|
||||
* ex. « Bloquer »), puis la fenêtre de signalement. Cible générique : avis, profil, commentaire, liste.
|
||||
* Bouton « ⋯ » réutilisable : ouvre un petit menu avec « Signaler » (+ actions en plus, ex. « Bloquer »).
|
||||
* « Signaler » ouvre un e-mail pré-rempli. Cible générique : avis, profil, commentaire, liste.
|
||||
*/
|
||||
export default function ReportButton({
|
||||
target,
|
||||
@@ -30,7 +56,6 @@ export default function ReportButton({
|
||||
size?: number
|
||||
}) {
|
||||
const [menu, setMenu] = useState(false)
|
||||
const [report, setReport] = useState(false)
|
||||
return (
|
||||
<>
|
||||
<button
|
||||
@@ -66,7 +91,7 @@ export default function ReportButton({
|
||||
danger
|
||||
onClick={() => {
|
||||
setMenu(false)
|
||||
setReport(true)
|
||||
window.location.href = reportMail(target)
|
||||
}}
|
||||
>
|
||||
{t('report.action')}
|
||||
@@ -74,7 +99,6 @@ export default function ReportButton({
|
||||
</ActionMenu>,
|
||||
document.body,
|
||||
)}
|
||||
{report && createPortal(<ReportDialog target={target} onClose={() => setReport(false)} />, document.body)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -1,139 +0,0 @@
|
||||
import { Check, Flag, Loader2 } from 'lucide-react'
|
||||
import { useState } from 'react'
|
||||
import { t, type TKey } from '../../i18n'
|
||||
import { useBackToClose } from '../../lib/backNav'
|
||||
import { REPORT_DETAILS_MAX, REPORT_REASONS, reportContent, type ReportReason, type ReportTarget } from '../../lib/cloud/moderation'
|
||||
import { useEscape } from '../../lib/escape'
|
||||
import { useScrollLock } from '../../lib/scrollLock'
|
||||
import { cx } from '../../lib/utils'
|
||||
|
||||
const REASON_LABEL: Record<ReportReason, TKey> = {
|
||||
spoiler: 'report.reason.spoiler',
|
||||
harassment: 'report.reason.harassment',
|
||||
hate: 'report.reason.hate',
|
||||
sexual: 'report.reason.sexual',
|
||||
spam: 'report.reason.spam',
|
||||
impersonation: 'report.reason.impersonation',
|
||||
other: 'report.reason.other',
|
||||
}
|
||||
export const reasonLabel = (r: ReportReason) => t(REASON_LABEL[r])
|
||||
|
||||
const TITLE: Record<ReportTarget['type'], TKey> = {
|
||||
review: 'report.titleReview',
|
||||
profile: 'report.titleProfile',
|
||||
comment: 'report.titleComment',
|
||||
list: 'report.titleList',
|
||||
}
|
||||
|
||||
/**
|
||||
* Fenêtre « Signaler » générique (avis, profil, commentaire, liste partagée) :
|
||||
* motif + précision facultative (500 caractères), envoyée à l'équipe de modération.
|
||||
*/
|
||||
export default function ReportDialog({ target, onClose }: { target: ReportTarget; onClose: () => void }) {
|
||||
const [reason, setReason] = useState<ReportReason>()
|
||||
const [details, setDetails] = useState('')
|
||||
const [busy, setBusy] = useState(false)
|
||||
const [error, setError] = useState<string>()
|
||||
const [done, setDone] = useState<'sent' | 'duplicate'>()
|
||||
useScrollLock()
|
||||
useEscape(onClose)
|
||||
useBackToClose(onClose)
|
||||
|
||||
const submit = async () => {
|
||||
if (!reason || busy) return
|
||||
setBusy(true)
|
||||
setError(undefined)
|
||||
try {
|
||||
const r = await reportContent(target, reason, details)
|
||||
setDone(r.duplicate ? 'duplicate' : 'sent')
|
||||
} catch (e) {
|
||||
setError((e as Error).message)
|
||||
} finally {
|
||||
setBusy(false)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="fixed inset-0 z-[80] flex touch-none items-end justify-center overscroll-none bg-scrim sm:items-center sm:p-4" onClick={onClose}>
|
||||
<div
|
||||
role="dialog"
|
||||
aria-modal="true"
|
||||
aria-labelledby="report-title"
|
||||
className="sheet-in safe-bottom max-h-[90dvh] w-full max-w-md touch-pan-y overflow-y-auto overscroll-contain rounded-t-3xl border border-line-strong bg-surface p-5 sm:rounded-3xl"
|
||||
onClick={(e) => e.stopPropagation()}
|
||||
>
|
||||
{done ? (
|
||||
<div className="flex flex-col items-center py-4 text-center">
|
||||
<span className="grid size-12 place-items-center rounded-full border border-line-strong text-accent">
|
||||
<Check size={22} />
|
||||
</span>
|
||||
<h2 id="report-title" className="mt-4 text-lg font-semibold">
|
||||
{done === 'sent' ? t('report.thanks') : t('report.already')}
|
||||
</h2>
|
||||
<p className="mt-2 text-sm leading-relaxed text-ink-2">{t('report.thanksText')}</p>
|
||||
<button type="button" onClick={onClose} className="btn btn-ghost mt-6 w-full" autoFocus>
|
||||
{t('common.close')}
|
||||
</button>
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<h2 id="report-title" className="flex items-center gap-2 text-lg font-semibold">
|
||||
<Flag size={18} className="text-accent" />
|
||||
{t(TITLE[target.type])}
|
||||
</h2>
|
||||
<p className="mt-1.5 text-sm text-ink-3">{t('report.intro')}</p>
|
||||
|
||||
<fieldset className="mt-4">
|
||||
<legend className="label">{t('report.reason')}</legend>
|
||||
<div className="space-y-1.5">
|
||||
{REPORT_REASONS.map((r) => (
|
||||
<label
|
||||
key={r}
|
||||
className={cx(
|
||||
'flex cursor-pointer items-center gap-3 rounded-xl border px-3.5 py-2.5 text-sm transition-colors',
|
||||
reason === r ? 'border-accent text-ink' : 'border-line text-ink-2',
|
||||
)}
|
||||
>
|
||||
<input type="radio" name="report-reason" value={r} checked={reason === r} onChange={() => setReason(r)} className="accent-accent-fill" />
|
||||
{reasonLabel(r)}
|
||||
</label>
|
||||
))}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<label className="mt-4 block">
|
||||
<span className="label">{t('report.details')}</span>
|
||||
<textarea
|
||||
className="field min-h-24 resize-y text-sm"
|
||||
maxLength={REPORT_DETAILS_MAX}
|
||||
value={details}
|
||||
onChange={(e) => setDetails(e.target.value)}
|
||||
placeholder={t('report.detailsPlaceholder')}
|
||||
/>
|
||||
<span className="mt-1 block text-end text-[11px] tabular-nums text-ink-3">
|
||||
{details.length}/{REPORT_DETAILS_MAX}
|
||||
</span>
|
||||
</label>
|
||||
|
||||
{error && (
|
||||
<p role="alert" className="mt-2 rounded-xl border border-accent px-3 py-2 text-sm text-ink">
|
||||
{error}
|
||||
</p>
|
||||
)}
|
||||
|
||||
<div className="mt-4 grid grid-cols-2 gap-2">
|
||||
<button type="button" onClick={onClose} className="btn btn-ghost">
|
||||
{t('common.cancel')}
|
||||
</button>
|
||||
<button type="button" onClick={submit} disabled={!reason || busy} className="btn btn-primary">
|
||||
{busy && <Loader2 size={16} className="animate-spin" />}
|
||||
{t('report.send')}
|
||||
</button>
|
||||
</div>
|
||||
<p className="mt-3 text-[11px] leading-relaxed text-ink-3">{t('report.privacy')}</p>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
import { useEffect, useState } from 'react'
|
||||
import { t } from '../../i18n'
|
||||
import { adminAlerts, type AdminAlerts } from '../../lib/cloud/adminModeration'
|
||||
|
||||
/** Compteurs « à traiter » de l'administration (signalements ouverts, nouveaux bugs, nouvelles erreurs). */
|
||||
export function useAdminAlerts(enabled: boolean, refreshKey: unknown = 0): AdminAlerts | null {
|
||||
const [alerts, setAlerts] = useState<AdminAlerts | null>(null)
|
||||
useEffect(() => {
|
||||
if (!enabled) return setAlerts(null)
|
||||
let alive = true
|
||||
adminAlerts()
|
||||
.then((a) => alive && setAlerts(a))
|
||||
.catch(() => alive && setAlerts(null))
|
||||
return () => {
|
||||
alive = false
|
||||
}
|
||||
}, [enabled, refreshKey])
|
||||
return alerts
|
||||
}
|
||||
|
||||
/** Résumé court pour la ligne « Administration » des réglages (undefined s'il n'y a rien à traiter). */
|
||||
export function alertsSummary(a: AdminAlerts | null): string | undefined {
|
||||
if (!a) return undefined
|
||||
const parts = [
|
||||
a.reports ? t('adminMod.alertReports', { count: a.reports }) : '',
|
||||
a.bugs ? t('adminMod.alertBugs', { count: a.bugs }) : '',
|
||||
a.errors ? t('adminMod.alertErrors', { count: a.errors }) : '',
|
||||
].filter(Boolean)
|
||||
return parts.length ? parts.join(' · ') : undefined
|
||||
}
|
||||
@@ -240,46 +240,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'لا توجد تقييمات بعد',
|
||||
'reviews.seeAll': 'عرض كل التقييمات',
|
||||
'notif.someone': 'شخص ما',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'لا توجد فئات: قسم أفضل 5 مخفي.',
|
||||
'settings.backup': 'النسخ الاحتياطي',
|
||||
'settings.export': 'تصدير بياناتي',
|
||||
@@ -1003,16 +963,8 @@ const dict: Translations = {
|
||||
"crash.retry": "إعادة المحاولة",
|
||||
"crash.privacy": "عندما يكون التطبيق متصلًا، يُبلَّغ عن المشكلة تلقائيًا دون أي بيانات شخصية.",
|
||||
"bug.title": "الإبلاغ عن خطأ",
|
||||
"bug.hint": "صِف المشكلة وسنتولّى الأمر",
|
||||
"bug.hintLocal": "تواصل معنا عبر contact@bobinoo.org",
|
||||
"bug.intro": "اشرح ما حدث وما كنت تتوقعه. كلما كان الوصف أدق كان الإصلاح أسرع.",
|
||||
"bug.description": "الوصف",
|
||||
"bug.placeholder": "مثال: عند فتح مسلسل من الصفحة الرئيسية تبقى قائمة الحلقات فارغة…",
|
||||
"bug.techTitle": "المعلومات التقنية المرفقة",
|
||||
"bug.techPrivacy": "لا شيء شخصي: لا بريدك الإلكتروني ولا مكتبتك. يرى الفريق اسم المستخدم الخاص بك ليتمكن من الرد عليك.",
|
||||
"bug.send": "إرسال",
|
||||
"bug.thanks": "شكرًا!",
|
||||
"bug.thanksText": "تم إرسال بلاغك. سنطّلع عليه في أقرب وقت.",
|
||||
"bug.info.version": "الإصدار",
|
||||
"bug.info.browser": "المتصفح",
|
||||
"bug.info.os": "النظام",
|
||||
@@ -1029,7 +981,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "الإبلاغ عن هذا الملف الشخصي",
|
||||
"report.titleComment": "الإبلاغ عن هذا التعليق",
|
||||
"report.titleList": "الإبلاغ عن هذه القائمة",
|
||||
"report.intro": "لن يعرف الشخص المعني من أبلغ عنه. سيراجع فريق الإشراف بلاغك.",
|
||||
"report.reason": "السبب",
|
||||
"report.reason.spoiler": "حرق أحداث دون تنبيه",
|
||||
"report.reason.harassment": "تحرّش أو تنمّر",
|
||||
@@ -1039,15 +990,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "انتحال شخصية",
|
||||
"report.reason.other": "أخرى",
|
||||
"report.details": "تفاصيل (اختياري)",
|
||||
"report.detailsPlaceholder": "أضف سياقًا مفيدًا للإشراف…",
|
||||
"report.send": "إرسال",
|
||||
"report.privacy": "قد تؤدي البلاغات الكيدية إلى تعليق حسابك.",
|
||||
"report.thanks": "شكرًا على بلاغك",
|
||||
"report.already": "تم الإبلاغ مسبقًا",
|
||||
"report.thanksText": "سيراجعه فريق الإشراف. يمكنك أيضًا حظر هذا الحساب من ملفه الشخصي.",
|
||||
"report.errRate": "بلاغات كثيرة جدًا اليوم. حاول مجددًا غدًا.",
|
||||
"report.errNotFound": "هذا المحتوى لم يعد موجودًا أو لم يعد مرئيًا لك.",
|
||||
"report.errUnavailable": "الإبلاغ غير متاح بعد. حاول لاحقًا.",
|
||||
"block.block": "حظر",
|
||||
"block.unblock": "إلغاء الحظر",
|
||||
"block.done": "تم حظر الحساب: {name}",
|
||||
@@ -1056,64 +998,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "حظر {name}؟",
|
||||
"block.confirmText": "لن يتابع أحدكما الآخر بعد الآن. لن يتمكن هذا الحساب من متابعتك أو التفاعل مع مراجعاتك، وستُخفى مراجعاته عنك. لن يتلقى أي إشعار.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "يحتوي على حرق للأحداث",
|
||||
'spoiler.checkboxHint': "سيُخفى تقييمك عن الآخرين حتى يختاروا قراءته.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Noch keine Rezensionen',
|
||||
'reviews.seeAll': 'Alle Rezensionen ansehen',
|
||||
'notif.someone': 'Jemand',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Keine Kategorie: Der Top-5-Bereich ist ausgeblendet.',
|
||||
'settings.backup': 'Backup',
|
||||
'settings.export': 'Meine Daten exportieren',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Erneut versuchen",
|
||||
"crash.privacy": "Wenn die App online ist, wird uns das Problem automatisch gemeldet – ohne persönliche Daten.",
|
||||
"bug.title": "Fehler melden",
|
||||
"bug.hint": "Beschreibe das Problem, wir kümmern uns darum",
|
||||
"bug.hintLocal": "Kontaktiere uns über contact@bobinoo.org",
|
||||
"bug.intro": "Erkläre, was passiert ist und was du erwartet hast. Je genauer, desto schneller die Lösung.",
|
||||
"bug.description": "Beschreibung",
|
||||
"bug.placeholder": "Z. B.: Beim Öffnen einer Serie von der Startseite bleibt die Episodenliste leer…",
|
||||
"bug.techTitle": "Angehängte technische Infos",
|
||||
"bug.techPrivacy": "Nichts Persönliches: weder deine E-Mail noch deine Bibliothek. Das Team sieht deinen Benutzernamen, um dir antworten zu können.",
|
||||
"bug.send": "Senden",
|
||||
"bug.thanks": "Danke!",
|
||||
"bug.thanksText": "Deine Meldung wurde gesendet. Wir sehen sie uns so schnell wie möglich an.",
|
||||
"bug.info.version": "Version",
|
||||
"bug.info.browser": "Browser",
|
||||
"bug.info.os": "System",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Dieses Profil melden",
|
||||
"report.titleComment": "Diesen Kommentar melden",
|
||||
"report.titleList": "Diese Liste melden",
|
||||
"report.intro": "Die Person erfährt nicht, wer sie gemeldet hat. Das Moderationsteam prüft deine Meldung.",
|
||||
"report.reason": "Grund",
|
||||
"report.reason.spoiler": "Nicht gekennzeichneter Spoiler",
|
||||
"report.reason.harassment": "Belästigung oder Mobbing",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Identitätsdiebstahl",
|
||||
"report.reason.other": "Sonstiges",
|
||||
"report.details": "Details (optional)",
|
||||
"report.detailsPlaceholder": "Füge hilfreichen Kontext für die Moderation hinzu…",
|
||||
"report.send": "Senden",
|
||||
"report.privacy": "Missbräuchliche Meldungen können zur Sperrung deines Kontos führen.",
|
||||
"report.thanks": "Danke für deine Meldung",
|
||||
"report.already": "Bereits gemeldet",
|
||||
"report.thanksText": "Das Moderationsteam prüft sie. Du kannst dieses Konto auch über sein Profil blockieren.",
|
||||
"report.errRate": "Zu viele Meldungen heute. Versuche es morgen erneut.",
|
||||
"report.errNotFound": "Dieser Inhalt existiert nicht mehr oder ist für dich nicht mehr sichtbar.",
|
||||
"report.errUnavailable": "Melden ist noch nicht verfügbar. Bitte versuche es später erneut.",
|
||||
"block.block": "Blockieren",
|
||||
"block.unblock": "Blockierung aufheben",
|
||||
"block.done": "Konto blockiert: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "{name} blockieren?",
|
||||
"block.confirmText": "Ihr folgt euch nicht mehr. Dieses Konto kann dir nicht mehr folgen oder auf deine Rezensionen reagieren, und seine Rezensionen werden dir ausgeblendet. Es wird nicht benachrichtigt.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Enthält Spoiler",
|
||||
'spoiler.checkboxHint': "Deine Kritik wird für andere verborgen, bis sie sie bewusst lesen.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'No reviews yet',
|
||||
'reviews.seeAll': 'See all reviews',
|
||||
'notif.someone': 'Someone',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'No categories: the Top 5 section is hidden.',
|
||||
'settings.backup': 'Backup',
|
||||
'settings.export': 'Export my data',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Try again",
|
||||
"crash.privacy": "When the app is online, the problem is reported to us automatically, without any personal data.",
|
||||
"bug.title": "Report a bug",
|
||||
"bug.hint": "Describe the problem and we'll look into it",
|
||||
"bug.hintLocal": "Contact us via contact@bobinoo.org",
|
||||
"bug.intro": "Explain what happened and what you expected. The more precise, the faster the fix.",
|
||||
"bug.description": "Description",
|
||||
"bug.placeholder": "E.g. when opening a series from Home, the episode list stays empty…",
|
||||
"bug.techTitle": "Attached technical info",
|
||||
"bug.techPrivacy": "Nothing personal: not your email, not your library. The team sees your username so they can reply.",
|
||||
"bug.send": "Send",
|
||||
"bug.thanks": "Thank you!",
|
||||
"bug.thanksText": "Your report has been sent. We'll look at it as soon as possible.",
|
||||
"bug.info.version": "Version",
|
||||
"bug.info.browser": "Browser",
|
||||
"bug.info.os": "System",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Report this profile",
|
||||
"report.titleComment": "Report this comment",
|
||||
"report.titleList": "Report this list",
|
||||
"report.intro": "The person won't know who reported them. The moderation team will review your report.",
|
||||
"report.reason": "Reason",
|
||||
"report.reason.spoiler": "Unmarked spoiler",
|
||||
"report.reason.harassment": "Harassment or bullying",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Impersonation",
|
||||
"report.reason.other": "Other",
|
||||
"report.details": "Details (optional)",
|
||||
"report.detailsPlaceholder": "Add context that helps moderation…",
|
||||
"report.send": "Send",
|
||||
"report.privacy": "Abusive reports may lead to your account being suspended.",
|
||||
"report.thanks": "Thanks for your report",
|
||||
"report.already": "Already reported",
|
||||
"report.thanksText": "The moderation team will review it. You can also block this account from their profile.",
|
||||
"report.errRate": "Too many reports today. Try again tomorrow.",
|
||||
"report.errNotFound": "This content no longer exists or is no longer visible to you.",
|
||||
"report.errUnavailable": "Reporting isn't available yet. Please try again later.",
|
||||
"block.block": "Block",
|
||||
"block.unblock": "Unblock",
|
||||
"block.done": "Account blocked: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "Block {name}?",
|
||||
"block.confirmText": "You'll no longer follow each other. This account won't be able to follow you or react to your reviews, and their reviews will be hidden from you. They won't be notified.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Contains spoilers",
|
||||
'spoiler.checkboxHint': "Your review will be hidden from others until they choose to read it.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Aún no hay opiniones',
|
||||
'reviews.seeAll': 'Ver todas las opiniones',
|
||||
'notif.someone': 'Alguien',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Ninguna categoría: la sección Top 5 está oculta.',
|
||||
'settings.backup': 'Copia de seguridad',
|
||||
'settings.export': 'Exportar mis datos',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Reintentar",
|
||||
"crash.privacy": "Cuando la app está en línea, el problema se nos notifica automáticamente, sin ningún dato personal.",
|
||||
"bug.title": "Informar de un error",
|
||||
"bug.hint": "Describe el problema y nos encargamos",
|
||||
"bug.hintLocal": "Contáctanos en contact@bobinoo.org",
|
||||
"bug.intro": "Explica qué pasó y qué esperabas. Cuanto más preciso, más rápido se corrige.",
|
||||
"bug.description": "Descripción",
|
||||
"bug.placeholder": "Ej.: al abrir una serie desde Inicio, la lista de episodios sigue vacía…",
|
||||
"bug.techTitle": "Información técnica adjunta",
|
||||
"bug.techPrivacy": "Nada personal: ni tu correo ni tu biblioteca. El equipo ve tu nombre de usuario para poder responderte.",
|
||||
"bug.send": "Enviar",
|
||||
"bug.thanks": "¡Gracias!",
|
||||
"bug.thanksText": "Tu informe se ha enviado. Lo revisaremos lo antes posible.",
|
||||
"bug.info.version": "Versión",
|
||||
"bug.info.browser": "Navegador",
|
||||
"bug.info.os": "Sistema",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Denunciar este perfil",
|
||||
"report.titleComment": "Denunciar este comentario",
|
||||
"report.titleList": "Denunciar esta lista",
|
||||
"report.intro": "La persona no sabrá quién la denunció. El equipo de moderación revisará tu denuncia.",
|
||||
"report.reason": "Motivo",
|
||||
"report.reason.spoiler": "Spoiler sin avisar",
|
||||
"report.reason.harassment": "Acoso o intimidación",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Suplantación de identidad",
|
||||
"report.reason.other": "Otro",
|
||||
"report.details": "Detalles (opcional)",
|
||||
"report.detailsPlaceholder": "Añade contexto útil para la moderación…",
|
||||
"report.send": "Enviar",
|
||||
"report.privacy": "Las denuncias abusivas pueden suponer la suspensión de tu cuenta.",
|
||||
"report.thanks": "Gracias por tu denuncia",
|
||||
"report.already": "Ya denunciado",
|
||||
"report.thanksText": "El equipo de moderación lo revisará. También puedes bloquear esta cuenta desde su perfil.",
|
||||
"report.errRate": "Demasiadas denuncias hoy. Vuelve a intentarlo mañana.",
|
||||
"report.errNotFound": "Este contenido ya no existe o ya no es visible para ti.",
|
||||
"report.errUnavailable": "Las denuncias aún no están disponibles. Inténtalo más tarde.",
|
||||
"block.block": "Bloquear",
|
||||
"block.unblock": "Desbloquear",
|
||||
"block.done": "Cuenta bloqueada: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "¿Bloquear a {name}?",
|
||||
"block.confirmText": "Dejaréis de seguiros. Esta cuenta no podrá seguirte ni reaccionar a tus reseñas, y sus reseñas se te ocultarán. No recibirá ningún aviso.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Contiene spoilers",
|
||||
'spoiler.checkboxHint': "Tu reseña quedará oculta para los demás hasta que decidan leerla.",
|
||||
|
||||
@@ -236,46 +236,6 @@ const dict = {
|
||||
'reviews.none': 'Aucun avis pour le moment',
|
||||
'reviews.seeAll': 'Voir tous les avis',
|
||||
'notif.someone': 'Quelqu’un',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Vue d\'ensemble',
|
||||
'admin.tabUsers': 'Utilisateurs',
|
||||
'admin.tabReviews': 'Avis',
|
||||
'admin.users': 'Utilisateurs',
|
||||
'admin.public': 'Publics',
|
||||
'admin.private': 'Privés',
|
||||
'admin.suspended': 'Suspendus',
|
||||
'admin.items': 'Titres',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Séries',
|
||||
'admin.reviews': 'Avis',
|
||||
'admin.follows': 'Abonnements',
|
||||
'admin.pending': 'Demandes',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Inscriptions (7 j)',
|
||||
'admin.signups30': 'Inscriptions (30 j)',
|
||||
'admin.active7': 'Actifs (7 j)',
|
||||
'admin.newItems7': 'Ajouts (7 j)',
|
||||
'admin.signupsChart': 'Inscriptions — 14 derniers jours',
|
||||
'admin.searchUsers': 'Rechercher un compte…',
|
||||
'admin.joined': 'Inscrit le {date}',
|
||||
'admin.suspend': 'Suspendre',
|
||||
'admin.unsuspend': 'Réactiver',
|
||||
'admin.suspendedBadge': 'Suspendu',
|
||||
'admin.noUsers': 'Aucun compte',
|
||||
'admin.anon': '(sans profil)',
|
||||
'admin.statItems': 'titres',
|
||||
'admin.statReviews': 'avis',
|
||||
'admin.statFollowers': 'abonnés',
|
||||
'admin.clearReview': 'Effacer l\'avis',
|
||||
'admin.noReviews': 'Aucun avis',
|
||||
'admin.confirmClearTitle': 'Effacer cet avis ?',
|
||||
'admin.confirmClearMsg': 'L\'avis sera retiré du profil du membre à sa prochaine synchronisation.',
|
||||
'admin.confirmSuspendTitle': 'Suspendre ce compte ?',
|
||||
'admin.confirmSuspendMsg': 'Son profil sera masqué pour les autres membres. Réversible à tout moment.',
|
||||
'admin.confirmUnsuspendTitle': 'Réactiver ce compte ?',
|
||||
'admin.confirmUnsuspendMsg': 'Son profil redeviendra visible.',
|
||||
'admin.loadError': 'Impossible de charger les données.',
|
||||
'settings.topNone': 'Aucune catégorie : la section Top 5 est masquée.',
|
||||
'settings.backup': 'Sauvegarde',
|
||||
'settings.export': 'Exporter mes données',
|
||||
@@ -867,16 +827,8 @@ const dict = {
|
||||
"crash.retry": "Réessayer",
|
||||
"crash.privacy": "Quand l'app est en ligne, le problème nous est signalé automatiquement, sans aucune donnée personnelle.",
|
||||
"bug.title": "Signaler un bug",
|
||||
"bug.hint": "Décris le problème, on s'en occupe",
|
||||
"bug.hintLocal": "Contacte-nous via contact@bobinoo.org",
|
||||
"bug.intro": "Explique ce qui s'est passé et ce que tu attendais. Plus c'est précis, plus c'est rapide à corriger.",
|
||||
"bug.description": "Description",
|
||||
"bug.placeholder": "Ex. : en ouvrant une série depuis l'accueil, la liste des épisodes reste vide…",
|
||||
"bug.techTitle": "Infos techniques jointes",
|
||||
"bug.techPrivacy": "Rien de personnel : ni ton e-mail, ni ta bibliothèque. L'équipe voit ton pseudo pour pouvoir te répondre.",
|
||||
"bug.send": "Envoyer",
|
||||
"bug.thanks": "Merci !",
|
||||
"bug.thanksText": "Ton signalement a bien été envoyé. On le regarde au plus vite.",
|
||||
"bug.info.version": "Version",
|
||||
"bug.info.browser": "Navigateur",
|
||||
"bug.info.os": "Système",
|
||||
@@ -893,7 +845,6 @@ const dict = {
|
||||
"report.titleProfile": "Signaler ce profil",
|
||||
"report.titleComment": "Signaler ce commentaire",
|
||||
"report.titleList": "Signaler cette liste",
|
||||
"report.intro": "La personne concernée ne saura pas qui l'a signalée. L'équipe de modération examinera ton signalement.",
|
||||
"report.reason": "Motif",
|
||||
"report.reason.spoiler": "Spoiler non signalé",
|
||||
"report.reason.harassment": "Harcèlement ou intimidation",
|
||||
@@ -903,15 +854,6 @@ const dict = {
|
||||
"report.reason.impersonation": "Usurpation d'identité",
|
||||
"report.reason.other": "Autre",
|
||||
"report.details": "Précision (facultatif)",
|
||||
"report.detailsPlaceholder": "Ajoute un contexte utile pour la modération…",
|
||||
"report.send": "Envoyer",
|
||||
"report.privacy": "Les signalements abusifs peuvent entraîner la suspension de ton compte.",
|
||||
"report.thanks": "Merci pour ton signalement",
|
||||
"report.already": "Déjà signalé",
|
||||
"report.thanksText": "L'équipe de modération va l'examiner. Tu peux aussi bloquer ce compte depuis son profil.",
|
||||
"report.errRate": "Trop de signalements pour aujourd'hui. Réessaie demain.",
|
||||
"report.errNotFound": "Ce contenu n'existe plus ou ne t'est plus visible.",
|
||||
"report.errUnavailable": "Le signalement n'est pas encore disponible. Réessaie plus tard.",
|
||||
"block.block": "Bloquer",
|
||||
"block.unblock": "Débloquer",
|
||||
"block.done": "Compte bloqué : {name}",
|
||||
@@ -920,64 +862,6 @@ const dict = {
|
||||
"block.confirmTitle": "Bloquer {name} ?",
|
||||
"block.confirmText": "Vous ne vous suivrez plus l'un l'autre. Ce compte ne pourra plus te suivre ni réagir à tes avis, et ses avis te seront masqués. Il n'en est pas averti.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Signalements",
|
||||
"adminMod.tabSuspended": "Suspendus",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Erreurs",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Avis",
|
||||
"adminMod.typeProfile": "Profil",
|
||||
"adminMod.typeComment": "Commentaire",
|
||||
"adminMod.typeList": "Liste",
|
||||
"adminMod.reportCount_one": "{count} signalement",
|
||||
"adminMod.reportCount_other": "{count} signalements",
|
||||
"adminMod.repeat_one": "{count} contenu de ce compte signalé",
|
||||
"adminMod.repeat_other": "{count} contenus de ce compte signalés",
|
||||
"adminMod.contentGone": "Contenu effacé depuis — copie prise au moment du signalement :",
|
||||
"adminMod.noPreview": "Pas d'aperçu pour ce contenu (id {id}).",
|
||||
"adminMod.editedSince": "Modifié depuis le signalement — voir la version signalée",
|
||||
"adminMod.reportsDetail_one": "Voir le signalement",
|
||||
"adminMod.reportsDetail_other": "Voir les {count} derniers signalements",
|
||||
"adminMod.resetProfile": "Réinitialiser le profil",
|
||||
"adminMod.deleteContent": "Supprimer le contenu",
|
||||
"adminMod.resolve": "Marquer résolu",
|
||||
"adminMod.dismiss": "Classer sans suite",
|
||||
"adminMod.statusResolved": "Résolu",
|
||||
"adminMod.statusDismissed": "Classé sans suite",
|
||||
"adminMod.open": "À traiter",
|
||||
"adminMod.closed": "Traités",
|
||||
"adminMod.actionFailed": "Action impossible : {error}",
|
||||
"adminMod.migrationHint": "La migration SQL de modération n'est peut-être pas encore appliquée.",
|
||||
"adminMod.noOpen": "Aucun signalement en attente",
|
||||
"adminMod.noClosed": "Aucun signalement traité",
|
||||
"adminMod.confirmResetTitle": "Réinitialiser ce profil ?",
|
||||
"adminMod.confirmResetMsg": "La bio, la photo et la bannière seront effacées, et le nom affiché remplacé par le pseudo.",
|
||||
"adminMod.confirm": "Confirmer",
|
||||
"adminMod.noSuspended": "Aucun compte suspendu",
|
||||
"adminMod.suspendedOn": "Suspendu le {date}",
|
||||
"adminMod.suspendedUnknown": "Date de suspension inconnue",
|
||||
"adminMod.bugNew": "Nouveau",
|
||||
"adminMod.bugInProgress": "En cours",
|
||||
"adminMod.bugFixed": "Corrigé",
|
||||
"adminMod.all": "Tous",
|
||||
"adminMod.noBugs": "Aucun bug signalé",
|
||||
"adminMod.srcError": "Erreur JS",
|
||||
"adminMod.srcRejection": "Promesse rejetée",
|
||||
"adminMod.srcRender": "Plantage d'affichage",
|
||||
"adminMod.errNew": "Nouvelle",
|
||||
"adminMod.errFixed": "Corrigée",
|
||||
"adminMod.firstSeen": "Vue la 1re fois le {date}",
|
||||
"adminMod.stack": "Pile d'appels et navigateur",
|
||||
"adminMod.markFixed": "Marquer corrigée",
|
||||
"adminMod.forget": "Oublier",
|
||||
"adminMod.noErrors": "Aucune erreur remontée",
|
||||
"adminMod.noErrorsHint": "Les erreurs de l'app (sans donnée personnelle) apparaîtront ici.",
|
||||
"adminMod.alertReports_one": "{count} signalement",
|
||||
"adminMod.alertReports_other": "{count} signalements",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} nouvelle erreur",
|
||||
"adminMod.alertErrors_other": "{count} nouvelles erreurs",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Contient des spoilers",
|
||||
'spoiler.checkboxHint': "Ton avis sera masqué chez les autres jusqu’à ce qu’ils choisissent de le lire.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'अभी कोई समीक्षा नहीं',
|
||||
'reviews.seeAll': 'सभी समीक्षाएँ देखें',
|
||||
'notif.someone': 'किसी ने',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'कोई कैटेगरी नहीं: टॉप 5 सेक्शन छिपा हुआ है।',
|
||||
'settings.backup': 'बैकअप',
|
||||
'settings.export': 'मेरा डेटा एक्सपोर्ट करें',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "फिर से कोशिश करें",
|
||||
"crash.privacy": "ऐप ऑनलाइन होने पर समस्या हमें अपने आप, बिना किसी निजी डेटा के, भेज दी जाती है।",
|
||||
"bug.title": "बग रिपोर्ट करें",
|
||||
"bug.hint": "समस्या बताइए, हम देख लेंगे",
|
||||
"bug.hintLocal": "contact@bobinoo.org के ज़रिए संपर्क करें",
|
||||
"bug.intro": "बताइए क्या हुआ और आप क्या उम्मीद कर रहे थे। जितना सटीक, उतना जल्दी सुधार।",
|
||||
"bug.description": "विवरण",
|
||||
"bug.placeholder": "जैसे: होम से कोई सीरीज़ खोलने पर एपिसोड की सूची खाली रहती है…",
|
||||
"bug.techTitle": "संलग्न तकनीकी जानकारी",
|
||||
"bug.techPrivacy": "कुछ भी निजी नहीं: न आपका ईमेल, न आपकी लाइब्रेरी। जवाब देने के लिए टीम आपका यूज़रनेम देखती है।",
|
||||
"bug.send": "भेजें",
|
||||
"bug.thanks": "धन्यवाद!",
|
||||
"bug.thanksText": "आपकी रिपोर्ट भेज दी गई है। हम इसे जल्द से जल्द देखेंगे।",
|
||||
"bug.info.version": "संस्करण",
|
||||
"bug.info.browser": "ब्राउज़र",
|
||||
"bug.info.os": "सिस्टम",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "इस प्रोफ़ाइल की रिपोर्ट करें",
|
||||
"report.titleComment": "इस टिप्पणी की रिपोर्ट करें",
|
||||
"report.titleList": "इस सूची की रिपोर्ट करें",
|
||||
"report.intro": "संबंधित व्यक्ति को पता नहीं चलेगा कि रिपोर्ट किसने की। मॉडरेशन टीम आपकी रिपोर्ट की जाँच करेगी।",
|
||||
"report.reason": "कारण",
|
||||
"report.reason.spoiler": "बिना चेतावनी का स्पॉइलर",
|
||||
"report.reason.harassment": "उत्पीड़न या धमकाना",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "किसी और का रूप धारण करना",
|
||||
"report.reason.other": "अन्य",
|
||||
"report.details": "विवरण (वैकल्पिक)",
|
||||
"report.detailsPlaceholder": "मॉडरेशन के लिए उपयोगी संदर्भ जोड़ें…",
|
||||
"report.send": "भेजें",
|
||||
"report.privacy": "गलत इरादे से की गई रिपोर्ट आपके खाते को निलंबित करवा सकती है।",
|
||||
"report.thanks": "रिपोर्ट के लिए धन्यवाद",
|
||||
"report.already": "पहले ही रिपोर्ट किया जा चुका है",
|
||||
"report.thanksText": "मॉडरेशन टीम इसकी जाँच करेगी। आप इस खाते को उसकी प्रोफ़ाइल से ब्लॉक भी कर सकते हैं।",
|
||||
"report.errRate": "आज बहुत सारी रिपोर्ट हो गईं। कल फिर कोशिश करें।",
|
||||
"report.errNotFound": "यह सामग्री अब मौजूद नहीं है या अब आपको दिखाई नहीं देती।",
|
||||
"report.errUnavailable": "रिपोर्ट करना अभी उपलब्ध नहीं है। बाद में कोशिश करें।",
|
||||
"block.block": "ब्लॉक करें",
|
||||
"block.unblock": "अनब्लॉक करें",
|
||||
"block.done": "खाता ब्लॉक किया गया: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "{name} को ब्लॉक करें?",
|
||||
"block.confirmText": "आप एक-दूसरे को फ़ॉलो नहीं करेंगे। यह खाता आपको फ़ॉलो नहीं कर पाएगा और न ही आपकी समीक्षाओं पर प्रतिक्रिया दे पाएगा, और इसकी समीक्षाएँ आपसे छिपा दी जाएँगी। उसे कोई सूचना नहीं मिलेगी।",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "इसमें स्पॉइलर हैं",
|
||||
'spoiler.checkboxHint': "आपका रिव्यू दूसरों से तब तक छिपा रहेगा जब तक वे उसे पढ़ना न चुनें।",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Belum ada ulasan',
|
||||
'reviews.seeAll': 'Lihat semua ulasan',
|
||||
'notif.someone': 'Seseorang',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Tidak ada kategori: bagian Top 5 disembunyikan.',
|
||||
'settings.backup': 'Cadangan',
|
||||
'settings.export': 'Ekspor dataku',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Coba lagi",
|
||||
"crash.privacy": "Saat aplikasi online, masalah dilaporkan ke kami secara otomatis, tanpa data pribadi apa pun.",
|
||||
"bug.title": "Laporkan bug",
|
||||
"bug.hint": "Jelaskan masalahnya, kami akan menanganinya",
|
||||
"bug.hintLocal": "Hubungi kami lewat contact@bobinoo.org",
|
||||
"bug.intro": "Jelaskan apa yang terjadi dan apa yang kamu harapkan. Semakin jelas, semakin cepat diperbaiki.",
|
||||
"bug.description": "Deskripsi",
|
||||
"bug.placeholder": "Mis.: saat membuka serial dari Beranda, daftar episode tetap kosong…",
|
||||
"bug.techTitle": "Info teknis terlampir",
|
||||
"bug.techPrivacy": "Tidak ada yang pribadi: bukan emailmu, bukan pustakamu. Tim melihat nama penggunamu agar bisa membalas.",
|
||||
"bug.send": "Kirim",
|
||||
"bug.thanks": "Terima kasih!",
|
||||
"bug.thanksText": "Laporanmu sudah terkirim. Kami akan memeriksanya secepatnya.",
|
||||
"bug.info.version": "Versi",
|
||||
"bug.info.browser": "Peramban",
|
||||
"bug.info.os": "Sistem",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Laporkan profil ini",
|
||||
"report.titleComment": "Laporkan komentar ini",
|
||||
"report.titleList": "Laporkan daftar ini",
|
||||
"report.intro": "Orang tersebut tidak akan tahu siapa yang melaporkannya. Tim moderasi akan meninjau laporanmu.",
|
||||
"report.reason": "Alasan",
|
||||
"report.reason.spoiler": "Spoiler tanpa peringatan",
|
||||
"report.reason.harassment": "Pelecehan atau perundungan",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Peniruan identitas",
|
||||
"report.reason.other": "Lainnya",
|
||||
"report.details": "Detail (opsional)",
|
||||
"report.detailsPlaceholder": "Tambahkan konteks yang berguna untuk moderasi…",
|
||||
"report.send": "Kirim",
|
||||
"report.privacy": "Laporan yang disalahgunakan dapat membuat akunmu ditangguhkan.",
|
||||
"report.thanks": "Terima kasih atas laporanmu",
|
||||
"report.already": "Sudah dilaporkan",
|
||||
"report.thanksText": "Tim moderasi akan meninjaunya. Kamu juga bisa memblokir akun ini dari profilnya.",
|
||||
"report.errRate": "Terlalu banyak laporan hari ini. Coba lagi besok.",
|
||||
"report.errNotFound": "Konten ini sudah tidak ada atau tidak lagi terlihat olehmu.",
|
||||
"report.errUnavailable": "Fitur laporan belum tersedia. Coba lagi nanti.",
|
||||
"block.block": "Blokir",
|
||||
"block.unblock": "Buka blokir",
|
||||
"block.done": "Akun diblokir: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "Blokir {name}?",
|
||||
"block.confirmText": "Kalian tidak akan saling mengikuti lagi. Akun ini tidak bisa mengikutimu atau bereaksi pada ulasanmu, dan ulasannya akan disembunyikan darimu. Akun ini tidak diberi tahu.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Mengandung spoiler",
|
||||
'spoiler.checkboxHint': "Ulasanmu akan disembunyikan dari orang lain sampai mereka memilih untuk membacanya.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Ancora nessuna recensione',
|
||||
'reviews.seeAll': 'Vedi tutte le recensioni',
|
||||
'notif.someone': 'Qualcuno',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Nessuna categoria: la sezione Top 5 è nascosta.',
|
||||
'settings.backup': 'Backup',
|
||||
'settings.export': 'Esporta i miei dati',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Riprova",
|
||||
"crash.privacy": "Quando l'app è online, il problema ci viene segnalato automaticamente, senza alcun dato personale.",
|
||||
"bug.title": "Segnala un bug",
|
||||
"bug.hint": "Descrivi il problema, ce ne occupiamo noi",
|
||||
"bug.hintLocal": "Contattaci tramite contact@bobinoo.org",
|
||||
"bug.intro": "Spiega cosa è successo e cosa ti aspettavi. Più sei preciso, più la correzione è rapida.",
|
||||
"bug.description": "Descrizione",
|
||||
"bug.placeholder": "Es.: aprendo una serie dalla Home, l'elenco degli episodi resta vuoto…",
|
||||
"bug.techTitle": "Informazioni tecniche allegate",
|
||||
"bug.techPrivacy": "Niente di personale: né la tua email né la tua libreria. Il team vede il tuo nome utente per poterti rispondere.",
|
||||
"bug.send": "Invia",
|
||||
"bug.thanks": "Grazie!",
|
||||
"bug.thanksText": "La tua segnalazione è stata inviata. La esamineremo al più presto.",
|
||||
"bug.info.version": "Versione",
|
||||
"bug.info.browser": "Browser",
|
||||
"bug.info.os": "Sistema",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Segnala questo profilo",
|
||||
"report.titleComment": "Segnala questo commento",
|
||||
"report.titleList": "Segnala questa lista",
|
||||
"report.intro": "La persona non saprà chi l'ha segnalata. Il team di moderazione esaminerà la tua segnalazione.",
|
||||
"report.reason": "Motivo",
|
||||
"report.reason.spoiler": "Spoiler non segnalato",
|
||||
"report.reason.harassment": "Molestie o bullismo",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Furto d'identità",
|
||||
"report.reason.other": "Altro",
|
||||
"report.details": "Dettagli (facoltativo)",
|
||||
"report.detailsPlaceholder": "Aggiungi un contesto utile alla moderazione…",
|
||||
"report.send": "Invia",
|
||||
"report.privacy": "Le segnalazioni abusive possono portare alla sospensione del tuo account.",
|
||||
"report.thanks": "Grazie per la segnalazione",
|
||||
"report.already": "Già segnalato",
|
||||
"report.thanksText": "Il team di moderazione la esaminerà. Puoi anche bloccare questo account dal suo profilo.",
|
||||
"report.errRate": "Troppe segnalazioni per oggi. Riprova domani.",
|
||||
"report.errNotFound": "Questo contenuto non esiste più o non è più visibile per te.",
|
||||
"report.errUnavailable": "Le segnalazioni non sono ancora disponibili. Riprova più tardi.",
|
||||
"block.block": "Blocca",
|
||||
"block.unblock": "Sblocca",
|
||||
"block.done": "Account bloccato: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "Bloccare {name}?",
|
||||
"block.confirmText": "Non vi seguirete più. Questo account non potrà seguirti né reagire alle tue recensioni, e le sue recensioni ti saranno nascoste. Non riceverà alcun avviso.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Contiene spoiler",
|
||||
'spoiler.checkboxHint': "La tua recensione sarà nascosta agli altri finché non sceglieranno di leggerla.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'まだレビューがありません',
|
||||
'reviews.seeAll': 'すべてのレビューを見る',
|
||||
'notif.someone': '誰か',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'カテゴリーなし:トップ5は非表示になります。',
|
||||
'settings.backup': 'バックアップ',
|
||||
'settings.export': 'データをエクスポート',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "もう一度試す",
|
||||
"crash.privacy": "アプリがオンラインのとき、問題は個人データを含めずに自動で報告されます。",
|
||||
"bug.title": "不具合を報告",
|
||||
"bug.hint": "問題を教えてください。対応します",
|
||||
"bug.hintLocal": "contact@bobinoo.org からお問い合わせください",
|
||||
"bug.intro": "何が起きたか、どうなるはずだったかを説明してください。詳しいほど早く直せます。",
|
||||
"bug.description": "説明",
|
||||
"bug.placeholder": "例:ホームからシリーズを開くと、エピソード一覧が空のままになる…",
|
||||
"bug.techTitle": "添付される技術情報",
|
||||
"bug.techPrivacy": "個人的な情報は含まれません:メールアドレスもライブラリも送られません。返信のため、チームにはユーザー名が表示されます。",
|
||||
"bug.send": "送信",
|
||||
"bug.thanks": "ありがとうございます!",
|
||||
"bug.thanksText": "報告を送信しました。できるだけ早く確認します。",
|
||||
"bug.info.version": "バージョン",
|
||||
"bug.info.browser": "ブラウザ",
|
||||
"bug.info.os": "システム",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "このプロフィールを報告",
|
||||
"report.titleComment": "このコメントを報告",
|
||||
"report.titleList": "このリストを報告",
|
||||
"report.intro": "相手に誰が報告したかは伝わりません。モデレーションチームが報告を確認します。",
|
||||
"report.reason": "理由",
|
||||
"report.reason.spoiler": "ネタバレ表示なし",
|
||||
"report.reason.harassment": "嫌がらせ・いじめ",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "なりすまし",
|
||||
"report.reason.other": "その他",
|
||||
"report.details": "詳細(任意)",
|
||||
"report.detailsPlaceholder": "モデレーションに役立つ情報を追加…",
|
||||
"report.send": "送信",
|
||||
"report.privacy": "不当な報告を繰り返すとアカウントが停止される場合があります。",
|
||||
"report.thanks": "報告ありがとうございます",
|
||||
"report.already": "報告済み",
|
||||
"report.thanksText": "モデレーションチームが確認します。このアカウントはプロフィールからブロックすることもできます。",
|
||||
"report.errRate": "今日の報告数が多すぎます。明日もう一度お試しください。",
|
||||
"report.errNotFound": "このコンテンツは存在しないか、表示できなくなりました。",
|
||||
"report.errUnavailable": "報告機能はまだ利用できません。しばらくしてからお試しください。",
|
||||
"block.block": "ブロック",
|
||||
"block.unblock": "ブロック解除",
|
||||
"block.done": "ブロックしました:{name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "{name} をブロックしますか?",
|
||||
"block.confirmText": "お互いのフォローは解除されます。このアカウントはあなたをフォローしたりレビューにリアクションしたりできなくなり、相手のレビューはあなたに表示されなくなります。相手には通知されません。",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "ネタバレを含む",
|
||||
'spoiler.checkboxHint': "あなたのレビューは、他の人が読むことを選ぶまで非表示になります。",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': '아직 리뷰가 없어요',
|
||||
'reviews.seeAll': '리뷰 모두 보기',
|
||||
'notif.someone': '누군가',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': '카테고리가 없어서 TOP 5 섹션이 숨겨져요.',
|
||||
'settings.backup': '백업',
|
||||
'settings.export': '데이터 내보내기',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "다시 시도",
|
||||
"crash.privacy": "앱이 온라인일 때 문제는 개인 정보 없이 자동으로 저희에게 보고돼요.",
|
||||
"bug.title": "버그 신고",
|
||||
"bug.hint": "문제를 알려 주시면 처리할게요",
|
||||
"bug.hintLocal": "contact@bobinoo.org로 문의하세요",
|
||||
"bug.intro": "무슨 일이 있었고 어떻게 될 거라 예상했는지 설명해 주세요. 자세할수록 빨리 고칠 수 있어요.",
|
||||
"bug.description": "설명",
|
||||
"bug.placeholder": "예: 홈에서 시리즈를 열면 에피소드 목록이 비어 있어요…",
|
||||
"bug.techTitle": "첨부되는 기술 정보",
|
||||
"bug.techPrivacy": "개인 정보는 없어요: 이메일도, 라이브러리도 보내지 않아요. 답변을 위해 팀에는 사용자 이름이 보여요.",
|
||||
"bug.send": "보내기",
|
||||
"bug.thanks": "감사합니다!",
|
||||
"bug.thanksText": "신고가 전송됐어요. 최대한 빨리 확인할게요.",
|
||||
"bug.info.version": "버전",
|
||||
"bug.info.browser": "브라우저",
|
||||
"bug.info.os": "시스템",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "이 프로필 신고",
|
||||
"report.titleComment": "이 댓글 신고",
|
||||
"report.titleList": "이 리스트 신고",
|
||||
"report.intro": "상대방은 누가 신고했는지 알 수 없어요. 운영팀이 신고를 검토할게요.",
|
||||
"report.reason": "사유",
|
||||
"report.reason.spoiler": "표시 없는 스포일러",
|
||||
"report.reason.harassment": "괴롭힘 또는 따돌림",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "사칭",
|
||||
"report.reason.other": "기타",
|
||||
"report.details": "상세 내용 (선택)",
|
||||
"report.detailsPlaceholder": "운영에 도움이 되는 맥락을 추가해 주세요…",
|
||||
"report.send": "보내기",
|
||||
"report.privacy": "악의적인 신고는 계정 정지로 이어질 수 있어요.",
|
||||
"report.thanks": "신고해 주셔서 감사해요",
|
||||
"report.already": "이미 신고함",
|
||||
"report.thanksText": "운영팀이 검토할게요. 프로필에서 이 계정을 차단할 수도 있어요.",
|
||||
"report.errRate": "오늘 신고 횟수가 너무 많아요. 내일 다시 시도해 주세요.",
|
||||
"report.errNotFound": "이 콘텐츠는 더 이상 없거나 볼 수 없어요.",
|
||||
"report.errUnavailable": "신고 기능을 아직 사용할 수 없어요. 나중에 다시 시도해 주세요.",
|
||||
"block.block": "차단",
|
||||
"block.unblock": "차단 해제",
|
||||
"block.done": "계정을 차단했어요: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "{name} 님을 차단할까요?",
|
||||
"block.confirmText": "서로 팔로우가 해제돼요. 이 계정은 나를 팔로우하거나 내 리뷰에 반응할 수 없고, 이 계정의 리뷰는 나에게 숨겨져요. 상대방에게 알림은 가지 않아요.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "스포일러 포함",
|
||||
'spoiler.checkboxHint': "다른 사람이 직접 읽기로 선택할 때까지 리뷰가 가려집니다.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Nog geen recensies',
|
||||
'reviews.seeAll': 'Alle recensies bekijken',
|
||||
'notif.someone': 'Iemand',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Geen categorieën: de Top 5-sectie is verborgen.',
|
||||
'settings.backup': 'Back-up',
|
||||
'settings.export': 'Mijn gegevens exporteren',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Opnieuw proberen",
|
||||
"crash.privacy": "Als de app online is, wordt het probleem automatisch aan ons gemeld, zonder persoonlijke gegevens.",
|
||||
"bug.title": "Bug melden",
|
||||
"bug.hint": "Beschrijf het probleem, wij zoeken het uit",
|
||||
"bug.hintLocal": "Neem contact op via contact@bobinoo.org",
|
||||
"bug.intro": "Leg uit wat er gebeurde en wat je verwachtte. Hoe preciezer, hoe sneller het opgelost is.",
|
||||
"bug.description": "Beschrijving",
|
||||
"bug.placeholder": "Bijv.: bij het openen van een serie vanaf Home blijft de afleveringslijst leeg…",
|
||||
"bug.techTitle": "Bijgevoegde technische info",
|
||||
"bug.techPrivacy": "Niets persoonlijks: niet je e-mail, niet je bibliotheek. Het team ziet je gebruikersnaam zodat het je kan antwoorden.",
|
||||
"bug.send": "Versturen",
|
||||
"bug.thanks": "Bedankt!",
|
||||
"bug.thanksText": "Je melding is verstuurd. We bekijken het zo snel mogelijk.",
|
||||
"bug.info.version": "Versie",
|
||||
"bug.info.browser": "Browser",
|
||||
"bug.info.os": "Systeem",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Dit profiel rapporteren",
|
||||
"report.titleComment": "Deze reactie rapporteren",
|
||||
"report.titleList": "Deze lijst rapporteren",
|
||||
"report.intro": "De persoon weet niet wie hem of haar heeft gerapporteerd. Het moderatieteam bekijkt je melding.",
|
||||
"report.reason": "Reden",
|
||||
"report.reason.spoiler": "Niet-aangegeven spoiler",
|
||||
"report.reason.harassment": "Intimidatie of pesten",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Identiteitsfraude",
|
||||
"report.reason.other": "Anders",
|
||||
"report.details": "Details (optioneel)",
|
||||
"report.detailsPlaceholder": "Voeg nuttige context toe voor de moderatie…",
|
||||
"report.send": "Versturen",
|
||||
"report.privacy": "Misbruik van meldingen kan leiden tot schorsing van je account.",
|
||||
"report.thanks": "Bedankt voor je melding",
|
||||
"report.already": "Al gerapporteerd",
|
||||
"report.thanksText": "Het moderatieteam gaat het bekijken. Je kunt dit account ook blokkeren via het profiel.",
|
||||
"report.errRate": "Te veel meldingen vandaag. Probeer het morgen opnieuw.",
|
||||
"report.errNotFound": "Deze inhoud bestaat niet meer of is niet meer zichtbaar voor jou.",
|
||||
"report.errUnavailable": "Rapporteren is nog niet beschikbaar. Probeer het later opnieuw.",
|
||||
"block.block": "Blokkeren",
|
||||
"block.unblock": "Deblokkeren",
|
||||
"block.done": "Account geblokkeerd: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "{name} blokkeren?",
|
||||
"block.confirmText": "Jullie volgen elkaar niet meer. Dit account kan je niet meer volgen of op je recensies reageren, en de recensies ervan worden voor jou verborgen. Het krijgt hier geen melding van.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Bevat spoilers",
|
||||
'spoiler.checkboxHint': "Je recensie wordt voor anderen verborgen tot ze ervoor kiezen hem te lezen.",
|
||||
|
||||
@@ -238,46 +238,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Jeszcze nie ma recenzji',
|
||||
'reviews.seeAll': 'Zobacz wszystkie recenzje',
|
||||
'notif.someone': 'Ktoś',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Brak kategorii: sekcja Top 5 jest ukryta.',
|
||||
'settings.backup': 'Kopia zapasowa',
|
||||
'settings.export': 'Eksportuj moje dane',
|
||||
@@ -957,16 +917,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Spróbuj ponownie",
|
||||
"crash.privacy": "Gdy aplikacja jest online, problem jest zgłaszany automatycznie, bez żadnych danych osobowych.",
|
||||
"bug.title": "Zgłoś błąd",
|
||||
"bug.hint": "Opisz problem, a my się nim zajmiemy",
|
||||
"bug.hintLocal": "Skontaktuj się przez contact@bobinoo.org",
|
||||
"bug.intro": "Wyjaśnij, co się stało i czego oczekiwałeś. Im dokładniej, tym szybsza poprawka.",
|
||||
"bug.description": "Opis",
|
||||
"bug.placeholder": "Np. po otwarciu serialu z ekranu głównego lista odcinków jest pusta…",
|
||||
"bug.techTitle": "Dołączone informacje techniczne",
|
||||
"bug.techPrivacy": "Nic osobistego: ani e-mail, ani biblioteka. Zespół widzi Twoją nazwę użytkownika, aby móc odpowiedzieć.",
|
||||
"bug.send": "Wyślij",
|
||||
"bug.thanks": "Dziękujemy!",
|
||||
"bug.thanksText": "Zgłoszenie zostało wysłane. Przyjrzymy się mu jak najszybciej.",
|
||||
"bug.info.version": "Wersja",
|
||||
"bug.info.browser": "Przeglądarka",
|
||||
"bug.info.os": "System",
|
||||
@@ -983,7 +935,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Zgłoś ten profil",
|
||||
"report.titleComment": "Zgłoś ten komentarz",
|
||||
"report.titleList": "Zgłoś tę listę",
|
||||
"report.intro": "Ta osoba nie dowie się, kto ją zgłosił. Zespół moderacji rozpatrzy Twoje zgłoszenie.",
|
||||
"report.reason": "Powód",
|
||||
"report.reason.spoiler": "Nieoznaczony spoiler",
|
||||
"report.reason.harassment": "Nękanie lub zastraszanie",
|
||||
@@ -993,15 +944,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Podszywanie się",
|
||||
"report.reason.other": "Inne",
|
||||
"report.details": "Szczegóły (opcjonalnie)",
|
||||
"report.detailsPlaceholder": "Dodaj kontekst przydatny dla moderacji…",
|
||||
"report.send": "Wyślij",
|
||||
"report.privacy": "Nadużywanie zgłoszeń może skutkować zawieszeniem konta.",
|
||||
"report.thanks": "Dziękujemy za zgłoszenie",
|
||||
"report.already": "Już zgłoszono",
|
||||
"report.thanksText": "Zespół moderacji je rozpatrzy. Możesz też zablokować to konto z poziomu jego profilu.",
|
||||
"report.errRate": "Zbyt wiele zgłoszeń dzisiaj. Spróbuj jutro.",
|
||||
"report.errNotFound": "Ta treść już nie istnieje lub nie jest już dla Ciebie widoczna.",
|
||||
"report.errUnavailable": "Zgłaszanie nie jest jeszcze dostępne. Spróbuj później.",
|
||||
"block.block": "Zablokuj",
|
||||
"block.unblock": "Odblokuj",
|
||||
"block.done": "Zablokowano konto: {name}",
|
||||
@@ -1010,64 +952,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "Zablokować {name}?",
|
||||
"block.confirmText": "Przestaniecie się obserwować. To konto nie będzie mogło Cię obserwować ani reagować na Twoje recenzje, a jego recenzje zostaną przed Tobą ukryte. Nie zostanie o tym powiadomione.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Zawiera spoilery",
|
||||
'spoiler.checkboxHint': "Twoja recenzja będzie ukryta dla innych, dopóki nie zdecydują się jej przeczytać.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Ainda sem avaliações',
|
||||
'reviews.seeAll': 'Ver todas as avaliações',
|
||||
'notif.someone': 'Alguém',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Nenhuma categoria: a seção Top 5 fica oculta.',
|
||||
'settings.backup': 'Backup',
|
||||
'settings.export': 'Exportar meus dados',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Tentar de novo",
|
||||
"crash.privacy": "Quando o app está online, o problema nos é informado automaticamente, sem nenhum dado pessoal.",
|
||||
"bug.title": "Relatar um bug",
|
||||
"bug.hint": "Descreva o problema e nós cuidamos disso",
|
||||
"bug.hintLocal": "Fale conosco em contact@bobinoo.org",
|
||||
"bug.intro": "Explique o que aconteceu e o que você esperava. Quanto mais preciso, mais rápida a correção.",
|
||||
"bug.description": "Descrição",
|
||||
"bug.placeholder": "Ex.: ao abrir uma série pela Início, a lista de episódios fica vazia…",
|
||||
"bug.techTitle": "Informações técnicas anexadas",
|
||||
"bug.techPrivacy": "Nada pessoal: nem seu e-mail, nem sua biblioteca. A equipe vê seu nome de usuário para poder responder.",
|
||||
"bug.send": "Enviar",
|
||||
"bug.thanks": "Obrigado!",
|
||||
"bug.thanksText": "Seu relato foi enviado. Vamos analisá-lo o quanto antes.",
|
||||
"bug.info.version": "Versão",
|
||||
"bug.info.browser": "Navegador",
|
||||
"bug.info.os": "Sistema",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Denunciar este perfil",
|
||||
"report.titleComment": "Denunciar este comentário",
|
||||
"report.titleList": "Denunciar esta lista",
|
||||
"report.intro": "A pessoa não saberá quem a denunciou. A equipe de moderação vai analisar sua denúncia.",
|
||||
"report.reason": "Motivo",
|
||||
"report.reason.spoiler": "Spoiler sem aviso",
|
||||
"report.reason.harassment": "Assédio ou intimidação",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Falsificação de identidade",
|
||||
"report.reason.other": "Outro",
|
||||
"report.details": "Detalhes (opcional)",
|
||||
"report.detailsPlaceholder": "Adicione um contexto útil para a moderação…",
|
||||
"report.send": "Enviar",
|
||||
"report.privacy": "Denúncias abusivas podem levar à suspensão da sua conta.",
|
||||
"report.thanks": "Obrigado pela denúncia",
|
||||
"report.already": "Já denunciado",
|
||||
"report.thanksText": "A equipe de moderação vai analisá-la. Você também pode bloquear esta conta pelo perfil dela.",
|
||||
"report.errRate": "Denúncias demais hoje. Tente novamente amanhã.",
|
||||
"report.errNotFound": "Este conteúdo não existe mais ou não está mais visível para você.",
|
||||
"report.errUnavailable": "As denúncias ainda não estão disponíveis. Tente mais tarde.",
|
||||
"block.block": "Bloquear",
|
||||
"block.unblock": "Desbloquear",
|
||||
"block.done": "Conta bloqueada: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "Bloquear {name}?",
|
||||
"block.confirmText": "Vocês deixarão de se seguir. Esta conta não poderá seguir você nem reagir às suas avaliações, e as avaliações dela ficarão ocultas para você. Ela não será avisada.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Contém spoilers",
|
||||
'spoiler.checkboxHint': "Sua resenha ficará oculta para os outros até que escolham lê-la.",
|
||||
|
||||
@@ -238,46 +238,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Пока нет отзывов',
|
||||
'reviews.seeAll': 'Смотреть все отзывы',
|
||||
'notif.someone': 'Кто-то',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Нет категорий: раздел «Топ 5» скрыт.',
|
||||
'settings.backup': 'Резервная копия',
|
||||
'settings.export': 'Экспортировать данные',
|
||||
@@ -957,16 +917,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Повторить",
|
||||
"crash.privacy": "Когда приложение онлайн, проблема сообщается нам автоматически, без каких-либо личных данных.",
|
||||
"bug.title": "Сообщить об ошибке",
|
||||
"bug.hint": "Опишите проблему, и мы разберёмся",
|
||||
"bug.hintLocal": "Свяжитесь с нами через contact@bobinoo.org",
|
||||
"bug.intro": "Объясните, что произошло и чего вы ожидали. Чем точнее, тем быстрее исправим.",
|
||||
"bug.description": "Описание",
|
||||
"bug.placeholder": "Например: при открытии сериала с главной список эпизодов остаётся пустым…",
|
||||
"bug.techTitle": "Прилагаемые технические данные",
|
||||
"bug.techPrivacy": "Ничего личного: ни e-mail, ни ваша библиотека. Команда видит ваше имя пользователя, чтобы ответить вам.",
|
||||
"bug.send": "Отправить",
|
||||
"bug.thanks": "Спасибо!",
|
||||
"bug.thanksText": "Ваше сообщение отправлено. Мы посмотрим его как можно скорее.",
|
||||
"bug.info.version": "Версия",
|
||||
"bug.info.browser": "Браузер",
|
||||
"bug.info.os": "Система",
|
||||
@@ -983,7 +935,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Пожаловаться на профиль",
|
||||
"report.titleComment": "Пожаловаться на комментарий",
|
||||
"report.titleList": "Пожаловаться на список",
|
||||
"report.intro": "Человек не узнает, кто на него пожаловался. Команда модерации рассмотрит вашу жалобу.",
|
||||
"report.reason": "Причина",
|
||||
"report.reason.spoiler": "Неотмеченный спойлер",
|
||||
"report.reason.harassment": "Травля или запугивание",
|
||||
@@ -993,15 +944,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Выдача себя за другого",
|
||||
"report.reason.other": "Другое",
|
||||
"report.details": "Подробности (необязательно)",
|
||||
"report.detailsPlaceholder": "Добавьте контекст, полезный для модерации…",
|
||||
"report.send": "Отправить",
|
||||
"report.privacy": "Злоупотребление жалобами может привести к блокировке вашего аккаунта.",
|
||||
"report.thanks": "Спасибо за жалобу",
|
||||
"report.already": "Уже отправлено",
|
||||
"report.thanksText": "Команда модерации её рассмотрит. Вы также можете заблокировать этот аккаунт в его профиле.",
|
||||
"report.errRate": "Слишком много жалоб за сегодня. Попробуйте завтра.",
|
||||
"report.errNotFound": "Этот контент больше не существует или больше вам не виден.",
|
||||
"report.errUnavailable": "Жалобы пока недоступны. Попробуйте позже.",
|
||||
"block.block": "Заблокировать",
|
||||
"block.unblock": "Разблокировать",
|
||||
"block.done": "Аккаунт заблокирован: {name}",
|
||||
@@ -1010,64 +952,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "Заблокировать {name}?",
|
||||
"block.confirmText": "Вы отпишетесь друг от друга. Этот аккаунт не сможет подписаться на вас или реагировать на ваши отзывы, а его отзывы будут скрыты от вас. Он не получит уведомления.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Содержит спойлеры",
|
||||
'spoiler.checkboxHint': "Ваш отзыв будет скрыт от других, пока они сами не решат его прочитать.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'ยังไม่มีรีวิว',
|
||||
'reviews.seeAll': 'ดูรีวิวทั้งหมด',
|
||||
'notif.someone': 'มีคน',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'ไม่มีหมวดหมู่ ส่วน Top 5 จะถูกซ่อน',
|
||||
'settings.backup': 'สำรองข้อมูล',
|
||||
'settings.export': 'ส่งออกข้อมูลของฉัน',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "ลองอีกครั้ง",
|
||||
"crash.privacy": "เมื่อแอปออนไลน์ ปัญหาจะถูกแจ้งให้เราทราบโดยอัตโนมัติ โดยไม่มีข้อมูลส่วนตัวใด ๆ",
|
||||
"bug.title": "รายงานบั๊ก",
|
||||
"bug.hint": "อธิบายปัญหา แล้วเราจะจัดการให้",
|
||||
"bug.hintLocal": "ติดต่อเราผ่าน contact@bobinoo.org",
|
||||
"bug.intro": "อธิบายว่าเกิดอะไรขึ้นและคุณคาดหวังอะไร ยิ่งละเอียด ยิ่งแก้ไขได้เร็ว",
|
||||
"bug.description": "รายละเอียด",
|
||||
"bug.placeholder": "เช่น: เมื่อเปิดซีรีส์จากหน้าแรก รายการตอนยังว่างอยู่…",
|
||||
"bug.techTitle": "ข้อมูลทางเทคนิคที่แนบมา",
|
||||
"bug.techPrivacy": "ไม่มีข้อมูลส่วนตัว: ไม่มีอีเมลหรือคลังของคุณ ทีมงานจะเห็นชื่อผู้ใช้ของคุณเพื่อตอบกลับ",
|
||||
"bug.send": "ส่ง",
|
||||
"bug.thanks": "ขอบคุณ!",
|
||||
"bug.thanksText": "ส่งรายงานของคุณแล้ว เราจะตรวจสอบโดยเร็วที่สุด",
|
||||
"bug.info.version": "เวอร์ชัน",
|
||||
"bug.info.browser": "เบราว์เซอร์",
|
||||
"bug.info.os": "ระบบ",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "รายงานโปรไฟล์นี้",
|
||||
"report.titleComment": "รายงานความคิดเห็นนี้",
|
||||
"report.titleList": "รายงานรายการนี้",
|
||||
"report.intro": "บุคคลนั้นจะไม่รู้ว่าใครรายงาน ทีมผู้ดูแลจะตรวจสอบรายงานของคุณ",
|
||||
"report.reason": "เหตุผล",
|
||||
"report.reason.spoiler": "สปอยล์โดยไม่เตือน",
|
||||
"report.reason.harassment": "การคุกคามหรือกลั่นแกล้ง",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "การแอบอ้างตัวตน",
|
||||
"report.reason.other": "อื่น ๆ",
|
||||
"report.details": "รายละเอียด (ไม่บังคับ)",
|
||||
"report.detailsPlaceholder": "เพิ่มบริบทที่เป็นประโยชน์ต่อการดูแล…",
|
||||
"report.send": "ส่ง",
|
||||
"report.privacy": "การรายงานในทางที่ผิดอาจทำให้บัญชีของคุณถูกระงับ",
|
||||
"report.thanks": "ขอบคุณสำหรับการรายงาน",
|
||||
"report.already": "รายงานแล้ว",
|
||||
"report.thanksText": "ทีมผู้ดูแลจะตรวจสอบ คุณยังสามารถบล็อกบัญชีนี้จากโปรไฟล์ได้",
|
||||
"report.errRate": "รายงานมากเกินไปสำหรับวันนี้ ลองใหม่พรุ่งนี้",
|
||||
"report.errNotFound": "เนื้อหานี้ไม่มีอยู่แล้วหรือคุณไม่สามารถมองเห็นได้อีกต่อไป",
|
||||
"report.errUnavailable": "ยังไม่สามารถใช้การรายงานได้ ลองใหม่ภายหลัง",
|
||||
"block.block": "บล็อก",
|
||||
"block.unblock": "เลิกบล็อก",
|
||||
"block.done": "บล็อกบัญชีแล้ว: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "บล็อก {name} ไหม?",
|
||||
"block.confirmText": "คุณจะไม่ได้ติดตามกันอีกต่อไป บัญชีนี้จะติดตามคุณหรือแสดงความรู้สึกต่อรีวิวของคุณไม่ได้ และรีวิวของบัญชีนี้จะถูกซ่อนจากคุณ โดยจะไม่มีการแจ้งเตือน",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "มีสปอยล์",
|
||||
'spoiler.checkboxHint': "รีวิวของคุณจะถูกซ่อนจากคนอื่นจนกว่าพวกเขาจะเลือกอ่าน",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Henüz yorum yok',
|
||||
'reviews.seeAll': 'Tüm yorumları gör',
|
||||
'notif.someone': 'Biri',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Kategori yok: Top 5 bölümü gizli.',
|
||||
'settings.backup': 'Yedekleme',
|
||||
'settings.export': 'Verilerimi dışa aktar',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Tekrar dene",
|
||||
"crash.privacy": "Uygulama çevrimiçiyken sorun bize otomatik olarak, hiçbir kişisel veri olmadan bildirilir.",
|
||||
"bug.title": "Hata bildir",
|
||||
"bug.hint": "Sorunu anlat, biz ilgilenelim",
|
||||
"bug.hintLocal": "contact@bobinoo.org üzerinden bize ulaş",
|
||||
"bug.intro": "Ne olduğunu ve ne beklediğini açıkla. Ne kadar net olursa düzeltme o kadar hızlı olur.",
|
||||
"bug.description": "Açıklama",
|
||||
"bug.placeholder": "Örn.: Ana sayfadan bir dizi açınca bölüm listesi boş kalıyor…",
|
||||
"bug.techTitle": "Eklenen teknik bilgiler",
|
||||
"bug.techPrivacy": "Kişisel bir şey yok: ne e-postan ne kitaplığın. Ekip sana yanıt verebilmek için kullanıcı adını görür.",
|
||||
"bug.send": "Gönder",
|
||||
"bug.thanks": "Teşekkürler!",
|
||||
"bug.thanksText": "Bildirimin gönderildi. En kısa sürede inceleyeceğiz.",
|
||||
"bug.info.version": "Sürüm",
|
||||
"bug.info.browser": "Tarayıcı",
|
||||
"bug.info.os": "Sistem",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Bu profili şikâyet et",
|
||||
"report.titleComment": "Bu yorumu şikâyet et",
|
||||
"report.titleList": "Bu listeyi şikâyet et",
|
||||
"report.intro": "Kişi kimin şikâyet ettiğini bilmeyecek. Moderasyon ekibi şikâyetini inceleyecek.",
|
||||
"report.reason": "Neden",
|
||||
"report.reason.spoiler": "Uyarısız spoiler",
|
||||
"report.reason.harassment": "Taciz veya zorbalık",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Kimliğe bürünme",
|
||||
"report.reason.other": "Diğer",
|
||||
"report.details": "Ayrıntılar (isteğe bağlı)",
|
||||
"report.detailsPlaceholder": "Moderasyon için faydalı bir bağlam ekle…",
|
||||
"report.send": "Gönder",
|
||||
"report.privacy": "Kötüye kullanılan şikâyetler hesabının askıya alınmasına yol açabilir.",
|
||||
"report.thanks": "Şikâyetin için teşekkürler",
|
||||
"report.already": "Zaten şikâyet edildi",
|
||||
"report.thanksText": "Moderasyon ekibi inceleyecek. Bu hesabı profilinden engelleyebilirsin de.",
|
||||
"report.errRate": "Bugün çok fazla şikâyet gönderdin. Yarın tekrar dene.",
|
||||
"report.errNotFound": "Bu içerik artık yok ya da artık sana görünmüyor.",
|
||||
"report.errUnavailable": "Şikâyet özelliği henüz kullanılamıyor. Daha sonra tekrar dene.",
|
||||
"block.block": "Engelle",
|
||||
"block.unblock": "Engeli kaldır",
|
||||
"block.done": "Hesap engellendi: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "{name} engellensin mi?",
|
||||
"block.confirmText": "Artık birbirinizi takip etmeyeceksiniz. Bu hesap seni takip edemeyecek ya da incelemelerine tepki veremeyecek; incelemeleri senden gizlenecek. Hesaba bildirim gitmez.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Spoiler içerir",
|
||||
'spoiler.checkboxHint': "İncelemen, başkaları okumayı seçene kadar gizlenecek.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': 'Chưa có đánh giá',
|
||||
'reviews.seeAll': 'Xem tất cả đánh giá',
|
||||
'notif.someone': 'Ai đó',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': 'Không có danh mục nào: mục Top 5 sẽ bị ẩn.',
|
||||
'settings.backup': 'Sao lưu',
|
||||
'settings.export': 'Xuất dữ liệu của tôi',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "Thử lại",
|
||||
"crash.privacy": "Khi ứng dụng trực tuyến, sự cố được tự động báo cho chúng tôi, không kèm dữ liệu cá nhân nào.",
|
||||
"bug.title": "Báo lỗi",
|
||||
"bug.hint": "Mô tả sự cố, chúng tôi sẽ xử lý",
|
||||
"bug.hintLocal": "Liên hệ qua contact@bobinoo.org",
|
||||
"bug.intro": "Giải thích điều đã xảy ra và điều bạn mong đợi. Càng chính xác, sửa càng nhanh.",
|
||||
"bug.description": "Mô tả",
|
||||
"bug.placeholder": "Ví dụ: khi mở một bộ phim từ Trang chủ, danh sách tập vẫn trống…",
|
||||
"bug.techTitle": "Thông tin kỹ thuật đính kèm",
|
||||
"bug.techPrivacy": "Không có gì cá nhân: không có email hay thư viện của bạn. Nhóm thấy tên người dùng của bạn để có thể trả lời.",
|
||||
"bug.send": "Gửi",
|
||||
"bug.thanks": "Cảm ơn!",
|
||||
"bug.thanksText": "Báo cáo của bạn đã được gửi. Chúng tôi sẽ xem sớm nhất có thể.",
|
||||
"bug.info.version": "Phiên bản",
|
||||
"bug.info.browser": "Trình duyệt",
|
||||
"bug.info.os": "Hệ thống",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "Báo cáo hồ sơ này",
|
||||
"report.titleComment": "Báo cáo bình luận này",
|
||||
"report.titleList": "Báo cáo danh sách này",
|
||||
"report.intro": "Người đó sẽ không biết ai đã báo cáo. Đội kiểm duyệt sẽ xem xét báo cáo của bạn.",
|
||||
"report.reason": "Lý do",
|
||||
"report.reason.spoiler": "Tiết lộ nội dung không cảnh báo",
|
||||
"report.reason.harassment": "Quấy rối hoặc bắt nạt",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "Mạo danh",
|
||||
"report.reason.other": "Khác",
|
||||
"report.details": "Chi tiết (không bắt buộc)",
|
||||
"report.detailsPlaceholder": "Thêm bối cảnh hữu ích cho việc kiểm duyệt…",
|
||||
"report.send": "Gửi",
|
||||
"report.privacy": "Báo cáo sai mục đích có thể khiến tài khoản của bạn bị tạm khóa.",
|
||||
"report.thanks": "Cảm ơn bạn đã báo cáo",
|
||||
"report.already": "Đã báo cáo",
|
||||
"report.thanksText": "Đội kiểm duyệt sẽ xem xét. Bạn cũng có thể chặn tài khoản này từ hồ sơ của họ.",
|
||||
"report.errRate": "Quá nhiều báo cáo hôm nay. Hãy thử lại vào ngày mai.",
|
||||
"report.errNotFound": "Nội dung này không còn tồn tại hoặc bạn không còn xem được.",
|
||||
"report.errUnavailable": "Tính năng báo cáo chưa khả dụng. Hãy thử lại sau.",
|
||||
"block.block": "Chặn",
|
||||
"block.unblock": "Bỏ chặn",
|
||||
"block.done": "Đã chặn tài khoản: {name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "Chặn {name}?",
|
||||
"block.confirmText": "Hai bạn sẽ không còn theo dõi nhau. Tài khoản này sẽ không thể theo dõi bạn hay bày tỏ cảm xúc với bài đánh giá của bạn, và bài đánh giá của họ sẽ bị ẩn với bạn. Họ sẽ không được thông báo.",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "Có tiết lộ nội dung",
|
||||
'spoiler.checkboxHint': "Bài đánh giá của bạn sẽ bị ẩn với người khác cho đến khi họ chọn đọc.",
|
||||
|
||||
@@ -234,46 +234,6 @@ const dict: Translations = {
|
||||
'reviews.none': '还没有评价',
|
||||
'reviews.seeAll': '查看全部评价',
|
||||
'notif.someone': '有人',
|
||||
'settings.admin': 'Administration',
|
||||
'admin.title': 'Administration',
|
||||
'admin.tabOverview': 'Overview',
|
||||
'admin.tabUsers': 'Users',
|
||||
'admin.tabReviews': 'Reviews',
|
||||
'admin.users': 'Users',
|
||||
'admin.public': 'Public',
|
||||
'admin.private': 'Private',
|
||||
'admin.suspended': 'Suspended',
|
||||
'admin.items': 'Titles',
|
||||
'admin.films': 'Films',
|
||||
'admin.series': 'Series',
|
||||
'admin.reviews': 'Reviews',
|
||||
'admin.follows': 'Follows',
|
||||
'admin.pending': 'Requests',
|
||||
'admin.media': 'Images',
|
||||
'admin.signups7': 'Signups (7d)',
|
||||
'admin.signups30': 'Signups (30d)',
|
||||
'admin.active7': 'Active (7d)',
|
||||
'admin.newItems7': 'Added (7d)',
|
||||
'admin.signupsChart': 'Signups — last 14 days',
|
||||
'admin.searchUsers': 'Search an account…',
|
||||
'admin.joined': 'Joined {date}',
|
||||
'admin.suspend': 'Suspend',
|
||||
'admin.unsuspend': 'Reactivate',
|
||||
'admin.suspendedBadge': 'Suspended',
|
||||
'admin.noUsers': 'No accounts',
|
||||
'admin.anon': '(no profile)',
|
||||
'admin.statItems': 'titles',
|
||||
'admin.statReviews': 'reviews',
|
||||
'admin.statFollowers': 'followers',
|
||||
'admin.clearReview': 'Clear review',
|
||||
'admin.noReviews': 'No reviews',
|
||||
'admin.confirmClearTitle': 'Clear this review?',
|
||||
'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.',
|
||||
'admin.confirmSuspendTitle': 'Suspend this account?',
|
||||
'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.',
|
||||
'admin.confirmUnsuspendTitle': 'Reactivate this account?',
|
||||
'admin.confirmUnsuspendMsg': 'Their profile will be visible again.',
|
||||
'admin.loadError': 'Could not load the data.',
|
||||
'settings.topNone': '未选择分类:Top 5 区域将被隐藏。',
|
||||
'settings.backup': '备份',
|
||||
'settings.export': '导出我的数据',
|
||||
@@ -865,16 +825,8 @@ const dict: Translations = {
|
||||
"crash.retry": "重试",
|
||||
"crash.privacy": "应用联网时,问题会自动报告给我们,不含任何个人数据。",
|
||||
"bug.title": "报告问题",
|
||||
"bug.hint": "描述问题,我们来处理",
|
||||
"bug.hintLocal": "通过 contact@bobinoo.org 联系我们",
|
||||
"bug.intro": "说明发生了什么以及你的预期。描述越准确,修复越快。",
|
||||
"bug.description": "描述",
|
||||
"bug.placeholder": "例如:从首页打开剧集时,剧集列表一直是空的……",
|
||||
"bug.techTitle": "附带的技术信息",
|
||||
"bug.techPrivacy": "不含任何个人信息:没有你的邮箱,也没有你的片库。团队会看到你的用户名以便回复你。",
|
||||
"bug.send": "发送",
|
||||
"bug.thanks": "谢谢!",
|
||||
"bug.thanksText": "你的报告已发送。我们会尽快查看。",
|
||||
"bug.info.version": "版本",
|
||||
"bug.info.browser": "浏览器",
|
||||
"bug.info.os": "系统",
|
||||
@@ -891,7 +843,6 @@ const dict: Translations = {
|
||||
"report.titleProfile": "举报这个主页",
|
||||
"report.titleComment": "举报这条评论",
|
||||
"report.titleList": "举报这个片单",
|
||||
"report.intro": "对方不会知道是谁举报的。审核团队会处理你的举报。",
|
||||
"report.reason": "原因",
|
||||
"report.reason.spoiler": "未标注的剧透",
|
||||
"report.reason.harassment": "骚扰或霸凌",
|
||||
@@ -901,15 +852,6 @@ const dict: Translations = {
|
||||
"report.reason.impersonation": "冒充他人",
|
||||
"report.reason.other": "其他",
|
||||
"report.details": "补充说明(可选)",
|
||||
"report.detailsPlaceholder": "补充对审核有帮助的背景……",
|
||||
"report.send": "发送",
|
||||
"report.privacy": "恶意举报可能导致你的账号被封禁。",
|
||||
"report.thanks": "感谢你的举报",
|
||||
"report.already": "已举报过",
|
||||
"report.thanksText": "审核团队会进行处理。你也可以在对方主页屏蔽这个账号。",
|
||||
"report.errRate": "今天的举报次数过多,请明天再试。",
|
||||
"report.errNotFound": "此内容已不存在或你已无法查看。",
|
||||
"report.errUnavailable": "举报功能暂不可用,请稍后再试。",
|
||||
"block.block": "屏蔽",
|
||||
"block.unblock": "取消屏蔽",
|
||||
"block.done": "已屏蔽:{name}",
|
||||
@@ -918,64 +860,6 @@ const dict: Translations = {
|
||||
"block.confirmTitle": "屏蔽 {name}?",
|
||||
"block.confirmText": "你们将互相取消关注。此账号将无法关注你或回应你的评价,其评价也会对你隐藏。对方不会收到通知。",
|
||||
// — Modération : administration (signalements, suspendus, bugs, erreurs) —
|
||||
"adminMod.tabReports": "Reports",
|
||||
"adminMod.tabSuspended": "Suspended",
|
||||
"adminMod.tabBugs": "Bugs",
|
||||
"adminMod.tabErrors": "Errors",
|
||||
"adminMod.adminBadge": "Admin",
|
||||
"adminMod.typeReview": "Review",
|
||||
"adminMod.typeProfile": "Profile",
|
||||
"adminMod.typeComment": "Comment",
|
||||
"adminMod.typeList": "List",
|
||||
"adminMod.reportCount_one": "{count} report",
|
||||
"adminMod.reportCount_other": "{count} reports",
|
||||
"adminMod.repeat_one": "{count} item from this account reported",
|
||||
"adminMod.repeat_other": "{count} items from this account reported",
|
||||
"adminMod.contentGone": "Content deleted since — copy taken when reported:",
|
||||
"adminMod.noPreview": "No preview for this content (id {id}).",
|
||||
"adminMod.editedSince": "Edited since it was reported — see the reported version",
|
||||
"adminMod.reportsDetail_one": "See the report",
|
||||
"adminMod.reportsDetail_other": "See the last {count} reports",
|
||||
"adminMod.resetProfile": "Reset profile",
|
||||
"adminMod.deleteContent": "Delete content",
|
||||
"adminMod.resolve": "Mark resolved",
|
||||
"adminMod.dismiss": "Dismiss",
|
||||
"adminMod.statusResolved": "Resolved",
|
||||
"adminMod.statusDismissed": "Dismissed",
|
||||
"adminMod.open": "Open",
|
||||
"adminMod.closed": "Handled",
|
||||
"adminMod.actionFailed": "Action failed: {error}",
|
||||
"adminMod.migrationHint": "The moderation SQL migration may not be applied yet.",
|
||||
"adminMod.noOpen": "No pending reports",
|
||||
"adminMod.noClosed": "No handled reports",
|
||||
"adminMod.confirmResetTitle": "Reset this profile?",
|
||||
"adminMod.confirmResetMsg": "The bio, photo and banner will be erased, and the display name replaced by the username.",
|
||||
"adminMod.confirm": "Confirm",
|
||||
"adminMod.noSuspended": "No suspended accounts",
|
||||
"adminMod.suspendedOn": "Suspended on {date}",
|
||||
"adminMod.suspendedUnknown": "Suspension date unknown",
|
||||
"adminMod.bugNew": "New",
|
||||
"adminMod.bugInProgress": "In progress",
|
||||
"adminMod.bugFixed": "Fixed",
|
||||
"adminMod.all": "All",
|
||||
"adminMod.noBugs": "No bugs reported",
|
||||
"adminMod.srcError": "JS error",
|
||||
"adminMod.srcRejection": "Unhandled rejection",
|
||||
"adminMod.srcRender": "Render crash",
|
||||
"adminMod.errNew": "New",
|
||||
"adminMod.errFixed": "Fixed",
|
||||
"adminMod.firstSeen": "First seen {date}",
|
||||
"adminMod.stack": "Stack trace and browser",
|
||||
"adminMod.markFixed": "Mark fixed",
|
||||
"adminMod.forget": "Forget",
|
||||
"adminMod.noErrors": "No errors reported",
|
||||
"adminMod.noErrorsHint": "App errors (without personal data) will show up here.",
|
||||
"adminMod.alertReports_one": "{count} report",
|
||||
"adminMod.alertReports_other": "{count} reports",
|
||||
"adminMod.alertBugs_one": "{count} bug",
|
||||
"adminMod.alertBugs_other": "{count} bugs",
|
||||
"adminMod.alertErrors_one": "{count} new error",
|
||||
"adminMod.alertErrors_other": "{count} new errors",
|
||||
// — Social : spoilers, commentaires sous les avis, listes partagées —
|
||||
'spoiler.checkbox': "包含剧透",
|
||||
'spoiler.checkboxHint': "你的评论会对其他人隐藏,直到他们选择阅读。",
|
||||
|
||||
+1
-1
@@ -51,7 +51,7 @@ export function browserInfo(ua = navigator.userAgent): { browser: string; os: st
|
||||
export const currentRoute = () => (location.hash.match(/^#\/[a-z-]{1,20}/i)?.[0] ?? '#/') || '#/'
|
||||
|
||||
/**
|
||||
* Infos techniques jointes à un signalement de bug (affichées avant l'envoi).
|
||||
* Infos techniques ajoutées en bas de l'e-mail « Signaler un bug ».
|
||||
* Rien de personnel : ni compte, ni e-mail, ni contenu de la bibliothèque.
|
||||
*/
|
||||
export function techInfo(theme: ThemeMode): Record<string, string> {
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
import { t } from '../../i18n'
|
||||
import { cloudFetch } from './api'
|
||||
|
||||
/**
|
||||
* Accès à la partie administration (réservée aux comptes de la table `admins`).
|
||||
* Toutes les fonctions appellent des RPC Supabase verrouillées côté serveur par is_admin() :
|
||||
* même en forçant l'URL, un non-admin reçoit une erreur.
|
||||
*/
|
||||
|
||||
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>
|
||||
}
|
||||
|
||||
export interface AdminOverview {
|
||||
users: number
|
||||
profiles: number
|
||||
public_profiles: number
|
||||
private_profiles: number
|
||||
suspended: number
|
||||
items: number
|
||||
reviews: number
|
||||
films: number
|
||||
series: number
|
||||
follows: number
|
||||
pending_follows: number
|
||||
media_files: number
|
||||
signups_7d: number
|
||||
signups_30d: number
|
||||
active_7d: number
|
||||
new_items_7d: number
|
||||
signups_by_day: { day: string; n: number }[]
|
||||
}
|
||||
|
||||
export interface AdminUser {
|
||||
id: string
|
||||
email: string | null
|
||||
created_at: string
|
||||
last_sign_in_at: string | null
|
||||
username: string | null
|
||||
display_name: string | null
|
||||
is_private: boolean | null
|
||||
suspended: boolean
|
||||
items: number
|
||||
reviews: number
|
||||
followers: number
|
||||
}
|
||||
|
||||
export interface AdminReview {
|
||||
item_id: string
|
||||
user_id: string
|
||||
updated_at: string
|
||||
username: string | null
|
||||
display_name: string | null
|
||||
suspended: boolean
|
||||
title: string | null
|
||||
type: string | null
|
||||
notes: string | null
|
||||
rating: number | null
|
||||
}
|
||||
|
||||
/** Le compte connecté est-il administrateur ? (false si l'app est en mode local sans compte) */
|
||||
export async function isAdmin(): Promise<boolean> {
|
||||
try {
|
||||
return (await rpc<boolean>('is_admin')) === true
|
||||
} catch {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
export const adminOverview = () => rpc<AdminOverview>('admin_overview')
|
||||
export const adminUsers = (q: string, offset = 0) => rpc<AdminUser[]>('admin_users', { q: q || null, p_offset: offset })
|
||||
export const adminRecentReviews = (offset = 0) => rpc<AdminReview[]>('admin_recent_reviews', { p_offset: offset })
|
||||
|
||||
export async function adminSetSuspended(userId: string, value: boolean): Promise<void> {
|
||||
await rpc('admin_set_suspended', { p_user: userId, p_value: value })
|
||||
}
|
||||
|
||||
export async function adminClearReview(userId: string, itemId: string): Promise<void> {
|
||||
await rpc('admin_clear_review', { p_user: userId, p_item: itemId })
|
||||
}
|
||||
@@ -1,266 +0,0 @@
|
||||
import { cleanText, isPlainObject, safeIso } from '../security'
|
||||
import { cloudFetch } from './api'
|
||||
import type { ReportReason, ReportTargetType } from './moderation'
|
||||
import { REPORT_REASONS } from './moderation'
|
||||
import { safeMediaUrl } from './social'
|
||||
|
||||
/**
|
||||
* Administration : modération (signalements, comptes suspendus), bugs signalés, erreurs de l'app.
|
||||
* Toutes les fonctions SQL appelées ici vérifient is_admin() côté serveur.
|
||||
* Les réponses sont relues champ par champ (un contenu signalé peut être piégé).
|
||||
*/
|
||||
|
||||
async function rpc(name: string, args: Record<string, unknown> = {}): Promise<unknown> {
|
||||
const res = await cloudFetch(`/rest/v1/rpc/${name}`, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify(args),
|
||||
})
|
||||
if (!res.ok) {
|
||||
const body = (await res.json().catch(() => ({}))) as { message?: unknown }
|
||||
throw new Error(typeof body.message === 'string' ? body.message.slice(0, 120) : `HTTP ${res.status}`)
|
||||
}
|
||||
const text = await res.text()
|
||||
return text ? JSON.parse(text) : null
|
||||
}
|
||||
|
||||
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
|
||||
const int = (v: unknown) => (typeof v === 'number' && Number.isFinite(v) ? Math.max(0, Math.floor(v)) : 0)
|
||||
const iso = (v: unknown) => safeIso(v) ?? new Date(0).toISOString()
|
||||
const list = (v: unknown) => (Array.isArray(v) ? v : [])
|
||||
|
||||
export interface AdminCard {
|
||||
id: string
|
||||
username: string
|
||||
displayName: string
|
||||
avatarUrl?: string
|
||||
suspended: boolean
|
||||
isAdmin: boolean
|
||||
}
|
||||
|
||||
function toCard(v: unknown): AdminCard | null {
|
||||
if (!isPlainObject(v) || typeof v.id !== 'string' || !UUID.test(v.id)) return null
|
||||
const username = cleanText(v.username, 20) ?? ''
|
||||
return {
|
||||
id: v.id,
|
||||
username,
|
||||
displayName: cleanText(v.display_name, 40) ?? username,
|
||||
avatarUrl: safeMediaUrl(v.avatar_url),
|
||||
suspended: v.suspended === true,
|
||||
isAdmin: v.is_admin === true,
|
||||
}
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Alertes (badge) */
|
||||
|
||||
export interface AdminAlerts {
|
||||
reports: number
|
||||
bugs: number
|
||||
errors: number
|
||||
suspended: number
|
||||
}
|
||||
|
||||
export async function adminAlerts(): Promise<AdminAlerts> {
|
||||
const r = await rpc('admin_alerts')
|
||||
const o = isPlainObject(r) ? r : {}
|
||||
return { reports: int(o.reports), bugs: int(o.bugs), errors: int(o.errors), suspended: int(o.suspended) }
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Signalements */
|
||||
|
||||
/** Contenu signalé (copie au moment du signalement, ou version actuelle). */
|
||||
export interface ReportedContent {
|
||||
title?: string
|
||||
notes?: string
|
||||
rating?: number
|
||||
username?: string
|
||||
displayName?: string
|
||||
bio?: string
|
||||
avatarUrl?: string
|
||||
}
|
||||
|
||||
export interface ReportEntry {
|
||||
reason: ReportReason
|
||||
details?: string
|
||||
createdAt: string
|
||||
reporter: AdminCard | null
|
||||
}
|
||||
|
||||
export interface ReportGroup {
|
||||
key: string
|
||||
targetType: ReportTargetType
|
||||
targetId: string
|
||||
targetUser: AdminCard | null
|
||||
total: number
|
||||
openCount: number
|
||||
firstAt: string
|
||||
lastAt: string
|
||||
status: 'open' | 'resolved' | 'dismissed'
|
||||
reasons: Partial<Record<ReportReason, number>>
|
||||
reports: ReportEntry[]
|
||||
snapshot?: ReportedContent
|
||||
/** null : le contenu n'existe plus (effacé) ; undefined : pas d'aperçu pour ce type */
|
||||
current?: ReportedContent | null
|
||||
/** Nombre de contenus différents de ce compte déjà signalés */
|
||||
userReportedTargets: number
|
||||
}
|
||||
|
||||
const TARGETS: ReportTargetType[] = ['review', 'profile', 'comment', 'list']
|
||||
const isReason = (v: unknown): v is ReportReason => (REPORT_REASONS as readonly unknown[]).includes(v)
|
||||
|
||||
function toContent(v: unknown): ReportedContent | undefined {
|
||||
if (!isPlainObject(v)) return undefined
|
||||
const rating = typeof v.rating === 'number' && v.rating > 0 && v.rating <= 10 ? v.rating : undefined
|
||||
return {
|
||||
title: cleanText(v.title, 200),
|
||||
notes: cleanText(v.notes, 3000),
|
||||
rating,
|
||||
username: cleanText(v.username, 20),
|
||||
displayName: cleanText(v.display_name, 40),
|
||||
bio: cleanText(v.bio, 300),
|
||||
avatarUrl: safeMediaUrl(v.avatar_url),
|
||||
}
|
||||
}
|
||||
|
||||
function toGroup(v: unknown): ReportGroup | null {
|
||||
if (!isPlainObject(v)) return null
|
||||
const targetType = TARGETS.find((x) => x === v.target_type)
|
||||
const targetId = cleanText(v.target_id, 200)
|
||||
if (!targetType || !targetId) return null
|
||||
const targetUser = toCard(v.target_user)
|
||||
const reasons: Partial<Record<ReportReason, number>> = {}
|
||||
if (isPlainObject(v.reasons)) for (const r of REPORT_REASONS) if (int(v.reasons[r]) > 0) reasons[r] = int(v.reasons[r])
|
||||
const status = v.status === 'resolved' || v.status === 'dismissed' ? v.status : 'open'
|
||||
return {
|
||||
key: `${targetType}:${targetId}:${targetUser?.id ?? ''}`,
|
||||
targetType,
|
||||
targetId,
|
||||
targetUser,
|
||||
total: int(v.total),
|
||||
openCount: int(v.open_count),
|
||||
firstAt: iso(v.first_at),
|
||||
lastAt: iso(v.last_at),
|
||||
status,
|
||||
reasons,
|
||||
reports: list(v.reports).flatMap((r) =>
|
||||
isPlainObject(r) && isReason(r.reason) ? [{ reason: r.reason, details: cleanText(r.details, 500), createdAt: iso(r.created_at), reporter: toCard(r.reporter) }] : [],
|
||||
),
|
||||
snapshot: toContent(v.snapshot),
|
||||
current: targetType === 'review' || targetType === 'profile' ? (toContent(v.current) ?? null) : undefined,
|
||||
userReportedTargets: int(v.user_reported_targets),
|
||||
}
|
||||
}
|
||||
|
||||
export const REPORTS_PAGE = 30
|
||||
|
||||
export async function adminReports(status: 'open' | 'closed', offset = 0): Promise<ReportGroup[]> {
|
||||
return list(await rpc('admin_reports', { p_status: status, p_offset: offset }))
|
||||
.map(toGroup)
|
||||
.filter((g): g is ReportGroup => g !== null)
|
||||
}
|
||||
|
||||
export type ReportAction = 'delete' | 'suspend' | 'unsuspend' | 'dismiss' | 'resolve'
|
||||
|
||||
export async function adminReportAction(g: Pick<ReportGroup, 'targetType' | 'targetId' | 'targetUser'>, action: ReportAction): Promise<void> {
|
||||
if (!g.targetUser) throw new Error('no target user')
|
||||
await rpc('admin_report_action', { p_type: g.targetType, p_target_id: g.targetId, p_target_user: g.targetUser.id, p_action: action })
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Comptes suspendus */
|
||||
|
||||
export interface SuspendedUser extends AdminCard {
|
||||
suspendedAt?: string
|
||||
suspendedBy?: string
|
||||
reports: number
|
||||
}
|
||||
|
||||
export async function adminSuspendedUsers(offset = 0): Promise<SuspendedUser[]> {
|
||||
return list(await rpc('admin_suspended_users', { p_offset: offset })).flatMap((r) => {
|
||||
const card = toCard(r)
|
||||
if (!card || !isPlainObject(r)) return []
|
||||
return [{ ...card, suspended: true, suspendedAt: safeIso(r.suspended_at), suspendedBy: cleanText(r.suspended_by, 20), reports: int(r.reports) }]
|
||||
})
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Bugs signalés */
|
||||
|
||||
export type BugStatus = 'new' | 'in_progress' | 'fixed'
|
||||
export const BUG_STATUSES: BugStatus[] = ['new', 'in_progress', 'fixed']
|
||||
|
||||
export interface BugReport {
|
||||
id: number
|
||||
description: string
|
||||
context: Record<string, string>
|
||||
status: BugStatus
|
||||
createdAt: string
|
||||
reporter: AdminCard | null
|
||||
}
|
||||
|
||||
export async function adminBugReports(status: BugStatus | null, offset = 0): Promise<BugReport[]> {
|
||||
return list(await rpc('admin_bug_reports', { p_status: status, p_offset: offset })).flatMap((r) => {
|
||||
if (!isPlainObject(r) || typeof r.id !== 'number') return []
|
||||
const description = cleanText(r.description, 2000)
|
||||
if (!description) return []
|
||||
const context: Record<string, string> = {}
|
||||
if (isPlainObject(r.context)) {
|
||||
for (const [k, v] of Object.entries(r.context).slice(0, 12)) {
|
||||
const val = cleanText(typeof v === 'string' ? v : String(v), 120)
|
||||
if (/^[a-z]{1,20}$/.test(k) && val) context[k] = val
|
||||
}
|
||||
}
|
||||
const status = BUG_STATUSES.find((s) => s === r.status) ?? 'new'
|
||||
return [{ id: r.id, description, context, status, createdAt: iso(r.created_at), reporter: toCard(r.reporter) }]
|
||||
})
|
||||
}
|
||||
|
||||
export async function adminSetBugStatus(id: number, status: BugStatus): Promise<void> {
|
||||
await rpc('admin_set_bug_status', { p_id: id, p_status: status })
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Erreurs de l'app */
|
||||
|
||||
export type ErrorStatus = 'new' | 'seen' | 'fixed'
|
||||
|
||||
export interface ClientError {
|
||||
fingerprint: string
|
||||
source: 'error' | 'rejection' | 'render'
|
||||
message: string
|
||||
stack?: string
|
||||
url?: string
|
||||
appVersion?: string
|
||||
userAgent?: string
|
||||
count: number
|
||||
status: ErrorStatus
|
||||
firstSeen: string
|
||||
lastSeen: string
|
||||
}
|
||||
|
||||
export async function adminClientErrors(offset = 0): Promise<ClientError[]> {
|
||||
return list(await rpc('admin_client_errors', { p_status: null, p_offset: offset })).flatMap((r) => {
|
||||
if (!isPlainObject(r) || typeof r.fingerprint !== 'string' || !/^[0-9a-f]{32}$/.test(r.fingerprint)) return []
|
||||
const message = cleanText(r.message, 500)
|
||||
if (!message) return []
|
||||
const source = r.source === 'rejection' || r.source === 'render' ? r.source : 'error'
|
||||
const status = r.status === 'seen' || r.status === 'fixed' ? r.status : 'new'
|
||||
return [
|
||||
{
|
||||
fingerprint: r.fingerprint,
|
||||
source,
|
||||
message,
|
||||
stack: cleanText(r.stack, 4000),
|
||||
url: cleanText(r.url, 300),
|
||||
appVersion: cleanText(r.app_version, 40),
|
||||
userAgent: cleanText(r.user_agent, 300),
|
||||
count: int(r.count),
|
||||
status,
|
||||
firstSeen: iso(r.first_seen),
|
||||
lastSeen: iso(r.last_seen),
|
||||
},
|
||||
]
|
||||
})
|
||||
}
|
||||
|
||||
/** fingerprint null + 'seen' : tout marquer comme vu. 'delete' : oublie l'erreur (elle revient si elle se reproduit). */
|
||||
export async function adminSetErrorStatus(fingerprint: string | null, status: ErrorStatus | 'delete'): Promise<void> {
|
||||
await rpc('admin_set_error_status', { p_fingerprint: fingerprint, p_status: status })
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import { safeMediaUrl } from './social'
|
||||
/**
|
||||
* Commentaires sous les avis. Lecture / écriture uniquement via les fonctions de la base
|
||||
* (get_review_comments, add_review_comment, delete_review_comment) qui vérifient les droits :
|
||||
* mêmes règles de visibilité que l'avis, anti-spam, suppression par l'auteur, l'auteur de l'avis ou un admin.
|
||||
* mêmes règles de visibilité que l'avis, anti-spam, suppression par l'auteur du commentaire ou celui de l'avis.
|
||||
*/
|
||||
|
||||
export const COMMENT_MAX = 500
|
||||
@@ -30,7 +30,7 @@ export interface ReviewComment {
|
||||
export interface CommentThread {
|
||||
/** L'avis existe et je peux le voir */
|
||||
visible: boolean
|
||||
/** Je peux supprimer tous les commentaires (auteur de l'avis ou admin) */
|
||||
/** Je peux supprimer tous les commentaires (je suis l'auteur de l'avis) */
|
||||
canModerate: boolean
|
||||
comments: ReviewComment[]
|
||||
}
|
||||
|
||||
@@ -6,12 +6,11 @@ import { getSession } from './auth'
|
||||
import { safeMediaUrl } from './social'
|
||||
|
||||
/**
|
||||
* Signalements, blocages et « Signaler un bug » (côté membre).
|
||||
* Tout passe par des fonctions SQL `security definer` qui vérifient les droits et limitent les abus
|
||||
* (voir supabase/migrations/20261009160000_moderation.sql et 20261009160100_bugs_errors.sql).
|
||||
* Blocages entre membres, et ce qu'on peut signaler (le signalement lui-même part par e-mail,
|
||||
* voir components/moderation/ReportButton.tsx). Les blocages passent par des fonctions SQL `security definer`.
|
||||
*/
|
||||
|
||||
/** Types de contenus signalables. 'comment' et 'list' : branchés par les fonctionnalités correspondantes. */
|
||||
/** Types de contenus signalables. */
|
||||
export type ReportTargetType = 'review' | 'profile' | 'comment' | 'list'
|
||||
|
||||
export interface ReportTarget {
|
||||
@@ -24,12 +23,6 @@ export interface ReportTarget {
|
||||
|
||||
export const REPORT_REASONS = ['spoiler', 'harassment', 'hate', 'sexual', 'spam', 'impersonation', 'other'] as const
|
||||
export type ReportReason = (typeof REPORT_REASONS)[number]
|
||||
export const REPORT_DETAILS_MAX = 500
|
||||
export const BUG_DESCRIPTION_MIN = 10
|
||||
export const BUG_DESCRIPTION_MAX = 2000
|
||||
|
||||
/** Erreur renvoyée par le serveur (message déjà traduit). */
|
||||
export class ModerationError extends Error {}
|
||||
|
||||
async function rpc<T>(name: string, args: Record<string, unknown> = {}): Promise<T> {
|
||||
const res = await cloudFetch(`/rest/v1/rpc/${name}`, {
|
||||
@@ -38,30 +31,13 @@ async function rpc<T>(name: string, args: Record<string, unknown> = {}): Promise
|
||||
body: JSON.stringify(args),
|
||||
})
|
||||
if (!res.ok) {
|
||||
const body = (await res.json().catch(() => ({}))) as { message?: unknown }
|
||||
const code = typeof body.message === 'string' ? body.message.slice(0, 40) : `http ${res.status}`
|
||||
const msg =
|
||||
code === 'rate limited' ? t('report.errRate') : code === 'not found' ? t('report.errNotFound') : res.status === 404 ? t('report.errUnavailable') : t('social.err.server', { status: res.status })
|
||||
throw new ModerationError(msg)
|
||||
await res.body?.cancel()
|
||||
throw new Error(t('social.err.server', { status: res.status }))
|
||||
}
|
||||
const text = await res.text()
|
||||
return (text ? JSON.parse(text) : null) as T
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Signalements */
|
||||
|
||||
/** Signale un contenu. `duplicate` : déjà signalé par moi (rien n'est ajouté). */
|
||||
export async function reportContent(target: ReportTarget, reason: ReportReason, details: string): Promise<{ duplicate: boolean }> {
|
||||
const res = await rpc<unknown>('report_content', {
|
||||
p_type: target.type,
|
||||
p_target_id: target.id,
|
||||
p_target_user: target.userId,
|
||||
p_reason: reason,
|
||||
p_details: details.trim().slice(0, REPORT_DETAILS_MAX) || null,
|
||||
})
|
||||
return { duplicate: isPlainObject(res) && res.duplicate === true }
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Blocages */
|
||||
|
||||
export interface BlockedUser {
|
||||
@@ -136,9 +112,3 @@ export async function unblockUser(userId: string): Promise<void> {
|
||||
blocked = blocked.filter((b) => b.id !== userId)
|
||||
emit()
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Signaler un bug */
|
||||
|
||||
export async function submitBugReport(description: string, context: Record<string, string>): Promise<void> {
|
||||
await rpc('submit_bug_report', { p_description: description.trim().slice(0, BUG_DESCRIPTION_MAX), p_context: context })
|
||||
}
|
||||
@@ -1,112 +0,0 @@
|
||||
import { SUPABASE_ANON_KEY, SUPABASE_URL, cloudEnabled } from './cloud/config'
|
||||
|
||||
/**
|
||||
* Remontée des erreurs de l'app (équivalent Sentry minimal, sans service tiers).
|
||||
* - capte window.onerror, les promesses rejetées non gérées et les plantages d'affichage React ;
|
||||
* - aucune donnée personnelle : e-mails, jetons, identifiants et paramètres d'URL sont retirés
|
||||
* (ici ET côté serveur), aucun identifiant de compte n'est envoyé ;
|
||||
* - dédoublonnage par empreinte (message + 1re ligne de pile) et 10 envois max par session ;
|
||||
* - le serveur (log_client_error) regroupe, compte et limite le débit par empreinte.
|
||||
*/
|
||||
|
||||
export type ErrorSource = 'error' | 'rejection' | 'render'
|
||||
|
||||
const MAX_PER_SESSION = 10
|
||||
const sent = new Set<string>()
|
||||
let budget = MAX_PER_SESSION
|
||||
let installed = false
|
||||
|
||||
/** Envoi activé : en production (ou en dev avec VITE_REPORT_ERRORS=1), et seulement avec Supabase. */
|
||||
const enabled = () => cloudEnabled && (import.meta.env.PROD || import.meta.env.VITE_REPORT_ERRORS === '1')
|
||||
|
||||
/** Retire ce qui pourrait identifier quelqu'un. */
|
||||
export function scrub(text: string, max: number): string {
|
||||
return (
|
||||
text
|
||||
// eslint-disable-next-line no-control-regex
|
||||
.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, '')
|
||||
.replace(/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}/g, '[email]')
|
||||
.replace(/eyJ[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+(\.[A-Za-z0-9_-]*)?/g, '[token]')
|
||||
.replace(/(sb_(publishable|secret)_|sk_|pk_)[A-Za-z0-9_-]+/g, '[key]')
|
||||
.replace(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/gi, '[id]')
|
||||
// Adresses : ni paramètres ni ancre (#/u/pseudo, ?code=…)
|
||||
.replace(/(https?:\/\/[^\s?#'"()]+)[?#][^\s'"()]*/g, '$1')
|
||||
.replace(/[A-Za-z0-9_-]{40,}/g, '[token]')
|
||||
.slice(0, max)
|
||||
)
|
||||
}
|
||||
|
||||
/** Petite empreinte locale (dédoublonnage dans la session ; le serveur recalcule la sienne). */
|
||||
function fingerprint(source: ErrorSource, message: string, stack: string): string {
|
||||
const frame = stack.split('\n').find((l) => /^\s*at |@/.test(l)) ?? ''
|
||||
const key = `${source}|${message.toLowerCase().replace(/\d+/g, '0')}|${frame.replace(/:\d+(:\d+)?/g, '')}`
|
||||
let h = 5381
|
||||
for (let i = 0; i < key.length; i++) h = ((h << 5) + h + key.charCodeAt(i)) | 0
|
||||
return (h >>> 0).toString(36)
|
||||
}
|
||||
|
||||
/** Erreurs sans intérêt (réseau coupé, extensions du navigateur, bruit connu des navigateurs). */
|
||||
function isNoise(message: string, stack: string): boolean {
|
||||
if (!message || message === 'Script error.' || message === 'Script error') return true
|
||||
if (/ResizeObserver loop|AbortError|The operation was aborted|^NetworkError|NetworkError when attempting|Failed to fetch$|Load failed$|cancelled|annulé/i.test(message)) return true
|
||||
if (/(chrome|moz|safari(-web)?)-extension:\/\//.test(stack)) return true
|
||||
return false
|
||||
}
|
||||
|
||||
function toParts(err: unknown): { message: string; stack: string } {
|
||||
if (err instanceof Error) return { message: `${err.name}: ${err.message}`, stack: err.stack ?? '' }
|
||||
if (typeof err === 'string') return { message: err, stack: '' }
|
||||
try {
|
||||
return { message: `Non-Error: ${JSON.stringify(err)?.slice(0, 200) ?? String(err)}`, stack: '' }
|
||||
} catch {
|
||||
return { message: 'Non-Error value', stack: '' }
|
||||
}
|
||||
}
|
||||
|
||||
/** Remonte une erreur (sans jamais lever d'erreur elle-même). */
|
||||
export function reportError(err: unknown, source: ErrorSource = 'error', extraStack = ''): void {
|
||||
try {
|
||||
if (!enabled() || budget <= 0) return
|
||||
const parts = toParts(err)
|
||||
const message = scrub(parts.message, 500).trim()
|
||||
const stack = scrub([parts.stack, extraStack].filter(Boolean).join('\n--- component stack ---\n'), 4000)
|
||||
if (isNoise(message, stack)) return
|
||||
if (!navigator.onLine) return
|
||||
const fp = fingerprint(source, message, stack)
|
||||
if (sent.has(fp)) return
|
||||
sent.add(fp)
|
||||
budget--
|
||||
const headers: Record<string, string> = { apikey: SUPABASE_ANON_KEY, 'Content-Type': 'application/json' }
|
||||
// Ancienne clé « anon » (JWT) : elle sert aussi de jeton. Les clés « sb_publishable_ » se passent de ce champ.
|
||||
if (SUPABASE_ANON_KEY.split('.').length === 3) headers.Authorization = `Bearer ${SUPABASE_ANON_KEY}`
|
||||
void fetch(`${SUPABASE_URL}/rest/v1/rpc/log_client_error`, {
|
||||
method: 'POST',
|
||||
headers,
|
||||
body: JSON.stringify({
|
||||
p_message: message,
|
||||
p_stack: stack || null,
|
||||
p_url: `${location.origin}${location.pathname}`,
|
||||
p_version: __APP_VERSION__,
|
||||
p_ua: navigator.userAgent.slice(0, 300),
|
||||
p_source: source,
|
||||
}),
|
||||
credentials: 'omit',
|
||||
referrerPolicy: 'no-referrer',
|
||||
keepalive: true,
|
||||
}).catch(() => {})
|
||||
} catch {
|
||||
/* la remontée d'erreurs ne doit jamais casser l'app */
|
||||
}
|
||||
}
|
||||
|
||||
/** À appeler une fois au démarrage. */
|
||||
export function installErrorReporting(): void {
|
||||
if (installed || typeof window === 'undefined') return
|
||||
installed = true
|
||||
window.addEventListener('error', (e) => {
|
||||
// Erreurs de chargement de ressources (image cassée…) : ignorées
|
||||
if (!(e instanceof ErrorEvent)) return
|
||||
reportError(e.error ?? e.message, 'error')
|
||||
})
|
||||
window.addEventListener('unhandledrejection', (e) => reportError(e.reason, 'rejection'))
|
||||
}
|
||||
@@ -7,7 +7,6 @@ import { LangProvider } from './i18n/react'
|
||||
import Root from './Root'
|
||||
import { applySavedTheme } from './lib/theme'
|
||||
import ErrorBoundary from './components/ErrorBoundary'
|
||||
import { installErrorReporting } from './lib/errorReporter'
|
||||
import { installFriendlyNetworkErrors } from './lib/netErrors'
|
||||
// Police embarquée dans l'app (Epilogue, variable) : aucun appel à Google Fonts, fonctionne hors-ligne
|
||||
import '@fontsource-variable/epilogue/wght.css'
|
||||
@@ -16,8 +15,6 @@ import './index.css'
|
||||
// Thème choisi (couleur + clair/sombre/étoilé) appliqué tout de suite, sans attendre le chargement de l'app
|
||||
applySavedTheme()
|
||||
|
||||
// Remontée des erreurs (sans donnée perso) : à brancher avant tout le reste
|
||||
installErrorReporting()
|
||||
// Erreurs réseau : message traduit au lieu du texte brut du navigateur (« Load failed »…)
|
||||
installFriendlyNetworkErrors()
|
||||
|
||||
|
||||
@@ -1,453 +0,0 @@
|
||||
import { ArrowLeft, Ban, Loader2, MessageSquareOff, RotateCcw, Search, Star } from 'lucide-react'
|
||||
import { useCallback, useEffect, useRef, useState } from 'react'
|
||||
import ConfirmDialog from '../components/ConfirmDialog'
|
||||
import { EmptyState, PageHeader, SectionTitle, StatTile } from '../components/ui'
|
||||
import { fmtNumber, t } from '../i18n'
|
||||
import {
|
||||
adminClearReview,
|
||||
adminOverview,
|
||||
adminRecentReviews,
|
||||
adminSetSuspended,
|
||||
adminUsers,
|
||||
isAdmin,
|
||||
type AdminOverview,
|
||||
type AdminReview,
|
||||
type AdminUser,
|
||||
} from '../lib/cloud/admin'
|
||||
import { cx, formatDate } from '../lib/utils'
|
||||
import { useAdminAlerts } from '../components/moderation/useAdminAlerts'
|
||||
import { BugsTab, ErrorsTab, ReportsTab, SuspendedTab } from './admin/ModerationTabs'
|
||||
|
||||
type Tab = 'overview' | 'reports' | 'users' | 'suspended' | 'reviews' | 'bugs' | 'errors'
|
||||
|
||||
const USERS_PAGE = 50
|
||||
const REVIEWS_PAGE = 30
|
||||
|
||||
/** Nom affichable d'un compte (nom, sinon pseudo, sinon « sans profil »). */
|
||||
function personName(p: { display_name: string | null; username: string | null }): string {
|
||||
return p.display_name || p.username || t('admin.anon')
|
||||
}
|
||||
|
||||
function Spinner() {
|
||||
return (
|
||||
<div className="flex justify-center py-16">
|
||||
<Loader2 className="size-6 animate-spin text-ink-3" aria-hidden />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Vue d'ensemble */
|
||||
|
||||
function OverviewTab() {
|
||||
const [data, setData] = useState<AdminOverview | null>(null)
|
||||
const [error, setError] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
let alive = true
|
||||
adminOverview()
|
||||
.then((d) => alive && setData(d))
|
||||
.catch(() => alive && setError(true))
|
||||
return () => {
|
||||
alive = false
|
||||
}
|
||||
}, [])
|
||||
|
||||
if (error) return <EmptyState title={t('admin.loadError')} />
|
||||
if (!data) return <Spinner />
|
||||
|
||||
// Réponse inattendue du serveur (ancienne version) : pas de graphique plutôt qu'un plantage
|
||||
const days = Array.isArray(data.signups_by_day) ? data.signups_by_day : []
|
||||
const max = days.reduce((m, d) => Math.max(m, Number(d?.n) || 0), 1)
|
||||
|
||||
return (
|
||||
<div className="mt-6">
|
||||
<div className="grid grid-cols-2 gap-3 sm:grid-cols-3">
|
||||
<StatTile
|
||||
label={t('admin.users')}
|
||||
value={fmtNumber(data.users)}
|
||||
hint={`${fmtNumber(data.public_profiles)} ${t('admin.public')} · ${fmtNumber(data.private_profiles)} ${t('admin.private')}`}
|
||||
/>
|
||||
<StatTile
|
||||
label={t('admin.items')}
|
||||
value={fmtNumber(data.items)}
|
||||
hint={`${fmtNumber(data.films)} ${t('admin.films')} · ${fmtNumber(data.series)} ${t('admin.series')}`}
|
||||
/>
|
||||
<StatTile label={t('admin.reviews')} value={fmtNumber(data.reviews)} />
|
||||
<StatTile label={t('admin.follows')} value={fmtNumber(data.follows)} hint={`${fmtNumber(data.pending_follows)} ${t('admin.pending')}`} />
|
||||
<StatTile label={t('admin.media')} value={fmtNumber(data.media_files)} />
|
||||
<StatTile label={t('admin.suspended')} value={fmtNumber(data.suspended)} />
|
||||
</div>
|
||||
|
||||
<div className="mt-3 grid grid-cols-2 gap-3 sm:grid-cols-4">
|
||||
<StatTile label={t('admin.signups7')} value={fmtNumber(data.signups_7d)} />
|
||||
<StatTile label={t('admin.signups30')} value={fmtNumber(data.signups_30d)} />
|
||||
<StatTile label={t('admin.active7')} value={fmtNumber(data.active_7d)} />
|
||||
<StatTile label={t('admin.newItems7')} value={fmtNumber(data.new_items_7d)} />
|
||||
</div>
|
||||
|
||||
<SectionTitle>{t('admin.signupsChart')}</SectionTitle>
|
||||
<div className="card p-4">
|
||||
<div className="flex h-32 items-end gap-1">
|
||||
{days.map((d) => (
|
||||
<div
|
||||
key={d.day}
|
||||
className="min-h-[2px] flex-1 rounded-t bg-accent-fill"
|
||||
style={{ height: `${Math.max((d.n / max) * 100, 2)}%` }}
|
||||
title={`${d.day}: ${fmtNumber(d.n)}`}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
{days.length > 0 && (
|
||||
<div className="mt-2 flex justify-between text-xs text-ink-3">
|
||||
<span>{formatDate(days[0].day)}</span>
|
||||
<span>{formatDate(days[days.length - 1].day)}</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Utilisateurs */
|
||||
|
||||
function UsersTab() {
|
||||
const [q, setQ] = useState('')
|
||||
const [users, setUsers] = useState<AdminUser[]>([])
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [loadingMore, setLoadingMore] = useState(false)
|
||||
const [hasMore, setHasMore] = useState(false)
|
||||
const [busyId, setBusyId] = useState<string | null>(null)
|
||||
const [confirmUser, setConfirmUser] = useState<AdminUser | null>(null)
|
||||
const reqId = useRef(0)
|
||||
|
||||
// Recherche débattue : chaque frappe relance une requête après 350 ms,
|
||||
// et un `reqId` évite qu'une réponse en retard n'écrase une plus récente.
|
||||
useEffect(() => {
|
||||
const id = ++reqId.current
|
||||
setLoading(true)
|
||||
const timer = setTimeout(async () => {
|
||||
try {
|
||||
const rows = await adminUsers(q, 0)
|
||||
if (reqId.current !== id) return
|
||||
setUsers(rows)
|
||||
setHasMore(rows.length === USERS_PAGE)
|
||||
} catch {
|
||||
if (reqId.current === id) setUsers([])
|
||||
} finally {
|
||||
if (reqId.current === id) setLoading(false)
|
||||
}
|
||||
}, 350)
|
||||
return () => clearTimeout(timer)
|
||||
}, [q])
|
||||
|
||||
const loadMore = async () => {
|
||||
const id = reqId.current
|
||||
setLoadingMore(true)
|
||||
try {
|
||||
const rows = await adminUsers(q, users.length)
|
||||
if (reqId.current !== id) return
|
||||
setUsers((prev) => [...prev, ...rows])
|
||||
setHasMore(rows.length === USERS_PAGE)
|
||||
} catch {
|
||||
/* on garde la liste en l'état */
|
||||
} finally {
|
||||
// Toujours remis à zéro (sinon, recherche changée entre-temps : bouton bloqué pour de bon)
|
||||
setLoadingMore(false)
|
||||
}
|
||||
}
|
||||
|
||||
const applySuspend = async (u: AdminUser) => {
|
||||
const next = !u.suspended
|
||||
setConfirmUser(null)
|
||||
setBusyId(u.id)
|
||||
try {
|
||||
await adminSetSuspended(u.id, next)
|
||||
setUsers((prev) => prev.map((x) => (x.id === u.id ? { ...x, suspended: next } : x)))
|
||||
} catch {
|
||||
/* on laisse la ligne telle quelle */
|
||||
} finally {
|
||||
setBusyId(null)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="mt-6">
|
||||
<label className="relative block">
|
||||
<Search className="pointer-events-none absolute left-3.5 top-1/2 size-4 -translate-y-1/2 text-ink-3" aria-hidden />
|
||||
<input
|
||||
type="search"
|
||||
className="field pl-10"
|
||||
placeholder={t('admin.searchUsers')}
|
||||
value={q}
|
||||
onChange={(e) => setQ(e.target.value)}
|
||||
/>
|
||||
</label>
|
||||
|
||||
{loading ? (
|
||||
<Spinner />
|
||||
) : users.length === 0 ? (
|
||||
<EmptyState title={t('admin.noUsers')} />
|
||||
) : (
|
||||
<ul className="mt-4 space-y-2">
|
||||
{users.map((u) => (
|
||||
<li key={u.id} className="card flex items-start gap-3 p-4">
|
||||
<div className="min-w-0 flex-1">
|
||||
<div className="flex items-center gap-2">
|
||||
<span className="truncate font-semibold">{personName(u)}</span>
|
||||
{u.suspended && (
|
||||
<span className="shrink-0 rounded-md border border-accent px-2 py-0.5 text-[11px] font-medium text-accent">
|
||||
{t('admin.suspendedBadge')}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
{(u.username || u.email) && (
|
||||
<div className="mt-0.5 truncate text-xs text-ink-3">
|
||||
{u.username ? `@${u.username}` : ''}
|
||||
{u.username && u.email ? ' · ' : ''}
|
||||
{u.email ?? ''}
|
||||
</div>
|
||||
)}
|
||||
<div className="mt-1.5 text-xs text-ink-2">
|
||||
{`${fmtNumber(u.items)} ${t('admin.statItems')} · ${fmtNumber(u.reviews)} ${t('admin.statReviews')} · ${fmtNumber(u.followers)} ${t('admin.statFollowers')}`}
|
||||
</div>
|
||||
<div className="mt-0.5 text-xs text-ink-3">{t('admin.joined', { date: formatDate(u.created_at) })}</div>
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setConfirmUser(u)}
|
||||
disabled={busyId === u.id}
|
||||
className="btn btn-ghost shrink-0 px-3 py-1.5 text-xs"
|
||||
>
|
||||
{busyId === u.id ? (
|
||||
<Loader2 className="size-4 animate-spin" aria-hidden />
|
||||
) : u.suspended ? (
|
||||
<RotateCcw className="size-4" aria-hidden />
|
||||
) : (
|
||||
<Ban className="size-4" aria-hidden />
|
||||
)}
|
||||
{u.suspended ? t('admin.unsuspend') : t('admin.suspend')}
|
||||
</button>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
|
||||
{hasMore && !loading && (
|
||||
<div className="mt-4 flex justify-center">
|
||||
<button type="button" onClick={loadMore} disabled={loadingMore} className="btn btn-ghost">
|
||||
{loadingMore && <Loader2 className="size-4 animate-spin" aria-hidden />}
|
||||
{t('social.loadMore')}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<ConfirmDialog
|
||||
open={confirmUser !== null}
|
||||
title={confirmUser?.suspended ? t('admin.confirmUnsuspendTitle') : t('admin.confirmSuspendTitle')}
|
||||
message={confirmUser?.suspended ? t('admin.confirmUnsuspendMsg') : t('admin.confirmSuspendMsg')}
|
||||
confirmLabel={confirmUser?.suspended ? t('admin.unsuspend') : t('admin.suspend')}
|
||||
onConfirm={() => confirmUser && applySuspend(confirmUser)}
|
||||
onCancel={() => setConfirmUser(null)}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Avis */
|
||||
|
||||
function ReviewsTab() {
|
||||
const [reviews, setReviews] = useState<AdminReview[]>([])
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [loadingMore, setLoadingMore] = useState(false)
|
||||
const [hasMore, setHasMore] = useState(false)
|
||||
const [busyKey, setBusyKey] = useState<string | null>(null)
|
||||
const [confirmRev, setConfirmRev] = useState<AdminReview | null>(null)
|
||||
|
||||
const keyOf = (r: AdminReview) => `${r.user_id}:${r.item_id}`
|
||||
|
||||
useEffect(() => {
|
||||
let alive = true
|
||||
adminRecentReviews(0)
|
||||
.then((rows) => {
|
||||
if (!alive) return
|
||||
setReviews(rows)
|
||||
setHasMore(rows.length === REVIEWS_PAGE)
|
||||
})
|
||||
.catch(() => alive && setReviews([]))
|
||||
.finally(() => alive && setLoading(false))
|
||||
return () => {
|
||||
alive = false
|
||||
}
|
||||
}, [])
|
||||
|
||||
const loadMore = async () => {
|
||||
setLoadingMore(true)
|
||||
try {
|
||||
const rows = await adminRecentReviews(reviews.length)
|
||||
setReviews((prev) => [...prev, ...rows])
|
||||
setHasMore(rows.length === REVIEWS_PAGE)
|
||||
} catch {
|
||||
/* on garde la liste en l'état */
|
||||
} finally {
|
||||
setLoadingMore(false)
|
||||
}
|
||||
}
|
||||
|
||||
const applyClear = async (r: AdminReview) => {
|
||||
const key = keyOf(r)
|
||||
setConfirmRev(null)
|
||||
setBusyKey(key)
|
||||
try {
|
||||
await adminClearReview(r.user_id, r.item_id)
|
||||
setReviews((prev) => prev.filter((x) => keyOf(x) !== key))
|
||||
} catch {
|
||||
/* on laisse la carte en place */
|
||||
} finally {
|
||||
setBusyKey(null)
|
||||
}
|
||||
}
|
||||
|
||||
if (loading) return <Spinner />
|
||||
if (reviews.length === 0) return <EmptyState title={t('admin.noReviews')} />
|
||||
|
||||
return (
|
||||
<div className="mt-6">
|
||||
<ul className="space-y-2">
|
||||
{reviews.map((r) => {
|
||||
const key = keyOf(r)
|
||||
return (
|
||||
<li key={key} className="card flex items-start gap-3 p-4">
|
||||
<div className="min-w-0 flex-1">
|
||||
<div className="flex flex-wrap items-center gap-x-2 gap-y-1">
|
||||
<span className="font-semibold">{r.title || t('admin.anon')}</span>
|
||||
{r.type && <span className="text-xs text-ink-3">{r.type}</span>}
|
||||
{r.rating != null && (
|
||||
<span className="inline-flex items-center gap-1 text-xs text-ink-2">
|
||||
<Star className="size-3.5 text-accent" aria-hidden />
|
||||
{fmtNumber(r.rating)}
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
<div className="mt-0.5 text-xs text-ink-3">
|
||||
{personName(r)}
|
||||
{r.username ? ` · @${r.username}` : ''}
|
||||
</div>
|
||||
{r.notes && <p className="mt-2 line-clamp-4 text-sm leading-relaxed text-ink-2">{r.notes}</p>}
|
||||
</div>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setConfirmRev(r)}
|
||||
disabled={busyKey === key}
|
||||
aria-label={t('admin.clearReview')}
|
||||
title={t('admin.clearReview')}
|
||||
className="btn btn-ghost shrink-0 px-3 py-1.5 text-xs"
|
||||
>
|
||||
{busyKey === key ? <Loader2 className="size-4 animate-spin" aria-hidden /> : <MessageSquareOff className="size-4" aria-hidden />}
|
||||
</button>
|
||||
</li>
|
||||
)
|
||||
})}
|
||||
</ul>
|
||||
|
||||
{hasMore && (
|
||||
<div className="mt-4 flex justify-center">
|
||||
<button type="button" onClick={loadMore} disabled={loadingMore} className="btn btn-ghost">
|
||||
{loadingMore && <Loader2 className="size-4 animate-spin" aria-hidden />}
|
||||
{t('social.loadMore')}
|
||||
</button>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<ConfirmDialog
|
||||
open={confirmRev !== null}
|
||||
title={t('admin.confirmClearTitle')}
|
||||
message={t('admin.confirmClearMsg')}
|
||||
confirmLabel={t('admin.clearReview')}
|
||||
onConfirm={() => confirmRev && applyClear(confirmRev)}
|
||||
onCancel={() => setConfirmRev(null)}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Page */
|
||||
|
||||
const TABS: { id: Tab; label: () => string; alert?: 'reports' | 'bugs' | 'errors' | 'suspended' }[] = [
|
||||
{ id: 'overview', label: () => t('admin.tabOverview') },
|
||||
{ id: 'reports', label: () => t('adminMod.tabReports'), alert: 'reports' },
|
||||
{ id: 'users', label: () => t('admin.tabUsers') },
|
||||
{ id: 'suspended', label: () => t('adminMod.tabSuspended'), alert: 'suspended' },
|
||||
{ id: 'reviews', label: () => t('admin.tabReviews') },
|
||||
{ id: 'bugs', label: () => t('adminMod.tabBugs'), alert: 'bugs' },
|
||||
{ id: 'errors', label: () => t('adminMod.tabErrors'), alert: 'errors' },
|
||||
]
|
||||
|
||||
export default function AdminPage({ onBack }: { onBack: () => void }) {
|
||||
const [allowed, setAllowed] = useState<boolean | null>(null)
|
||||
const [tab, setTab] = useState<Tab>('overview')
|
||||
// Compteurs « à traiter » (signalements ouverts, nouveaux bugs, nouvelles erreurs), relus après chaque action
|
||||
const [alertsKey, setAlertsKey] = useState(0)
|
||||
const alerts = useAdminAlerts(allowed === true, alertsKey)
|
||||
const refreshAlerts = useCallback(() => setAlertsKey((k) => k + 1), [])
|
||||
|
||||
useEffect(() => {
|
||||
let alive = true
|
||||
isAdmin()
|
||||
.then((ok) => alive && setAllowed(ok))
|
||||
.catch(() => alive && setAllowed(false))
|
||||
return () => {
|
||||
alive = false
|
||||
}
|
||||
}, [])
|
||||
|
||||
return (
|
||||
<>
|
||||
<button type="button" onClick={onBack} className="mt-7 inline-flex items-center gap-1.5 text-sm font-medium text-ink-3 transition-colors hover:text-ink">
|
||||
<ArrowLeft className="size-4" aria-hidden />
|
||||
{t('settings.admin')}
|
||||
</button>
|
||||
|
||||
<PageHeader title={t('admin.title')} />
|
||||
|
||||
{allowed === null ? (
|
||||
<Spinner />
|
||||
) : !allowed ? (
|
||||
<EmptyState title={t('admin.title')} text={t('admin.loadError')} />
|
||||
) : (
|
||||
<>
|
||||
<div role="tablist" className="no-scrollbar -mx-4 flex gap-2 overflow-x-auto px-4 pb-1">
|
||||
{TABS.map((tb) => {
|
||||
const on = tab === tb.id
|
||||
const n = tb.alert && alerts ? alerts[tb.alert] : 0
|
||||
return (
|
||||
<button
|
||||
key={tb.id}
|
||||
type="button"
|
||||
role="tab"
|
||||
aria-selected={on}
|
||||
onClick={() => setTab(tb.id)}
|
||||
className={cx('chip shrink-0', on && 'chip-on')}
|
||||
>
|
||||
{tb.label()}
|
||||
{n > 0 && (
|
||||
<span className={cx('min-w-5 rounded-full px-1.5 text-center text-[11px] font-semibold tabular-nums', tb.alert === 'suspended' ? (on ? 'bg-bg/20' : 'bg-surface-2 text-ink-2') : 'bg-accent-fill text-on-accent')}>
|
||||
{fmtNumber(n)}
|
||||
</span>
|
||||
)}
|
||||
</button>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
|
||||
{tab === 'overview' && <OverviewTab />}
|
||||
{tab === 'users' && <UsersTab />}
|
||||
{tab === 'reviews' && <ReviewsTab />}
|
||||
{tab === 'reports' && <ReportsTab onChange={refreshAlerts} />}
|
||||
{tab === 'suspended' && <SuspendedTab onChange={refreshAlerts} />}
|
||||
{tab === 'bugs' && <BugsTab onChange={refreshAlerts} />}
|
||||
{tab === 'errors' && <ErrorsTab onChange={refreshAlerts} />}
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { t } from '../i18n'
|
||||
import { LanguageSelect } from '../i18n/react'
|
||||
import { Check, Download, ExternalLink, HardDrive, Import, ShieldCheck, Trash2, Upload, UserX } from 'lucide-react'
|
||||
import { Check, Download, ExternalLink, HardDrive, Import, Trash2, Upload, UserX } from 'lucide-react'
|
||||
import { lazy, Suspense, useEffect, useRef, useState, type ReactNode } from 'react'
|
||||
import AccountSection from '../components/AccountSection'
|
||||
import ConfirmDialog from '../components/ConfirmDialog'
|
||||
@@ -8,11 +8,9 @@ import { PageHeader, SectionTitle } from '../components/ui'
|
||||
import { exportBackup, parseBackupFile, type ParsedBackup } from '../lib/backup'
|
||||
import { ALL_TOP_CATEGORIES, TOP_CATEGORIES } from '../lib/constants'
|
||||
import { THEME_MODES } from '../lib/theme'
|
||||
import { isAdmin } from '../lib/cloud/admin'
|
||||
import { cx } from '../lib/utils'
|
||||
import { useMedia } from '../store'
|
||||
import { BugReportRow } from '../components/moderation/BugReport'
|
||||
import { alertsSummary, useAdminAlerts } from '../components/moderation/useAdminAlerts'
|
||||
import { APP_VERSION, buildLabel } from '../lib/appInfo'
|
||||
|
||||
// Assistant d'import (lecture des fichiers, recherche des titres) : chargé seulement quand on l'ouvre
|
||||
@@ -33,24 +31,8 @@ function Row({ icon, title, hint, onClick, danger }: { icon: ReactNode; title: s
|
||||
)
|
||||
}
|
||||
|
||||
export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void }) {
|
||||
export default function SettingsPage() {
|
||||
const { items, settings, updateSettings, importItems, clearAll, lists, mergeLists, account, guest, requestAccount } = useMedia()
|
||||
const [admin, setAdmin] = useState(false)
|
||||
// Une seule vérification par connexion (et pas à chaque changement d'état de la synchro)
|
||||
const signedIn = !!account
|
||||
useEffect(() => {
|
||||
// Réponse arrivée après une déconnexion (ou la fermeture de la page) : ignorée
|
||||
let alive = true
|
||||
if (signedIn)
|
||||
void isAdmin()
|
||||
.then((ok) => alive && setAdmin(ok))
|
||||
.catch(() => alive && setAdmin(false))
|
||||
else setAdmin(false)
|
||||
return () => {
|
||||
alive = false
|
||||
}
|
||||
}, [signedIn])
|
||||
const adminHint = alertsSummary(useAdminAlerts(admin))
|
||||
const fileRef = useRef<HTMLInputElement>(null)
|
||||
const [pending, setPending] = useState<ParsedBackup>()
|
||||
const [message, setMessage] = useState<Message>()
|
||||
@@ -163,15 +145,6 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
|
||||
</>
|
||||
)}
|
||||
|
||||
{admin && (
|
||||
<>
|
||||
<SectionTitle>{t('settings.admin')}</SectionTitle>
|
||||
<div className="card overflow-hidden">
|
||||
<Row icon={<ShieldCheck size={19} />} title={t('admin.title')} hint={adminHint} onClick={onOpenAdmin} />
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
|
||||
<SectionTitle>{t('settings.language')}</SectionTitle>
|
||||
<LanguageSelect />
|
||||
|
||||
|
||||
@@ -1,567 +0,0 @@
|
||||
import { Ban, Check, CheckCheck, Loader2, RotateCcw, Star, Trash2, X } from 'lucide-react'
|
||||
import { useCallback, useEffect, useRef, useState, type ReactNode } from 'react'
|
||||
import ConfirmDialog from '../../components/ConfirmDialog'
|
||||
import { reasonLabel } from '../../components/moderation/ReportDialog'
|
||||
import Avatar from '../../components/social/Avatar'
|
||||
import { EmptyState } from '../../components/ui'
|
||||
import { fmtNumber, t, type TKey } from '../../i18n'
|
||||
import { adminSetSuspended } from '../../lib/cloud/admin'
|
||||
import {
|
||||
adminBugReports,
|
||||
adminClientErrors,
|
||||
adminReportAction,
|
||||
adminReports,
|
||||
adminSetBugStatus,
|
||||
adminSetErrorStatus,
|
||||
adminSuspendedUsers,
|
||||
BUG_STATUSES,
|
||||
REPORTS_PAGE,
|
||||
type AdminCard,
|
||||
type BugReport,
|
||||
type BugStatus,
|
||||
type ClientError,
|
||||
type ReportAction,
|
||||
type ReportedContent,
|
||||
type ReportGroup,
|
||||
type SuspendedUser,
|
||||
} from '../../lib/cloud/adminModeration'
|
||||
import type { ReportReason } from '../../lib/cloud/moderation'
|
||||
import { timeAgo } from '../../lib/timeAgo'
|
||||
import { cx, formatDate } from '../../lib/utils'
|
||||
|
||||
/**
|
||||
* Onglets de modération de l'administration : signalements, comptes suspendus, bugs, erreurs.
|
||||
* Chaque action appelle une fonction SQL qui vérifie is_admin() côté serveur.
|
||||
*/
|
||||
|
||||
function Spinner() {
|
||||
return (
|
||||
<div className="flex justify-center py-16">
|
||||
<Loader2 className="size-6 animate-spin text-ink-3" aria-hidden />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function Badge({ children, tone = 'neutral' }: { children: ReactNode; tone?: 'neutral' | 'accent' | 'strong' }) {
|
||||
return (
|
||||
<span
|
||||
className={cx(
|
||||
'inline-flex shrink-0 items-center gap-1 rounded-md border px-2 py-0.5 text-[11px] font-medium',
|
||||
tone === 'accent' ? 'border-accent text-accent' : tone === 'strong' ? 'border-ink bg-ink text-bg' : 'border-line text-ink-2',
|
||||
)}
|
||||
>
|
||||
{children}
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
function Segmented<T extends string>({ value, options, onChange }: { value: T; options: { id: T; label: string }[]; onChange: (v: T) => void }) {
|
||||
return (
|
||||
<div className="no-scrollbar -mx-4 flex gap-2 overflow-x-auto px-4">
|
||||
{options.map((o) => (
|
||||
<button key={o.id} type="button" aria-pressed={value === o.id} onClick={() => onChange(o.id)} className={cx('chip shrink-0 py-1! text-[13px]', value === o.id && 'chip-on')}>
|
||||
{o.label}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function ActionButton({ icon, label, onClick, busy, danger }: { icon: ReactNode; label: string; onClick: () => void; busy?: boolean; danger?: boolean }) {
|
||||
return (
|
||||
<button type="button" onClick={onClick} disabled={busy} className={cx('btn px-3 py-1.5 text-xs', danger ? 'border border-accent text-accent' : 'btn-ghost')}>
|
||||
{icon}
|
||||
{label}
|
||||
</button>
|
||||
)
|
||||
}
|
||||
|
||||
function Person({ card, size = 32 }: { card: AdminCard | null; size?: number }) {
|
||||
if (!card) return <span className="text-sm text-ink-3">{t('admin.anon')}</span>
|
||||
return (
|
||||
<span className="flex min-w-0 items-center gap-2.5">
|
||||
<Avatar url={card.avatarUrl} name={card.displayName} size={size} />
|
||||
<span className="min-w-0">
|
||||
<span className="flex items-center gap-1.5">
|
||||
<span className="truncate text-sm font-semibold">{card.displayName}</span>
|
||||
{card.suspended && <Badge tone="accent">{t('admin.suspendedBadge')}</Badge>}
|
||||
{card.isAdmin && <Badge>{t('adminMod.adminBadge')}</Badge>}
|
||||
</span>
|
||||
{card.username && <span className="block truncate text-xs text-ink-3">@{card.username}</span>}
|
||||
</span>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
function LoadMore({ onClick, busy }: { onClick: () => void; busy: boolean }) {
|
||||
return (
|
||||
<div className="mt-4 flex justify-center">
|
||||
<button type="button" onClick={onClick} disabled={busy} className="btn btn-ghost">
|
||||
{busy && <Loader2 className="size-4 animate-spin" aria-hidden />}
|
||||
{t('social.loadMore')}
|
||||
</button>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/** Liste paginée générique (chargement initial, « charger plus », réponse obsolète ignorée). */
|
||||
function usePaged<T>(load: (offset: number) => Promise<T[]>, pageSize: number, deps: unknown[]) {
|
||||
const [rows, setRows] = useState<T[]>([])
|
||||
const [loading, setLoading] = useState(true)
|
||||
const [error, setError] = useState(false)
|
||||
const [more, setMore] = useState(false)
|
||||
const [loadingMore, setLoadingMore] = useState(false)
|
||||
const req = useRef(0)
|
||||
useEffect(() => {
|
||||
const id = ++req.current
|
||||
setLoading(true)
|
||||
setError(false)
|
||||
load(0)
|
||||
.then((r) => {
|
||||
if (req.current !== id) return
|
||||
setRows(r)
|
||||
setMore(r.length === pageSize)
|
||||
})
|
||||
.catch(() => req.current === id && (setRows([]), setError(true)))
|
||||
.finally(() => req.current === id && setLoading(false))
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, deps)
|
||||
const loadMore = async () => {
|
||||
const id = req.current
|
||||
setLoadingMore(true)
|
||||
try {
|
||||
const r = await load(rows.length)
|
||||
if (req.current !== id) return
|
||||
setRows((p) => [...p, ...r])
|
||||
setMore(r.length === pageSize)
|
||||
} catch {
|
||||
/* on garde la liste */
|
||||
} finally {
|
||||
setLoadingMore(false)
|
||||
}
|
||||
}
|
||||
return { rows, setRows, loading, error, more, loadingMore, loadMore }
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Signalements */
|
||||
|
||||
const TYPE_LABEL: Record<ReportGroup['targetType'], TKey> = {
|
||||
review: 'adminMod.typeReview',
|
||||
profile: 'adminMod.typeProfile',
|
||||
comment: 'adminMod.typeComment',
|
||||
list: 'adminMod.typeList',
|
||||
}
|
||||
|
||||
function ContentPreview({ c, type }: { c: ReportedContent; type: ReportGroup['targetType'] }) {
|
||||
if (type === 'profile') {
|
||||
return (
|
||||
<div className="flex items-start gap-3">
|
||||
<Avatar url={c.avatarUrl} name={c.displayName ?? c.username ?? '?'} size={36} />
|
||||
<div className="min-w-0">
|
||||
<p className="text-sm font-semibold">{c.displayName}</p>
|
||||
{c.username && <p className="text-xs text-ink-3">@{c.username}</p>}
|
||||
{c.bio && <p className="mt-1.5 whitespace-pre-line text-sm leading-relaxed text-ink-2">{c.bio}</p>}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
return (
|
||||
<div>
|
||||
{(c.title || c.rating != null) && (
|
||||
<p className="flex flex-wrap items-center gap-2 text-sm font-semibold">
|
||||
{c.title}
|
||||
{c.rating != null && (
|
||||
<span className="inline-flex items-center gap-1 text-xs font-normal text-ink-2">
|
||||
<Star className="size-3.5 fill-accent text-accent" aria-hidden />
|
||||
{fmtNumber(c.rating)}
|
||||
</span>
|
||||
)}
|
||||
</p>
|
||||
)}
|
||||
{c.notes && <p className="mt-1.5 line-clamp-[12] whitespace-pre-line text-sm leading-relaxed text-ink-2">{c.notes}</p>}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
function ReportCard({ g, onAction, busy }: { g: ReportGroup; onAction: (g: ReportGroup, a: ReportAction) => void; busy: boolean }) {
|
||||
const deleted = g.current === null
|
||||
const shown = g.current ?? g.snapshot
|
||||
const edited = !!g.current && !!g.snapshot && (g.current.notes !== g.snapshot.notes || g.current.bio !== g.snapshot.bio || g.current.displayName !== g.snapshot.displayName)
|
||||
const canDelete = (g.targetType === 'review' || g.targetType === 'profile') && !deleted
|
||||
const open = g.status === 'open'
|
||||
return (
|
||||
<li className="card p-4">
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
<Badge tone="strong">{t(TYPE_LABEL[g.targetType])}</Badge>
|
||||
<Badge tone={g.total > 1 ? 'accent' : 'neutral'}>{t('adminMod.reportCount', { count: g.total })}</Badge>
|
||||
{!open && <Badge>{g.status === 'dismissed' ? t('adminMod.statusDismissed') : t('adminMod.statusResolved')}</Badge>}
|
||||
<span className="ms-auto text-xs text-ink-3">{timeAgo(g.lastAt)}</span>
|
||||
</div>
|
||||
|
||||
<div className="mt-3 flex items-center justify-between gap-3">
|
||||
<Person card={g.targetUser} />
|
||||
{g.userReportedTargets > 1 && <span className="shrink-0 text-xs text-accent">{t('adminMod.repeat', { count: g.userReportedTargets })}</span>}
|
||||
</div>
|
||||
|
||||
<div className="mt-3 flex flex-wrap gap-1.5">
|
||||
{(Object.entries(g.reasons) as [ReportReason, number][]).map(([r, n]) => (
|
||||
<Badge key={r}>
|
||||
{reasonLabel(r)}
|
||||
{n > 1 && <span className="text-ink-3">×{n}</span>}
|
||||
</Badge>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<div className="mt-3 rounded-xl border border-line bg-bg p-3">
|
||||
{deleted && <p className="mb-2 text-xs font-medium text-accent">{t('adminMod.contentGone')}</p>}
|
||||
{shown ? <ContentPreview c={shown} type={g.targetType} /> : <p className="text-sm text-ink-3">{t('adminMod.noPreview', { id: g.targetId })}</p>}
|
||||
{edited && g.snapshot && (
|
||||
<details className="mt-3 border-t border-line pt-2">
|
||||
<summary className="cursor-pointer text-xs text-ink-3">{t('adminMod.editedSince')}</summary>
|
||||
<div className="mt-2">
|
||||
<ContentPreview c={g.snapshot} type={g.targetType} />
|
||||
</div>
|
||||
</details>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<details className="mt-3">
|
||||
<summary className="cursor-pointer text-xs font-medium text-ink-2">{t('adminMod.reportsDetail', { count: g.reports.length })}</summary>
|
||||
<ul className="mt-2 space-y-2">
|
||||
{g.reports.map((r, k) => (
|
||||
<li key={k} className="border-s-2 border-line ps-3 text-xs">
|
||||
<p className="text-ink-3">
|
||||
<span className="font-medium text-ink-2">{r.reporter ? `@${r.reporter.username}` : t('admin.anon')}</span>
|
||||
{' · '}
|
||||
{reasonLabel(r.reason)}
|
||||
{' · '}
|
||||
{formatDate(r.createdAt)}
|
||||
</p>
|
||||
{r.details && <p className="mt-0.5 whitespace-pre-line text-sm text-ink-2">{r.details}</p>}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<div className="mt-4 flex flex-wrap gap-2">
|
||||
{open && canDelete && (
|
||||
<ActionButton
|
||||
icon={<Trash2 className="size-4" aria-hidden />}
|
||||
label={g.targetType === 'profile' ? t('adminMod.resetProfile') : t('adminMod.deleteContent')}
|
||||
onClick={() => onAction(g, 'delete')}
|
||||
busy={busy}
|
||||
danger
|
||||
/>
|
||||
)}
|
||||
{g.targetUser && !g.targetUser.isAdmin && (
|
||||
<ActionButton
|
||||
icon={g.targetUser.suspended ? <RotateCcw className="size-4" aria-hidden /> : <Ban className="size-4" aria-hidden />}
|
||||
label={g.targetUser.suspended ? t('admin.unsuspend') : t('admin.suspend')}
|
||||
onClick={() => onAction(g, g.targetUser!.suspended ? 'unsuspend' : 'suspend')}
|
||||
busy={busy}
|
||||
danger={!g.targetUser.suspended}
|
||||
/>
|
||||
)}
|
||||
{open && <ActionButton icon={<Check className="size-4" aria-hidden />} label={t('adminMod.resolve')} onClick={() => onAction(g, 'resolve')} busy={busy} />}
|
||||
{open && <ActionButton icon={<X className="size-4" aria-hidden />} label={t('adminMod.dismiss')} onClick={() => onAction(g, 'dismiss')} busy={busy} />}
|
||||
{busy && <Loader2 className="size-4 animate-spin self-center text-ink-3" aria-hidden />}
|
||||
</div>
|
||||
</li>
|
||||
)
|
||||
}
|
||||
|
||||
export function ReportsTab({ onChange }: { onChange: () => void }) {
|
||||
const [status, setStatus] = useState<'open' | 'closed'>('open')
|
||||
const { rows, setRows, loading, error, more, loadingMore, loadMore } = usePaged((o) => adminReports(status, o), REPORTS_PAGE, [status])
|
||||
const [busyKey, setBusyKey] = useState<string>()
|
||||
const [confirm, setConfirm] = useState<{ g: ReportGroup; a: ReportAction }>()
|
||||
const [failed, setFailed] = useState<string>()
|
||||
|
||||
const run = useCallback(
|
||||
async (g: ReportGroup, a: ReportAction) => {
|
||||
setConfirm(undefined)
|
||||
setBusyKey(g.key)
|
||||
setFailed(undefined)
|
||||
try {
|
||||
await adminReportAction(g, a)
|
||||
const suspended = a === 'suspend' ? true : a === 'unsuspend' ? false : undefined
|
||||
setRows((prev) =>
|
||||
prev
|
||||
// Les autres cibles du même compte suivent la suspension
|
||||
.map((x) => (suspended !== undefined && x.targetUser?.id === g.targetUser?.id ? { ...x, targetUser: { ...x.targetUser!, suspended } } : x))
|
||||
// Dans la file ouverte, une cible traitée disparaît
|
||||
.filter((x) => !(status === 'open' && x.key === g.key && a !== 'unsuspend')),
|
||||
)
|
||||
onChange()
|
||||
} catch (e) {
|
||||
setFailed((e as Error).message)
|
||||
} finally {
|
||||
setBusyKey(undefined)
|
||||
}
|
||||
},
|
||||
[onChange, setRows, status],
|
||||
)
|
||||
|
||||
const ask = (g: ReportGroup, a: ReportAction) => (a === 'delete' || a === 'suspend' ? setConfirm({ g, a }) : void run(g, a))
|
||||
|
||||
return (
|
||||
<div className="mt-6">
|
||||
<Segmented
|
||||
value={status}
|
||||
onChange={setStatus}
|
||||
options={[
|
||||
{ id: 'open', label: t('adminMod.open') },
|
||||
{ id: 'closed', label: t('adminMod.closed') },
|
||||
]}
|
||||
/>
|
||||
{failed && <p className="mt-3 rounded-xl border border-accent px-3 py-2 text-sm">{t('adminMod.actionFailed', { error: failed })}</p>}
|
||||
{loading ? (
|
||||
<Spinner />
|
||||
) : error ? (
|
||||
<EmptyState title={t('admin.loadError')} text={t('adminMod.migrationHint')} />
|
||||
) : rows.length === 0 ? (
|
||||
<EmptyState title={status === 'open' ? t('adminMod.noOpen') : t('adminMod.noClosed')} />
|
||||
) : (
|
||||
<ul className="mt-4 grid gap-3 lg:grid-cols-2">
|
||||
{rows.map((g) => (
|
||||
<ReportCard key={g.key} g={g} onAction={ask} busy={busyKey === g.key} />
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
{more && !loading && <LoadMore onClick={loadMore} busy={loadingMore} />}
|
||||
<ConfirmDialog
|
||||
open={!!confirm}
|
||||
title={confirm?.a === 'suspend' ? t('admin.confirmSuspendTitle') : confirm?.g.targetType === 'profile' ? t('adminMod.confirmResetTitle') : t('admin.confirmClearTitle')}
|
||||
message={confirm?.a === 'suspend' ? t('admin.confirmSuspendMsg') : confirm?.g.targetType === 'profile' ? t('adminMod.confirmResetMsg') : t('admin.confirmClearMsg')}
|
||||
confirmLabel={confirm?.a === 'suspend' ? t('admin.suspend') : t('adminMod.confirm')}
|
||||
onConfirm={() => confirm && void run(confirm.g, confirm.a)}
|
||||
onCancel={() => setConfirm(undefined)}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Comptes suspendus */
|
||||
|
||||
export function SuspendedTab({ onChange }: { onChange: () => void }) {
|
||||
const { rows, setRows, loading, error, more, loadingMore, loadMore } = usePaged<SuspendedUser>((o) => adminSuspendedUsers(o), 50, [])
|
||||
const [busyId, setBusyId] = useState<string>()
|
||||
const [confirm, setConfirm] = useState<SuspendedUser>()
|
||||
|
||||
const unsuspend = async (u: SuspendedUser) => {
|
||||
setConfirm(undefined)
|
||||
setBusyId(u.id)
|
||||
try {
|
||||
await adminSetSuspended(u.id, false)
|
||||
setRows((p) => p.filter((x) => x.id !== u.id))
|
||||
onChange()
|
||||
} catch {
|
||||
/* la ligne reste */
|
||||
} finally {
|
||||
setBusyId(undefined)
|
||||
}
|
||||
}
|
||||
|
||||
if (loading) return <Spinner />
|
||||
if (error) return <EmptyState title={t('admin.loadError')} text={t('adminMod.migrationHint')} />
|
||||
if (rows.length === 0) return <EmptyState title={t('adminMod.noSuspended')} />
|
||||
return (
|
||||
<div className="mt-6">
|
||||
<ul className="grid gap-2 lg:grid-cols-2">
|
||||
{rows.map((u) => (
|
||||
<li key={u.id} className="card flex items-center gap-3 p-4">
|
||||
<div className="min-w-0 flex-1">
|
||||
<Person card={u} size={36} />
|
||||
<p className="mt-2 text-xs text-ink-3">
|
||||
{u.suspendedAt ? t('adminMod.suspendedOn', { date: formatDate(u.suspendedAt) }) : t('adminMod.suspendedUnknown')}
|
||||
{u.suspendedBy ? ` · @${u.suspendedBy}` : ''}
|
||||
{u.reports > 0 ? ` · ${t('adminMod.reportCount', { count: u.reports })}` : ''}
|
||||
</p>
|
||||
</div>
|
||||
<button type="button" onClick={() => setConfirm(u)} disabled={busyId === u.id} className="btn btn-ghost shrink-0 px-3 py-1.5 text-xs">
|
||||
{busyId === u.id ? <Loader2 className="size-4 animate-spin" aria-hidden /> : <RotateCcw className="size-4" aria-hidden />}
|
||||
{t('admin.unsuspend')}
|
||||
</button>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
{more && <LoadMore onClick={loadMore} busy={loadingMore} />}
|
||||
<ConfirmDialog
|
||||
open={!!confirm}
|
||||
title={t('admin.confirmUnsuspendTitle')}
|
||||
message={t('admin.confirmUnsuspendMsg')}
|
||||
confirmLabel={t('admin.unsuspend')}
|
||||
onConfirm={() => confirm && void unsuspend(confirm)}
|
||||
onCancel={() => setConfirm(undefined)}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Bugs */
|
||||
|
||||
const BUG_LABEL: Record<BugStatus, TKey> = {
|
||||
new: 'adminMod.bugNew',
|
||||
in_progress: 'adminMod.bugInProgress',
|
||||
fixed: 'adminMod.bugFixed',
|
||||
}
|
||||
|
||||
export function BugsTab({ onChange }: { onChange: () => void }) {
|
||||
const [filter, setFilter] = useState<BugStatus | 'all'>('all')
|
||||
const { rows, setRows, loading, error, more, loadingMore, loadMore } = usePaged<BugReport>((o) => adminBugReports(filter === 'all' ? null : filter, o), 30, [filter])
|
||||
const [busyId, setBusyId] = useState<number>()
|
||||
|
||||
const setStatus = async (b: BugReport, s: BugStatus) => {
|
||||
if (b.status === s) return
|
||||
setBusyId(b.id)
|
||||
try {
|
||||
await adminSetBugStatus(b.id, s)
|
||||
// Filtre actif : le signalement qui n'y correspond plus quitte la liste (comme au rechargement)
|
||||
setRows((p) => (filter !== 'all' && filter !== s ? p.filter((x) => x.id !== b.id) : p.map((x) => (x.id === b.id ? { ...x, status: s } : x))))
|
||||
onChange()
|
||||
} catch {
|
||||
/* inchangé */
|
||||
} finally {
|
||||
setBusyId(undefined)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="mt-6">
|
||||
<Segmented value={filter} onChange={setFilter} options={[{ id: 'all' as const, label: t('adminMod.all') }, ...BUG_STATUSES.map((s) => ({ id: s, label: t(BUG_LABEL[s]) }))]} />
|
||||
{loading ? (
|
||||
<Spinner />
|
||||
) : error ? (
|
||||
<EmptyState title={t('admin.loadError')} text={t('adminMod.migrationHint')} />
|
||||
) : rows.length === 0 ? (
|
||||
<EmptyState title={t('adminMod.noBugs')} />
|
||||
) : (
|
||||
<ul className="mt-4 grid gap-3 lg:grid-cols-2">
|
||||
{rows.map((b) => (
|
||||
<li key={b.id} className="card p-4">
|
||||
<div className="flex items-center justify-between gap-3">
|
||||
<Person card={b.reporter} size={28} />
|
||||
<span className="shrink-0 text-xs text-ink-3">{timeAgo(b.createdAt)}</span>
|
||||
</div>
|
||||
<p className="mt-3 whitespace-pre-line text-sm leading-relaxed">{b.description}</p>
|
||||
{Object.keys(b.context).length > 0 && (
|
||||
<dl className="mt-3 grid grid-cols-[auto_1fr] gap-x-3 gap-y-0.5 rounded-xl border border-line bg-bg p-3 text-[11px]">
|
||||
{Object.entries(b.context).map(([k, v]) => (
|
||||
<div key={k} className="contents">
|
||||
<dt className="text-ink-3">{k}</dt>
|
||||
<dd className="min-w-0 break-words text-ink-2" dir="ltr">
|
||||
{v}
|
||||
</dd>
|
||||
</div>
|
||||
))}
|
||||
</dl>
|
||||
)}
|
||||
<div className="mt-3 grid grid-cols-3 gap-1 rounded-md border border-line p-1">
|
||||
{BUG_STATUSES.map((s) => (
|
||||
<button
|
||||
key={s}
|
||||
type="button"
|
||||
aria-pressed={b.status === s}
|
||||
disabled={busyId === b.id}
|
||||
onClick={() => void setStatus(b, s)}
|
||||
className={cx('rounded-md py-1.5 text-xs font-medium transition-colors', b.status === s ? 'bg-ink text-bg' : 'text-ink-3')}
|
||||
>
|
||||
{t(BUG_LABEL[s])}
|
||||
</button>
|
||||
))}
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
)}
|
||||
{more && !loading && <LoadMore onClick={loadMore} busy={loadingMore} />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------ Erreurs */
|
||||
|
||||
const SOURCE_LABEL: Record<ClientError['source'], TKey> = {
|
||||
error: 'adminMod.srcError',
|
||||
rejection: 'adminMod.srcRejection',
|
||||
render: 'adminMod.srcRender',
|
||||
}
|
||||
|
||||
export function ErrorsTab({ onChange }: { onChange: () => void }) {
|
||||
const { rows, setRows, loading, error, more, loadingMore, loadMore } = usePaged<ClientError>((o) => adminClientErrors(o), 50, [])
|
||||
const [busy, setBusy] = useState<string>()
|
||||
const marked = useRef(false)
|
||||
|
||||
// À l'ouverture : les nouvelles erreurs sont « vues » (le badge disparaît) — elles restent signalées « Nouveau » ici
|
||||
useEffect(() => {
|
||||
if (loading || error || marked.current || !rows.some((r) => r.status === 'new')) return
|
||||
marked.current = true
|
||||
adminSetErrorStatus(null, 'seen')
|
||||
.then(onChange)
|
||||
.catch(() => {})
|
||||
}, [loading, error, rows, onChange])
|
||||
|
||||
const act = async (e: ClientError, s: 'fixed' | 'delete') => {
|
||||
setBusy(e.fingerprint)
|
||||
try {
|
||||
await adminSetErrorStatus(e.fingerprint, s)
|
||||
setRows((p) => (s === 'delete' ? p.filter((x) => x.fingerprint !== e.fingerprint) : p.map((x) => (x.fingerprint === e.fingerprint ? { ...x, status: 'fixed' } : x))))
|
||||
onChange()
|
||||
} catch {
|
||||
/* inchangé */
|
||||
} finally {
|
||||
setBusy(undefined)
|
||||
}
|
||||
}
|
||||
|
||||
if (loading) return <Spinner />
|
||||
if (error) return <EmptyState title={t('admin.loadError')} text={t('adminMod.migrationHint')} />
|
||||
if (rows.length === 0) return <EmptyState title={t('adminMod.noErrors')} text={t('adminMod.noErrorsHint')} />
|
||||
return (
|
||||
<div className="mt-6">
|
||||
<ul className="space-y-2">
|
||||
{rows.map((e) => (
|
||||
<li key={e.fingerprint} className="card p-4">
|
||||
<div className="flex flex-wrap items-center gap-2">
|
||||
{e.status === 'new' && <Badge tone="accent">{t('adminMod.errNew')}</Badge>}
|
||||
{e.status === 'fixed' && <Badge>{t('adminMod.errFixed')}</Badge>}
|
||||
<Badge>{t(SOURCE_LABEL[e.source])}</Badge>
|
||||
<Badge tone="strong">×{fmtNumber(e.count)}</Badge>
|
||||
<span className="ms-auto text-xs text-ink-3">{timeAgo(e.lastSeen)}</span>
|
||||
</div>
|
||||
<p className="mt-2 break-words font-mono text-[13px] leading-snug" dir="ltr">
|
||||
{e.message}
|
||||
</p>
|
||||
<p className="mt-1.5 text-xs text-ink-3">
|
||||
{t('adminMod.firstSeen', { date: formatDate(e.firstSeen) })}
|
||||
{e.appVersion ? ` · v${e.appVersion}` : ''}
|
||||
{e.url ? ` · ${e.url}` : ''}
|
||||
</p>
|
||||
{(e.stack || e.userAgent) && (
|
||||
<details className="mt-2">
|
||||
<summary className="cursor-pointer text-xs font-medium text-ink-2">{t('adminMod.stack')}</summary>
|
||||
{e.userAgent && (
|
||||
<p className="mt-2 break-words text-[11px] text-ink-3" dir="ltr">
|
||||
{e.userAgent}
|
||||
</p>
|
||||
)}
|
||||
{e.stack && (
|
||||
<pre className="mt-2 max-h-72 overflow-auto rounded-xl border border-line bg-bg p-3 text-[11px] leading-relaxed text-ink-2" dir="ltr">
|
||||
{e.stack}
|
||||
</pre>
|
||||
)}
|
||||
</details>
|
||||
)}
|
||||
<div className="mt-3 flex flex-wrap gap-2">
|
||||
{e.status !== 'fixed' && (
|
||||
<ActionButton icon={<CheckCheck className="size-4" aria-hidden />} label={t('adminMod.markFixed')} onClick={() => void act(e, 'fixed')} busy={busy === e.fingerprint} />
|
||||
)}
|
||||
<ActionButton icon={<Trash2 className="size-4" aria-hidden />} label={t('adminMod.forget')} onClick={() => void act(e, 'delete')} busy={busy === e.fingerprint} />
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
{more && <LoadMore onClick={loadMore} busy={loadingMore} />}
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
-- Suppression de l'administration (30/11/2026) : plus d'écran admin, plus de signalements / bugs / erreurs
|
||||
-- enregistrés en base. « Signaler » et « Signaler un bug » ouvrent désormais un e-mail vers contact@bobinoo.org.
|
||||
-- La suspension d'un compte reste possible à la main dans Supabase (Table Editor → profiles → suspended).
|
||||
-- Idempotent.
|
||||
|
||||
-- 1. ─── Fonctions gardées, sans la vérification « admin » ───
|
||||
create or replace function public.azuu_suspended_guard()
|
||||
returns trigger language plpgsql security definer set search_path = '' as $$
|
||||
begin
|
||||
-- Un membre ne peut pas changer « suspended » ; seul le tableau de bord Supabase (pas de compte connecté) le peut
|
||||
if new.suspended is distinct from old.suspended and auth.uid() is not null then
|
||||
raise exception 'forbidden';
|
||||
end if;
|
||||
return new;
|
||||
end;
|
||||
$$;
|
||||
|
||||
create or replace function public.delete_review_comment(p_id bigint)
|
||||
returns jsonb language plpgsql security definer set search_path = '' as $$
|
||||
declare
|
||||
me uuid := auth.uid();
|
||||
n integer;
|
||||
begin
|
||||
if me is null then raise exception 'auth'; end if;
|
||||
delete from public.review_comments c
|
||||
where c.id = p_id and (c.user_id = me or c.author_id = me);
|
||||
get diagnostics n = row_count;
|
||||
return jsonb_build_object('ok', n > 0);
|
||||
end;
|
||||
$$;
|
||||
|
||||
create or replace function public.delete_shared_list(p_list uuid)
|
||||
returns jsonb language plpgsql security definer set search_path = '' as $$
|
||||
begin
|
||||
if not public.azuu_sl_owner(p_list) then raise exception 'forbidden'; end if;
|
||||
delete from public.shared_lists where id = p_list; -- membres et titres : en cascade
|
||||
return jsonb_build_object('ok', true);
|
||||
end;
|
||||
$$;
|
||||
|
||||
create or replace function public.get_review_comments(p_author uuid, p_item text)
|
||||
returns jsonb language plpgsql stable security definer set search_path = '' as $$
|
||||
declare
|
||||
me uuid := auth.uid();
|
||||
moderator boolean;
|
||||
begin
|
||||
if not public.azuu_review_visible(p_author, p_item) then
|
||||
return jsonb_build_object('visible', false, 'can_moderate', false, 'comments', '[]'::jsonb);
|
||||
end if;
|
||||
-- L'auteur de l'avis peut supprimer les commentaires sous son avis
|
||||
moderator := p_author = me;
|
||||
return jsonb_build_object(
|
||||
'visible', true,
|
||||
'can_moderate', moderator,
|
||||
'comments', coalesce((
|
||||
select jsonb_agg(jsonb_build_object(
|
||||
'id', c.id, 'body', c.body, 'created_at', c.created_at,
|
||||
'user', jsonb_build_object('id', p.id, 'username', p.username, 'display_name', p.display_name, 'avatar_url', p.avatar_url),
|
||||
'mine', c.user_id = me,
|
||||
'can_delete', moderator or c.user_id = me
|
||||
) order by c.created_at, c.id)
|
||||
from (
|
||||
select * from public.review_comments rc
|
||||
where rc.author_id = p_author and rc.item_id = p_item
|
||||
order by rc.created_at desc, rc.id desc
|
||||
limit 200
|
||||
) c
|
||||
join public.profiles p on p.id = c.user_id
|
||||
where not p.suspended or c.user_id = me
|
||||
), '[]'::jsonb)
|
||||
);
|
||||
end;
|
||||
$$;
|
||||
|
||||
create or replace function public.get_profile(p_username text)
|
||||
returns jsonb language plpgsql stable security definer set search_path = '' as $$
|
||||
declare
|
||||
p public.profiles;
|
||||
me uuid := auth.uid();
|
||||
res jsonb;
|
||||
begin
|
||||
if me is null then
|
||||
return null;
|
||||
end if;
|
||||
select * into p from public.profiles where username = lower(trim(p_username));
|
||||
if not found then
|
||||
return null;
|
||||
end if;
|
||||
if p.suspended and p.id <> me then
|
||||
return null;
|
||||
end if;
|
||||
if p.id <> me and exists (select 1 from public.blocks b where b.blocker_id = p.id and b.blocked_id = me) then
|
||||
return null;
|
||||
end if;
|
||||
res := public.profile_card(p) || jsonb_build_object(
|
||||
'bio', p.bio,
|
||||
'banner_url', p.banner_url,
|
||||
'is_me', p.id = me,
|
||||
'follows_me', exists (select 1 from public.follows where follower_id = p.id and following_id = me and status = 'accepted'),
|
||||
'followers', (select count(*) from public.follows where following_id = p.id and status = 'accepted'),
|
||||
'following', (select count(*) from public.follows where follower_id = p.id and status = 'accepted'),
|
||||
'visible', public.can_view(p.id)
|
||||
);
|
||||
if public.can_view(p.id) then
|
||||
res := res || jsonb_build_object(
|
||||
'stats', jsonb_build_object(
|
||||
'finished', (select count(*) from public.items where user_id = p.id and not deleted and data->>'status' = 'termine')
|
||||
),
|
||||
'top', (
|
||||
select coalesce(jsonb_agg(public.public_item(data) order by data->'top'->>'category', (data->'top'->>'rank')), '[]'::jsonb)
|
||||
from public.items i
|
||||
where i.user_id = p.id and not i.deleted and jsonb_typeof(i.data->'top') = 'object'
|
||||
and coalesce(
|
||||
(select s.data->'topCategories' ? (i.data->'top'->>'category')
|
||||
from public.settings s where s.user_id = p.id and jsonb_typeof(s.data->'topCategories') = 'array'),
|
||||
true)
|
||||
),
|
||||
'recent', (
|
||||
select coalesce(jsonb_agg(public.public_item(s.data) order by s.k desc nulls last), '[]'::jsonb)
|
||||
from (
|
||||
select data, coalesce(data->>'endDate', data->>'startDate') as k
|
||||
from public.items
|
||||
where user_id = p.id and not deleted and data->>'status' = 'termine'
|
||||
order by k desc nulls last limit 5
|
||||
) s
|
||||
),
|
||||
'watching', (
|
||||
select coalesce(jsonb_agg(public.public_item(s.data) order by s.k desc nulls last), '[]'::jsonb)
|
||||
from (
|
||||
select data, coalesce(data->>'startDate', left(data->>'updatedAt', 10)) as k
|
||||
from public.items
|
||||
where user_id = p.id and not deleted and data->>'status' = 'en_cours'
|
||||
order by k desc nulls last limit 8
|
||||
) s
|
||||
)
|
||||
);
|
||||
end if;
|
||||
return res;
|
||||
end;
|
||||
$$;
|
||||
|
||||
-- 2. ─── Journal de modération : plus de trigger ───
|
||||
drop trigger if exists profiles_suspended_log on public.profiles;
|
||||
drop function if exists public.azuu_suspended_log();
|
||||
|
||||
-- 3. ─── Fonctions d'administration, de signalement et de remontée d'erreurs ───
|
||||
drop function if exists public.admin_alerts();
|
||||
drop function if exists public.admin_bug_reports(text, integer);
|
||||
drop function if exists public.admin_clear_review(uuid, text);
|
||||
drop function if exists public.admin_client_errors(text, integer);
|
||||
drop function if exists public.admin_overview();
|
||||
drop function if exists public.admin_recent_reviews(integer);
|
||||
drop function if exists public.admin_report_action(text, text, uuid, text);
|
||||
drop function if exists public.admin_reports(text, integer);
|
||||
drop function if exists public.admin_set_bug_status(bigint, text);
|
||||
drop function if exists public.admin_set_error_status(text, text);
|
||||
drop function if exists public.admin_set_suspended(uuid, boolean);
|
||||
drop function if exists public.admin_suspended_users(integer);
|
||||
drop function if exists public.admin_users(text, integer);
|
||||
drop function if exists public.azuu_admin_card(uuid);
|
||||
drop function if exists public.report_content(text, text, uuid, text, text);
|
||||
drop function if exists public.submit_bug_report(text, jsonb);
|
||||
drop function if exists public.log_client_error(text, text, text, text, text, text);
|
||||
drop function if exists public.azuu_scrub(text, integer);
|
||||
drop function if exists public.is_admin();
|
||||
|
||||
-- 4. ─── Tables ───
|
||||
drop table if exists public.reports;
|
||||
drop table if exists public.bug_reports;
|
||||
drop table if exists public.client_errors;
|
||||
drop table if exists public.moderation_log;
|
||||
drop table if exists public.admins;
|
||||
|
||||
-- 5. ─── Descriptions mises à jour ───
|
||||
comment on table public.profiles is 'Profil public : pseudo, nom affiché, photo, bannière, bio, compte privé, compte suspendu (suspended : à cocher à la main dans Supabase, invisible pour les autres). Créé à l''inscription (azuu_new_user).';
|
||||
comment on function public.azuu_suspended_guard() is 'Trigger (profiles) : un membre ne peut pas changer « suspended » (seulement depuis le tableau de bord Supabase).';
|
||||
comment on function public.delete_review_comment(bigint) is 'App : supprimer mon commentaire (ou un commentaire sous mon avis).';
|
||||
comment on function public.delete_shared_list(uuid) is 'App : supprimer une liste partagée (créateur).';
|
||||
comment on function public.get_review_comments(uuid, text) is 'App : commentaires d''un avis.';
|
||||
comment on function public.get_profile(text) is 'App : profil d''un pseudo (infos, compteurs, relation avec moi).';
|
||||
+5
-7
@@ -87,11 +87,10 @@ export default defineConfig(({ mode }) => {
|
||||
output: {
|
||||
// React à part : il change rarement, il reste donc en cache d'une mise à jour de l'app à l'autre
|
||||
manualChunks: (id) => (/[\\/]node_modules[\\/](react|react-dom|scheduler)[\\/]/.test(id) ? 'react' : undefined),
|
||||
// Noms reconnaissables : les langues et l'administration ne sont pas pré-téléchargées (voir workbox plus bas)
|
||||
// Noms reconnaissables : les langues ne sont pas pré-téléchargées (voir workbox plus bas)
|
||||
chunkFileNames: (chunk) => {
|
||||
const id = chunk.facadeModuleId ?? ''
|
||||
if (/[\\/]src[\\/]i18n[\\/]locales[\\/]/.test(id)) return 'assets/locale-[name]-[hash].js'
|
||||
if (/[\\/]src[\\/]pages[\\/](AdminPage|admin[\\/])/.test(id)) return 'assets/admin-[name]-[hash].js'
|
||||
return 'assets/[name]-[hash].js'
|
||||
},
|
||||
},
|
||||
@@ -124,12 +123,11 @@ export default defineConfig(({ mode }) => {
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,svg,png,ico,webmanifest,woff2}'],
|
||||
// Pas pré-téléchargés pour tout le monde (~1 Mo) : les 17 autres langues (le français est dans l'app),
|
||||
// l'administration et les variantes de la police pour d'autres alphabets. Ils passent par le cache « app-files »
|
||||
// dès qu'on s'en sert (langue choisie, écran admin…), donc restent disponibles hors-ligne ensuite.
|
||||
// et les variantes de la police pour d'autres alphabets. Ils passent par le cache « app-files »
|
||||
// dès qu'on s'en sert (langue choisie…), donc restent disponibles hors-ligne ensuite.
|
||||
// Ni les pages légales (vraies pages servies par le serveur) et leur police, ni les grandes icônes (lues par le système à l'installation).
|
||||
globIgnores: [
|
||||
'**/assets/locale-*.js',
|
||||
'**/assets/admin-*.js',
|
||||
'**/assets/epilogue-latin-ext-*.woff2',
|
||||
'**/assets/epilogue-vietnamese-*.woff2',
|
||||
'**/fonts/**',
|
||||
@@ -143,10 +141,10 @@ export default defineConfig(({ mode }) => {
|
||||
// Les pages légales sont de vraies pages, pas l'app
|
||||
navigateFallbackDenylist: [/^\/privacy/, /^\/legal/, /^\/terms/, /^\/credits/, /^\/supprimer-compte/],
|
||||
runtimeCaching: [
|
||||
// Fichiers de l'app non pré-téléchargés (langues, admin, police) : leur nom change à chaque modification,
|
||||
// Fichiers de l'app non pré-téléchargés (langues, police) : leur nom change à chaque modification,
|
||||
// une copie en cache est donc toujours la bonne
|
||||
{
|
||||
urlPattern: /\/assets\/(locale-|admin-|epilogue-).+\.(js|woff2)$/,
|
||||
urlPattern: /\/assets\/(locale-|epilogue-).+\.(js|woff2)$/,
|
||||
handler: 'CacheFirst',
|
||||
options: { cacheName: 'app-files', expiration: { maxEntries: 40, maxAgeSeconds: 60 * 60 * 24 * 180 }, cacheableResponse: { statuses: [200] } },
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user