Modération et fiabilité : signalements, blocage, signaler un bug, remontée d'erreurs, sauvegardes

- Signaler (motif + précision ≤ 500 car.) un avis ou un profil via un bouton ⋯ générique
  (ReportButton / ReportDialog, cibles review | profile | comment | list).
- Bloquer / débloquer un membre depuis son profil : abonnements retirés, plus de suivi ni de
  réaction possible, ses avis masqués côté app.
- Administration : onglets Signalements (file regroupée par cible, aperçu actuel + copie au
  moment du signalement, actions supprimer / suspendre / résolu / classer), Suspendus, Bugs,
  Erreurs ; compteurs « à traiter » dans les onglets et dans Réglages.
- Réglages > À propos : « Signaler un bug » avec infos techniques affichées avant envoi
  (sans compte : lien rdacet.fr).
- Remontée d'erreurs sans tiers : window.onerror, unhandledrejection, ErrorBoundary global
  (écran « Oups… »), nettoyage des données perso, dédoublonnage, 10 envois max par session.
- SQL (à appliquer) : 20261009160000_moderation.sql, 20261009160100_bugs_errors.sql —
  RLS partout, fonctions security definer + is_admin(), anti-abus.
- Sauvegardes : workflow Gitea planifié, deploy/backup.sh (pg_dump, contrôles, gpg AES-256,
  rotation 7/4/6), deploy/BACKUP.md et deploy/restore.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
Claude committed 2026-10-09 15:25:43 +00:00
1 parent c246b16e7e
commit 586c1ec00a
42 files changed
+4983 -32

No files matched your search

+45
View File
@@ -0,0 +1,45 @@
import { Component, type ErrorInfo, type ReactNode } from 'react'
import { t } from '../i18n'
import { reportError } from '../lib/errorReporter'
/**
* 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).
*/
export default class ErrorBoundary extends Component<{ children: ReactNode }, { failed: boolean }> {
state = { failed: false }
static getDerivedStateFromError() {
return { failed: true }
}
componentDidCatch(error: unknown, info: ErrorInfo) {
reportError(error, 'render', info.componentStack ?? '')
}
render() {
if (!this.state.failed) return this.props.children
return <CrashScreen onRetry={() => this.setState({ failed: false })} />
}
}
function CrashScreen({ onRetry }: { onRetry: () => void }) {
return (
<main role="alert" className="flex min-h-dvh flex-col items-center justify-center bg-bg px-6 text-center text-ink">
<p className="text-5xl font-bold text-accent" aria-hidden>
:(
</p>
<h1 className="mt-6 text-2xl font-bold">{t('crash.title')}</h1>
<p className="mt-2 max-w-sm text-sm leading-relaxed text-ink-2">{t('crash.text')}</p>
<div className="mt-8 flex flex-wrap justify-center gap-2">
<button type="button" onClick={() => location.reload()} className="btn btn-primary">
{t('crash.reload')}
</button>
<button type="button" onClick={onRetry} className="btn btn-ghost">
{t('crash.retry')}
</button>
</div>
<p className="mt-8 max-w-xs text-xs text-ink-3">{t('crash.privacy')}</p>
</main>
)
}
+167
View File
@@ -0,0 +1,167 @@
import { Bug, Check, ExternalLink, Loader2 } from 'lucide-react'
import { useMemo, useState } from 'react'
import { createPortal } from 'react-dom'
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 = 'https://rdacet.fr'
const INFO_LABEL: Record<string, TKey> = {
version: 'bug.info.version',
browser: 'bug.info.browser',
os: 'bug.info.os',
lang: 'bug.info.lang',
theme: 'bug.info.theme',
screen: 'bug.info.screen',
viewport: 'bug.info.viewport',
route: 'bug.info.route',
standalone: 'bug.info.standalone',
online: 'bug.info.online',
}
/** Ligne « Signaler un bug » de la section « À propos » des réglages. */
export function BugReportRow() {
const { account } = useMedia()
const [open, setOpen] = useState(false)
if (!account) {
return (
<a href={SUPPORT_URL} target="_blank" rel="noopener" className="flex items-center gap-3.5 px-4 py-4 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>
<ExternalLink 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). */
export default 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-black/70 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>
)
}
+115
View File
@@ -0,0 +1,115 @@
import { Flag, MoreHorizontal } from 'lucide-react'
import { useState, type ReactNode } from 'react'
import { createPortal } from 'react-dom'
import { t } from '../../i18n'
import { useBackToClose } from '../../lib/backNav'
import type { ReportTarget } from '../../lib/cloud/moderation'
import { useEscape } from '../../lib/escape'
import { cx } from '../../lib/utils'
import ReportDialog from './ReportDialog'
export interface MenuAction {
icon: ReactNode
label: string
onClick: () => void
danger?: boolean
}
/**
* 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.
*/
export default function ReportButton({
target,
actions = [],
className,
size = 18,
label,
}: {
target: ReportTarget
actions?: MenuAction[]
className?: string
size?: number
/** Nom accessible du bouton (par défaut « Plus d'options ») */
label?: string
}) {
const [menu, setMenu] = useState(false)
const [report, setReport] = useState(false)
return (
<>
<button
type="button"
onClick={(e) => {
e.stopPropagation()
setMenu(true)
}}
aria-label={label ?? t('report.more')}
aria-haspopup="menu"
className={cx('grid size-9 shrink-0 place-items-center rounded-full text-ink-3 transition-colors hover:text-ink active:bg-surface-2', className)}
>
<MoreHorizontal size={size} />
</button>
{/* Portail : un parent animé (transform) piégerait sinon les fenêtres « fixed » dans sa boîte */}
{menu &&
createPortal(
<ActionMenu onClose={() => setMenu(false)}>
{actions.map((a) => (
<MenuItem
key={a.label}
icon={a.icon}
danger={a.danger}
onClick={() => {
setMenu(false)
a.onClick()
}}
>
{a.label}
</MenuItem>
))}
<MenuItem
icon={<Flag size={18} />}
danger
onClick={() => {
setMenu(false)
setReport(true)
}}
>
{t('report.action')}
</MenuItem>
</ActionMenu>,
document.body,
)}
{report && createPortal(<ReportDialog target={target} onClose={() => setReport(false)} />, document.body)}
</>
)
}
/** Menu en bas d'écran (comme le « ⋯ » de la fiche) : Échap / geste retour le ferment, sans fermer l'écran derrière. */
function ActionMenu({ onClose, children }: { onClose: () => void; children: ReactNode }) {
useEscape(onClose)
useBackToClose(onClose)
return (
<div className="fixed inset-0 z-[80] flex items-end justify-center bg-black/70 sm:items-center" onClick={onClose}>
<div role="menu" className="sheet-in safe-bottom w-full max-w-md rounded-t-3xl border border-line-strong bg-surface p-3 sm:rounded-3xl" onClick={(e) => e.stopPropagation()}>
{children}
<button type="button" onClick={onClose} className="mt-1 w-full rounded-xl px-3 py-3 text-center text-sm text-ink-3 active:bg-surface-2">
{t('common.cancel')}
</button>
</div>
</div>
)
}
function MenuItem({ icon, children, onClick, danger }: { icon: ReactNode; children: ReactNode; onClick: () => void; danger?: boolean }) {
return (
<button
type="button"
role="menuitem"
onClick={onClick}
className={cx('flex w-full items-center gap-3 rounded-xl px-3 py-3.5 text-start text-[15px] active:bg-surface-2', danger ? 'text-accent' : 'text-ink')}
>
{icon}
{children}
</button>
)
}
+139
View File
@@ -0,0 +1,139 @@
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-black/70 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>
)
}
@@ -0,0 +1,30 @@
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
}
+2
View File
@@ -11,6 +11,7 @@ import { useMedia } from '../../store'
import type { MediaInput, MediaItem } from '../../types'
import { StatusPill, TypeBadge } from '../Badges'
import Poster from '../Poster'
import ReportButton from '../moderation/ReportButton'
import Avatar from './Avatar'
import Reactions from './Reactions'
import { useEscape } from '../../lib/escape'
@@ -120,6 +121,7 @@ export default function ItemPeek({ item, owner, onClose }: { item: MediaItem; ow
{formatRating(item.rating, settings.ratingScale)}
</span>
)}
{canReact && review && <ReportButton target={{ type: 'review', id: review.item_id, userId: review.user_id }} className="-me-1.5 size-8" size={16} />}
</div>
<div className="mt-2 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-ink-3">
<StatusPill status={item.status} />
+87 -21
View File
@@ -1,4 +1,4 @@
import { Check, Loader2, Lock, Share2, Star, UserPlus } from 'lucide-react'
import { Ban, Check, Loader2, Lock, Share2, Star, UserCheck, UserPlus } from 'lucide-react'
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
import { fmtNumber, t } from '../../i18n'
import { follow, getProfile, getProfileItems, profileLink, unfollow, type Profile } from '../../lib/cloud/social'
@@ -7,6 +7,8 @@ import { cx, formatRating } from '../../lib/utils'
import { useMedia } from '../../store'
import type { MediaItem, WatchStatus } from '../../types'
import ConfirmDialog from '../ConfirmDialog'
import ReportButton from '../moderation/ReportButton'
import { blockUser, unblockUser, useBlocked } from '../../lib/cloud/moderation'
import Poster from '../Poster'
import { EmptyState, SectionTitle } from '../ui'
import Avatar from './Avatar'
@@ -58,6 +60,9 @@ export default function ProfileView({ username, onClose }: { username: string; o
const [busy, setBusy] = useState(false)
const [confirmUnfollow, setConfirmUnfollow] = useState(false)
const [toast, setToast] = useState<string>()
const [confirmBlock, setConfirmBlock] = useState(false)
const { isBlocked } = useBlocked(!!profile && !profile.isMe)
const blocked = !!profile && !profile.isMe && isBlocked(profile.id)
const load = useCallback(async () => {
setError(undefined)
@@ -132,6 +137,36 @@ export default function ProfileView({ username, onClose }: { username: string; o
}
}
// Bloquer : il ne peut plus me suivre ni réagir à mes avis ; ses avis me sont masqués
const doBlock = async () => {
if (!profile) return
setConfirmBlock(false)
setBusy(true)
try {
await blockUser({ id: profile.id, username: profile.username, displayName: profile.displayName, avatarUrl: profile.avatarUrl })
await load()
void social.refresh()
setToast(t('block.done', { name: profile.displayName }))
} catch (e) {
setToast((e as Error).message)
} finally {
setBusy(false)
}
}
const doUnblock = async () => {
if (!profile) return
setBusy(true)
try {
await unblockUser(profile.id)
setToast(t('block.undone', { name: profile.displayName }))
} catch (e) {
setToast((e as Error).message)
} finally {
setBusy(false)
}
}
const topByCategory = useMemo(() => {
const out: { label: string; items: MediaItem[] }[] = []
// Mon profil : mes réglages locaux font foi tout de suite (même avant la synchro)
@@ -179,26 +214,43 @@ export default function ProfileView({ username, onClose }: { username: string; o
{t('social.editProfile')}
</button>
) : (
<button
onClick={toggleFollow}
disabled={busy}
className={cx('btn mb-1 px-4 py-2 text-sm', profile.relation === 'none' ? 'btn-primary' : 'btn-ghost')}
>
{busy ? (
<Loader2 size={15} className="animate-spin" />
) : profile.relation === 'accepted' ? (
<Check size={15} />
) : profile.relation === 'none' ? (
<UserPlus size={15} />
) : null}
{profile.relation === 'accepted'
? t('social.following')
: profile.relation === 'pending'
? t('social.requested')
: profile.followsMe
? t('social.followBack')
: t('social.follow')}
</button>
<div className="mb-1 flex items-center gap-1">
{blocked ? (
<button onClick={doUnblock} disabled={busy} className="btn btn-ghost px-4 py-2 text-sm">
{busy ? <Loader2 size={15} className="animate-spin" /> : <UserCheck size={15} />}
{t('block.unblock')}
</button>
) : (
<button
onClick={toggleFollow}
disabled={busy}
className={cx('btn px-4 py-2 text-sm', profile.relation === 'none' ? 'btn-primary' : 'btn-ghost')}
>
{busy ? (
<Loader2 size={15} className="animate-spin" />
) : profile.relation === 'accepted' ? (
<Check size={15} />
) : profile.relation === 'none' ? (
<UserPlus size={15} />
) : null}
{profile.relation === 'accepted'
? t('social.following')
: profile.relation === 'pending'
? t('social.requested')
: profile.followsMe
? t('social.followBack')
: t('social.follow')}
</button>
)}
<ReportButton
target={{ type: 'profile', id: profile.id, userId: profile.id }}
actions={[
blocked
? { icon: <UserCheck size={18} />, label: t('block.unblock'), onClick: () => void doUnblock() }
: { icon: <Ban size={18} />, label: t('block.block'), onClick: () => setConfirmBlock(true) },
]}
/>
</div>
)}
</div>
@@ -213,6 +265,12 @@ export default function ProfileView({ username, onClose }: { username: string; o
)}
</p>
{profile.bio && <p className="mt-3 whitespace-pre-line text-sm leading-relaxed text-ink-2 lg:max-w-3xl lg:text-base">{profile.bio}</p>}
{blocked && (
<p className="mt-4 flex items-start gap-2.5 rounded-2xl border border-line px-4 py-3 text-sm text-ink-2 lg:max-w-2xl">
<Ban size={16} className="mt-0.5 shrink-0 text-accent" />
{t('block.notice')}
</p>
)}
<div className="mt-5 flex divide-x divide-line rounded-2xl border border-line py-3 lg:max-w-2xl">
<Stat value={profile.visible ? (profile.stats?.finished ?? 0) : undefined} label={t('social.seen')} />
@@ -262,6 +320,14 @@ export default function ProfileView({ username, onClose }: { username: string; o
{toast}
</p>
)}
<ConfirmDialog
open={confirmBlock}
title={t('block.confirmTitle', { name: profile?.displayName ?? '' })}
message={t('block.confirmText')}
confirmLabel={t('block.block')}
onConfirm={doBlock}
onCancel={() => setConfirmBlock(false)}
/>
<ConfirmDialog
open={confirmUnfollow}
title={profile?.relation === 'pending' ? t('social.cancelRequestTitle') : t('social.unfollowTitle', { name: profile?.displayName ?? '' })}
+10 -3
View File
@@ -1,9 +1,11 @@
import { Loader2, Star } from 'lucide-react'
import { useEffect, useState } from 'react'
import { t } from '../../i18n'
import { useBlocked } from '../../lib/cloud/moderation'
import { titleReviews, type TitleReview, type TitleReviews as TitleReviewsData } from '../../lib/cloud/reviews'
import { formatRating } from '../../lib/utils'
import { useMedia } from '../../store'
import ReportButton from '../moderation/ReportButton'
import Avatar from './Avatar'
import Reactions from './Reactions'
import Sheet from './Sheet'
@@ -12,6 +14,8 @@ import Sheet from './Sheet'
export default function TitleReviews({ externalId, title, onClose, onOpenProfile }: { externalId: string; title: string; onClose: () => void; onOpenProfile: (username: string) => void }) {
const [data, setData] = useState<TitleReviewsData>()
const [error, setError] = useState(false)
// Avis des comptes que j'ai bloqués : masqués
const { isBlocked } = useBlocked()
useEffect(() => {
let alive = true
@@ -23,7 +27,9 @@ export default function TitleReviews({ externalId, title, onClose, onOpenProfile
}
}, [externalId])
const bothEmpty = !!data && data.friends.length === 0 && data.others.length === 0
const friends = data?.friends.filter((r) => !isBlocked(r.user_id)) ?? []
const others = data?.others.filter((r) => !isBlocked(r.user_id)) ?? []
const bothEmpty = !!data && friends.length === 0 && others.length === 0
return (
<Sheet title={title} label={t('reviews.title')} onClose={onClose} elevated>
@@ -36,8 +42,8 @@ export default function TitleReviews({ externalId, title, onClose, onOpenProfile
<p className="px-4 py-16 text-center text-sm text-ink-3">{t('reviews.none')}</p>
) : (
<div className="grid grid-cols-1 gap-4 px-4 pt-4 sm:grid-cols-2">
<ReviewColumn heading={t('reviews.friends')} empty={t('reviews.noneFriends')} list={data.friends} onOpenProfile={onOpenProfile} />
<ReviewColumn heading={t('reviews.others')} empty={t('reviews.noneOthers')} list={data.others} onOpenProfile={onOpenProfile} />
<ReviewColumn heading={t('reviews.friends')} empty={t('reviews.noneFriends')} list={friends} onOpenProfile={onOpenProfile} />
<ReviewColumn heading={t('reviews.others')} empty={t('reviews.noneOthers')} list={others} onOpenProfile={onOpenProfile} />
</div>
)}
</Sheet>
@@ -77,6 +83,7 @@ function ReviewCard({ r, onOpenProfile }: { r: TitleReview; onOpenProfile: (user
{formatRating(r.rating, settings.ratingScale)}
</span>
)}
<ReportButton target={{ type: 'review', id: r.item_id, userId: r.user_id }} className="-me-1.5" size={16} />
</div>
{r.notes && <p className="mt-2 whitespace-pre-line text-sm leading-relaxed text-ink-2">{r.notes}</p>}
<div className="mt-3">
+118
View File
@@ -1035,6 +1035,124 @@ const dict: Translations = {
'sync.pending_two': "تعديلان في الانتظار",
'sync.pending_few': "{count} تعديلات في الانتظار",
'sync.pending_many': "{count} تعديلًا في الانتظار",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "عذرًا… حدث خطأ ما",
"crash.text": "تعطّل العرض. بياناتك في أمان: أعد تحميل التطبيق للمتابعة.",
"crash.reload": "إعادة التحميل",
"crash.retry": "إعادة المحاولة",
"crash.privacy": "عندما يكون التطبيق متصلًا، يُبلَّغ عن المشكلة تلقائيًا دون أي بيانات شخصية.",
"bug.title": "الإبلاغ عن خطأ",
"bug.hint": "صِف المشكلة وسنتولّى الأمر",
"bug.hintLocal": "تواصل معنا عبر rdacet.fr",
"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": "النظام",
"bug.info.lang": "اللغة",
"bug.info.theme": "المظهر",
"bug.info.screen": "الشاشة",
"bug.info.viewport": "النافذة",
"bug.info.route": "الصفحة",
"bug.info.standalone": "تطبيق مثبّت",
"bug.info.online": "متصل",
"report.more": "خيارات أخرى",
"report.action": "إبلاغ",
"report.titleReview": "الإبلاغ عن هذه المراجعة",
"report.titleProfile": "الإبلاغ عن هذا الملف الشخصي",
"report.titleComment": "الإبلاغ عن هذا التعليق",
"report.titleList": "الإبلاغ عن هذه القائمة",
"report.intro": "لن يعرف الشخص المعني من أبلغ عنه. سيراجع فريق الإشراف بلاغك.",
"report.reason": "السبب",
"report.reason.spoiler": "حرق أحداث دون تنبيه",
"report.reason.harassment": "تحرّش أو تنمّر",
"report.reason.hate": "خطاب كراهية",
"report.reason.sexual": "محتوى جنسي",
"report.reason.spam": "رسائل مزعجة أو إعلانات",
"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}",
"block.undone": "تم إلغاء حظر الحساب: {name}",
"block.notice": "لقد حظرت هذا الحساب: لم يعد بإمكانه متابعتك أو التفاعل مع مراجعاتك، ومراجعاته مخفية عنك.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} Änderung ausstehend",
'sync.pending_other': "{count} Änderungen ausstehend",
'sync.now': "Jetzt synchronisieren",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Hoppla… etwas ist schiefgelaufen",
"crash.text": "Die Anzeige ist abgestürzt. Deine Daten sind sicher: Lade die App neu, um weiterzumachen.",
"crash.reload": "Neu laden",
"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 rdacet.fr",
"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",
"bug.info.lang": "Sprache",
"bug.info.theme": "Design",
"bug.info.screen": "Bildschirm",
"bug.info.viewport": "Fenster",
"bug.info.route": "Seite",
"bug.info.standalone": "Installierte App",
"bug.info.online": "Online",
"report.more": "Weitere Optionen",
"report.action": "Melden",
"report.titleReview": "Diese Rezension melden",
"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",
"report.reason.hate": "Hassrede",
"report.reason.sexual": "Sexuelle Inhalte",
"report.reason.spam": "Spam oder Werbung",
"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}",
"block.undone": "Blockierung aufgehoben: {name}",
"block.notice": "Du hast dieses Konto blockiert: Es kann dir nicht mehr folgen oder auf deine Rezensionen reagieren, und seine Rezensionen werden dir ausgeblendet.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} change waiting",
'sync.pending_other': "{count} changes waiting",
'sync.now': "Sync now",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Oops… something went wrong",
"crash.text": "The screen crashed. Your data is safe: reload the app to get going again.",
"crash.reload": "Reload",
"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 rdacet.fr",
"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",
"bug.info.lang": "Language",
"bug.info.theme": "Theme",
"bug.info.screen": "Screen",
"bug.info.viewport": "Window",
"bug.info.route": "Page",
"bug.info.standalone": "Installed app",
"bug.info.online": "Online",
"report.more": "More options",
"report.action": "Report",
"report.titleReview": "Report this review",
"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",
"report.reason.hate": "Hate speech",
"report.reason.sexual": "Sexual content",
"report.reason.spam": "Spam or advertising",
"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}",
"block.undone": "Account unblocked: {name}",
"block.notice": "You blocked this account: they can no longer follow you or react to your reviews, and their reviews are hidden from you.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} cambio pendiente",
'sync.pending_other': "{count} cambios pendientes",
'sync.now': "Sincronizar",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Vaya… algo ha salido mal",
"crash.text": "La pantalla ha fallado. Tus datos están a salvo: recarga la app para continuar.",
"crash.reload": "Recargar",
"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 rdacet.fr",
"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",
"bug.info.lang": "Idioma",
"bug.info.theme": "Tema",
"bug.info.screen": "Pantalla",
"bug.info.viewport": "Ventana",
"bug.info.route": "Página",
"bug.info.standalone": "App instalada",
"bug.info.online": "En línea",
"report.more": "Más opciones",
"report.action": "Denunciar",
"report.titleReview": "Denunciar esta reseña",
"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",
"report.reason.hate": "Discurso de odio",
"report.reason.sexual": "Contenido sexual",
"report.reason.spam": "Spam o publicidad",
"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}",
"block.undone": "Cuenta desbloqueada: {name}",
"block.notice": "Has bloqueado esta cuenta: ya no puede seguirte ni reaccionar a tus reseñas, y sus reseñas están ocultas para ti.",
"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",
}
export default dict
+118
View File
@@ -899,6 +899,124 @@ const dict = {
'sync.pending_one': "{count} modification en attente",
'sync.pending_other': "{count} modifications en attente",
'sync.now': "Synchroniser",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Oups… quelque chose s'est mal passé",
"crash.text": "L'affichage a planté. Tes données sont en sécurité : recharge l'app pour repartir.",
"crash.reload": "Recharger",
"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 rdacet.fr",
"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",
"bug.info.lang": "Langue",
"bug.info.theme": "Thème",
"bug.info.screen": "Écran",
"bug.info.viewport": "Fenêtre",
"bug.info.route": "Page",
"bug.info.standalone": "App installée",
"bug.info.online": "En ligne",
"report.more": "Plus d'options",
"report.action": "Signaler",
"report.titleReview": "Signaler cet avis",
"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",
"report.reason.hate": "Discours haineux",
"report.reason.sexual": "Contenu sexuel",
"report.reason.spam": "Spam ou publicité",
"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}",
"block.undone": "Compte débloqué : {name}",
"block.notice": "Tu as bloqué ce compte : il ne peut plus te suivre ni réagir à tes avis, et ses avis te sont masqués.",
"block.confirmTitle": "Bloquer {name} ?",
"block.confirmText": "Vous ne vous suivrez plus. Ce compte ne pourra plus te suivre ni réagir à tes avis, et ses avis te seront masqués. Il n'en est pas averti.",
// — 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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} बदलाव बाकी",
'sync.pending_other': "{count} बदलाव बाकी",
'sync.now': "अभी सिंक करें",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "उफ़… कुछ गड़बड़ हो गई",
"crash.text": "स्क्रीन क्रैश हो गई। आपका डेटा सुरक्षित है: जारी रखने के लिए ऐप रीलोड करें।",
"crash.reload": "रीलोड करें",
"crash.retry": "फिर से कोशिश करें",
"crash.privacy": "ऐप ऑनलाइन होने पर समस्या हमें अपने आप, बिना किसी निजी डेटा के, भेज दी जाती है।",
"bug.title": "बग रिपोर्ट करें",
"bug.hint": "समस्या बताइए, हम देख लेंगे",
"bug.hintLocal": "rdacet.fr के ज़रिए संपर्क करें",
"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": "सिस्टम",
"bug.info.lang": "भाषा",
"bug.info.theme": "थीम",
"bug.info.screen": "स्क्रीन",
"bug.info.viewport": "विंडो",
"bug.info.route": "पेज",
"bug.info.standalone": "इंस्टॉल किया गया ऐप",
"bug.info.online": "ऑनलाइन",
"report.more": "और विकल्प",
"report.action": "रिपोर्ट करें",
"report.titleReview": "इस समीक्षा की रिपोर्ट करें",
"report.titleProfile": "इस प्रोफ़ाइल की रिपोर्ट करें",
"report.titleComment": "इस टिप्पणी की रिपोर्ट करें",
"report.titleList": "इस सूची की रिपोर्ट करें",
"report.intro": "संबंधित व्यक्ति को पता नहीं चलेगा कि रिपोर्ट किसने की। मॉडरेशन टीम आपकी रिपोर्ट की जाँच करेगी।",
"report.reason": "कारण",
"report.reason.spoiler": "बिना चेतावनी का स्पॉइलर",
"report.reason.harassment": "उत्पीड़न या धमकाना",
"report.reason.hate": "नफ़रत भरी भाषा",
"report.reason.sexual": "यौन सामग्री",
"report.reason.spam": "स्पैम या विज्ञापन",
"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}",
"block.undone": "खाता अनब्लॉक किया गया: {name}",
"block.notice": "आपने इस खाते को ब्लॉक किया है: यह अब आपको फ़ॉलो नहीं कर सकता और न ही आपकी समीक्षाओं पर प्रतिक्रिया दे सकता है, और इसकी समीक्षाएँ आपसे छिपी हैं।",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} perubahan menunggu",
'sync.pending_other': "{count} perubahan menunggu",
'sync.now': "Sinkronkan",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Ups… ada yang salah",
"crash.text": "Tampilan mengalami crash. Datamu aman: muat ulang aplikasi untuk melanjutkan.",
"crash.reload": "Muat ulang",
"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 rdacet.fr",
"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",
"bug.info.lang": "Bahasa",
"bug.info.theme": "Tema",
"bug.info.screen": "Layar",
"bug.info.viewport": "Jendela",
"bug.info.route": "Halaman",
"bug.info.standalone": "Aplikasi terpasang",
"bug.info.online": "Online",
"report.more": "Opsi lainnya",
"report.action": "Laporkan",
"report.titleReview": "Laporkan ulasan ini",
"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",
"report.reason.hate": "Ujaran kebencian",
"report.reason.sexual": "Konten seksual",
"report.reason.spam": "Spam atau iklan",
"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}",
"block.undone": "Blokir dibuka: {name}",
"block.notice": "Kamu memblokir akun ini: akun ini tidak bisa lagi mengikutimu atau bereaksi pada ulasanmu, dan ulasannya disembunyikan darimu.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} modifica in attesa",
'sync.pending_other': "{count} modifiche in attesa",
'sync.now': "Sincronizza",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Ops… qualcosa è andato storto",
"crash.text": "La schermata si è bloccata. I tuoi dati sono al sicuro: ricarica l'app per ripartire.",
"crash.reload": "Ricarica",
"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 rdacet.fr",
"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",
"bug.info.lang": "Lingua",
"bug.info.theme": "Tema",
"bug.info.screen": "Schermo",
"bug.info.viewport": "Finestra",
"bug.info.route": "Pagina",
"bug.info.standalone": "App installata",
"bug.info.online": "Online",
"report.more": "Altre opzioni",
"report.action": "Segnala",
"report.titleReview": "Segnala questa recensione",
"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",
"report.reason.hate": "Incitamento all'odio",
"report.reason.sexual": "Contenuto sessuale",
"report.reason.spam": "Spam o pubblicità",
"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}",
"block.undone": "Account sbloccato: {name}",
"block.notice": "Hai bloccato questo account: non può più seguirti né reagire alle tue recensioni, e le sue recensioni ti sono nascoste.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} 件の変更が保留中",
'sync.pending_other': "{count} 件の変更が保留中",
'sync.now': "今すぐ同期",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "おっと…問題が発生しました",
"crash.text": "画面がクラッシュしました。データは無事です。アプリを再読み込みして続けてください。",
"crash.reload": "再読み込み",
"crash.retry": "もう一度試す",
"crash.privacy": "アプリがオンラインのとき、問題は個人データを含めずに自動で報告されます。",
"bug.title": "不具合を報告",
"bug.hint": "問題を教えてください。対応します",
"bug.hintLocal": "rdacet.fr からお問い合わせください",
"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": "システム",
"bug.info.lang": "言語",
"bug.info.theme": "テーマ",
"bug.info.screen": "画面",
"bug.info.viewport": "ウィンドウ",
"bug.info.route": "ページ",
"bug.info.standalone": "インストール済みアプリ",
"bug.info.online": "オンライン",
"report.more": "その他のオプション",
"report.action": "報告",
"report.titleReview": "このレビューを報告",
"report.titleProfile": "このプロフィールを報告",
"report.titleComment": "このコメントを報告",
"report.titleList": "このリストを報告",
"report.intro": "相手に誰が報告したかは伝わりません。モデレーションチームが報告を確認します。",
"report.reason": "理由",
"report.reason.spoiler": "ネタバレ表示なし",
"report.reason.harassment": "嫌がらせ・いじめ",
"report.reason.hate": "ヘイトスピーチ",
"report.reason.sexual": "性的なコンテンツ",
"report.reason.spam": "スパム・宣伝",
"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}",
"block.undone": "ブロックを解除しました:{name}",
"block.notice": "このアカウントをブロックしています:あなたをフォローしたりレビューにリアクションしたりできず、相手のレビューはあなたに表示されません。",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "변경 {count}개 대기 중",
'sync.pending_other': "변경 {count}개 대기 중",
'sync.now': "지금 동기화",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "앗… 문제가 발생했어요",
"crash.text": "화면에 오류가 났어요. 데이터는 안전해요. 앱을 새로고침해 계속하세요.",
"crash.reload": "새로고침",
"crash.retry": "다시 시도",
"crash.privacy": "앱이 온라인일 때 문제는 개인 정보 없이 자동으로 저희에게 보고돼요.",
"bug.title": "버그 신고",
"bug.hint": "문제를 알려 주시면 처리할게요",
"bug.hintLocal": "rdacet.fr로 문의하세요",
"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": "시스템",
"bug.info.lang": "언어",
"bug.info.theme": "테마",
"bug.info.screen": "화면",
"bug.info.viewport": "창",
"bug.info.route": "페이지",
"bug.info.standalone": "설치된 앱",
"bug.info.online": "온라인",
"report.more": "더 보기",
"report.action": "신고",
"report.titleReview": "이 리뷰 신고",
"report.titleProfile": "이 프로필 신고",
"report.titleComment": "이 댓글 신고",
"report.titleList": "이 리스트 신고",
"report.intro": "상대방은 누가 신고했는지 알 수 없어요. 운영팀이 신고를 검토할게요.",
"report.reason": "사유",
"report.reason.spoiler": "표시 없는 스포일러",
"report.reason.harassment": "괴롭힘 또는 따돌림",
"report.reason.hate": "혐오 발언",
"report.reason.sexual": "성적인 콘텐츠",
"report.reason.spam": "스팸 또는 광고",
"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}",
"block.undone": "차단을 해제했어요: {name}",
"block.notice": "이 계정을 차단했어요: 나를 팔로우하거나 내 리뷰에 반응할 수 없고, 이 계정의 리뷰는 나에게 숨겨져요.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} wijziging in wachtrij",
'sync.pending_other': "{count} wijzigingen in wachtrij",
'sync.now': "Nu synchroniseren",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Oeps… er ging iets mis",
"crash.text": "Het scherm is vastgelopen. Je gegevens zijn veilig: herlaad de app om verder te gaan.",
"crash.reload": "Herladen",
"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 rdacet.fr",
"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",
"bug.info.lang": "Taal",
"bug.info.theme": "Thema",
"bug.info.screen": "Scherm",
"bug.info.viewport": "Venster",
"bug.info.route": "Pagina",
"bug.info.standalone": "Geïnstalleerde app",
"bug.info.online": "Online",
"report.more": "Meer opties",
"report.action": "Rapporteren",
"report.titleReview": "Deze recensie rapporteren",
"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",
"report.reason.hate": "Haatzaaiende taal",
"report.reason.sexual": "Seksuele inhoud",
"report.reason.spam": "Spam of reclame",
"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}",
"block.undone": "Account gedeblokkeerd: {name}",
"block.notice": "Je hebt dit account geblokkeerd: het kan je niet meer volgen of reageren op je recensies, en de recensies ervan zijn voor jou verborgen.",
"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",
}
export default dict
+118
View File
@@ -989,6 +989,124 @@ const dict: Translations = {
'sync.now': "Synchronizuj",
'sync.pending_few': "{count} zmiany oczekują",
'sync.pending_many': "{count} zmian oczekuje",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Ups… coś poszło nie tak",
"crash.text": "Ekran przestał działać. Twoje dane są bezpieczne: odśwież aplikację, aby kontynuować.",
"crash.reload": "Odśwież",
"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 rdacet.fr",
"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",
"bug.info.lang": "Język",
"bug.info.theme": "Motyw",
"bug.info.screen": "Ekran",
"bug.info.viewport": "Okno",
"bug.info.route": "Strona",
"bug.info.standalone": "Zainstalowana aplikacja",
"bug.info.online": "Online",
"report.more": "Więcej opcji",
"report.action": "Zgłoś",
"report.titleReview": "Zgłoś tę recenzję",
"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",
"report.reason.hate": "Mowa nienawiści",
"report.reason.sexual": "Treści seksualne",
"report.reason.spam": "Spam lub reklama",
"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}",
"block.undone": "Odblokowano konto: {name}",
"block.notice": "Zablokowałeś to konto: nie może Cię już obserwować ani reagować na Twoje recenzje, a jego recenzje są przed Tobą ukryte.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} alteração pendente",
'sync.pending_other': "{count} alterações pendentes",
'sync.now': "Sincronizar",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Ops… algo deu errado",
"crash.text": "A tela travou. Seus dados estão seguros: recarregue o app para continuar.",
"crash.reload": "Recarregar",
"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 rdacet.fr",
"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",
"bug.info.lang": "Idioma",
"bug.info.theme": "Tema",
"bug.info.screen": "Tela",
"bug.info.viewport": "Janela",
"bug.info.route": "Página",
"bug.info.standalone": "App instalado",
"bug.info.online": "Online",
"report.more": "Mais opções",
"report.action": "Denunciar",
"report.titleReview": "Denunciar esta avaliação",
"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",
"report.reason.hate": "Discurso de ódio",
"report.reason.sexual": "Conteúdo sexual",
"report.reason.spam": "Spam ou publicidade",
"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}",
"block.undone": "Conta desbloqueada: {name}",
"block.notice": "Você bloqueou esta conta: ela não pode mais seguir você nem reagir às suas avaliações, e as avaliações dela ficam ocultas para você.",
"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",
}
export default dict
+118
View File
@@ -989,6 +989,124 @@ const dict: Translations = {
'sync.now': "Синхронизировать",
'sync.pending_few': "{count} изменения ожидают",
'sync.pending_many': "{count} изменений ожидают",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Ой… что-то пошло не так",
"crash.text": "Экран дал сбой. Ваши данные в безопасности: перезагрузите приложение, чтобы продолжить.",
"crash.reload": "Перезагрузить",
"crash.retry": "Повторить",
"crash.privacy": "Когда приложение онлайн, проблема сообщается нам автоматически, без каких-либо личных данных.",
"bug.title": "Сообщить об ошибке",
"bug.hint": "Опишите проблему, и мы разберёмся",
"bug.hintLocal": "Свяжитесь с нами через rdacet.fr",
"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": "Система",
"bug.info.lang": "Язык",
"bug.info.theme": "Тема",
"bug.info.screen": "Экран",
"bug.info.viewport": "Окно",
"bug.info.route": "Страница",
"bug.info.standalone": "Установленное приложение",
"bug.info.online": "Онлайн",
"report.more": "Другие действия",
"report.action": "Пожаловаться",
"report.titleReview": "Пожаловаться на отзыв",
"report.titleProfile": "Пожаловаться на профиль",
"report.titleComment": "Пожаловаться на комментарий",
"report.titleList": "Пожаловаться на список",
"report.intro": "Человек не узнает, кто на него пожаловался. Команда модерации рассмотрит вашу жалобу.",
"report.reason": "Причина",
"report.reason.spoiler": "Неотмеченный спойлер",
"report.reason.harassment": "Травля или запугивание",
"report.reason.hate": "Язык вражды",
"report.reason.sexual": "Сексуальный контент",
"report.reason.spam": "Спам или реклама",
"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}",
"block.undone": "Аккаунт разблокирован: {name}",
"block.notice": "Вы заблокировали этот аккаунт: он больше не может подписаться на вас или реагировать на ваши отзывы, а его отзывы скрыты от вас.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "รอซิงค์ {count} รายการ",
'sync.pending_other': "รอซิงค์ {count} รายการ",
'sync.now': "ซิงค์ตอนนี้",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "อุ๊ย… มีบางอย่างผิดพลาด",
"crash.text": "หน้าจอขัดข้อง ข้อมูลของคุณปลอดภัย: โหลดแอปใหม่เพื่อใช้งานต่อ",
"crash.reload": "โหลดใหม่",
"crash.retry": "ลองอีกครั้ง",
"crash.privacy": "เมื่อแอปออนไลน์ ปัญหาจะถูกแจ้งให้เราทราบโดยอัตโนมัติ โดยไม่มีข้อมูลส่วนตัวใด ๆ",
"bug.title": "รายงานบั๊ก",
"bug.hint": "อธิบายปัญหา แล้วเราจะจัดการให้",
"bug.hintLocal": "ติดต่อเราผ่าน rdacet.fr",
"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": "ระบบ",
"bug.info.lang": "ภาษา",
"bug.info.theme": "ธีม",
"bug.info.screen": "หน้าจอ",
"bug.info.viewport": "หน้าต่าง",
"bug.info.route": "หน้า",
"bug.info.standalone": "แอปที่ติดตั้ง",
"bug.info.online": "ออนไลน์",
"report.more": "ตัวเลือกเพิ่มเติม",
"report.action": "รายงาน",
"report.titleReview": "รายงานรีวิวนี้",
"report.titleProfile": "รายงานโปรไฟล์นี้",
"report.titleComment": "รายงานความคิดเห็นนี้",
"report.titleList": "รายงานรายการนี้",
"report.intro": "บุคคลนั้นจะไม่รู้ว่าใครรายงาน ทีมผู้ดูแลจะตรวจสอบรายงานของคุณ",
"report.reason": "เหตุผล",
"report.reason.spoiler": "สปอยล์โดยไม่เตือน",
"report.reason.harassment": "การคุกคามหรือกลั่นแกล้ง",
"report.reason.hate": "ถ้อยคำแสดงความเกลียดชัง",
"report.reason.sexual": "เนื้อหาทางเพศ",
"report.reason.spam": "สแปมหรือโฆษณา",
"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}",
"block.undone": "เลิกบล็อกบัญชีแล้ว: {name}",
"block.notice": "คุณบล็อกบัญชีนี้แล้ว: บัญชีนี้จะติดตามคุณหรือแสดงความรู้สึกต่อรีวิวของคุณไม่ได้ และรีวิวของบัญชีนี้จะถูกซ่อนจากคุณ",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} değişiklik bekliyor",
'sync.pending_other': "{count} değişiklik bekliyor",
'sync.now': "Şimdi eşitle",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Hay aksi… bir şeyler ters gitti",
"crash.text": "Ekran çöktü. Verilerin güvende: devam etmek için uygulamayı yeniden yükle.",
"crash.reload": "Yeniden yükle",
"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": "rdacet.fr ü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",
"bug.info.lang": "Dil",
"bug.info.theme": "Tema",
"bug.info.screen": "Ekran",
"bug.info.viewport": "Pencere",
"bug.info.route": "Sayfa",
"bug.info.standalone": "Yüklü uygulama",
"bug.info.online": "Çevrimiçi",
"report.more": "Diğer seçenekler",
"report.action": "Şikâyet et",
"report.titleReview": "Bu incelemeyi şikâyet et",
"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",
"report.reason.hate": "Nefret söylemi",
"report.reason.sexual": "Cinsel içerik",
"report.reason.spam": "Spam veya reklam",
"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}",
"block.undone": "Engel kaldırıldı: {name}",
"block.notice": "Bu hesabı engelledin: artık seni takip edemez ya da incelemelerine tepki veremez; incelemeleri senden gizlenir.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} thay đổi đang chờ",
'sync.pending_other': "{count} thay đổi đang chờ",
'sync.now': "Đồng bộ ngay",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "Ối… đã có lỗi xảy ra",
"crash.text": "Màn hình bị lỗi. Dữ liệu của bạn vẫn an toàn: hãy tải lại ứng dụng để tiếp tục.",
"crash.reload": "Tải lại",
"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 rdacet.fr",
"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",
"bug.info.lang": "Ngôn ngữ",
"bug.info.theme": "Giao diện",
"bug.info.screen": "Màn hình",
"bug.info.viewport": "Cửa sổ",
"bug.info.route": "Trang",
"bug.info.standalone": "Ứng dụng đã cài",
"bug.info.online": "Trực tuyến",
"report.more": "Tùy chọn khác",
"report.action": "Báo cáo",
"report.titleReview": "Báo cáo bài đánh giá này",
"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",
"report.reason.hate": "Ngôn từ thù ghét",
"report.reason.sexual": "Nội dung tình dục",
"report.reason.spam": "Spam hoặc quảng cáo",
"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}",
"block.undone": "Đã bỏ chặn tài khoản: {name}",
"block.notice": "Bạn đã chặn tài khoản này: họ 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ọ bị ẩn với bạn.",
"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",
}
export default dict
+118
View File
@@ -897,6 +897,124 @@ const dict: Translations = {
'sync.pending_one': "{count} 项更改待上传",
'sync.pending_other': "{count} 项更改待上传",
'sync.now': "立即同步",
// — Modération : signaler, bloquer, signaler un bug, écran de plantage —
"crash.title": "哎呀……出了点问题",
"crash.text": "界面崩溃了。你的数据是安全的:重新加载应用即可继续。",
"crash.reload": "重新加载",
"crash.retry": "重试",
"crash.privacy": "应用联网时,问题会自动报告给我们,不含任何个人数据。",
"bug.title": "报告问题",
"bug.hint": "描述问题,我们来处理",
"bug.hintLocal": "通过 rdacet.fr 联系我们",
"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": "系统",
"bug.info.lang": "语言",
"bug.info.theme": "主题",
"bug.info.screen": "屏幕",
"bug.info.viewport": "窗口",
"bug.info.route": "页面",
"bug.info.standalone": "已安装应用",
"bug.info.online": "在线",
"report.more": "更多选项",
"report.action": "举报",
"report.titleReview": "举报这条评价",
"report.titleProfile": "举报这个主页",
"report.titleComment": "举报这条评论",
"report.titleList": "举报这个片单",
"report.intro": "对方不会知道是谁举报的。审核团队会处理你的举报。",
"report.reason": "原因",
"report.reason.spoiler": "未标注的剧透",
"report.reason.harassment": "骚扰或霸凌",
"report.reason.hate": "仇恨言论",
"report.reason.sexual": "色情内容",
"report.reason.spam": "垃圾信息或广告",
"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}",
"block.undone": "已取消屏蔽:{name}",
"block.notice": "你已屏蔽此账号:对方无法再关注你或回应你的评价,其评价也对你隐藏。",
"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",
}
export default dict
+61
View File
@@ -0,0 +1,61 @@
import { getLang } from '../i18n'
import type { ThemeMode } from '../types'
/** Version de l'app (package.json). */
export const APP_VERSION = __APP_VERSION__
/** Navigateur et système, en clair et sans détail identifiant (« Chrome 129 », « Android 14 »). */
export function browserInfo(ua = navigator.userAgent): { browser: string; os: string } {
const m = (re: RegExp) => ua.match(re)?.[1]?.split('.')[0]
const browser = /Edg\//.test(ua)
? `Edge ${m(/Edg\/([\d.]+)/) ?? ''}`
: /OPR\//.test(ua)
? `Opera ${m(/OPR\/([\d.]+)/) ?? ''}`
: /SamsungBrowser\//.test(ua)
? `Samsung Internet ${m(/SamsungBrowser\/([\d.]+)/) ?? ''}`
: /Firefox\/|FxiOS\//.test(ua)
? `Firefox ${m(/(?:Firefox|FxiOS)\/([\d.]+)/) ?? ''}`
: /CriOS\/|Chrome\//.test(ua)
? `Chrome ${m(/(?:CriOS|Chrome)\/([\d.]+)/) ?? ''}`
: /Safari\//.test(ua)
? `Safari ${m(/Version\/([\d.]+)/) ?? ''}`
: 'Other'
const os = /Android/.test(ua)
? `Android ${m(/Android ([\d.]+)/) ?? ''}`
: /iPhone|iPad|iPod/.test(ua)
? `iOS ${ua.match(/OS (\d+)_/)?.[1] ?? ''}`
: /Mac OS X/.test(ua)
? 'macOS'
: /Windows/.test(ua)
? 'Windows'
: /CrOS/.test(ua)
? 'ChromeOS'
: /Linux/.test(ua)
? 'Linux'
: 'Other'
return { browser: browser.trim(), os: os.trim() }
}
/** Page affichée, sans ce qui pourrait identifier quelqu'un (« #/u/pseudo » → « #/u »). */
export const currentRoute = () => (location.hash.match(/^#\/[a-z-]{1,20}/i)?.[0] ?? '#/') || '#/'
/**
* Infos techniques jointes à un signalement de bug (affichées avant l'envoi).
* Rien de personnel : ni compte, ni e-mail, ni contenu de la bibliothèque.
*/
export function techInfo(theme: ThemeMode): Record<string, string> {
const { browser, os } = browserInfo()
const standalone = window.matchMedia?.('(display-mode: standalone)').matches || (navigator as { standalone?: boolean }).standalone === true
return {
version: APP_VERSION,
browser,
os,
lang: getLang(),
theme,
screen: `${screen.width}×${screen.height} @${Math.round((window.devicePixelRatio || 1) * 10) / 10}x`,
viewport: `${window.innerWidth}×${window.innerHeight}`,
route: currentRoute(),
standalone: standalone ? 'yes' : 'no',
online: navigator.onLine ? 'yes' : 'no',
}
}
+266
View File
@@ -0,0 +1,266 @@
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 })
}
+144
View File
@@ -0,0 +1,144 @@
import { useEffect, useState } from 'react'
import { t } from '../../i18n'
import { cleanText, isPlainObject } from '../security'
import { cloudFetch } from './api'
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).
*/
/** Types de contenus signalables. 'comment' et 'list' : branchés par les fonctionnalités correspondantes. */
export type ReportTargetType = 'review' | 'profile' | 'comment' | 'list'
export interface ReportTarget {
type: ReportTargetType
/** Identifiant du contenu : id de la fiche (avis), id du compte (profil), id du commentaire / de la liste */
id: string
/** Auteur du contenu */
userId: string
}
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, avec son code court (« rate limited », « not found »…). */
export class ModerationError extends Error {
constructor(
message: string,
readonly code: string,
) {
super(message)
}
}
async function rpc<T>(name: string, args: Record<string, unknown> = {}): Promise<T> {
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 }
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, code)
}
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 {
id: string
username: string
displayName: string
avatarUrl?: string
}
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
let blocked: BlockedUser[] = []
let loaded: Promise<void> | null = null
/** Compte pour lequel la liste a été chargée (changement de compte = rechargement) */
let loadedFor: string | undefined
const listeners = new Set<() => void>()
const emit = () => listeners.forEach((fn) => fn())
/** Charge (une fois par session) la liste des comptes que j'ai bloqués. Silencieux si le serveur n'est pas à jour. */
export function loadBlocks(force = false): Promise<void> {
const uid = getSession()?.user.id
if (loaded && !force && loadedFor === uid) return loaded
if (loadedFor !== uid) blocked = []
loadedFor = uid
loaded = rpc<unknown>('my_blocks')
.then((rows) => {
blocked = (Array.isArray(rows) ? rows : []).flatMap((r) => {
if (!isPlainObject(r) || typeof r.id !== 'string' || !UUID.test(r.id)) return []
const username = cleanText(r.username, 20) ?? ''
return [{ id: r.id, username, displayName: cleanText(r.display_name, 40) ?? username, avatarUrl: safeMediaUrl(r.avatar_url) }]
})
emit()
})
.catch(() => {
/* fonction pas encore déployée / hors-ligne : rien n'est masqué */
})
return loaded
}
export const isBlocked = (userId: string | undefined | null) => !!userId && loadedFor === getSession()?.user.id && blocked.some((b) => b.id === userId)
/** Liste des comptes bloqués, tenue à jour (pour masquer avis / commentaires). */
export function useBlocked(enabled = true): { blocked: BlockedUser[]; isBlocked: (userId: string | undefined | null) => boolean } {
const [, setTick] = useState(0)
useEffect(() => {
if (!enabled) return
const fn = () => setTick((n) => n + 1)
listeners.add(fn)
void loadBlocks()
return () => {
listeners.delete(fn)
}
}, [enabled])
return { blocked: enabled ? blocked : [], isBlocked: (id) => enabled && isBlocked(id) }
}
export async function blockUser(user: BlockedUser): Promise<void> {
await rpc('block_user', { p_user: user.id })
if (!isBlocked(user.id)) blocked = [user, ...blocked]
emit()
}
export async function unblockUser(userId: string): Promise<void> {
await rpc('unblock_user', { p_user: userId })
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 })
}
+112
View File
@@ -0,0 +1,112 @@
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 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'))
}
+8 -1
View File
@@ -6,6 +6,8 @@ import { initialLang, loadLang } from './i18n'
import { LangProvider } from './i18n/react'
import Root from './Root'
import { applySavedTheme } from './lib/theme'
import ErrorBoundary from './components/ErrorBoundary'
import { installErrorReporting } from './lib/errorReporter'
// Polices embarquées dans l'app (jeu « latin », suffisant pour le français) : aucun appel à Google Fonts, fonctionne hors-ligne
import '@fontsource/inter/latin-400.css'
import '@fontsource/inter/latin-500.css'
@@ -16,6 +18,9 @@ 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()
// Service worker : cache l'app pour un fonctionnement hors-ligne et la met à jour automatiquement.
registerSW({ immediate: true })
@@ -29,7 +34,9 @@ loadLang(initialLang())
createRoot(document.getElementById('root')!).render(
<StrictMode>
<LangProvider>
<Root />
<ErrorBoundary>
<Root />
</ErrorBoundary>
</LangProvider>
</StrictMode>,
)
+27 -6
View File
@@ -1,5 +1,5 @@
import { ArrowLeft, Ban, Loader2, MessageSquareOff, RotateCcw, Search, Star } from 'lucide-react'
import { useEffect, useRef, useState } from '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'
@@ -15,8 +15,10 @@ import {
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' | 'users' | 'reviews'
type Tab = 'overview' | 'reports' | 'users' | 'suspended' | 'reviews' | 'bugs' | 'errors'
const USERS_PAGE = 50
const REVIEWS_PAGE = 30
@@ -368,15 +370,23 @@ function ReviewsTab() {
/* ------------------------------------------------------------------ Page */
const TABS: { id: Tab; label: () => string }[] = [
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
@@ -403,18 +413,25 @@ export default function AdminPage({ onBack }: { onBack: () => void }) {
<EmptyState title={t('admin.title')} text={t('admin.loadError')} />
) : (
<>
<div className="grid grid-cols-3 gap-1 rounded-full border border-line p-1">
<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"
aria-pressed={on}
role="tab"
aria-selected={on}
onClick={() => setTab(tb.id)}
className={cx('rounded-full py-2 text-sm font-medium transition-colors', on ? 'bg-ink text-bg' : 'text-ink-3')}
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>
)
})}
@@ -423,6 +440,10 @@ export default function AdminPage({ onBack }: { onBack: () => void }) {
{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} />}
</>
)}
</>
+5 -1
View File
@@ -17,6 +17,8 @@ import { cx } from '../lib/utils'
import { useEscape } from '../lib/escape'
import { useBackToClose } from '../lib/backNav'
import { useMedia } from '../store'
import { BugReportRow } from '../components/moderation/BugReport'
import { alertsSummary, useAdminAlerts } from '../components/moderation/useAdminAlerts'
type Message = { kind: 'ok' | 'error'; text: string }
@@ -50,6 +52,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
if (signedIn) void isAdmin().then(setAdmin)
else setAdmin(false)
}, [signedIn])
const adminHint = alertsSummary(useAdminAlerts(admin))
const fileRef = useRef<HTMLInputElement>(null)
const [pending, setPending] = useState<ParsedBackup>()
const [message, setMessage] = useState<Message>()
@@ -184,7 +187,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
<>
<SectionTitle>{t('settings.admin')}</SectionTitle>
<div className="card overflow-hidden">
<Row icon={<ShieldCheck size={19} />} title={t('admin.title')} onClick={onOpenAdmin} />
<Row icon={<ShieldCheck size={19} />} title={t('admin.title')} hint={adminHint} onClick={onOpenAdmin} />
</div>
</>
)}
@@ -498,6 +501,7 @@ export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void
<SectionTitle>{t('settings.about')}</SectionTitle>
<div className="card divide-y divide-line overflow-hidden">
<BugReportRow />
{(
[
['/privacy.html', t('legal.privacy')],
+566
View File
@@ -0,0 +1,566 @@
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-full 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)
setRows((p) => 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-full 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-full 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>
)
}
+5
View File
@@ -5,8 +5,13 @@ interface ImportMetaEnv {
readonly VITE_SUPABASE_URL?: string
/** Clé publique « anon » / « publishable » de Supabase (publique par nature, protégée par les règles RLS) */
readonly VITE_SUPABASE_ANON_KEY?: string
/** « 1 » : remonter aussi les erreurs en mode dev (tests) */
readonly VITE_REPORT_ERRORS?: string
}
interface ImportMeta {
readonly env: ImportMetaEnv
}
/** Version de l'app (package.json), injectée par vite.config.ts */
declare const __APP_VERSION__: string