mirror of
https://github.com/IliesAllali/parenthese.git
synced 2026-11-15 08:32:03 +00:00
Le champ « Un lien YouTube » acceptait tout lien en youtube.com, mais la visionneuse ne lisait que watch?v= et youtu.be : un lien d'intégration (/embed/), un Short ou un direct s'enregistrait puis s'affichait « Lien YouTube invalide », et le code <iframe> du bouton Intégrer était refusé. Une seule fonction (utils/youtube.js) retrouve l'identifiant de la vidéo dans le lien de la barre d'adresse, de partage, d'intégration, nocookie, un Short, un direct ou le code <iframe> complet. La saisie enregistre toujours le lien watch?v= et la visionneuse s'appuie sur la même fonction, donc les liens /embed/ déjà enregistrés se lisent aussi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.