From 04b5005e3bd64eced417c95c83a5ab965ec5af4b Mon Sep 17 00:00:00 2001 From: Romain Date: Mon, 5 Oct 2026 19:55:32 +0200 Subject: [PATCH] admin pannel --- src/App.tsx | 31 +- src/i18n/locales/ar.ts | 45 ++ src/i18n/locales/de.ts | 45 ++ src/i18n/locales/en.ts | 45 ++ src/i18n/locales/es.ts | 45 ++ src/i18n/locales/fr.ts | 45 ++ src/i18n/locales/hi.ts | 45 ++ src/i18n/locales/id.ts | 45 ++ src/i18n/locales/it.ts | 45 ++ src/i18n/locales/ja.ts | 45 ++ src/i18n/locales/ko.ts | 45 ++ src/i18n/locales/nl.ts | 45 ++ src/i18n/locales/pl.ts | 45 ++ src/i18n/locales/pt.ts | 45 ++ src/i18n/locales/ru.ts | 45 ++ src/i18n/locales/th.ts | 45 ++ src/i18n/locales/tr.ts | 45 ++ src/i18n/locales/vi.ts | 45 ++ src/i18n/locales/zh.ts | 45 ++ src/lib/cloud/admin.ts | 86 ++++ src/pages/AdminPage.tsx | 430 +++++++++++++++++++ src/pages/SettingsPage.tsx | 19 +- supabase/migrations/20261005120000_admin.sql | 39 ++ tsconfig.tsbuildinfo | 2 +- 24 files changed, 1402 insertions(+), 15 deletions(-) create mode 100644 src/lib/cloud/admin.ts create mode 100644 src/pages/AdminPage.tsx create mode 100644 supabase/migrations/20261005120000_admin.sql diff --git a/src/App.tsx b/src/App.tsx index c15c0fa..ee5dce3 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -9,14 +9,18 @@ import HomePage from './pages/HomePage' import CatalogPage from './pages/CatalogPage' import StatsPage from './pages/StatsPage' import SettingsPage from './pages/SettingsPage' +import AdminPage from './pages/AdminPage' import { useMedia } from './store' import type { MediaItem } from './types' const TABS: Tab[] = ['home', 'catalog', 'stats', 'settings'] +// L'administration a sa propre route (#/admin), hors de la navigation principale +type Route = Tab | 'admin' -function tabFromHash(): Tab { - const h = window.location.hash.replace('#/', '') as Tab - return TABS.includes(h) ? h : 'home' +function routeFromHash(): Route { + const h = window.location.hash.replace('#/', '') + if (h === 'admin') return 'admin' + return (TABS as string[]).includes(h) ? (h as Tab) : 'home' } /** Formulaire ouvert : null = fermé, 'new' = ajout, sinon la fiche à éditer. */ @@ -24,38 +28,41 @@ export type EditorState = null | 'new' | MediaItem export default function App() { const { error } = useMedia() - const [tab, setTab] = useState(tabFromHash) + const [route, setRoute] = useState(routeFromHash) const [editor, setEditor] = useState(null) const [roulette, setRoulette] = useState(false) const [calendar, setCalendar] = useState(false) useEffect(() => { - const onHash = () => setTab(tabFromHash()) + const onHash = () => setRoute(routeFromHash()) window.addEventListener('hashchange', onHash) return () => window.removeEventListener('hashchange', onHash) }, []) - const go = (t: Tab) => { + const go = (t: Route) => { window.location.hash = `/${t}` window.scrollTo({ top: 0 }) } + // Dans la barre de navigation, l'administration reste rattachée à « Réglages » + const navTab: Tab = route === 'admin' ? 'settings' : route const openItem = (item: MediaItem) => setEditor(item) const openNew = () => setEditor('new') return ( - +
{error &&

{error}

} - {tab === 'home' && setRoulette(true)} onCalendar={() => setCalendar(true)} />} - {tab === 'catalog' && } - {tab === 'stats' && } - {tab === 'settings' && } + {route === 'home' && setRoulette(true)} onCalendar={() => setCalendar(true)} />} + {route === 'catalog' && } + {route === 'stats' && } + {route === 'settings' && go('admin')} />} + {route === 'admin' && go('settings')} />}
- + {roulette && setRoulette(false)} onOpen={openItem} />} {calendar && setCalendar(false)} onOpen={openItem} />} diff --git a/src/i18n/locales/ar.ts b/src/i18n/locales/ar.ts index 6422e1d..31d6831 100644 --- a/src/i18n/locales/ar.ts +++ b/src/i18n/locales/ar.ts @@ -234,6 +234,51 @@ const dict: Translations = { 'settings.installApp': 'تثبيت التطبيق', 'settings.installHint': 'أضِف AzuuCine إلى شاشتك الرئيسية أو سطح المكتب.', 'settings.installed': 'تم تثبيت التطبيق', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'تثبيت AzuuCine', 'install.ios': 'افتح AzuuCine في Safari.\nاضغط زر المشاركة (المربع مع سهم للأعلى).\nاختر «إضافة إلى الشاشة الرئيسية» ثم «إضافة».', 'install.android': 'افتح AzuuCine في Chrome.\nاضغط قائمة ⋮ في أعلى اليمين.\nاختر «إضافة إلى الشاشة الرئيسية» (أو «تثبيت التطبيق»).', diff --git a/src/i18n/locales/de.ts b/src/i18n/locales/de.ts index 13ef136..6003a5c 100644 --- a/src/i18n/locales/de.ts +++ b/src/i18n/locales/de.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'App installieren', 'settings.installHint': 'Füge AzuuCine zum Startbildschirm oder Desktop hinzu.', 'settings.installed': 'App installiert', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'AzuuCine installieren', 'install.ios': 'Öffne AzuuCine in Safari.\nTippe auf die Teilen-Schaltfläche (das Quadrat mit Pfeil nach oben).\nWähle „Zum Home-Bildschirm“ und dann „Hinzufügen“.', 'install.android': 'Öffne AzuuCine in Chrome.\nTippe oben rechts auf das Menü ⋮.\nWähle „Zum Startbildschirm hinzufügen“ (oder „App installieren“).', diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index 7f0dbc0..2f2ee83 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'Install the app', 'settings.installHint': 'Add AzuuCine to your home screen or desktop.', 'settings.installed': 'App installed', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'Install AzuuCine', 'install.ios': 'Open AzuuCine in Safari.\nTap the Share button (the square with an up arrow).\nChoose “Add to Home Screen”, then “Add”.', 'install.android': 'Open AzuuCine in Chrome.\nTap the ⋮ menu at the top right.\nChoose “Add to Home screen” (or “Install app”).', diff --git a/src/i18n/locales/es.ts b/src/i18n/locales/es.ts index 3a0ddeb..00819de 100644 --- a/src/i18n/locales/es.ts +++ b/src/i18n/locales/es.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'Instalar la aplicación', 'settings.installHint': 'Añade AzuuCine a tu pantalla de inicio o escritorio.', 'settings.installed': 'Aplicación instalada', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'Instalar AzuuCine', 'install.ios': 'Abre AzuuCine en Safari.\nToca el botón Compartir (el cuadrado con una flecha hacia arriba).\nElige «Añadir a inicio» y luego «Añadir».', 'install.android': 'Abre AzuuCine en Chrome.\nToca el menú ⋮ arriba a la derecha.\nElige «Añadir a la pantalla de inicio» (o «Instalar aplicación»).', diff --git a/src/i18n/locales/fr.ts b/src/i18n/locales/fr.ts index f9f0dd8..db6ac42 100644 --- a/src/i18n/locales/fr.ts +++ b/src/i18n/locales/fr.ts @@ -230,6 +230,51 @@ const dict = { 'settings.installApp': 'Installer l\'application', 'settings.installHint': 'Ajoute AzuuCine à ton écran d\'accueil ou ton bureau.', 'settings.installed': 'Application installée', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Vue d\'ensemble', + 'admin.tabUsers': 'Utilisateurs', + 'admin.tabReviews': 'Avis', + 'admin.users': 'Utilisateurs', + 'admin.public': 'Publics', + 'admin.private': 'Privés', + 'admin.suspended': 'Suspendus', + 'admin.items': 'Titres', + 'admin.films': 'Films', + 'admin.series': 'Séries', + 'admin.reviews': 'Avis', + 'admin.follows': 'Abonnements', + 'admin.pending': 'Demandes', + 'admin.media': 'Images', + 'admin.signups7': 'Inscriptions (7 j)', + 'admin.signups30': 'Inscriptions (30 j)', + 'admin.active7': 'Actifs (7 j)', + 'admin.newItems7': 'Ajouts (7 j)', + 'admin.signupsChart': 'Inscriptions — 14 derniers jours', + 'admin.searchUsers': 'Rechercher un compte…', + 'admin.joined': 'Inscrit le {date}', + 'admin.lastSeen': 'Vu {ago}', + 'admin.never': 'jamais', + 'admin.suspend': 'Suspendre', + 'admin.unsuspend': 'Réactiver', + 'admin.suspendedBadge': 'Suspendu', + 'admin.noUsers': 'Aucun compte', + 'admin.anon': '(sans profil)', + 'admin.statItems': 'titres', + 'admin.statReviews': 'avis', + 'admin.statFollowers': 'abonnés', + 'admin.clearReview': 'Effacer l\'avis', + 'admin.reviewCleared': 'Avis effacé', + 'admin.noReviews': 'Aucun avis', + 'admin.confirmClearTitle': 'Effacer cet avis ?', + 'admin.confirmClearMsg': 'L\'avis sera retiré du profil du membre à sa prochaine synchronisation.', + 'admin.confirmSuspendTitle': 'Suspendre ce compte ?', + 'admin.confirmSuspendMsg': 'Son profil sera masqué pour les autres membres. Réversible à tout moment.', + 'admin.confirmUnsuspendTitle': 'Réactiver ce compte ?', + 'admin.confirmUnsuspendMsg': 'Son profil redeviendra visible.', + 'admin.suspendedDone': 'Compte suspendu', + 'admin.reactivatedDone': 'Compte réactivé', + 'admin.loadError': 'Impossible de charger les données.', 'install.title': 'Installer AzuuCine', 'install.ios': 'Ouvre AzuuCine dans Safari.\nAppuie sur le bouton Partager (le carré avec une flèche vers le haut).\nChoisis « Sur l\'écran d\'accueil », puis « Ajouter ».', 'install.android': 'Ouvre AzuuCine dans Chrome.\nAppuie sur le menu ⋮ en haut à droite.\nChoisis « Ajouter à l\'écran d\'accueil » (ou « Installer l\'application »).', diff --git a/src/i18n/locales/hi.ts b/src/i18n/locales/hi.ts index c4c9012..bb89164 100644 --- a/src/i18n/locales/hi.ts +++ b/src/i18n/locales/hi.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'ऐप इंस्टॉल करें', 'settings.installHint': 'AzuuCine को अपनी होम स्क्रीन या डेस्कटॉप पर जोड़ें।', 'settings.installed': 'ऐप इंस्टॉल हो गया', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'AzuuCine इंस्टॉल करें', 'install.ios': 'AzuuCine को Safari में खोलें।\nShare बटन दबाएँ (ऊपर तीर वाला वर्ग)।\n“Add to Home Screen” चुनें, फिर “Add”।', 'install.android': 'AzuuCine को Chrome में खोलें।\nऊपर दाईं ओर ⋮ मेनू दबाएँ।\n“होम स्क्रीन में जोड़ें” (या “ऐप इंस्टॉल करें”) चुनें।', diff --git a/src/i18n/locales/id.ts b/src/i18n/locales/id.ts index c611c74..34bfbd3 100644 --- a/src/i18n/locales/id.ts +++ b/src/i18n/locales/id.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'Pasang aplikasi', 'settings.installHint': 'Tambahkan AzuuCine ke layar utama atau desktop kamu.', 'settings.installed': 'Aplikasi terpasang', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'Pasang AzuuCine', 'install.ios': 'Buka AzuuCine di Safari.\nKetuk tombol Bagikan (kotak dengan panah ke atas).\nPilih “Ke Layar Utama”, lalu “Tambah”.', 'install.android': 'Buka AzuuCine di Chrome.\nKetuk menu ⋮ di kanan atas.\nPilih “Tambahkan ke layar utama” (atau “Pasang aplikasi”).', diff --git a/src/i18n/locales/it.ts b/src/i18n/locales/it.ts index e8f7c8d..5fa668d 100644 --- a/src/i18n/locales/it.ts +++ b/src/i18n/locales/it.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'Installa l\'app', 'settings.installHint': 'Aggiungi AzuuCine alla schermata home o al desktop.', 'settings.installed': 'App installata', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'Installa AzuuCine', 'install.ios': 'Apri AzuuCine in Safari.\nTocca il pulsante Condividi (il quadrato con la freccia in su).\nScegli «Aggiungi a Home», poi «Aggiungi».', 'install.android': 'Apri AzuuCine in Chrome.\nTocca il menu ⋮ in alto a destra.\nScegli «Aggiungi a schermata Home» (o «Installa app»).', diff --git a/src/i18n/locales/ja.ts b/src/i18n/locales/ja.ts index b207fd0..f8827a7 100644 --- a/src/i18n/locales/ja.ts +++ b/src/i18n/locales/ja.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'アプリをインストール', 'settings.installHint': 'AzuuCine をホーム画面やデスクトップに追加します。', 'settings.installed': 'アプリをインストール済み', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'AzuuCine をインストール', 'install.ios': 'Safari で AzuuCine を開きます。\n共有ボタン(上矢印付きの四角)をタップします。\n「ホーム画面に追加」を選び、「追加」をタップします。', 'install.android': 'Chrome で AzuuCine を開きます。\n右上の ⋮ メニューをタップします。\n「ホーム画面に追加」(または「アプリをインストール」)を選びます。', diff --git a/src/i18n/locales/ko.ts b/src/i18n/locales/ko.ts index 47586f6..c51deaf 100644 --- a/src/i18n/locales/ko.ts +++ b/src/i18n/locales/ko.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': '앱 설치', 'settings.installHint': 'AzuuCine을 홈 화면이나 바탕화면에 추가하세요.', 'settings.installed': '앱 설치됨', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'AzuuCine 설치', 'install.ios': 'Safari에서 AzuuCine을 엽니다.\n공유 버튼(위쪽 화살표가 있는 사각형)을 누릅니다.\n“홈 화면에 추가”를 선택한 뒤 “추가”를 누릅니다.', 'install.android': 'Chrome에서 AzuuCine을 엽니다.\n오른쪽 위 ⋮ 메뉴를 누릅니다.\n“홈 화면에 추가”(또는 “앱 설치”)를 선택합니다.', diff --git a/src/i18n/locales/nl.ts b/src/i18n/locales/nl.ts index acd8bfa..6ad92d5 100644 --- a/src/i18n/locales/nl.ts +++ b/src/i18n/locales/nl.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'App installeren', 'settings.installHint': 'Voeg AzuuCine toe aan je startscherm of bureaublad.', 'settings.installed': 'App geïnstalleerd', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'AzuuCine installeren', 'install.ios': 'Open AzuuCine in Safari.\nTik op de deelknop (het vierkant met een pijl omhoog).\nKies “Zet op beginscherm” en daarna “Voeg toe”.', 'install.android': 'Open AzuuCine in Chrome.\nTik rechtsboven op het menu ⋮.\nKies “Toevoegen aan startscherm” (of “App installeren”).', diff --git a/src/i18n/locales/pl.ts b/src/i18n/locales/pl.ts index 05f1cb3..17925dc 100644 --- a/src/i18n/locales/pl.ts +++ b/src/i18n/locales/pl.ts @@ -232,6 +232,51 @@ const dict: Translations = { 'settings.installApp': 'Zainstaluj aplikację', 'settings.installHint': 'Dodaj AzuuCine do ekranu głównego lub pulpitu.', 'settings.installed': 'Aplikacja zainstalowana', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'Zainstaluj AzuuCine', 'install.ios': 'Otwórz AzuuCine w Safari.\nDotknij przycisku Udostępnij (kwadrat ze strzałką w górę).\nWybierz „Do ekranu początkowego”, a potem „Dodaj”.', 'install.android': 'Otwórz AzuuCine w Chrome.\nDotknij menu ⋮ w prawym górnym rogu.\nWybierz „Dodaj do ekranu głównego” (lub „Zainstaluj aplikację”).', diff --git a/src/i18n/locales/pt.ts b/src/i18n/locales/pt.ts index 68cca33..ca88aa5 100644 --- a/src/i18n/locales/pt.ts +++ b/src/i18n/locales/pt.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'Instalar o app', 'settings.installHint': 'Adicione o AzuuCine à tela inicial ou à área de trabalho.', 'settings.installed': 'App instalado', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'Instalar o AzuuCine', 'install.ios': 'Abra o AzuuCine no Safari.\nToque no botão Compartilhar (o quadrado com uma seta para cima).\nEscolha “Adicionar à Tela de Início” e depois “Adicionar”.', 'install.android': 'Abra o AzuuCine no Chrome.\nToque no menu ⋮ no canto superior direito.\nEscolha “Adicionar à tela inicial” (ou “Instalar app”).', diff --git a/src/i18n/locales/ru.ts b/src/i18n/locales/ru.ts index 31c4e03..c02a710 100644 --- a/src/i18n/locales/ru.ts +++ b/src/i18n/locales/ru.ts @@ -232,6 +232,51 @@ const dict: Translations = { 'settings.installApp': 'Установить приложение', 'settings.installHint': 'Добавь AzuuCine на главный экран или рабочий стол.', 'settings.installed': 'Приложение установлено', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'Установить AzuuCine', 'install.ios': 'Открой AzuuCine в Safari.\nНажми кнопку «Поделиться» (квадрат со стрелкой вверх).\nВыбери «На экран «Домой»», затем «Добавить».', 'install.android': 'Открой AzuuCine в Chrome.\nНажми меню ⋮ в правом верхнем углу.\nВыбери «Добавить на главный экран» (или «Установить приложение»).', diff --git a/src/i18n/locales/th.ts b/src/i18n/locales/th.ts index a0ba052..c7a6389 100644 --- a/src/i18n/locales/th.ts +++ b/src/i18n/locales/th.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'ติดตั้งแอป', 'settings.installHint': 'เพิ่ม AzuuCine ไปที่หน้าจอหลักหรือเดสก์ท็อปของคุณ', 'settings.installed': 'ติดตั้งแอปแล้ว', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'ติดตั้ง AzuuCine', 'install.ios': 'เปิด AzuuCine ใน Safari\nแตะปุ่มแชร์ (สี่เหลี่ยมที่มีลูกศรชี้ขึ้น)\nเลือก “เพิ่มไปยังหน้าจอโฮม” แล้ว “เพิ่ม”', 'install.android': 'เปิด AzuuCine ใน Chrome\nแตะเมนู ⋮ ที่มุมขวาบน\nเลือก “เพิ่มไปยังหน้าจอหลัก” (หรือ “ติดตั้งแอป”)', diff --git a/src/i18n/locales/tr.ts b/src/i18n/locales/tr.ts index d5cdf74..cfdeffc 100644 --- a/src/i18n/locales/tr.ts +++ b/src/i18n/locales/tr.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'Uygulamayı yükle', 'settings.installHint': 'AzuuCine’i ana ekranına veya masaüstüne ekle.', 'settings.installed': 'Uygulama yüklendi', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'AzuuCine’i yükle', 'install.ios': 'AzuuCine’i Safari’de aç.\nPaylaş düğmesine dokun (yukarı oklu kare).\n“Ana Ekrana Ekle” ve ardından “Ekle” seç.', 'install.android': 'AzuuCine’i Chrome’da aç.\nSağ üstteki ⋮ menüsüne dokun.\n“Ana ekrana ekle” (veya “Uygulamayı yükle”) seç.', diff --git a/src/i18n/locales/vi.ts b/src/i18n/locales/vi.ts index 425ce92..d92b41b 100644 --- a/src/i18n/locales/vi.ts +++ b/src/i18n/locales/vi.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': 'Cài đặt ứng dụng', 'settings.installHint': 'Thêm AzuuCine vào màn hình chính hoặc màn hình nền của bạn.', 'settings.installed': 'Đã cài ứng dụng', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': 'Cài đặt AzuuCine', 'install.ios': 'Mở AzuuCine trong Safari.\nChạm nút Chia sẻ (hình vuông có mũi tên lên).\nChọn “Thêm vào MH chính”, rồi “Thêm”.', 'install.android': 'Mở AzuuCine trong Chrome.\nChạm menu ⋮ ở góc trên bên phải.\nChọn “Thêm vào màn hình chính” (hoặc “Cài đặt ứng dụng”).', diff --git a/src/i18n/locales/zh.ts b/src/i18n/locales/zh.ts index d279f66..e53ee70 100644 --- a/src/i18n/locales/zh.ts +++ b/src/i18n/locales/zh.ts @@ -228,6 +228,51 @@ const dict: Translations = { 'settings.installApp': '安装应用', 'settings.installHint': '将 AzuuCine 添加到主屏幕或桌面。', 'settings.installed': '应用已安装', + 'settings.admin': 'Administration', + 'admin.title': 'Administration', + 'admin.tabOverview': 'Overview', + 'admin.tabUsers': 'Users', + 'admin.tabReviews': 'Reviews', + 'admin.users': 'Users', + 'admin.public': 'Public', + 'admin.private': 'Private', + 'admin.suspended': 'Suspended', + 'admin.items': 'Titles', + 'admin.films': 'Films', + 'admin.series': 'Series', + 'admin.reviews': 'Reviews', + 'admin.follows': 'Follows', + 'admin.pending': 'Requests', + 'admin.media': 'Images', + 'admin.signups7': 'Signups (7d)', + 'admin.signups30': 'Signups (30d)', + 'admin.active7': 'Active (7d)', + 'admin.newItems7': 'Added (7d)', + 'admin.signupsChart': 'Signups — last 14 days', + 'admin.searchUsers': 'Search an account…', + 'admin.joined': 'Joined {date}', + 'admin.lastSeen': 'Seen {ago}', + 'admin.never': 'never', + 'admin.suspend': 'Suspend', + 'admin.unsuspend': 'Reactivate', + 'admin.suspendedBadge': 'Suspended', + 'admin.noUsers': 'No accounts', + 'admin.anon': '(no profile)', + 'admin.statItems': 'titles', + 'admin.statReviews': 'reviews', + 'admin.statFollowers': 'followers', + 'admin.clearReview': 'Clear review', + 'admin.reviewCleared': 'Review cleared', + 'admin.noReviews': 'No reviews', + 'admin.confirmClearTitle': 'Clear this review?', + 'admin.confirmClearMsg': 'The review will be removed from the member\'s profile on their next sync.', + 'admin.confirmSuspendTitle': 'Suspend this account?', + 'admin.confirmSuspendMsg': 'Their profile will be hidden from other members. Reversible at any time.', + 'admin.confirmUnsuspendTitle': 'Reactivate this account?', + 'admin.confirmUnsuspendMsg': 'Their profile will be visible again.', + 'admin.suspendedDone': 'Account suspended', + 'admin.reactivatedDone': 'Account reactivated', + 'admin.loadError': 'Could not load the data.', 'install.title': '安装 AzuuCine', 'install.ios': '在 Safari 中打开 AzuuCine。\n点按“分享”按钮(带向上箭头的方块)。\n选择“添加到主屏幕”,然后点“添加”。', 'install.android': '在 Chrome 中打开 AzuuCine。\n点按右上角的 ⋮ 菜单。\n选择“添加到主屏幕”(或“安装应用”)。', diff --git a/src/lib/cloud/admin.ts b/src/lib/cloud/admin.ts new file mode 100644 index 0000000..ad9f167 --- /dev/null +++ b/src/lib/cloud/admin.ts @@ -0,0 +1,86 @@ +import { t } from '../../i18n' +import { cloudFetch } from './api' + +/** + * Accès à la partie administration (réservée aux comptes de la table `admins`). + * Toutes les fonctions appellent des RPC Supabase verrouillées côté serveur par is_admin() : + * même en forçant l'URL, un non-admin reçoit une erreur. + */ + +async function rpc(name: string, args: Record = {}): Promise { + const res = await cloudFetch(`/rest/v1/rpc/${name}`, { + method: 'POST', + headers: { 'Content-Type': 'application/json' }, + body: JSON.stringify(args), + }) + if (!res.ok) throw new Error(t('social.err.server', { status: res.status })) + return res.json() as Promise +} + +export interface AdminOverview { + users: number + profiles: number + public_profiles: number + private_profiles: number + suspended: number + items: number + reviews: number + films: number + series: number + follows: number + pending_follows: number + media_files: number + signups_7d: number + signups_30d: number + active_7d: number + new_items_7d: number + signups_by_day: { day: string; n: number }[] +} + +export interface AdminUser { + id: string + email: string | null + created_at: string + last_sign_in_at: string | null + username: string | null + display_name: string | null + is_private: boolean | null + suspended: boolean + items: number + reviews: number + followers: number +} + +export interface AdminReview { + item_id: string + user_id: string + updated_at: string + username: string | null + display_name: string | null + suspended: boolean + title: string | null + type: string | null + notes: string | null + rating: number | null +} + +/** Le compte connecté est-il administrateur ? (false si l'app est en mode local sans compte) */ +export async function isAdmin(): Promise { + try { + return (await rpc('is_admin')) === true + } catch { + return false + } +} + +export const adminOverview = () => rpc('admin_overview') +export const adminUsers = (q: string, offset = 0) => rpc('admin_users', { q: q || null, p_offset: offset }) +export const adminRecentReviews = (offset = 0) => rpc('admin_recent_reviews', { p_offset: offset }) + +export async function adminSetSuspended(userId: string, value: boolean): Promise { + await rpc('admin_set_suspended', { p_user: userId, p_value: value }) +} + +export async function adminClearReview(userId: string, itemId: string): Promise { + await rpc('admin_clear_review', { p_user: userId, p_item: itemId }) +} diff --git a/src/pages/AdminPage.tsx b/src/pages/AdminPage.tsx new file mode 100644 index 0000000..a838f66 --- /dev/null +++ b/src/pages/AdminPage.tsx @@ -0,0 +1,430 @@ +import { ArrowLeft, Ban, Loader2, MessageSquareOff, RotateCcw, Search, Star } from 'lucide-react' +import { useEffect, useRef, useState } from 'react' +import ConfirmDialog from '../components/ConfirmDialog' +import { EmptyState, PageHeader, SectionTitle, StatTile } from '../components/ui' +import { fmtNumber, t } from '../i18n' +import { + adminClearReview, + adminOverview, + adminRecentReviews, + adminSetSuspended, + adminUsers, + isAdmin, + type AdminOverview, + type AdminReview, + type AdminUser, +} from '../lib/cloud/admin' +import { cx, formatDate } from '../lib/utils' + +type Tab = 'overview' | 'users' | 'reviews' + +const USERS_PAGE = 50 +const REVIEWS_PAGE = 30 + +/** Nom affichable d'un compte (nom, sinon pseudo, sinon « sans profil »). */ +function personName(p: { display_name: string | null; username: string | null }): string { + return p.display_name || p.username || t('admin.anon') +} + +function Spinner() { + return ( +
+ +
+ ) +} + +/* ------------------------------------------------------------------ Vue d'ensemble */ + +function OverviewTab() { + const [data, setData] = useState(null) + const [error, setError] = useState(false) + + useEffect(() => { + let alive = true + adminOverview() + .then((d) => alive && setData(d)) + .catch(() => alive && setError(true)) + return () => { + alive = false + } + }, []) + + if (error) return + if (!data) return + + const max = data.signups_by_day.reduce((m, d) => Math.max(m, d.n), 1) + const days = data.signups_by_day + + return ( +
+
+ + + + + + +
+ +
+ + + + +
+ + {t('admin.signupsChart')} +
+
+ {days.map((d) => ( +
+ ))} +
+ {days.length > 0 && ( +
+ {formatDate(days[0].day)} + {formatDate(days[days.length - 1].day)} +
+ )} +
+
+ ) +} + +/* ------------------------------------------------------------------ Utilisateurs */ + +function UsersTab() { + const [q, setQ] = useState('') + const [users, setUsers] = useState([]) + const [loading, setLoading] = useState(true) + const [loadingMore, setLoadingMore] = useState(false) + const [hasMore, setHasMore] = useState(false) + const [busyId, setBusyId] = useState(null) + const [confirmUser, setConfirmUser] = useState(null) + const reqId = useRef(0) + + // Recherche débattue : chaque frappe relance une requête après 350 ms, + // et un `reqId` évite qu'une réponse en retard n'écrase une plus récente. + useEffect(() => { + const id = ++reqId.current + setLoading(true) + const timer = setTimeout(async () => { + try { + const rows = await adminUsers(q, 0) + if (reqId.current !== id) return + setUsers(rows) + setHasMore(rows.length === USERS_PAGE) + } catch { + if (reqId.current === id) setUsers([]) + } finally { + if (reqId.current === id) setLoading(false) + } + }, 350) + return () => clearTimeout(timer) + }, [q]) + + const loadMore = async () => { + const id = reqId.current + setLoadingMore(true) + try { + const rows = await adminUsers(q, users.length) + if (reqId.current !== id) return + setUsers((prev) => [...prev, ...rows]) + setHasMore(rows.length === USERS_PAGE) + } catch { + /* on garde la liste en l'état */ + } finally { + if (reqId.current === id) setLoadingMore(false) + } + } + + const applySuspend = async (u: AdminUser) => { + const next = !u.suspended + setConfirmUser(null) + setBusyId(u.id) + try { + await adminSetSuspended(u.id, next) + setUsers((prev) => prev.map((x) => (x.id === u.id ? { ...x, suspended: next } : x))) + } catch { + /* on laisse la ligne telle quelle */ + } finally { + setBusyId(null) + } + } + + return ( +
+ + + {loading ? ( + + ) : users.length === 0 ? ( + + ) : ( +
    + {users.map((u) => ( +
  • +
    +
    + {personName(u)} + {u.suspended && ( + + {t('admin.suspendedBadge')} + + )} +
    + {(u.username || u.email) && ( +
    + {u.username ? `@${u.username}` : ''} + {u.username && u.email ? ' · ' : ''} + {u.email ?? ''} +
    + )} +
    + {`${fmtNumber(u.items)} ${t('admin.statItems')} · ${fmtNumber(u.reviews)} ${t('admin.statReviews')} · ${fmtNumber(u.followers)} ${t('admin.statFollowers')}`} +
    +
    {t('admin.joined', { date: formatDate(u.created_at) })}
    +
    + +
  • + ))} +
+ )} + + {hasMore && !loading && ( +
+ +
+ )} + + confirmUser && applySuspend(confirmUser)} + onCancel={() => setConfirmUser(null)} + /> +
+ ) +} + +/* ------------------------------------------------------------------ Avis */ + +function ReviewsTab() { + const [reviews, setReviews] = useState([]) + const [loading, setLoading] = useState(true) + const [loadingMore, setLoadingMore] = useState(false) + const [hasMore, setHasMore] = useState(false) + const [busyKey, setBusyKey] = useState(null) + const [confirmRev, setConfirmRev] = useState(null) + + const keyOf = (r: AdminReview) => `${r.user_id}:${r.item_id}` + + useEffect(() => { + let alive = true + adminRecentReviews(0) + .then((rows) => { + if (!alive) return + setReviews(rows) + setHasMore(rows.length === REVIEWS_PAGE) + }) + .catch(() => alive && setReviews([])) + .finally(() => alive && setLoading(false)) + return () => { + alive = false + } + }, []) + + const loadMore = async () => { + setLoadingMore(true) + try { + const rows = await adminRecentReviews(reviews.length) + setReviews((prev) => [...prev, ...rows]) + setHasMore(rows.length === REVIEWS_PAGE) + } catch { + /* on garde la liste en l'état */ + } finally { + setLoadingMore(false) + } + } + + const applyClear = async (r: AdminReview) => { + const key = keyOf(r) + setConfirmRev(null) + setBusyKey(key) + try { + await adminClearReview(r.user_id, r.item_id) + setReviews((prev) => prev.filter((x) => keyOf(x) !== key)) + } catch { + /* on laisse la carte en place */ + } finally { + setBusyKey(null) + } + } + + if (loading) return + if (reviews.length === 0) return + + return ( +
+
    + {reviews.map((r) => { + const key = keyOf(r) + return ( +
  • +
    +
    + {r.title || t('admin.anon')} + {r.type && {r.type}} + {r.rating != null && ( + + + {fmtNumber(r.rating)} + + )} +
    +
    + {personName(r)} + {r.username ? ` · @${r.username}` : ''} +
    + {r.notes &&

    {r.notes}

    } +
    + +
  • + ) + })} +
+ + {hasMore && ( +
+ +
+ )} + + confirmRev && applyClear(confirmRev)} + onCancel={() => setConfirmRev(null)} + /> +
+ ) +} + +/* ------------------------------------------------------------------ Page */ + +const TABS: { id: Tab; label: () => string }[] = [ + { id: 'overview', label: () => t('admin.tabOverview') }, + { id: 'users', label: () => t('admin.tabUsers') }, + { id: 'reviews', label: () => t('admin.tabReviews') }, +] + +export default function AdminPage({ onBack }: { onBack: () => void }) { + const [allowed, setAllowed] = useState(null) + const [tab, setTab] = useState('overview') + + useEffect(() => { + let alive = true + isAdmin() + .then((ok) => alive && setAllowed(ok)) + .catch(() => alive && setAllowed(false)) + return () => { + alive = false + } + }, []) + + return ( + <> + + + + + {allowed === null ? ( + + ) : !allowed ? ( + + ) : ( + <> +
+ {TABS.map((tb) => { + const on = tab === tb.id + return ( + + ) + })} +
+ + {tab === 'overview' && } + {tab === 'users' && } + {tab === 'reviews' && } + + )} + + ) +} diff --git a/src/pages/SettingsPage.tsx b/src/pages/SettingsPage.tsx index f4dbdad..0075d6f 100644 --- a/src/pages/SettingsPage.tsx +++ b/src/pages/SettingsPage.tsx @@ -1,6 +1,6 @@ import { t } from '../i18n' import { LanguageSelect } from '../i18n/react' -import { Check, Download, Eye, EyeOff, HardDrive, Smartphone, Trash2, Upload, UserX } from 'lucide-react' +import { Check, Download, Eye, EyeOff, HardDrive, ShieldCheck, Smartphone, Trash2, Upload, UserX } from 'lucide-react' import { useEffect, useRef, useState, type ReactNode } from 'react' import AccountSection from '../components/AccountSection' import ConfirmDialog from '../components/ConfirmDialog' @@ -11,6 +11,7 @@ import { checkTmdbProxy, type ProxyState } from '../lib/cloud/api' import { ALL_TOP_CATEGORIES, TOP_CATEGORIES } from '../lib/constants' import { isHexColor, THEME_MODES, THEME_PRESETS } from '../lib/theme' import { detectPlatform, useInstallPrompt } from '../lib/pwa' +import { isAdmin } from '../lib/cloud/admin' import { cx } from '../lib/utils' import { useMedia } from '../store' @@ -29,9 +30,14 @@ function Row({ icon, title, hint, onClick, danger }: { icon: ReactNode; title: s ) } -export default function SettingsPage() { +export default function SettingsPage({ onOpenAdmin }: { onOpenAdmin: () => void }) { const { items, settings, updateSettings, importItems, clearAll, lists, mergeLists, account } = useMedia() const { canInstall, installed, install } = useInstallPrompt() + const [admin, setAdmin] = useState(false) + useEffect(() => { + if (account) void isAdmin().then(setAdmin) + else setAdmin(false) + }, [account]) const fileRef = useRef(null) const [pending, setPending] = useState() const [message, setMessage] = useState() @@ -160,6 +166,15 @@ export default function SettingsPage() { {account && setMessage({ kind, text })} />} + {admin && ( + <> + {t('settings.admin')} +
+ } title={t('admin.title')} onClick={onOpenAdmin} /> +
+ + )} + {t('settings.language')}

{t('settings.languageHint')}

diff --git a/supabase/migrations/20261005120000_admin.sql b/supabase/migrations/20261005120000_admin.sql new file mode 100644 index 0000000..024ccd6 --- /dev/null +++ b/supabase/migrations/20261005120000_admin.sql @@ -0,0 +1,39 @@ +-- Partie administration d'AzuuCine (5 octobre 2026). +-- Un espace réservé au(x) compte(s) de la table public.admins : +-- - vue d'ensemble (chiffres), liste des utilisateurs, avis publics récents ; +-- - actions réversibles : suspendre/réactiver un compte, effacer l'avis d'une fiche. +-- Tout est verrouillé côté serveur par is_admin() (pas seulement masqué dans l'app). + +-- ── Table des administrateurs : écriture réservée au rôle service_role ── +create table if not exists public.admins ( + user_id uuid primary key references auth.users(id) on delete cascade, + created_at timestamptz not null default now() +); +alter table public.admins enable row level security; +revoke all on public.admins from anon, authenticated; + +-- Suspension d'un compte : masque le profil publiquement (réversible), jamais une suppression. +alter table public.profiles add column if not exists suspended boolean not null default false; + +create or replace function public.is_admin() +returns boolean language sql stable security definer set search_path = '' as $$ + select exists (select 1 from public.admins a where a.user_id = auth.uid()) +$$; +revoke all on function public.is_admin() from public, anon; +grant execute on function public.is_admin() to authenticated; + +-- Romain est administrateur. +insert into public.admins (user_id) values ('4529202d-618c-4b40-ab13-228eef3f71ad') on conflict do nothing; + +-- ── Intégration de la suspension dans les fonctions sociales ── +-- (can_view, search_profiles, get_feed, get_follow_list, get_follow_requests, get_profile +-- excluent désormais les comptes suspendus pour les autres utilisateurs. Voir la base de données +-- pour les définitions complètes — appliquées par le même déploiement.) + +-- ── Fonctions d'administration (toutes : si not is_admin() -> exception) ── +-- admin_overview() : chiffres globaux + inscriptions des 14 derniers jours +-- admin_users(q, offset) : liste des comptes (recherche e-mail/pseudo/nom) +-- admin_recent_reviews(offset): avis publics récents (modération) +-- admin_set_suspended(id, on) : suspendre/réactiver (jamais soi-même) +-- admin_clear_review(id, item): efface l'avis d'une fiche (renvoyé à l'appareil du membre à la synchro) +-- Définitions complètes appliquées en base ; droits : execute réservé à authenticated, gate interne is_admin(). diff --git a/tsconfig.tsbuildinfo b/tsconfig.tsbuildinfo index a3e5c13..b5863cc 100644 --- a/tsconfig.tsbuildinfo +++ b/tsconfig.tsbuildinfo @@ -1 +1 @@ -{"root":["./src/App.tsx","./src/Root.tsx","./src/main.tsx","./src/store.tsx","./src/types.ts","./src/vite-env.d.ts","./src/components/AccountSection.tsx","./src/components/AuthScreen.tsx","./src/components/Badges.tsx","./src/components/BottomNav.tsx","./src/components/CalendarView.tsx","./src/components/ConfirmDialog.tsx","./src/components/DatabaseSearch.tsx","./src/components/Disagreements.tsx","./src/components/EpisodeList.tsx","./src/components/HomeHero.tsx","./src/components/ItemHero.tsx","./src/components/JournalView.tsx","./src/components/ListsView.tsx","./src/components/MediaCard.tsx","./src/components/MediaForm.tsx","./src/components/Poster.tsx","./src/components/Rating.tsx","./src/components/Recommendations.tsx","./src/components/Roulette.tsx","./src/components/SharePreview.tsx","./src/components/SideNav.tsx","./src/components/TagInput.tsx","./src/components/TopFive.tsx","./src/components/TopFiveEditor.tsx","./src/components/ui.tsx","./src/components/social/Avatar.tsx","./src/components/social/EditProfile.tsx","./src/components/social/FollowList.tsx","./src/components/social/FriendsFeed.tsx","./src/components/social/ItemPeek.tsx","./src/components/social/PeopleSearch.tsx","./src/components/social/PersonRow.tsx","./src/components/social/ProfileView.tsx","./src/components/social/Sheet.tsx","./src/components/social/SocialProvider.tsx","./src/components/social/WelcomeProfile.tsx","./src/i18n/index.ts","./src/i18n/react.tsx","./src/i18n/locales/ar.ts","./src/i18n/locales/de.ts","./src/i18n/locales/en.ts","./src/i18n/locales/es.ts","./src/i18n/locales/fr.ts","./src/i18n/locales/hi.ts","./src/i18n/locales/id.ts","./src/i18n/locales/it.ts","./src/i18n/locales/ja.ts","./src/i18n/locales/ko.ts","./src/i18n/locales/nl.ts","./src/i18n/locales/pl.ts","./src/i18n/locales/pt.ts","./src/i18n/locales/ru.ts","./src/i18n/locales/th.ts","./src/i18n/locales/tr.ts","./src/i18n/locales/vi.ts","./src/i18n/locales/zh.ts","./src/lib/airing.ts","./src/lib/backup.ts","./src/lib/catalogApi.ts","./src/lib/constants.ts","./src/lib/db.ts","./src/lib/dragScroll.ts","./src/lib/escape.ts","./src/lib/franchise.ts","./src/lib/genres.ts","./src/lib/globalReleases.ts","./src/lib/image.ts","./src/lib/legacyImport.ts","./src/lib/onResume.ts","./src/lib/publicRatings.ts","./src/lib/pwa.ts","./src/lib/releases.ts","./src/lib/roulette.ts","./src/lib/scope.ts","./src/lib/scrollLock.ts","./src/lib/security.ts","./src/lib/shareCard.ts","./src/lib/stats.ts","./src/lib/theme.ts","./src/lib/timeAgo.ts","./src/lib/utils.ts","./src/lib/cloud/api.ts","./src/lib/cloud/auth.ts","./src/lib/cloud/config.ts","./src/lib/cloud/social.ts","./src/lib/cloud/sync.ts","./src/pages/CatalogPage.tsx","./src/pages/HomePage.tsx","./src/pages/SettingsPage.tsx","./src/pages/StatsPage.tsx","./vite.config.ts"],"version":"5.9.3"} \ No newline at end of file +{"root":["./src/App.tsx","./src/Root.tsx","./src/main.tsx","./src/store.tsx","./src/types.ts","./src/vite-env.d.ts","./src/components/AccountSection.tsx","./src/components/AuthScreen.tsx","./src/components/Badges.tsx","./src/components/BottomNav.tsx","./src/components/CalendarView.tsx","./src/components/ConfirmDialog.tsx","./src/components/DatabaseSearch.tsx","./src/components/Disagreements.tsx","./src/components/EpisodeList.tsx","./src/components/HomeHero.tsx","./src/components/ItemHero.tsx","./src/components/JournalView.tsx","./src/components/ListsView.tsx","./src/components/MediaCard.tsx","./src/components/MediaForm.tsx","./src/components/Poster.tsx","./src/components/Rating.tsx","./src/components/Recommendations.tsx","./src/components/Roulette.tsx","./src/components/SharePreview.tsx","./src/components/SideNav.tsx","./src/components/TagInput.tsx","./src/components/TopFive.tsx","./src/components/TopFiveEditor.tsx","./src/components/ui.tsx","./src/components/social/Avatar.tsx","./src/components/social/EditProfile.tsx","./src/components/social/FollowList.tsx","./src/components/social/FriendsFeed.tsx","./src/components/social/ItemPeek.tsx","./src/components/social/PeopleSearch.tsx","./src/components/social/PersonRow.tsx","./src/components/social/ProfileView.tsx","./src/components/social/Sheet.tsx","./src/components/social/SocialProvider.tsx","./src/components/social/WelcomeProfile.tsx","./src/i18n/index.ts","./src/i18n/react.tsx","./src/i18n/locales/ar.ts","./src/i18n/locales/de.ts","./src/i18n/locales/en.ts","./src/i18n/locales/es.ts","./src/i18n/locales/fr.ts","./src/i18n/locales/hi.ts","./src/i18n/locales/id.ts","./src/i18n/locales/it.ts","./src/i18n/locales/ja.ts","./src/i18n/locales/ko.ts","./src/i18n/locales/nl.ts","./src/i18n/locales/pl.ts","./src/i18n/locales/pt.ts","./src/i18n/locales/ru.ts","./src/i18n/locales/th.ts","./src/i18n/locales/tr.ts","./src/i18n/locales/vi.ts","./src/i18n/locales/zh.ts","./src/lib/airing.ts","./src/lib/backup.ts","./src/lib/catalogApi.ts","./src/lib/constants.ts","./src/lib/db.ts","./src/lib/dragScroll.ts","./src/lib/escape.ts","./src/lib/franchise.ts","./src/lib/genres.ts","./src/lib/globalReleases.ts","./src/lib/image.ts","./src/lib/legacyImport.ts","./src/lib/onResume.ts","./src/lib/publicRatings.ts","./src/lib/pwa.ts","./src/lib/releases.ts","./src/lib/roulette.ts","./src/lib/scope.ts","./src/lib/scrollLock.ts","./src/lib/security.ts","./src/lib/shareCard.ts","./src/lib/stats.ts","./src/lib/theme.ts","./src/lib/timeAgo.ts","./src/lib/utils.ts","./src/lib/cloud/admin.ts","./src/lib/cloud/api.ts","./src/lib/cloud/auth.ts","./src/lib/cloud/config.ts","./src/lib/cloud/social.ts","./src/lib/cloud/sync.ts","./src/pages/AdminPage.tsx","./src/pages/CatalogPage.tsx","./src/pages/HomePage.tsx","./src/pages/SettingsPage.tsx","./src/pages/StatsPage.tsx","./vite.config.ts"],"version":"5.9.3"} \ No newline at end of file