feat(channel): page details chaine multi-providers avec onglets et infinite scroll
CI / build-and-test (push) Successful in 13m34s

- Strategy Pattern front: ChannelProviderInterface + 6 providers (yt/dm/tw/pt/od/ru) + factory (ids longs/courts)
- ChannelContentService: cache par onglet/tri/recherche (TTL 5min), pagination nextPage
- ChannelPage: header (banniere/avatar/subs/description ...plus), tabs dynamiques par capabilities, grilles videos/shorts 9:16/playlists/live, recherche debounced, tri recent/populaire, infinite scroll IntersectionObserver, skeletons/empty/error
- Backend: GET /api/channels/:provider/:id/content (videos/shorts/playlists/live) natif par provider
This commit is contained in:
2026-09-25 10:15:12 -04:00
parent fe35340948
commit 97e5de74f5
147 changed files with 7954 additions and 77497 deletions
+14 -3
View File
@@ -4,6 +4,16 @@ FROM node:20-alpine
# Créez le répertoire de l'application
WORKDIR /app
# Dépendances système AVANT npm install :
# - `python` (+ lien symbolique python3→python) : requis par le preinstall
# de youtube-dl-exec (sinon "youtube-dl-exec needs Python" et build KO) ;
# - curl_cffi : bypass Cloudflare pour le scraper Rumble. Sans lui, les pages
# /search/* de Rumble retournent 403 "Just a moment" et les blocs Rumble des
# pages de thèmes restent vides.
RUN apk add --no-cache python3 py3-pip \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& pip install --no-cache --break-system-packages curl_cffi
# D'abord, copiez uniquement les fichiers nécessaires pour l'installation
COPY package*.json ./
@@ -22,9 +32,10 @@ EXPOSE 4000
# Commande de démarrage
CMD ["node", "server/index.mjs"]
# Add a HEALTHCHECK for NGINX
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
CMD curl -f http://localhost/ || exit 1
# L'API écoute sur $PORT (4000 par défaut) : le healthcheck doit la viser
# (l'ancienne forme `http://localhost/` visait le port 80 et restait unhealthy).
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
CMD wget -q -O /dev/null http://localhost:4000/api/health || exit 1
# FROM nginx:alpine