Nettoyage : variables inutilisées, textes inutilisés, fichiers parasites

- TypeScript refuse désormais les variables et paramètres inutilisés (noUnusedLocals/Parameters)
- 9 lectures de réglages devenues inutiles (échelle de notes) retirées
- 2 textes plus utilisés retirés des 18 langues
- Dossier « Claude outputs » (copie d'une ancienne migration) et tsconfig.tsbuildinfo retirés du dépôt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YVo1qxKoBQCaMd7Ue8PGbe
This commit is contained in:
Claude committed 2026-11-27 16:57:30 +00:00
1 parent f7160e3401
commit e366f38727
31 files changed
+9 -246

No files matched your search

+1
View File
@@ -10,3 +10,4 @@ supabase/.temp
supabase/.branches
_to_delete
.env.deploy
tsconfig.tsbuildinfo
@@ -1,198 +0,0 @@
-- ════════════════════════════════════════════════════════════════════════════
-- AzuuCine — Avis par titre, réactions et notifications (5 octobre 2026)
-- 1. Voir tous les avis sur un titre (amis / autres).
-- 2. Réagir aux avis (emoji).
-- 3. Notifications (cloche) : abonnements, demandes acceptées, réactions reçues.
--
-- À coller dans Supabase → SQL Editor → Run. Idempotent (réexécutable sans risque).
-- ════════════════════════════════════════════════════════════════════════════
-- ── Tables ──
create table if not exists public.review_reactions (
author_id uuid not null references auth.users(id) on delete cascade, -- auteur de l'avis
item_id text not null,
user_id uuid not null default auth.uid() references auth.users(id) on delete cascade, -- qui réagit
emoji text not null,
created_at timestamptz not null default now(),
primary key (author_id, item_id, user_id)
);
create index if not exists review_reactions_target_idx on public.review_reactions (author_id, item_id);
alter table public.review_reactions enable row level security;
alter table public.review_reactions force row level security;
revoke all on public.review_reactions from anon, authenticated;
create table if not exists public.notifications (
id bigint generated always as identity primary key,
user_id uuid not null references auth.users(id) on delete cascade, -- destinataire
kind text not null check (kind in ('follow_request','follow_accepted','new_follower','reaction')),
actor_id uuid references auth.users(id) on delete cascade,
item_id text,
emoji text,
created_at timestamptz not null default now(),
read_at timestamptz
);
create index if not exists notifications_user_idx on public.notifications (user_id, created_at desc);
alter table public.notifications enable row level security;
alter table public.notifications force row level security;
revoke all on public.notifications from anon, authenticated;
-- ── Création de notifications + bornage de l'historique ──
create or replace function public.azuu_notify(p_user uuid, p_kind text, p_actor uuid, p_item text default null, p_emoji text default null)
returns void language plpgsql security definer set search_path = '' as $$
begin
if p_user is null or p_actor is null or p_user = p_actor then return; end if;
insert into public.notifications (user_id, kind, actor_id, item_id, emoji)
values (p_user, p_kind, p_actor, p_item, p_emoji);
delete from public.notifications
where user_id = p_user and id not in (
select id from public.notifications where user_id = p_user order by created_at desc limit 300
);
end;
$$;
-- Abonnement / demande -> notifie le compte suivi ; demande acceptée -> notifie le demandeur
create or replace function public.azuu_follow_notify()
returns trigger language plpgsql security definer set search_path = '' as $$
begin
if tg_op = 'INSERT' then
perform public.azuu_notify(new.following_id,
case when new.status = 'pending' then 'follow_request' else 'new_follower' end, new.follower_id);
elsif tg_op = 'UPDATE' and old.status = 'pending' and new.status = 'accepted' then
perform public.azuu_notify(new.follower_id, 'follow_accepted', new.following_id);
end if;
return null;
end;
$$;
drop trigger if exists follows_notify on public.follows;
create trigger follows_notify after insert or update on public.follows
for each row execute function public.azuu_follow_notify();
-- Réaction reçue -> notifie l'auteur de l'avis
create or replace function public.azuu_reaction_notify()
returns trigger language plpgsql security definer set search_path = '' as $$
begin
perform public.azuu_notify(new.author_id, 'reaction', new.user_id, new.item_id, new.emoji);
return null;
end;
$$;
drop trigger if exists reactions_notify on public.review_reactions;
create trigger reactions_notify after insert on public.review_reactions
for each row execute function public.azuu_reaction_notify();
-- ── Réagir à un avis ──
create or replace function public.react_to_review(p_author uuid, p_item text, p_emoji text)
returns jsonb language plpgsql security definer set search_path = '' as $$
begin
if auth.uid() is null then raise exception 'auth'; end if;
if p_author = auth.uid() then raise exception 'cannot react to your own review'; end if;
if p_emoji is null or p_emoji <> all (array['👍','❤️','🔥','😂','😮','😢']) then raise exception 'bad emoji'; end if;
if not public.can_view(p_author) or not exists (
select 1 from public.items i join public.profiles pr on pr.id = i.user_id
where i.user_id = p_author and i.id = p_item and not i.deleted
and coalesce(i.data->>'notes','') <> '' and not pr.suspended
) then
raise exception 'review not found';
end if;
insert into public.review_reactions (author_id, item_id, user_id, emoji)
values (p_author, p_item, auth.uid(), p_emoji)
on conflict (author_id, item_id, user_id) do update set emoji = excluded.emoji, created_at = now();
return jsonb_build_object('ok', true);
end;
$$;
create or replace function public.unreact_review(p_author uuid, p_item text)
returns jsonb language plpgsql security definer set search_path = '' as $$
begin
if auth.uid() is null then raise exception 'auth'; end if;
delete from public.review_reactions where author_id = p_author and item_id = p_item and user_id = auth.uid();
return jsonb_build_object('ok', true);
end;
$$;
-- ── Tous les avis sur un titre (amis / autres) ──
create or replace function public.title_reviews(p_external_id text, p_offset integer default 0)
returns jsonb language plpgsql stable security definer set search_path = '' as $$
declare me uuid := auth.uid(); res jsonb;
begin
if me is null or p_external_id !~ '^(tmdb:(movie|tv):[0-9]{1,10}|anilist:[0-9]{1,10})$' then
return jsonb_build_object('friends', '[]'::jsonb, 'others', '[]'::jsonb);
end if;
with revs as (
select i.user_id, i.id as item_id, i.updated_at,
nullif(i.data->>'rating','')::numeric as rating,
i.data->>'notes' as notes, pr,
exists(select 1 from public.follows f where f.follower_id = me and f.following_id = i.user_id and f.status = 'accepted') as friend
from public.items i
join public.profiles pr on pr.id = i.user_id
where i.data->>'externalId' = p_external_id
and not i.deleted and coalesce(i.data->>'notes','') <> ''
and i.user_id <> me and not pr.suspended
and (not pr.is_private
or exists(select 1 from public.follows f where f.follower_id = me and f.following_id = i.user_id and f.status = 'accepted'))
),
enriched as (
select r.*,
(select coalesce(jsonb_object_agg(e.emoji, e.c), '{}'::jsonb)
from (select emoji, count(*) c from public.review_reactions rr
where rr.author_id = r.user_id and rr.item_id = r.item_id group by emoji) e) as reactions,
(select count(*) from public.review_reactions rr where rr.author_id = r.user_id and rr.item_id = r.item_id) as total,
(select emoji from public.review_reactions rr where rr.author_id = r.user_id and rr.item_id = r.item_id and rr.user_id = me) as mine
from revs r
)
select jsonb_build_object(
'friends', coalesce((select jsonb_agg(entry order by total desc, updated_at desc) from (
select jsonb_build_object('user', public.profile_card(pr), 'user_id', user_id, 'item_id', item_id,
'updated_at', updated_at, 'rating', rating, 'notes', notes,
'reactions', reactions, 'total', total, 'mine', mine) entry, total, updated_at
from enriched where friend offset greatest(p_offset, 0) limit 40) f), '[]'::jsonb),
'others', coalesce((select jsonb_agg(entry order by total desc, updated_at desc) from (
select jsonb_build_object('user', public.profile_card(pr), 'user_id', user_id, 'item_id', item_id,
'updated_at', updated_at, 'rating', rating, 'notes', notes,
'reactions', reactions, 'total', total, 'mine', mine) entry, total, updated_at
from enriched where not friend offset greatest(p_offset, 0) limit 40) o), '[]'::jsonb)
) into res;
return res;
end;
$$;
-- ── Notifications ──
create or replace function public.get_notifications(p_offset integer default 0)
returns jsonb language sql stable security definer set search_path = '' as $$
select coalesce(jsonb_agg(x order by created_at desc), '[]'::jsonb)
from (
select n.id, n.kind, n.created_at, n.read_at, n.emoji, n.item_id,
case when p.id is null then null else
jsonb_build_object('username', p.username, 'display_name', p.display_name, 'avatar_url', p.avatar_url) end as actor,
case when n.kind = 'reaction'
then (select it.data->>'title' from public.items it where it.user_id = n.user_id and it.id = n.item_id) end as title
from public.notifications n
left join public.profiles p on p.id = n.actor_id
where n.user_id = auth.uid()
order by n.created_at desc
offset greatest(p_offset, 0) limit 30
) x
$$;
create or replace function public.notifications_unread()
returns integer language sql stable security definer set search_path = '' as $$
select count(*)::int from public.notifications where user_id = auth.uid() and read_at is null
$$;
create or replace function public.mark_notifications_read()
returns void language sql security definer set search_path = '' as $$
update public.notifications set read_at = now() where user_id = auth.uid() and read_at is null
$$;
-- ── Droits (gate interne : auth.uid() / can_view) ──
revoke all on function public.react_to_review(uuid, text, text) from public, anon;
revoke all on function public.unreact_review(uuid, text) from public, anon;
revoke all on function public.title_reviews(text, integer) from public, anon;
revoke all on function public.get_notifications(integer) from public, anon;
revoke all on function public.notifications_unread() from public, anon;
revoke all on function public.mark_notifications_read() from public, anon;
grant execute on function public.react_to_review(uuid, text, text) to authenticated;
grant execute on function public.unreact_review(uuid, text) to authenticated;
grant execute on function public.title_reviews(text, integer) to authenticated;
grant execute on function public.get_notifications(integer) to authenticated;
grant execute on function public.notifications_unread() to authenticated;
grant execute on function public.mark_notifications_read() to authenticated;
+1 -1
View File
@@ -34,7 +34,7 @@ function buildEntries(items: MediaItem[]): Entry[] {
/** Onglet « Journal » du catalogue : chronologie groupée par mois. */
export default function JournalView({ onOpen }: { onOpen: (item: MediaItem) => void }) {
const { items, settings } = useMedia()
const { items } = useMedia()
const entries = useMemo(() => buildEntries(items), [items])
const years = useMemo(() => [...new Set(entries.map((e) => e.date.slice(0, 4)))], [entries])
const [year, setYear] = useState('')
+1 -1
View File
@@ -41,7 +41,7 @@ function Progress({ item }: { item: MediaItem }) {
* (elle se redessine quand même si la bibliothèque ou les réglages changent, via useMedia).
*/
export const MediaCard = memo(function MediaCard({ item, onOpen }: { item: MediaItem; onOpen: (item: MediaItem) => void }) {
const { settings, incrementEpisode } = useMedia()
const { incrementEpisode } = useMedia()
// Revisionnage en cours : la progression montrée est celle du revisionnage
const view = progressView(item)
const canIncrement =
+1 -1
View File
@@ -46,7 +46,7 @@ const shuffle = <T,>(arr: T[]) => {
}
export default function Roulette({ onClose, onOpen }: Props) {
const { items, settings, update, lists } = useMedia()
const { items, update, lists } = useMedia()
const [filters, setFilters] = useState<RouletteFilters>(loadFilters)
const pool = useMemo(() => buildPool(items, filters), [items, filters])
const base = useMemo(() => sourcePool(items, filters.sources, filters.listIds), [items, filters.sources, filters.listIds])
-2
View File
@@ -5,7 +5,6 @@ import { FEED_PAGE, getFeed, type FeedEntry } from '../../lib/cloud/social'
import { useOnResume } from '../../lib/onResume'
import { timeAgo } from '../../lib/timeAgo'
import { formatRating } from '../../lib/utils'
import { useMedia } from '../../store'
import Poster from '../Poster'
import { LinkArrow, SectionTitle } from '../ui'
import Avatar from './Avatar'
@@ -30,7 +29,6 @@ const VERB = { finished: 'feed.finished', started: 'feed.started', rewatched: 'f
/** Accueil : ce que regardent mes abonnements. */
export default function FriendsFeed() {
const social = useSocial()
const { settings } = useMedia()
const [entries, setEntries] = useState<FeedEntry[]>()
const [more, setMore] = useState(false)
const [loadingMore, setLoadingMore] = useState(false)
+1 -1
View File
@@ -27,7 +27,7 @@ export interface PeekOwner {
/** Aperçu d'un titre de quelqu'un d'autre : sa note, son avis public, et ajout à ma liste « À voir ». */
export default function ItemPeek({ item, owner, onClose }: { item: MediaItem; owner?: PeekOwner; onClose: () => void }) {
const { items, add, settings } = useMedia()
const { items, add } = useMedia()
const social = useSocial()
const [busy, setBusy] = useState(false)
const [added, setAdded] = useState(false)
-1
View File
@@ -16,7 +16,6 @@ import Sheet from './Sheet'
import { useSocial } from './SocialProvider'
function PosterTile({ item, onOpen, caption }: { item: MediaItem; onOpen: () => void; caption?: string }) {
const { settings } = useMedia()
return (
<button onClick={onOpen} className="block w-full text-start">
<Poster src={item.poster} title={item.title} />
-2
View File
@@ -5,7 +5,6 @@ import { getSession } from '../../lib/cloud/auth'
import { useBlocked } from '../../lib/cloud/moderation'
import { titleReviews, type TitleReview, type TitleReviews as TitleReviewsData } from '../../lib/cloud/reviews'
import { formatRating } from '../../lib/utils'
import { useMedia } from '../../store'
import ReportButton from '../moderation/ReportButton'
import Avatar from './Avatar'
import Reactions from './Reactions'
@@ -71,7 +70,6 @@ function ReviewColumn({ heading, empty, list, onOpenProfile }: { heading: string
}
function ReviewCard({ r, onOpenProfile }: { r: TitleReview; onOpenProfile: (username: string) => void }) {
const { settings } = useMedia()
// Mon propre avis : ni signalement ni réaction (seuls les commentaires restent)
const mine = r.user_id === getSession()?.user.id
return (
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'الحلقة {ep} · الأخيرة',
'release.filmJapan': 'فيلم في اليابان',
'card.ep': 'ح {n}',
'card.plusOne': '+1 حلقة لـ {title}',
'card.open': 'فتح {title}',
@@ -1172,7 +1171,6 @@ const dict: Translations = {
'spoiler.warning': "هذا التقييم يحرق الأحداث",
'spoiler.show': "إظهار المحتوى",
'spoiler.badge': "حرق أحداث",
'comments.title': "التعليقات",
'comments.none': "لا تعليقات بعد. ابدأ النقاش!",
'comments.placeholder': "اكتب تعليقًا…",
'comments.send': "إرسال",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Folge {ep} · Finale',
'release.filmJapan': 'Film in Japan',
'card.ep': 'Ep. {n}',
'card.plusOne': '+1 Folge für {title}',
'card.open': '{title} öffnen',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "Diese Kritik enthält Spoiler",
'spoiler.show': "Spoiler anzeigen",
'spoiler.badge': "Spoiler",
'comments.title': "Kommentare",
'comments.none': "Noch keine Kommentare. Starte die Unterhaltung!",
'comments.placeholder': "Kommentar schreiben…",
'comments.send': "Senden",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Episode {ep} · finale',
'release.filmJapan': 'Movie in Japan',
'card.ep': 'Ep. {n}',
'card.plusOne': '+1 episode for {title}',
'card.open': 'Open {title}',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "This review contains spoilers",
'spoiler.show': "Show spoiler",
'spoiler.badge': "Spoiler",
'comments.title': "Comments",
'comments.none': "No comments yet. Start the conversation!",
'comments.placeholder': "Write a comment…",
'comments.send': "Send",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Episodio {ep} · final',
'release.filmJapan': 'Película en Japón',
'card.ep': 'Ep. {n}',
'card.plusOne': '+1 episodio de {title}',
'card.open': 'Abrir {title}',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "Esta reseña contiene spoilers",
'spoiler.show': "Mostrar spoiler",
'spoiler.badge': "Spoiler",
'comments.title': "Comentarios",
'comments.none': "Aún no hay comentarios. ¡Empieza la conversación!",
'comments.placeholder': "Escribe un comentario…",
'comments.send': "Enviar",
-2
View File
@@ -138,7 +138,6 @@ const dict = {
'release.episodeFinal': 'Épisode {ep} · final',
'release.filmJapan': 'Film au Japon',
'card.ep': 'Ép. {n}',
'card.plusOne': '+1 épisode pour {title}',
'card.open': 'Ouvrir {title}',
@@ -1024,7 +1023,6 @@ const dict = {
'spoiler.warning': "Cet avis contient des spoilers",
'spoiler.show': "Afficher le spoiler",
'spoiler.badge': "Spoiler",
'comments.title': "Commentaires",
'comments.none': "Pas encore de commentaire. Lance la discussion !",
'comments.placeholder': "Écrire un commentaire…",
'comments.send': "Envoyer",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'एपिसोड {ep} · फ़िनाले',
'release.filmJapan': 'जापान में फ़िल्म',
'card.ep': 'एपि. {n}',
'card.plusOne': '{title} के लिए +1 एपिसोड',
'card.open': '{title} खोलें',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "इस रिव्यू में स्पॉइलर हैं",
'spoiler.show': "स्पॉइलर दिखाएँ",
'spoiler.badge': "स्पॉइलर",
'comments.title': "टिप्पणियाँ",
'comments.none': "अभी कोई टिप्पणी नहीं। बातचीत शुरू करें!",
'comments.placeholder': "टिप्पणी लिखें…",
'comments.send': "भेजें",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Episode {ep} · final',
'release.filmJapan': 'Film di Jepang',
'card.ep': 'Eps. {n}',
'card.plusOne': '+1 episode untuk {title}',
'card.open': 'Buka {title}',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "Ulasan ini mengandung spoiler",
'spoiler.show': "Tampilkan spoiler",
'spoiler.badge': "Spoiler",
'comments.title': "Komentar",
'comments.none': "Belum ada komentar. Mulai percakapan!",
'comments.placeholder': "Tulis komentar…",
'comments.send': "Kirim",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Episodio {ep} · finale',
'release.filmJapan': 'Film in Giappone',
'card.ep': 'Ep. {n}',
'card.plusOne': '+1 episodio per {title}',
'card.open': 'Apri {title}',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "Questa recensione contiene spoiler",
'spoiler.show': "Mostra spoiler",
'spoiler.badge': "Spoiler",
'comments.title': "Commenti",
'comments.none': "Ancora nessun commento. Inizia tu la conversazione!",
'comments.placeholder': "Scrivi un commento…",
'comments.send': "Invia",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': '第{ep}話・最終話',
'release.filmJapan': '日本で劇場公開',
'card.ep': '第{n}話',
'card.plusOne': '{title}に+1話',
'card.open': '{title}を開く',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "このレビューにはネタバレが含まれます",
'spoiler.show': "ネタバレを表示",
'spoiler.badge': "ネタバレ",
'comments.title': "コメント",
'comments.none': "まだコメントはありません。話しかけてみましょう!",
'comments.placeholder': "コメントを書く…",
'comments.send': "送信",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': '{ep}화 · 최종화',
'release.filmJapan': '일본 개봉 영화',
'card.ep': '{n}화',
'card.plusOne': '{title} +1화',
'card.open': '{title} 열기',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "이 리뷰에는 스포일러가 있습니다",
'spoiler.show': "스포일러 보기",
'spoiler.badge': "스포일러",
'comments.title': "댓글",
'comments.none': "아직 댓글이 없어요. 대화를 시작해 보세요!",
'comments.placeholder': "댓글 쓰기…",
'comments.send': "보내기",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Aflevering {ep} · finale',
'release.filmJapan': 'Film in Japan',
'card.ep': 'Afl. {n}',
'card.plusOne': '+1 aflevering voor {title}',
'card.open': '{title} openen',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "Deze recensie bevat spoilers",
'spoiler.show': "Spoiler tonen",
'spoiler.badge': "Spoiler",
'comments.title': "Reacties",
'comments.none': "Nog geen reacties. Begin het gesprek!",
'comments.placeholder': "Schrijf een reactie…",
'comments.send': "Versturen",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Odcinek {ep} · finał',
'release.filmJapan': 'Film w Japonii',
'card.ep': 'Odc. {n}',
'card.plusOne': '+1 odcinek: {title}',
'card.open': 'Otwórz {title}',
@@ -1122,7 +1121,6 @@ const dict: Translations = {
'spoiler.warning': "Ta recenzja zawiera spoilery",
'spoiler.show': "Pokaż spoiler",
'spoiler.badge': "Spoiler",
'comments.title': "Komentarze",
'comments.none': "Brak komentarzy. Rozpocznij rozmowę!",
'comments.placeholder': "Napisz komentarz…",
'comments.send': "Wyślij",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Episódio {ep} · final',
'release.filmJapan': 'Filme no Japão',
'card.ep': 'Ep. {n}',
'card.plusOne': '+1 episódio de {title}',
'card.open': 'Abrir {title}',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "Esta resenha contém spoilers",
'spoiler.show': "Mostrar spoiler",
'spoiler.badge': "Spoiler",
'comments.title': "Comentários",
'comments.none': "Nenhum comentário ainda. Comece a conversa!",
'comments.placeholder': "Escreva um comentário…",
'comments.send': "Enviar",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Серия {ep} · финал',
'release.filmJapan': 'Фильм в Японии',
'card.ep': 'Сер. {n}',
'card.plusOne': '+1 серия для {title}',
'card.open': 'Открыть {title}',
@@ -1122,7 +1121,6 @@ const dict: Translations = {
'spoiler.warning': "Этот отзыв содержит спойлеры",
'spoiler.show': "Показать спойлер",
'spoiler.badge': "Спойлер",
'comments.title': "Комментарии",
'comments.none': "Комментариев пока нет. Начните обсуждение!",
'comments.placeholder': "Написать комментарий…",
'comments.send': "Отправить",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'ตอนที่ {ep} · ตอนจบ',
'release.filmJapan': 'ภาพยนตร์ในญี่ปุ่น',
'card.ep': 'ตอน {n}',
'card.plusOne': '+1 ตอนสำหรับ {title}',
'card.open': 'เปิด {title}',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "รีวิวนี้มีสปอยล์",
'spoiler.show': "แสดงสปอยล์",
'spoiler.badge': "สปอยล์",
'comments.title': "ความคิดเห็น",
'comments.none': "ยังไม่มีความคิดเห็น เริ่มคุยกันเลย!",
'comments.placeholder': "เขียนความคิดเห็น…",
'comments.send': "ส่ง",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': '{ep}. Bölüm · final',
'release.filmJapan': 'Japonya’da film',
'card.ep': 'Böl. {n}',
'card.plusOne': '{title} için +1 bölüm',
'card.open': '{title} aç',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "Bu inceleme spoiler içeriyor",
'spoiler.show': "Spoiler’ı göster",
'spoiler.badge': "Spoiler",
'comments.title': "Yorumlar",
'comments.none': "Henüz yorum yok. Sohbeti sen başlat!",
'comments.placeholder': "Yorum yaz…",
'comments.send': "Gönder",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': 'Tập {ep} · tập cuối',
'release.filmJapan': 'Phim chiếu tại Nhật',
'card.ep': 'Tập {n}',
'card.plusOne': '+1 tập cho {title}',
'card.open': 'Mở {title}',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "Bài đánh giá này có tiết lộ nội dung",
'spoiler.show': "Hiện nội dung",
'spoiler.badge': "Spoiler",
'comments.title': "Bình luận",
'comments.none': "Chưa có bình luận. Hãy bắt đầu cuộc trò chuyện!",
'comments.placeholder': "Viết bình luận…",
'comments.send': "Gửi",
-2
View File
@@ -136,7 +136,6 @@ const dict: Translations = {
'release.episodeFinal': '第{ep}集 · 大结局',
'release.filmJapan': '日本上映电影',
'card.ep': '第{n}集',
'card.plusOne': '《{title}》+1集',
'card.open': '打开《{title}》',
@@ -1022,7 +1021,6 @@ const dict: Translations = {
'spoiler.warning': "此评论包含剧透",
'spoiler.show': "显示剧透",
'spoiler.badge': "剧透",
'comments.title': "评论",
'comments.none': "还没有评论,来开启讨论吧!",
'comments.placeholder': "写评论…",
'comments.send': "发送",
-1
View File
@@ -4,7 +4,6 @@ import type { MediaItem } from '../types'
import { TYPE_BY_VALUE } from './constants'
import { episodeCap } from './franchise'
import { safePosterUrl } from './security'
import { formatRating } from './utils'
/**
* Génère des images à partager (story / message) directement dans le navigateur,
+1 -1
View File
@@ -32,7 +32,7 @@ interface Props {
}
export default function CatalogPage({ onOpen, onAdd }: Props) {
const { items, settings, lists } = useMedia()
const { items, lists } = useMedia()
const [view, setView] = useState<'titles' | 'journal' | 'lists'>('titles')
const [query, setQuery] = useState('')
const [types, setTypes] = useState<Set<MediaType>>(new Set())
+3
View File
@@ -6,6 +6,9 @@
"moduleResolution": "bundler",
"jsx": "react-jsx",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noEmit": true,
"isolatedModules": true,
"skipLibCheck": true,
-1
View File
@@ -1 +0,0 @@
{"root":["./src/App.tsx","./src/Root.tsx","./src/main.tsx","./src/store.tsx","./src/types.ts","./src/vite-env.d.ts","./src/components/AccountSection.tsx","./src/components/AuthScreen.tsx","./src/components/Badges.tsx","./src/components/BottomNav.tsx","./src/components/CalendarView.tsx","./src/components/ConfirmDialog.tsx","./src/components/DatabaseSearch.tsx","./src/components/Disagreements.tsx","./src/components/EpisodeList.tsx","./src/components/HomeHero.tsx","./src/components/ItemHero.tsx","./src/components/JournalView.tsx","./src/components/ListsView.tsx","./src/components/MediaCard.tsx","./src/components/MediaForm.tsx","./src/components/Poster.tsx","./src/components/Rating.tsx","./src/components/Recommendations.tsx","./src/components/Roulette.tsx","./src/components/SharePreview.tsx","./src/components/SideNav.tsx","./src/components/TagInput.tsx","./src/components/TopFive.tsx","./src/components/TopFiveEditor.tsx","./src/components/ui.tsx","./src/components/social/Avatar.tsx","./src/components/social/EditProfile.tsx","./src/components/social/FollowList.tsx","./src/components/social/FriendsFeed.tsx","./src/components/social/ItemPeek.tsx","./src/components/social/Notifications.tsx","./src/components/social/PeopleSearch.tsx","./src/components/social/PersonRow.tsx","./src/components/social/ProfileView.tsx","./src/components/social/Reactions.tsx","./src/components/social/Sheet.tsx","./src/components/social/SocialProvider.tsx","./src/components/social/TitleReviews.tsx","./src/components/social/WelcomeProfile.tsx","./src/i18n/index.ts","./src/i18n/react.tsx","./src/i18n/locales/ar.ts","./src/i18n/locales/de.ts","./src/i18n/locales/en.ts","./src/i18n/locales/es.ts","./src/i18n/locales/fr.ts","./src/i18n/locales/hi.ts","./src/i18n/locales/id.ts","./src/i18n/locales/it.ts","./src/i18n/locales/ja.ts","./src/i18n/locales/ko.ts","./src/i18n/locales/nl.ts","./src/i18n/locales/pl.ts","./src/i18n/locales/pt.ts","./src/i18n/locales/ru.ts","./src/i18n/locales/th.ts","./src/i18n/locales/tr.ts","./src/i18n/locales/vi.ts","./src/i18n/locales/zh.ts","./src/lib/airing.ts","./src/lib/backup.ts","./src/lib/catalogApi.ts","./src/lib/constants.ts","./src/lib/db.ts","./src/lib/dragScroll.ts","./src/lib/escape.ts","./src/lib/franchise.ts","./src/lib/genres.ts","./src/lib/globalReleases.ts","./src/lib/image.ts","./src/lib/legacyImport.ts","./src/lib/onResume.ts","./src/lib/publicRatings.ts","./src/lib/pwa.ts","./src/lib/releases.ts","./src/lib/roulette.ts","./src/lib/scope.ts","./src/lib/scrollLock.ts","./src/lib/security.ts","./src/lib/shareCard.ts","./src/lib/stats.ts","./src/lib/theme.ts","./src/lib/timeAgo.ts","./src/lib/utils.ts","./src/lib/cloud/admin.ts","./src/lib/cloud/api.ts","./src/lib/cloud/auth.ts","./src/lib/cloud/config.ts","./src/lib/cloud/notifications.ts","./src/lib/cloud/reviews.ts","./src/lib/cloud/social.ts","./src/lib/cloud/sync.ts","./src/pages/AdminPage.tsx","./src/pages/CatalogPage.tsx","./src/pages/HomePage.tsx","./src/pages/SettingsPage.tsx","./src/pages/StatsPage.tsx","./vite.config.ts"],"version":"5.9.3"}