Accueil épuré, Top 5 dans le profil, « Mes abonnements » = leurs notes et avis
deploy / deploy (push) Successful in 39s
deploy / deploy (push) Successful in 39s
Accueil : - Retirés : « Si tu as aimé », « Récemment terminés », stats, Top 5, carte Roulette - Roulette en haut, à côté des notifications, du calendrier et du profil - « À voir » tiré au hasard (ordre fixé pour la session) - Nouveau : « Dernières sorties » (films, nouvelles séries / saisons des 45 derniers jours, hors bibliothèque), ajoutables à « À voir » en un geste ; le code d'ajout est partagé avec le calendrier - Bannière : la pellicule montre la saison de l'épisode suivant (plus de « 9/9 » quand une saison est finie) Profil : l'onglet Top 5 reprend l'affichage de l'ancien accueil ; modifiable et partageable sur mon profil, en lecture seule sur les autres ; la ligne Top 1 suit mes modifications tout de suite. Mes abonnements (migration 20261128150000, appliquée) : seulement les titres qu'ils ont notés, une ligne par titre (la plus récente), avec leur avis (spoiler masqué, traduction) ; une note donnée plus tard remonte aussi. Nettoyage : Recommendations.tsx et ~20 textes devenus inutiles retirés (18 langues). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
33 files changed
+377
-687
No files matched your search
@@ -61,7 +61,7 @@ npm run build # build de prod
|
||||
- RTL géré (arabe) : préférer les classes logiques (`ps-`/`pe-`, `ms-`/`me-`, `start-`/`end-`, `border-e`).
|
||||
|
||||
## État (au 28 nov. 2026)
|
||||
- **Toutes les migrations de `supabase/migrations/` sont appliquées en ligne**, jusqu'à `20261128140000_profile_slim.sql` incluse.
|
||||
- **Toutes les migrations de `supabase/migrations/` sont appliquées en ligne**, jusqu'à `20261128150000_feed_ratings.sql` incluse.
|
||||
- **Notifications : abonnements uniquement** (27 nov. 2026) — cloche sur l'accueil, dans l'app, pas de push. Types : `new_follower`, `follow_request`, `unfollow`, `follow_accepted` (trigger `follows_notify`, RPC `get_notifications` / `unread_notifications` / `mark_notifications_read`). Les anciennes notifications (push, commentaires, épisodes, invitations) et `azuu_notify` ont été supprimées. La fonction Edge `send-push` répond 410 : à supprimer depuis le tableau de bord Supabase.
|
||||
- **Retirés (27-28 nov. 2026)** : défis, couleur d'accent au choix, apparences Nuit/Étoilé, notation sur 10 (les notes restent stockées sur 10 en interne, affichées sur 5 étoiles).
|
||||
- **Chargement** : les écrans rares (stats, réglages, admin, roulette, calendrier, écrans sociaux…) sont chargés à la demande puis préchargés au repos (`App.tsx` → `loaders`, `SocialProvider.tsx` → `socialLoaders`).
|
||||
|
||||
+1
-1
@@ -119,7 +119,7 @@ export default function App() {
|
||||
<div className="mx-auto min-h-dvh max-w-2xl lg:max-w-none lg:ps-60">
|
||||
<main className="safe-top px-4 pb-32 lg:px-10 lg:pb-10 2xl:px-14">
|
||||
{error && <p className="mt-4 rounded-xl border border-accent p-3 text-sm text-ink">{error}</p>}
|
||||
{route === 'home' && <HomePage onOpen={openItem} onAdd={openNew} onNavigate={go} onRoulette={() => setRoulette(true)} onCalendar={() => setCalendar(true)} />}
|
||||
{route === 'home' && <HomePage onOpen={openItem} onAdd={openNew} onNavigate={go} onRoulette={() => setRoulette(true)} onCalendar={() => setCalendar(true)} onOpenSeed={openSeed} />}
|
||||
{route === 'catalog' && <CatalogPage onOpen={openItem} onAdd={openNew} />}
|
||||
<Suspense fallback={null}>
|
||||
{route === 'stats' && <StatsPage onOpen={openItem} />}
|
||||
|
||||
@@ -2,10 +2,10 @@ import { locale, t } from '../i18n'
|
||||
import { Check, ChevronLeft, ChevronRight, Loader2, Plus, RefreshCw, X } from 'lucide-react'
|
||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||
import { loadAiring, refreshAiring, saveAiring } from '../lib/airing'
|
||||
import { findTmdbSeries, getAniListById, getTmdbDetails, releaseToResult, type GlobalRelease, type ReleaseCategory } from '../lib/catalogApi'
|
||||
import type { GlobalRelease, ReleaseCategory } from '../lib/catalogApi'
|
||||
import { releaseToInput } from '../lib/releaseAdd'
|
||||
import { franchiseKey } from '../lib/franchise'
|
||||
import { cachedMonth, isBrowsableMonth, loadMonth, RELEASE_CATEGORIES } from '../lib/globalReleases'
|
||||
import { remotePosterToLocal } from '../lib/image'
|
||||
import { calendarEvents, loadReleases, refreshReleases } from '../lib/releases'
|
||||
import { readStorage } from '../lib/security'
|
||||
import { useBackToClose } from '../lib/backNav'
|
||||
@@ -14,7 +14,7 @@ import { useScrollLock } from '../lib/scrollLock'
|
||||
import { cx, normalizeText, todayISO } from '../lib/utils'
|
||||
import { useMedia } from '../store'
|
||||
import { TYPE_BY_VALUE } from '../lib/constants'
|
||||
import type { MediaInput, MediaItem, MediaType } from '../types'
|
||||
import type { MediaItem, MediaType } from '../types'
|
||||
import { TypeBadge } from './Badges'
|
||||
import Poster from './Poster'
|
||||
|
||||
@@ -307,34 +307,7 @@ export default function CalendarView({ onClose, onOpen }: { onClose: () => void;
|
||||
if (!r) return
|
||||
setBusy(e.key)
|
||||
try {
|
||||
let data: Partial<MediaInput> = {}
|
||||
let poster: string | undefined
|
||||
// Anime : on préfère la fiche TMDB, qui regroupe toutes les saisons (sinon chaque saison AniList ferait une fiche)
|
||||
const series = r.externalId.startsWith('anilist:') && hasKey ? await findTmdbSeries([r.title, r.originalTitle], settings.tmdbKey!).catch(() => undefined) : undefined
|
||||
if (series) {
|
||||
data = await getTmdbDetails(series, settings.tmdbKey!)
|
||||
poster = series.posterUrl ? await remotePosterToLocal(series.posterUrl) : undefined
|
||||
} else if (r.externalId.startsWith('anilist:')) {
|
||||
const res = await getAniListById(r.externalId)
|
||||
data = { ...res?.prefill }
|
||||
poster = res?.posterUrl ?? r.poster
|
||||
} else {
|
||||
const res = releaseToResult(r)
|
||||
if (res && hasKey) data = await getTmdbDetails(res, settings.tmdbKey!)
|
||||
poster = r.poster ? await remotePosterToLocal(r.poster) : undefined
|
||||
}
|
||||
await add({
|
||||
title: r.title,
|
||||
type: r.cat,
|
||||
status: 'a_voir',
|
||||
criteria: {},
|
||||
episodesWatched: 0,
|
||||
genres: [],
|
||||
year: r.year,
|
||||
externalId: r.externalId,
|
||||
...data,
|
||||
poster,
|
||||
})
|
||||
await add(await releaseToInput(r, settings.tmdbKey))
|
||||
setAdded((s) => new Set(s).add(r.externalId))
|
||||
} catch {
|
||||
/* réseau : le bouton reste disponible */
|
||||
|
||||
@@ -34,9 +34,12 @@ export function waitingLabel(item: MediaItem): string {
|
||||
function stripProgress(item: MediaItem): { done: number; total: number } | undefined {
|
||||
if (!TYPE_BY_VALUE[item.type].episodic) return undefined
|
||||
const view = progressView(item)
|
||||
// Saison de l'épisode suivant (saison finie : on montre la suivante à 0, pas « 9/9 »)
|
||||
const cap = episodeCap(view)
|
||||
const next = !cap || view.episodesWatched < cap ? seasonPosition({ ...view, episodesWatched: view.episodesWatched + 1, season: undefined }) : undefined
|
||||
if (next) return { done: next.episode - 1, total: next.size }
|
||||
const pos = seasonPosition(view)
|
||||
if (pos) return { done: pos.episode, total: pos.size }
|
||||
const cap = episodeCap(view)
|
||||
return cap ? { done: Math.min(view.episodesWatched, cap), total: cap } : undefined
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,123 @@
|
||||
import { Check, Loader2, Plus } from 'lucide-react'
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import { t } from '../i18n'
|
||||
import { getAniListById, releaseToResult, type GlobalRelease, type SearchResult } from '../lib/catalogApi'
|
||||
import { cachedMonth, loadMonth, RELEASE_CATEGORIES } from '../lib/globalReleases'
|
||||
import { releaseToInput } from '../lib/releaseAdd'
|
||||
import { formatDate, localDay, normalizeText, todayISO } from '../lib/utils'
|
||||
import { GuestError, useMedia } from '../store'
|
||||
import Poster from './Poster'
|
||||
import { useToast } from './Toast'
|
||||
import { SectionTitle } from './ui'
|
||||
|
||||
const DAYS = 45
|
||||
const MAX = 20
|
||||
|
||||
/** Sorties récentes (≤ 45 jours) qui sont de vraies nouveautés : films, nouvelles séries et nouvelles saisons. */
|
||||
function pick(all: GlobalRelease[], owned: Set<string>, ownedTitles: Set<string>): GlobalRelease[] {
|
||||
const today = todayISO()
|
||||
const d = new Date()
|
||||
d.setDate(d.getDate() - DAYS)
|
||||
const from = localDay(d)
|
||||
const byId = new Map<string, GlobalRelease>()
|
||||
for (const r of all) {
|
||||
if (!r.premiere || r.date > today || r.date < from) continue
|
||||
if (owned.has(r.externalId) || ownedTitles.has(normalizeText(r.title)) || (r.originalTitle && ownedTitles.has(normalizeText(r.originalTitle)))) continue
|
||||
const cur = byId.get(r.externalId)
|
||||
if (!cur || r.date > cur.date) byId.set(r.externalId, r)
|
||||
}
|
||||
return [...byId.values()].sort((a, b) => b.date.localeCompare(a.date) || b.pop - a.pop).slice(0, MAX)
|
||||
}
|
||||
|
||||
const months = () => {
|
||||
const now = new Date()
|
||||
return [new Date(now.getFullYear(), now.getMonth(), 1), new Date(now.getFullYear(), now.getMonth() - 1, 1)]
|
||||
}
|
||||
|
||||
/** Accueil : « Dernières sorties », ajoutables à « À voir » en un geste. */
|
||||
export default function LatestReleases({ onOpenSeed }: { onOpenSeed: (seed: SearchResult) => void }) {
|
||||
const { items, settings, add } = useMedia()
|
||||
const toast = useToast()
|
||||
const [all, setAll] = useState<GlobalRelease[]>(() => months().flatMap(cachedMonth))
|
||||
const [busy, setBusy] = useState<string>()
|
||||
const [added, setAdded] = useState<Set<string>>(new Set())
|
||||
|
||||
// Mise à jour en arrière-plan (cache de 12 h), un peu après l'affichage de l'accueil
|
||||
useEffect(() => {
|
||||
if (!navigator.onLine) return
|
||||
let alive = true
|
||||
const cats = RELEASE_CATEGORIES.map((c) => c.value)
|
||||
const id = window.setTimeout(() => {
|
||||
void Promise.all(months().map((m) => loadMonth(m, cats, settings.tmdbKey)))
|
||||
.then((res) => alive && setAll(res.flatMap((r) => r.releases)))
|
||||
.catch(() => {})
|
||||
}, 1200)
|
||||
return () => {
|
||||
alive = false
|
||||
window.clearTimeout(id)
|
||||
}
|
||||
}, [settings.tmdbKey])
|
||||
|
||||
const owned = useMemo(() => new Set(items.map((i) => i.externalId).filter((x): x is string => !!x)), [items])
|
||||
const ownedTitles = useMemo(
|
||||
() => new Set(items.flatMap((i) => [i.title, i.originalTitle]).filter((s): s is string => !!s).map(normalizeText)),
|
||||
[items],
|
||||
)
|
||||
// Un titre ajouté depuis cette rangée y reste (avec sa coche) jusqu'au prochain affichage
|
||||
const list = useMemo(() => {
|
||||
const keep = all.filter((r) => added.has(r.externalId))
|
||||
const fresh = pick(all, owned, ownedTitles)
|
||||
return [...fresh, ...keep.filter((r) => !fresh.some((f) => f.externalId === r.externalId))].sort((a, b) => b.date.localeCompare(a.date))
|
||||
}, [all, owned, ownedTitles, added])
|
||||
|
||||
if (!list.length) return null
|
||||
|
||||
const open = async (r: GlobalRelease) => {
|
||||
const seed = r.externalId.startsWith('anilist:') ? await getAniListById(r.externalId).catch(() => null) : releaseToResult(r)
|
||||
if (seed) onOpenSeed(seed)
|
||||
}
|
||||
|
||||
const addToWatchlist = async (r: GlobalRelease) => {
|
||||
setBusy(r.externalId)
|
||||
try {
|
||||
await add(await releaseToInput(r, settings.tmdbKey))
|
||||
setAdded((s) => new Set(s).add(r.externalId))
|
||||
} catch (e) {
|
||||
if (!(e instanceof GuestError)) toast.show((e as Error)?.message || t('reco.error'))
|
||||
} finally {
|
||||
setBusy(undefined)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<SectionTitle>{t('home.latestReleases')}</SectionTitle>
|
||||
<div className="no-scrollbar -mx-4 flex gap-3 overflow-x-auto px-4 pb-1">
|
||||
{list.map((r) => {
|
||||
const done = added.has(r.externalId)
|
||||
return (
|
||||
<div key={r.externalId} className="w-28 shrink-0">
|
||||
<div className="relative">
|
||||
<button onClick={() => void open(r)} className="block w-full" aria-label={t('card.open', { title: r.title })}>
|
||||
<Poster src={r.poster} title={r.title} />
|
||||
</button>
|
||||
<button
|
||||
onClick={() => void addToWatchlist(r)}
|
||||
disabled={done || !!busy}
|
||||
className="absolute bottom-2 end-2 flex h-8 items-center gap-1 rounded-md bg-accent-fill px-2.5 text-xs font-semibold text-on-accent transition active:scale-90 disabled:opacity-90"
|
||||
aria-label={done ? t('reco.added', { title: r.title }) : t('reco.addLabel', { title: r.title })}
|
||||
>
|
||||
{busy === r.externalId ? <Loader2 size={13} className="animate-spin" /> : done ? <Check size={13} strokeWidth={3} /> : <Plus size={13} strokeWidth={3} />}
|
||||
{done ? t('reco.addedShort') : t('status.a_voir')}
|
||||
</button>
|
||||
</div>
|
||||
<p className="mt-2 line-clamp-2 text-xs font-medium leading-snug text-ink-2">{r.title}</p>
|
||||
<p className="truncate text-[11px] text-ink-3">{r.label}</p>
|
||||
<p className="text-[11px] text-ink-3">{formatDate(r.date)}</p>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -1,158 +0,0 @@
|
||||
import { t } from '../i18n'
|
||||
import { Check, Loader2, Plus } from 'lucide-react'
|
||||
import { useEffect, useMemo, useState } from 'react'
|
||||
import { aniListRecommendations, getTmdbDetails, searchAniList, tmdbRecommendations, type SearchResult } from '../lib/catalogApi'
|
||||
import { remotePosterToLocal } from '../lib/image'
|
||||
import { normalizeText } from '../lib/utils'
|
||||
import { GuestError, useMedia } from '../store'
|
||||
import type { MediaInput, MediaItem } from '../types'
|
||||
import Poster from './Poster'
|
||||
import { useToast } from './Toast'
|
||||
import { LinkArrow, SectionTitle } from './ui'
|
||||
|
||||
// Cache en mémoire le temps de la session (évite de refaire les requêtes)
|
||||
const cache = new Map<string, SearchResult[]>()
|
||||
|
||||
const isLoved = (i: MediaItem) =>
|
||||
(i.status === 'termine' || i.status === 'en_cours') && !!i.externalId && (!!i.top || i.favorite || (i.rating ?? 0) >= 8)
|
||||
|
||||
async function recommendationsFor(seed: MediaItem, tmdbKey?: string): Promise<SearchResult[]> {
|
||||
const ext = seed.externalId!
|
||||
if (cache.has(seed.id)) return cache.get(seed.id)!
|
||||
let recs: SearchResult[] = []
|
||||
if (ext.startsWith('anilist:')) recs = await aniListRecommendations(ext)
|
||||
else if (tmdbKey) recs = await tmdbRecommendations(ext, tmdbKey)
|
||||
else if (seed.type === 'anime') {
|
||||
// Sans clé TMDB : on retrouve l'anime sur AniList par son titre
|
||||
const found = (await searchAniList(seed.originalTitle || seed.title))[0]
|
||||
if (found) recs = await aniListRecommendations(found.externalId)
|
||||
}
|
||||
cache.set(seed.id, recs)
|
||||
return recs
|
||||
}
|
||||
|
||||
/** « Si tu as aimé X » : suggestions à partir de mes titres préférés, ajoutables en un clic. */
|
||||
export default function Recommendations() {
|
||||
const { items, settings, add } = useMedia()
|
||||
const toast = useToast()
|
||||
const hasKey = !!settings.tmdbKey?.trim()
|
||||
|
||||
// Titres « graines » : mes préférés, dans un ordre aléatoire fixé pour la session
|
||||
const seeds = useMemo(() => {
|
||||
const loved = items.filter((i) => isLoved(i) && (hasKey || i.externalId!.startsWith('anilist:') || i.type === 'anime'))
|
||||
return loved.map((i) => ({ i, r: Math.random() })).sort((a, b) => a.r - b.r).map((x) => x.i)
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [items.length, hasKey])
|
||||
|
||||
const [index, setIndex] = useState(0)
|
||||
const [recs, setRecs] = useState<SearchResult[]>()
|
||||
const [error, setError] = useState<string>()
|
||||
const [busy, setBusy] = useState<string>()
|
||||
const [added, setAdded] = useState<Set<string>>(new Set())
|
||||
const seed = seeds.length ? seeds[index % seeds.length] : undefined
|
||||
// Déjà dans ma bibliothèque : même identifiant, ou même titre (les fiches importées viennent parfois d'une autre base)
|
||||
const owned = useMemo(() => new Set(items.map((i) => i.externalId).filter(Boolean)), [items])
|
||||
const ownedTitles = useMemo(
|
||||
() => new Set(items.flatMap((i) => [i.title, i.originalTitle]).filter((s): s is string => !!s).map(normalizeText)),
|
||||
[items],
|
||||
)
|
||||
|
||||
useEffect(() => {
|
||||
if (!seed || !navigator.onLine) return
|
||||
let alive = true
|
||||
setRecs(undefined)
|
||||
setError(undefined)
|
||||
recommendationsFor(seed, settings.tmdbKey)
|
||||
.then((r) => alive && setRecs(r))
|
||||
.catch(() => alive && setError(t('reco.error')))
|
||||
return () => {
|
||||
alive = false
|
||||
}
|
||||
}, [seed, settings.tmdbKey])
|
||||
|
||||
if (!seed) {
|
||||
if (!hasKey && items.some((i) => (i.rating ?? 0) >= 8))
|
||||
return (
|
||||
<>
|
||||
<SectionTitle>{t('reco.title')}</SectionTitle>
|
||||
<p className="text-sm text-ink-3">{t('reco.needKey')}</p>
|
||||
</>
|
||||
)
|
||||
return null
|
||||
}
|
||||
|
||||
const visible = (recs ?? [])
|
||||
.filter(
|
||||
(r) =>
|
||||
added.has(r.externalId) ||
|
||||
(!owned.has(r.externalId) && !ownedTitles.has(normalizeText(r.title)) && !(r.originalTitle && ownedTitles.has(normalizeText(r.originalTitle)))),
|
||||
)
|
||||
.slice(0, 10)
|
||||
|
||||
const addToWatchlist = async (r: SearchResult) => {
|
||||
setBusy(r.externalId)
|
||||
try {
|
||||
const data = r.source === 'tmdb' ? await getTmdbDetails(r, settings.tmdbKey!) : { ...r.prefill }
|
||||
const poster = r.posterUrl ? (r.source === 'tmdb' ? await remotePosterToLocal(r.posterUrl) : r.posterUrl) : undefined
|
||||
const input: MediaInput = {
|
||||
title: r.title,
|
||||
type: r.typeGuess,
|
||||
status: 'a_voir',
|
||||
criteria: {},
|
||||
episodesWatched: 0,
|
||||
genres: [],
|
||||
...data,
|
||||
poster,
|
||||
}
|
||||
await add(input)
|
||||
setAdded((s) => new Set(s).add(r.externalId))
|
||||
} catch (e) {
|
||||
// Hors ligne, TMDB injoignable, stockage plein… : on le dit (mode visiteur : déjà signalé ailleurs)
|
||||
if (!(e instanceof GuestError)) toast.show((e as Error)?.message || t('reco.error'))
|
||||
} finally {
|
||||
setBusy(undefined)
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<>
|
||||
<SectionTitle action={seeds.length > 1 ? <LinkArrow onClick={() => setIndex((i) => i + 1)}>{t('reco.other')}</LinkArrow> : undefined}>
|
||||
{t('reco.ifYouLiked')} <span className="text-accent">{seed.title}</span>
|
||||
</SectionTitle>
|
||||
|
||||
{error ? (
|
||||
<p className="text-sm text-ink-3">{error}</p>
|
||||
) : !recs ? (
|
||||
<p className="flex items-center gap-2 text-sm text-ink-3">
|
||||
<Loader2 size={14} className="animate-spin" /> {t('reco.loading')}
|
||||
</p>
|
||||
) : visible.length === 0 ? (
|
||||
<p className="text-sm text-ink-3">{t('reco.none')}</p>
|
||||
) : (
|
||||
<div className="no-scrollbar -mx-4 flex gap-3 overflow-x-auto px-4 pb-1">
|
||||
{visible.map((r) => {
|
||||
const done = added.has(r.externalId)
|
||||
return (
|
||||
<div key={r.externalId} className="w-28 shrink-0">
|
||||
<div className="relative">
|
||||
<Poster src={r.posterUrl ?? r.thumb} title={r.title} />
|
||||
<button
|
||||
onClick={() => addToWatchlist(r)}
|
||||
disabled={done || !!busy}
|
||||
className="absolute bottom-2 end-2 flex h-8 items-center gap-1 rounded-md bg-accent-fill px-2.5 text-xs font-semibold text-on-accent transition active:scale-90 disabled:opacity-90"
|
||||
aria-label={done ? t('reco.added', { title: r.title }) : t('reco.addLabel', { title: r.title })}
|
||||
>
|
||||
{busy === r.externalId ? <Loader2 size={13} className="animate-spin" /> : done ? <Check size={13} strokeWidth={3} /> : <Plus size={13} strokeWidth={3} />}
|
||||
{done ? t('reco.addedShort') : t('status.a_voir')}
|
||||
</button>
|
||||
</div>
|
||||
<p className="mt-2 line-clamp-2 text-xs font-medium leading-snug text-ink-2">{r.title}</p>
|
||||
<p className="text-[11px] text-ink-3">{[r.kindLabel, r.year].filter(Boolean).join(' · ')}</p>
|
||||
</div>
|
||||
)
|
||||
})}
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
)
|
||||
}
|
||||
@@ -28,7 +28,9 @@ function RankNumber({ rank, big }: { rank: number; big?: boolean }) {
|
||||
)
|
||||
}
|
||||
|
||||
function EmptySlot({ rank, onClick, big }: { rank: number; onClick: () => void; big?: boolean }) {
|
||||
function EmptySlot({ rank, onClick, big }: { rank: number; onClick?: () => void; big?: boolean }) {
|
||||
// Top 5 d'un autre profil : simple emplacement vide
|
||||
if (!onClick) return <div aria-hidden className={cx('aspect-[2/3] rounded-xl border border-dashed border-line', big ? 'w-32 lg:w-40' : 'w-full')} />
|
||||
return (
|
||||
<button
|
||||
onClick={onClick}
|
||||
@@ -43,9 +45,15 @@ function EmptySlot({ rank, onClick, big }: { rank: number; onClick: () => void;
|
||||
)
|
||||
}
|
||||
|
||||
export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void }) {
|
||||
const { items, settings } = useMedia()
|
||||
const cats = TOP_CATEGORIES.filter((c) => settings.topCategories.includes(c.value))
|
||||
/**
|
||||
* Top 5 par catégorie (n°1 en grand, 2 à 5 en dessous).
|
||||
* Le mien : modifiable et partageable. Celui d'un autre profil : `items` (ses fiches classées), en lecture seule.
|
||||
*/
|
||||
export default function TopFive({ onOpen, items: others }: { onOpen: (item: MediaItem) => void; items?: MediaItem[] }) {
|
||||
const { items: mine, settings } = useMedia()
|
||||
const readOnly = !!others
|
||||
const items = others ?? mine
|
||||
const cats = TOP_CATEGORIES.filter((c) => (readOnly ? items.some((i) => i.top?.category === c.value) : settings.topCategories.includes(c.value)))
|
||||
const [selected, setSelected] = useState<TopCategory>()
|
||||
const [editing, setEditing] = useState(false)
|
||||
const [sharing, setSharing] = useState(false)
|
||||
@@ -71,12 +79,14 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
||||
<>
|
||||
<SectionTitle
|
||||
action={
|
||||
readOnly ? undefined : (
|
||||
<span className="flex items-center gap-4">
|
||||
<button onClick={share} disabled={sharing} className="flex items-center gap-1 text-xs font-medium text-ink-3" aria-label={t('top.shareLabel')}>
|
||||
{sharing ? <Loader2 size={13} className="animate-spin" /> : <Share2 size={13} />} {t('share.share')}
|
||||
</button>
|
||||
<LinkArrow onClick={edit}>{t('common.edit')}</LinkArrow>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
>
|
||||
{t('top.title')} <span className="text-accent">5</span>
|
||||
@@ -104,7 +114,7 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
||||
<Poster src={first.poster} title={first.title} />
|
||||
</button>
|
||||
) : (
|
||||
<EmptySlot rank={1} onClick={edit} big />
|
||||
<EmptySlot rank={1} onClick={readOnly ? undefined : edit} big />
|
||||
)}
|
||||
</div>
|
||||
<div className="min-w-0 flex-1 pb-1 ps-4">
|
||||
@@ -121,7 +131,7 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
||||
{first.genres.length > 0 && <p className="mt-2 line-clamp-1 text-xs text-ink-3">{first.genres.slice(0, 3).map(genreLabel).join(' · ')}</p>}
|
||||
</>
|
||||
) : (
|
||||
<p className="mt-1.5 text-sm text-ink-3">{t('top.pickFirst')}</p>
|
||||
<p className="mt-1.5 text-sm text-ink-3">{readOnly ? '—' : t('top.pickFirst')}</p>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
@@ -143,7 +153,7 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
||||
<Poster src={item.poster} title={item.title} />
|
||||
</button>
|
||||
) : (
|
||||
<EmptySlot rank={rank} onClick={edit} />
|
||||
<EmptySlot rank={rank} onClick={readOnly ? undefined : edit} />
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -8,6 +8,7 @@ import { formatRating } from '../../lib/utils'
|
||||
import Poster from '../Poster'
|
||||
import { LinkArrow, SectionTitle } from '../ui'
|
||||
import Avatar from './Avatar'
|
||||
import ReviewText from './ReviewText'
|
||||
import { useSocial } from './SocialProvider'
|
||||
|
||||
const feedKey = (e: FeedEntry) => `${e.id}-${e.createdAt}`
|
||||
@@ -24,9 +25,9 @@ function append(list: FeedEntry[], page: FeedEntry[]): FeedEntry[] {
|
||||
return out
|
||||
}
|
||||
|
||||
const VERB = { finished: 'feed.finished', started: 'feed.started', rewatched: 'feed.rewatched', added: 'feed.added' } as const
|
||||
const VERB = { finished: 'feed.finished', rewatched: 'feed.rewatched', rated: 'feed.rated' } as const
|
||||
|
||||
/** Accueil : ce que regardent mes abonnements. */
|
||||
/** Accueil : les derniers titres notés par mes abonnements, avec leur avis. */
|
||||
export default function FriendsFeed() {
|
||||
const social = useSocial()
|
||||
const [entries, setEntries] = useState<FeedEntry[]>()
|
||||
@@ -122,31 +123,34 @@ export default function FriendsFeed() {
|
||||
<>
|
||||
<ul className="divide-y divide-line">
|
||||
{entries.slice(0, shown).map((e) => (
|
||||
<li key={feedKey(e)} className="flex items-center gap-3 py-2.5">
|
||||
<li key={feedKey(e)} className="flex items-start gap-3 py-3">
|
||||
<button onClick={() => social.openProfile(e.user.username)} aria-label={e.user.displayName}>
|
||||
<Avatar url={e.user.avatarUrl} name={e.user.displayName} size={36} />
|
||||
</button>
|
||||
<button onClick={() => social.openItem(e.item, e.user)} className="flex min-w-0 flex-1 items-center gap-3 text-start">
|
||||
<span className="min-w-0 flex-1">
|
||||
<div className="flex min-w-0 flex-1 items-start gap-3">
|
||||
<div className="min-w-0 flex-1">
|
||||
<button onClick={() => social.openItem(e.item, e.user)} className="block w-full text-start">
|
||||
<span className="line-clamp-2 text-sm leading-snug text-ink-2">
|
||||
<span className="font-semibold text-ink">{e.user.displayName}</span> {t(VERB[e.kind])}{' '}
|
||||
<span className="font-semibold text-ink">{e.item.title}</span>
|
||||
</span>
|
||||
<span className="mt-0.5 flex items-center gap-2 text-[11px] text-ink-3">
|
||||
{e.item.rating != null && e.kind !== 'added' && (
|
||||
{e.item.rating != null && (
|
||||
<span className="flex items-center gap-0.5 font-semibold text-ink-2">
|
||||
<Star size={10} className="fill-accent text-accent" />
|
||||
{formatRating(e.item.rating)}
|
||||
</span>
|
||||
)}
|
||||
{e.item.notes && <span>{t('feed.review')}</span>}
|
||||
<span>{timeAgo(e.createdAt)}</span>
|
||||
</span>
|
||||
</span>
|
||||
<span className="w-10 shrink-0">
|
||||
</button>
|
||||
{/* L'avis (hors du bouton : il contient ses propres boutons spoiler / traduction) */}
|
||||
{e.item.notes && <ReviewText text={e.item.notes} spoiler={e.item.notesSpoiler} className="mt-1.5 text-sm text-ink-2 [&_p]:line-clamp-4" />}
|
||||
</div>
|
||||
<button onClick={() => social.openItem(e.item, e.user)} className="w-11 shrink-0" aria-label={e.item.title}>
|
||||
<Poster src={e.item.poster} title={e.item.title} />
|
||||
</span>
|
||||
</button>
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
|
||||
@@ -11,6 +11,7 @@ import ReportButton from '../moderation/ReportButton'
|
||||
import { blockUser, unblockUser, useBlocked } from '../../lib/cloud/moderation'
|
||||
import Poster from '../Poster'
|
||||
import { EmptyState, SectionTitle } from '../ui'
|
||||
import TopFive from '../TopFive'
|
||||
import Avatar from './Avatar'
|
||||
import Sheet from './Sheet'
|
||||
import { useSocial } from './SocialProvider'
|
||||
@@ -52,7 +53,7 @@ function Stat({ value, label, onClick }: { value?: number; label: string; onClic
|
||||
/** Page de profil (la mienne ou celle d'un autre). */
|
||||
export default function ProfileView({ username, onClose }: { username: string; onClose: () => void }) {
|
||||
const social = useSocial()
|
||||
const { settings } = useMedia()
|
||||
const { settings, items: myItems } = useMedia()
|
||||
const [profile, setProfile] = useState<Profile | null>()
|
||||
const [error, setError] = useState<string>()
|
||||
const [tab, setTab] = useState<'profile' | 'top' | 'library'>('profile')
|
||||
@@ -178,11 +179,16 @@ export default function ProfileView({ username, onClose }: { username: string; o
|
||||
// Mon profil : mes réglages locaux font foi tout de suite (même avant la synchro)
|
||||
const shown = profile?.isMe ? TOP_CATEGORIES.filter((c) => settings.topCategories.includes(c.value)) : TOP_CATEGORIES
|
||||
for (const c of shown) {
|
||||
const list = (profile?.top ?? []).filter((i) => i.top?.category === c.value).sort((a, b) => a.top!.rank - b.top!.rank)
|
||||
// Mon profil : mes fiches locales (un Top 5 modifié se voit tout de suite)
|
||||
const source = profile?.isMe ? myItems.filter((i) => i.top) : (profile?.top ?? [])
|
||||
const list = source.filter((i) => i.top?.category === c.value).sort((a, b) => a.top!.rank - b.top!.rank)
|
||||
if (list.length) out.push({ label: c.plural, single: c.label, items: list })
|
||||
}
|
||||
return out
|
||||
}, [profile, settings.topCategories])
|
||||
}, [profile, settings.topCategories, myItems])
|
||||
|
||||
// Mon profil : l'onglet Top 5 est toujours là (c'est ici qu'on le modifie) ; un autre : seulement s'il en a un
|
||||
const showTop = !!profile && (profile.isMe ? settings.topCategories.length > 0 : topByCategory.length > 0)
|
||||
|
||||
return (
|
||||
<Sheet
|
||||
@@ -300,8 +306,8 @@ export default function ProfileView({ username, onClose }: { username: string; o
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<div className={cx('mt-6 grid gap-1 rounded-md border border-line p-1 lg:max-w-md', topByCategory.length ? 'grid-cols-3' : 'grid-cols-2')}>
|
||||
{(topByCategory.length ? (['profile', 'top', 'library'] as const) : (['profile', 'library'] as const)).map((v) => (
|
||||
<div className={cx('mt-6 grid gap-1 rounded-md border border-line p-1 lg:max-w-md', showTop ? 'grid-cols-3' : 'grid-cols-2')}>
|
||||
{(showTop ? (['profile', 'top', 'library'] as const) : (['profile', 'library'] as const)).map((v) => (
|
||||
<button
|
||||
key={v}
|
||||
onClick={() => setTab(v)}
|
||||
@@ -313,8 +319,8 @@ export default function ProfileView({ username, onClose }: { username: string; o
|
||||
</div>
|
||||
{tab === 'profile' ? (
|
||||
<ProfileTab profile={profile} topByCategory={topByCategory} onOpen={openItem} />
|
||||
) : tab === 'top' && topByCategory.length ? (
|
||||
<TopTab topByCategory={topByCategory} onOpen={openItem} />
|
||||
) : tab === 'top' ? (
|
||||
<TopTab profile={profile} onOpen={openItem} />
|
||||
) : (
|
||||
<LibraryTab profile={profile} onOpen={openItem} />
|
||||
)}
|
||||
@@ -393,24 +399,12 @@ function ProfileTab({ profile, topByCategory, onOpen }: { profile: Profile; topB
|
||||
)
|
||||
}
|
||||
|
||||
/** Onglet Top 5 : les classements complets, catégorie par catégorie. */
|
||||
function TopTab({ topByCategory, onOpen }: { topByCategory: TopGroup[]; onOpen: (i: MediaItem) => void }) {
|
||||
/** Onglet Top 5 : le même affichage que l'ancien accueil. Le mien se modifie ici ; celui d'un autre est en lecture seule. */
|
||||
function TopTab({ profile, onOpen }: { profile: Profile; onOpen: (i: MediaItem) => void }) {
|
||||
return (
|
||||
<>
|
||||
{topByCategory.map((c) => (
|
||||
<section key={c.label}>
|
||||
<SectionTitle>{c.label}</SectionTitle>
|
||||
<div className="grid grid-cols-5 gap-2 lg:grid-cols-8 lg:gap-3 xl:grid-cols-10">
|
||||
{c.items.map((item) => (
|
||||
<div key={item.id} className="relative">
|
||||
<PosterTile item={item} onOpen={() => onOpen(item)} />
|
||||
<span className="absolute start-1 top-1 grid size-5 place-items-center rounded-full bg-bg/85 text-[10px] font-bold">{item.top!.rank}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</section>
|
||||
))}
|
||||
</>
|
||||
<div className="mt-2">
|
||||
<TopFive onOpen={onOpen} items={profile.isMe ? undefined : profile.top} />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
+2
-30
@@ -438,6 +438,7 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'عرض الكل',
|
||||
'home.latestReleases': 'أحدث الإصدارات',
|
||||
'home.subtitle': 'يوميات مشاهدتي',
|
||||
'home.calendarSoon_one': 'تقويم الإصدارات: {count} هذا الأسبوع',
|
||||
'home.calendarSoon_other': 'تقويم الإصدارات: {count} هذا الأسبوع',
|
||||
@@ -447,28 +448,7 @@ const dict: Translations = {
|
||||
'home.emptyTitle': 'مكتبتك فارغة',
|
||||
'home.emptyCloud': 'أضف أول فيلم أو أنمي أو دراما. سيُحفظ في حسابك.',
|
||||
'home.emptyLocal': 'أضف أول فيلم أو أنمي أو دراما. يبقى كل شيء مخزّنًا على هذا الهاتف فقط.',
|
||||
'home.completed': 'المكتملة',
|
||||
'home.thisYear_one': '{count} هذا العام',
|
||||
'home.thisYear_other': '{count} هذا العام',
|
||||
'home.thisYear_two': '{count} هذا العام',
|
||||
'home.thisYear_few': '{count} هذا العام',
|
||||
'home.thisYear_many': '{count} هذا العام',
|
||||
'home.toWatchN_one': '{count} للمشاهدة',
|
||||
'home.toWatchN_other': '{count} للمشاهدة',
|
||||
'home.toWatchN_two': '{count} للمشاهدة',
|
||||
'home.toWatchN_few': '{count} للمشاهدة',
|
||||
'home.toWatchN_many': '{count} للمشاهدة',
|
||||
'home.screenTime': 'وقت المشاهدة',
|
||||
'home.estimate': 'تقديري',
|
||||
'home.episodesSeen': 'الحلقات المُشاهدة',
|
||||
'home.noIdea': 'محتار؟',
|
||||
'home.rouletteHint_one': 'اختيار عشوائي من عنوانك الوحيد للمشاهدة',
|
||||
'home.rouletteHint_other': 'اختيار عشوائي من {count} عنوان للمشاهدة',
|
||||
'home.rouletteHint_two': 'اختيار عشوائي من عنوانيك للمشاهدة',
|
||||
'home.rouletteHint_few': 'اختيار عشوائي من {count} عناوين للمشاهدة',
|
||||
'home.rouletteHint_many': 'اختيار عشوائي من {count} عنوانًا للمشاهدة',
|
||||
'home.rouletteHintAll': 'اختيار عشوائي من مكتبتك',
|
||||
'home.recentlyFinished': 'اكتملت مؤخرًا',
|
||||
|
||||
'calendar.title': 'تقويم الإصدارات',
|
||||
'calendar.inMyList': 'في قائمتي',
|
||||
@@ -546,12 +526,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'لا عناوين. جرّب «كل الأصناف» أو بحثًا آخر.',
|
||||
|
||||
'reco.error': 'تعذّر تحميل الاقتراحات حاليًا.',
|
||||
'reco.title': 'اقتراحات',
|
||||
'reco.needKey': 'أضف مفتاح TMDB في الإعدادات لتلقي اقتراحات مبنية على عناوينك المفضلة.',
|
||||
'reco.other': 'عنوان آخر',
|
||||
'reco.ifYouLiked': 'إذا أعجبك',
|
||||
'reco.loading': 'جارٍ البحث عن اقتراحات…',
|
||||
'reco.none': 'لديك بالفعل كل ما يشبه هذا العنوان. جرّب «عنوان آخر».',
|
||||
'reco.added': 'تمت إضافة {title}',
|
||||
'reco.addLabel': 'إضافة {title} إلى قائمة المشاهدة',
|
||||
'reco.addedShort': 'تمت الإضافة',
|
||||
@@ -801,11 +775,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'متابعاتي',
|
||||
'feed.empty': 'تابِع أصدقاءك لترى هنا ما يشاهدونه ورأيهم فيه.',
|
||||
'feed.rated': 'قيّم',
|
||||
'feed.finished': 'شاهد',
|
||||
'feed.started': 'بدأ',
|
||||
'feed.rewatched': 'أعاد مشاهدة',
|
||||
'feed.added': 'يريد مشاهدة',
|
||||
'feed.review': 'رأي',
|
||||
'auth.google': 'المتابعة باستخدام Google',
|
||||
'auth.or': 'أو',
|
||||
'auth.err.google': 'فشل تسجيل الدخول باستخدام Google. أعد المحاولة.',
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Alle ansehen',
|
||||
'home.latestReleases': 'Neuerscheinungen',
|
||||
'home.subtitle': 'Mein Watch-Tagebuch',
|
||||
'home.calendarSoon_one': 'Release-Kalender: {count} diese Woche',
|
||||
'home.calendarSoon_other': 'Release-Kalender: {count} diese Woche',
|
||||
'home.emptyTitle': 'Deine Bibliothek ist leer',
|
||||
'home.emptyCloud': 'Füg deinen ersten Film, Anime oder dein erstes Drama hinzu. Er wird in deinem Konto gespeichert.',
|
||||
'home.emptyLocal': 'Füg deinen ersten Film, Anime oder dein erstes Drama hinzu. Alles bleibt nur auf diesem Handy.',
|
||||
'home.completed': 'Beendet',
|
||||
'home.thisYear_one': '{count} dieses Jahr',
|
||||
'home.thisYear_other': '{count} dieses Jahr',
|
||||
'home.toWatchN_one': '{count} geplant',
|
||||
'home.toWatchN_other': '{count} geplant',
|
||||
'home.screenTime': 'Bildschirmzeit',
|
||||
'home.estimate': 'geschätzt',
|
||||
'home.episodesSeen': 'Gesehene Folgen',
|
||||
'home.noIdea': 'Keine Idee?',
|
||||
'home.rouletteHint_one': 'Zufallsauswahl aus deinem geplanten Titel',
|
||||
'home.rouletteHint_other': 'Zufallsauswahl aus deinen {count} geplanten Titeln',
|
||||
'home.rouletteHintAll': 'Zufallsauswahl aus deiner Bibliothek',
|
||||
'home.recentlyFinished': 'Kürzlich beendet',
|
||||
|
||||
'calendar.title': 'Release-Kalender',
|
||||
'calendar.inMyList': 'In meiner Liste',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Keine Titel. Probier „Alle Typen“ oder eine andere Suche.',
|
||||
|
||||
'reco.error': 'Vorschläge können gerade nicht geladen werden.',
|
||||
'reco.title': 'Vorschläge',
|
||||
'reco.needKey': 'Füg deinen TMDB-Schlüssel in den Einstellungen hinzu, um Vorschläge passend zu deinen Lieblingstiteln zu bekommen.',
|
||||
'reco.other': 'Anderer Titel',
|
||||
'reco.ifYouLiked': 'Wenn dir gefallen hat',
|
||||
'reco.loading': 'Suche Vorschläge…',
|
||||
'reco.none': 'Du hast schon alles, was diesem Titel ähnelt. Probier „Anderer Titel“.',
|
||||
'reco.added': '{title} hinzugefügt',
|
||||
'reco.addLabel': '{title} zu Geplant hinzufügen',
|
||||
'reco.addedShort': 'Hinzugefügt',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Mein Feed',
|
||||
'feed.empty': 'Folge Freunden, um hier zu sehen, was sie schauen und was sie davon halten.',
|
||||
'feed.rated': 'hat bewertet',
|
||||
'feed.finished': 'sah',
|
||||
'feed.started': 'begann',
|
||||
'feed.rewatched': 'sah erneut',
|
||||
'feed.added': 'plant',
|
||||
'feed.review': 'Meinung',
|
||||
'auth.google': "Mit Google fortfahren",
|
||||
'auth.or': "oder",
|
||||
'auth.err.google': "Anmeldung mit Google fehlgeschlagen. Bitte versuche es erneut.",
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'See all',
|
||||
'home.latestReleases': 'Latest releases',
|
||||
'home.subtitle': 'My watch journal',
|
||||
'home.calendarSoon_one': 'Release calendar: {count} this week',
|
||||
'home.calendarSoon_other': 'Release calendar: {count} this week',
|
||||
'home.emptyTitle': 'Your library is empty',
|
||||
'home.emptyCloud': 'Add your first movie, anime or drama. It’ll be saved to your account.',
|
||||
'home.emptyLocal': 'Add your first movie, anime or drama. Everything stays stored only on this phone.',
|
||||
'home.completed': 'Finished',
|
||||
'home.thisYear_one': '{count} this year',
|
||||
'home.thisYear_other': '{count} this year',
|
||||
'home.toWatchN_one': '{count} to watch',
|
||||
'home.toWatchN_other': '{count} to watch',
|
||||
'home.screenTime': 'Screen time',
|
||||
'home.estimate': 'estimate',
|
||||
'home.episodesSeen': 'Episodes watched',
|
||||
'home.noIdea': 'Can’t decide?',
|
||||
'home.rouletteHint_one': 'Random pick from your title to watch',
|
||||
'home.rouletteHint_other': 'Random pick from your {count} titles to watch',
|
||||
'home.rouletteHintAll': 'Random pick from your library',
|
||||
'home.recentlyFinished': 'Recently finished',
|
||||
|
||||
'calendar.title': 'Release calendar',
|
||||
'calendar.inMyList': 'In my list',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'No titles. Try “All types” or a different search.',
|
||||
|
||||
'reco.error': 'Can’t load suggestions right now.',
|
||||
'reco.title': 'Suggestions',
|
||||
'reco.needKey': 'Add your TMDB key in Settings to get suggestions based on your favorite titles.',
|
||||
'reco.other': 'Another title',
|
||||
'reco.ifYouLiked': 'If you liked',
|
||||
'reco.loading': 'Looking for suggestions…',
|
||||
'reco.none': 'You already have everything similar to this title. Try “Another title”.',
|
||||
'reco.added': '{title} added',
|
||||
'reco.addLabel': 'Add {title} to watch',
|
||||
'reco.addedShort': 'Added',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Following',
|
||||
'feed.empty': 'Follow friends to see what they’re watching and what they think of it here.',
|
||||
'feed.rated': 'rated',
|
||||
'feed.finished': 'watched',
|
||||
'feed.started': 'started',
|
||||
'feed.rewatched': 'rewatched',
|
||||
'feed.added': 'wants to watch',
|
||||
'feed.review': 'review',
|
||||
'auth.google': "Continue with Google",
|
||||
'auth.or': "or",
|
||||
'auth.err.google': "Google sign-in failed. Please try again.",
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Ver todo',
|
||||
'home.latestReleases': 'Últimos estrenos',
|
||||
'home.subtitle': 'Mi diario de lo que veo',
|
||||
'home.calendarSoon_one': 'Calendario de estrenos: {count} esta semana',
|
||||
'home.calendarSoon_other': 'Calendario de estrenos: {count} esta semana',
|
||||
'home.emptyTitle': 'Tu biblioteca está vacía',
|
||||
'home.emptyCloud': 'Añade tu primera película, anime o drama. Se guardará en tu cuenta.',
|
||||
'home.emptyLocal': 'Añade tu primera película, anime o drama. Todo se guarda solo en este teléfono.',
|
||||
'home.completed': 'Terminados',
|
||||
'home.thisYear_one': '{count} este año',
|
||||
'home.thisYear_other': '{count} este año',
|
||||
'home.toWatchN_one': '{count} por ver',
|
||||
'home.toWatchN_other': '{count} por ver',
|
||||
'home.screenTime': 'Tiempo frente a la pantalla',
|
||||
'home.estimate': 'estimación',
|
||||
'home.episodesSeen': 'Episodios vistos',
|
||||
'home.noIdea': '¿Sin ideas?',
|
||||
'home.rouletteHint_one': 'Sorteo entre tu título por ver',
|
||||
'home.rouletteHint_other': 'Sorteo entre tus {count} títulos por ver',
|
||||
'home.rouletteHintAll': 'Sorteo en tu biblioteca',
|
||||
'home.recentlyFinished': 'Terminados hace poco',
|
||||
|
||||
'calendar.title': 'Calendario de estrenos',
|
||||
'calendar.inMyList': 'En mi lista',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Ningún título. Prueba «Todos los tipos» u otra búsqueda.',
|
||||
|
||||
'reco.error': 'No se pueden cargar las sugerencias por ahora.',
|
||||
'reco.title': 'Sugerencias',
|
||||
'reco.needKey': 'Añade tu clave de TMDB en Ajustes para recibir sugerencias basadas en tus títulos favoritos.',
|
||||
'reco.other': 'Otro título',
|
||||
'reco.ifYouLiked': 'Si te gustó',
|
||||
'reco.loading': 'Buscando sugerencias…',
|
||||
'reco.none': 'Ya tienes todo lo que se parece a este título. Prueba «Otro título».',
|
||||
'reco.added': '{title} añadido',
|
||||
'reco.addLabel': 'Añadir {title} a por ver',
|
||||
'reco.addedShort': 'Añadido',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'A quién sigo',
|
||||
'feed.empty': 'Sigue a tus amigos para ver aquí lo que ven y lo que opinan.',
|
||||
'feed.rated': 'calificó',
|
||||
'feed.finished': 'vio',
|
||||
'feed.started': 'empezó',
|
||||
'feed.rewatched': 'volvió a ver',
|
||||
'feed.added': 'quiere ver',
|
||||
'feed.review': 'opinión',
|
||||
'auth.google': "Continuar con Google",
|
||||
'auth.or': "o",
|
||||
'auth.err.google': "No se pudo iniciar sesión con Google. Inténtalo de nuevo.",
|
||||
|
||||
+2
-21
@@ -404,25 +404,14 @@ const dict = {
|
||||
|
||||
|
||||
'home.seeAll': 'Tout voir',
|
||||
'home.latestReleases': 'Dernières sorties',
|
||||
'home.subtitle': 'Mon journal de visionnage',
|
||||
'home.calendarSoon_one': 'Calendrier des sorties : {count} cette semaine',
|
||||
'home.calendarSoon_other': 'Calendrier des sorties : {count} cette semaine',
|
||||
'home.emptyTitle': 'Ta bibliothèque est vide',
|
||||
'home.emptyCloud': 'Ajoute ton premier film, anime ou drama. Il sera enregistré dans ton compte.',
|
||||
'home.emptyLocal': 'Ajoute ton premier film, anime ou drama. Tout reste stocké uniquement sur ce téléphone.',
|
||||
'home.completed': 'Terminés',
|
||||
'home.thisYear_one': '{count} cette année',
|
||||
'home.thisYear_other': '{count} cette année',
|
||||
'home.toWatchN_one': '{count} à voir',
|
||||
'home.toWatchN_other': '{count} à voir',
|
||||
'home.screenTime': 'Temps devant l\'écran',
|
||||
'home.estimate': 'estimation',
|
||||
'home.episodesSeen': 'Épisodes vus',
|
||||
'home.noIdea': 'Pas d\'idée ?',
|
||||
'home.rouletteHint_one': 'Tirage au sort parmi ton titre à voir',
|
||||
'home.rouletteHint_other': 'Tirage au sort parmi tes {count} titres à voir',
|
||||
'home.rouletteHintAll': 'Tirage au sort dans ta bibliothèque',
|
||||
'home.recentlyFinished': 'Récemment terminés',
|
||||
|
||||
'calendar.title': 'Calendrier des sorties',
|
||||
'calendar.inMyList': 'Dans ma liste',
|
||||
@@ -491,12 +480,6 @@ const dict = {
|
||||
'top.noCandidates': 'Aucun titre. Essaie « Tous les types » ou une autre recherche.',
|
||||
|
||||
'reco.error': 'Impossible de charger les suggestions pour le moment.',
|
||||
'reco.title': 'Suggestions',
|
||||
'reco.needKey': 'Ajoute ta clé TMDB dans les Réglages pour recevoir des suggestions basées sur tes titres préférés.',
|
||||
'reco.other': 'Autre titre',
|
||||
'reco.ifYouLiked': 'Si tu as aimé',
|
||||
'reco.loading': 'Recherche de suggestions…',
|
||||
'reco.none': 'Tu as déjà tout ce qui ressemble à ce titre. Essaie « Autre titre ».',
|
||||
'reco.added': '{title} ajouté',
|
||||
'reco.addLabel': 'Ajouter {title} à voir',
|
||||
'reco.addedShort': 'Ajouté',
|
||||
@@ -704,11 +687,9 @@ const dict = {
|
||||
|
||||
'feed.title': 'Mes abonnements',
|
||||
'feed.empty': 'Abonne-toi à des amis pour voir ici ce qu\'ils regardent et ce qu\'ils en pensent.',
|
||||
'feed.rated': 'a noté',
|
||||
'feed.finished': 'a vu',
|
||||
'feed.started': 'a commencé',
|
||||
'feed.rewatched': 'a revu',
|
||||
'feed.added': 'veut voir',
|
||||
'feed.review': 'avis',
|
||||
'auth.google': "Continuer avec Google",
|
||||
'auth.or': "ou",
|
||||
'auth.err.google': "La connexion avec Google a échoué. Réessaie.",
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'सभी देखें',
|
||||
'home.latestReleases': 'नई रिलीज़',
|
||||
'home.subtitle': 'मेरी वॉच डायरी',
|
||||
'home.calendarSoon_one': 'रिलीज़ कैलेंडर: इस हफ़्ते {count}',
|
||||
'home.calendarSoon_other': 'रिलीज़ कैलेंडर: इस हफ़्ते {count}',
|
||||
'home.emptyTitle': 'आपकी लाइब्रेरी खाली है',
|
||||
'home.emptyCloud': 'अपनी पहली फ़िल्म, एनिमे या ड्रामा जोड़ें। यह आपके अकाउंट में सेव होगा।',
|
||||
'home.emptyLocal': 'अपनी पहली फ़िल्म, एनिमे या ड्रामा जोड़ें। सब कुछ सिर्फ़ इसी फ़ोन पर सेव रहेगा।',
|
||||
'home.completed': 'पूरे हुए',
|
||||
'home.thisYear_one': 'इस साल {count}',
|
||||
'home.thisYear_other': 'इस साल {count}',
|
||||
'home.toWatchN_one': '{count} देखना है',
|
||||
'home.toWatchN_other': '{count} देखने हैं',
|
||||
'home.screenTime': 'स्क्रीन टाइम',
|
||||
'home.estimate': 'अनुमान',
|
||||
'home.episodesSeen': 'देखे गए एपिसोड',
|
||||
'home.noIdea': 'तय नहीं कर पा रहे?',
|
||||
'home.rouletteHint_one': 'देखने वाले आपके टाइटल में से रैंडम चुनाव',
|
||||
'home.rouletteHint_other': 'देखने वाले आपके {count} टाइटल में से रैंडम चुनाव',
|
||||
'home.rouletteHintAll': 'आपकी लाइब्रेरी में से रैंडम चुनाव',
|
||||
'home.recentlyFinished': 'हाल ही में पूरे किए',
|
||||
|
||||
'calendar.title': 'रिलीज़ कैलेंडर',
|
||||
'calendar.inMyList': 'मेरी लिस्ट में',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'कोई टाइटल नहीं। “सभी टाइप” या कोई दूसरी खोज आज़माएँ।',
|
||||
|
||||
'reco.error': 'अभी सुझाव लोड नहीं हो पा रहे।',
|
||||
'reco.title': 'सुझाव',
|
||||
'reco.needKey': 'अपने पसंदीदा टाइटल के आधार पर सुझाव पाने के लिए सेटिंग्स में अपनी TMDB की जोड़ें।',
|
||||
'reco.other': 'दूसरा टाइटल',
|
||||
'reco.ifYouLiked': 'अगर आपको पसंद आया',
|
||||
'reco.loading': 'सुझाव खोजे जा रहे हैं…',
|
||||
'reco.none': 'इस टाइटल जैसा सब कुछ आपके पास पहले से है। “दूसरा टाइटल” आज़माएँ।',
|
||||
'reco.added': '{title} जोड़ा गया',
|
||||
'reco.addLabel': '{title} को देखना है में जोड़ें',
|
||||
'reco.addedShort': 'जोड़ा गया',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'फ़ॉलोइंग',
|
||||
'feed.empty': 'दोस्तों को फ़ॉलो करें और यहाँ देखें कि वे क्या देख रहे हैं और उन्हें कैसा लगा।',
|
||||
'feed.rated': 'ने रेटिंग दी',
|
||||
'feed.finished': 'ने देखा',
|
||||
'feed.started': 'ने शुरू किया',
|
||||
'feed.rewatched': 'ने दोबारा देखा',
|
||||
'feed.added': 'देखना चाहते हैं',
|
||||
'feed.review': 'रिव्यू',
|
||||
'auth.google': 'Google के साथ जारी रखें',
|
||||
'auth.or': 'या',
|
||||
'auth.err.google': 'Google से साइन इन नहीं हो सका। कृपया फिर कोशिश करें।',
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Lihat semua',
|
||||
'home.latestReleases': 'Rilisan terbaru',
|
||||
'home.subtitle': 'Jurnal tontonanku',
|
||||
'home.calendarSoon_one': 'Kalender rilis: {count} minggu ini',
|
||||
'home.calendarSoon_other': 'Kalender rilis: {count} minggu ini',
|
||||
'home.emptyTitle': 'Koleksimu masih kosong',
|
||||
'home.emptyCloud': 'Tambahkan film, anime, atau drama pertamamu. Semuanya akan disimpan di akunmu.',
|
||||
'home.emptyLocal': 'Tambahkan film, anime, atau drama pertamamu. Semuanya hanya disimpan di ponsel ini.',
|
||||
'home.completed': 'Selesai',
|
||||
'home.thisYear_one': '{count} tahun ini',
|
||||
'home.thisYear_other': '{count} tahun ini',
|
||||
'home.toWatchN_one': '{count} mau ditonton',
|
||||
'home.toWatchN_other': '{count} mau ditonton',
|
||||
'home.screenTime': 'Waktu menonton',
|
||||
'home.estimate': 'perkiraan',
|
||||
'home.episodesSeen': 'Episode ditonton',
|
||||
'home.noIdea': 'Bingung mau nonton apa?',
|
||||
'home.rouletteHint_one': 'Undian dari judul yang mau kamu tonton',
|
||||
'home.rouletteHint_other': 'Undian dari {count} judul yang mau kamu tonton',
|
||||
'home.rouletteHintAll': 'Undian dari koleksimu',
|
||||
'home.recentlyFinished': 'Baru selesai',
|
||||
|
||||
'calendar.title': 'Kalender rilis',
|
||||
'calendar.inMyList': 'Di daftarku',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Tidak ada judul. Coba “Semua jenis” atau pencarian lain.',
|
||||
|
||||
'reco.error': 'Rekomendasi belum bisa dimuat saat ini.',
|
||||
'reco.title': 'Rekomendasi',
|
||||
'reco.needKey': 'Tambahkan kunci TMDB kamu di Pengaturan untuk dapat rekomendasi berdasarkan judul favoritmu.',
|
||||
'reco.other': 'Judul lain',
|
||||
'reco.ifYouLiked': 'Kalau kamu suka',
|
||||
'reco.loading': 'Mencari rekomendasi…',
|
||||
'reco.none': 'Kamu sudah punya semua yang mirip dengan judul ini. Coba “Judul lain”.',
|
||||
'reco.added': '{title} ditambahkan',
|
||||
'reco.addLabel': 'Tambahkan {title} ke Mau ditonton',
|
||||
'reco.addedShort': 'Ditambahkan',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Yang kuikuti',
|
||||
'feed.empty': 'Ikuti teman-temanmu untuk melihat di sini apa yang mereka tonton dan pendapat mereka.',
|
||||
'feed.rated': 'menilai',
|
||||
'feed.finished': 'menonton',
|
||||
'feed.started': 'mulai menonton',
|
||||
'feed.rewatched': 'menonton ulang',
|
||||
'feed.added': 'mau menonton',
|
||||
'feed.review': 'ulasan',
|
||||
'auth.google': 'Lanjutkan dengan Google',
|
||||
'auth.or': 'atau',
|
||||
'auth.err.google': 'Gagal masuk dengan Google. Coba lagi.',
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Vedi tutto',
|
||||
'home.latestReleases': 'Ultime uscite',
|
||||
'home.subtitle': 'Il mio diario di visione',
|
||||
'home.calendarSoon_one': 'Calendario delle uscite: {count} questa settimana',
|
||||
'home.calendarSoon_other': 'Calendario delle uscite: {count} questa settimana',
|
||||
'home.emptyTitle': 'La tua libreria è vuota',
|
||||
'home.emptyCloud': 'Aggiungi il tuo primo film, anime o drama. Verrà salvato nel tuo account.',
|
||||
'home.emptyLocal': 'Aggiungi il tuo primo film, anime o drama. Resta tutto salvato solo su questo telefono.',
|
||||
'home.completed': 'Finiti',
|
||||
'home.thisYear_one': '{count} quest’anno',
|
||||
'home.thisYear_other': '{count} quest’anno',
|
||||
'home.toWatchN_one': '{count} da vedere',
|
||||
'home.toWatchN_other': '{count} da vedere',
|
||||
'home.screenTime': 'Tempo davanti allo schermo',
|
||||
'home.estimate': 'stima',
|
||||
'home.episodesSeen': 'Episodi visti',
|
||||
'home.noIdea': 'Nessuna idea?',
|
||||
'home.rouletteHint_one': 'Estrazione a sorte tra il tuo titolo da vedere',
|
||||
'home.rouletteHint_other': 'Estrazione a sorte tra i tuoi {count} titoli da vedere',
|
||||
'home.rouletteHintAll': 'Estrazione a sorte dalla tua libreria',
|
||||
'home.recentlyFinished': 'Finiti di recente',
|
||||
|
||||
'calendar.title': 'Calendario delle uscite',
|
||||
'calendar.inMyList': 'Nella mia lista',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Nessun titolo. Prova «Tutti i tipi» o un’altra ricerca.',
|
||||
|
||||
'reco.error': 'Impossibile caricare i suggerimenti al momento.',
|
||||
'reco.title': 'Suggerimenti',
|
||||
'reco.needKey': 'Aggiungi la tua chiave TMDB nelle Impostazioni per ricevere suggerimenti basati sui tuoi titoli preferiti.',
|
||||
'reco.other': 'Altro titolo',
|
||||
'reco.ifYouLiked': 'Se ti è piaciuto',
|
||||
'reco.loading': 'Cerco suggerimenti…',
|
||||
'reco.none': 'Hai già tutto ciò che somiglia a questo titolo. Prova «Altro titolo».',
|
||||
'reco.added': '{title} aggiunto',
|
||||
'reco.addLabel': 'Aggiungi {title} a da vedere',
|
||||
'reco.addedShort': 'Aggiunto',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Persone che segui',
|
||||
'feed.empty': 'Segui degli amici per vedere qui cosa guardano e cosa ne pensano.',
|
||||
'feed.rated': 'ha valutato',
|
||||
'feed.finished': 'ha visto',
|
||||
'feed.started': 'ha iniziato',
|
||||
'feed.rewatched': 'ha rivisto',
|
||||
'feed.added': 'vuole vedere',
|
||||
'feed.review': 'opinione',
|
||||
'auth.google': "Continua con Google",
|
||||
'auth.or': "oppure",
|
||||
'auth.err.google': "Accesso con Google non riuscito. Riprova.",
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'すべて見る',
|
||||
'home.latestReleases': '最新作',
|
||||
'home.subtitle': 'わたしの視聴記録',
|
||||
'home.calendarSoon_one': '公開カレンダー:今週{count}件',
|
||||
'home.calendarSoon_other': '公開カレンダー:今週{count}件',
|
||||
'home.emptyTitle': 'ライブラリは空です',
|
||||
'home.emptyCloud': '最初の映画、アニメ、ドラマを追加しましょう。アカウントに保存されます。',
|
||||
'home.emptyLocal': '最初の映画、アニメ、ドラマを追加しましょう。データはこのスマホにのみ保存されます。',
|
||||
'home.completed': '見終わった',
|
||||
'home.thisYear_one': '今年{count}本',
|
||||
'home.thisYear_other': '今年{count}本',
|
||||
'home.toWatchN_one': '見たい{count}本',
|
||||
'home.toWatchN_other': '見たい{count}本',
|
||||
'home.screenTime': '視聴時間',
|
||||
'home.estimate': '推定',
|
||||
'home.episodesSeen': '視聴エピソード',
|
||||
'home.noIdea': '何を見るか迷ったら?',
|
||||
'home.rouletteHint_one': '見たい作品からランダムに選びます',
|
||||
'home.rouletteHint_other': '見たい{count}作品からランダムに選びます',
|
||||
'home.rouletteHintAll': 'ライブラリからランダムに選びます',
|
||||
'home.recentlyFinished': '最近見終わった作品',
|
||||
|
||||
'calendar.title': '公開カレンダー',
|
||||
'calendar.inMyList': 'マイリストにあり',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': '作品がありません。「すべてのタイプ」や別のキーワードで試してください。',
|
||||
|
||||
'reco.error': '現在、おすすめを読み込めません。',
|
||||
'reco.title': 'おすすめ',
|
||||
'reco.needKey': '設定でTMDBキーを追加すると、お気に入りの作品をもとにおすすめを表示します。',
|
||||
'reco.other': '別の作品',
|
||||
'reco.ifYouLiked': 'これが好きなら',
|
||||
'reco.loading': 'おすすめを検索中…',
|
||||
'reco.none': '似た作品はすべて追加済みです。「別の作品」を試してください。',
|
||||
'reco.added': '{title}を追加しました',
|
||||
'reco.addLabel': '{title}を見たいに追加',
|
||||
'reco.addedShort': '追加済み',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'フォロー中',
|
||||
'feed.empty': '友だちをフォローすると、見ている作品や感想がここに表示されます。',
|
||||
'feed.rated': 'が評価:',
|
||||
'feed.finished': 'が観た:',
|
||||
'feed.started': 'が見始めた:',
|
||||
'feed.rewatched': 'が再視聴:',
|
||||
'feed.added': 'が見たい:',
|
||||
'feed.review': 'レビュー',
|
||||
'auth.google': "Google で続行",
|
||||
'auth.or': "または",
|
||||
'auth.err.google': "Google でのログインに失敗しました。もう一度お試しください。",
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': '전체 보기',
|
||||
'home.latestReleases': '최신 공개작',
|
||||
'home.subtitle': '나의 시청 일지',
|
||||
'home.calendarSoon_one': '공개 캘린더: 이번 주 {count}개',
|
||||
'home.calendarSoon_other': '공개 캘린더: 이번 주 {count}개',
|
||||
'home.emptyTitle': '라이브러리가 비어 있어요',
|
||||
'home.emptyCloud': '첫 영화, 애니, 드라마를 추가해 보세요. 내 계정에 저장돼요.',
|
||||
'home.emptyLocal': '첫 영화, 애니, 드라마를 추가해 보세요. 모든 데이터는 이 휴대폰에만 저장돼요.',
|
||||
'home.completed': '다 본 작품',
|
||||
'home.thisYear_one': '올해 {count}개',
|
||||
'home.thisYear_other': '올해 {count}개',
|
||||
'home.toWatchN_one': '볼 예정 {count}개',
|
||||
'home.toWatchN_other': '볼 예정 {count}개',
|
||||
'home.screenTime': '시청 시간',
|
||||
'home.estimate': '추정치',
|
||||
'home.episodesSeen': '본 에피소드',
|
||||
'home.noIdea': '뭘 볼지 고민돼요?',
|
||||
'home.rouletteHint_one': '볼 예정인 작품 중에서 뽑기',
|
||||
'home.rouletteHint_other': '볼 예정인 작품 {count}개 중에서 뽑기',
|
||||
'home.rouletteHintAll': '라이브러리 전체에서 뽑기',
|
||||
'home.recentlyFinished': '최근에 다 본 작품',
|
||||
|
||||
'calendar.title': '공개 캘린더',
|
||||
'calendar.inMyList': '내 리스트에 있음',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': '작품이 없어요. ‘모든 유형’을 선택하거나 다르게 검색해 보세요.',
|
||||
|
||||
'reco.error': '지금은 추천을 불러올 수 없어요.',
|
||||
'reco.title': '추천',
|
||||
'reco.needKey': '설정에서 TMDB 키를 추가하면 좋아하는 작품을 바탕으로 추천을 받을 수 있어요.',
|
||||
'reco.other': '다른 작품',
|
||||
'reco.ifYouLiked': '이 작품을 좋아했다면',
|
||||
'reco.loading': '추천 작품을 찾는 중…',
|
||||
'reco.none': '이 작품과 비슷한 건 이미 다 있어요. ‘다른 작품’을 눌러 보세요.',
|
||||
'reco.added': '{title} 추가됨',
|
||||
'reco.addLabel': '{title}을(를) 볼 예정에 추가',
|
||||
'reco.addedShort': '추가됨',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': '팔로잉',
|
||||
'feed.empty': '친구를 팔로우하면 친구가 뭘 보고 어떻게 생각하는지 여기서 볼 수 있어요.',
|
||||
'feed.rated': '님이 평가했어요:',
|
||||
'feed.finished': '님이 봤어요:',
|
||||
'feed.started': '님이 보기 시작했어요:',
|
||||
'feed.rewatched': '님이 다시 봤어요:',
|
||||
'feed.added': '님이 보고 싶어 해요:',
|
||||
'feed.review': '감상',
|
||||
'auth.google': "Google로 계속하기",
|
||||
'auth.or': "또는",
|
||||
'auth.err.google': "Google 로그인에 실패했어요. 다시 시도해 주세요.",
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Alles bekijken',
|
||||
'home.latestReleases': 'Nieuwste releases',
|
||||
'home.subtitle': 'Mijn kijkdagboek',
|
||||
'home.calendarSoon_one': 'Releasekalender: {count} deze week',
|
||||
'home.calendarSoon_other': 'Releasekalender: {count} deze week',
|
||||
'home.emptyTitle': 'Je bibliotheek is leeg',
|
||||
'home.emptyCloud': 'Voeg je eerste film, anime of drama toe. Hij wordt in je account opgeslagen.',
|
||||
'home.emptyLocal': 'Voeg je eerste film, anime of drama toe. Alles blijft alleen op deze telefoon staan.',
|
||||
'home.completed': 'Gezien',
|
||||
'home.thisYear_one': '{count} dit jaar',
|
||||
'home.thisYear_other': '{count} dit jaar',
|
||||
'home.toWatchN_one': '{count} nog te kijken',
|
||||
'home.toWatchN_other': '{count} nog te kijken',
|
||||
'home.screenTime': 'Schermtijd',
|
||||
'home.estimate': 'schatting',
|
||||
'home.episodesSeen': 'Afleveringen gezien',
|
||||
'home.noIdea': 'Geen idee?',
|
||||
'home.rouletteHint_one': 'Willekeurige keuze uit je titel om te kijken',
|
||||
'home.rouletteHint_other': 'Willekeurige keuze uit je {count} titels om te kijken',
|
||||
'home.rouletteHintAll': 'Willekeurige keuze uit je bibliotheek',
|
||||
'home.recentlyFinished': 'Onlangs uitgekeken',
|
||||
|
||||
'calendar.title': 'Releasekalender',
|
||||
'calendar.inMyList': 'In mijn lijst',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Geen titels. Probeer “Alle types” of een andere zoekopdracht.',
|
||||
|
||||
'reco.error': 'Kan de suggesties nu niet laden.',
|
||||
'reco.title': 'Suggesties',
|
||||
'reco.needKey': 'Voeg je TMDB-sleutel toe in Instellingen om suggesties te krijgen op basis van je favoriete titels.',
|
||||
'reco.other': 'Andere titel',
|
||||
'reco.ifYouLiked': 'Als je dit leuk vond',
|
||||
'reco.loading': 'Suggesties zoeken…',
|
||||
'reco.none': 'Je hebt alles wat op deze titel lijkt al. Probeer “Andere titel”.',
|
||||
'reco.added': '{title} toegevoegd',
|
||||
'reco.addLabel': '{title} toevoegen aan Nog kijken',
|
||||
'reco.addedShort': 'Toegevoegd',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Volgend',
|
||||
'feed.empty': 'Volg vrienden om hier te zien wat ze kijken en wat ze ervan vinden.',
|
||||
'feed.rated': 'beoordeelde',
|
||||
'feed.finished': 'heeft gezien',
|
||||
'feed.started': 'is begonnen met',
|
||||
'feed.rewatched': 'heeft opnieuw gekeken',
|
||||
'feed.added': 'wil kijken',
|
||||
'feed.review': 'review',
|
||||
'auth.google': "Doorgaan met Google",
|
||||
'auth.or': "of",
|
||||
'auth.err.google': "Inloggen met Google is mislukt. Probeer het opnieuw.",
|
||||
|
||||
+2
-27
@@ -426,6 +426,7 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Zobacz wszystko',
|
||||
'home.latestReleases': 'Najnowsze premiery',
|
||||
'home.subtitle': 'Mój dziennik oglądania',
|
||||
'home.calendarSoon_one': 'Kalendarz premier: {count} w tym tygodniu',
|
||||
'home.calendarSoon_few': 'Kalendarz premier: {count} w tym tygodniu',
|
||||
@@ -434,25 +435,7 @@ const dict: Translations = {
|
||||
'home.emptyTitle': 'Twoja biblioteka jest pusta',
|
||||
'home.emptyCloud': 'Dodaj swój pierwszy film, anime lub dramę. Zostanie zapisany na twoim koncie.',
|
||||
'home.emptyLocal': 'Dodaj swój pierwszy film, anime lub dramę. Wszystko jest przechowywane tylko na tym telefonie.',
|
||||
'home.completed': 'Ukończone',
|
||||
'home.thisYear_one': '{count} w tym roku',
|
||||
'home.thisYear_few': '{count} w tym roku',
|
||||
'home.thisYear_many': '{count} w tym roku',
|
||||
'home.thisYear_other': '{count} w tym roku',
|
||||
'home.toWatchN_one': '{count} do obejrzenia',
|
||||
'home.toWatchN_few': '{count} do obejrzenia',
|
||||
'home.toWatchN_many': '{count} do obejrzenia',
|
||||
'home.toWatchN_other': '{count} do obejrzenia',
|
||||
'home.screenTime': 'Czas przed ekranem',
|
||||
'home.estimate': 'szacunkowo',
|
||||
'home.episodesSeen': 'Obejrzane odcinki',
|
||||
'home.noIdea': 'Nie wiesz, co obejrzeć?',
|
||||
'home.rouletteHint_one': 'Losowanie z twojego jedynego tytułu do obejrzenia',
|
||||
'home.rouletteHint_few': 'Losowanie spośród twoich {count} tytułów do obejrzenia',
|
||||
'home.rouletteHint_many': 'Losowanie spośród twoich {count} tytułów do obejrzenia',
|
||||
'home.rouletteHint_other': 'Losowanie spośród twoich {count} tytułów do obejrzenia',
|
||||
'home.rouletteHintAll': 'Losowanie z twojej biblioteki',
|
||||
'home.recentlyFinished': 'Ostatnio ukończone',
|
||||
|
||||
'calendar.title': 'Kalendarz premier',
|
||||
'calendar.inMyList': 'Na mojej liście',
|
||||
@@ -527,12 +510,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Brak tytułów. Spróbuj „Wszystkie typy” lub innego wyszukiwania.',
|
||||
|
||||
'reco.error': 'Nie można teraz wczytać propozycji.',
|
||||
'reco.title': 'Propozycje',
|
||||
'reco.needKey': 'Dodaj klucz TMDB w Ustawieniach, aby dostawać propozycje na podstawie ulubionych tytułów.',
|
||||
'reco.other': 'Inny tytuł',
|
||||
'reco.ifYouLiked': 'Jeśli podobało ci się',
|
||||
'reco.loading': 'Szukanie propozycji…',
|
||||
'reco.none': 'Masz już wszystko, co przypomina ten tytuł. Spróbuj „Inny tytuł”.',
|
||||
'reco.added': 'Dodano {title}',
|
||||
'reco.addLabel': 'Dodaj {title} do obejrzenia',
|
||||
'reco.addedShort': 'Dodano',
|
||||
@@ -768,11 +745,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Obserwowani',
|
||||
'feed.empty': 'Obserwuj znajomych, aby widzieć tutaj, co oglądają i co o tym myślą.',
|
||||
'feed.rated': 'ocenił(a)',
|
||||
'feed.finished': 'obejrzał(a)',
|
||||
'feed.started': 'zaczął(-ęła) oglądać',
|
||||
'feed.rewatched': 'obejrzał(a) ponownie',
|
||||
'feed.added': 'chce obejrzeć',
|
||||
'feed.review': 'recenzja',
|
||||
'auth.google': 'Kontynuuj z Google',
|
||||
'auth.or': 'lub',
|
||||
'auth.err.google': 'Logowanie przez Google nie powiodło się. Spróbuj ponownie.',
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Ver tudo',
|
||||
'home.latestReleases': 'Últimos lançamentos',
|
||||
'home.subtitle': 'Meu diário do que assisto',
|
||||
'home.calendarSoon_one': 'Calendário de lançamentos: {count} nesta semana',
|
||||
'home.calendarSoon_other': 'Calendário de lançamentos: {count} nesta semana',
|
||||
'home.emptyTitle': 'Sua biblioteca está vazia',
|
||||
'home.emptyCloud': 'Adicione seu primeiro filme, anime ou dorama. Ele ficará salvo na sua conta.',
|
||||
'home.emptyLocal': 'Adicione seu primeiro filme, anime ou dorama. Tudo fica guardado só neste celular.',
|
||||
'home.completed': 'Concluídos',
|
||||
'home.thisYear_one': '{count} este ano',
|
||||
'home.thisYear_other': '{count} este ano',
|
||||
'home.toWatchN_one': '{count} para ver',
|
||||
'home.toWatchN_other': '{count} para ver',
|
||||
'home.screenTime': 'Tempo de tela',
|
||||
'home.estimate': 'estimativa',
|
||||
'home.episodesSeen': 'Episódios vistos',
|
||||
'home.noIdea': 'Sem ideia?',
|
||||
'home.rouletteHint_one': 'Sorteio entre o seu título para ver',
|
||||
'home.rouletteHint_other': 'Sorteio entre os seus {count} títulos para ver',
|
||||
'home.rouletteHintAll': 'Sorteio na sua biblioteca',
|
||||
'home.recentlyFinished': 'Concluídos recentemente',
|
||||
|
||||
'calendar.title': 'Calendário de lançamentos',
|
||||
'calendar.inMyList': 'Na minha lista',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Nenhum título. Tente “Todos os tipos” ou outra busca.',
|
||||
|
||||
'reco.error': 'Não foi possível carregar as sugestões no momento.',
|
||||
'reco.title': 'Sugestões',
|
||||
'reco.needKey': 'Adicione sua chave do TMDB em Ajustes para receber sugestões com base nos seus títulos favoritos.',
|
||||
'reco.other': 'Outro título',
|
||||
'reco.ifYouLiked': 'Se você gostou de',
|
||||
'reco.loading': 'Buscando sugestões…',
|
||||
'reco.none': 'Você já tem tudo o que se parece com este título. Tente “Outro título”.',
|
||||
'reco.added': '{title} adicionado',
|
||||
'reco.addLabel': 'Adicionar {title} a “Quero ver”',
|
||||
'reco.addedShort': 'Adicionado',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Quem eu sigo',
|
||||
'feed.empty': 'Siga amigos para ver aqui o que eles assistem e o que acharam.',
|
||||
'feed.rated': 'avaliou',
|
||||
'feed.finished': 'assistiu',
|
||||
'feed.started': 'começou',
|
||||
'feed.rewatched': 'reviu',
|
||||
'feed.added': 'quer ver',
|
||||
'feed.review': 'opinião',
|
||||
'auth.google': "Continuar com o Google",
|
||||
'auth.or': "ou",
|
||||
'auth.err.google': "Falha ao entrar com o Google. Tente novamente.",
|
||||
|
||||
+2
-27
@@ -426,6 +426,7 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Все',
|
||||
'home.latestReleases': 'Новинки',
|
||||
'home.subtitle': 'Мой дневник просмотров',
|
||||
'home.calendarSoon_one': 'Календарь релизов: {count} на этой неделе',
|
||||
'home.calendarSoon_few': 'Календарь релизов: {count} на этой неделе',
|
||||
@@ -434,25 +435,7 @@ const dict: Translations = {
|
||||
'home.emptyTitle': 'Твоя библиотека пуста',
|
||||
'home.emptyCloud': 'Добавь свой первый фильм, аниме или дораму. Всё сохранится в аккаунте.',
|
||||
'home.emptyLocal': 'Добавь свой первый фильм, аниме или дораму. Всё хранится только на этом телефоне.',
|
||||
'home.completed': 'Просмотрено',
|
||||
'home.thisYear_one': '{count} в этом году',
|
||||
'home.thisYear_few': '{count} в этом году',
|
||||
'home.thisYear_many': '{count} в этом году',
|
||||
'home.thisYear_other': '{count} в этом году',
|
||||
'home.toWatchN_one': '{count} в планах',
|
||||
'home.toWatchN_few': '{count} в планах',
|
||||
'home.toWatchN_many': '{count} в планах',
|
||||
'home.toWatchN_other': '{count} в планах',
|
||||
'home.screenTime': 'Время у экрана',
|
||||
'home.estimate': 'примерно',
|
||||
'home.episodesSeen': 'Просмотрено серий',
|
||||
'home.noIdea': 'Не знаешь, что посмотреть?',
|
||||
'home.rouletteHint_one': 'Случайный выбор из тайтлов в планах',
|
||||
'home.rouletteHint_few': 'Случайный выбор из {count} тайтлов в планах',
|
||||
'home.rouletteHint_many': 'Случайный выбор из {count} тайтлов в планах',
|
||||
'home.rouletteHint_other': 'Случайный выбор из {count} тайтла в планах',
|
||||
'home.rouletteHintAll': 'Случайный выбор из твоей библиотеки',
|
||||
'home.recentlyFinished': 'Недавно просмотренные',
|
||||
|
||||
'calendar.title': 'Календарь релизов',
|
||||
'calendar.inMyList': 'В моём списке',
|
||||
@@ -527,12 +510,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Нет тайтлов. Попробуй «Все типы» или другой запрос.',
|
||||
|
||||
'reco.error': 'Не удалось загрузить рекомендации.',
|
||||
'reco.title': 'Рекомендации',
|
||||
'reco.needKey': 'Добавь ключ TMDB в настройках, чтобы получать рекомендации на основе любимых тайтлов.',
|
||||
'reco.other': 'Другой тайтл',
|
||||
'reco.ifYouLiked': 'Если тебе понравилось',
|
||||
'reco.loading': 'Ищем рекомендации…',
|
||||
'reco.none': 'У тебя уже есть всё похожее на этот тайтл. Попробуй «Другой тайтл».',
|
||||
'reco.added': '{title} добавлен',
|
||||
'reco.addLabel': 'Добавить {title} в планы',
|
||||
'reco.addedShort': 'Добавлено',
|
||||
@@ -768,11 +745,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Подписки',
|
||||
'feed.empty': 'Подпишись на друзей, чтобы видеть здесь, что они смотрят и что об этом думают.',
|
||||
'feed.rated': 'оценил(а)',
|
||||
'feed.finished': 'посмотрел(а)',
|
||||
'feed.started': 'начал(а) смотреть',
|
||||
'feed.rewatched': 'пересмотрел(а)',
|
||||
'feed.added': 'хочет посмотреть',
|
||||
'feed.review': 'отзыв',
|
||||
'auth.google': 'Продолжить с Google',
|
||||
'auth.or': 'или',
|
||||
'auth.err.google': 'Не удалось войти через Google. Попробуй ещё раз.',
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'ดูทั้งหมด',
|
||||
'home.latestReleases': 'ออกใหม่ล่าสุด',
|
||||
'home.subtitle': 'บันทึกการดูของฉัน',
|
||||
'home.calendarSoon_one': 'ปฏิทินวันฉาย: สัปดาห์นี้ {count} เรื่อง',
|
||||
'home.calendarSoon_other': 'ปฏิทินวันฉาย: สัปดาห์นี้ {count} เรื่อง',
|
||||
'home.emptyTitle': 'คลังของคุณยังว่างอยู่',
|
||||
'home.emptyCloud': 'เพิ่มหนัง อนิเมะ หรือดราม่าเรื่องแรกของคุณ ระบบจะบันทึกไว้ในบัญชีของคุณ',
|
||||
'home.emptyLocal': 'เพิ่มหนัง อนิเมะ หรือดราม่าเรื่องแรกของคุณ ข้อมูลทั้งหมดจะเก็บไว้ในโทรศัพท์เครื่องนี้เท่านั้น',
|
||||
'home.completed': 'ดูจบแล้ว',
|
||||
'home.thisYear_one': 'ปีนี้ {count} เรื่อง',
|
||||
'home.thisYear_other': 'ปีนี้ {count} เรื่อง',
|
||||
'home.toWatchN_one': 'อยากดู {count} เรื่อง',
|
||||
'home.toWatchN_other': 'อยากดู {count} เรื่อง',
|
||||
'home.screenTime': 'เวลาหน้าจอ',
|
||||
'home.estimate': 'โดยประมาณ',
|
||||
'home.episodesSeen': 'ตอนที่ดูแล้ว',
|
||||
'home.noIdea': 'เลือกไม่ถูก?',
|
||||
'home.rouletteHint_one': 'สุ่มจากเรื่องที่อยากดูของคุณ',
|
||||
'home.rouletteHint_other': 'สุ่มจาก {count} เรื่องที่อยากดูของคุณ',
|
||||
'home.rouletteHintAll': 'สุ่มจากคลังของคุณ',
|
||||
'home.recentlyFinished': 'เพิ่งดูจบ',
|
||||
|
||||
'calendar.title': 'ปฏิทินวันฉาย',
|
||||
'calendar.inMyList': 'อยู่ในลิสต์ของฉัน',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'ไม่มีเรื่อง ลองเลือก “ทุกประเภท” หรือค้นหาคำอื่น',
|
||||
|
||||
'reco.error': 'โหลดคำแนะนำไม่ได้ในขณะนี้',
|
||||
'reco.title': 'แนะนำสำหรับคุณ',
|
||||
'reco.needKey': 'เพิ่มคีย์ TMDB ในตั้งค่าเพื่อรับคำแนะนำตามเรื่องโปรดของคุณ',
|
||||
'reco.other': 'เรื่องอื่น',
|
||||
'reco.ifYouLiked': 'ถ้าคุณชอบ',
|
||||
'reco.loading': 'กำลังหาคำแนะนำ…',
|
||||
'reco.none': 'คุณมีทุกเรื่องที่คล้ายกับเรื่องนี้แล้ว ลองกด “เรื่องอื่น”',
|
||||
'reco.added': 'เพิ่ม {title} แล้ว',
|
||||
'reco.addLabel': 'เพิ่ม {title} ในอยากดู',
|
||||
'reco.addedShort': 'เพิ่มแล้ว',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'กำลังติดตาม',
|
||||
'feed.empty': 'ติดตามเพื่อน ๆ เพื่อดูว่าพวกเขากำลังดูอะไรและคิดอย่างไรกับเรื่องนั้นได้ที่นี่',
|
||||
'feed.rated': 'ให้คะแนน',
|
||||
'feed.finished': 'ดูแล้ว',
|
||||
'feed.started': 'เริ่มดู',
|
||||
'feed.rewatched': 'ดูซ้ำ',
|
||||
'feed.added': 'อยากดู',
|
||||
'feed.review': 'รีวิว',
|
||||
'auth.google': 'ดำเนินการต่อด้วย Google',
|
||||
'auth.or': 'หรือ',
|
||||
'auth.err.google': 'เข้าสู่ระบบด้วย Google ไม่สำเร็จ ลองใหม่อีกครั้ง',
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Tümünü gör',
|
||||
'home.latestReleases': 'Son çıkanlar',
|
||||
'home.subtitle': 'İzleme günlüğüm',
|
||||
'home.calendarSoon_one': 'Yayın takvimi: bu hafta {count}',
|
||||
'home.calendarSoon_other': 'Yayın takvimi: bu hafta {count}',
|
||||
'home.emptyTitle': 'Kütüphanen boş',
|
||||
'home.emptyCloud': 'İlk filmini, animeni ya da dramanı ekle. Hesabına kaydedilecek.',
|
||||
'home.emptyLocal': 'İlk filmini, animeni ya da dramanı ekle. Her şey yalnızca bu telefonda saklanır.',
|
||||
'home.completed': 'Bitenler',
|
||||
'home.thisYear_one': 'bu yıl {count}',
|
||||
'home.thisYear_other': 'bu yıl {count}',
|
||||
'home.toWatchN_one': '{count} izlenecek',
|
||||
'home.toWatchN_other': '{count} izlenecek',
|
||||
'home.screenTime': 'Ekran süresi',
|
||||
'home.estimate': 'tahmini',
|
||||
'home.episodesSeen': 'İzlenen bölümler',
|
||||
'home.noIdea': 'Karar veremedin mi?',
|
||||
'home.rouletteHint_one': 'İzlenecek yapımından rastgele seçim',
|
||||
'home.rouletteHint_other': 'İzlenecek {count} yapımın arasından rastgele seçim',
|
||||
'home.rouletteHintAll': 'Kütüphanenden rastgele seçim',
|
||||
'home.recentlyFinished': 'Son bitenler',
|
||||
|
||||
'calendar.title': 'Yayın takvimi',
|
||||
'calendar.inMyList': 'Listemde',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Yapım yok. “Tüm türler”i ya da başka bir aramayı dene.',
|
||||
|
||||
'reco.error': 'Öneriler şu an yüklenemiyor.',
|
||||
'reco.title': 'Öneriler',
|
||||
'reco.needKey': 'Favori yapımlarına göre öneri almak için TMDB anahtarını Ayarlar’a ekle.',
|
||||
'reco.other': 'Başka yapım',
|
||||
'reco.ifYouLiked': 'Beğendiysen',
|
||||
'reco.loading': 'Öneriler aranıyor…',
|
||||
'reco.none': 'Bu yapıma benzeyen her şey zaten sende. “Başka yapım”ı dene.',
|
||||
'reco.added': '{title} eklendi',
|
||||
'reco.addLabel': '{title} izleneceklere ekle',
|
||||
'reco.addedShort': 'Eklendi',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Takip ettiklerim',
|
||||
'feed.empty': 'Arkadaşlarının ne izlediğini ve ne düşündüğünü burada görmek için onları takip et.',
|
||||
'feed.rated': 'puan verdi:',
|
||||
'feed.finished': 'izledi',
|
||||
'feed.started': 'başladı',
|
||||
'feed.rewatched': 'tekrar izledi',
|
||||
'feed.added': 'izlemek istiyor',
|
||||
'feed.review': 'yorum',
|
||||
'auth.google': "Google ile devam et",
|
||||
'auth.or': "veya",
|
||||
'auth.err.google': "Google ile giriş başarısız oldu. Tekrar dene.",
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': 'Xem tất cả',
|
||||
'home.latestReleases': 'Mới phát hành',
|
||||
'home.subtitle': 'Nhật ký xem phim của tôi',
|
||||
'home.calendarSoon_one': 'Lịch phát hành: {count} trong tuần này',
|
||||
'home.calendarSoon_other': 'Lịch phát hành: {count} trong tuần này',
|
||||
'home.emptyTitle': 'Thư viện của bạn đang trống',
|
||||
'home.emptyCloud': 'Thêm phim, anime hay drama đầu tiên của bạn. Nó sẽ được lưu vào tài khoản của bạn.',
|
||||
'home.emptyLocal': 'Thêm phim, anime hay drama đầu tiên của bạn. Mọi thứ chỉ được lưu trên điện thoại này.',
|
||||
'home.completed': 'Đã xem xong',
|
||||
'home.thisYear_one': '{count} trong năm nay',
|
||||
'home.thisYear_other': '{count} trong năm nay',
|
||||
'home.toWatchN_one': '{count} sẽ xem',
|
||||
'home.toWatchN_other': '{count} sẽ xem',
|
||||
'home.screenTime': 'Thời gian xem',
|
||||
'home.estimate': 'ước tính',
|
||||
'home.episodesSeen': 'Số tập đã xem',
|
||||
'home.noIdea': 'Chưa biết xem gì?',
|
||||
'home.rouletteHint_one': 'Chọn ngẫu nhiên từ phim sẽ xem của bạn',
|
||||
'home.rouletteHint_other': 'Chọn ngẫu nhiên từ {count} phim sẽ xem của bạn',
|
||||
'home.rouletteHintAll': 'Chọn ngẫu nhiên từ thư viện của bạn',
|
||||
'home.recentlyFinished': 'Vừa xem xong',
|
||||
|
||||
'calendar.title': 'Lịch phát hành',
|
||||
'calendar.inMyList': 'Có trong danh sách',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': 'Không có phim nào. Thử “Tất cả loại” hoặc tìm kiếm khác.',
|
||||
|
||||
'reco.error': 'Hiện không thể tải gợi ý.',
|
||||
'reco.title': 'Gợi ý',
|
||||
'reco.needKey': 'Thêm khóa TMDB trong Cài đặt để nhận gợi ý dựa trên những phim bạn yêu thích.',
|
||||
'reco.other': 'Phim khác',
|
||||
'reco.ifYouLiked': 'Nếu bạn thích',
|
||||
'reco.loading': 'Đang tìm gợi ý…',
|
||||
'reco.none': 'Bạn đã có hết những phim tương tự phim này. Thử “Phim khác” nhé.',
|
||||
'reco.added': 'Đã thêm {title}',
|
||||
'reco.addLabel': 'Thêm {title} vào Sẽ xem',
|
||||
'reco.addedShort': 'Đã thêm',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': 'Đang theo dõi',
|
||||
'feed.empty': 'Theo dõi bạn bè để xem ở đây họ đang xem gì và nghĩ gì về phim đó.',
|
||||
'feed.rated': 'đã chấm điểm',
|
||||
'feed.finished': 'đã xem',
|
||||
'feed.started': 'đã bắt đầu xem',
|
||||
'feed.rewatched': 'đã xem lại',
|
||||
'feed.added': 'muốn xem',
|
||||
'feed.review': 'nhận xét',
|
||||
'auth.google': 'Tiếp tục với Google',
|
||||
'auth.or': 'hoặc',
|
||||
'auth.err.google': 'Đăng nhập bằng Google thất bại. Hãy thử lại.',
|
||||
|
||||
+2
-21
@@ -402,25 +402,14 @@ const dict: Translations = {
|
||||
|
||||
|
||||
'home.seeAll': '查看全部',
|
||||
'home.latestReleases': '最新上线',
|
||||
'home.subtitle': '我的观影日记',
|
||||
'home.calendarSoon_one': '上映日历:本周{count}部',
|
||||
'home.calendarSoon_other': '上映日历:本周{count}部',
|
||||
'home.emptyTitle': '你的片库是空的',
|
||||
'home.emptyCloud': '添加你的第一部电影、动画或电视剧吧,它会保存在你的账号中。',
|
||||
'home.emptyLocal': '添加你的第一部电影、动画或电视剧吧,所有内容只保存在这台手机上。',
|
||||
'home.completed': '已看完',
|
||||
'home.thisYear_one': '今年{count}部',
|
||||
'home.thisYear_other': '今年{count}部',
|
||||
'home.toWatchN_one': '{count}部想看',
|
||||
'home.toWatchN_other': '{count}部想看',
|
||||
'home.screenTime': '观看时长',
|
||||
'home.estimate': '估算',
|
||||
'home.episodesSeen': '已看集数',
|
||||
'home.noIdea': '不知道看什么?',
|
||||
'home.rouletteHint_one': '从你想看的作品中随机抽一部',
|
||||
'home.rouletteHint_other': '从你想看的{count}部作品中随机抽一部',
|
||||
'home.rouletteHintAll': '从你的片库中随机抽一部',
|
||||
'home.recentlyFinished': '最近看完',
|
||||
|
||||
'calendar.title': '上映日历',
|
||||
'calendar.inMyList': '在我的片库中',
|
||||
@@ -489,12 +478,6 @@ const dict: Translations = {
|
||||
'top.noCandidates': '没有作品。试试「所有类型」或换个搜索词。',
|
||||
|
||||
'reco.error': '暂时无法加载推荐。',
|
||||
'reco.title': '推荐',
|
||||
'reco.needKey': '在「设置」中添加你的 TMDB 密钥,就能根据你最爱的作品获得推荐。',
|
||||
'reco.other': '换一部',
|
||||
'reco.ifYouLiked': '如果你喜欢',
|
||||
'reco.loading': '正在查找推荐…',
|
||||
'reco.none': '和这部作品相似的你都已经有了。试试「换一部」。',
|
||||
'reco.added': '已添加《{title}》',
|
||||
'reco.addLabel': '将《{title}》加入想看',
|
||||
'reco.addedShort': '已添加',
|
||||
@@ -702,11 +685,9 @@ const dict: Translations = {
|
||||
|
||||
'feed.title': '我的关注',
|
||||
'feed.empty': '关注好友后,就能在这里看到他们在看什么、有什么感想。',
|
||||
'feed.rated': '评分了',
|
||||
'feed.finished': '看完了',
|
||||
'feed.started': '开始看',
|
||||
'feed.rewatched': '重温了',
|
||||
'feed.added': '想看',
|
||||
'feed.review': '短评',
|
||||
'auth.google': "使用 Google 继续",
|
||||
'auth.or': "或",
|
||||
'auth.err.google': "Google 登录失败,请重试。",
|
||||
|
||||
@@ -733,6 +733,8 @@ export interface GlobalRelease {
|
||||
cat: ReleaseCategory
|
||||
/** Popularité normalisée 0–100, pour trier les sorties d'un même jour */
|
||||
pop: number
|
||||
/** Vraie nouveauté : film qui sort, nouvelle série ou nouvelle saison (épisode 1) */
|
||||
premiere?: boolean
|
||||
}
|
||||
|
||||
function safeRelease(r: GlobalRelease): GlobalRelease | null {
|
||||
@@ -749,6 +751,7 @@ function safeRelease(r: GlobalRelease): GlobalRelease | null {
|
||||
label: cleanText(r.label, 40) ?? '',
|
||||
cat: r.cat,
|
||||
pop: Math.max(0, Math.min(100, Math.round(r.pop || 0))),
|
||||
premiere: r.premiere === true || undefined,
|
||||
}
|
||||
}
|
||||
export { safeRelease }
|
||||
@@ -805,6 +808,7 @@ function movieRelease(r: TmdbItem, date: string): GlobalRelease {
|
||||
label: t('release.cinema'),
|
||||
cat: 'film',
|
||||
pop: popScore(r.popularity),
|
||||
premiere: true,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -895,6 +899,7 @@ function episodeRelease(show: TmdbItem, cat: ReleaseCategory, date: string, seas
|
||||
label: episodeLabel(season, eps),
|
||||
cat,
|
||||
pop: popScore(show.popularity),
|
||||
premiere: eps.includes(1),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -973,6 +978,7 @@ export async function aniListAiring(from: string, to: string, minPopularity = 40
|
||||
label,
|
||||
cat: 'anime',
|
||||
pop: popScore(m.popularity) - 20,
|
||||
premiere: m.format === 'MOVIE' || sorted[0] === 1,
|
||||
})
|
||||
}
|
||||
return out.map(safeRelease).filter((x): x is GlobalRelease => !!x)
|
||||
|
||||
@@ -40,7 +40,7 @@ export interface Profile extends ProfileCard {
|
||||
|
||||
export interface FeedEntry {
|
||||
id: number
|
||||
kind: 'finished' | 'started' | 'rewatched' | 'added'
|
||||
kind: 'finished' | 'rewatched' | 'rated'
|
||||
createdAt: string
|
||||
user: { username: string; displayName: string; avatarUrl?: string }
|
||||
item: MediaItem
|
||||
@@ -172,7 +172,7 @@ export async function getFeed(before?: string): Promise<{ entries: FeedEntry[];
|
||||
const name = username(r.user.username)
|
||||
const createdAt = safeIso(r.created_at)
|
||||
const kind = r.kind
|
||||
if (!item || !name || !createdAt || (kind !== 'finished' && kind !== 'started' && kind !== 'rewatched' && kind !== 'added')) continue
|
||||
if (!item || !name || !createdAt || (kind !== 'finished' && kind !== 'rewatched' && kind !== 'rated')) continue
|
||||
out.push({
|
||||
id: typeof r.id === 'number' ? r.id : out.length,
|
||||
kind,
|
||||
|
||||
@@ -17,7 +17,13 @@ export const RELEASE_CATEGORIES: { value: ReleaseCategory; readonly label: strin
|
||||
]
|
||||
const CAT_SET = new Set<string>(RELEASE_CATEGORIES.map((c) => c.value))
|
||||
|
||||
const KEY = 'azuucine:global-releases'
|
||||
// v2 : les sorties savent si ce sont des nouveautés (« premiere ») ; l'ancien cache est abandonné
|
||||
const KEY = 'azuucine:global-releases-v2'
|
||||
try {
|
||||
localStorage.removeItem('azuucine:global-releases')
|
||||
} catch {
|
||||
/* stockage indisponible */
|
||||
}
|
||||
const FRESH_MS = 12 * 3600 * 1000
|
||||
const PAST_FRESH_MS = 7 * 24 * 3600 * 1000
|
||||
/** Mois consultables : le précédent et les 6 suivants. */
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
import { findTmdbSeries, getAniListById, getTmdbDetails, releaseToResult, type GlobalRelease } from './catalogApi'
|
||||
import { remotePosterToLocal } from './image'
|
||||
import type { MediaInput } from '../types'
|
||||
|
||||
/**
|
||||
* Fiche « À voir » prête à ajouter pour une sortie (calendrier, « Dernières sorties » de l'accueil).
|
||||
* Anime : on préfère la fiche TMDB, qui regroupe toutes les saisons (sinon chaque saison AniList ferait une fiche).
|
||||
*/
|
||||
export async function releaseToInput(r: GlobalRelease, tmdbKey?: string): Promise<MediaInput> {
|
||||
const hasKey = !!tmdbKey?.trim()
|
||||
let data: Partial<MediaInput> = {}
|
||||
let poster: string | undefined
|
||||
const series = r.externalId.startsWith('anilist:') && hasKey ? await findTmdbSeries([r.title, r.originalTitle], tmdbKey!).catch(() => undefined) : undefined
|
||||
if (series) {
|
||||
data = await getTmdbDetails(series, tmdbKey!)
|
||||
poster = series.posterUrl ? await remotePosterToLocal(series.posterUrl) : undefined
|
||||
} else if (r.externalId.startsWith('anilist:')) {
|
||||
const res = await getAniListById(r.externalId)
|
||||
data = { ...res?.prefill }
|
||||
poster = res?.posterUrl ?? r.poster
|
||||
} else {
|
||||
const res = releaseToResult(r)
|
||||
if (res && hasKey) data = await getTmdbDetails(res, tmdbKey!)
|
||||
poster = r.poster ? await remotePosterToLocal(r.poster) : undefined
|
||||
}
|
||||
return {
|
||||
title: r.title,
|
||||
type: r.cat,
|
||||
status: 'a_voir',
|
||||
criteria: {},
|
||||
episodesWatched: 0,
|
||||
genres: [],
|
||||
year: r.year,
|
||||
externalId: r.externalId,
|
||||
...data,
|
||||
poster,
|
||||
}
|
||||
}
|
||||
+31
-51
@@ -6,17 +6,16 @@ import { TYPE_BY_VALUE } from '../lib/constants'
|
||||
import Avatar from '../components/social/Avatar'
|
||||
import FriendsFeed from '../components/social/FriendsFeed'
|
||||
import Poster from '../components/Poster'
|
||||
import TopFive from '../components/TopFive'
|
||||
import Recommendations from '../components/Recommendations'
|
||||
import HomeHero, { ContinueCard } from '../components/HomeHero'
|
||||
import { progressView } from '../lib/rewatch'
|
||||
import type { Tab } from '../components/BottomNav'
|
||||
import { EmptyState, LinkArrow, PageHeader, SectionTitle, StatTile } from '../components/ui'
|
||||
import { EmptyState, LinkArrow, PageHeader, SectionTitle } from '../components/ui'
|
||||
import LatestReleases from '../components/LatestReleases'
|
||||
import type { SearchResult } from '../lib/catalogApi'
|
||||
import { CACHE_EVENT, isCaughtUp, loadAiring, needsCheck, refreshAiring, saveAiring, trackable } from '../lib/airing'
|
||||
import { useOnResume } from '../lib/onResume'
|
||||
import { calendarEvents } from '../lib/releases'
|
||||
import { computeStats } from '../lib/stats'
|
||||
import { cx, formatDuration, todayISO } from '../lib/utils'
|
||||
import { cx, todayISO } from '../lib/utils'
|
||||
import { useMedia } from '../store'
|
||||
import type { MediaItem } from '../types'
|
||||
|
||||
@@ -25,10 +24,20 @@ interface Props {
|
||||
onAdd: () => void
|
||||
onNavigate: (tab: Tab) => void
|
||||
onRoulette: () => void
|
||||
/** Fiche d'un titre pas encore dans ma bibliothèque (« Dernières sorties ») */
|
||||
onOpenSeed: (seed: SearchResult) => void
|
||||
onCalendar: () => void
|
||||
}
|
||||
|
||||
/** Rangée d'affiches. `shelf` : jaquettes de vidéoclub, avec le titre écrit sur la tranche. */
|
||||
// Rang aléatoire par titre, tiré une fois par lancement de l'app
|
||||
const shuffle = new Map<string, number>()
|
||||
function shuffleRank(id: string): number {
|
||||
let r = shuffle.get(id)
|
||||
if (r === undefined) shuffle.set(id, (r = Math.random()))
|
||||
return r
|
||||
}
|
||||
|
||||
function PosterStrip({ items, onOpen, shelf }: { items: MediaItem[]; onOpen: (item: MediaItem) => void; shelf?: boolean }) {
|
||||
return (
|
||||
<div className="no-scrollbar -mx-4 flex gap-3 overflow-x-auto px-4 pb-1">
|
||||
@@ -55,10 +64,9 @@ function PosterStrip({ items, onOpen, shelf }: { items: MediaItem[]; onOpen: (it
|
||||
)
|
||||
}
|
||||
|
||||
export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCalendar }: Props) {
|
||||
export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCalendar, onOpenSeed }: Props) {
|
||||
const { items, loading, account, settings, patchMany } = useMedia()
|
||||
const social = useSocial()
|
||||
const stats = useMemo(() => computeStats(items), [items])
|
||||
// Sorties dans les 7 prochains jours (pastille sur l'icône calendrier)
|
||||
// Vérification discrète des nouveaux épisodes (au plus toutes les 12 h) : pastille du calendrier et nombre d'épisodes à jour
|
||||
// Revérifié aussi au retour dans l'app : un épisode sorti entre-temps fait réapparaître la série dans « Continuer »
|
||||
@@ -148,16 +156,17 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
||||
const byRecent = useMemo(() => [...inProgress].sort((a, b) => b.updatedAt.localeCompare(a.updatedAt)), [inProgress])
|
||||
const firstToWatch = items.find((i) => i.status === 'a_voir')
|
||||
const featured = (byRecent.length ? byRecent.slice(0, 8) : firstToWatch ? [firstToWatch] : [])
|
||||
const toWatch = useMemo(() => items.filter((i) => i.status === 'a_voir').slice(0, 12), [items])
|
||||
const recent = useMemo(
|
||||
// « À voir » tiré au hasard (ordre fixé pour la session : la rangée ne bouge pas à chaque modification)
|
||||
const toWatch = useMemo(
|
||||
() =>
|
||||
items
|
||||
.filter((i) => i.status === 'termine')
|
||||
.sort((a, b) => (b.endDate ?? b.updatedAt).localeCompare(a.endDate ?? a.updatedAt))
|
||||
.slice(0, 12),
|
||||
.filter((i) => i.status === 'a_voir')
|
||||
.map((i) => ({ i, r: shuffleRank(i.id) }))
|
||||
.sort((a, b) => a.r - b.r)
|
||||
.slice(0, 12)
|
||||
.map((x) => x.i),
|
||||
[items],
|
||||
)
|
||||
|
||||
const seeAll = <LinkArrow onClick={() => onNavigate('catalog')}>{t('home.seeAll')}</LinkArrow>
|
||||
|
||||
return (
|
||||
@@ -181,6 +190,13 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
||||
)}
|
||||
</button>
|
||||
)}
|
||||
<button
|
||||
onClick={onRoulette}
|
||||
className="grid size-11 shrink-0 place-items-center rounded-full border border-line text-ink-2 transition-colors active:bg-surface-2"
|
||||
aria-label={t('roulette.name')}
|
||||
>
|
||||
<Dices size={20} />
|
||||
</button>
|
||||
<button
|
||||
onClick={onCalendar}
|
||||
className="relative grid size-11 shrink-0 place-items-center rounded-full border border-line text-ink-2 transition-colors active:bg-surface-2"
|
||||
@@ -220,25 +236,6 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
||||
<>
|
||||
{featured.length > 0 && <HomeHero items={featured} onOpen={onOpen} />}
|
||||
|
||||
<FriendsFeed />
|
||||
|
||||
{/* Roulette : pour les soirs sans idée */}
|
||||
<button onClick={onRoulette} className="card mt-8 flex w-full items-center gap-4 p-4 text-start transition-colors active:bg-surface-2">
|
||||
<span className="grid size-12 shrink-0 place-items-center rounded-md border border-line-strong text-accent">
|
||||
<Dices size={24} />
|
||||
</span>
|
||||
<span className="min-w-0 flex-1">
|
||||
<span className="block font-semibold">
|
||||
{t('home.noIdea')} {t('roulette.name')}
|
||||
</span>
|
||||
<span className="mt-0.5 block text-xs text-ink-3">
|
||||
{stats.toWatch ? t('home.rouletteHint', { count: stats.toWatch }) : t('home.rouletteHintAll')}
|
||||
</span>
|
||||
</span>
|
||||
<span className="inline-block text-ink-3 rtl:-scale-x-100">→</span>
|
||||
</button>
|
||||
|
||||
|
||||
{inProgress.length > 0 && (
|
||||
<>
|
||||
<SectionTitle>{t('homeHero.continueRow')}</SectionTitle>
|
||||
@@ -252,7 +249,6 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
||||
</>
|
||||
)}
|
||||
|
||||
|
||||
{toWatch.length > 0 && (
|
||||
<>
|
||||
<SectionTitle action={seeAll}>{t('status.a_voir')}</SectionTitle>
|
||||
@@ -260,25 +256,9 @@ export default function HomePage({ onOpen, onAdd, onNavigate, onRoulette, onCale
|
||||
</>
|
||||
)}
|
||||
|
||||
<TopFive onOpen={onOpen} />
|
||||
|
||||
<Recommendations />
|
||||
|
||||
{recent.length > 0 && (
|
||||
<>
|
||||
<SectionTitle action={seeAll}>{t('home.recentlyFinished')}</SectionTitle>
|
||||
<PosterStrip items={recent} onOpen={onOpen} />
|
||||
</>
|
||||
)}
|
||||
|
||||
<SectionTitle>{t('nav.stats')}</SectionTitle>
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<StatTile label={t('home.completed')} value={stats.completed} hint={t('home.thisYear', { count: stats.completedThisYear })} />
|
||||
<StatTile label={t('status.en_cours')} value={stats.inProgress} hint={t('home.toWatchN', { count: stats.toWatch })} />
|
||||
<StatTile label={t('home.screenTime')} value={formatDuration(stats.totalMinutes)} hint={t('home.estimate')} />
|
||||
<StatTile label={t('home.episodesSeen')} value={stats.episodesWatched} />
|
||||
</div>
|
||||
<LatestReleases onOpenSeed={onOpenSeed} />
|
||||
|
||||
<FriendsFeed />
|
||||
</>
|
||||
)}
|
||||
</>
|
||||
|
||||
@@ -0,0 +1,74 @@
|
||||
-- Bobinoo — « Mes abonnements » : ce que mes abonnements ont noté (28 nov. 2026). Idempotent.
|
||||
-- Avant : tout (commencé, veut voir, vu…). Maintenant : les titres notés, une ligne par titre (la plus récente),
|
||||
-- avec l'avis s'il y en a un. Une note donnée ou changée plus tard remonte aussi (« rated »).
|
||||
|
||||
alter table public.activity drop constraint if exists activity_kind_check;
|
||||
delete from public.activity where kind in ('started', 'added');
|
||||
alter table public.activity add constraint activity_kind_check check (kind in ('finished', 'rewatched', 'rated'));
|
||||
|
||||
create or replace function public.azuu_item_activity()
|
||||
returns trigger language plpgsql security definer set search_path = '' as $$
|
||||
declare
|
||||
st text;
|
||||
old_st text;
|
||||
old_rating text;
|
||||
recent date := current_date - 7;
|
||||
rw_new int := 0;
|
||||
rw_old int := 0;
|
||||
begin
|
||||
if new.deleted or new.data is null then
|
||||
return new;
|
||||
end if;
|
||||
st := new.data->>'status';
|
||||
if jsonb_typeof(new.data->'rewatchDates') = 'array' then
|
||||
rw_new := jsonb_array_length(new.data->'rewatchDates');
|
||||
end if;
|
||||
if tg_op = 'UPDATE' and not old.deleted and old.data is not null then
|
||||
old_st := old.data->>'status';
|
||||
old_rating := old.data->>'rating';
|
||||
if jsonb_typeof(old.data->'rewatchDates') = 'array' then
|
||||
rw_old := jsonb_array_length(old.data->'rewatchDates');
|
||||
end if;
|
||||
end if;
|
||||
|
||||
if st = 'termine' and old_st is distinct from 'termine'
|
||||
and coalesce(public.azuu_day(new.data->>'endDate'), case when tg_op = 'UPDATE' then current_date end) >= recent then
|
||||
perform public.azuu_log(new.user_id, new.id, 'finished');
|
||||
elsif tg_op = 'UPDATE' and new.data ? 'rating' and (new.data->>'rating') is distinct from old_rating then
|
||||
-- Note donnée (ou changée) sur un titre déjà là : la ligne remonte en haut du fil
|
||||
perform public.azuu_log(new.user_id, new.id, 'rated');
|
||||
end if;
|
||||
if tg_op = 'UPDATE' and rw_new > rw_old then
|
||||
perform public.azuu_log(new.user_id, new.id, 'rewatched');
|
||||
end if;
|
||||
return new;
|
||||
end;
|
||||
$$;
|
||||
|
||||
-- Fil : titres notés de mes abonnements, une ligne par titre (l'évènement le plus récent)
|
||||
create or replace function public.get_feed(p_before timestamptz default null, p_limit integer default 30)
|
||||
returns jsonb language sql stable security definer set search_path = '' as $$
|
||||
select coalesce(jsonb_agg(entry order by created_at desc), '[]'::jsonb)
|
||||
from (
|
||||
select l.created_at,
|
||||
jsonb_build_object(
|
||||
'id', l.id, 'kind', l.kind, 'created_at', l.created_at,
|
||||
'user', jsonb_build_object('username', p.username, 'display_name', p.display_name, 'avatar_url', p.avatar_url),
|
||||
'item', public.public_item(i.data)
|
||||
) as entry
|
||||
from (
|
||||
select distinct on (a.user_id, a.item_id) a.id, a.user_id, a.item_id, a.kind, a.created_at
|
||||
from public.activity a
|
||||
join public.follows f on f.following_id = a.user_id and f.follower_id = auth.uid() and f.status = 'accepted'
|
||||
order by a.user_id, a.item_id, a.created_at desc
|
||||
) l
|
||||
join public.profiles p on p.id = l.user_id and not p.suspended
|
||||
join public.items i on i.user_id = l.user_id and i.id = l.item_id and not i.deleted
|
||||
where (p_before is null or l.created_at < p_before)
|
||||
and (i.data->>'rating') ~ '^\d+(\.\d+)?$' and (i.data->>'rating')::numeric > 0
|
||||
order by l.created_at desc
|
||||
limit least(greatest(p_limit, 1), 50)
|
||||
) s
|
||||
$$;
|
||||
revoke execute on function public.get_feed(timestamptz, integer) from public, anon;
|
||||
grant execute on function public.get_feed(timestamptz, integer) to authenticated;
|
||||
Reference in new issue
Block a user