Compare commits
5
Commits
f7160e3401
...
614f566662
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
614f566662 | ||
|
|
aad97867aa | ||
|
|
71b1e91947 | ||
|
|
81c6a447d9 | ||
|
|
e366f38727 |
No files matched your search
@@ -10,3 +10,4 @@ supabase/.temp
|
|||||||
supabase/.branches
|
supabase/.branches
|
||||||
_to_delete
|
_to_delete
|
||||||
.env.deploy
|
.env.deploy
|
||||||
|
tsconfig.tsbuildinfo
|
||||||
@@ -21,7 +21,7 @@ npm run build # build de prod
|
|||||||
- Remote git : **Gitea** `https://gitea.rdacet.fr/romain/kino.git` (branche `main`).
|
- Remote git : **Gitea** `https://gitea.rdacet.fr/romain/kino.git` (branche `main`).
|
||||||
- Claude Code (cloud) accède directement à Gitea : jeton `GITEA_TOKEN` en « network secret » de l'environnement (portée `write:repository`). Depuis le 27 nov. 2026, Romain demande que Claude **fusionne et pousse directement dans `main`** sans redemander (ce qui déploie), puis vérifie le déploiement (Gitea Actions + site en ligne). Plus de dépôt GitHub.
|
- Claude Code (cloud) accède directement à Gitea : jeton `GITEA_TOKEN` en « network secret » de l'environnement (portée `write:repository`). Depuis le 27 nov. 2026, Romain demande que Claude **fusionne et pousse directement dans `main`** sans redemander (ce qui déploie), puis vérifie le déploiement (Gitea Actions + site en ligne). Plus de dépôt GitHub.
|
||||||
- Push via **PowerShell** : `git push`.
|
- Push via **PowerShell** : `git push`.
|
||||||
- **Gitea Actions** (`.gitea/workflows/deploy.yml`) build et publie sur le **VPS** (nginx en LXC) à chaque push sur `main`. Site : https://azuucine.rdacet.fr
|
- **Gitea Actions** (`.gitea/workflows/deploy.yml`) build et publie sur le **VPS** (nginx en LXC) à chaque push sur `main`. Site : https://kino.rdacet.fr (azuucine.rdacet.fr ne répond plus)
|
||||||
- `vite.config.ts` contient un garde-fou : le build échoue si `VITE_SUPABASE_URL` / `VITE_SUPABASE_ANON_KEY` manquent en CI (variables/secrets Gitea Actions). La CSP et les en-têtes de sécurité y sont aussi définis (source unique → convertis en conf nginx par `deploy/headers-to-nginx.mjs`).
|
- `vite.config.ts` contient un garde-fou : le build échoue si `VITE_SUPABASE_URL` / `VITE_SUPABASE_ANON_KEY` manquent en CI (variables/secrets Gitea Actions). La CSP et les en-têtes de sécurité y sont aussi définis (source unique → convertis en conf nginx par `deploy/headers-to-nginx.mjs`).
|
||||||
|
|
||||||
## Supabase
|
## Supabase
|
||||||
@@ -60,9 +60,11 @@ npm run build # build de prod
|
|||||||
- Garder les fichiers idempotents côté SQL.
|
- Garder les fichiers idempotents côté SQL.
|
||||||
- RTL géré (arabe) : préférer les classes logiques (`ps-`/`pe-`, `ms-`/`me-`, `start-`/`end-`, `border-e`).
|
- RTL géré (arabe) : préférer les classes logiques (`ps-`/`pe-`, `ms-`/`me-`, `start-`/`end-`, `border-e`).
|
||||||
|
|
||||||
## État (au 24 nov. 2026)
|
## État (au 28 nov. 2026)
|
||||||
- **Toutes les migrations de `supabase/migrations/` sont appliquées en ligne**, jusqu'à `20261122140000_audit_hardening.sql` incluse.
|
- **Toutes les migrations de `supabase/migrations/` sont appliquées en ligne**, jusqu'à `20261128130000_notifications_actor_index.sql` incluse.
|
||||||
- **Notifications retirées (22 nov. 2026)** : plus de cloche ni de push. Table `notifications` gardée vide (des fonctions de listes partagées y font encore référence), `azuu_notify` ne fait plus rien. Ne pas les réintroduire sans demande.
|
- **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`).
|
||||||
- **Audit (22-24 nov. 2026)** : `20261122140000_audit_hardening.sql` versionne aussi les fonctions admin / « comptes suspendus » qui n'existaient qu'en ligne. Blocage = le compte bloquant devient invisible pour le bloqué ; fiches supprimées = `data` vidée (trigger `azuu_tombstone`) ; profils lisibles directement seulement par soi-même.
|
- **Audit (22-24 nov. 2026)** : `20261122140000_audit_hardening.sql` versionne aussi les fonctions admin / « comptes suspendus » qui n'existaient qu'en ligne. Blocage = le compte bloquant devient invisible pour le bloqué ; fiches supprimées = `data` vidée (trigger `azuu_tombstone`) ; profils lisibles directement seulement par soi-même.
|
||||||
- **Runner Gitea** : `kino` (étiquette `azuucine`), service `gitea-runner` dans le conteneur LXC `kino` du VPS. S'il est hors ligne, plus rien ne se déploie (voir `deploy/BACKUP.md` → « Runner arrêté ? »).
|
- **Runner Gitea** : `kino` (étiquette `azuucine`), service `gitea-runner` dans le conteneur LXC `kino` du VPS. S'il est hors ligne, plus rien ne se déploie (voir `deploy/BACKUP.md` → « Runner arrêté ? »).
|
||||||
- **Sauvegardes : pas encore actives** (au 25 nov. 2026) — secrets Gitea `SUPABASE_DB_URL` + `BACKUP_PASSPHRASE` à ajouter par Romain, préparation du VPS → `deploy/BACKUP.md`.
|
- **Sauvegardes : pas encore actives** (au 25 nov. 2026) — secrets Gitea `SUPABASE_DB_URL` + `BACKUP_PASSPHRASE` à ajouter par Romain, préparation du VPS → `deploy/BACKUP.md`.
|
||||||
|
|||||||
@@ -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;
|
|
||||||
+38
-14
@@ -1,26 +1,41 @@
|
|||||||
import { SocialProvider } from './components/social/SocialProvider'
|
import { preloadSocial, SocialProvider } from './components/social/SocialProvider'
|
||||||
import { ToastProvider } from './components/Toast'
|
import { ToastProvider } from './components/Toast'
|
||||||
import { useCallback, useEffect, useState } from 'react'
|
import { lazy, Suspense, useCallback, useEffect, useState } from 'react'
|
||||||
import BottomNav, { type Tab } from './components/BottomNav'
|
import BottomNav, { type Tab } from './components/BottomNav'
|
||||||
import SideNav from './components/SideNav'
|
import SideNav from './components/SideNav'
|
||||||
import AddTitle from './components/title/AddTitle'
|
import AddTitle from './components/title/AddTitle'
|
||||||
import EditDetails from './components/title/EditDetails'
|
|
||||||
import TitleSheet from './components/title/TitleSheet'
|
import TitleSheet from './components/title/TitleSheet'
|
||||||
import PersonSheet from './components/person/PersonSheet'
|
|
||||||
import Roulette from './components/Roulette'
|
|
||||||
import CalendarView from './components/CalendarView'
|
|
||||||
import HomePage from './pages/HomePage'
|
import HomePage from './pages/HomePage'
|
||||||
import CatalogPage from './pages/CatalogPage'
|
import CatalogPage from './pages/CatalogPage'
|
||||||
import StatsPage from './pages/StatsPage'
|
|
||||||
import SettingsPage from './pages/SettingsPage'
|
|
||||||
import AdminPage from './pages/AdminPage'
|
|
||||||
import NotFoundPage from './pages/NotFoundPage'
|
|
||||||
import SyncIndicator from './components/SyncIndicator'
|
import SyncIndicator from './components/SyncIndicator'
|
||||||
import { useMedia } from './store'
|
import { useMedia } from './store'
|
||||||
import type { SearchResult } from './lib/catalogApi'
|
import type { SearchResult } from './lib/catalogApi'
|
||||||
import type { MediaItem } from './types'
|
import type { MediaItem } from './types'
|
||||||
import type { Completion } from './lib/seasons'
|
import type { Completion } from './lib/seasons'
|
||||||
import { dropPushSubscription } from './lib/push'
|
|
||||||
|
// Écrans moins fréquents : chargés à la demande (démarrage plus léger), puis préchargés quand l'app est au repos
|
||||||
|
const loaders = {
|
||||||
|
EditDetails: () => import('./components/title/EditDetails'),
|
||||||
|
PersonSheet: () => import('./components/person/PersonSheet'),
|
||||||
|
Roulette: () => import('./components/Roulette'),
|
||||||
|
CalendarView: () => import('./components/CalendarView'),
|
||||||
|
StatsPage: () => import('./pages/StatsPage'),
|
||||||
|
SettingsPage: () => import('./pages/SettingsPage'),
|
||||||
|
AdminPage: () => import('./pages/AdminPage'),
|
||||||
|
NotFoundPage: () => import('./pages/NotFoundPage'),
|
||||||
|
}
|
||||||
|
const EditDetails = lazy(loaders.EditDetails)
|
||||||
|
const PersonSheet = lazy(loaders.PersonSheet)
|
||||||
|
const Roulette = lazy(loaders.Roulette)
|
||||||
|
const CalendarView = lazy(loaders.CalendarView)
|
||||||
|
const StatsPage = lazy(loaders.StatsPage)
|
||||||
|
const SettingsPage = lazy(loaders.SettingsPage)
|
||||||
|
const AdminPage = lazy(loaders.AdminPage)
|
||||||
|
const NotFoundPage = lazy(loaders.NotFoundPage)
|
||||||
|
function preloadScreens() {
|
||||||
|
for (const load of Object.values(loaders)) void load().catch(() => {})
|
||||||
|
preloadSocial()
|
||||||
|
}
|
||||||
|
|
||||||
const TABS: Tab[] = ['home', 'catalog', 'stats', 'settings']
|
const TABS: Tab[] = ['home', 'catalog', 'stats', 'settings']
|
||||||
// L'administration a sa propre route (#/admin), hors de la navigation principale
|
// L'administration a sa propre route (#/admin), hors de la navigation principale
|
||||||
@@ -57,10 +72,12 @@ export default function App() {
|
|||||||
const [roulette, setRoulette] = useState(false)
|
const [roulette, setRoulette] = useState(false)
|
||||||
const [calendar, setCalendar] = useState(false)
|
const [calendar, setCalendar] = useState(false)
|
||||||
|
|
||||||
// Notifications retirées : on résilie l'ancien abonnement push de cet appareil, s'il en reste un
|
// Les écrans chargés à la demande arrivent en arrière-plan une fois l'app affichée : ils s'ouvrent ensuite sans attente
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
void dropPushSubscription()
|
const idle = window.requestIdleCallback ?? ((cb: () => void) => window.setTimeout(cb, 1500))
|
||||||
|
idle(preloadScreens)
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const onHash = () => setRoute(routeFromHash())
|
const onHash = () => setRoute(routeFromHash())
|
||||||
window.addEventListener('hashchange', onHash)
|
window.addEventListener('hashchange', onHash)
|
||||||
@@ -104,17 +121,21 @@ export default function App() {
|
|||||||
{error && <p className="mt-4 rounded-xl border border-accent p-3 text-sm text-ink">{error}</p>}
|
{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)} />}
|
||||||
{route === 'catalog' && <CatalogPage onOpen={openItem} onAdd={openNew} />}
|
{route === 'catalog' && <CatalogPage onOpen={openItem} onAdd={openNew} />}
|
||||||
|
<Suspense fallback={null}>
|
||||||
{route === 'stats' && <StatsPage onOpen={openItem} />}
|
{route === 'stats' && <StatsPage onOpen={openItem} />}
|
||||||
{route === 'settings' && <SettingsPage onOpenAdmin={() => go('admin')} />}
|
{route === 'settings' && <SettingsPage onOpenAdmin={() => go('admin')} />}
|
||||||
{route === 'admin' && <AdminPage onBack={() => go('settings')} />}
|
{route === 'admin' && <AdminPage onBack={() => go('settings')} />}
|
||||||
{route === 'notfound' && <NotFoundPage onHome={() => go('home')} />}
|
{route === 'notfound' && <NotFoundPage onHome={() => go('home')} />}
|
||||||
|
</Suspense>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<BottomNav current={navTab} onChange={go} onAdd={openNew} />
|
<BottomNav current={navTab} onChange={go} onAdd={openNew} />
|
||||||
<SyncIndicator />
|
<SyncIndicator />
|
||||||
|
|
||||||
|
<Suspense fallback={null}>
|
||||||
{roulette && <Roulette onClose={() => setRoulette(false)} onOpen={openItem} />}
|
{roulette && <Roulette onClose={() => setRoulette(false)} onOpen={openItem} />}
|
||||||
{calendar && <CalendarView onClose={() => setCalendar(false)} onOpen={openItem} />}
|
{calendar && <CalendarView onClose={() => setCalendar(false)} onOpen={openItem} />}
|
||||||
|
</Suspense>
|
||||||
|
|
||||||
{adding && (
|
{adding && (
|
||||||
<AddTitle
|
<AddTitle
|
||||||
@@ -139,8 +160,8 @@ export default function App() {
|
|||||||
onDone={backHome}
|
onDone={backHome}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
|
<Suspense key={l.uid} fallback={null}>
|
||||||
<PersonSheet
|
<PersonSheet
|
||||||
key={l.uid}
|
|
||||||
personId={l.personId}
|
personId={l.personId}
|
||||||
name={l.name}
|
name={l.name}
|
||||||
photo={l.photo}
|
photo={l.photo}
|
||||||
@@ -148,9 +169,11 @@ export default function App() {
|
|||||||
onOpenItem={openItem}
|
onOpenItem={openItem}
|
||||||
onOpenSeed={openSeed}
|
onOpenSeed={openSeed}
|
||||||
/>
|
/>
|
||||||
|
</Suspense>
|
||||||
),
|
),
|
||||||
)}
|
)}
|
||||||
{manual !== null && (
|
{manual !== null && (
|
||||||
|
<Suspense fallback={null}>
|
||||||
<EditDetails
|
<EditDetails
|
||||||
initialTitle={manual}
|
initialTitle={manual}
|
||||||
onClose={() => setManual(null)}
|
onClose={() => setManual(null)}
|
||||||
@@ -160,6 +183,7 @@ export default function App() {
|
|||||||
openItem(item)
|
openItem(item)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</Suspense>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
</SocialProvider>
|
</SocialProvider>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ function buildEntries(items: MediaItem[]): Entry[] {
|
|||||||
|
|
||||||
/** Onglet « Journal » du catalogue : chronologie groupée par mois. */
|
/** Onglet « Journal » du catalogue : chronologie groupée par mois. */
|
||||||
export default function JournalView({ onOpen }: { onOpen: (item: MediaItem) => void }) {
|
export default function JournalView({ onOpen }: { onOpen: (item: MediaItem) => void }) {
|
||||||
const { items, settings } = useMedia()
|
const { items } = useMedia()
|
||||||
const entries = useMemo(() => buildEntries(items), [items])
|
const entries = useMemo(() => buildEntries(items), [items])
|
||||||
const years = useMemo(() => [...new Set(entries.map((e) => e.date.slice(0, 4)))], [entries])
|
const years = useMemo(() => [...new Set(entries.map((e) => e.date.slice(0, 4)))], [entries])
|
||||||
const [year, setYear] = useState('')
|
const [year, setYear] = useState('')
|
||||||
|
|||||||
@@ -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).
|
* (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 }) {
|
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
|
// Revisionnage en cours : la progression montrée est celle du revisionnage
|
||||||
const view = progressView(item)
|
const view = progressView(item)
|
||||||
const canIncrement =
|
const canIncrement =
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ export default function Poster({ src, title, className }: { src?: string; title:
|
|||||||
src={src}
|
src={src}
|
||||||
alt={title}
|
alt={title}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
|
decoding="async"
|
||||||
onError={() => setBroken(src)}
|
onError={() => setBroken(src)}
|
||||||
className={cx('aspect-[2/3] w-full rounded-xl border border-line bg-surface-2 object-cover', className)}
|
className={cx('aspect-[2/3] w-full rounded-xl border border-line bg-surface-2 object-cover', className)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ const shuffle = <T,>(arr: T[]) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default function Roulette({ onClose, onOpen }: Props) {
|
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 [filters, setFilters] = useState<RouletteFilters>(loadFilters)
|
||||||
const pool = useMemo(() => buildPool(items, filters), [items, filters])
|
const pool = useMemo(() => buildPool(items, filters), [items, filters])
|
||||||
const base = useMemo(() => sourcePool(items, filters.sources, filters.listIds), [items, filters.sources, filters.listIds])
|
const base = useMemo(() => sourcePool(items, filters.sources, filters.listIds), [items, filters.sources, filters.listIds])
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import { t } from '../i18n'
|
|||||||
import { Loader2, Plus, Share2 } from 'lucide-react'
|
import { Loader2, Plus, Share2 } from 'lucide-react'
|
||||||
import { useState, type CSSProperties } from 'react'
|
import { useState, type CSSProperties } from 'react'
|
||||||
import { TOP_CATEGORIES } from '../lib/constants'
|
import { TOP_CATEGORIES } from '../lib/constants'
|
||||||
import { renderTopCard, slug } from '../lib/shareCard'
|
|
||||||
import { cx, formatRating } from '../lib/utils'
|
import { cx, formatRating } from '../lib/utils'
|
||||||
import { useMedia } from '../store'
|
import { useMedia } from '../store'
|
||||||
import type { MediaItem, TopCategory } from '../types'
|
import type { MediaItem, TopCategory } from '../types'
|
||||||
@@ -60,8 +59,9 @@ export default function TopFive({ onOpen }: { onOpen: (item: MediaItem) => void
|
|||||||
const share = async () => {
|
const share = async () => {
|
||||||
setSharing(true)
|
setSharing(true)
|
||||||
try {
|
try {
|
||||||
|
const { renderTopCard, slug } = await import('../lib/shareCard')
|
||||||
const blob = await renderTopCard(current.plural, [1, 2, 3, 4, 5].map((r) => byRank.get(r)))
|
const blob = await renderTopCard(current.plural, [1, 2, 3, 4, 5].map((r) => byRank.get(r)))
|
||||||
setPreview({ blob, filename: `kino-top5-${slug(current.plural)}.png`, title: t('top.shareTitle', { category: current.plural }) })
|
setPreview({ blob, filename: `bobinoo-top5-${slug(current.plural)}.png`, title: t('top.shareTitle', { category: current.plural }) })
|
||||||
} finally {
|
} finally {
|
||||||
setSharing(false)
|
setSharing(false)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { cx } from '../../lib/utils'
|
|||||||
/** Photo de profil ronde, ou initiale sur fond neutre. */
|
/** Photo de profil ronde, ou initiale sur fond neutre. */
|
||||||
export default function Avatar({ url, name, size = 40, className }: { url?: string; name: string; size?: number; className?: string }) {
|
export default function Avatar({ url, name, size = 40, className }: { url?: string; name: string; size?: number; className?: string }) {
|
||||||
const style = { width: size, height: size }
|
const style = { width: size, height: size }
|
||||||
if (url) return <img src={url} alt="" style={style} className={cx('shrink-0 rounded-full border border-line bg-surface-2 object-cover', className)} />
|
if (url) return <img src={url} alt="" loading="lazy" decoding="async" style={style} className={cx('shrink-0 rounded-full border border-line bg-surface-2 object-cover', className)} />
|
||||||
return (
|
return (
|
||||||
<span style={{ ...style, fontSize: size * 0.42 }} className={cx('grid shrink-0 place-items-center rounded-full border border-line bg-surface-2 font-bold text-ink-2', className)}>
|
<span style={{ ...style, fontSize: size * 0.42 }} className={cx('grid shrink-0 place-items-center rounded-full border border-line bg-surface-2 font-bold text-ink-2', className)}>
|
||||||
{(name.trim().charAt(0) || '?').toUpperCase()}
|
{(name.trim().charAt(0) || '?').toUpperCase()}
|
||||||
|
|||||||
@@ -5,7 +5,6 @@ import { FEED_PAGE, getFeed, type FeedEntry } from '../../lib/cloud/social'
|
|||||||
import { useOnResume } from '../../lib/onResume'
|
import { useOnResume } from '../../lib/onResume'
|
||||||
import { timeAgo } from '../../lib/timeAgo'
|
import { timeAgo } from '../../lib/timeAgo'
|
||||||
import { formatRating } from '../../lib/utils'
|
import { formatRating } from '../../lib/utils'
|
||||||
import { useMedia } from '../../store'
|
|
||||||
import Poster from '../Poster'
|
import Poster from '../Poster'
|
||||||
import { LinkArrow, SectionTitle } from '../ui'
|
import { LinkArrow, SectionTitle } from '../ui'
|
||||||
import Avatar from './Avatar'
|
import Avatar from './Avatar'
|
||||||
@@ -30,7 +29,6 @@ const VERB = { finished: 'feed.finished', started: 'feed.started', rewatched: 'f
|
|||||||
/** Accueil : ce que regardent mes abonnements. */
|
/** Accueil : ce que regardent mes abonnements. */
|
||||||
export default function FriendsFeed() {
|
export default function FriendsFeed() {
|
||||||
const social = useSocial()
|
const social = useSocial()
|
||||||
const { settings } = useMedia()
|
|
||||||
const [entries, setEntries] = useState<FeedEntry[]>()
|
const [entries, setEntries] = useState<FeedEntry[]>()
|
||||||
const [more, setMore] = useState(false)
|
const [more, setMore] = useState(false)
|
||||||
const [loadingMore, setLoadingMore] = useState(false)
|
const [loadingMore, setLoadingMore] = useState(false)
|
||||||
|
|||||||
@@ -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 ». */
|
/** 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 }) {
|
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 social = useSocial()
|
||||||
const [busy, setBusy] = useState(false)
|
const [busy, setBusy] = useState(false)
|
||||||
const [added, setAdded] = useState(false)
|
const [added, setAdded] = useState(false)
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ import Sheet from './Sheet'
|
|||||||
import { useSocial } from './SocialProvider'
|
import { useSocial } from './SocialProvider'
|
||||||
|
|
||||||
function PosterTile({ item, onOpen, caption }: { item: MediaItem; onOpen: () => void; caption?: string }) {
|
function PosterTile({ item, onOpen, caption }: { item: MediaItem; onOpen: () => void; caption?: string }) {
|
||||||
const { settings } = useMedia()
|
|
||||||
return (
|
return (
|
||||||
<button onClick={onOpen} className="block w-full text-start">
|
<button onClick={onOpen} className="block w-full text-start">
|
||||||
<Poster src={item.poster} title={item.title} />
|
<Poster src={item.poster} title={item.title} />
|
||||||
|
|||||||
@@ -1,14 +1,8 @@
|
|||||||
import { createContext, useCallback, useContext, useEffect, useMemo, useState, type ReactNode } from 'react'
|
import { createContext, lazy, Suspense, useCallback, useContext, useEffect, useMemo, useState, type ReactNode } from 'react'
|
||||||
import { getFollowRequests, getMyProfile, unreadNotifications, type Profile, type ProfileCard } from '../../lib/cloud/social'
|
import { getFollowRequests, getMyProfile, unreadNotifications, type Profile, type ProfileCard } from '../../lib/cloud/social'
|
||||||
import NotificationsSheet from './NotificationsSheet'
|
|
||||||
import { useMedia } from '../../store'
|
import { useMedia } from '../../store'
|
||||||
import type { MediaItem } from '../../types'
|
import type { MediaItem } from '../../types'
|
||||||
import EditProfile from './EditProfile'
|
import type { PeekOwner } from './ItemPeek'
|
||||||
import FollowList from './FollowList'
|
|
||||||
import ItemPeek, { type PeekOwner } from './ItemPeek'
|
|
||||||
import PeopleSearch from './PeopleSearch'
|
|
||||||
import ProfileView from './ProfileView'
|
|
||||||
import TitleReviews from './TitleReviews'
|
|
||||||
import { useOnResume } from '../../lib/onResume'
|
import { useOnResume } from '../../lib/onResume'
|
||||||
import WelcomeProfile, { RANDOM_USERNAME } from './WelcomeProfile'
|
import WelcomeProfile, { RANDOM_USERNAME } from './WelcomeProfile'
|
||||||
import { InvitePeople, SharedListSheet } from './SharedLists'
|
import { InvitePeople, SharedListSheet } from './SharedLists'
|
||||||
@@ -44,6 +38,27 @@ interface SocialApi {
|
|||||||
bumpShared: () => void
|
bumpShared: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Écrans sociaux chargés à la demande (préchargés par App au repos via preloadSocial)
|
||||||
|
const socialLoaders = {
|
||||||
|
NotificationsSheet: () => import('./NotificationsSheet'),
|
||||||
|
EditProfile: () => import('./EditProfile'),
|
||||||
|
FollowList: () => import('./FollowList'),
|
||||||
|
PeopleSearch: () => import('./PeopleSearch'),
|
||||||
|
ProfileView: () => import('./ProfileView'),
|
||||||
|
TitleReviews: () => import('./TitleReviews'),
|
||||||
|
ItemPeek: () => import('./ItemPeek'),
|
||||||
|
}
|
||||||
|
const NotificationsSheet = lazy(socialLoaders.NotificationsSheet)
|
||||||
|
const EditProfile = lazy(socialLoaders.EditProfile)
|
||||||
|
const FollowList = lazy(socialLoaders.FollowList)
|
||||||
|
const PeopleSearch = lazy(socialLoaders.PeopleSearch)
|
||||||
|
const ProfileView = lazy(socialLoaders.ProfileView)
|
||||||
|
const TitleReviews = lazy(socialLoaders.TitleReviews)
|
||||||
|
const ItemPeek = lazy(socialLoaders.ItemPeek)
|
||||||
|
export function preloadSocial() {
|
||||||
|
for (const load of Object.values(socialLoaders)) void load().catch(() => {})
|
||||||
|
}
|
||||||
|
|
||||||
const SocialContext = createContext<SocialApi>({
|
const SocialContext = createContext<SocialApi>({
|
||||||
enabled: false,
|
enabled: false,
|
||||||
me: null,
|
me: null,
|
||||||
@@ -221,8 +236,9 @@ export function SocialProvider({
|
|||||||
<SocialContext.Provider value={api}>
|
<SocialContext.Provider value={api}>
|
||||||
{/* Les écrans sociaux sont placés avant l'app : une fiche ouverte depuis un profil passe au-dessus */}
|
{/* Les écrans sociaux sont placés avant l'app : une fiche ouverte depuis un profil passe au-dessus */}
|
||||||
{enabled &&
|
{enabled &&
|
||||||
stack.map((o) =>
|
stack.map((o) => (
|
||||||
o.kind === 'profile' ? (
|
<Suspense key={o.uid} fallback={null}>
|
||||||
|
{o.kind === 'profile' ? (
|
||||||
<ProfileView key={o.uid} username={o.username} onClose={() => close(o.uid)} />
|
<ProfileView key={o.uid} username={o.username} onClose={() => close(o.uid)} />
|
||||||
) : o.kind === 'search' ? (
|
) : o.kind === 'search' ? (
|
||||||
<PeopleSearch key={o.uid} onClose={() => close(o.uid)} />
|
<PeopleSearch key={o.uid} onClose={() => close(o.uid)} />
|
||||||
@@ -238,11 +254,16 @@ export function SocialProvider({
|
|||||||
<NotificationsSheet key={o.uid} onClose={() => close(o.uid)} onSeen={() => setUnread(0)} />
|
<NotificationsSheet key={o.uid} onClose={() => close(o.uid)} onSeen={() => setUnread(0)} />
|
||||||
) : (
|
) : (
|
||||||
<InvitePeople key={o.uid} listId={o.listId} listName={o.listName} onClose={() => close(o.uid)} />
|
<InvitePeople key={o.uid} listId={o.listId} listName={o.listName} onClose={() => close(o.uid)} />
|
||||||
),
|
|
||||||
)}
|
)}
|
||||||
|
</Suspense>
|
||||||
|
))}
|
||||||
{children}
|
{children}
|
||||||
{enabled && me && RANDOM_USERNAME.test(me.username) && !welcomeLater && <WelcomeProfile onLater={later} />}
|
{enabled && me && RANDOM_USERNAME.test(me.username) && !welcomeLater && <WelcomeProfile onLater={later} />}
|
||||||
{enabled && peeked && <ItemPeek item={peeked.item} owner={peeked.owner} onClose={() => setPeeked(undefined)} />}
|
{enabled && peeked && (
|
||||||
|
<Suspense fallback={null}>
|
||||||
|
<ItemPeek item={peeked.item} owner={peeked.owner} onClose={() => setPeeked(undefined)} />
|
||||||
|
</Suspense>
|
||||||
|
)}
|
||||||
</SocialContext.Provider>
|
</SocialContext.Provider>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -5,7 +5,6 @@ import { getSession } from '../../lib/cloud/auth'
|
|||||||
import { useBlocked } from '../../lib/cloud/moderation'
|
import { useBlocked } from '../../lib/cloud/moderation'
|
||||||
import { titleReviews, type TitleReview, type TitleReviews as TitleReviewsData } from '../../lib/cloud/reviews'
|
import { titleReviews, type TitleReview, type TitleReviews as TitleReviewsData } from '../../lib/cloud/reviews'
|
||||||
import { formatRating } from '../../lib/utils'
|
import { formatRating } from '../../lib/utils'
|
||||||
import { useMedia } from '../../store'
|
|
||||||
import ReportButton from '../moderation/ReportButton'
|
import ReportButton from '../moderation/ReportButton'
|
||||||
import Avatar from './Avatar'
|
import Avatar from './Avatar'
|
||||||
import Reactions from './Reactions'
|
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 }) {
|
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)
|
// Mon propre avis : ni signalement ni réaction (seuls les commentaires restent)
|
||||||
const mine = r.user_id === getSession()?.user.id
|
const mine = r.user_id === getSession()?.user.id
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import { episodeCap, seasonPosition } from '../../lib/franchise'
|
|||||||
import { episodesPatch } from '../../lib/progress'
|
import { episodesPatch } from '../../lib/progress'
|
||||||
import { useScrollLock } from '../../lib/scrollLock'
|
import { useScrollLock } from '../../lib/scrollLock'
|
||||||
import { backdropSrcSet, tmdbSized } from '../../lib/tmdbImage'
|
import { backdropSrcSet, tmdbSized } from '../../lib/tmdbImage'
|
||||||
import { renderItemCard, slug } from '../../lib/shareCard'
|
|
||||||
import { cx, formatDate, formatDuration, formatRating, todayISO } from '../../lib/utils'
|
import { cx, formatDate, formatDuration, formatRating, todayISO } from '../../lib/utils'
|
||||||
import { GuestError, useMedia } from '../../store'
|
import { GuestError, useMedia } from '../../store'
|
||||||
import { allTags, cleanTag } from '../../lib/bulk'
|
import { allTags, cleanTag } from '../../lib/bulk'
|
||||||
@@ -295,8 +294,10 @@ export default function TitleSheet({ item: initial, seed, onClose, onGoToSetting
|
|||||||
if (settings.tmdbKey && item.externalId?.startsWith('tmdb:') && navigator.onLine) {
|
if (settings.tmdbKey && item.externalId?.startsWith('tmdb:') && navigator.onLine) {
|
||||||
credits = await getTmdbCredits(item.externalId, settings.tmdbKey).catch(() => undefined)
|
credits = await getTmdbCredits(item.externalId, settings.tmdbKey).catch(() => undefined)
|
||||||
}
|
}
|
||||||
|
// Carte de partage : module chargé seulement quand on partage
|
||||||
|
const { renderItemCard, slug } = await import('../../lib/shareCard')
|
||||||
const blob = await renderItemCard(item, credits)
|
const blob = await renderItemCard(item, credits)
|
||||||
setPreview({ blob, filename: `kino-${slug(item.title)}.png` })
|
setPreview({ blob, filename: `bobinoo-${slug(item.title)}.png` })
|
||||||
} catch {
|
} catch {
|
||||||
setToast(t('share.err.create'))
|
setToast(t('share.err.create'))
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'الحلقة {ep} · الأخيرة',
|
'release.episodeFinal': 'الحلقة {ep} · الأخيرة',
|
||||||
'release.filmJapan': 'فيلم في اليابان',
|
'release.filmJapan': 'فيلم في اليابان',
|
||||||
|
|
||||||
'card.ep': 'ح {n}',
|
|
||||||
'card.plusOne': '+1 حلقة لـ {title}',
|
'card.plusOne': '+1 حلقة لـ {title}',
|
||||||
'card.open': 'فتح {title}',
|
'card.open': 'فتح {title}',
|
||||||
|
|
||||||
@@ -1172,7 +1171,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "هذا التقييم يحرق الأحداث",
|
'spoiler.warning': "هذا التقييم يحرق الأحداث",
|
||||||
'spoiler.show': "إظهار المحتوى",
|
'spoiler.show': "إظهار المحتوى",
|
||||||
'spoiler.badge': "حرق أحداث",
|
'spoiler.badge': "حرق أحداث",
|
||||||
'comments.title': "التعليقات",
|
|
||||||
'comments.none': "لا تعليقات بعد. ابدأ النقاش!",
|
'comments.none': "لا تعليقات بعد. ابدأ النقاش!",
|
||||||
'comments.placeholder': "اكتب تعليقًا…",
|
'comments.placeholder': "اكتب تعليقًا…",
|
||||||
'comments.send': "إرسال",
|
'comments.send': "إرسال",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Folge {ep} · Finale',
|
'release.episodeFinal': 'Folge {ep} · Finale',
|
||||||
'release.filmJapan': 'Film in Japan',
|
'release.filmJapan': 'Film in Japan',
|
||||||
|
|
||||||
'card.ep': 'Ep. {n}',
|
|
||||||
'card.plusOne': '+1 Folge für {title}',
|
'card.plusOne': '+1 Folge für {title}',
|
||||||
'card.open': '{title} öffnen',
|
'card.open': '{title} öffnen',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "Diese Kritik enthält Spoiler",
|
'spoiler.warning': "Diese Kritik enthält Spoiler",
|
||||||
'spoiler.show': "Spoiler anzeigen",
|
'spoiler.show': "Spoiler anzeigen",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Kommentare",
|
|
||||||
'comments.none': "Noch keine Kommentare. Starte die Unterhaltung!",
|
'comments.none': "Noch keine Kommentare. Starte die Unterhaltung!",
|
||||||
'comments.placeholder': "Kommentar schreiben…",
|
'comments.placeholder': "Kommentar schreiben…",
|
||||||
'comments.send': "Senden",
|
'comments.send': "Senden",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Episode {ep} · finale',
|
'release.episodeFinal': 'Episode {ep} · finale',
|
||||||
'release.filmJapan': 'Movie in Japan',
|
'release.filmJapan': 'Movie in Japan',
|
||||||
|
|
||||||
'card.ep': 'Ep. {n}',
|
|
||||||
'card.plusOne': '+1 episode for {title}',
|
'card.plusOne': '+1 episode for {title}',
|
||||||
'card.open': 'Open {title}',
|
'card.open': 'Open {title}',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "This review contains spoilers",
|
'spoiler.warning': "This review contains spoilers",
|
||||||
'spoiler.show': "Show spoiler",
|
'spoiler.show': "Show spoiler",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Comments",
|
|
||||||
'comments.none': "No comments yet. Start the conversation!",
|
'comments.none': "No comments yet. Start the conversation!",
|
||||||
'comments.placeholder': "Write a comment…",
|
'comments.placeholder': "Write a comment…",
|
||||||
'comments.send': "Send",
|
'comments.send': "Send",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Episodio {ep} · final',
|
'release.episodeFinal': 'Episodio {ep} · final',
|
||||||
'release.filmJapan': 'Película en Japón',
|
'release.filmJapan': 'Película en Japón',
|
||||||
|
|
||||||
'card.ep': 'Ep. {n}',
|
|
||||||
'card.plusOne': '+1 episodio de {title}',
|
'card.plusOne': '+1 episodio de {title}',
|
||||||
'card.open': 'Abrir {title}',
|
'card.open': 'Abrir {title}',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "Esta reseña contiene spoilers",
|
'spoiler.warning': "Esta reseña contiene spoilers",
|
||||||
'spoiler.show': "Mostrar spoiler",
|
'spoiler.show': "Mostrar spoiler",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Comentarios",
|
|
||||||
'comments.none': "Aún no hay comentarios. ¡Empieza la conversación!",
|
'comments.none': "Aún no hay comentarios. ¡Empieza la conversación!",
|
||||||
'comments.placeholder': "Escribe un comentario…",
|
'comments.placeholder': "Escribe un comentario…",
|
||||||
'comments.send': "Enviar",
|
'comments.send': "Enviar",
|
||||||
|
|||||||
@@ -138,7 +138,6 @@ const dict = {
|
|||||||
'release.episodeFinal': 'Épisode {ep} · final',
|
'release.episodeFinal': 'Épisode {ep} · final',
|
||||||
'release.filmJapan': 'Film au Japon',
|
'release.filmJapan': 'Film au Japon',
|
||||||
|
|
||||||
'card.ep': 'Ép. {n}',
|
|
||||||
'card.plusOne': '+1 épisode pour {title}',
|
'card.plusOne': '+1 épisode pour {title}',
|
||||||
'card.open': 'Ouvrir {title}',
|
'card.open': 'Ouvrir {title}',
|
||||||
|
|
||||||
@@ -1024,7 +1023,6 @@ const dict = {
|
|||||||
'spoiler.warning': "Cet avis contient des spoilers",
|
'spoiler.warning': "Cet avis contient des spoilers",
|
||||||
'spoiler.show': "Afficher le spoiler",
|
'spoiler.show': "Afficher le spoiler",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Commentaires",
|
|
||||||
'comments.none': "Pas encore de commentaire. Lance la discussion !",
|
'comments.none': "Pas encore de commentaire. Lance la discussion !",
|
||||||
'comments.placeholder': "Écrire un commentaire…",
|
'comments.placeholder': "Écrire un commentaire…",
|
||||||
'comments.send': "Envoyer",
|
'comments.send': "Envoyer",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'एपिसोड {ep} · फ़िनाले',
|
'release.episodeFinal': 'एपिसोड {ep} · फ़िनाले',
|
||||||
'release.filmJapan': 'जापान में फ़िल्म',
|
'release.filmJapan': 'जापान में फ़िल्म',
|
||||||
|
|
||||||
'card.ep': 'एपि. {n}',
|
|
||||||
'card.plusOne': '{title} के लिए +1 एपिसोड',
|
'card.plusOne': '{title} के लिए +1 एपिसोड',
|
||||||
'card.open': '{title} खोलें',
|
'card.open': '{title} खोलें',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "इस रिव्यू में स्पॉइलर हैं",
|
'spoiler.warning': "इस रिव्यू में स्पॉइलर हैं",
|
||||||
'spoiler.show': "स्पॉइलर दिखाएँ",
|
'spoiler.show': "स्पॉइलर दिखाएँ",
|
||||||
'spoiler.badge': "स्पॉइलर",
|
'spoiler.badge': "स्पॉइलर",
|
||||||
'comments.title': "टिप्पणियाँ",
|
|
||||||
'comments.none': "अभी कोई टिप्पणी नहीं। बातचीत शुरू करें!",
|
'comments.none': "अभी कोई टिप्पणी नहीं। बातचीत शुरू करें!",
|
||||||
'comments.placeholder': "टिप्पणी लिखें…",
|
'comments.placeholder': "टिप्पणी लिखें…",
|
||||||
'comments.send': "भेजें",
|
'comments.send': "भेजें",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Episode {ep} · final',
|
'release.episodeFinal': 'Episode {ep} · final',
|
||||||
'release.filmJapan': 'Film di Jepang',
|
'release.filmJapan': 'Film di Jepang',
|
||||||
|
|
||||||
'card.ep': 'Eps. {n}',
|
|
||||||
'card.plusOne': '+1 episode untuk {title}',
|
'card.plusOne': '+1 episode untuk {title}',
|
||||||
'card.open': 'Buka {title}',
|
'card.open': 'Buka {title}',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "Ulasan ini mengandung spoiler",
|
'spoiler.warning': "Ulasan ini mengandung spoiler",
|
||||||
'spoiler.show': "Tampilkan spoiler",
|
'spoiler.show': "Tampilkan spoiler",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Komentar",
|
|
||||||
'comments.none': "Belum ada komentar. Mulai percakapan!",
|
'comments.none': "Belum ada komentar. Mulai percakapan!",
|
||||||
'comments.placeholder': "Tulis komentar…",
|
'comments.placeholder': "Tulis komentar…",
|
||||||
'comments.send': "Kirim",
|
'comments.send': "Kirim",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Episodio {ep} · finale',
|
'release.episodeFinal': 'Episodio {ep} · finale',
|
||||||
'release.filmJapan': 'Film in Giappone',
|
'release.filmJapan': 'Film in Giappone',
|
||||||
|
|
||||||
'card.ep': 'Ep. {n}',
|
|
||||||
'card.plusOne': '+1 episodio per {title}',
|
'card.plusOne': '+1 episodio per {title}',
|
||||||
'card.open': 'Apri {title}',
|
'card.open': 'Apri {title}',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "Questa recensione contiene spoiler",
|
'spoiler.warning': "Questa recensione contiene spoiler",
|
||||||
'spoiler.show': "Mostra spoiler",
|
'spoiler.show': "Mostra spoiler",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Commenti",
|
|
||||||
'comments.none': "Ancora nessun commento. Inizia tu la conversazione!",
|
'comments.none': "Ancora nessun commento. Inizia tu la conversazione!",
|
||||||
'comments.placeholder': "Scrivi un commento…",
|
'comments.placeholder': "Scrivi un commento…",
|
||||||
'comments.send': "Invia",
|
'comments.send': "Invia",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': '第{ep}話・最終話',
|
'release.episodeFinal': '第{ep}話・最終話',
|
||||||
'release.filmJapan': '日本で劇場公開',
|
'release.filmJapan': '日本で劇場公開',
|
||||||
|
|
||||||
'card.ep': '第{n}話',
|
|
||||||
'card.plusOne': '{title}に+1話',
|
'card.plusOne': '{title}に+1話',
|
||||||
'card.open': '{title}を開く',
|
'card.open': '{title}を開く',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "このレビューにはネタバレが含まれます",
|
'spoiler.warning': "このレビューにはネタバレが含まれます",
|
||||||
'spoiler.show': "ネタバレを表示",
|
'spoiler.show': "ネタバレを表示",
|
||||||
'spoiler.badge': "ネタバレ",
|
'spoiler.badge': "ネタバレ",
|
||||||
'comments.title': "コメント",
|
|
||||||
'comments.none': "まだコメントはありません。話しかけてみましょう!",
|
'comments.none': "まだコメントはありません。話しかけてみましょう!",
|
||||||
'comments.placeholder': "コメントを書く…",
|
'comments.placeholder': "コメントを書く…",
|
||||||
'comments.send': "送信",
|
'comments.send': "送信",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': '{ep}화 · 최종화',
|
'release.episodeFinal': '{ep}화 · 최종화',
|
||||||
'release.filmJapan': '일본 개봉 영화',
|
'release.filmJapan': '일본 개봉 영화',
|
||||||
|
|
||||||
'card.ep': '{n}화',
|
|
||||||
'card.plusOne': '{title} +1화',
|
'card.plusOne': '{title} +1화',
|
||||||
'card.open': '{title} 열기',
|
'card.open': '{title} 열기',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "이 리뷰에는 스포일러가 있습니다",
|
'spoiler.warning': "이 리뷰에는 스포일러가 있습니다",
|
||||||
'spoiler.show': "스포일러 보기",
|
'spoiler.show': "스포일러 보기",
|
||||||
'spoiler.badge': "스포일러",
|
'spoiler.badge': "스포일러",
|
||||||
'comments.title': "댓글",
|
|
||||||
'comments.none': "아직 댓글이 없어요. 대화를 시작해 보세요!",
|
'comments.none': "아직 댓글이 없어요. 대화를 시작해 보세요!",
|
||||||
'comments.placeholder': "댓글 쓰기…",
|
'comments.placeholder': "댓글 쓰기…",
|
||||||
'comments.send': "보내기",
|
'comments.send': "보내기",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Aflevering {ep} · finale',
|
'release.episodeFinal': 'Aflevering {ep} · finale',
|
||||||
'release.filmJapan': 'Film in Japan',
|
'release.filmJapan': 'Film in Japan',
|
||||||
|
|
||||||
'card.ep': 'Afl. {n}',
|
|
||||||
'card.plusOne': '+1 aflevering voor {title}',
|
'card.plusOne': '+1 aflevering voor {title}',
|
||||||
'card.open': '{title} openen',
|
'card.open': '{title} openen',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "Deze recensie bevat spoilers",
|
'spoiler.warning': "Deze recensie bevat spoilers",
|
||||||
'spoiler.show': "Spoiler tonen",
|
'spoiler.show': "Spoiler tonen",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Reacties",
|
|
||||||
'comments.none': "Nog geen reacties. Begin het gesprek!",
|
'comments.none': "Nog geen reacties. Begin het gesprek!",
|
||||||
'comments.placeholder': "Schrijf een reactie…",
|
'comments.placeholder': "Schrijf een reactie…",
|
||||||
'comments.send': "Versturen",
|
'comments.send': "Versturen",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Odcinek {ep} · finał',
|
'release.episodeFinal': 'Odcinek {ep} · finał',
|
||||||
'release.filmJapan': 'Film w Japonii',
|
'release.filmJapan': 'Film w Japonii',
|
||||||
|
|
||||||
'card.ep': 'Odc. {n}',
|
|
||||||
'card.plusOne': '+1 odcinek: {title}',
|
'card.plusOne': '+1 odcinek: {title}',
|
||||||
'card.open': 'Otwórz {title}',
|
'card.open': 'Otwórz {title}',
|
||||||
|
|
||||||
@@ -1122,7 +1121,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "Ta recenzja zawiera spoilery",
|
'spoiler.warning': "Ta recenzja zawiera spoilery",
|
||||||
'spoiler.show': "Pokaż spoiler",
|
'spoiler.show': "Pokaż spoiler",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Komentarze",
|
|
||||||
'comments.none': "Brak komentarzy. Rozpocznij rozmowę!",
|
'comments.none': "Brak komentarzy. Rozpocznij rozmowę!",
|
||||||
'comments.placeholder': "Napisz komentarz…",
|
'comments.placeholder': "Napisz komentarz…",
|
||||||
'comments.send': "Wyślij",
|
'comments.send': "Wyślij",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Episódio {ep} · final',
|
'release.episodeFinal': 'Episódio {ep} · final',
|
||||||
'release.filmJapan': 'Filme no Japão',
|
'release.filmJapan': 'Filme no Japão',
|
||||||
|
|
||||||
'card.ep': 'Ep. {n}',
|
|
||||||
'card.plusOne': '+1 episódio de {title}',
|
'card.plusOne': '+1 episódio de {title}',
|
||||||
'card.open': 'Abrir {title}',
|
'card.open': 'Abrir {title}',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "Esta resenha contém spoilers",
|
'spoiler.warning': "Esta resenha contém spoilers",
|
||||||
'spoiler.show': "Mostrar spoiler",
|
'spoiler.show': "Mostrar spoiler",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Comentários",
|
|
||||||
'comments.none': "Nenhum comentário ainda. Comece a conversa!",
|
'comments.none': "Nenhum comentário ainda. Comece a conversa!",
|
||||||
'comments.placeholder': "Escreva um comentário…",
|
'comments.placeholder': "Escreva um comentário…",
|
||||||
'comments.send': "Enviar",
|
'comments.send': "Enviar",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Серия {ep} · финал',
|
'release.episodeFinal': 'Серия {ep} · финал',
|
||||||
'release.filmJapan': 'Фильм в Японии',
|
'release.filmJapan': 'Фильм в Японии',
|
||||||
|
|
||||||
'card.ep': 'Сер. {n}',
|
|
||||||
'card.plusOne': '+1 серия для {title}',
|
'card.plusOne': '+1 серия для {title}',
|
||||||
'card.open': 'Открыть {title}',
|
'card.open': 'Открыть {title}',
|
||||||
|
|
||||||
@@ -1122,7 +1121,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "Этот отзыв содержит спойлеры",
|
'spoiler.warning': "Этот отзыв содержит спойлеры",
|
||||||
'spoiler.show': "Показать спойлер",
|
'spoiler.show': "Показать спойлер",
|
||||||
'spoiler.badge': "Спойлер",
|
'spoiler.badge': "Спойлер",
|
||||||
'comments.title': "Комментарии",
|
|
||||||
'comments.none': "Комментариев пока нет. Начните обсуждение!",
|
'comments.none': "Комментариев пока нет. Начните обсуждение!",
|
||||||
'comments.placeholder': "Написать комментарий…",
|
'comments.placeholder': "Написать комментарий…",
|
||||||
'comments.send': "Отправить",
|
'comments.send': "Отправить",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'ตอนที่ {ep} · ตอนจบ',
|
'release.episodeFinal': 'ตอนที่ {ep} · ตอนจบ',
|
||||||
'release.filmJapan': 'ภาพยนตร์ในญี่ปุ่น',
|
'release.filmJapan': 'ภาพยนตร์ในญี่ปุ่น',
|
||||||
|
|
||||||
'card.ep': 'ตอน {n}',
|
|
||||||
'card.plusOne': '+1 ตอนสำหรับ {title}',
|
'card.plusOne': '+1 ตอนสำหรับ {title}',
|
||||||
'card.open': 'เปิด {title}',
|
'card.open': 'เปิด {title}',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "รีวิวนี้มีสปอยล์",
|
'spoiler.warning': "รีวิวนี้มีสปอยล์",
|
||||||
'spoiler.show': "แสดงสปอยล์",
|
'spoiler.show': "แสดงสปอยล์",
|
||||||
'spoiler.badge': "สปอยล์",
|
'spoiler.badge': "สปอยล์",
|
||||||
'comments.title': "ความคิดเห็น",
|
|
||||||
'comments.none': "ยังไม่มีความคิดเห็น เริ่มคุยกันเลย!",
|
'comments.none': "ยังไม่มีความคิดเห็น เริ่มคุยกันเลย!",
|
||||||
'comments.placeholder': "เขียนความคิดเห็น…",
|
'comments.placeholder': "เขียนความคิดเห็น…",
|
||||||
'comments.send': "ส่ง",
|
'comments.send': "ส่ง",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': '{ep}. Bölüm · final',
|
'release.episodeFinal': '{ep}. Bölüm · final',
|
||||||
'release.filmJapan': 'Japonya’da film',
|
'release.filmJapan': 'Japonya’da film',
|
||||||
|
|
||||||
'card.ep': 'Böl. {n}',
|
|
||||||
'card.plusOne': '{title} için +1 bölüm',
|
'card.plusOne': '{title} için +1 bölüm',
|
||||||
'card.open': '{title} aç',
|
'card.open': '{title} aç',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "Bu inceleme spoiler içeriyor",
|
'spoiler.warning': "Bu inceleme spoiler içeriyor",
|
||||||
'spoiler.show': "Spoiler’ı göster",
|
'spoiler.show': "Spoiler’ı göster",
|
||||||
'spoiler.badge': "Spoiler",
|
'spoiler.badge': "Spoiler",
|
||||||
'comments.title': "Yorumlar",
|
|
||||||
'comments.none': "Henüz yorum yok. Sohbeti sen başlat!",
|
'comments.none': "Henüz yorum yok. Sohbeti sen başlat!",
|
||||||
'comments.placeholder': "Yorum yaz…",
|
'comments.placeholder': "Yorum yaz…",
|
||||||
'comments.send': "Gönder",
|
'comments.send': "Gönder",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': 'Tập {ep} · tập cuối',
|
'release.episodeFinal': 'Tập {ep} · tập cuối',
|
||||||
'release.filmJapan': 'Phim chiếu tại Nhật',
|
'release.filmJapan': 'Phim chiếu tại Nhật',
|
||||||
|
|
||||||
'card.ep': 'Tập {n}',
|
|
||||||
'card.plusOne': '+1 tập cho {title}',
|
'card.plusOne': '+1 tập cho {title}',
|
||||||
'card.open': 'Mở {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.warning': "Bài đánh giá này có tiết lộ nội dung",
|
||||||
'spoiler.show': "Hiện nội dung",
|
'spoiler.show': "Hiện nội dung",
|
||||||
'spoiler.badge': "Spoiler",
|
'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.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.placeholder': "Viết bình luận…",
|
||||||
'comments.send': "Gửi",
|
'comments.send': "Gửi",
|
||||||
|
|||||||
@@ -136,7 +136,6 @@ const dict: Translations = {
|
|||||||
'release.episodeFinal': '第{ep}集 · 大结局',
|
'release.episodeFinal': '第{ep}集 · 大结局',
|
||||||
'release.filmJapan': '日本上映电影',
|
'release.filmJapan': '日本上映电影',
|
||||||
|
|
||||||
'card.ep': '第{n}集',
|
|
||||||
'card.plusOne': '《{title}》+1集',
|
'card.plusOne': '《{title}》+1集',
|
||||||
'card.open': '打开《{title}》',
|
'card.open': '打开《{title}》',
|
||||||
|
|
||||||
@@ -1022,7 +1021,6 @@ const dict: Translations = {
|
|||||||
'spoiler.warning': "此评论包含剧透",
|
'spoiler.warning': "此评论包含剧透",
|
||||||
'spoiler.show': "显示剧透",
|
'spoiler.show': "显示剧透",
|
||||||
'spoiler.badge': "剧透",
|
'spoiler.badge': "剧透",
|
||||||
'comments.title': "评论",
|
|
||||||
'comments.none': "还没有评论,来开启讨论吧!",
|
'comments.none': "还没有评论,来开启讨论吧!",
|
||||||
'comments.placeholder': "写评论…",
|
'comments.placeholder': "写评论…",
|
||||||
'comments.send': "发送",
|
'comments.send': "发送",
|
||||||
|
|||||||
+1
-4
@@ -6,7 +6,6 @@ import { convertLegacyBackup, isLegacyBackup } from './legacyImport'
|
|||||||
import { cleanThemeMode } from './theme'
|
import { cleanThemeMode } from './theme'
|
||||||
import {
|
import {
|
||||||
cleanText,
|
cleanText,
|
||||||
isHexColor,
|
|
||||||
isPlainObject,
|
isPlainObject,
|
||||||
isSafeExternalId,
|
isSafeExternalId,
|
||||||
isSafeId,
|
isSafeId,
|
||||||
@@ -158,8 +157,6 @@ export function normalizeSettings(raw: unknown): Partial<Settings> | undefined {
|
|||||||
if (!isPlainObject(raw)) return undefined
|
if (!isPlainObject(raw)) return undefined
|
||||||
const out: Partial<Settings> = {}
|
const out: Partial<Settings> = {}
|
||||||
if (Array.isArray(raw.topCategories)) out.topCategories = ALL_TOP_CATEGORIES.filter((c) => (raw.topCategories as unknown[]).includes(c))
|
if (Array.isArray(raw.topCategories)) out.topCategories = ALL_TOP_CATEGORIES.filter((c) => (raw.topCategories as unknown[]).includes(c))
|
||||||
// Couleur d'accent : plus réglable, gardée seulement pour ne pas casser les sauvegardes et la synchro
|
|
||||||
if (isHexColor(raw.accentColor)) out.accentColor = raw.accentColor.toLowerCase()
|
|
||||||
const themeMode = cleanThemeMode(raw.themeMode)
|
const themeMode = cleanThemeMode(raw.themeMode)
|
||||||
if (themeMode) out.themeMode = themeMode
|
if (themeMode) out.themeMode = themeMode
|
||||||
if (Array.isArray(raw.statsHiddenMonths)) {
|
if (Array.isArray(raw.statsHiddenMonths)) {
|
||||||
@@ -185,7 +182,7 @@ export function buildBackup(items: MediaItem[], settings: Settings, lists: Custo
|
|||||||
*/
|
*/
|
||||||
export async function exportBackup(items: MediaItem[], settings: Settings, lists: CustomList[] = []): Promise<'shared' | 'downloaded'> {
|
export async function exportBackup(items: MediaItem[], settings: Settings, lists: CustomList[] = []): Promise<'shared' | 'downloaded'> {
|
||||||
const json = JSON.stringify(buildBackup(items, settings, lists), null, 2)
|
const json = JSON.stringify(buildBackup(items, settings, lists), null, 2)
|
||||||
const filename = `kino-sauvegarde-${todayISO()}.json`
|
const filename = `bobinoo-sauvegarde-${todayISO()}.json`
|
||||||
const file = new File([json], filename, { type: 'application/json' })
|
const file = new File([json], filename, { type: 'application/json' })
|
||||||
|
|
||||||
const isTouch = window.matchMedia?.('(pointer: coarse)').matches
|
const isTouch = window.matchMedia?.('(pointer: coarse)').matches
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import { cloudFetch } from './api'
|
|||||||
* En cas de conflit, la modification la plus récente gagne (vérifié aussi par la base).
|
* En cas de conflit, la modification la plus récente gagne (vérifié aussi par la base).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export type SyncedSettings = Pick<Settings, 'topCategories' | 'accentColor' | 'themeMode' | 'statsHiddenMonths'>
|
export type SyncedSettings = Pick<Settings, 'topCategories' | 'themeMode' | 'statsHiddenMonths'>
|
||||||
|
|
||||||
export interface SyncHooks {
|
export interface SyncHooks {
|
||||||
getLists: () => CustomList[]
|
getLists: () => CustomList[]
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
/**
|
|
||||||
* Les notifications ont été retirées de l'app (novembre 2026).
|
|
||||||
* Un appareil qui les avait activées garde un abonnement dans son navigateur : on le résilie
|
|
||||||
* au lancement, pour qu'il ne reste rien. Le serveur, lui, n'en envoie plus aucune.
|
|
||||||
*/
|
|
||||||
export async function dropPushSubscription(): Promise<void> {
|
|
||||||
try {
|
|
||||||
if (!('serviceWorker' in navigator) || !('PushManager' in window)) return
|
|
||||||
const reg = await navigator.serviceWorker.getRegistration()
|
|
||||||
const sub = await reg?.pushManager.getSubscription()
|
|
||||||
await sub?.unsubscribe()
|
|
||||||
} catch {
|
|
||||||
/* rien à faire */
|
|
||||||
}
|
|
||||||
// Ancien état local des notifications push
|
|
||||||
try {
|
|
||||||
for (const k of Object.keys(localStorage)) if (/^azuucine:(?:[^:]+:)?push$/.test(k)) localStorage.removeItem(k)
|
|
||||||
} catch {
|
|
||||||
/* stockage indisponible */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,6 @@ import type { MediaItem } from '../types'
|
|||||||
import { TYPE_BY_VALUE } from './constants'
|
import { TYPE_BY_VALUE } from './constants'
|
||||||
import { episodeCap } from './franchise'
|
import { episodeCap } from './franchise'
|
||||||
import { safePosterUrl } from './security'
|
import { safePosterUrl } from './security'
|
||||||
import { formatRating } from './utils'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Génère des images à partager (story / message) directement dans le navigateur,
|
* Génère des images à partager (story / message) directement dans le navigateur,
|
||||||
@@ -454,4 +453,4 @@ export const slug = (s: string) =>
|
|||||||
.toLowerCase()
|
.toLowerCase()
|
||||||
.replace(/[^a-z0-9]+/g, '-')
|
.replace(/[^a-z0-9]+/g, '-')
|
||||||
.replace(/^-|-$/g, '')
|
.replace(/^-|-$/g, '')
|
||||||
.slice(0, 40) || 'kino'
|
.slice(0, 40) || 'bobinoo'
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { genreLabel, subtypeLabel } from '../lib/genres'
|
import { genreLabel, subtypeLabel } from '../lib/genres'
|
||||||
import { locale, t } from '../i18n'
|
import { locale, t } from '../i18n'
|
||||||
import { CheckSquare, Hash, Heart, Search, SlidersHorizontal, X } from 'lucide-react'
|
import { CheckSquare, Hash, Heart, Search, SlidersHorizontal, X } from 'lucide-react'
|
||||||
import { useDeferredValue, useEffect, useMemo, useState } from 'react'
|
import { useDeferredValue, useEffect, useMemo, useRef, useState } from 'react'
|
||||||
import { StatusDot } from '../components/Badges'
|
import { StatusDot } from '../components/Badges'
|
||||||
import JournalView from '../components/JournalView'
|
import JournalView from '../components/JournalView'
|
||||||
import ListsView from '../components/ListsView'
|
import ListsView from '../components/ListsView'
|
||||||
@@ -31,8 +31,10 @@ interface Props {
|
|||||||
onAdd: () => void
|
onAdd: () => void
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const GRID_STEP = 60
|
||||||
|
|
||||||
export default function CatalogPage({ onOpen, onAdd }: 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 [view, setView] = useState<'titles' | 'journal' | 'lists'>('titles')
|
||||||
const [query, setQuery] = useState('')
|
const [query, setQuery] = useState('')
|
||||||
const [types, setTypes] = useState<Set<MediaType>>(new Set())
|
const [types, setTypes] = useState<Set<MediaType>>(new Set())
|
||||||
@@ -120,6 +122,18 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Fiches sélectionnées encore présentes (une fiche a pu être supprimée entre-temps)
|
// Fiches sélectionnées encore présentes (une fiche a pu être supprimée entre-temps)
|
||||||
|
// Grille affichée par tranches : une grande bibliothèque ne dessine pas des centaines de cartes d'un coup
|
||||||
|
const [gridCount, setGridCount] = useState(GRID_STEP)
|
||||||
|
// Retour au début seulement quand la recherche ou les filtres changent (pas quand une fiche bouge : +1, note…)
|
||||||
|
useEffect(() => setGridCount(GRID_STEP), [deferredQuery, types, status, genre, minRating, favOnly, tag, sort])
|
||||||
|
const more = useRef<HTMLDivElement>(null)
|
||||||
|
useEffect(() => {
|
||||||
|
const el = more.current
|
||||||
|
if (!el || gridCount >= results.length) return
|
||||||
|
const io = new IntersectionObserver((e) => e[0]?.isIntersecting && setGridCount((n) => n + GRID_STEP), { rootMargin: '1200px 0px' })
|
||||||
|
io.observe(el)
|
||||||
|
return () => io.disconnect()
|
||||||
|
}, [gridCount, results.length])
|
||||||
const selected = useMemo(() => (selection ? items.filter((i) => selection.has(i.id)) : []), [items, selection])
|
const selected = useMemo(() => (selection ? items.filter((i) => selection.has(i.id)) : []), [items, selection])
|
||||||
const allShownSelected = selecting && results.length > 0 && results.every((i) => selection.has(i.id))
|
const allShownSelected = selecting && results.length > 0 && results.every((i) => selection.has(i.id))
|
||||||
|
|
||||||
@@ -314,7 +328,7 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
|||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<div className="mt-3 grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
|
<div className="mt-3 grid grid-cols-2 gap-x-3.5 gap-y-6 sm:grid-cols-3 lg:grid-cols-5 xl:grid-cols-6 2xl:grid-cols-8">
|
||||||
{results.map((item) => (
|
{results.slice(0, gridCount).map((item) => (
|
||||||
<SelectableCard
|
<SelectableCard
|
||||||
key={item.id}
|
key={item.id}
|
||||||
title={item.title}
|
title={item.title}
|
||||||
@@ -328,6 +342,7 @@ export default function CatalogPage({ onOpen, onAdd }: Props) {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{gridCount < results.length && <div ref={more} className="h-px" aria-hidden="true" />}
|
||||||
{selecting && <SelectionBar selected={selected} onDone={exitSelection} />}
|
{selecting && <SelectionBar selected={selected} onDone={exitSelection} />}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
|||||||
+5
-5
@@ -35,7 +35,7 @@ function persistLists(lists: CustomList[]) {
|
|||||||
/* ignore */
|
/* ignore */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const DEFAULT_SETTINGS: Settings = { topCategories: ALL_TOP_CATEGORIES, accentColor: '#f0a63a', themeMode: 'auto' }
|
const DEFAULT_SETTINGS: Settings = { topCategories: ALL_TOP_CATEGORIES, themeMode: 'auto' }
|
||||||
|
|
||||||
/** Relit les réglages en ne gardant que des valeurs valides (le localStorage peut avoir été modifié). */
|
/** Relit les réglages en ne gardant que des valeurs valides (le localStorage peut avoir été modifié). */
|
||||||
function loadSettings(): Settings {
|
function loadSettings(): Settings {
|
||||||
@@ -242,9 +242,9 @@ export function MediaProvider({
|
|||||||
getLists: () => listsRef.current,
|
getLists: () => listsRef.current,
|
||||||
applyLists: (next) => setLists(() => next, true),
|
applyLists: (next) => setLists(() => next, true),
|
||||||
getSettings: () => {
|
getSettings: () => {
|
||||||
const { topCategories, accentColor, themeMode, statsHiddenMonths } = settingsRef.current
|
const { topCategories, themeMode, statsHiddenMonths } = settingsRef.current
|
||||||
// Mois masqués : liste vide plutôt qu'absente, sinon « tout réafficher » ne partirait jamais au serveur
|
// Mois masqués : liste vide plutôt qu'absente, sinon « tout réafficher » ne partirait jamais au serveur
|
||||||
return { topCategories, accentColor, themeMode, statsHiddenMonths: statsHiddenMonths ?? [] }
|
return { topCategories, themeMode, statsHiddenMonths: statsHiddenMonths ?? [] }
|
||||||
},
|
},
|
||||||
applySettings: (patch) => updateSettingsRef.current(patch, true),
|
applySettings: (patch) => updateSettingsRef.current(patch, true),
|
||||||
itemsChanged: () => void reloadItems().catch(() => {}),
|
itemsChanged: () => void reloadItems().catch(() => {}),
|
||||||
@@ -285,7 +285,7 @@ export function MediaProvider({
|
|||||||
}, [settings.themeMode])
|
}, [settings.themeMode])
|
||||||
|
|
||||||
const updateSettings = useCallback((patch: Partial<Settings>, silent = false) => {
|
const updateSettings = useCallback((patch: Partial<Settings>, silent = false) => {
|
||||||
if (!silent && syncRef.current && ('topCategories' in patch || 'accentColor' in patch || 'themeMode' in patch || 'statsHiddenMonths' in patch)) syncRef.current.markSettings()
|
if (!silent && syncRef.current && ('topCategories' in patch || 'themeMode' in patch || 'statsHiddenMonths' in patch)) syncRef.current.markSettings()
|
||||||
setSettings((prev) => {
|
setSettings((prev) => {
|
||||||
const next = { ...prev, ...patch }
|
const next = { ...prev, ...patch }
|
||||||
try {
|
try {
|
||||||
@@ -574,7 +574,7 @@ export function MediaProvider({
|
|||||||
const current = settingsRef.current
|
const current = settingsRef.current
|
||||||
const merged = oldSettings
|
const merged = oldSettings
|
||||||
const patch: Partial<Settings> = {}
|
const patch: Partial<Settings> = {}
|
||||||
for (const k of ['topCategories', 'accentColor', 'themeMode'] as const) {
|
for (const k of ['topCategories', 'themeMode'] as const) {
|
||||||
if (mine[k] === undefined && merged[k] !== undefined) Object.assign(patch, { [k]: merged[k] })
|
if (mine[k] === undefined && merged[k] !== undefined) Object.assign(patch, { [k]: merged[k] })
|
||||||
}
|
}
|
||||||
if (oldSettings.statsHiddenMonths?.length) patch.statsHiddenMonths = [...new Set([...(current.statsHiddenMonths ?? []), ...oldSettings.statsHiddenMonths])].sort()
|
if (oldSettings.statsHiddenMonths?.length) patch.statsHiddenMonths = [...new Set([...(current.statsHiddenMonths ?? []), ...oldSettings.statsHiddenMonths])].sort()
|
||||||
|
|||||||
@@ -105,8 +105,6 @@ export interface Settings {
|
|||||||
tmdbKey?: string
|
tmdbKey?: string
|
||||||
/** Catégories de Top 5 affichées sur l'accueil (toutes par défaut). */
|
/** Catégories de Top 5 affichées sur l'accueil (toutes par défaut). */
|
||||||
topCategories: TopCategory[]
|
topCategories: TopCategory[]
|
||||||
/** Ancienne couleur d'accent (plus réglable), gardée pour la compatibilité des sauvegardes et de la synchro. */
|
|
||||||
accentColor: string
|
|
||||||
/** Apparence (clair ou sombre). « auto » suit le navigateur. */
|
/** Apparence (clair ou sombre). « auto » suit le navigateur. */
|
||||||
themeMode: ThemeMode
|
themeMode: ThemeMode
|
||||||
/** Mois masqués dans la courbe des stats (AAAA-MM), ex. le mois où j'ai tout ajouté d'un coup. */
|
/** Mois masqués dans la courbe des stats (AAAA-MM), ex. le mois où j'ai tout ajouté d'un coup. */
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
-- Bobinoo — ménage du 28 novembre 2026 : restes des anciennes notifications (push, commentaires,
|
||||||
|
-- invitations de listes, épisodes). Idempotent. Seules les notifications d'abonnement subsistent.
|
||||||
|
|
||||||
|
-- 1) Les fonctions qui appelaient azuu_notify (qui ne faisait plus rien) ou nettoyaient des
|
||||||
|
-- notifications d'invitation (plus jamais créées) : on retire seulement ces lignes, le reste est inchangé.
|
||||||
|
do $$
|
||||||
|
declare
|
||||||
|
f text;
|
||||||
|
def text;
|
||||||
|
cleaned text;
|
||||||
|
begin
|
||||||
|
foreach f in array array[
|
||||||
|
'public.add_review_comment(uuid,text,text)',
|
||||||
|
'public.invite_to_shared_list(uuid,uuid)',
|
||||||
|
'public.delete_shared_list(uuid)',
|
||||||
|
'public.leave_shared_list(uuid)',
|
||||||
|
'public.remove_shared_list_member(uuid,uuid)',
|
||||||
|
'public.respond_shared_list_invite(uuid,boolean)'
|
||||||
|
] loop
|
||||||
|
if to_regprocedure(f) is null then continue; end if;
|
||||||
|
def := pg_get_functiondef(to_regprocedure(f));
|
||||||
|
cleaned := regexp_replace(def, '[ \t]*if n > 0 then\s*perform public\.azuu_notify\([^;]*\);\s*end if;[ \t]*\r?\n', '', 'g');
|
||||||
|
cleaned := regexp_replace(cleaned, '[ \t]*--[^\n]*\r?\n[ \t]*perform public\.azuu_notify\([^;]*\);[ \t]*\r?\n', '', 'g');
|
||||||
|
cleaned := regexp_replace(cleaned, '[ \t]*perform public\.azuu_notify\([^;]*\);[ \t]*\r?\n', '', 'g');
|
||||||
|
cleaned := regexp_replace(cleaned, '[ \t]*delete from public\.notifications [^;]*shared_list_invite[^;]*;[ \t]*\r?\n', '', 'g');
|
||||||
|
if cleaned <> def then execute cleaned; end if;
|
||||||
|
end loop;
|
||||||
|
end $$;
|
||||||
|
|
||||||
|
-- 2) Plus aucun appel : la fonction vide disparaît
|
||||||
|
do $$ begin
|
||||||
|
if not exists (
|
||||||
|
select 1 from pg_proc p join pg_namespace n on n.oid = p.pronamespace
|
||||||
|
where n.nspname = 'public' and p.proname <> 'azuu_notify' and p.prosrc ~ '\mazuu_notify\M'
|
||||||
|
) then
|
||||||
|
drop function if exists public.azuu_notify(uuid, text, uuid, text, text);
|
||||||
|
end if;
|
||||||
|
end $$;
|
||||||
|
|
||||||
|
-- 3) Table des notifications réduite à ce qui sert (abonnements) : anciennes colonnes et index retirés
|
||||||
|
delete from public.notifications where kind not in ('new_follower', 'follow_request', 'unfollow', 'follow_accepted');
|
||||||
|
alter table public.notifications drop constraint if exists notifications_kind_check;
|
||||||
|
alter table public.notifications add constraint notifications_kind_check
|
||||||
|
check (kind in ('new_follower', 'follow_request', 'unfollow', 'follow_accepted'));
|
||||||
|
drop index if exists public.notifications_unpushed_idx;
|
||||||
|
drop index if exists public.notifications_dedup_idx;
|
||||||
|
alter table public.notifications
|
||||||
|
drop column if exists item_id,
|
||||||
|
drop column if exists emoji,
|
||||||
|
drop column if exists episode,
|
||||||
|
drop column if exists ep_count,
|
||||||
|
drop column if exists dedup,
|
||||||
|
drop column if exists pushed_at;
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
-- Bobinoo — index pour les notifications d'abonnement (le déclencheur cherche par compte + personne). Idempotent.
|
||||||
|
create index if not exists notifications_user_actor_idx on public.notifications (user_id, actor_id);
|
||||||
|
create index if not exists notifications_actor_idx on public.notifications (actor_id);
|
||||||
@@ -6,6 +6,9 @@
|
|||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"jsx": "react-jsx",
|
"jsx": "react-jsx",
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
"noUnusedLocals": true,
|
||||||
|
"noUnusedParameters": true,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
"isolatedModules": true,
|
"isolatedModules": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
|
|||||||
@@ -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"}
|
|
||||||
Reference in new issue
Block a user