main
6
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3b1b17ebf1 |
fix(qodana): clear the first run's findings
The first Qodana run found 74 problems in TypeScript / JavaScript and 12 in Rust. Fixed: - React 19.3 deprecates `FormEvent`: the three save forms take the `SubmitEvent` their `onSubmit` hands them. - The URL patterns read `\S` instead of `[^\s]` (18 patterns in platforms.ts and playtest-platforms.ts, same characters). - public/theme-init.js declares its browser globals and drops an unused catch binding. - The two private `stable()` JSON helpers (restore.ts, library-apply.ts) become one `stableJson()` in src/utils/stable-json.ts, with a test. - vitest.config.ts reuses vite.config.ts's alias map instead of a copy. - Accordion destructures `icon` as `Icon` instead of copying it, a JSDoc link points at nothing any more, and i18next's `init()` promise is `void`ed on purpose. - Rust: the three "show the main window" blocks become `show_main_window`. Excluded in qodana.yaml, each with its reason: the Discord webhook secret reference (HardcodedPasswords), escaped `]` / `}` in regexes, the `@i18n/index` imports tsconfig needs, the three react-hooks warnings eslint.config.js documents, the legacy `@deprecated` draft fields in the files that migrate them; in src-tauri/qodana.yaml the module paths `generate_handler!` needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
c46c7a4588 |
feat(settings): option to hide scrollbars
Settings › Appearance › Hide scrollbars removes every scrollbar in the app; the mouse wheel, touchpad, touch and keyboard still scroll. - hideScrollbars setting (default off), coerced to a boolean by healSettings; portable like the theme, no store version bump (the heal back-fills it, and older builds can still read newer backups) - applied as <html class="hide-scrollbars">: theme-init.js before first paint, main.tsx at boot, an App store subscription afterwards (the toggle, a restored backup and its undo) - unlayered CSS beats .scrollbar-thin: scrollbar-width: none on every element for Chromium and Firefox, ::-webkit-scrollbar for the WebKit webviews on macOS and Linux - labels in 8 locales Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
5ced6b4a86 |
feat(web): Turnstile gate, in-site legal pages and clean URLs on ytgenerator.stream
A Worker (worker/) now sits in front of the static build, configured from the same wrangler.jsonc. Cloudflare builds and deploys it; nothing in GitHub Actions does. Gate - First visit shows a branded check page (8 languages, Accept-Language) with Cloudflare Turnstile. The token is verified server-side against TURNSTILE_SECRET: success, hostname, action "enter", age <= 300 s. Only Cloudflare's own test-key results skip the hostname/action check, so `npm run cf:dev` works with the published test keys. - Pass -> `__Host-ytg_gate` (HttpOnly, Secure, SameSite=Lax, 24 h): an HMAC over expiry + a user-agent hash, keyed from the Turnstile secret, so no second secret exists and a cookie copied into a scraper is useless. - The page reloads in place instead of redirecting, so there is no `next` parameter to open-redirect with; /__gate/status lets the page tell a cookie-blocking browser what is wrong instead of looping; after one failure it waits for a click rather than resubmitting. - Missing secret = deployment mistake: the site stays up without the gate and the Worker logs it, instead of locking every visitor out. - The agree box on the gate records `ytg_terms`, which the app reads on boot so web visitors meet one blocking screen, not two. Headers and static files - worker/headers.ts sets CSP (nonce + strict-dynamic on the gate, no script at all on legal pages), nosniff, Referrer-Policy, Permissions-Policy, COOP, CORP, X-Frame-Options on everything the Worker returns; _headers covers the files served directly; a test keeps the two baselines identical. - `not_found_handling: "404-page"` (a static 404.html) instead of the SPA fallback, which would have handed index.html past the gate for any excluded path. The Worker serves the shell itself by fetching "/" - not "/index.html", which html_handling would 307 back to the home page. - security.txt (RFC 9116) is generated per build so Expires stays ~6 months ahead; the Web Analytics beacon is injected into the web build only. - theme-init.js applies the saved theme before first paint (no inline script). Legal in-site - build-plugins/legal-docs.ts renders TERMS, PRIVACY, DISCLAIMER (+ vi), LICENSE, THIRD_PARTY_NOTICES, SECURITY, NOTICE and CODE_OF_CONDUCT at build time into static /legal pages (public, before the gate) and a lazy `virtual:legal-docs` module for the in-app Legal Center, which works offline on desktop and Android and never leaves the webview. - PRIVACY, TERMS and SECURITY rewritten for Cloudflare hosting, Turnstile, Web Analytics and the two cookies; contacts moved to the poli0981.dev aliases (privacy@, legal@, dmca@, copyright@, security@, code@). - CURRENT_TERMS_VERSION 1 -> 2: the Privacy Policy changed materially. App - Web uses BrowserRouter (real paths; analytics can count them), Tauri keeps HashRouter; old /#/x bookmarks are rewritten to /x before the router reads them. Consent is a layout route; /legal sits outside it. - <html lang> follows the UI language; a stale chunk after a deploy triggers one reload instead of an error page. .gitattributes pins LF everywhere so Windows checkouts stop failing Prettier. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
1fc939b711 |
fix(web): serve from ytgenerator.stream root and retire the GitHub Pages deploy
The Worker connected to ytgenerator.stream was serving a build made for the GitHub Pages sub-path: index.html asked for /youtube-generator/assets/*.js, the SPA fallback answered every one of those with index.html, and the site loaded blank. Both builds are now served from `/`. - vite.config.ts: base "/" for web and Tauri alike. - wrangler.jsonc: the one Cloudflare file in the repo. Assets-only for now (dist/, SPA fallback, custom domain declared so `wrangler deploy` never detaches it, workers.dev off, build.command runs `npm run build`). - public/_headers: CSP, nosniff, Referrer-Policy, Permissions-Policy, COOP, X-Frame-Options; immutable caching for hashed /assets/*. No HSTS - the zone edge already sends it with preload. - index.html, manifest, robots, sitemap: canonical/OG/JSON-LD on the new domain, pt-BR and id added to the locale metadata, Android listed. - Brand: one SVG source in assets/brand/ now drives the favicon, the PWA icons (192/512/maskable), apple-touch-icon, a 1200x630 link-preview card and every Tauri desktop/Android/iOS icon. The desktop and Android apps had been shipping a flat indigo placeholder square; manifest and index.html pointed at four PNGs that did not exist. `npm run generate:brand` re-renders the web images; the Android adaptive icon gets a glyph-only foreground on the brand colour instead of a tile on a white disc. - deploy-web.yml and notify-deploy.yml removed, .nojekyll dropped. The last Pages deployment stays online untouched until the data-migration page replaces it. - .node-version pins Node 22 for Workers Builds; wrangler, @tauri-apps/cli and @resvg/resvg-js are pinned dev dependencies (`npm run cf:dev`, `npm run cf:check` for a dry-run deploy). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ebb819eec9 |
feat(v0.13.1): hotfix bundle — workflows, donate/dev surfaces, SEO, horror warnings
- workflows: narrow notify-* triggers to specific producer names so non-matching
workflow_run events don't instantiate a run (kills the Actions tab Skipped spam)
- workflows: auto-link each published release to a GitHub Discussion under
Announcements via a new link-discussion job before the Discord announce
- repo: add FUNDING.yml + ISSUE_TEMPLATE/{config,bug_report,feature_request}.yml
- docs: add docs/pc_spec.md, docs/dev_env.md (+ VI mirrors) and webapp/TAURI.md
- about: restructure AboutPage with Donate / Dev Environment sections, expanded
socials (Bluesky, Mastodon, Steam, Telegram bot+user, email, game Discord);
Ko-fi / Patreon moved from ABOUT.socials to new @config/donate
- header: persistent Donate button (Ko-fi) left of the language switcher
- sidebar: external Report Bug item linking directly to the bug_report template
- seo: full <head> metadata (description, OG, Twitter card, JSON-LD
WebApplication, 6 locale alternates), per-route useDocumentTitle hook applied
to all 9 pages, robots.txt, sitemap.xml, manifest.webmanifest, placeholder
favicon.svg
- warnings: new "horror_specific" group with 7 IDs (eye_horror, body_horror,
face_horror, cosmic_horror, extreme_gore, decay_rot, mutilation), localized
to en/vi/ja/es/ko/zh in both ui.json and templates.json
Additive only — no breaking changes to the engine, store schema, or persisted
content-warning IDs. _schema.json updated to reflect new keys.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|
|
58d7a94ca7 |
feat(v0.10): Pub/Dev tag, GH Pages base-path fix, vertical sidebar + About page (#44)
* fix(deploy): correct GH Pages base path to /youtube-generator/ The deployed site at https://poli0981.github.io/youtube-generator/ was serving a blank page because Vite's base was hardcoded to /yt-desc-gen/ (an old project name). Every asset request 404'd. The actual GitHub repo is poli0981/youtube-generator, confirmed by the Pages deploy log: "Evaluated environment url: https://poli0981.github.io/youtube-generator/". Aligning the Vite base unblocks the live web build. Also adds an empty public/.nojekyll so Vite copies it into dist/ — defensive against future bundle filenames Jekyll might skip. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * feat(editor): add Pub/Dev Name field that emits a YouTube tag When the Publisher / Developer site URL is filled in, a free-text "Pub/Dev Name" input now appears underneath. Whatever the user types becomes a bare YouTube tag (e.g. "Ubisoft", "FromSoftware") via the tag generator — so SEO-relevant publisher names enter the tag pool without inflating the description. The new field is independent from the existing sponsorName/sponsorPlatform pair, which still drive the description's "🎁 Thanks to …" line — that flow is unchanged. Different semantic, different output. - Schema bumped to v8 with an additive migration (empty-string default). - Tag generator gates on a non-empty trim, reuses tagFriendlyGameName for the 30-char per-tag limit, and lets the existing dedup pass collapse case-insensitive duplicates against any future tag source. - All 6 locales (en/vi/ja/es/ko/zh) translated; validate:locales clean. - 4 new tag-generator tests cover emission, empty/whitespace skip, dedup vs sponsorName, and over-long truncation. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * feat(v0.10): vertical collapsible sidebar + About page Reworks the app shell from a horizontal top tab bar into a vertical sidebar with a hamburger collapse toggle, and adds a new /about route with app metadata, third-party credits, and configurable social links. Sidebar - TabBar.tsx renamed to Sidebar.tsx (vertical NavLink list, lucide PanelLeftClose / PanelLeftOpen, w-56 ↔ w-14 width transition). - AppShell switched from `flex flex-col` to a left-sidebar / right-pane layout; Header stays at the top of the right pane. - Collapsed state persisted via a new `sidebarCollapsed` field in the settings store (v7 → v8, additive — healSettings back-fills the default through the existing initialSettings spread). - Ctrl+B toggles the sidebar (VS Code convention); shortcut surfaced in the keyboard help cheatsheet. About page - New `/about` lazy route. Page reads from a new `src/config/about.ts` (app name, version pulled live from package.json, repo + issues + author + license URLs, and placeholder social URLs that hide their rows when blank). YouTube channel left blank with a TODO marker — fill in before tagging the v0.10 release. - Third-party credits sourced from a new `src/config/third-party.ts` with versions read from package.json deps so npm installs keep the list honest. License + project URL hardcoded. i18n - All 6 locales (en/vi/ja/es/ko/zh) updated with `tabs.about`, the new `sidebar.{expand,collapse}` block, the full `about.*` namespace including `about.socials.*`, and `shortcuts.toggleSidebar`. validate:locales clean at 448/448 keys. Version bumped to 0.10.0. shadcn/ui evaluated and skipped — would have forced a 10+ component retrofit and a token-system swap for one feature. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(about): fill in social links (YouTube/X/Discord/Ko-fi/Patreon) Replaces the TODO placeholders with the channel's actual URLs so the About page's Connect section renders all five rows. Empty entries would have hidden silently — wiring the real links is what the page was waiting on before the v0.10 release. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |