The auto-hook was burned into the canonical clip in place, so editing the hook stacked a second overlay on top of the first. Hooks now follow the exact derivation pattern captions use: - main.py: auto_hook_clip writes hooked_<ts>_<clean>.mp4 next to the clean canonical instead of mutating it; captions burn on top of the hooked file (subtitled_<ts>_hooked_<ts>_<clean>). Watermark moves BEFORE the hook so the branding lives in the canonical and survives hook replacement. - app.py: _strip_burned_hook walks hooked_/legacy hook_ prefixes back like _strip_burned_captions; /api/hook strips captions AND the old hook before burning, so a new hook always REPLACES the previous one. New remove flag strips the hook entirely (captions re-applied, no metering). Burned hook recorded/cleared in clip metadata (auto_hook key) and returned as burned_hook. _canonical_clip_file resolves hooked_*/hook_* derivations. - cloud/videos.py: archive the hooked_ intermediate of a captioned hook so restored projects keep the walk-back chain editable. - ResultCard: stripBurns knows hooked_<ts>_ (the Remotion preview now composes over the truly clean clip — no more stacked preview), burned hook tracked in state, remove handler wired to the modal. - HookModal: warning now says replace, plus a 'remove hook from clip' action when one is burned. |
||
|---|---|---|
| .. | ||
| public | ||
| seo | ||
| src | ||
| .gitignore | ||
| Dockerfile | ||
| eslint.config.js | ||
| index.html | ||
| nginx.conf | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| README.md | ||
| tailwind.config.js | ||
| vite-plugin-seo.js | ||
| vite.config.js | ||
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.