Compare commits

..
30 Commits
Author SHA1 Message Date
poli0981 9d17d66d29 Merge pull request 'chore(release): v1.7.0' (#4) from chore/release-1.7.0 into main
Compliance / pr-title (push) Skipped
Reusable / Security / .NET (NuGetAudit) (push) Skipped
CI / check (push) Successful in 42s
Compliance / reuse (push) Successful in 47s
Rust / lint-and-test (push) Successful in 3m26s
Qodana / tokens (push) Successful in 2s
Security / workflow-lint (push) Successful in 46s
Reusable / Security / Secrets (gitleaks) (push) Successful in 10s
Reusable / Security / SAST (Opengrep) (push) Successful in 22s
Reusable / Security / Dependencies (osv-scanner) (push) Successful in 17s
Reusable / Security / Rust (cargo-deny) (push) Successful in 27s
Security / scan (push) Successful in 1m17s
CI / deploy (push) Successful in 44s
Release / Verify (push) Successful in 33s
Release / Build (Linux) (push) Successful in 2m40s
Release / Build (Android) (push) Successful in 7m8s
Qodana / typescript (push) Successful in 2m36s
Qodana / rust (push) Successful in 15m6s
Reusable / Qodana / Qodana (push) Successful in 15m6s
Release / Build (Windows) (push) Successful in 4m9s
Release / Assemble (checksums, notes) (push) Successful in 46s
Reusable / Publish to R2 / publish (push) Successful in 35s
Release / Publish to R2 (push) Successful in 35s
Release / Gitea release (draft, notes + links) (push) Successful in 6s
Reviewed-on: #4
2026-11-25 19:45:37 +00:00
poli0981 e67801285b Merge pull request 'chore(deps): fold the updates of 2026-11-25; close the minimatch advisory' (#3) from chore/deps-2026-11-25 into main
Compliance / pr-title (push) Skipped
CI / check (push) Successful in 46s
Compliance / reuse (push) Successful in 20s
Qodana / tokens (push) Successful in 2s
Rust / lint-and-test (push) Successful in 5m26s
Security / workflow-lint (push) Successful in 22s
Reusable / Security / .NET (NuGetAudit) (push) Skipped
CI / deploy (push) Successful in 1m3s
Qodana / typescript (push) Successful in 2m37s
Qodana / rust (push) Successful in 16m6s
Reusable / Qodana / Qodana (push) Successful in 16m6s
Reusable / Security / Secrets (gitleaks) (push) Successful in 10s
Reusable / Security / SAST (Opengrep) (push) Successful in 21s
Reusable / Security / Dependencies (osv-scanner) (push) Successful in 16s
Reusable / Security / Rust (cargo-deny) (push) Successful in 29s
Security / scan (push) Successful in 1m18s
Reviewed-on: #3
2026-11-25 19:14:00 +00:00
poli0981andClaude Opus 5.5 86eeb0ed02 chore(release): v1.7.0
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
CI / check (pull_request) Successful in 42s
CI / deploy (pull_request) Skipped
Compliance / reuse (pull_request) Successful in 20s
Compliance / pr-title (pull_request) Successful in 2s
Qodana / tokens (pull_request) Successful in 2s
Rust / lint-and-test (pull_request) Successful in 2m59s
Security / workflow-lint (pull_request) Successful in 21s
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 11s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 27s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 1m5s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 30s
Security / scan (pull_request) Successful in 2m15s
Qodana / typescript (pull_request) Successful in 2m39s
Qodana / rust (pull_request) Successful in 14m58s
Reusable / Qodana / Qodana (pull_request) Successful in 14m58s
The release that moves YTDescGen to Gitea: CHANGELOG entry (where
things live now, the changed links, no macOS, the new CI, release and
security pipeline, the dependency and RustSec updates, what was checked
on Gitea), ROADMAP section and status, SECURITY's supported versions
(1.7.x), DISCLAIMER (+vi) model list, the "Reflects" / "as of" lines in
ARCHITECTURE, TECH-SPEC (test count 1156 in 55 files), PACKAGING,
FEATURES and CONTENT-INVENTORY (+vi), and the version examples in the
issue forms. Six manifests bumped 1.6.0 → 1.7.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 01:55:26 +07:00
poli0981 6c0614d720 Merge pull request 'ci: move youtube-generator to Gitea — workflows, links, docs' (#2) from chore/gitea-migration into main
Compliance / pr-title (push) Skipped
CI / check (push) Successful in 1m29s
Compliance / reuse (push) Successful in 22s
Qodana / tokens (push) Successful in 2s
Rust / lint-and-test (push) Successful in 2m58s
Security / workflow-lint (push) Successful in 22s
Reusable / Security / .NET (NuGetAudit) (push) Skipped
Reusable / Security / Secrets (gitleaks) (push) Successful in 10s
Reusable / Security / SAST (Opengrep) (push) Successful in 22s
Reusable / Security / Dependencies (osv-scanner) (push) Successful in 17s
Reusable / Security / Rust (cargo-deny) (push) Successful in 28s
Security / scan (push) Successful in 1m18s
CI / deploy (push) Successful in 1m7s
Qodana / typescript (push) Successful in 2m39s
Qodana / rust (push) Successful in 15m37s
Reusable / Qodana / Qodana (push) Successful in 15m37s
Reviewed-on: #2
2026-11-25 17:58:33 +00:00
poli0981andClaude Opus 5.5 c9a8ae6ea3 chore(deps): fold the updates of 2026-11-25; close the minimatch advisory
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
CI / check (pull_request) Successful in 41s
CI / deploy (pull_request) Skipped
Compliance / reuse (pull_request) Successful in 20s
Compliance / pr-title (pull_request) Successful in 1s
Qodana / tokens (pull_request) Successful in 1s
Rust / lint-and-test (pull_request) Successful in 3m34s
Security / workflow-lint (pull_request) Successful in 26s
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 11s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 22s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 18s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 29s
Security / scan (pull_request) Successful in 1m23s
Qodana / typescript (pull_request) Successful in 2m41s
Qodana / rust (pull_request) Successful in 16m21s
Reusable / Qodana / Qodana (pull_request) Successful in 16m21s
npm, everything published before 2026-11-22 (the 3-day release age of
the Renovate preset): `npm update --save --ignore-scripts --before`, with
the exact pins set by hand — wrangler 4.159.0 → 4.166.0, @tauri-apps/cli
2.12.4 → 2.12.6, marked 18.2.0 → 18.2.1. No lock entry went down.

- eslint 10.14 → 10.15 and typescript-eslint 8.72 → 8.73 take minimatch
  11.0.9: GHSA-g3hv-75wg-m249 (ReDoS, dev-only) is gone, `npm audit`
  reports nothing, and the osv-scanner exception for it goes with
  osv-scanner.toml.
- Also: @tauri-apps/api 2.12.5, plugin-opener 2.7.3, vite 8.3.8, knip
  6.47, prettier 3.10.1, lucide-react 1.77, simple-icons 16.38.1,
  react-router-dom 7.18.6, autoprefixer, postcss,
  i18next-resources-to-backend 1.3. i18next stays on 26.6.x (bundle
  budget). Majors (Vitest 5, motion 14, react-i18next 18, i18next 27,
  jest-dom 8) wait for the Dependency Dashboard.

Rust, with `cargo update -p … --precise`: tauri 2.12.5 → 2.12.7,
tauri-build 2.7.6, tauri-plugin-opener 2.7.3, wry 0.57.3, tao 0.37.3
(and tauri's own runtime/macros/codegen/utils); every crate they pulled
in is older than 3 days. THIRD_PARTY_NOTICES.md regenerated.

Checked: every gate (1156 tests, initial load 279.6 / 280 KB), cargo
fmt / clippy -D warnings / test, wrangler dev on 4.166 (legal page, gate,
security.txt).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:25:42 +07:00
poli0981andClaude Opus 5.5 9d6fb06163 ci(release): install the cargo Tauri CLI for the Android build
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
CI / check (pull_request) Successful in 1m16s
CI / deploy (pull_request) Skipped
Qodana / tokens (pull_request) Successful in 2s
Rust / lint-and-test (pull_request) Successful in 4m47s
Security / workflow-lint (pull_request) Successful in 23s
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 11s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 22s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 17s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 29s
Security / scan (pull_request) Successful in 1m21s
Compliance / reuse (pull_request) Successful in 20s
Compliance / pr-title (pull_request) Successful in 1s
Qodana / typescript (pull_request) Successful in 3m18s
Qodana / rust (pull_request) Successful in 15m28s
Reusable / Qodana / Qodana (pull_request) Successful in 15m28s
The dry run's Android job failed in Gradle with "no such command:
`tauri`": the committed project (src-tauri/gen/android) builds the Rust
side through `cargo tauri android android-studio-script`, so the cargo
CLI has to be on PATH, as the GitHub workflow had it. The job installs
tauri-cli at exactly the npm CLI's version from package.json and builds
with `cargo tauri android build --apk`; the README, FEATURES and
PACKAGING say the same again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:25:10 +07:00
poli0981andClaude Opus 5.5 9998e171d1 ci(qodana): leave type and borrow checking to rustc
CI / check (pull_request) Successful in 1m15s
CI / deploy (pull_request) Skipped
Compliance / pr-title (pull_request) Canceled after 0s
Qodana / tokens (pull_request) Canceled after 0s
Qodana / typescript (pull_request) Canceled after 0s
Qodana / rust (pull_request) Canceled after 0s
Rust / lint-and-test (pull_request) Canceled after 0s
Security / workflow-lint (pull_request) Canceled after 0s
Reusable / Security / Rust (cargo-deny) (pull_request) Canceled after 0s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Canceled after 0s
Reusable / Security / SAST (Opengrep) (pull_request) Canceled after 0s
Reusable / Security / Secrets (gitleaks) (pull_request) Canceled after 0s
Security / scan (pull_request) Canceled after 0s
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
Compliance / reuse (pull_request) Canceled after 18s
With its bootstrap fixed, Qodana for Rust (2026.3 Early Access, the
image the ops workflow pulls) analysed the shell and reported 9
critical problems that rustc and clippy -D warnings do not have:
`20 * 1024 * 1024` in a u64 const read as a Duration (E0308), a
`file.metadata()` borrow before `file.take()` read as a use after move
(E0382), a usize in a test read as a toml_parser Span, and unresolved
paths in the macro expansions. RsTypeCheck, RsBorrowChecker and
RsUnresolvedPath are the linter's re-implementation of the compiler;
rust.yml already builds the crate with rustc, so they go for the whole
project, with the reason in src-tauri/qodana.yaml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 00:12:41 +07:00
poli0981andClaude Opus 5.5 45ba6bb3da ci(qodana): keep the dhi.io pin on one line
CI / check (pull_request) Successful in 1m15s
CI / deploy (pull_request) Skipped
Compliance / reuse (pull_request) Successful in 21s
Compliance / pr-title (pull_request) Successful in 2s
Qodana / tokens (pull_request) Successful in 4s
Rust / lint-and-test (pull_request) Successful in 3m50s
Security / workflow-lint (pull_request) Successful in 24s
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 11s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 23s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 17s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 29s
Security / scan (pull_request) Successful in 1m21s
Qodana / typescript (pull_request) Successful in 3m7s
Qodana / rust (pull_request) Failing after 16m1s
Reusable / Qodana / Qodana (pull_request) Failing after 16m1s
The bootstrap's printf lost its \n escapes on the way into
src-tauri/qodana.yaml, so the pin spread over four lines and the YAML no
longer parsed ("could not find expected ':'"): Qodana for Rust stopped
before the analysis. The line is back to the one free-games-itchio-list
runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:40:18 +07:00
poli0981andClaude Opus 5.5 fe9b540d70 fix(deps): take the fixed releases of six crates the scans flag
CI / check (pull_request) Successful in 1m20s
CI / deploy (pull_request) Skipped
Compliance / reuse (pull_request) Successful in 29s
Compliance / pr-title (pull_request) Successful in 2s
Rust / lint-and-test (pull_request) Successful in 3m2s
Security / workflow-lint (pull_request) Successful in 25s
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 20s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 24s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 19s
Reusable / Security / Rust (cargo-deny) (pull_request) Successful in 37s
Security / scan (pull_request) Successful in 1m40s
Qodana / tokens (pull_request) Successful in 2s
Qodana / typescript (pull_request) Successful in 3m1s
Qodana / rust (pull_request) Failing after 35s
Reusable / Qodana / Qodana (pull_request) Failing after 35s
The first osv-scanner and cargo-deny runs on Gitea found six RustSec
advisories in Cargo.lock that a patch release already fixes:

- url 2.5.8 → 2.5.9 (RUSTSEC-2026-0592: stack overflow in Url::origin()
  on nested blob: URLs; with form_urlencoded 1.2.3)
- cookie 0.18.1 → 0.18.3 (RUSTSEC-2026-0594: private cookie nonces can
  repeat in processes that fork)
- tokio 1.51.0 → 1.51.6 (RUSTSEC-2026-0386)
- rustix 1.1.4 → 1.1.6 (RUSTSEC-2026-0486)
- event-listener 5.4.1 → 5.4.2 (RUSTSEC-2026-0221)
- anyhow 1.0.102 → 1.0.103 (RUSTSEC-2026-0190)

Each with `cargo update -p <crate> --precise`; nothing else moved.
cargo clippy -D warnings and cargo test pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:06:30 +07:00
poli0981andClaude Opus 5.5 4386d6014c ci(security): keep cargo-deny's ignore list empty
The first cargo-deny run on Gitea met none of the six Tauri-stack
advisories (warning advisory-not-detected): deny.toml already scopes
unsound and unmaintained advisories to direct dependencies. They stay
listed, with reasons and expiry dates, where they are reported — in
src-tauri/osv-scanner.toml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:06:30 +07:00
poli0981andClaude Opus 5.5 0249c10257 ci(security): let gitleaks pass the public analytics token
gitleaks (the ops security scan, full history) reads the Cloudflare Web
Analytics beacon token in build-plugins/web-only.ts and its test as a
generic API key. The token is public by design — every page of the site
carries it — and grants nothing, so both fingerprints go into
.gitleaksignore, described in words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 23:03:57 +07:00
poli0981andClaude Opus 5.5 b0d901cf9f docs: the repository lives on Gitea; issues on the GitLab mirror
Reusable / Security / .NET (NuGetAudit) (pull_request) Skipped
CI / check (pull_request) Successful in 1m13s
CI / deploy (pull_request) Skipped
Compliance / reuse (pull_request) Successful in 25s
Compliance / pr-title (pull_request) Successful in 3s
Qodana / tokens (pull_request) Successful in 3s
Rust / lint-and-test (pull_request) Successful in 2m47s
Security / workflow-lint (pull_request) Successful in 30s
Reusable / Security / Secrets (gitleaks) (pull_request) Failing after 45s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 31s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Failing after 24s
Reusable / Security / Rust (cargo-deny) (pull_request) Failing after 42s
Security / scan (pull_request) Failing after 2m23s
Maintenance triage / Close out-of-scope requests (pull_request_target) Successful in 3s
Qodana / typescript (pull_request) Successful in 2m53s
Qodana / rust (pull_request) Canceled after 55s
Reusable / Qodana / Qodana (pull_request) Canceled after 55s
The doc suite follows the move (ops runbook §3.4):

- README: Gitea badges, a "Where things live" note (Gitea canonical,
  GitLab mirror for issues and merge requests, releases.poli0981.dev for
  downloads, code@ / security@ by e-mail), a Download section with the
  release file names, no macOS after 1.6.0, the wiki row gone.
- CONTRIBUTING: where things live, merge requests on GitLab, patches by
  e-mail, CI on Gitea Actions, Renovate, out-of-scope items closed by hand.
  SECURITY: reports by e-mail only, never as a GitLab issue; scope names
  the new release host and .gitea/workflows. MAINTAINERS and NOTICE name
  the Gitea profile.
- TERMS and PRIVACY (Effective 2026-11-25): the apps come from the Gitea
  releases page and releases.poli0981.dev (Cloudflare R2, named in the
  privacy policy); GitHub Pages' moving notice and GitHub's terms go.
  Not a material change — no new data, one processor fewer — so the
  consent version stays 2. ACCESSIBILITY (+vi): reports on GitLab,
  macOS up to 1.6.0. DISCLAIMER (+vi): .gitea/workflows.
- docs/: HOSTING (deploy job, Workers Builds disconnected), PACKAGING
  (release.yml, R2 file names, no macOS), DEVELOPMENT (+vi), TECH-SPEC
  (the CI section), ARCHITECTURE, FEATURES, ROADMAP, I18N.
- CLAUDE.md: Forge & CI, security scanning, Renovate, the new release
  process; SonarCloud, Workers Builds, Dependabot and the triage workflow
  go.
- .gitlab/: the four issue forms as Markdown templates (Bug,
  Accessibility, Option request, Translation) and the merge request
  template. The .github forms stay for Gitea, with their links fixed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:22:53 +07:00
poli0981andClaude Opus 5.5 257fb6b7d8 fix(about): point the app's links at Gitea and the GitLab mirror
Every repository link in the app went to github.com, which answers for
nothing since the account was suspended:

- About: the source button and row open the Gitea repository; the
  author row the Gitea profile; a new row opens the issues on the GitLab
  mirror, which takes the place of Discussions (gone, decision D11).
  The Wiki row and the command palette's "Open the wiki" go: the wiki
  stayed on GitHub (D7). GitHub Sponsors leaves the donate list.
- "Report a bug" (header, sidebar, error page, palette) opens a new
  issue on the GitLab mirror with the Bug template.
- Strings: about.repoLabel reads "Source code (Gitea)",
  about.discussionsLabel becomes about.issuesLabel, and wikiLabel,
  donate.githubSponsors and command.wiki go — in all 8 locales and
  _schema.json.
- The public legal pages link other repository files on Gitea, and their
  footer names it; security.txt keeps the e-mail contact only (GitHub's
  advisory form is gone); index.html's licence URL follows, and its
  JSON-LD and the link-preview card no longer list macOS (no new builds).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:14:51 +07:00
poli0981andClaude Opus 5.5 7223a8c5ff chore: remove the GitHub Pages moving notice
migration-page/ was the notice the old poli0981.github.io address served
until 2026-11-29 (issue #177), with its own backup hand-off. The site
went with the suspended GitHub account, and so did pages-migration.yml
(D11): the page, its test and its Qodana exclusion go. The docs follow
in the docs commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:13:02 +07:00
poli0981andClaude Opus 5.5 de04ce4da3 chore(renovate): let the shared Renovate maintain the dependencies
Dependabot was GitHub's. renovate.json extends the shared preset
(local>poli0981/renovate-config: non-majors grouped, OSV security PRs,
3-day release age, actions pinned by digest) and carries this repo's
rules from the old dependabot.yml: majors wait on the Dependency
Dashboard, Tauri's npm packages and crates move together, Vitest as a
group, i18next held below 26.7 for the bundle budget, the TypeScript
aliases' majors and the runtimes by hand, glib 0.18 left to Tauri, and
Tauri's generated Gradle project left alone. Checked with
renovate-config-validator --strict (Renovate 44.258.1).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:12:56 +07:00
poli0981andClaude Opus 5.5 f116df0d8d chore: drop SonarCloud
SonarQube Cloud is dropped in every repository with the move to Gitea
(ops decision D1): its project settings file, the LCOV report only it
read, the coverage-scope note that kept vitest and Sonar in step, and a
NOSONAR marker. Qodana, Opengrep and the coverage thresholds stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:06:00 +07:00
poli0981andClaude Opus 5.5 a88bc8c112 ci: move the workflows to Gitea Actions
The GitHub account is suspended; the repository lives on Gitea now
(git.poli0981.dev). Following the ops runbook (poli0981/.github,
docs/GITEA-MIGRATION.md) and this repo's migration guide:

- .github/workflows → .gitea/workflows. Every action pinned by SHA (the
  pins of the migrated repos), every call into the ops repo pinned at
  ops v2026.11.4 (c133a00) with the matching ops_ref.
- ci.yml: the same gates; SonarCloud's coverage upload goes. A new
  `deploy` job (push to main, after `check`) runs `wrangler deploy` and
  waits for the new entry chunk on ytgenerator.stream — Workers Builds
  pulled from GitHub and is gone (decision D3).
- compliance.yml: reuse from a hash-locked requirements file; the PR
  title is checked in bash from the event payload (no GitHub API).
- security.yml: actionlint + shellcheck (pinned binaries) and zizmor
  (offline) on .gitea/workflows, plus the ops security.yml (gitleaks,
  Opengrep, osv-scanner, cargo-deny). Weekly Wed 13:37 UTC. Dependency
  review and Scorecard go (D7). Exceptions for the advisories no Tauri
  release fixes yet in src-tauri/osv-scanner.toml + deny.toml, and the
  dev-only minimatch one until the next dependency update.
- rust.yml: weekly Mon 15:53 UTC; its cargo-deny job moves to the ops scan.
- qodana.yml: two callers of the ops reusable-qodana.yml; qodana-rust in
  Docker Desktop on the runner PC, with the dhi.io pin, a 25-minute
  project timeout and the generate_context!() exclusions.
- release.yml replaces release-desktop.yml + release-android.yml: Windows
  (host), Linux (ubuntu-22.04) and the universal APK → SHA256SUMS → R2
  (releases.poli0981.dev/youtube-generator/<version>/) → a draft Gitea
  release. No macOS (D9). A dispatch without a tag is a dry run.
- announce-release / notify-*: ops callers; the GitHub Discussion link goes.
- Removed: maintenance-triage.yml (D2), pages-migration.yml (D11),
  dependabot.yml (Renovate next), FUNDING.yml (GitHub only).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 21:05:20 +07:00
poli0981 d7e287646d Merge pull request #261 from poli0981/chore/release-1.6.0
chore(release): v1.6.0
2026-11-17 11:08:15 +07:00
poli0981andClaude Opus 5.5 cdcd779219 chore(release): v1.6.0
The last feature release, and the first in maintenance mode: DLSS 5
Neural Rendering, x6 / Dynamic / Custom frame generation, a Custom LUT,
Qodana next to SonarCloud, the maintenance-mode policy and this week's
dependency fold.

CHANGELOG entry; ROADMAP release section and closing line; SECURITY
supported versions 1.6.x; version references in ARCHITECTURE, TECH-SPEC
(and its test count), PACKAGING, FEATURES, CONTENT-INVENTORY (+ vi),
DISCLAIMER (+ vi) and the bug / accessibility forms; the six manifests
1.5.2 -> 1.6.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 11:00:47 +07:00
poli0981 42697ce842 Merge pull request #260 from poli0981/chore/maintenance-mode
chore(repo): enter maintenance mode — policy, auto-triage, issue forms, badges
2026-11-17 11:00:44 +07:00
poli0981andClaude Opus 5.5 b2eb8236b4 chore(repo): enter maintenance mode — policy, auto-triage, issue forms, badges
YTDescGen is feature-complete; from 1.6.0 on it is maintained, not
extended. Still accepted: scheduled dependency updates; fixes for high or
critical CVEs and serious runtime issues; major language / runtime /
framework upgrades; bug, UI/UX and accessibility fixes, and options added
to or removed from the app's lists when people really need them;
translation fixes; Cloudflare / Worker changes the platform forces and
website incidents.

- README: status, CI, Qodana and SonarCloud badges; a Project status
  section; Contributing and the Roadmap row follow it.
- CONTRIBUTING: a Maintenance mode section, Option requests, issue and
  pull request rules, What We Want / Don't Want.
- SECURITY, MAINTAINERS, CLAUDE.md: the policy where each one needs it.
- ROADMAP: status block, a Maintenance mode section, Phase 5 and the
  backlog frozen. FEATURES: the extension points are frozen.
- Issue forms: Feature request removed; Option request and Translation or
  wording fix added; Bug report and Accessibility barrier now carry the
  `needs-triage` label (`triage` never existed). config.yml points feature
  ideas at Discussions → Ideas. The PR template gains a Scope checklist.
- maintenance-triage.yml closes, with a bilingual comment and the
  `out-of-scope` label, feature issues and `feat:` pull requests from
  outside contributors (scopes options, a11y and i18n stay open) and
  anything labelled `out-of-scope`. pull_request_target without checkout;
  listed under zizmor's dangerous-triggers ignore with the reason.

Labels created on the repository: out-of-scope, needs-triage, i18n,
option-request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:53:40 +07:00
poli0981 e71949cf21 Merge pull request #259 from poli0981/feat/dlss5-framegen-lut
feat(editor): add DLSS 5 neural rendering, more frame generation modes and a custom LUT
2026-11-17 10:53:36 +07:00
poli0981andClaude Opus 5.5 cefbbd13ee feat(editor): add DLSS 5 neural rendering, more frame generation modes and a custom LUT
Video settings:
- NVIDIA frame generation gains x6 (the multiplier was already in the list
  but offered by no vendor) and Dynamic Multi Frame Generation (DLSS 4.5).
- "Custom…" for every vendor reveals a text field (`frameGenCustom`); the
  description prints what was typed, like a custom graphics preset, and
  nothing for an empty box.
- A "DLSS 5 Neural Rendering" switch (`dlssNeuralRendering`), shown for
  NVIDIA only and printed after the DLSS mode:
  "Ultra - NVIDIA DLSS Quality + NVIDIA DLSS 5 Neural Rendering + NVIDIA
  Dynamic Multi Frame Generation". Another vendor turns it off
  (`coerceDlssNeuralRendering`: the vendor switch, applied profiles and
  templates, backup import).
- Editor store v21 -> v22 back-fills both fields.
- composeGraphicsPart's vendor half moves into small helpers.

My Rig: "Custom" is the LUT field's first suggestion (typing it works too,
any case). The rig block then prints just "LUT applied" in the output
language ("Có áp dụng LUT") instead of "LUT: Custom" — a field's
`customNoteKey`. No migration: the rig is a string map.

i18n: the new editor and description keys in all 8 locales and
_schema.json; brand names stay English. tests/engine/graphics-vendor.test.ts
also holds every vendor's options to their labels in the schema.

Docs: FEATURES (upscaler / frame-gen table, LUT Custom), TECH-SPEC (input
fields, store v22, rig block), CLAUDE.md (how to add an option).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:46:35 +07:00
poli0981 731e194a70 Merge pull request #258 from poli0981/ci/qodana
ci(qodana): add Qodana for TypeScript and Rust
2026-11-17 10:46:27 +07:00
poli0981andClaude Opus 5.5 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>
2026-11-17 10:38:59 +07:00
poli0981andClaude Opus 5.5 5a9e7e83de ci(qodana): add Qodana for TypeScript and Rust
A Qodana workflow with one job per Qodana Cloud project:
- typescript: Qodana for JS in native mode, on the runner's Node 26 and
  node_modules (qodana.yaml, project yt-ts-js, QODANA_TOKEN_TS_JS);
- rust: Qodana for Rust, Early Access, in Docker on src-tauri/
  (src-tauri/qodana.yaml, project yt-rust, QODANA_TOKEN_RUST). Its
  bootstrap installs what rust.yml installs; a stand-in dist/index.html
  lets generate_context!() expand.

Both use qodana.recommended with a quality gate of zero problems and
analyse the whole project on every run. A tokens job skips the analysis
for Dependabot and fork PRs, which get no secrets; the token reaches only
the scan step, never `npm ci`. Annotations and artifacts, no PR comment.
Failures reach Discord through notify-ci-failure.yml.

Docs: TECH-SPEC (workflow table, Qodana notes), DEVELOPMENT (+ vi),
CONTRIBUTING, CLAUDE.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:21:18 +07:00
poli0981 d060444ab1 Merge pull request #257 from poli0981/chore/deps-2026-11-17
chore(deps): fold this week's updates; async-executor 1.14.1
2026-11-17 10:20:55 +07:00
poli0981andClaude Opus 5.5 cc66d9ecd9 chore(deps): fold this week's updates; async-executor 1.14.1
npm, the newest releases published before 2026-11-10 (the same 7-day
cooldown Dependabot uses): react-i18next 17.1.13, lucide-react 1.70,
zustand 5.1.0, simple-icons 16.37, vite 8.3.7 (rolldown 1.2.18),
@vitejs/plugin-react 6.3.0, tailwindcss and @tailwindcss/postcss 4.3.5,
typescript-eslint 8.72.2, knip 6.44.2, and the exact pins marked 18.2.0
and wrangler 4.159.0 (miniflare 5.20261109.0-beta, workerd 1.20261109.1).
THIRD_PARTY_NOTICES regenerated. No lock entry moved backwards.

Rust: async-executor 1.14.0 -> 1.14.1. 1.14.0 was yanked, and the weekly
cargo-deny run warned about it.

Held back, still inside the cooldown: eslint 10.15 / typescript-eslint
8.73 (they move to minimatch 11, the fix for the medium, dev-only alert
#50) and Tauri 2.12.6.

Closes #251, #252, #253, #255, #256.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:17:38 +07:00
poli0981 b7cfdec142 Merge pull request #254 from poli0981/dependabot/github_actions/actions-cbbf7163c1
ci: bump the actions group with 3 updates
2026-11-17 10:12:21 +07:00
dependabot[bot] b3d6190d06 ci: bump the actions group with 3 updates
Bumps the actions group with 3 updates: [SonarSource/sonarqube-scan-action](https://github.com/sonarsource/sonarqube-scan-action), [amannn/action-semantic-pull-request](https://github.com/amannn/action-semantic-pull-request) and [actions/setup-java](https://github.com/actions/setup-java).


Updates `SonarSource/sonarqube-scan-action` from 8.4.0 to 8.4.1
- [Release notes](https://github.com/sonarsource/sonarqube-scan-action/releases)
- [Commits](https://github.com/sonarsource/sonarqube-scan-action/compare/4d1dc0c91ee400dcf8a6dddf2f705ac36542e304...e805d875275f728fac1885b413934be6d7c63f65)

Updates `amannn/action-semantic-pull-request` from 6.1.1 to 6.1.2
- [Release notes](https://github.com/amannn/action-semantic-pull-request/releases)
- [Changelog](https://github.com/amannn/action-semantic-pull-request/blob/main/CHANGELOG.md)
- [Commits](https://github.com/amannn/action-semantic-pull-request/compare/48f256284bd46cdaab1048c3721360e808335d50...2252a14e810aa9b85c2d560bd7070c802206ecf6)

Updates `actions/setup-java` from 6.1.0 to 6.2.0
- [Release notes](https://github.com/actions/setup-java/releases)
- [Commits](https://github.com/actions/setup-java/compare/b843ebf9b913146b38da2eaa7aeddf76074ae1ad...77dd5b2ce225ea11469928ac317850245a74ae78)

---
updated-dependencies:
- dependency-name: SonarSource/sonarqube-scan-action
  dependency-version: 8.4.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: amannn/action-semantic-pull-request
  dependency-version: 6.1.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
- dependency-name: actions/setup-java
  dependency-version: 6.2.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-16 13:46:39 +00:00
142 changed files with 4884 additions and 2745 deletions

No files matched your search

+36
View File
@@ -0,0 +1,36 @@
name: Announce Release to Discord
# Posts a published release to Discord through the ops repo's
# announce-release.yml (which reads the release from the Gitea API).
#
# Publishing the draft that release.yml opens fires NO `release: published`
# workflow: the draft belongs to the job token, and Gitea credits the publish
# to its Actions user, whose events start nothing. So after publishing, run
# this workflow by hand (Actions → Announce Release to Discord → Run workflow)
# with the tag. The `release` trigger stays for a release a person creates.
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: "Existing release tag to announce"
required: true
type: string
permissions: {}
jobs:
announce:
permissions:
contents: read
uses: poli0981/.github/.gitea/workflows/announce-release.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
with:
tag_override: ${{ inputs.tag || '' }}
ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
# Only what the shared workflow declares — not `inherit`, which would hand
# every repository secret (the Android signing keys included) to it.
secrets:
DISCORD_RELEASES_WEBHOOK: ${{ secrets.DISCORD_RELEASES_WEBHOOK }}
DISCORD_REPO_WEBHOOK: ${{ secrets.DISCORD_REPO_WEBHOOK }}
DISCORD_PING_ROLE_ID: ${{ secrets.DISCORD_PING_ROLE_ID }}
@@ -1,34 +1,35 @@
name: CI
# Gitea Actions (runbook: poli0981/.github docs/GITEA-MIGRATION.md). `check`
# runs every gate on pull requests and on `main`; on a push to `main`, `deploy`
# then publishes the web app to Cloudflare Workers with wrangler — the only
# way the site is deployed (migration decision D3; Workers Builds pulled from
# GitHub and is disconnected).
on:
push:
branches: [main]
pull_request:
branches: [main]
# Least privilege. The jobs only read the repo — they publish nothing on
# GitHub and comment nowhere (SonarCloud's own GitHub app reports on PRs, with
# its own permissions). Declaring it explicitly also silences CodeQL's
# `actions/missing-workflow-permissions`, which otherwise flags the implicit
# (and much wider) default token scope.
# Least privilege: the jobs only read the repo.
permissions:
contents: read
# A force-push or a quick follow-up commit makes the older run worthless. Cancel
# it instead of paying for both — except on `main`, where every commit's result
# is a historical record the release process reads back.
# it instead of paying for both — except on `main`, where every run deploys.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
# `check` is the required status on `main` (ruleset "main-protection") — keep
# `check` is the required status on `main` (Gitea branch protection) — keep
# the job id stable.
check:
runs-on: ubuntu-latest
runs-on: ubuntu-latest # Gitea: Docker, docker.gitea.com/runner-images
timeout-minutes: 30
steps:
# Actions are pinned by commit SHA (a tag can be moved; a SHA cannot).
# Dependabot keeps the SHA and the version comment up to date.
# Renovate keeps the SHA and the version comment up to date.
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
@@ -59,17 +60,9 @@ jobs:
run: npm run lint
- name: Validate locales
run: npm run validate:locales
# Coverage thresholds for src/engine and worker live in vitest.config.ts.
# Coverage thresholds for the logic layers live in vitest.config.ts.
- name: Test (with coverage thresholds)
run: npm run test:coverage
# The LCOV report the `sonarcloud` job hands to SonarCloud.
- name: Keep the coverage report for SonarCloud
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: coverage
path: coverage/lcov.info
if-no-files-found: error
retention-days: 1
# --- consistency ------------------------------------------------------
- name: Check formatting
@@ -97,9 +90,9 @@ jobs:
# --- security ---------------------------------------------------------
# Advisory-only: a fresh high-severity advisory in a transitive dep must
# not turn every unrelated PR red before Dependabot has had a chance to
# open its fix PR. The Dependabot alerts tab is the source of truth, and
# dependency-review (security.yml) blocks PRs that *introduce* one.
# not turn every unrelated PR red before Renovate opens its fix. The
# osv-scanner job (security.yml) and Renovate's OSV pull requests are
# the source of truth.
- name: Audit dependencies
run: npm audit --audit-level=high
continue-on-error: true
@@ -109,53 +102,52 @@ jobs:
run: npm run build
- name: Check bundle budget
run: npm run check:bundle
# Validates wrangler.jsonc and bundles the Worker exactly as Workers
# Builds will — without deploying anything.
# Validates wrangler.jsonc and bundles the Worker exactly as `deploy`
# will — without deploying anything.
- name: Dry-run the Cloudflare deploy
run: npm run cf:check
# SonarCloud, CI-based: issues, duplication and the coverage from `check`,
# judged by the quality gate (settings in sonar-project.properties).
# Automatic Analysis is off in the project's settings, so this is the only
# analysis. A job of its own so that SONAR_TOKEN never shares a job with
# npm packages: it only checks out, takes the coverage report and runs the
# scanner.
#
# PRs from forks and from Dependabot get no repository secrets (Dependabot
# PRs get the Dependabot secrets, which hold no SONAR_TOKEN), so they skip
# it and main is analysed once they merge. The PR author, not
# `github.actor`, decides — the actor can be spoofed (zizmor: bot-conditions).
sonarcloud:
# Production deploy of https://ytgenerator.stream after a green `check` on
# `main`. The Cloudflare token and account id are user-level Actions secrets
# shared by the web repos; the Worker's own secret (TURNSTILE_SECRET) lives in
# Cloudflare and survives every deploy. No dependency cache: what ships is
# built from a clean install.
deploy:
needs: check
if: >-
github.event_name == 'push' ||
(github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.user.login != 'dependabot[bot]')
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
timeout-minutes: 30
concurrency:
group: deploy-production
cancel-in-progress: false
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# Full history: SonarCloud tells new code from old by git blame.
fetch-depth: 0
persist-credentials: false
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
name: coverage
path: coverage
# New code is "since the previous version": each release starts a new
# period, and SonarCloud learns the version from here.
- name: Read the app version
id: version
run: |
version="$(jq -r .version package.json)"
if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "::error::package.json version \"$version\" is not X.Y.Z"
exit 1
fi
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: SonarCloud scan
uses: SonarSource/sonarqube-scan-action@4d1dc0c91ee400dcf8a6dddf2f705ac36542e304 # v8.4.0
node-version-file: .node-version
package-manager-cache: false
- run: npm ci --ignore-scripts
# wrangler.jsonc's build.command runs `npm run build` first.
- name: Deploy to Cloudflare Workers
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: -Dsonar.projectVersion=${{ steps.version.outputs.version }}
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
WRANGLER_SEND_METRICS: "false"
run: npx wrangler deploy --message "main ${GITHUB_SHA:0:8}"
# Everything but the public files sits behind the Turnstile gate, so the
# check asks for the new build's entry chunk: content-hashed, public, and
# only served once this deploy is live.
- name: The new build is live
run: |
set -euo pipefail
entry=$(grep -o 'src="/assets/[^"]*\.js"' dist/index.html | head -1 | cut -d'"' -f2)
[ -n "$entry" ] || { echo "::error::no entry chunk in dist/index.html"; exit 1; }
for i in $(seq 1 30); do
code=$(curl -s -o /dev/null -w '%{http_code}' "https://ytgenerator.stream${entry}" || true)
if [ "$code" = 200 ]; then echo "live: ${entry} (attempt $i)"; exit 0; fi
sleep 5
done
echo "::error::https://ytgenerator.stream${entry} did not answer 200 (last: ${code})"
exit 1
+63
View File
@@ -0,0 +1,63 @@
name: Compliance
# Repository hygiene that is not code: licensing metadata and pull-request
# titles. `reuse` runs everywhere; `pr-title` only on pull requests.
on:
pull_request:
branches: [main]
# `edited` so that fixing a PR title re-runs the title check.
types: [opened, edited, synchronize, reopened]
push:
branches: [main]
permissions:
contents: read
concurrency:
group: compliance-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
# REUSE (https://reuse.software): every file has a copyright and a license,
# via REUSE.toml. The tool comes from the hash-locked .github/requirements-ci.txt.
reuse:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Install reuse
run: |
python -m pip install --quiet --require-hashes --only-binary :all: -r .github/requirements-ci.txt
- name: reuse lint
run: reuse lint
# Conventional-commit PR titles, because merges keep the title as the commit
# subject: `type(scope): message`, the message starting lower-case like the
# rest of the history. Read from the event payload through `env:` — never
# interpolated into the script, and no API call (Gitea has no GitHub API).
pr-title:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Check the pull request title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
types='feat|fix|refactor|perf|docs|test|ci|build|chore|revert'
if [[ "$TITLE" =~ ^($types)(\([a-z0-9./-]+\))?!?:\ (.+)$ ]]; then
subject="${BASH_REMATCH[3]}"
if [[ "$subject" =~ ^[A-Z] ]]; then
echo "::error::The subject \"$subject\" should start with a lower-case letter, like the rest of the history (e.g. \"feat(editor): add next-part button\")."
exit 1
fi
echo "ok: $TITLE"
else
echo "::error::\"$TITLE\" is not \`type(scope): message\` with type one of: ${types//|/, }."
exit 1
fi
+24
View File
@@ -0,0 +1,24 @@
name: Notify CI Failures
# A failed or cancelled run of the workflows below posts to Discord through
# the ops repo's notify-ci-failure.yml (the script is loaded at `ops_ref`, the
# same commit as `uses:`). Neither this file nor the shared one checks out the
# triggering run's code: they read run metadata only, and pass every
# untrusted field to the notifier through `env:`.
on:
workflow_run: # zizmor: ignore[dangerous-triggers]
workflows: ["CI", "Security", "Compliance", "Rust", "Qodana"]
types: [completed]
permissions: {}
jobs:
notify:
permissions:
contents: read
actions: read
uses: poli0981/.github/.gitea/workflows/notify-ci-failure.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
with:
ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
secrets:
DISCORD_CI_WEBHOOK: ${{ secrets.DISCORD_CI_WEBHOOK }}
@@ -0,0 +1,26 @@
name: Notify Release Pipeline
# Every run of the release pipeline (release.yml, dry runs included, and the
# Discord announcement) reported to Discord through the ops repo's
# notify-release-pipeline.yml. Match the exact `name:` of both producers:
# renaming either silently breaks this filter.
on:
workflow_run: # zizmor: ignore[dangerous-triggers]
workflows:
- "Release"
- "Announce Release to Discord"
types: [completed]
permissions: {}
jobs:
notify:
permissions:
contents: read
actions: read
uses: poli0981/.github/.gitea/workflows/notify-release-pipeline.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
with:
ops_ref: c133a00dc7a0bd7bd68253d415758b408d615fa4
# Only the webhook the shared workflow declares — not `inherit`.
secrets:
DISCORD_RELEASE_PIPELINE_WEBHOOK: ${{ secrets.DISCORD_RELEASE_PIPELINE_WEBHOOK }}
+97
View File
@@ -0,0 +1,97 @@
name: Qodana
# JetBrains Qodana static analysis through the ops repo's reusable-qodana.yml
# (the Qodana CLI; JetBrains/qodana-action needs GitHub's API), one linter per
# Qodana Cloud project:
#
# typescript - qodana-js (native mode) the repository project yt-ts-js, secret QODANA_TOKEN_TS_JS, qodana.yaml
# rust - qodana-rust (Docker, Early Access) src-tauri/ project yt-rust, secret QODANA_TOKEN_RUST, src-tauri/qodana.yaml
#
# Every run analyses the whole project, so a pull request and `main` report
# the same way, and each qodana.yaml holds a quality gate of zero problems.
# Results: Qodana Cloud and the qodana-report-* artifacts (SARIF and logs; no
# code-scanning UI on Gitea). Not a required check.
#
# Both linters need an Ultimate licence; the account runs the Qodana Ultimate
# trial. When the licence lapses, both jobs fail at the licence check: renew
# it, or delete this file and the two qodana.yaml files.
#
# qodana-rust ships only as a Docker image: it runs on the maintainer's PC
# (`windows-latest`, host mode) in Docker Desktop, as root so that the
# bootstrap in src-tauri/qodana.yaml can install the libraries Tauri links
# against. A run without a token (Renovate's) skips that analysis instead of
# failing; the reusable also skips runs started by renovate-bot.
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions: {}
concurrency:
group: qodana-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
tokens:
runs-on: ubuntu-latest
timeout-minutes: 5
permissions: {}
outputs:
typescript: ${{ steps.check.outputs.typescript }}
rust: ${{ steps.check.outputs.rust }}
steps:
- name: Check for the Qodana tokens
id: check
env:
TOKEN_TS_JS: ${{ secrets.QODANA_TOKEN_TS_JS }}
TOKEN_RUST: ${{ secrets.QODANA_TOKEN_RUST }}
run: |
for pair in "typescript:$TOKEN_TS_JS" "rust:$TOKEN_RUST"; do
name="${pair%%:*}"
if [ -n "${pair#*:}" ]; then
echo "$name=true" >> "$GITHUB_OUTPUT"
else
echo "::notice::No Qodana token for $name in this run: that analysis is skipped."
fi
done
typescript:
needs: tokens
if: ${{ needs.tokens.outputs.typescript == 'true' }}
permissions:
contents: read
uses: poli0981/.github/.gitea/workflows/reusable-qodana.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
with:
runs-on: ubuntu-latest
linter: qodana-js
package-manager: npm
node-version-file: .node-version
artifact-name: qodana-report-typescript
secrets:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_TS_JS }}
rust:
needs: tokens
if: ${{ needs.tokens.outputs.rust == 'true' }}
permissions:
contents: read
uses: poli0981/.github/.gitea/workflows/reusable-qodana.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
with:
runs-on: windows-latest
within-docker: true
linter: qodana-rust
project-dir: src-tauri
repository-root: .
# The crates go to Qodana's cached directory.
extra-args: -u root -e CARGO_HOME=/data/cache/cargo
# tauri::generate_context!() refuses to expand without the frontend
# directory (frontendDist, ../dist): an empty page stands in for the web
# build, which the analysis does not need. The icons are committed.
prepare-command: >-
New-Item -ItemType Directory -Force dist | Out-Null;
Set-Content -Path dist/index.html -Value '<!doctype html><title>stand-in</title>'
artifact-name: qodana-report-rust
secrets:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN_RUST }}
+408
View File
@@ -0,0 +1,408 @@
# A `vX.Y.Z` tag builds the desktop and Android apps and publishes them to
# Cloudflare R2 (ops runbook §3.3, migration guide youtube-generator.md):
#
# https://releases.poli0981.dev/youtube-generator/<version>/<file>
# https://releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk (uploaded last)
#
# then opens a DRAFT Gitea release with the notes and the links (the forge's
# disk is not for binaries, runbook §1). Publish the draft in the Gitea UI,
# then run announce-release.yml with the tag for Discord: publishing a draft
# the job token created fires no workflow (Gitea credits the event to its
# Actions user). The apps have no updater: people download a new version by
# hand (docs/PACKAGING.md).
#
# - verify: the gates a release must pass, and the tag must name the version
# in the six manifests.
# - Windows builds on the maintainer's PC (host mode, `windows-latest`): MSI
# and NSIS. Linux in the runner's Docker image `ubuntu-22.04` (its glibc is
# the floor of the .deb/.rpm/.AppImage). Android (universal APK, the four
# ABIs) in Docker with the SDK and a pinned NDK installed in the job. No
# macOS: there is no macOS runner (migration decision D9); a Mac install
# keeps the version it has (1.6.0 was the last).
# - The APK is signed by Gradle (src-tauri/gen/android/app/build.gradle.kts
# reads keystore.properties). The keystore secrets exist only in that job,
# which runs only for a tag or a manual dispatch (runbook §2 rule 10).
# - No dependency caches in release builds: a poisoned cache could end up
# inside a shipped installer. Releases are rare; take the extra minutes.
# - Manual run without a tag ("Run workflow" on a branch): everything builds
# and the files are kept as the `r2-release` artifact for 7 days, but
# nothing is uploaded or released (publish-r2.yml refuses a branch ref). An
# uploaded file is never replaced (rclone --immutable): to ship a fix, bump
# the version.
name: Release
on:
push:
tags: ["v*"]
workflow_dispatch:
permissions: {}
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
env:
# Pin the NDK so CI matches local (a floating NDK is a classic "works
# locally, breaks in CI"). To match locally, point NDK_HOME at the same
# version (otherwise Tauri picks the highest installed NDK).
NDK_VERSION: "27.3.13750724"
jobs:
# Nothing gets built for a tag whose code does not pass the gate or whose
# six version fields disagree with the tag itself.
verify:
name: Verify
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
package-manager-cache: false
- run: npm ci --ignore-scripts
- run: npm run typecheck
- run: npm run test:run
- run: npm run check:version
- run: npm run check:tauri
- name: Tag matches the manifests
env:
TAG: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
run: |
version="v$(node -p "require('./package.json').version")"
if [ -n "$TAG" ] && [ "$version" != "$TAG" ]; then
echo "::error::Tag $TAG does not match package.json ($version)"
exit 1
fi
echo "version $version, tag ${TAG:-none (dry run)}"
windows:
name: Build (Windows)
needs: verify
runs-on: windows-latest # host mode on the maintainer's PC
timeout-minutes: 90
permissions:
contents: read
defaults:
run:
shell: pwsh
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
package-manager-cache: false
# rust-toolchain is pinned to a MASTER commit and given its toolchain:
# its `stable` branch is regenerated on top of master, so a commit of
# that branch can disappear.
- uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
with:
toolchain: stable
- run: npm ci --ignore-scripts
# tauri.conf.json: bundle.targets "all" (MSI + NSIS here).
- name: Build the installers
run: |
npm run tauri -- build
if ($LASTEXITCODE) { exit $LASTEXITCODE }
# One fixed name per kind, so the links never need encoding.
- name: Stage the installers
run: |
$ErrorActionPreference = 'Stop'
$version = node -p "require('./src-tauri/tauri.conf.json').version"
$out = Join-Path 'staged' $version
New-Item -ItemType Directory -Force $out | Out-Null
$bundle = 'src-tauri/target/release/bundle'
$kinds = @(
@{ Dir = 'msi'; Filter = "*_${version}_*.msi"; Name = "YTDescGen_${version}_x64_en-US.msi" },
@{ Dir = 'nsis'; Filter = "*_${version}_*-setup.exe"; Name = "YTDescGen_${version}_x64-setup.exe" }
)
foreach ($k in $kinds) {
$found = @(Get-ChildItem (Join-Path $bundle $k.Dir) -File -Filter $k.Filter)
if ($found.Count -ne 1) { Write-Host "::error::expected one $($k.Dir) bundle of $version, found: $($found.Name -join ', ')"; exit 1 }
Copy-Item $found[0].FullName (Join-Path $out $k.Name)
}
Get-ChildItem $out | ForEach-Object { "{0,12} {1}" -f $_.Length, $_.Name }
- name: Upload the installers
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
with:
name: desktop-windows
path: staged/
if-no-files-found: error
retention-days: 7
linux:
name: Build (Linux)
needs: verify
runs-on: ubuntu-22.04
timeout-minutes: 90
permissions:
contents: read
env:
# linuxdeploy is itself an AppImage, and a container has no FUSE.
APPIMAGE_EXTRACT_AND_RUN: "1"
# linuxdeploy's strip pass fails intermittently on newer ELF sections.
NO_STRIP: "true"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# The job container runs as root; sudo only where there is one.
- name: Install Linux build dependencies
run: |
SUDO=""; if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" != 0 ]; then SUDO=sudo; fi
$SUDO apt-get update
$SUDO apt-get install -y --no-install-recommends \
libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf \
libssl-dev build-essential curl wget file xdg-utils rpm
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
package-manager-cache: false
- uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
with:
toolchain: stable
- run: npm ci --ignore-scripts
- name: Build the packages
run: npm run tauri -- build
# One fixed name per kind, so the links never need encoding.
- name: Stage the packages
run: |
set -euo pipefail
version=$(node -p "require('./src-tauri/tauri.conf.json').version")
out="staged/$version"
mkdir -p "$out"
bundle=src-tauri/target/release/bundle
stage() { # <glob> <name>
local found=()
for f in $1; do [ -f "$f" ] && found+=("$f"); done
[ "${#found[@]}" -eq 1 ] || { echo "::error::expected one bundle for $1, found ${#found[@]}"; ls -la "$bundle"/*; exit 1; }
cp "${found[0]}" "$out/$2"
}
stage "$bundle/appimage/*.AppImage" "YTDescGen_${version}_amd64.AppImage"
stage "$bundle/deb/*.deb" "YTDescGen_${version}_amd64.deb"
stage "$bundle/rpm/*.rpm" "YTDescGen_${version}_x86_64.rpm"
ls -la "$out"
- name: Upload the packages
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
with:
name: desktop-linux
path: staged/
if-no-files-found: error
retention-days: 7
android:
name: Build (Android)
needs: verify
runs-on: ubuntu-latest
timeout-minutes: 120
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: temurin
java-version: "17"
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
package-manager-cache: false
- uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
with:
toolchain: stable
targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
# The runner image has no Android SDK (migration decision D10): the
# command-line tools come from setup-android (only platform-tools), the
# rest from sdkmanager. compileSdk/targetSdk 36 (gen/android).
- uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
with:
packages: platform-tools
log-accepted-android-sdk-licenses: false
- name: Install NDK + build-tools + platform
run: |
sdkmanager "ndk;${NDK_VERSION}" "build-tools;36.1.0" "platforms;android-36" > /dev/null
echo "NDK_HOME=$ANDROID_HOME/ndk/${NDK_VERSION}" >> "$GITHUB_ENV"
- run: npm ci --ignore-scripts
# The committed Gradle project (src-tauri/gen/android) builds the Rust
# side by running `cargo tauri android android-studio-script`
# (buildSrc/.../BuildTask.kt), so the cargo flavour of the Tauri CLI
# must be on PATH — the same version as the npm one in package.json.
- name: Install the Tauri CLI (cargo)
run: |
set -euo pipefail
version=$(node -p "require('./package.json').devDependencies['@tauri-apps/cli']")
cargo install tauri-cli --version "=${version}" --locked
cargo tauri --version
# Its release signing config reads keystore.properties, written here
# and removed with the keystore after the build.
- name: Write the keystore
env:
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }}
run: |
set -euo pipefail
if [ -z "$ANDROID_KEYSTORE_BASE64" ]; then echo "::error::ANDROID_KEYSTORE_BASE64 is not set"; exit 1; fi
echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > "$RUNNER_TEMP/release.jks"
{
echo "storeFile=$RUNNER_TEMP/release.jks"
echo "storePassword=$ANDROID_STORE_PASSWORD"
echo "keyAlias=$ANDROID_KEY_ALIAS"
echo "keyPassword=$ANDROID_KEY_PASSWORD"
} > src-tauri/gen/android/keystore.properties
- name: Build the signed APK (universal)
run: cargo tauri android build --apk
- name: Stage the APK
run: |
set -euo pipefail
rm -f "$RUNNER_TEMP/release.jks" src-tauri/gen/android/keystore.properties
BT=$(find "$ANDROID_HOME/build-tools" -mindepth 1 -maxdepth 1 -type d | sort -V | tail -1)
version=$(node -p "require('./src-tauri/tauri.conf.json').version")
apk=src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
[ -f "$apk" ] || { echo "::error::no $apk"; find src-tauri/gen/android/app/build/outputs -name '*.apk'; exit 1; }
"$BT/apksigner" verify --print-certs "$apk" | grep -i 'SHA-256' || true
"$BT/apksigner" verify "$apk"
mkdir -p "staged/$version"
cp "$apk" "staged/$version/YTDescGen_${version}_universal.apk"
ls -la "staged/$version"
- name: Remove the keystore
if: ${{ always() }}
run: rm -f "$RUNNER_TEMP/release.jks" src-tauri/gen/android/keystore.properties
- name: Upload the APK
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
with:
name: android
path: staged/
if-no-files-found: error
retention-days: 7
assemble:
name: Assemble (checksums, notes)
needs: [windows, linux, android]
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Download the Windows installers
uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
with:
name: desktop-windows
path: r2-release/versioned
- name: Download the Linux packages
uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
with:
name: desktop-linux
path: r2-release/versioned
- name: Download the APK
uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
with:
name: android
path: r2-release/versioned
# On a tag, the tag must name the version the apps were built with.
- name: Checksums, alias and notes
env:
TAG: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || '' }}
SERVER: ${{ github.server_url }}
REPO: ${{ github.repository }}
run: |
set -euo pipefail
version=$(node -p "require('./src-tauri/tauri.conf.json').version")
if [ -n "$TAG" ] && [ "$TAG" != "v$version" ]; then
echo "::error::tag $TAG does not match the app version $version (tauri.conf.json)"; exit 1
fi
dir="r2-release/versioned/$version"
[ "$(find "$dir" -type f | wc -l)" -eq 6 ] || { echo "::error::expected 6 files in $dir"; ls -la "$dir"; exit 1; }
(cd "$dir" && sha256sum -- * | sort -k2 > SHA256SUMS)
cat "$dir/SHA256SUMS"
cp "$dir/YTDescGen_${version}_universal.apk" r2-release/youtube-generator-latest.apk
base="https://releases.poli0981.dev/youtube-generator/$version"
{
echo "YTDescGen $version for Windows, Linux and Android — the same app as https://ytgenerator.stream."
echo
echo "What changed: [CHANGELOG]($SERVER/$REPO/src/branch/main/CHANGELOG.md)."
echo
echo "**Download** — Windows 10/11 x64 (\`-setup.exe\` or \`.msi\`), Linux x86_64 (\`.AppImage\`, \`.deb\`, \`.rpm\`), Android 11+ (universal \`.apk\`). No macOS build since 1.6.0 (there is no macOS build machine since the move from GitHub)."
echo
while read -r _ name; do
echo "- [$name]($base/$name)"
done < "$dir/SHA256SUMS"
echo "- [SHA256SUMS]($base/SHA256SUMS)"
echo
echo "The newest APK is always at https://releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk."
echo
echo "SHA-256:"
echo
echo '```'
cat "$dir/SHA256SUMS"
echo '```'
} > notes.md
cat notes.md
- name: Upload the release files
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
with:
name: r2-release
path: r2-release/
if-no-files-found: error
retention-days: 7
- name: Upload the notes
uses: christopherhx/gitea-upload-artifact@81f940d004763f986ba3582c007fd842dd5cb0d7 # v4
with:
name: release-notes
path: notes.md
retention-days: 7
publish:
name: Publish to R2
needs: assemble
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
permissions:
contents: read
uses: poli0981/.github/.gitea/workflows/publish-r2.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
with:
app: youtube-generator
artifact: r2-release
versioned-dir: versioned
feed-files: |
youtube-generator-latest.apk
runs-on: ubuntu-latest
secrets:
R2_RELEASES_ACCESS_KEY_ID: ${{ secrets.R2_RELEASES_ACCESS_KEY_ID }}
R2_RELEASES_SECRET_ACCESS_KEY: ${{ secrets.R2_RELEASES_SECRET_ACCESS_KEY }}
release:
name: Gitea release (draft, notes + links)
needs: publish
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write # VERIFY which of contents / releases Gitea enforces
releases: write # (runbook §3.2 item 5)
steps:
- name: Download the notes
uses: christopherhx/gitea-download-artifact@75635f32b4c1c41c4b3d64e8f85210112ed4c9c7 # v4
with:
name: release-notes
path: .
- name: Create the draft release
uses: https://gitea.com/actions/gitea-release-action@5a83c90484ef4355121df5eb60558c8ce66e81ac # v1.3.7
with:
tag_name: ${{ github.ref_name }}
name: YTDescGen ${{ github.ref_name }}
body_path: notes.md
draft: true
@@ -1,20 +1,25 @@
name: Rust
# The Tauri shell changes rarely, so this only runs when it does (or weekly,
# to catch new RustSec advisories). Not a required check for that reason.
# so a new stable toolchain's lints show up without a code change). Not a
# required check for that reason. cargo-deny (advisories, licences, sources)
# runs in security.yml through the ops repo.
#
# Weekly: Monday 15:53 UTC = 22:53 Vietnam (slot in the ops repo's cron
# registry; the runner only runs 13:00–16:00 UTC).
on:
pull_request:
branches: [main]
paths:
- "src-tauri/**"
- ".github/workflows/rust.yml"
- ".gitea/workflows/rust.yml"
push:
branches: [main]
paths:
- "src-tauri/**"
- ".github/workflows/rust.yml"
- ".gitea/workflows/rust.yml"
schedule:
- cron: "41 4 * * 1"
- cron: "53 15 * * 1"
workflow_dispatch:
permissions:
@@ -26,32 +31,36 @@ concurrency:
jobs:
lint-and-test:
runs-on: ubuntu-latest
runs-on: ubuntu-latest # Gitea: Docker, docker.gitea.com/runner-images
timeout-minutes: 45
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# The libraries Tauri links against on Linux. The job container runs as
# root; sudo only where there is one.
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev \
SUDO=""; if command -v sudo >/dev/null 2>&1 && [ "$(id -u)" != 0 ]; then SUDO=sudo; fi
$SUDO apt-get update
$SUDO apt-get install -y --no-install-recommends \
build-essential pkg-config libssl-dev libwebkit2gtk-4.1-dev libgtk-3-dev \
libayatana-appindicator3-dev librsvg2-dev patchelf
# Pinned to a commit on master, with the toolchain passed explicitly: the
# action's `stable` branch is regenerated from master, which orphans any
# SHA pinned there (zizmor: impostor-commit). Master keeps its history.
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
# rust-toolchain is pinned to a MASTER commit and given its toolchain:
# its `stable` branch is regenerated on top of master, so a commit of
# that branch can disappear (zizmor then reports an impostor commit).
- uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc # master
with:
toolchain: stable
components: rustfmt, clippy
- uses: Swatinem/rust-cache@d1527c8f67ef9af357290475d4af4b0fab8f12e0 # v2.9.3
with:
workspaces: src-tauri
# tauri::generate_context!() embeds the frontend at compile time, so
# clippy and the tests need a built dist/.
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
cache: npm
# tauri::generate_context!() needs the web build (frontendDist).
- run: npm ci --ignore-scripts
- run: npm run build
- name: rustfmt
@@ -63,16 +72,3 @@ jobs:
- name: test
working-directory: src-tauri
run: cargo test --locked
# RustSec advisories, license allowlist, duplicate/banned crates and
# registry sources for the whole crate tree (src-tauri/deny.toml).
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: EmbarkStudios/cargo-deny-action@3c6349835b2b7b196a839186cb8b78e02f7b5f25 # v2.1.1
with:
manifest-path: src-tauri/Cargo.toml
command: check advisories licenses sources
+89
View File
@@ -0,0 +1,89 @@
name: Security
# Gitea has no CodeQL, no dependency review and no code-scanning UI (runbook
# §1, migration decision D7). This workflow covers:
#
# workflow-lint actionlint + shellcheck and zizmor on .gitea/workflows/*.yml
# scan the ops repo's security.yml: gitleaks (full history),
# Opengrep (SAST), osv-scanner (package-lock.json, Cargo.lock;
# exceptions in src-tauri/osv-scanner.toml) and cargo-deny
# (src-tauri/deny.toml)
#
# Weekly as well, so a new advisory against an unchanged lockfile turns it red:
# Wednesday 13:37 UTC = 20:37 Vietnam (slot in the ops repo's cron registry;
# the runner is the maintainer's PC and only runs 13:00–16:00 UTC).
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
- cron: "37 13 * * 3"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: security-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
# Both linters without Docker: actionlint and shellcheck as release binaries
# at pinned versions, SHA-256 verified (the ops repo's ops-lint.yml pins);
# zizmor from the hash-locked .github/requirements-ci.txt. Renovate does not
# update the binaries: bump version and checksum together, by hand.
workflow-lint:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
ACTIONLINT_VERSION: 1.7.12
ACTIONLINT_SHA256: 8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8 # actionlint_1.7.12_linux_amd64.tar.gz (release checksums file)
SHELLCHECK_VERSION: v0.11.0
SHELLCHECK_SHA256: 8c3be12b05d5c177a04c29e3c78ce89ac86f1595681cab149b65b97c4e227198 # shellcheck-v0.11.0.linux.x86_64.tar.xz
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: "3.12"
- name: Install zizmor
run: |
python -m pip install --quiet --require-hashes --only-binary :all: -r .github/requirements-ci.txt
# The files by name: zizmor only looks for .github/workflows by itself.
# Offline: its online audits ask GitHub's API about the actions, with a
# token this runner does not have. Any finding at medium or above fails.
- name: zizmor (workflow security audit)
run: zizmor --offline --min-severity medium --config .github/zizmor.yml .gitea/workflows/*.yml
- name: Install actionlint ${{ env.ACTIONLINT_VERSION }} + shellcheck ${{ env.SHELLCHECK_VERSION }}
run: |
set -euo pipefail
tmp="${RUNNER_TEMP:-/tmp}"
bin="$tmp/lint-bin"
mkdir -p "$bin"
curl -fsSL --retry 3 -o "$tmp/actionlint.tar.gz" \
"https://github.com/rhysd/actionlint/releases/download/v${ACTIONLINT_VERSION}/actionlint_${ACTIONLINT_VERSION}_linux_amd64.tar.gz"
echo "${ACTIONLINT_SHA256} $tmp/actionlint.tar.gz" | sha256sum -c -
tar -xzf "$tmp/actionlint.tar.gz" -C "$bin" actionlint
curl -fsSL --retry 3 -o "$tmp/shellcheck.tar.xz" \
"https://github.com/koalaman/shellcheck/releases/download/${SHELLCHECK_VERSION}/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz"
echo "${SHELLCHECK_SHA256} $tmp/shellcheck.tar.xz" | sha256sum -c -
tar -xJf "$tmp/shellcheck.tar.xz" -C "$bin" --strip-components=1 "shellcheck-${SHELLCHECK_VERSION}/shellcheck"
echo "$bin" >> "$GITHUB_PATH"
# .github/actionlint.yaml ignores only the Gitea features actionlint does
# not know; everything else stays an error.
- name: actionlint (workflow syntax and expressions)
run: |
actionlint -version
actionlint -color -config-file .github/actionlint.yaml \
-shellcheck "$(command -v shellcheck)" .gitea/workflows/*.yml
scan:
permissions:
contents: read
uses: poli0981/.github/.gitea/workflows/security.yml@c133a00dc7a0bd7bd68253d415758b408d615fa4 # ops v2026.11.4
with:
node: true
rust: true
cargo-manifest-path: src-tauri/Cargo.toml
-6
View File
@@ -1,6 +0,0 @@
github: poli0981
ko_fi: skullmute
buy_me_a_coffee: skullmute
patreon: skullmute
custom:
- paypal.me/DungDang212
+5 -5
View File
@@ -1,14 +1,14 @@
name: Accessibility barrier
description: Something stops or slows you down when you use a keyboard, a screen reader, zoom, high contrast, voice control or a touch screen.
title: "[A11y]: "
labels: ["accessibility", "triage"]
labels: ["accessibility", "needs-triage"]
body:
- type: markdown
attributes:
value: |
Thanks for telling us. You don't need to know what causes the problem — describe what you tried and what happened.
Prefer not to post in public? Email **contact@poli0981.dev** with `[Accessibility]` at the start of the subject.
How reports are handled: [ACCESSIBILITY.md](https://github.com/poli0981/youtube-generator/blob/main/ACCESSIBILITY.md#reporting-a-barrier).
How reports are handled: [ACCESSIBILITY.md](https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/ACCESSIBILITY.md#reporting-a-barrier).
- type: textarea
id: barrier
attributes:
@@ -77,8 +77,8 @@ body:
id: version
attributes:
label: App version
description: From the About page. Example `v1.5.2`.
placeholder: v1.5.2
description: From the About page. Example `v1.7.0`.
placeholder: v1.7.0
validations:
required: true
- type: dropdown
@@ -88,7 +88,7 @@ body:
options:
- Web (ytgenerator.stream)
- Desktop — Windows (Tauri)
- Desktop — macOS (Tauri)
- Desktop — macOS (Tauri, 1.6.0 or older)
- Desktop — Linux (Tauri)
- Android (APK)
- Local dev (npm run dev)
+4 -4
View File
@@ -1,7 +1,7 @@
name: Bug report
description: Something is broken or behaving unexpectedly.
title: "[Bug]: "
labels: ["bug", "triage"]
labels: ["bug", "needs-triage"]
body:
- type: markdown
attributes:
@@ -12,8 +12,8 @@ body:
id: version
attributes:
label: App version
description: From the About page. Example `v1.5.2`.
placeholder: v1.5.2
description: From the About page. Example `v1.7.0`.
placeholder: v1.7.0
validations:
required: true
- type: dropdown
@@ -23,7 +23,7 @@ body:
options:
- Web (ytgenerator.stream)
- Desktop — Windows (Tauri)
- Desktop — macOS (Tauri)
- Desktop — macOS (Tauri, 1.6.0 or older)
- Desktop — Linux (Tauri)
- Android (APK)
- Local dev (npm run dev)
+6 -9
View File
@@ -1,17 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: Issues and merge requests (GitLab mirror)
url: https://gitlab.com/poli0981/youtube-generator/-/issues
about: The Gitea repository takes no sign-ups. Bug reports, option requests, translation fixes and accessibility barriers go to the GitLab mirror, which has the same templates. YTDescGen is in maintenance mode and takes no new features.
- name: Report a security vulnerability
url: https://github.com/poli0981/youtube-generator/security/advisories/new
about: Privately, please — never in a public issue. See SECURITY.md.
- name: User guide (wiki)
url: https://github.com/poli0981/youtube-generator/wiki
about: How-tos, backup & restore, troubleshooting and the FAQ.
url: https://ytgenerator.stream/.well-known/security.txt
about: Privately, by e-mail to security@poli0981.dev — never in a public issue. See SECURITY.md.
- name: Discord
url: https://discord.gg/kDM9GMu5vm
about: For casual questions, gameplay chat, or quick help. Use a bug report or feature request for anything actionable.
about: For casual questions, gameplay chat, or quick help. Use an issue for anything actionable.
- name: All channels and contacts
url: https://poli0981.dev/links/
about: Email addresses by purpose and every other way to reach the maintainer.
- name: GitHub Discussions
url: https://github.com/poli0981/youtube-generator/discussions
about: Ideas, Q&A, and release announcements live here.
@@ -1,56 +0,0 @@
name: Feature request
description: Suggest a new feature or improvement.
title: "[Feature]: "
labels: ["enhancement", "triage"]
body:
- type: textarea
id: problem
attributes:
label: Problem
description: What pain point or workflow gap are you running into today?
validations:
required: true
- type: textarea
id: proposal
attributes:
label: Proposed solution
description: What should YTDescGen do? Be concrete — UI sketch, example output, etc.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives considered
description: Other approaches you thought about and why you ruled them out.
- type: dropdown
id: scope
attributes:
label: Scope
description: Which surfaces does this affect?
multiple: true
options:
- Editor
- Output / preview
- Batch
- Social captions
- Playlist
- History
- Profiles / presets
- Templates (description, title, tags)
- Backup & restore
- i18n / locales
- Settings
- Accessibility (keyboard, screen readers, zoom, contrast)
- Web app (ytgenerator.stream)
- Desktop (Tauri)
- Android
- Documentation
validations:
required: true
- type: checkboxes
id: checks
attributes:
label: Pre-flight checks
options:
- label: I searched existing issues and this is not a duplicate.
required: true
+62
View File
@@ -0,0 +1,62 @@
name: Option request
description: Add or remove an option in one of the app's lists — a store, platform, genre, video type, content warning, tech note, GPU or upscaler / frame-generation mode.
title: "[Option]: "
labels: ["option-request", "needs-triage"]
body:
- type: markdown
attributes:
value: |
YTDescGen is in **maintenance mode** ([CONTRIBUTING.md → Maintenance mode](https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/CONTRIBUTING.md#maintenance-mode)): it takes no new features, but an option people really need can still join — or leave — one of the lists the app already has. For anything else, open a plain issue.
- type: dropdown
id: action
attributes:
label: Add or remove?
options:
- Add an option
- Remove an option
validations:
required: true
- type: dropdown
id: list
attributes:
label: Which list
options:
- Store (store links)
- Social or donate platform
- Game genre
- Video type
- Content warning
- Tech note
- GPU (rig catalog)
- Upscaler / frame generation (Video settings)
- Another list (say which below)
validations:
required: true
- type: input
id: option
attributes:
label: The option
description: Its name as it should appear, e.g. "itch.io", "Roguelite", "AMD FSR 4 x4".
validations:
required: true
- type: textarea
id: why
attributes:
label: Who needs it, and why
description: What can't you do today? A link helps — the store page, the vendor's announcement, a video of yours that needed it.
validations:
required: true
- type: textarea
id: wording
attributes:
label: Suggested wording (optional)
description: For a content warning or tech note, the editor label and the line the description should print, in any of the eight languages you know.
- type: checkboxes
id: checks
attributes:
label: Pre-flight checks
options:
- label: I searched existing issues and this is not a duplicate.
required: true
- label: This adds or removes an option in a list the app already has — it is not a new feature.
required: true
+69
View File
@@ -0,0 +1,69 @@
name: Translation or wording fix
description: Wording that doesn't fit a culture or region, or a spelling mistake that could mislead — in the interface or in the generated text.
title: "[i18n]: "
labels: ["i18n", "needs-triage"]
body:
- type: markdown
attributes:
value: |
YTDescGen ships eight languages. Vietnamese is native-reviewed; Japanese, Spanish, Korean, Chinese, Portuguese (Brazil) and Indonesian are AI-translated (see [DISCLAIMER.md](https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/DISCLAIMER.md)), so corrections from native speakers are very welcome.
- type: dropdown
id: language
attributes:
label: Language
options:
- English (en)
- Tiếng Việt (vi)
- 日本語 (ja)
- Español (es)
- 한국어 (ko)
- 简体中文 (zh)
- Português (BR) (pt-BR)
- Bahasa Indonesia (id)
validations:
required: true
- type: dropdown
id: where
attributes:
label: Where
options:
- The interface (buttons, labels, messages)
- The generated title, description or tags
- Both
validations:
required: true
- type: textarea
id: current
attributes:
label: Current text
description: Copy it exactly as shown, and say where you saw it — the page or field, or the section of the description. A screenshot helps.
validations:
required: true
- type: textarea
id: suggested
attributes:
label: Suggested text
validations:
required: true
- type: dropdown
id: why
attributes:
label: Why
options:
- It doesn't fit the culture, region or usual tone
- A spelling or grammar mistake that could mislead
- The meaning is wrong (a mistranslation)
- Something else (say below)
validations:
required: true
- type: textarea
id: details
attributes:
label: Details (optional)
- type: checkboxes
id: checks
attributes:
label: Pre-flight checks
options:
- label: I searched existing issues and this is not a duplicate.
required: true
+18
View File
@@ -1,3 +1,10 @@
<!--
YTDescGen is in maintenance mode (CONTRIBUTING.md → "Maintenance mode"):
new features are out of scope, and `feat:` pull requests from outside
contributors are closed unless their scope is `options`
(an agreed option request), `a11y` or `i18n`.
-->
## Summary
<!-- 1-3 bullet points describing the change -->
@@ -5,6 +12,17 @@
-
-
## Scope
<!-- Tick what this PR is. Anything else is out of scope while YTDescGen is in maintenance mode. -->
- [ ] Bug fix, broken UI/UX or accessibility fix
- [ ] Translation or wording fix
- [ ] Add or remove an option in one of the app's lists, agreed in issue #
- [ ] Dependency update, security fix, or major language/runtime/framework upgrade
- [ ] Cloudflare / Worker change, or a fix for a website incident
- [ ] Docs or tests only
## Type
- [ ] `feat` — new feature
+11
View File
@@ -0,0 +1,11 @@
# actionlint settings (security.yml, job `workflow-lint`, and a local
# `actionlint` run from the repo root), as in the ops repo poli0981/.github.
# Only Gitea features that actionlint does not know are ignored here;
# everything else stays an error.
paths:
.gitea/workflows/*.yml:
ignore:
# Gitea's own token scope for releases (ops runbook §3.2 item 5)
- 'unknown permission scope "releases"'
# Gitea resolves full-URL actions; bare owner/repo goes to github.com (ops runbook §1)
- 'specifying action "https://gitea\.com/[^"]+" in invalid format'
-139
View File
@@ -1,139 +0,0 @@
# Dependabot configuration.
#
# Three ecosystems: npm (the app), cargo (the Tauri shell), and github-actions
# (the workflows). Security updates are on repo-wide by default; the entries
# below add scheduled VERSION updates so the tree does not silently rot between
# advisories, and carry the ignore rules that keep unfixable alerts quiet.
#
# `cooldown` holds version updates back for a week after a release is
# published. Most npm supply-chain compromises are caught and yanked within
# that window; security updates ignore the cooldown and still arrive at once.
#
# Why the cargo ignore: `glib` is a transitive dependency of tauri's Linux
# stack, and its security fix requires a semver-major bump the tree does not
# allow, so every Dependabot security-update job for it fails with
# `security_update_not_possible`:
#
# glib 0.18.5 (fix: 0.20.0) pinned by
# tauri's gtk-rs 0.18 Linux stack (gtk/gdk/gio 0.18 require glib 0.18)
#
# Remove the ignore once tauri moves to gtk-rs >= 0.20. (`rand` 0.7.3, the
# other long-standing one, left the tree in v1.0.0 when tauri 2.12 dropped
# kuchikiki.)
#
# The npm side holds one package back on purpose: `i18next` stays on 26.6.x
# (`~26.6.0` in package.json). 26.7, the last 26.x minor, adds the debug-mode
# warnings that prepare the move to v27 — about 1.9 KB gzip in the i18n chunk,
# which takes the initial load from 279.0 KB to 280.9 KB, over the 280 KB
# budget (`npm run check:bundle`), for code the app never runs. Remove the
# ignore and the tilde with the planned i18next 27 migration.
#
# (`undici`, overridden in package.json for alert #49 until v1.5.1, needs no
# override any more: miniflare >= 5.20261101 depends on undici 7.30.1 itself.)
#
# Tauri moves in lockstep: the tauri CLI refuses to build when the
# @tauri-apps/* npm packages and the tauri crates differ in major.minor. When
# the `tauri` npm group arrives, run `cargo update -p tauri` (and the plugin
# crates) in src-tauri/ on the same branch — `npm run check:tauri` in CI says
# which ones.
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 7
open-pull-requests-limit: 5
commit-message:
prefix: "chore(deps)"
prefix-development: "chore(deps-dev)"
groups:
# One PR per family instead of one per package. A split React or
# typescript-eslint bump is never independently mergeable anyway, and
# CI has to run for each PR. A package joins the FIRST group it matches,
# so the specific families come before the catch-alls.
react:
patterns: ["react", "react-dom", "@types/react", "@types/react-dom"]
i18n:
patterns: ["i18next*", "react-i18next"]
tauri:
patterns: ["@tauri-apps/*"]
ui:
patterns:
[
"radix-ui",
"@radix-ui/*",
"motion",
"cmdk",
"sonner",
"lucide-react",
"clsx",
"@fontsource*",
"react-router*",
"zustand",
]
cloudflare:
patterns: ["wrangler", "@cloudflare/*"]
# TypeScript 7 (`tsc`) and the TypeScript 6 API that typescript-eslint
# still needs, installed side by side as npm aliases (see package.json).
# Dependabot may not resolve `npm:` aliases — if no PR shows up for a new
# 7.x, bump both by hand.
typescript:
patterns: ["typescript", "@typescript/*"]
lint-and-format:
patterns: ["eslint*", "@eslint/*", "typescript-eslint", "prettier*", "knip"]
build-tooling:
patterns:
[
"vite",
"vitest",
"@vitest/*",
"@vitejs/*",
"tailwindcss",
"@tailwindcss/*",
"postcss",
"autoprefixer",
"tsx",
"marked",
"@resvg/*",
]
testing:
patterns: ["@testing-library/*"]
types:
patterns: ["@types/*"]
ignore:
# Majors land in their own planned release because each one needs a real
# migration (Vitest 5 is the current example). Dependabot handles minor +
# patch.
- dependency-name: "*"
update-types: ["version-update:semver-major"]
# Bundle budget — see the note at the top.
- dependency-name: "i18next"
versions: ["26.7.x"]
- package-ecosystem: "cargo"
directory: "/src-tauri"
schedule:
interval: "weekly"
# No version-update PRs; this entry only feeds ignore rules to security
# updates. The Rust side moves with tauri (see the note at the top).
open-pull-requests-limit: 0
cooldown:
default-days: 7
ignore:
- dependency-name: "glib"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
cooldown:
default-days: 7
open-pull-requests-limit: 3
commit-message:
prefix: "ci"
groups:
actions:
patterns: ["*"]
+5
View File
@@ -0,0 +1,5 @@
# Python tools the workflows run (compliance.yml: reuse; security.yml: zizmor).
# Lock: requirements-ci.txt, regenerated by Renovate (pip-compile manager) or by
# the command in its header.
reuse==6.3.0
zizmor==1.32.0
+205
View File
@@ -0,0 +1,205 @@
# This file was autogenerated by uv via the following command:
# uv pip compile .github/requirements-ci.in --generate-hashes --python-platform x86_64-manylinux_2_28 --python-version 3.12 -o .github/requirements-ci.txt
attrs==26.1.0 \
--hash=sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309 \
--hash=sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32
# via reuse
boolean-py==5.0 \
--hash=sha256:60cbc4bad079753721d32649545505362c754e121570ada4658b852a3a318d95 \
--hash=sha256:ef28a70bd43115208441b53a045d1549e2f0ec6e3d08a9d142cbc41c1938e8d9
# via license-expression
click==8.5.1 \
--hash=sha256:8bb5376d2006950386f8c6427613334a2acadc5f559cb80e638d00b4df957e37 \
--hash=sha256:9bbfada76703fd1d784b83eea012e3e8c6a001a876543ef104fa56aaaeb072b4
# via reuse
jinja2==3.1.6 \
--hash=sha256:0137fb05990d35f1275a587e9aee6d56da821fc83491a0fb838183be43f66d6d \
--hash=sha256:85ece4451f492d0c13c5dd7c13a64681a86afae63a5f347908daf103ce6d2f67
# via reuse
license-expression==30.4.4 \
--hash=sha256:421788fdcadb41f049d2dc934ce666626265aeccefddd25e162a26f23bcbf8a4 \
--hash=sha256:73448f0aacd8d0808895bdc4b2c8e01a8d67646e4188f887375398c761f340fd
# via reuse
markupsafe==3.0.4 \
--hash=sha256:007e1ffd9bf65bb6ee96df7b258fc632a4868dd5566037986c64781f35a36e98 \
--hash=sha256:02fa4acbc6a3fc5c693c34d4dd8c1130b7fe99cc915181b0ddd6f72aeb296002 \
--hash=sha256:03470d1a8268e692ecf79ecd565593e59d44219377a7ead61f1f1b94c1f7ff6b \
--hash=sha256:04e7902ba80ee4bac1d50a549606527a1dcf0476cd81403db41099d3b60ec653 \
--hash=sha256:051417f74bcaaefa316276e0ff723f541616ca51043d070da00249d9bddd3e3c \
--hash=sha256:05295589e619b9bed252a86b532b8e27350abc372d18ba89b59375325e91ec1e \
--hash=sha256:06de8ef6331f6e822c28d577dc8bf43fe398800477c49498f38fc38b67ff33fc \
--hash=sha256:0764a13d34cae40db7bbf3a09b7e9b491bf4603e20b263a7a9d6b8e324975d0a \
--hash=sha256:077293e425f28ec737dbcad442a71752e28f8ae27cde3d68acd1fb212091cd92 \
--hash=sha256:0930db9bdc62d22944e10b066448bb65dc9abe9112880c7cab8da54db4284d5f \
--hash=sha256:0cee7cb0f9a1b6892ea482237d9403b3d1b4603aee057d0ff01f0fac2d019a97 \
--hash=sha256:0d9c47709875fdb321452056622e930c52afbc07a7d780762fbb8b4d91ce6fa4 \
--hash=sha256:11935df9bf455ed0c04eb87bcd720f02b1fe5e02128a9430f23aed6f93336fc7 \
--hash=sha256:12a606a492de952afcb43b59a14aaaaad120e708d3663dd0fdf2d738d427a691 \
--hash=sha256:14bd2d845d62ab678eaf81da89d7b621b51756c72346745c1a594c09d49207a2 \
--hash=sha256:15ba9e28640feef770374b116a6f019c21f52404aeabe516aa7f800587b98cfc \
--hash=sha256:18a801868a884f216e784d7d14db2a4077143ce7610440aee2ce8f734e7cfcde \
--hash=sha256:1c0df495a977d10460a94941799c72d5b5ab03d3858d949b55b5a66c8f371c99 \
--hash=sha256:1caa2fa5a6184fb233153b35f654e6687bd555476f6170f29d8ee9be1a8b0af9 \
--hash=sha256:1e1451fab512d1bcc3dc26988ec1edb0b82c2db909132872cd9356070a6b63df \
--hash=sha256:1f1f9477e174582b0a1b583d60b66e1f2cf5d3fe12cee985e4aedf44766600e5 \
--hash=sha256:2628d3a8cb648ecebb3c5d6b0a1052d400e4d8b7ac0fb786be8d285b50040d17 \
--hash=sha256:26e9867520db70d37f7fb421a7f0d8adb40171011fb84ce869afa1a83370dfa8 \
--hash=sha256:2a6ef68ae94aed8721934072b27a3b654ea2100b97e4ab864cf1489c90926fbc \
--hash=sha256:2b2b1e18af909b448bb3cf9e3433366f7a8726271fc214e8b10e0f62a78c724b \
--hash=sha256:2cb3dd71fc6be918ad4264346a8ed69485f9b7ed7bf35495d8e22807cd6b8bea \
--hash=sha256:2d1b7d9308288661f56672b1b157d75fc536714d3638487bbea17b6318a78248 \
--hash=sha256:2dad610540cb2e6272855c178f08ae9a1c7ac258a7fb71660553a5f104b42741 \
--hash=sha256:2e5a7cd7fdd14fcb1ae5d7d8bf23d24fbd1daefd1fbca2580132e1ea75f098b5 \
--hash=sha256:2e9ad7dd851bf45fab9f75cbff4cb493fee9979e8d8c7c9c3ee119022518edd6 \
--hash=sha256:340cbb1957ba99929cbf19a75626d36ba1ae21d1730b287d1cf7f824a20c4fc7 \
--hash=sha256:34bdde374c5932765d7dc685c4a1d191a3207852d67e8e0a9eb6ea85156181f1 \
--hash=sha256:353bd63081912ab8cfa6a0c7d185934cdf8426f04c618bba6bc4b394f2069b67 \
--hash=sha256:387d8cd30e69b3f0a72877b9ae717033396404e19095b17fe89753a981fda44f \
--hash=sha256:3882fb412298575bae3b9c46868251f15cc69307359f87bb1b382e53d6e5a2c9 \
--hash=sha256:38fc55594dab834470b6733dead2ee9e3f657fb0608c769dcafa0ba5ab52f45c \
--hash=sha256:396ec4e65cc889f69786b3b89478b471cee5a3bcf468b9d9bb03e1a30fb291fc \
--hash=sha256:39dbacefc411633db5b4378b066a9aca70a3d7e2922c9e578d825f844026eeba \
--hash=sha256:3a93d9616ddecfb393727a0041a562cf0b15a244e20f2bd25efc7949be4c4f17 \
--hash=sha256:3d23795802fc8bd72534836d64489bbf0f67c088959091bdb22e10735a5107bf \
--hash=sha256:434139499bb20b502ed3baa1f169e618f924a97e7a777fea1a49446d80106cf6 \
--hash=sha256:436e3ffc6310d3c41878c601db29098102fe5d8a467c49da4a4125254e0980f2 \
--hash=sha256:489505b03f692c3f376394e49194fa7a7f9e8558d6e293a7056a0032b0c38163 \
--hash=sha256:4a540e2d3192792fc84eced57bef37851ccb2b41f73291bb17408eea77bcd278 \
--hash=sha256:4a7cdc2a420ca01058182da4253329764d4bfa055564d1eced90e6ba1e8b1d3d \
--hash=sha256:4bced6e2a6dba6a28f7dd3c6ce14df1b2dd495923f16ea484cad03decd463b2b \
--hash=sha256:4cf3468d5ec187ffffcaca8e61929a37448f215dafc1386a12c750a72fe53634 \
--hash=sha256:4e2c4809c14559aa7ef426f27fb35afbb38104c349a903bf8f3600456764bb38 \
--hash=sha256:4ed644d75aa94a2baf7ec3a96eaa160ea58c742eb9d27c6506053c5c40fc84ed \
--hash=sha256:4f6e0852a0283b1b1fd776eeb7b766a5f440b3e2bd31ab51af3b400585f3965c \
--hash=sha256:5066b244f576f91afc8ee3ba029a89f99d39c79b1853fe9d39bea9f0afbec148 \
--hash=sha256:5086f9975abb1ab531ee6afca1761e4b59a19b446f3f6522ed776963228cfe5a \
--hash=sha256:50b5bedc9ed8a94fc8857a42ef4f84a81ea88f8d4f05dc8705fb23ee6d8dcca7 \
--hash=sha256:52704c5d36eb6dda8866493decd61111fff86244c9b1ad225ca01b9e91e5970f \
--hash=sha256:55ffd6ce583d97dc71dc92e930324c8c0d25aea7e3ade6ae54ef77cedb096811 \
--hash=sha256:569d65055d367e3dcdf30c3f41119467b73d9ee9faf332bdf40402644f5ac08e \
--hash=sha256:57f9947a7e57a081c1e3e0a2dd0d2dcf290a4531450e6f611e30084c222a7295 \
--hash=sha256:5989cb26b2e1efc6a42216a9f6b5ee495ce5ace2e5b352a9af489976b32d1ee2 \
--hash=sha256:5c22873ad1f0532ba40fa1727f3c0fc1bbbaab6d373d4cbe3f0dc74b2e2521c7 \
--hash=sha256:5e8b3d0b18fd623afa12ecb2ce8d8becef69f9b5440c6330c7972200e0bb84b0 \
--hash=sha256:61631e08084be9e21a8967ec3139c7616ed7c5e9368e05c86d1b39562c8a57b6 \
--hash=sha256:64511c54db4e4987aef4c41923235927428729e8174c5dba488429be70a998ed \
--hash=sha256:6669c1bf34080161ce49c589cc512ef24d4c704ac9d2b2d3667f519c60418378 \
--hash=sha256:672d207103e6b16ca098611b0f9efad6bc00afd47c03d6ef62186495ca677dc0 \
--hash=sha256:6768d67d1bce64270e0fdc2e69309d68b9b18ae56ddf6c711d168e9d051c2cac \
--hash=sha256:6a45c3d514f2436064db00d7fc8778d888f0236ebfed649b53d13a59e69ad51b \
--hash=sha256:6bd9e1788e15bfcf6a9082de42e30387e7b85d211ab21e57a939bb8cfaaf8d96 \
--hash=sha256:6d2a9efe686f9de00d0d1ea32a4a5a86d558a2277501bd78d964214eab625e59 \
--hash=sha256:6da83a088f8ef93b2d483a8232a4dbf4d69d3d8496b568a03c56becac43e1808 \
--hash=sha256:7018d4af1cd272e847aa5917983ab5e83e4f6579f9dbfecd4a79c0ca80b144c2 \
--hash=sha256:71f88e749ea29f67f21f3b36433c1dc54c7729ed2a6d9e2da2e0d9e0d7b224eb \
--hash=sha256:737c9c3981998eba27f11786f84fddcbabc74068b72a4a1f454ea02094b57b65 \
--hash=sha256:73e77980c7207854f00fc4e71fb1626868d5740ab4012623d55c7a99ad122a72 \
--hash=sha256:799c39bdf5e2f1292fedd3009f7b3c9e760f10b2420cb9638d56920840ff6db8 \
--hash=sha256:7a83aa6e4805df46fed18e989d3d16f86ef60cb50bbc8d9ce3a6be89165fbf6e \
--hash=sha256:7d3391b2188d18737cb2fa147028b1096236eaa7e156446c650a489fa2cadc91 \
--hash=sha256:7e1636da3d8dfc220b6dd10264db5f2b165e4888c4518594898fbe381049af8a \
--hash=sha256:805c8b84534fa10891890f0e4be39f3a99e94615d93e8836bf9fa1fdca2feeb2 \
--hash=sha256:811d02d5122171c1941357efd8f9bf4ffe907b7f0a1a4e729a880e4be3f46e3e \
--hash=sha256:8138eb83940ec7299024d92d4dee45f601b9e6c5ffde9d25f4e35e326203c707 \
--hash=sha256:83b3944fea42a8400edf92fd1770fb8d0d4f7de651353bd2d8525a92dba69a21 \
--hash=sha256:849dd2bb0e5e4ab2b71c7191726a4a8d5aa8a610daa584728cbee0b710ddc4ef \
--hash=sha256:8698d70a8081ee8c090dbb394768b5789a1da8b131b5499f89d071dd3cfaf6be \
--hash=sha256:8781a792a070cf2bd1b86d3aa943894115faaba6e88122a7bf32d62072742453 \
--hash=sha256:88d59b473bfb03259722600839af9bbd7fa13a2eb514beefeedb95997882f69a \
--hash=sha256:8909c2f1c6dd65e054ac4b573a91c8384d1492281e55d82d159d653f7a13adf6 \
--hash=sha256:8965520ac587c94a4ac48b729be3d8b8de00af39699b17585dfb599babe77977 \
--hash=sha256:8b5d563170ff8ba3181caa967c99a3c804d1dedb702c7cb93a6a7c32247da978 \
--hash=sha256:8e124f974786f831d6043728e38296969d3579db8896fe004682f5758e613581 \
--hash=sha256:8f0fac8b13d14bb06c68195f849371924ae53dd7b1c00fed24650f704383b692 \
--hash=sha256:9240187afb63d2f9ddc3e032c670356fe941f6e20662ea168a5dc3f1f317e1b3 \
--hash=sha256:925f929d6b59a8b3f8b8c6ac363cd0af7eecc81efb3071770b3c6717c450a369 \
--hash=sha256:9348cbb300d224fe3b89793262cb093504d4ae927004468463f745188a193e4a \
--hash=sha256:9388003072b95f2f1e3fd908604194d653ba21330d811961a78b7da1a77e9e36 \
--hash=sha256:9438a2648b2195980cb2dd8e53ed7b8df91319e2d0b70ae61a9e1d1bc8d3bec9 \
--hash=sha256:94e4c421742086aeee4c32a506eec8859d7634aad943f7e6aacf70f813478768 \
--hash=sha256:94f5407f7bc64fa6463906b896f9904beeeb7dd8dc116ee8e9056c8714ff9916 \
--hash=sha256:971a3bbb75d97ae4e2e8f7d4834236f86f85f0c85e04ab2e191db1123b04f80b \
--hash=sha256:9e227f3dbe6bde7491cf0a9965d00b88c6b1a4a95d11480ddf88bb96d397c19f \
--hash=sha256:9e25feb9e330b63edb0278a0acdf85e50d0cb0fbf49c3084abbe4e24ae195346 \
--hash=sha256:9f098115c247e11d138ab83a28fa0323c77015007ea2df73ba5fd714dfefd67c \
--hash=sha256:a18f38cafc329bac5e3c2b96c765b4c96d3d103421ed22ab7988c1e3fce27464 \
--hash=sha256:a4bbd2d87dd233b9fc5812160c3d0ffbe42edc22a26ce0469f58479ede633fe9 \
--hash=sha256:a5fcffb37e602b0b3c1638a97746b9b96125caa9bcf6fa41d337a9261de231ee \
--hash=sha256:a8e9f292fcda89b324f2f5c91d13f1424a153e40fc2756f38ee23b15835ff300 \
--hash=sha256:a9f54054101545a9a9cccefddf54316aa6e4491611fcbef9e91b3b6bebec04f6 \
--hash=sha256:aa2c838cc024642cc04c6854232f32b43e5e22833dd11119c1766c7873b8370d \
--hash=sha256:ac0c7c9f1609b0c4c114feb1d7a3409564c7fb77e360bed9e97e5d25dfeaf868 \
--hash=sha256:add96447a86d205ab616665d53b2950ee81083757f56e6ea833c8b2917646b46 \
--hash=sha256:ae9dcb8fbe244cb82f8a6458b455b927a03685e383d9bacf1ea5ce180b96dc97 \
--hash=sha256:b4a635a0487774f841cb1fb62e907e7195cc95bc761e053184b8acc3ceb20733 \
--hash=sha256:b4d12837e0203bbace818ff4a7461afdcd78bcd782351cea148139180d7bcffe \
--hash=sha256:b61687d0828e72bf5cda24a2690188f37170bd31c9359ac97e4e66569f120a16 \
--hash=sha256:b807e598953730f82e4eae3bd30f6a122cf6b31c398c6b504c0e04c13c170429 \
--hash=sha256:b8cd1f918b26fd7b1832ece557cc18f2d8747309ff8b3f0ef9d4250c5ad67a39 \
--hash=sha256:b91cc9d336957239ff200f30097e6fea2dc6d6fb3c81e853eaa09eac904fd894 \
--hash=sha256:bd3ce56ae2cbae3ba82b683bc425cd7e48d2ed8b10f3e818186b6f5646d9271c \
--hash=sha256:be6cb0c799abb0e2ba3e618e6d28ddddf7e485f6c2ce938dfa237daf3905072c \
--hash=sha256:befb4158af32106b9a93db8d6d1d1cbbd418c0d5aca0cabb7b1780abf0c89169 \
--hash=sha256:bf053da3c97a4bc5ecfbb218cdd2983febd91c617be8367d139882aa11e490aa \
--hash=sha256:c02e8f18bdedba082cef725942ac823b9b60656db07f7e265cb31618dfd00d77 \
--hash=sha256:c1bc67752d5f21013cfe430df4062441714eab79f65a6a05e01505957e9c35fe \
--hash=sha256:c61750fadcd119d0825bcb7d7d675dd264dcc89cc05292aab5be68ebdbb374ad \
--hash=sha256:c90d5b3d4e944e065a301d741b3c1d784f6bd1f503aa68b4967e32b2ba313d85 \
--hash=sha256:c9a7f43c0b202b334cc9184af09bb8f21d3a209e038efaf106936fb69e6b026e \
--hash=sha256:cb96e6e088d6cf71c1ea977510948320234824cf226e32f6f6e044f7a9c82b34 \
--hash=sha256:cf63c214fe879a65e69a386f915e36104fc84254ab141240f8854602d8e0be2a \
--hash=sha256:d1aca03ede943eb80ab3d63bb082c84b7aab85ea83bd0fd0c200260945fb49d9 \
--hash=sha256:d2e56fd3b00222722abfb3f5f0759ddbae4b90811b5ad4343c64030ad1bde70c \
--hash=sha256:d5f93ebbeb8032d47e349328ec8662d973d9b05a70b3c35df1f91fe419b84749 \
--hash=sha256:d882a373d8093c2941e01291b7ced96e9cbe4781da9a7751ca7e6c70385e5214 \
--hash=sha256:d920abdfa61279ba1a2ef9484aab07bf03331f8c08a10120fa332353d06e6932 \
--hash=sha256:da2af0d7aebfc2074080d72efa6ab8317c62481ef1f896f65d9999c1c01f4494 \
--hash=sha256:dd8ea6ebee7aedbf7c749fa80521d9ccf1ba473e0d1e14805caafbaad281c889 \
--hash=sha256:de8b364c423ef0a4bad9069657d617f9a5d2b2062457a89b1fa16ee199c399c1 \
--hash=sha256:df1ae86ff54725a01fa1a0510b914ca53a161b7050be74f6204e24aded5971d0 \
--hash=sha256:dff05cb7016dff1e9fd68f4122c127b65dfc59de5306cfb7ad92f956f230bee2 \
--hash=sha256:e1a622f13970d81f95d0c72f9dc090dce9085fccfa4c9f2174377ee32bd15786 \
--hash=sha256:e49fb0d1ce92cfa0cb198cc5b1b11cdf9d0638658e2a2db2687e39db7c87fc78 \
--hash=sha256:e5c802729725bd07e2bc3ab7b76dc7e0bbfc53129d8f1eb1c002c24cf774717e \
--hash=sha256:e841068dc0be4cb6dfb5c890eb88cbdcff2f4a332393c7ec94e8e618bd32c1a8 \
--hash=sha256:e916035e3e9930cbdfdd10abf48861340221857f45509565898e012263f7b289 \
--hash=sha256:eba154571c16e032112afac0dc2dfe9e63c2ceb7aedd07bb7eecf2ce26d4dd4c \
--hash=sha256:f03460ff076f70ab595bb45a0205ccea1971443575b6920c52e755dec2b3fbfe \
--hash=sha256:f0ec3b750b59375eab5b0fb2b9254810c00a3375be6d789899f1055a1d556237 \
--hash=sha256:f291bcf42ae98eb5107edb162c3c998b4a89648fd8e99ed4cbd12705292788cd \
--hash=sha256:f61efe1d2fe0de16158a5fe1d1cf3c14bdb6aecd54d8938fd26512c525c1f624 \
--hash=sha256:f68edfc67aabac33708941f26f22a7b8e9f81429bc0cf249fcf7d66b23af8d19 \
--hash=sha256:fa95848c929b6a75f6848d3c9793e59db365ee436776e57db835cdbfa79ba977 \
--hash=sha256:fd9f8797427910198f95bced71ddfed61130d7e349213bfb8466c9c99e2c46a8 \
--hash=sha256:fdb4ca07ab75ffadab4a8b135ad59cdbb3156b99310f3d565370da74a15d6bd3
# via jinja2
python-debian==1.1.1 \
--hash=sha256:f98ae013e8e5310e49041cc3860a7105df73af73d4ff1d8afb474770d328a6ad \
--hash=sha256:fe4fc3dc798dbf1f0ef5865e2b1b4f7cc0352b6a511b25ab7594906c64a73629
# via reuse
python-magic==0.4.27 \
--hash=sha256:c1ba14b08e4a5f5c31a302b7721239695b2f0f058d125bd5ce1ee36b9d9d3c3b \
--hash=sha256:c212960ad306f700aa0d01e5d7a325d20548ff97eb9920dcd29513174f0294d3
# via reuse
reuse==6.3.0 \
--hash=sha256:5a6ca437057c07ca22a67256520e2783ab03b5524d3a4535603c3d49e3d4b001 \
--hash=sha256:be6b598aa6d5cdf44af0da265572a72f0adcd30033857af874fd8607188259c1
# via -r .github/requirements-ci.in
tomlkit==0.15.3 \
--hash=sha256:a83ce6de3b648e68dd9b50aabadad749ba823eb58b1d026f3c0a283c4767a9c1 \
--hash=sha256:b3c3020ec1a4bd469d12e31fb4da938e7f6ba758cdbec3fd9047db63120eaf81
# via reuse
zizmor==1.32.0 \
--hash=sha256:0a999c98015becd9f69919ce01febadfb1c2be9b8ec2ce9ef7eb13ff23ba8eba \
--hash=sha256:0cdd38fca6eb34ceb567548548d706332e3535ea66894b9168c048e03207b68c \
--hash=sha256:3f404b26791ed06a5ea9eaa0bfd5b973fc5228bac7db8b3c5ec7f0c7ad2ed16d \
--hash=sha256:84a6acb975accc13408786a2bd274b572537ca19c933ebbc13e78f3988562071 \
--hash=sha256:913fd3943bc1358aa6e23b33fe01cc98bf67af23985258b8fbf24eaa2f8728ea \
--hash=sha256:9cd1dd7734042f40ca0faa2a31fb4e9033dede620d996af2f903744b8f04fca9 \
--hash=sha256:aa4b4e216321dd5cf202cd79fc83296468f0eed79d850cd65ac8187a6bbc5496 \
--hash=sha256:bddcdb0e37d1aa53c9f831c55627a5829d0d552cb0afb4b80fbe16a3a3140366 \
--hash=sha256:d34dcfa702875202b4163d90ebb9cc5222f3d1a7d4b72bf796d87b5a15b24194 \
--hash=sha256:dd818f99d833b86cd432d5412d620d936b5df074b33404fff8b67acff55d3259 \
--hash=sha256:eaedf57859f026a0a7da2a6b574517b1fe01e256c6875b3319a06ee1cee026a7 \
--hash=sha256:f0b664d394576e08605fe8094e8e992056d74b808f30c0c9ca9ed227001dcf67
# via -r .github/requirements-ci.in
-51
View File
@@ -1,51 +0,0 @@
name: Announce Release to Discord
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: "Existing release tag to re-announce"
required: true
type: string
permissions:
contents: read
jobs:
link-discussion:
runs-on: ubuntu-latest
# `contents: write` edits the release; `discussions: write` lets GitHub
# auto-create the linked Discussion under the configured category.
permissions:
contents: write
discussions: write
steps:
- name: Link release to Announcements discussion
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Via env, never interpolated into the script: a tag name is
# user-controlled text.
TAG: ${{ github.event.release.tag_name || inputs.tag }}
REPO: ${{ github.repository }}
# Setting --discussion-category on a published release causes
# GitHub to auto-create the linked Discussion. Requires the
# repo to have Discussions enabled with an "Announcements"
# category (configured manually under repo Settings).
run: |
gh release edit "$TAG" --repo "$REPO" --discussion-category "Announcements"
announce:
needs: link-discussion
permissions:
contents: read
uses: poli0981/.github/.github/workflows/announce-release.yml@main
with:
tag_override: ${{ inputs.tag || '' }}
# Only what the shared workflow declares — not `inherit`, which would hand
# every repository secret (Android signing keys included) to it.
secrets:
DISCORD_RELEASES_WEBHOOK: ${{ secrets.DISCORD_RELEASES_WEBHOOK }}
DISCORD_REPO_WEBHOOK: ${{ secrets.DISCORD_REPO_WEBHOOK }}
DISCORD_PING_ROLE_ID: ${{ secrets.DISCORD_PING_ROLE_ID }}
-57
View File
@@ -1,57 +0,0 @@
name: Compliance
on:
pull_request:
branches: [main]
types: [opened, edited, synchronize, reopened]
push:
branches: [main]
permissions:
contents: read
concurrency:
group: compliance-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
# REUSE (https://reuse.software): every file in the repo has a declared
# copyright holder and SPDX license — via REUSE.toml, not per-file headers.
# Fails when a file arrives that the annotations do not cover (e.g. a font
# or icon under another license) until REUSE.toml says what it is.
reuse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0
# PR titles follow the commit convention (`type(scope): message`) — merge
# commits carry them into main's history and the changelog.
pr-title:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
refactor
perf
docs
test
ci
build
chore
revert
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" should start with a lower-case letter, like
the rest of the history (e.g. "feat(editor): add next-part button").
-22
View File
@@ -1,22 +0,0 @@
name: Notify CI Failures
on:
workflow_run:
# Match the exact `name:` of each watched workflow (ci.yml, security.yml,
# compliance.yml, rust.yml). Renaming one silently breaks this filter —
# keep them in sync.
workflows: ["CI", "Security", "Compliance", "Rust"]
types: [completed]
# REQUIRED: declare permissions matching the reusable workflow's needs.
# Reusable needs `actions: read` to inspect workflow_run details.
permissions:
contents: read
actions: read
jobs:
notify:
uses: poli0981/.github/.github/workflows/notify-ci-failure.yml@main
# Only the webhook the shared workflow declares — not `inherit`.
secrets:
DISCORD_CI_WEBHOOK: ${{ secrets.DISCORD_CI_WEBHOOK }}
@@ -1,20 +0,0 @@
name: Notify Release Pipeline
on:
workflow_run:
# Match the exact `name:` of the release-pipeline producers
# (release-desktop.yml + announce-release.yml). Renaming either silently
# breaks this filter — keep them in sync.
workflows: ["Release Desktop", "Announce Release to Discord"]
types: [completed]
permissions:
contents: read
actions: read
jobs:
notify:
uses: poli0981/.github/.github/workflows/notify-release-pipeline.yml@main
# Only the webhook the shared workflow declares — not `inherit`.
secrets:
DISCORD_RELEASE_PIPELINE_WEBHOOK: ${{ secrets.DISCORD_RELEASE_PIPELINE_WEBHOOK }}
-38
View File
@@ -1,38 +0,0 @@
name: Pages migration notice
# The app moved to https://ytgenerator.stream. What used to be the GitHub
# Pages site (poli0981.github.io/youtube-generator) is replaced by a single
# static page that hands visitors the data their browser saved there — as a
# backup file the new site restores — and points them to the new address.
#
# Run by hand once; the page is removed on 2026-11-29 together with this
# workflow and the github-pages environment (tracked in an issue).
on:
workflow_dispatch:
permissions: {}
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
- uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
with:
path: migration-page
- id: deployment
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
-138
View File
@@ -1,138 +0,0 @@
name: Release Android
on:
push:
tags: ["v*"]
workflow_dispatch:
inputs:
tag:
description: "Tag to build (e.g. v1.0.0). The manifests must already carry this version."
required: true
type: string
permissions:
contents: read
jobs:
# Same gate as release-desktop.yml: never sign an APK for a tag whose code
# fails the checks or whose version fields disagree with the tag.
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.inputs.tag || github.ref }}
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
# Release artifacts are built from a clean install: a cache written
# by any other workflow must not be able to feed into them.
package-manager-cache: false
- run: npm ci --ignore-scripts
- run: npm run typecheck
- run: npm run test:run
- run: npm run check:version
- run: npm run check:tauri
- name: Tag matches the manifests
env:
TAG: ${{ github.event.inputs.tag || github.ref_name }}
run: |
version="v$(node -p "require('./package.json').version")"
if [ "$version" != "$TAG" ]; then
echo "::error::Tag $TAG does not match package.json ($version)"
exit 1
fi
build-android:
needs: verify
runs-on: ubuntu-latest
permissions:
contents: write # upload the APK to the draft release
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.inputs.tag || github.ref }}
persist-credentials: false
# No dependency caches in a release job (see release-desktop.yml).
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
# Release artifacts are built from a clean install: a cache written
# by any other workflow must not be able to feed into them.
package-manager-cache: false
- uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0
with:
distribution: temurin
java-version: "17"
- uses: android-actions/setup-android@be39fa834029ff78f1a44aa3bb0819b8fc2bd8fd # v4.0.4
- name: Install Android NDK (r27 LTS)
run: sdkmanager "ndk;27.3.13750724"
# A master commit, not the regenerated `stable` branch — see rust.yml.
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
with:
toolchain: stable
targets: aarch64-linux-android,armv7-linux-androideabi,i686-linux-android,x86_64-linux-android
- run: npm ci --ignore-scripts
- name: Install Tauri CLI
run: cargo install tauri-cli --version "^2" --locked
- name: Decode keystore
env:
ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
run: echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > "$RUNNER_TEMP/release.jks"
- name: Write keystore.properties
env:
ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
ANDROID_STORE_PASSWORD: ${{ secrets.ANDROID_STORE_PASSWORD }}
run: |
{
echo "storeFile=$RUNNER_TEMP/release.jks"
echo "storePassword=$ANDROID_STORE_PASSWORD"
echo "keyAlias=$ANDROID_KEY_ALIAS"
echo "keyPassword=$ANDROID_KEY_PASSWORD"
} > src-tauri/gen/android/keystore.properties
- name: Build signed APK
env:
# Pin NDK_HOME to the exact version we installed above — the runner may
# ship a different default NDK that ANDROID_NDK_ROOT would point at.
NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.3.13750724
run: cargo tauri android build --apk
# Keep the APK regardless of whether the release upload works, so a
# broken upload never costs a 20-minute rebuild.
- name: Upload APK as workflow artifact
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: ytdescgen-android-apk
path: src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
if-no-files-found: error
# Uses `gh` (pre-installed on every runner) rather than a third-party
# action. `softprops/action-gh-release@v3` resolved the target release
# from GITHUB_REF instead of the `tag_name` it was given, so on a tag push
# it looked for a release tagged `refs/tags/v0.35.0` and on a
# workflow_dispatch it looked for one tagged `refs/heads/main` — neither
# exists, so it tried to CREATE a release on a branch ref and got
# "Resource not accessible by integration". The v0.35.0 APK was built
# three times before this was pinned down.
#
# `gh release upload` takes the tag as a positional argument and cannot
# make that mistake. `--clobber` makes a re-run idempotent.
- name: Upload APK to draft release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ github.event.inputs.tag || github.ref_name }}
REPO: ${{ github.repository }}
APK: src-tauri/gen/android/app/build/outputs/apk/universal/release/app-universal-release.apk
run: |
gh release upload "$TAG" "$APK" --clobber --repo "$REPO"
-138
View File
@@ -1,138 +0,0 @@
name: Release Desktop
on:
push:
tags: ["v*"]
# Manual re-run hook — lets us rebuild a release without deleting +
# recreating the tag. Useful when a transient runner failure (e.g.
# the macOS DMG bundler hitting an AppleScript flake) costs us one
# arch's binary on an otherwise-shipped tag.
workflow_dispatch:
inputs:
tag:
description: "Tag to build (e.g. v1.0.0). The job still expects the manifests to already carry this version."
required: true
type: string
permissions:
contents: read
jobs:
# Nothing gets built for a tag whose code does not pass the gate or whose
# six version fields disagree with the tag itself.
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
ref: ${{ github.event.inputs.tag || github.ref }}
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
# Release artifacts are built from a clean install: a cache written
# by any other workflow must not be able to feed into them.
package-manager-cache: false
- run: npm ci --ignore-scripts
- run: npm run typecheck
- run: npm run test:run
- run: npm run check:version
- run: npm run check:tauri
- name: Tag matches the manifests
env:
TAG: ${{ github.event.inputs.tag || github.ref_name }}
run: |
version="v$(node -p "require('./package.json').version")"
if [ "$version" != "$TAG" ]; then
echo "::error::Tag $TAG does not match package.json ($version)"
exit 1
fi
build:
needs: verify
permissions:
contents: write # create the draft release and upload the binaries
strategy:
fail-fast: false
matrix:
include:
# windows-latest serves the windows-2025-vs2026 image (VS 2026
# toolchain) from June 15, 2026. Tauri build (MSI + NSIS)
# verified on that exact image 2026-06-12, actions run
# 27388695090 — no runner pin needed.
- os: windows-latest
target: x86_64-pc-windows-msvc
# Default Windows bundles: MSI + NSIS (.exe). Both ship.
bundleArgs: ""
# Apple silicon. GitHub retired the macOS 14 image on 2026-11-02
# (`macos-14` jobs are cancelled: "The configuration
# 'macos-14-arm64-us-default' is not supported"); macos-15 is
# its direct successor.
- os: macos-15
target: aarch64-apple-darwin
# macOS DMG bundling on hosted runners flakes inside
# `bundle_dmg.sh` (the AppleScript that sets icon
# positions in the DMG window times out on the headless
# runner). Build only the `.app` bundle; tauri-action
# tar.gzips it into a `.app.tar.gz` for upload. Users
# expand and drag-drop into /Applications.
#
# Intel macOS (x86_64) is NOT built — the `macos-13`
# free runner queue is functionally unavailable since
# GitHub started deprecating it. Revisit with a
# `universal-apple-darwin` build on this same runner if
# Intel support becomes a priority.
bundleArgs: "--bundles app"
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
# Default Linux bundles: AppImage + deb. Both ship.
bundleArgs: ""
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
# On `workflow_dispatch` checkout the requested tag; on a
# tag push we already get the tag commit by default.
ref: ${{ github.event.inputs.tag || github.ref }}
persist-credentials: false
# No dependency caches in a release job: a poisoned cache entry written
# by any other workflow would otherwise flow straight into the binaries.
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version-file: .node-version
# Release artifacts are built from a clean install: a cache written
# by any other workflow must not be able to feed into them.
package-manager-cache: false
# A master commit, not the regenerated `stable` branch — see rust.yml.
- uses: dtolnay/rust-toolchain@683b588c487a69d01f6c6ddf40f036ff682cc2c8
with:
toolchain: stable
targets: ${{ matrix.target }}
- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf
- run: npm ci --ignore-scripts
- uses: tauri-apps/tauri-action@1deb371b0cd8bd54025b384f1cd735e725c4060f # v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# AppImage bundling on hosted runners flakes: linuxdeploy (itself
# an AppImage) needs FUSE to mount, which GitHub runners don't
# reliably provide → "failed to run linuxdeploy". Extract-and-run
# avoids FUSE; NO_STRIP skips a strip pass that also intermittently
# fails. (No-op on Windows / macOS.) Transient CDN 504s while
# *fetching* linuxdeploy are handled by re-running the job.
APPIMAGE_EXTRACT_AND_RUN: 1
NO_STRIP: true
with:
tagName: ${{ github.event.inputs.tag || 'v__VERSION__' }}
releaseName: "YTDescGen ${{ github.event.inputs.tag || 'v__VERSION__' }}"
releaseBody: "See the assets to download the installer for your platform."
releaseDraft: true
args: ${{ matrix.bundleArgs }} --target ${{ matrix.target }}
-87
View File
@@ -1,87 +0,0 @@
name: Security
on:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
# Mondays 04:17 UTC — new advisories and Scorecard drift surface weekly
# even when nothing is being merged.
- cron: "17 4 * * 1"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: security-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
# Blocks a PR that ADDS a dependency with a known high/critical advisory.
# Licenses are checked by `npm run check:licenses` (ci.yml) instead: the
# dependency graph's license data is patchy for npm and would flag noise.
dependency-review:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/dependency-review-action@a1d282b36b6f3519aa1f3fc636f609c47dddb294 # v5.0.0
with:
fail-on-severity: high
license-check: false
# Lint the workflows themselves: syntax/expressions (actionlint) and
# security smells — template injection, over-broad permissions, credential
# persistence, unpinned actions (zizmor, config in .github/zizmor.yml).
workflow-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: actionlint
uses: docker://rhysd/actionlint:1.7.12
with:
args: -color
- name: zizmor
uses: zizmorcore/zizmor-action@45d7276c9ca790aabd705e31ca99c6185c3e76dd # v0.8.1
with:
# Report in the log and fail the job; no SARIF upload, so findings
# are fixed in the PR instead of piling up as code-scanning alerts.
advanced-security: false
min-severity: medium
# OpenSSF Scorecard: supply-chain posture (pinned deps, token permissions,
# branch protection …). Informational — results go to the job summary and
# scorecard.dev, not to code scanning.
scorecard:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # publish_results: signs the result for scorecard.dev
actions: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0
with:
results_file: scorecard.json
results_format: json
publish_results: true
- name: Summarise
run: |
{
echo "### OpenSSF Scorecard"
echo
echo "| Check | Score |"
echo "| --- | --- |"
jq -r '.checks[] | "| \(.name) | \(.score) |"' scorecard.json
echo
echo "Aggregate: **$(jq -r '.score' scorecard.json) / 10**"
} >> "$GITHUB_STEP_SUMMARY"
+5 -6
View File
@@ -1,13 +1,12 @@
# zizmor (workflow security linter) configuration — see security.yml.
# zizmor (workflow security linter) configuration — run by
# .gitea/workflows/security.yml (job `workflow-lint`, offline).
rules:
unpinned-uses:
config:
policies:
# The shared notification / announcement workflows live in the
# maintainer's own `poli0981/.github` repository and are deliberately
# tracked at `main`, so a fix there reaches every repo at once.
"poli0981/*": any
# Everything else must be pinned to a full commit SHA.
# Every action and every call into the ops repo (poli0981/.github) is
# pinned to a full commit SHA. Renovate bumps the actions; the ops pins
# are bumped by hand when the ops repo is tagged (its runbook §3.2).
"*": hash-pin
dangerous-triggers:
ignore:
+60
View File
@@ -0,0 +1,60 @@
<!--
Accessibility barrier. The title should start with "[A11y]: ".
Thanks for telling us. You don't need to know what causes the problem —
describe what you tried and what happened. Prefer not to post in public?
E-mail contact@poli0981.dev with "[Accessibility]" at the start of the subject.
How reports are handled: https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/ACCESSIBILITY.md#reporting-a-barrier
-->
### What happened?
<!-- What were you trying to do, and what got in the way?
e.g. "With NVDA, the Copy Title button is announced only as 'button'." -->
### Steps to reproduce
<!-- The page, then numbered steps — keys you pressed, gestures or voice commands. -->
1.
2.
3.
### What did you expect?
### Assistive technology or setting
<!-- Tick everything you were using. -->
- [ ] Keyboard only
- [ ] Narrator (Windows)
- [ ] NVDA
- [ ] JAWS
- [ ] VoiceOver (macOS / iOS)
- [ ] TalkBack (Android)
- [ ] Orca (Linux)
- [ ] Screen magnifier / browser zoom
- [ ] Speech input / voice control
- [ ] High contrast / forced colours
- [ ] Reduce motion
- [ ] Switch access
- [ ] Other (say which below)
**Version of that tool** (if you know it, e.g. NVDA 2026.3):
**How much does it stop you?** (keep one; the levels are explained in ACCESSIBILITY.md)
- Critical — I can't finish a core task (write, generate, copy, save, get past the website check)
- High — I can finish it, but only with real difficulty or a workaround
- Medium — it works, but inconsistently or confusingly
- Low — a minor annoyance
**App version** (About page, e.g. `v1.7.0`):
**Where are you running YTDescGen?** (web / Windows / Linux / macOS 1.6.0 or older / Android / local dev):
**Operating system and browser** (e.g. Windows 11 25H2 + Edge 141, Android 15):
**App language** (en / vi / ja / es / ko / zh / pt-BR / id):
### Screen recording, screenshot or screen reader output (optional)
/label ~accessibility ~needs-triage
+50
View File
@@ -0,0 +1,50 @@
<!--
Bug report. The title should start with "[Bug]: ".
Please fill in as much as you can — a clear reproduction is the difference
between a fix today and a fix in three weeks. Security problems: never here,
e-mail security@poli0981.dev (see SECURITY.md).
-->
**App version** (About page, e.g. `v1.7.0`):
**Where are you running YTDescGen?** (keep one)
- Web (ytgenerator.stream)
- Desktop — Windows
- Desktop — Linux
- Desktop — macOS (1.6.0 or older)
- Android (APK)
- Local dev (`npm run dev`)
**Operating system** (e.g. Windows 11 25H2, Ubuntu 24.04, Android 15):
**Browser** (web only, e.g. Chrome 141, Firefox 144, Safari 26):
**App language at the time of the bug** (en / vi / ja / es / ko / zh / pt-BR / id):
### Steps to reproduce
<!-- Numbered steps, with the exact inputs that triggered the bug. -->
1.
2.
3.
### Expected behavior
### Actual behavior
### Console / log output
<!-- From the app's Logs page (all platforms) or the browser's DevTools console (web). -->
```
```
### Screenshots / screen recording (optional)
### Pre-flight checks
- [ ] I searched existing issues and this is not a duplicate.
- [ ] I'm on the latest released version (or noted my older version above).
/label ~bug ~needs-triage
+39
View File
@@ -0,0 +1,39 @@
<!--
Option request. The title should start with "[Option]: ".
YTDescGen is in maintenance mode (CONTRIBUTING.md → Maintenance mode,
https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/CONTRIBUTING.md#maintenance-mode):
it takes no new features, but an option people really need can still join —
or leave — one of the lists the app already has.
-->
**Add or remove?** (keep one)
- Add an option
- Remove an option
**Which list** (keep one)
- Store (store links)
- Social or donate platform
- Game genre
- Video type
- Content warning
- Tech note
- GPU (rig catalog)
- Upscaler / frame generation (Video settings)
- Another list (say which below)
**The option** — its name as it should appear, e.g. "itch.io", "Roguelite", "AMD FSR 4 x4":
### Who needs it, and why
<!-- What can't you do today? A link helps — the store page, the vendor's announcement, a video of yours that needed it. -->
### Suggested wording (optional)
<!-- For a content warning or tech note: the editor label and the line the description should print, in any of the eight languages you know. -->
### Pre-flight checks
- [ ] I searched existing issues and this is not a duplicate.
- [ ] This adds or removes an option in a list the app already has — it is not a new feature.
/label ~option-request ~needs-triage
+34
View File
@@ -0,0 +1,34 @@
<!--
Translation or wording fix. The title should start with "[i18n]: ".
YTDescGen ships eight languages. Vietnamese is native-reviewed; Japanese,
Spanish, Korean, Chinese, Portuguese (Brazil) and Indonesian are AI-translated
(see https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/DISCLAIMER.md),
so corrections from native speakers are very welcome.
-->
**Language** (en / vi / ja / es / ko / zh / pt-BR / id):
**Where** (keep one)
- The interface (buttons, labels, messages)
- The generated title, description or tags
- Both
### Current text
<!-- Copy it exactly as shown, and say where you saw it — the page or field, or the section of the description. A screenshot helps. -->
### Suggested text
**Why** (keep one)
- It doesn't fit the culture, region or usual tone
- A spelling or grammar mistake that could mislead
- The meaning is wrong (a mistranslation)
- Something else (say below)
### Details (optional)
### Pre-flight checks
- [ ] I searched existing issues and this is not a duplicate.
/label ~i18n ~needs-triage
@@ -0,0 +1,88 @@
<!--
YTDescGen is in maintenance mode (CONTRIBUTING.md → "Maintenance mode"):
new features are out of scope, and `feat:` merge requests from outside
contributors are closed unless their scope is `options` (an agreed option
request), `a11y` or `i18n`. GitLab CI does not run here: the maintainer
applies the change on Gitea (the canonical repository), where CI runs, and
the mirror then marks this merge request merged.
-->
## Summary
<!-- 1-3 bullet points describing the change -->
-
-
## Scope
<!-- Tick what this merge request is. Anything else is out of scope while YTDescGen is in maintenance mode. -->
- [ ] Bug fix, broken UI/UX or accessibility fix
- [ ] Translation or wording fix
- [ ] Add or remove an option in one of the app's lists, agreed in issue #
- [ ] Dependency update, security fix, or major language/runtime/framework upgrade
- [ ] Cloudflare / Worker change, or a fix for a website incident
- [ ] Docs or tests only
## Type
- [ ] `feat` — new feature
- [ ] `fix` — bug fix
- [ ] `refactor` — code change with no behavior change
- [ ] `docs` — documentation only
- [ ] `test` — tests only
- [ ] `ci` — CI / build pipeline
- [ ] `chore` — other
## Checklist
- [ ] `npm run typecheck` and `npm run typecheck:all` pass
- [ ] `npm run lint` and `npm run format:check` pass
- [ ] `npm run validate:locales` passes — new strings are in all 8 locales (en, vi, ja, es, ko, zh, pt-BR, id)
- [ ] `npm run test:coverage` passes, with tests for the change
- [ ] `npm run knip` passes — no unused files, exports or dependencies
- [ ] `npm run check:version`, `check:tauri`, `check:licenses` and `check:copyright` pass
- [ ] `npm run build && npm run check:bundle` stay within budget
- [ ] Touched `worker/` or `wrangler.jsonc`: `npm run cf:check`
- [ ] Touched `src-tauri/`: `cargo fmt --check`, `cargo clippy --all-targets --locked -- -D warnings`, `cargo test`
- [ ] No secrets, credentials, or PII committed
- [ ] No new runtime dependencies without prior discussion in an issue
- [ ] Commit messages follow `type(scope): message`
## UI Changes
<!--
If this merge request touches the UI, attach screenshots or short recordings at:
- Desktop (≥1024px)
- Tablet (768px)
- Mobile (390px)
- Dark and light theme
- The desktop / Android app, if the change is platform-specific
Otherwise delete this section.
-->
## Accessibility
<!--
If this merge request touches the UI, check each item (see ACCESSIBILITY.md#for-contributors).
Otherwise delete this section.
-->
- [ ] Works with the keyboard alone: logical focus order, visible focus, Esc closes, no focus trap
- [ ] Every control has a name and every field a label (`Field`, `IconButton`); new `aria-label` text is in all 8 locales
- [ ] Errors and status changes are announced (alert banner, toast or live region)
- [ ] Colour is not the only signal; design tokens only, and the contrast test passes
- [ ] New animation respects reduced motion; targets are at least 24 × 24 px
- [ ] Checked once with a screen reader (Narrator, VoiceOver, NVDA or Orca)
## AI-Assisted Contribution
- [ ] Yes — AI tool used: <!-- e.g. Claude Code (Claude Opus 5.5), Cursor, GitHub Copilot -->
- [ ] No
If yes: did you review every line of generated code/text yourself before submitting? <!-- yes/no -->
## Related Issues
<!-- Fixes #123, Closes #456 -->
+10
View File
@@ -0,0 +1,10 @@
# gitleaks exceptions (security.yml → the ops repo's security.yml, `secrets`
# job, full history). One fingerprint per line: <commit>:<path>:<rule>:<line>.
# Describe each finding in words, never quote it (a quote is a new finding).
# Editing a flagged line later makes a new finding, with its own entry.
# The Cloudflare Web Analytics beacon token: public by design, the site embeds
# it in every page (build-plugins/web-only.ts), and its test checks the snippet
# byte for byte. It identifies the site to the analytics, it grants nothing.
5ced6b4a86810c098ae6bda289eb46b16066699f:build-plugins/web-only.ts:generic-api-key:16
5ced6b4a86810c098ae6bda289eb46b16066699f:tests/build/web-only.test.ts:generic-api-key:42
+4 -4
View File
@@ -1,10 +1,10 @@
# Accessibility
**Last updated:** 2026-11-09
**Last updated:** 2026-11-25
YTDescGen should work for everyone who makes videos, including people who use a keyboard instead of a mouse, a screen reader, zoom or magnification, high-contrast modes, voice control or a touch screen. This statement says what works today, how it is checked, what doesn't work yet, and how to tell us about a barrier.
It covers the website at [ytgenerator.stream](https://ytgenerator.stream), the desktop apps (Windows, macOS, Linux) and the Android app. They share one interface, so what is said here applies to all of them unless a platform is named.
It covers the website at [ytgenerator.stream](https://ytgenerator.stream), the desktop apps (Windows and Linux; the macOS app up to 1.6.0, the last version built for it) and the Android app. They share one interface, so what is said here applies to all of them unless a platform is named.
## Our goal
@@ -86,7 +86,7 @@ The app has **not** been tested yet with NVDA, JAWS, VoiceOver (macOS), TalkBack
If something in YTDescGen gets in your way, please tell us. You don't need to know what causes it.
- **Preferred:** open an [accessibility issue](https://github.com/poli0981/youtube-generator/issues/new?template=accessibility.yml). The form asks for the platform, the assistive technology you use and what happened.
- **Preferred:** open an [accessibility issue](https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Accessibility) on the GitLab mirror (the project's issue tracker since November 2026). The template asks for the platform, the assistive technology you use and what happened.
- **Not comfortable posting publicly?** Email **contact@poli0981.dev** with `[Accessibility]` at the start of the subject.
- **Quick question?** Ask on [Discord](https://discord.gg/kDM9GMu5vm).
@@ -124,4 +124,4 @@ The pull request template has the same checklist.
## Feedback on this statement
Ideas for improving this statement or the way accessibility is handled are welcome in [GitHub Discussions](https://github.com/poli0981/youtube-generator/discussions). Please report barriers through the [reporting process](#reporting-a-barrier) so they can be tracked.
Ideas for improving this statement or the way accessibility is handled are welcome as an [issue on the GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues) or by email to **contact@poli0981.dev**. Please report barriers through the [reporting process](#reporting-a-barrier) so they can be tracked.
+72
View File
@@ -2,6 +2,78 @@
All notable changes to YTDescGen ship as tagged releases on `main`.
## v1.7.0 — 2026-11-26
**YTDescGen has moved.** The GitHub account behind the project was suspended in November 2026, and with it went the repository, the releases page, the issue tracker, the wiki and Discussions, and the pipeline that deployed the website. This release is the move: the source now lives on the maintainer's own Gitea, issues on a GitLab mirror, downloads on `releases.poli0981.dev`, and every link in the app points there. Nothing about what the app generates changes. Web, desktop (Windows, Linux) and Android all ship as 1.7.0; there is no macOS build any more.
### Where things live now
| What | Where |
| ----------------------------- | ------------------------------------------------------------------------------------------------------- |
| Source (canonical) | <https://git.poli0981.dev/poli0981/youtube-generator> |
| Issues and merge requests | <https://gitlab.com/poli0981/youtube-generator> (a mirror Gitea keeps current; Gitea takes no sign-ups) |
| Releases (notes and links) | <https://git.poli0981.dev/poli0981/youtube-generator/releases> |
| Download files | `https://releases.poli0981.dev/youtube-generator/<version>/…`, with a `SHA256SUMS` |
| Newest Android APK, always | <https://releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk> |
| Patches, questions / security | `code@poli0981.dev` / `security@poli0981.dev` (by e-mail only) |
The apps have no auto-update, so nothing changes for an installed copy until you install 1.7.0 over it — your data stays. The Android APK is signed with the same key as before.
### Changed
- **About page**: the source button and row open the Gitea repository, a new row opens the issues on the GitLab mirror, and the author row the Gitea profile. **Report a bug** (header, sidebar, error page, command palette) opens a new issue on the GitLab mirror with the Bug template. In all eight languages.
- **Removed links that led nowhere**: the wiki (About and the command palette's "Open the wiki"), Discussions, and GitHub Sponsors in the donate list. The wiki stayed on GitHub; Discord and the GitLab issues take the questions.
- **Downloads** come from the Gitea releases page, with the files on `releases.poli0981.dev`: Windows (`-setup.exe` or `.msi`), Linux (`.AppImage`, `.deb`, `.rpm`) and the universal Android APK, each file named with its version.
- **No macOS build.** There is no macOS build machine since the move; 1.6.0 stays the last version for Mac, and keeps working.
- **Terms of Use and Privacy Policy** (Effective 2026-11-25): the apps are distributed from the Gitea releases page and `releases.poli0981.dev` (Cloudflare, named in the policy); the GitHub Pages moving notice and GitHub's terms are gone. Nothing about your data changes, so the app does not ask you to accept them again. The public legal pages and `security.txt` follow (security reports by e-mail only).
- The accessibility statement (English and Vietnamese) points barrier reports at the GitLab mirror.
### Removed
- The **GitHub Pages moving notice** for the old `poli0981.github.io/youtube-generator` address, which went with the account before its planned removal on 2026-11-29.
- The workflow that closed out-of-scope issues and pull requests on GitHub: issues now arrive on GitLab, and the maintainer closes them by hand.
### Under the hood
- **CI moved to Gitea Actions** (`.gitea/workflows/`), on a runner on the maintainer's PC: the same gates in `ci.yml`, plus a **`deploy` job** that publishes ytgenerator.stream with `wrangler deploy` after every green push to `main` (Cloudflare Workers Builds pulled from GitHub). Scheduled runs moved into 13:00–16:00 UTC. The shared workflows come from the ops repository, pinned to its v2026.11.4.
- **One release workflow** builds Windows (MSI, NSIS), Linux (AppImage, deb, rpm, on Ubuntu 22.04's glibc) and the universal APK, writes `SHA256SUMS`, uploads everything to Cloudflare R2 and opens a draft Gitea release with the links. A run without a tag is a dry run.
- **Security**: actionlint and zizmor on the workflows, gitleaks over the whole history, Opengrep, osv-scanner and cargo-deny, every week and on every change. The advisories no Tauri release fixes yet (glib 0.18 and the D-Bus crates, Linux only) are listed with their reasons and an expiry date. SonarCloud, GitHub's dependency review and OpenSSF Scorecard are gone with the platform.
- **Qodana** runs through the ops repository's workflow; Qodana for Rust in Docker on the runner PC. Its Early Access linter re-checks types and borrows itself and reported nine errors rustc does not have (a `u64` constant read as a `Duration`, a borrow read as a move), so those inspections are left to rustc and clippy, which already run in CI.
- **Renovate replaces Dependabot**: grouped updates after a 3-day release age, security updates at once, majors only when approved on the Dependency Dashboard; the old rules (Tauri's npm packages and crates together, i18next below 26.7, the TypeScript aliases by hand, glib left to Tauri) carry over.
- **Security fixes in the desktop and Android shell**: the first scans on Gitea found six RustSec advisories that patch releases already fix — url 2.5.9 (a stack overflow on nested `blob:` URLs), cookie 0.18.3 (private-cookie nonces could repeat in forked processes), tokio 1.51.6, rustix 1.1.6, event-listener 5.4.2 and anyhow 1.0.103. They sit in crates Tauri pulls in (the app itself makes no network requests); all six are taken.
- **Dependencies**, everything at least 3 days old: eslint 10.15 and typescript-eslint 8.73 move to minimatch 11, which closes the development-only ReDoS advisory GHSA-g3hv-75wg-m249 — `npm audit` now reports nothing. Tauri 2.12.7 (tauri-build 2.7.6, wry 0.57.3, tao 0.37.3, opener 2.7.3; @tauri-apps/api 2.12.5, cli 2.12.6), wrangler 4.166.0, vite 8.3.8, knip 6.47, prettier 3.10.1, lucide-react 1.77, simple-icons 16.38.1, react-router-dom 7.18.6, marked 18.2.1. THIRD_PARTY_NOTICES regenerated.
- **Docs**: README (Where things live, Download), CONTRIBUTING, SECURITY, MAINTAINERS, NOTICE, HOSTING, PACKAGING, DEVELOPMENT (+ Vietnamese), TECH-SPEC, ARCHITECTURE, FEATURES, ROADMAP, I18N, CLAUDE.md; GitLab issue and merge request templates; the link-preview card and the site's structured data no longer list macOS.
- typecheck, typecheck:all, lint, format:check, validate:locales, knip, check:version, check:tauri, check:licenses, check:copyright, **1156 tests** (the moving notice's 2 went with it), build, cf:check and `cargo fmt` / `clippy` / `test` all pass; initial load 279.6 of 280 KB gzip. On Gitea: every check green (gitleaks, Opengrep, osv-scanner, cargo-deny, Qodana for JS and for Rust with zero problems); the first `deploy` from CI put the move live on ytgenerator.stream (`security.txt` with the e-mail contact only, the legal pages linking Gitea); a release dry run built all six files on the runner PC — the APK signed with the release key — and wrote the checksums and notes. `wrangler dev` on 4.166.0 serves the legal pages, the gate and `security.txt`.
- Six manifests bumped 1.6.0 → 1.7.0.
## v1.6.0 — 2026-11-17
The last feature release: **DLSS 5 Neural Rendering** and more frame-generation modes in Video settings, a **Custom** LUT that prints just "LUT applied", and **JetBrains Qodana** next to SonarCloud. From this version on YTDescGen is in **maintenance mode**: it stays maintained, but takes no new features. Web, desktop and Android all ship as 1.6.0.
### Added
- **DLSS 5 Neural Rendering** — a switch in **Video settings** for NVIDIA (RTX 50 series), printed after the DLSS mode: `In-game Setting: Ultra - NVIDIA DLSS Quality + NVIDIA DLSS 5 Neural Rendering + NVIDIA Dynamic Multi Frame Generation`. Picking another vendor turns it off.
- **More frame generation** — NVIDIA's **x6** and **Dynamic** Multi Frame Generation (DLSS 4.5), and **Custom…** for every vendor: type what you used (_NVIDIA Smooth Motion_, _Lossless Scaling x3_) and the description prints it as typed.
- **Custom LUT** — "Custom" is the LUT field's first suggestion (typing it works too, in any case). **My Rig** then reads just _LUT applied_ — _Có áp dụng LUT_ in Vietnamese, and so on in every output language — without naming your own LUT.
- **Option request** and **Translation or wording fix** issue forms.
### Changed
- **Maintenance mode.** YTDescGen is feature-complete. Dependency and security updates, major language / runtime / framework upgrades, bug, UI/UX, accessibility and translation fixes, options added to or removed from its lists when people really need them, and Cloudflare or website fixes still land; new features don't. See README → Project status and CONTRIBUTING → Maintenance mode; the README carries a status badge.
- The **Feature request** form is gone — ideas go to Discussions → Ideas. A workflow closes feature issues and `feat:` pull requests from outside contributors with an explanation in English and Vietnamese (option requests, accessibility and translation pull requests stay open), and anything the maintainer labels `out-of-scope`.
- Bug and accessibility reports carry the `needs-triage` label; the `triage` label they named never existed.
### Under the hood
- **Qodana** (JetBrains, Ultimate licence): Qodana for JS in native mode and Qodana for Rust (Early Access, Docker) run on every push and pull request, each with a quality gate of zero problems, reported to Qodana Cloud. Dependabot and fork pull requests, which get no token, skip it; the token never shares a step with `npm ci`. The first run's findings (74 in TypeScript, 12 in Rust) were fixed — React 19.3's deprecated `FormEvent` in the three save forms (now `SubmitEvent`), `[^\s]` written as `\S` in the 18 store and playtest URL patterns, the theme start-up script's globals, two copies of the sorted-JSON helper made one (`stableJson`), Vitest reusing Vite's alias map, `show_main_window` for the desktop's three copies of the same block — or excluded in `qodana.yaml` with the reason written next to each.
- **Editor store v22** back-fills `frameGenCustom` and `dlssNeuralRendering`; backups and templates from older versions restore unchanged.
- **Dependencies**, the newest releases at least a week old: react-i18next 17.1.13, lucide-react 1.70, zustand 5.1.0, simple-icons 16.37, vite 8.3.7 (rolldown 1.2.18), @vitejs/plugin-react 6.3.0, tailwindcss 4.3.5, typescript-eslint 8.72.2, knip 6.44.2, marked 18.2.0, wrangler 4.159.0. Workflows: sonarqube-scan-action 8.4.1, action-semantic-pull-request 6.1.2, setup-java 6.2.0. Rust: async-executor 1.14.0 → 1.14.1 (1.14.0 was yanked). THIRD_PARTY_NOTICES regenerated.
- **Node.js 26.13.1**, the 2026-11-11 security release (16 CVEs, 7 rated high, in HTTP/2 and TLS servers): `.node-version` names the 26 line, so CI picks it up; the app runs no Node server, so nothing else changes.
- Held back, still inside the 7-day cooldown: eslint 10.15 / typescript-eslint 8.73 — they move to minimatch 11, which closes the medium, development-only alert #50 — and Tauri 2.12.6.
- **Docs**: README, CONTRIBUTING, SECURITY, MAINTAINERS, ROADMAP, FEATURES (upscaler and frame generation, LUT Custom), TECH-SPEC (Qodana, store v22, the rig block), DEVELOPMENT (+ Vietnamese), CONTENT-INVENTORY (+ Vietnamese), CLAUDE.md, version references.
- typecheck, typecheck:all, lint, format:check, validate:locales, knip, check:version, check:tauri, check:licenses, check:copyright, **1158 tests** (was 1131), build, cf:check and `cargo fmt` / `clippy` / `test` / `deny` all pass; Qodana reports no problems in either project and SonarCloud none on new code; initial load 279.6 of 280 KB gzip. Verified live: `wrangler dev` on 4.159.0 serves the gate page, `/legal/accessibility` and `robots.txt` and refuses a verify without a token; in the dev server a draft survives a reload on zustand 5.1, a v21 draft migrates to v22, NVIDIA offers x6 / Dynamic / Custom… and the DLSS 5 switch (the Output page prints the line above), switching to AMD turns DLSS 5 off and keeps a Custom frame generation, and a Custom LUT prints "LUT applied" in English and "Có áp dụng LUT" in Vietnamese.
- Six manifests bumped 1.5.2 → 1.6.0.
## v1.5.2 — 2026-11-10
A maintenance release: the desktop and Android apps move to **Tauri 2.12.5**, with the fixes its window, webview and single-instance layers collected since 2.12.4, and this week's dependency updates are folded in. What the app generates does not change. Web, desktop and Android all ship as 1.5.2.
+46 -26
View File
@@ -4,26 +4,37 @@
**YTDescGen** generates YouTube titles, descriptions and tags for Gameplay No Commentary channels, in eight languages, with profiles (channel), presets (game) and templates (whole form) to skip repeated data entry.
- **Web app**: <https://ytgenerator.stream> — a Cloudflare Worker (Turnstile gate + static build), deployed by Cloudflare Workers Builds on every push to `main`. See [docs/HOSTING.md](docs/HOSTING.md).
- **Desktop** (Windows / macOS / Linux) and **Android** apps: Tauri 2, released from signed tags.
- **Repository**: `github.com/poli0981/youtube-generator` · **License**: Apache-2.0 (`LICENSE`, `NOTICE`, REUSE-compliant).
- **Web app**: <https://ytgenerator.stream> — a Cloudflare Worker (Turnstile gate + static build), deployed by the `deploy` job of `.gitea/workflows/ci.yml` (`wrangler deploy`) after every green push to `main`. See [docs/HOSTING.md](docs/HOSTING.md).
- **Desktop** (Windows / Linux) and **Android** apps: Tauri 2, released from signed tags to `releases.poli0981.dev/youtube-generator/` (no macOS builds after 1.6.0: no macOS runner).
- **Repository**: `git.poli0981.dev/poli0981/youtube-generator` (Gitea, canonical; the GitHub account was suspended in November 2026, the `github` remote is a read-only record — never push to it). Issues and merge requests: the GitLab mirror `gitlab.com/poli0981/youtube-generator`. **License**: Apache-2.0 (`LICENSE`, `NOTICE`, REUSE-compliant).
- **Maintainer**: poli0981 (SkullMute). Contacts by purpose: see `src/config/about.ts` and README.
**Status: maintenance mode** (since v1.6.0). Don't propose new features. Every change must fall under the policy in [`CONTRIBUTING.md` → Maintenance mode](CONTRIBUTING.md#maintenance-mode):
- dependency updates on the regular schedule;
- security fixes (a CVE rated high or critical, a serious runtime issue);
- major language, runtime or framework upgrades;
- bug, UI/UX and accessibility fixes, and adding or removing an option in one of the app's lists (stores, platforms, genres, video types, content warnings, tech notes, GPUs, upscaler / frame-gen modes) when people really need it;
- translation fixes (wording that doesn't fit a culture or region, misleading spelling);
- Cloudflare / Worker changes the platform forces, website incidents.
Out-of-scope issues and merge requests on the GitLab mirror are closed by hand (label `out-of-scope`); `feat(options)`, `feat(a11y)` and `feat(i18n)` stay open. (GitHub's triage workflow went with the move: Gitea Actions cannot see GitLab.)
## Tech Stack
| Layer | Technology |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| UI | React 19, TypeScript 7 (strict), Radix primitives (`radix-ui`), Motion (LazyMotion), cmdk, sonner, lucide-react + simple-icons |
| Build | Vite 8 (Rolldown); config imports need `.ts` extensions; Node 26 (`.node-version`) |
| Type checking | TypeScript 7 `tsc` (`@typescript/native`); `typescript` is an npm alias for `@typescript/typescript6`, the 6.0 API typescript-eslint loads |
| Styling | Tailwind CSS 4, CSS-first `@theme` tokens in `src/styles/globals.css` |
| State | Zustand 5 + `persist` (localStorage) — the only store on every platform |
| Routing | React Router 7 — `BrowserRouter` on the web, `HashRouter` in Tauri |
| i18n | i18next + react-i18next, 8 locales (en, vi, ja, es, ko, zh, pt-BR, id); `en` bundled, others lazy |
| Desktop / Android | Tauri 2 (Rust) — see `src-tauri/` |
| Web hosting | Cloudflare Workers (`worker/`, `wrangler.jsonc`), Turnstile, Web Analytics |
| Tests | Vitest (node environment; Worker tests included) |
| Quality | ESLint, Prettier, knip, coverage thresholds, bundle budget, licence allow-list, copyright years, REUSE, actionlint/zizmor, cargo fmt/clippy/deny, SonarCloud (CI-based) |
| Layer | Technology |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| UI | React 19, TypeScript 7 (strict), Radix primitives (`radix-ui`), Motion (LazyMotion), cmdk, sonner, lucide-react + simple-icons |
| Build | Vite 8 (Rolldown); config imports need `.ts` extensions; Node 26 (`.node-version`) |
| Type checking | TypeScript 7 `tsc` (`@typescript/native`); `typescript` is an npm alias for `@typescript/typescript6`, the 6.0 API typescript-eslint loads |
| Styling | Tailwind CSS 4, CSS-first `@theme` tokens in `src/styles/globals.css` |
| State | Zustand 5 + `persist` (localStorage) — the only store on every platform |
| Routing | React Router 7 — `BrowserRouter` on the web, `HashRouter` in Tauri |
| i18n | i18next + react-i18next, 8 locales (en, vi, ja, es, ko, zh, pt-BR, id); `en` bundled, others lazy |
| Desktop / Android | Tauri 2 (Rust) — see `src-tauri/` |
| Web hosting | Cloudflare Workers (`worker/`, `wrangler.jsonc`), Turnstile, Web Analytics |
| Tests | Vitest (node environment; Worker tests included) |
| Quality | ESLint, Prettier, knip, coverage thresholds, bundle budget, licence allow-list, copyright years, REUSE, actionlint/zizmor, cargo fmt/clippy, gitleaks/Opengrep/osv-scanner/cargo-deny (ops), Qodana (JS + Rust) |
## Project Structure
@@ -66,7 +77,6 @@ worker/ # Cloudflare Worker: gate, cookies, headers, rate
build-plugins/ # legal pages at build time; web-only extras
src-tauri/src/ # lib.rs (plugins, tray), storage.rs (name-only file
# commands), file_dialog.rs (native Save/Open)
migration-page/ # moving notice for the old GitHub Pages address (until 2026-11-29)
tests/ # engine, store, utils, worker, build, i18n, config, hooks, scripts
scripts/ # locale validation + generator, version sync, Tauri versions,
# bundle budget, licences/third-party notices, copyright
@@ -77,6 +87,12 @@ docs/ # DEVELOPMENT, HOSTING, ARCHITECTURE, FEATURES, R
assets/brand/ # logo sources: every icon and the link-preview card come from them
public/ # static web files (_headers, icons, manifest, 404, robots, sitemap)
LICENSES/ # license texts for REUSE
.gitea/workflows/ # CI (Gitea Actions): ci (+ deploy), compliance, security, rust,
# qodana, release, announce/notify callers of the ops repo
.github/ # issue forms + PR template (Gitea reads them), actionlint/zizmor
# config, requirements-ci (hash-locked Python tools)
.gitlab/ # issue + merge request templates for the GitLab mirror
renovate.json # Renovate rules on top of local>poli0981/renovate-config
```
## Coding Conventions
@@ -88,7 +104,7 @@ LICENSES/ # license texts for REUSE
- `src/` is typed against `lib` ES2022 — the browsers' floor (Chrome 111, Safari 16.4, Firefox 114), because Vite never polyfills. Don't reach for newer built-ins in the app without raising that floor; tests, scripts, worker and build plugins get ES2025 (`tsconfig.check.json`). `target` is ES2025 (ES2026 waits for TypeScript 7.1).
- Erasable syntax only (`erasableSyntaxOnly`, `verbatimModuleSyntax`): no enums, namespaces or parameter properties; `import type` for types.
- React 19: `ref` is an ordinary prop — no `forwardRef`.
- Regexes must stay linear (SonarCloud S8786): no unbounded quantifier that can restart inside its own run (`\s+$`, a leading `\s+` in an unanchored pattern, `\s*` next to `\s*`) — trim first, anchor, bound the run, or use a loop.
- Regexes must stay linear (a ReDoS rule Sonar enforced as S8786; Opengrep and Qodana look for the same): no unbounded quantifier that can restart inside its own run (`\s+$`, a leading `\s+` in an unanchored pattern, `\s*` next to `\s*`) — trim first, anchor, bound the run, or use a loop.
### React
@@ -130,7 +146,7 @@ LICENSES/ # license texts for REUSE
3. **Profiles vs presets vs templates**: profile = channel (rarely changes), preset = game (reused across parts), template = the whole form. The field lists live in `src/config/library-fields.ts`.
4. **Tags are generated**, then trimmed to YouTube's own length count.
5. **Your data stays on your device.** localStorage is the only store; backups are files the user controls (plus automatic backups in the desktop app's data folder).
6. **The desktop webview never names a path**: Rust commands take file names under the app data folder or open the native dialog themselves. Blocking work in an `async` command (a dialog, file I/O) goes through `tauri::async_runtime::spawn_blocking` — SonarCloud flags it otherwise (`rust:S7493`).
6. **The desktop webview never names a path**: Rust commands take file names under the app data folder or open the native dialog themselves. Blocking work in an `async` command (a dialog, file I/O) goes through `tauri::async_runtime::spawn_blocking`, so the async runtime is never blocked.
7. **The web app is gated** by Turnstile, verified server-side in the Worker; the gate fails open if its secret is missing.
## Development Commands
@@ -162,15 +178,16 @@ npm run generate:brand # favicon, PWA icons, link-preview card from assets/
## Git Workflow
- `main` only: feature branches (`feat/…`, `fix/…`, `docs/…`, `chore/…`) → PR → `main`. Every merge to `main` deploys the web app.
- `main` only: feature branches (`feat/…`, `fix/…`, `docs/…`, `chore/…`) → pull request on Gitea → `main`. Every merge to `main` deploys the web app (CI's `deploy` job).
- Commit and PR-title format: `type(scope): message` (`feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`) — CI checks PR titles, and the message must start with a lower-case letter (`feat(editor): warnings for AI…`, not `feat(editor): AI…`).
- Commits and release tags are GPG-signed; never bypass signing or hooks.
- Required checks: `check`, `dependency-review`, `workflow-lint`, `reuse`, `pr-title`.
- Commits and release tags are GPG-signed; never bypass signing or hooks. Merges made in the Gitea UI are unsigned (Gitea has no signing key), so branch protection must not require signatures.
- Required checks (Gitea branch protection on `main`): `check`, `workflow-lint`, `reuse`, `pr-title`.
- Push and fetch over SSH (`ssh://git@git.poli0981.dev:2222/…`); from Git Bash use Windows' OpenSSH, which has the key: `GIT_SSH_COMMAND=C:/Windows/System32/OpenSSH/ssh.exe git push origin <branch>`. Merge pull requests in the Gitea UI: a command-line merge leaves the PR open.
## Releases
- Bump the version in all six places: `package.json`, `package-lock.json` (×2), `src-tauri/tauri.conf.json`, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock` (`npm run check:version`), and add a `CHANGELOG.md` entry.
- Push a signed tag `vX.Y.Z` → the release workflows verify, build the desktop and Android artifacts and create a **draft** release. The maintainer publishes it.
- Push a signed tag `vX.Y.Z` → `.gitea/workflows/release.yml` verifies, builds Windows (host mode on the maintainer's PC), Linux (`ubuntu-22.04`) and the universal APK, uploads them with `SHA256SUMS` to R2 (`releases.poli0981.dev/youtube-generator/<version>/`, then the alias `youtube-generator-latest.apk`) and opens a **draft** Gitea release with the links. Check the links, publish the draft in the Gitea UI, then run **Announce Release to Discord** by hand with the tag (a draft the job token created fires no `release: published`). A dispatch of `release.yml` without a tag is a dry run (artifacts only). An uploaded file is never replaced: a broken release ships as a new version.
## Important Notes for Claude Code
@@ -181,8 +198,11 @@ npm run generate:brand # favicon, PWA icons, link-preview card from assets/
- New video type: `src/config/video-types.ts` + every `templates.json` (titles, intros, pinned-comment greetings).
- New content warning / tech note: the id in `CONTENT_WARNINGS` / `TECH_NOTES` (`src/engine/types.ts`), a group in `src/config/content-warning-groups.ts` / `tech-note-groups.ts`, the editor label (`ui.json`) and description line (`templates.json`) in all 8 locales and `_schema.json` — tests fail on any gap — and the row in `docs/CONTENT-INVENTORY.md` (+ vi). Don't repeat a fact that has its own field (language patch, game version, difficulty, the Video settings upscaler).
- New store platform: `src/config/platforms.ts` (URL pattern, `tagName`), optionally a name extractor in `src/utils/url-extractors.ts`.
- New upscaler / frame-gen option: the id in `src/config/graphics-settings.ts`, the vendor's list in `src/engine/graphics-vendor.ts`, the editor label (`editor.upscaleQuality.<vendor>` / `editor.frameGenMultiplier.<vendor>`, `ui.json`) and the description label (`description.graphics.upscale|frameGen.<vendor>`, `templates.json`) in all 8 locales and `_schema.json` — `tests/engine/graphics-vendor.test.ts` fails on a gap. A new id only widens the lists (no store bump); a new field does need one.
- UI changes follow the accessibility checklist in `ACCESSIBILITY.md` (#for-contributors): keyboard, names via `Field` / `IconButton`, announced errors, tokens only, reduced motion, 24 px targets. Generated text gets `lang` (the output language); pages name themselves with `useDocumentTitle`, which `RouteAnnouncer` reads out. Update ACCESSIBILITY.md (+ `docs/i18n/vi/`) when what it promises changes.
- Never commit `note.txt`, `warning.txt` or `__pycache__/`; never put real secrets in files (`.dev.vars` holds Cloudflare's public Turnstile test keys only).
- SonarCloud (project `poli0981_youtube-generator`) is CI-based: the `sonarcloud` job in `ci.yml` scans every PR from this repository and every push to `main`, with the coverage from `check`; settings in `sonar-project.properties`; Automatic Analysis is off. Keep it at 0 open issues and the quality gate (Sonar way: A ratings, reviewed hotspots, ≤ 3 % duplication, ≥ 80 % coverage on new code) green — the job fails with the gate. Coverage covers what `coverage.include` in `vitest.config.ts` lists (the logic layers); everything else is in `sonar.coverage.exclusions`, because a file missing from the LCOV report counts as 0 % — a new source folder goes into one list or the other. The version passed to the scanner starts each release's new-code period. Fork and Dependabot PRs skip the scan (no `SONAR_TOKEN`). Check a PR with `https://sonarcloud.io/api/issues/search?componentKeys=poli0981_youtube-generator&pullRequest=<n>&resolved=false` and its gate with `https://sonarcloud.io/api/qualitygates/project_status?projectKey=poli0981_youtube-generator&pullRequest=<n>`. Workflows install with `npm ci --ignore-scripts` and call local binaries (`npm run …`), never `npx` for a package that isn't installed.
- TypeScript bumps may be manual: `@typescript/native` (`npm:typescript@^7`) and `typescript` (`npm:@typescript/typescript6@^6`) are npm aliases Dependabot may not follow. Stop the dev server before `npm ci` on Windows — it locks native modules (EPERM).
- The Cloudflare dashboard, publishing releases and repository settings are the maintainer's; ask before touching them.
- **Forge & CI**: Gitea Actions on `.gitea/workflows/`, run by the maintainer's PC (`windows-latest` = host mode, `ubuntu-*` = Docker), so jobs wait while the PC is off, and scheduled jobs sit inside 13:00–16:00 UTC (slots in the ops repo's registry). The procedure, the shared decisions (D1–D16) and Gitea's quirks are in the ops repo `poli0981/.github` (`docs/GITEA-MIGRATION.md`, `docs/migration/youtube-generator.md`). Calls into the ops repo are pinned to a tag's commit SHA with `ops_ref` set to the same SHA; Renovate does not bump them — do it by hand when the ops repo is tagged. Workflows install with `npm ci --ignore-scripts` and call local binaries (`npm run …`), never `npx` for a package that isn't installed. No GitHub API anywhere (`gh`, `actions/github-script`): Gitea's REST API with the job token, as the ops README's table says. Watch a run without a token: `GET https://git.poli0981.dev/api/v1/repos/poli0981/youtube-generator/commits/<sha>/status`.
- Security scanning: `.gitea/workflows/security.yml` runs actionlint + zizmor (offline; tools from the hash-locked `.github/requirements-ci.txt` and pinned binaries) and the ops `security.yml` (gitleaks, Opengrep, osv-scanner, cargo-deny). An advisory no release fixes yet goes into `osv-scanner.toml` (next to the lockfile, with `effectiveUntil`) and, for crates, `src-tauri/deny.toml`, each with its reason.
- Qodana (`.gitea/workflows/qodana.yml`, the ops `reusable-qodana.yml`) runs on every PR and push to `main`: job `typescript` is Qodana for JS in native mode (`qodana.yaml`, Cloud project `yt-ts-js`, secret `QODANA_TOKEN_TS_JS`), job `rust` is Qodana for Rust, Early Access, in Docker Desktop on the maintainer's PC on `src-tauri/` (`src-tauri/qodana.yaml` with the dhi.io apt pin, project `yt-rust`, secret `QODANA_TOKEN_RUST`). Both gate on zero problems: fix a finding, or exclude it in the `qodana.yaml` with a comment saying why. Both skip without their token. It needs an Ultimate licence (currently the trial): when it lapses both jobs fail at the licence check.
- Dependencies: Renovate (self-hosted, `renovate.json` extends `local>poli0981/renovate-config`): non-majors grouped daily after a 3-day release age, OSV security PRs at once, majors only when ticked on the Dependency Dashboard. An npm bump makes `check:licenses` fail until `npm run generate:third-party` runs on the branch. TypeScript bumps are manual: `@typescript/native` (`npm:typescript@^7`) and `typescript` (`npm:@typescript/typescript6@^6`) are npm aliases. Stop the dev server before `npm ci` on Windows — it locks native modules (EPERM).
- The Cloudflare dashboard, publishing releases, Gitea/GitLab repository settings and secrets are the maintainer's; ask before touching them.
+67 -23
View File
@@ -1,17 +1,49 @@
# Contributing to YTDescGen
Thanks for taking the time to contribute. Read this once before opening your first PR — it saves time on both sides.
Thanks for taking the time to contribute. Read this once before opening your first merge request — it saves time on both sides.
## Where things live
Since November 2026 (the GitHub account was suspended):
- **Source** — [`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator), the canonical repository, on the maintainer's Gitea. It is read-only for everyone else: sign-ups are closed.
- **Issues and merge requests** — the mirror on GitLab, [`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator). Gitea pushes every change there, so it is always current.
- **Patches by e-mail** — `git format-patch` / `git send-email` to `code@poli0981.dev`.
The maintainer applies an accepted change on Gitea; the mirror then updates GitLab, and the merge request shows as merged (or is closed with a link to the commit). GitLab CI does not run on merge requests: CI runs on Gitea, on the maintainer's branch.
## Code of Conduct
Participation is governed by the [Code of Conduct](./CODE_OF_CONDUCT.md). By contributing, you agree to its terms.
## Maintenance mode
Since 1.6.0 (November 2026) YTDescGen is in **maintenance mode**. It is feature-complete and stays maintained, but it doesn't grow new features. These changes are still accepted:
1. **Dependency updates** on a regular schedule (Renovate, daily, grouped, after a 3-day release age; majors wait for the maintainer on the Dependency Dashboard).
2. **Security fixes**, as soon as possible: a dependency with a high or critical CVE, or a serious security issue in a runtime such as Node.js.
3. **Major upgrades** of a language, runtime or framework, for example Node 24 → 26 or TypeScript 6 → 7.
4. **Issues and pull requests** that:
- add or remove an option in one of the app's lists when people really need it — a store, a social or donate platform, a genre, a video type, a content warning or tech note, a GPU, an upscaler or frame-generation mode (open an [option request](#option-requests) first);
- fix a bug, a broken UI/UX or an accessibility barrier.
5. **Language fixes**: wording that doesn't fit a culture or region, and spelling mistakes that could mislead (see [i18n Contributions](#i18n-contributions)).
6. **Cloudflare / Worker** changes when the platform changes significantly.
7. **Website incidents** such as DDoS or bot spam.
Anything else is out of scope, new features in particular, unless the maintainer judges one genuinely necessary.
- The maintainer closes feature issues and `feat:` merge requests by hand, with the label `out-of-scope` — a `feat(options)`, `feat(a11y)` or `feat(i18n)` merge request stays open. (The workflow that did this on GitHub cannot see GitLab.)
- Feature ideas are welcome as a GitLab issue, with no commitment.
- If your issue or merge request was closed by mistake, reply to it and the maintainer will take another look.
Releases ship only when one of these changes needs one, for example a security fix for the desktop and Android apps. The website keeps deploying from `main`.
## Getting Started
1. Read the [Development Guide](./docs/DEVELOPMENT.md) — also available in [Vietnamese](./docs/i18n/vi/DEVELOPMENT.md).
2. Install dependencies: `npm install`.
3. Start the dev server: `npm run dev`.
4. Before opening a PR, run the same gates CI runs (the required `check` job):
4. Before opening a merge request, run the same gates CI runs (the required `check` job):
```bash
npm run typecheck && npm run typecheck:all
npm run lint && npm run format:check
@@ -29,25 +61,35 @@ Participation is governed by the [Code of Conduct](./CODE_OF_CONDUCT.md). By con
### Issues
Use the templates in `.github/ISSUE_TEMPLATE/`:
Open them on the [GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues/new) and pick a template (`.gitlab/issue_templates/`):
- **Bug report** — only if you can reproduce on the latest release.
- **Feature request** — only with a concrete use case, not abstract requests.
- **Option request** — add or remove an option in one of the app's lists; see [Option requests](#option-requests).
- **Translation or wording fix** — wording that doesn't fit a culture or region, or a spelling mistake that could mislead, in any of the eight languages.
- **Accessibility barrier** — anything that gets in the way with a keyboard, a screen reader, zoom, high contrast, voice control or touch. No reproduction on the latest release needed, and you don't need to know the cause. See [ACCESSIBILITY.md](./ACCESSIBILITY.md#reporting-a-barrier).
### Pull Requests
There is no feature request template: YTDescGen is in [maintenance mode](#maintenance-mode). An idea can still go in a plain issue.
- Branch from `main` (`feat/…`, `fix/…`, `docs/…`) and open the PR against `main`. Every merge to `main` deploys the web app, so `main` stays releasable.
- Commit format and **PR title**: `type(scope): message` — e.g. `feat(engine): add Spanish template support`. Types: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`. CI checks the PR title.
- Required checks: `check`, `dependency-review`, `workflow-lint`, `reuse`, `pr-title`. When `src-tauri/` changes, the Rust workflow's `lint-and-test` and `cargo-deny` run too, and GitHub's CodeQL code scanning runs on every PR. SonarCloud analyses PRs opened from this repository — its quality gate wants A ratings, reviewed security hotspots, at most 3 % duplication and at least 80 % test coverage on new code in the layers Vitest measures (PRs from forks get no secrets and skip it; the maintainer's merge runs it on `main`). Commits on `main` are signed.
- PR titles start with a lower-case letter after the colon (`feat(editor): add …`, not `feat(editor): Add …`).
- One logical change per PR. Don't bundle unrelated refactors.
### Option requests
The one kind of addition maintenance mode still takes: an option in a list the app already has, when people really need it — a store (store links), a social or donate platform, a genre, a video type, a content warning or tech note, a GPU in the rig catalog, an upscaler or frame-generation mode. Removing one that no longer makes sense works the same way.
Open an **Option request** issue first: the option's name as it should appear, which list, and who needs it and why (a link to the store page, the vendor's announcement or a video that needed it helps). Once it's agreed, a merge request titled `feat(options): …` is welcome. [ARCHITECTURE.md → Extensibility Points](./docs/ARCHITECTURE.md) and CLAUDE.md's "Important Notes" say which files each kind of option touches, and the checks fail until all eight locales have its strings.
### Merge requests
- Branch from `main` (`feat/…`, `fix/…`, `docs/…`) and open the merge request against `main` on the GitLab mirror. Every merge to `main` deploys the web app, so `main` stays releasable.
- Commit format and **title**: `type(scope): message` — e.g. `feat(engine): add Spanish template support`. Types: `feat`, `fix`, `refactor`, `docs`, `test`, `ci`, `chore`. CI checks the title of the maintainer's pull request on Gitea.
- CI runs on Gitea Actions (`.gitea/workflows/`), on the maintainer's PC: `check` (the gates above, then the production deploy on `main`), `reuse` and `pr-title`, `workflow-lint` (actionlint, zizmor) and the shared security scan — gitleaks, Opengrep, osv-scanner and cargo-deny. When `src-tauri/` changes, the Rust workflow's `lint-and-test` runs too. JetBrains Qodana analyses TypeScript and the Rust shell and fails on any problem it finds. Commits on `main` are signed; merges made in the Gitea UI are not.
- Titles start with a lower-case letter after the colon (`feat(editor): add …`, not `feat(editor): Add …`).
- In [maintenance mode](#maintenance-mode) a `feat` merge request from an outside contributor is closed, unless its scope is `options`, `a11y` or `i18n`. A fix is a `fix`.
- One logical change per merge request. Don't bundle unrelated refactors.
- All locale files must stay in lock-step — see the i18n section below.
- AI-assisted contributions are welcome but **must be disclosed** in the PR description.
- AI-assisted contributions are welcome but **must be disclosed** in the merge request description.
### Accessibility
UI changes keep YTDescGen usable with the keyboard alone and with screen readers. Run through the checklist in [ACCESSIBILITY.md](./ACCESSIBILITY.md#for-contributors) (the PR template repeats it); the contrast test (`tests/styles/contrast.test.ts`) fails if a colour token drops under WCAG AA.
UI changes keep YTDescGen usable with the keyboard alone and with screen readers. Run through the checklist in [ACCESSIBILITY.md](./ACCESSIBILITY.md#for-contributors) (the merge request template repeats it); the contrast test (`tests/styles/contrast.test.ts`) fails if a colour token drops under WCAG AA.
### i18n Contributions
@@ -63,34 +105,36 @@ Native-speaker corrections to AI-translated locales (JA / ES / KO / ZH / PT-BR /
The following are closed without review and may result in a contributor ban — no exceptions:
- **Suspected malicious code.** If a PR contains code we suspect may be a supply-chain attack, obfuscation, credential harvesting, cryptominer, or any form of malware — even if CodeQL and Dependabot don't flag it, the maintainer may investigate manually. **Detection equals ban.**
- **Unverified or suspicious links** in issues, PRs, or comments (pastebin scrapers, redirect chains, unfamiliar shortlinks, link-shortener URLs without context).
- **Behavior or language violating** [GitHub's Acceptable Use Policies](https://docs.github.com/en/site-policy/acceptable-use-policies).
- **Suspected malicious code.** If a merge request contains code we suspect may be a supply-chain attack, obfuscation, credential harvesting, cryptominer, or any form of malware — even if the security scans don't flag it, the maintainer may investigate manually. **Detection equals ban.**
- **Unverified or suspicious links** in issues, merge requests, or comments (pastebin scrapers, redirect chains, unfamiliar shortlinks, link-shortener URLs without context).
- **Behavior or language violating** [GitLab's Acceptable Use Policy](https://handbook.gitlab.com/handbook/legal/acceptable-use-policy/) or the [Code of Conduct](./CODE_OF_CONDUCT.md).
- **Off-topic / rambling reports** that don't get to the point. Example of what gets ignored: _"Good morning, today is a beautiful day, I was just wondering if maybe…"_ — get straight to the problem.
- **PRs that touch hundreds of files for a one-line fix** (typical sign of an auto-formatter run on unrelated files).
- **Merge requests that touch hundreds of files for a one-line fix** (typical sign of an auto-formatter run on unrelated files).
- **Tests deleted or skipped to make CI pass.**
- **"AI rewrote my entire codebase in a different style" PRs.** AI-assisted edits are welcome (disclosed); whole-repo rewrites are not.
- **Spam, drive-by typo fixes** that don't address a real issue, and karma-farming PRs.
- **"AI rewrote my entire codebase in a different style" merge requests.** AI-assisted edits are welcome (disclosed); whole-repo rewrites are not.
- **Spam, drive-by typo fixes** that don't address a real issue, and karma-farming merge requests.
## What We Want
Within [maintenance mode](#maintenance-mode):
- Bug fixes with a reproduction case and a regression test.
- Locale corrections from native speakers.
- New content-warning or tech-note IDs with all 8 translations and a clear rationale (especially horror-genre vocabulary) — the checks fail until every locale has its label and description line.
- New video types or genres that fit the gameplay no-commentary use case.
- Accessibility and mobile-responsive improvements.
- An option people really need, agreed in an [option request](#option-requests) first — for example a content-warning or tech-note ID with all 8 translations and a clear rationale (especially horror-genre vocabulary), a store, a genre or a video type that fits the gameplay no-commentary use case.
- Accessibility and mobile-responsive fixes.
- Performance fixes with a `before/after` measurement.
## What We Don't Want
- New features, unless the maintainer judges one genuinely necessary — share the idea in an issue instead.
- Cosmetic refactors with no behavior change.
- Adding new runtime dependencies without first opening an issue to discuss the tradeoff.
- Renaming files without coordinating with open PRs.
- Renaming files without coordinating with open merge requests.
- Changes to the LICENSE or NOTICE files (these are governance, not contributions).
## Contact
Questions about contributing or conduct: `code@poli0981.dev`. Security issues go through [SECURITY.md](./SECURITY.md), never a public issue. Accessibility barriers you'd rather not post publicly: `contact@poli0981.dev`, subject starting with `[Accessibility]`.
Questions about contributing or conduct: `code@poli0981.dev`. Security issues go by e-mail as [SECURITY.md](./SECURITY.md) says, never as a public issue on the GitLab mirror. Accessibility barriers you'd rather not post publicly: `contact@poli0981.dev`, subject starting with `[Accessibility]`.
## License
+2 -2
View File
@@ -4,14 +4,14 @@
YTDescGen is a personal project built by a single maintainer (`@poli0981`) for use with the [`@SkullMute`](https://www.youtube.com/@SkullMute) YouTube channel and shared publicly as open source. It is **not a commercial product** and there is no support obligation.
Code, documentation, locale translations, and design decisions in this repository were **co-authored with the assistance of Anthropic's Claude Code (Claude Opus models; v1.0.0 through v1.5.1 with Claude Opus 5.5, v1.5.2 with Claude Fable 5.2)**. All commits, releases, and architectural decisions are reviewed and approved by the maintainer before merging.
Code, documentation, locale translations, and design decisions in this repository were **co-authored with the assistance of Anthropic's Claude Code (Claude Opus models; v1.0.0 through v1.5.1, v1.6.0 and v1.7.0 with Claude Opus 5.5, v1.5.2 with Claude Fable 5.2)**. All commits, releases, and architectural decisions are reviewed and approved by the maintainer before merging.
This disclosure applies to:
- Source code in `src/` and `src-tauri/`.
- Documentation in `docs/` and all root markdown files.
- Locale files in `src/i18n/locales/`.
- CI/CD workflows in `.github/workflows/`.
- CI/CD workflows in `.gitea/workflows/`.
- The Cloudflare Worker in `worker/` and the build plugins in `build-plugins/`.
See also: [`THIRD_PARTY_NOTICES.md`](./THIRD_PARTY_NOTICES.md) § "AI-assisted development".
+15 -4
View File
@@ -1,10 +1,12 @@
# Maintainers
Since 1.6.0 the project is in **maintenance mode**: no new features, only the changes listed in [CONTRIBUTING.md → Maintenance mode](./CONTRIBUTING.md#maintenance-mode).
## Active Maintainers
### `@poli0981`
- **GitHub**: <https://github.com/poli0981>
- **Gitea** (canonical repositories): <https://git.poli0981.dev/poli0981> · **GitLab** (mirrors, issues): <https://gitlab.com/poli0981>
- **YouTube** (reference channel): <https://www.youtube.com/@SkullMute>
- **Website**: <https://poli0981.dev/> · all channels at <https://poli0981.dev/links/>
- **Email**: `code@poli0981.dev` (project) · `security@poli0981.dev` (vulnerabilities, see [SECURITY.md](./SECURITY.md))
@@ -12,11 +14,20 @@
## Maintainer Responsibilities
- Triage incoming issues and PRs.
- Run the release process: `CHANGELOG.md` entry, version bump, build artifacts, signed tag.
- Triage incoming issues and merge requests on the GitLab mirror, keeping them within the maintenance scope: feature requests from outside contributors are closed by hand with the label `out-of-scope` and an explanation.
- Apply accepted merge requests and e-mailed patches on Gitea (the mirror then updates GitLab).
- Run the release process: `CHANGELOG.md` entry, version bump, signed tag; CI builds the apps, uploads them to `releases.poli0981.dev` and drafts the Gitea release, which the maintainer publishes.
- Enforce the [Code of Conduct](./CODE_OF_CONDUCT.md).
- Review and approve locale translation contributions.
- Coordinate security advisory disclosure per [SECURITY.md](./SECURITY.md).
- Coordinate security disclosure per [SECURITY.md](./SECURITY.md).
## Where to Reach Us
- Bug reports, translation fixes and option requests: [issues on the GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues) (the Gitea repository takes no sign-ups)
- Feature ideas, with no commitment while in maintenance mode: a plain issue there
- Accessibility barriers: the [Accessibility barrier](https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Accessibility) template — see [ACCESSIBILITY.md](./ACCESSIBILITY.md)
- Patches and questions: `code@poli0981.dev`
- Vulnerabilities: privately, by e-mail, as [SECURITY.md](./SECURITY.md) describes
## Becoming a Maintainer
+1 -1
View File
@@ -1,5 +1,5 @@
YTDescGen — YouTube Gameplay Description Generator
Copyright 2026 poli0981 (https://github.com/poli0981)
Copyright 2026 poli0981 (https://git.poli0981.dev/poli0981)
This product includes software developed by poli0981 and contributors.
+3 -5
View File
@@ -1,6 +1,6 @@
# Privacy Policy
**Effective:** 2026-10-12
**Effective:** 2026-11-25
This policy covers YTDescGen — the web app at **https://ytgenerator.stream** and the desktop (Windows, macOS, Linux) and Android apps built from the same source. It is maintained by **poli0981 (SkullMute)**, who is responsible for it. Questions and requests: **privacy@poli0981.dev**.
@@ -42,10 +42,6 @@ The apps keep the same data in the app's own WebView storage and application-dat
The desktop app keeps its automatic backups (the newest ten, plus one made before each restore) in the `backups` folder inside the application-data folder, and its event log in `logs`. Uninstalling the app or deleting those folders removes everything. The apps make no network requests of their own; links you choose to open (store pages, donation pages, this policy on the web) open in your browser.
### The old address
Until 29 November 2026, `poli0981.github.io/youtube-generator` — where the web app used to live — shows a moving notice hosted by **GitHub Pages**. Browser storage belongs to a site, so data saved there can't move on its own: the notice reads what your browser saved on that address and lets you download it as a file. Nothing is uploaded; GitHub, as the host, receives the usual request data (see the [GitHub Privacy Statement](https://docs.github.com/en/site-policy/privacy-policies/github-general-privacy-statement)).
## 2. What the web app's hosting provider processes
The web app is hosted on **Cloudflare Workers**. Cloudflare acts as a service provider (processor) for the site and handles:
@@ -54,6 +50,8 @@ The web app is hosted on **Cloudflare Workers**. Cloudflare acts as a service pr
- **Turnstile bot check.** Before you enter, [Cloudflare Turnstile](https://www.cloudflare.com/products/turnstile/) runs a check — usually invisible — that evaluates technical browser and device signals and your IP address to tell people from automated traffic. Its data handling is described in Cloudflare's [Turnstile Privacy Addendum](https://www.cloudflare.com/turnstile-privacy-policy/). YTDescGen receives only a pass/fail result.
- **Cloudflare Web Analytics.** Aggregate, **cookieless** statistics: page views, referrer, country, browser, operating system and device type, and page-load performance. It sets no cookies, uses no local storage and does not fingerprint visitors. See [Cloudflare's Web Analytics privacy notes](https://www.cloudflare.com/web-analytics/) and the [Cloudflare Privacy Policy](https://www.cloudflare.com/privacypolicy/).
The desktop installers and the Android APK are downloaded from `releases.poli0981.dev`, which is served by Cloudflare (R2 storage) in the same way: the request data above, used to deliver the file, and nothing else. The apps themselves never contact it.
Cloudflare operates a global network, so this data may be processed outside your country under Cloudflare's data-processing terms (including the EU Standard Contractual Clauses).
## 3. Cookies
+41 -13
View File
@@ -2,16 +2,20 @@
**YouTube Gameplay Description Generator** — a template engine for Gameplay No Commentary YouTube channels.
**Use it at [ytgenerator.stream](https://ytgenerator.stream)**, or install the desktop app (Windows / macOS / Linux, 3–6 MB installers) or the Android app from [Releases](https://github.com/poli0981/youtube-generator/releases). One codebase: React + Tauri 2.
**Use it at [ytgenerator.stream](https://ytgenerator.stream)**, or install the desktop app (Windows / Linux, 3–6 MB installers) or the Android app — see [Download](#download). One codebase: React + Tauri 2.
Generate YouTube titles, descriptions and tags in eight languages. Save your channel as a profile and each game as a preset, and every new video is a few clicks.
[![Status: maintenance mode](https://img.shields.io/badge/status-maintenance_mode-yellow.svg)](#project-status)
[![CI](https://git.poli0981.dev/poli0981/youtube-generator/actions/workflows/ci.yml/badge.svg?branch=main)](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=ci.yml)
[![Qodana](https://git.poli0981.dev/poli0981/youtube-generator/actions/workflows/qodana.yml/badge.svg?branch=main)](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=qodana.yml)
[![Security](https://git.poli0981.dev/poli0981/youtube-generator/actions/workflows/security.yml/badge.svg?branch=main)](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=security.yml)
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](./LICENSE)
[![Node](https://img.shields.io/badge/node-%E2%89%A526-brightgreen)](./docs/DEVELOPMENT.md)
[![Latest release](https://img.shields.io/github/v/release/poli0981/youtube-generator?include_prereleases)](https://github.com/poli0981/youtube-generator/releases)
[![Last commit](https://img.shields.io/github/last-commit/poli0981/youtube-generator)](https://github.com/poli0981/youtube-generator/commits)
[![Latest release](https://img.shields.io/gitea/v/release/poli0981/youtube-generator?gitea_url=https%3A%2F%2Fgit.poli0981.dev)](https://git.poli0981.dev/poli0981/youtube-generator/releases)
[![Last commit](https://img.shields.io/gitea/last-commit/poli0981/youtube-generator?gitea_url=https%3A%2F%2Fgit.poli0981.dev)](https://git.poli0981.dev/poli0981/youtube-generator/commits/branch/main)
> **Moved from GitHub Pages?** Data saved at the old `poli0981.github.io/youtube-generator` address stays in that browser. Open the old address once — it offers your data as a backup file — then restore it in **Settings › Backup & restore**. Details: [Moving from GitHub Pages](https://github.com/poli0981/youtube-generator/wiki/Moving-from-GitHub-Pages).
> **Where things live** (since November 2026, when the GitHub account was suspended): source at [`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator) (canonical). Mirror for issues and merge requests: [`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator). Downloads: [`releases.poli0981.dev/youtube-generator/`](#download). Patches and questions: `code@poli0981.dev`. Security: `security@poli0981.dev` (see [SECURITY.md](./SECURITY.md)).
---
@@ -23,6 +27,18 @@ It doesn't talk to the YouTube API and has no account. Your work — profiles, p
Built for the gameplay no-commentary niche — especially horror / scary games — by someone running the [@SkullMute](https://www.youtube.com/@SkullMute) channel who got tired of pasting the same boilerplate into every video. Released under Apache 2.0 in case it's useful to anyone else.
## Project status
**Maintenance mode** since 1.6.0 (November 2026). YTDescGen is feature-complete, and it stays maintained:
- dependency updates on a regular schedule, and fast fixes for high or critical CVEs and serious runtime security issues;
- major language, runtime and framework upgrades (for example Node 24 → 26, TypeScript 6 → 7);
- bug, UI/UX and accessibility fixes, and adding or removing an option in one of the app's lists — a store, platform, genre, video type, content warning, GPU or upscaler mode — when people really need it;
- translation fixes: wording that doesn't fit a culture or region, and spelling mistakes that could mislead;
- changes the Cloudflare or Worker platform forces, and website incidents such as DDoS or bot spam.
New features are not planned, except the rare one that is genuinely necessary. Feature issues and merge requests outside this list are closed. The full policy is in [CONTRIBUTING.md](./CONTRIBUTING.md#maintenance-mode).
## Features
- **20 video types** — Full Gameplay, Part, Boss Fight, Boss No-Hit, Ending, Speedrun, 100%, DLC, NG+, Challenge, Side Quest, Secret, Comparison, Guide, Mods, Collectibles, Livestream, Gacha Quest, Demo, Demo Part.
@@ -41,7 +57,20 @@ Built for the gameplay no-commentary niche — especially horror / scary games
- **Guardrails** — length caps on every field and an opt-in **Strict Mode** that blocks copy and export while a field has an error.
- **Dark and light themes** at WCAG AA contrast, larger controls on touch screens, and an option to hide every scrollbar.
- **Accessible** — works with the keyboard alone and with screen readers (generated text is marked with its language), respects reduce motion, zooms on desktop; see [ACCESSIBILITY.md](./ACCESSIBILITY.md).
- **Desktop app** — Windows, macOS & Linux via Tauri; **Android app** — Android 11+, sideloaded from [Releases](https://github.com/poli0981/youtube-generator/releases).
- **Desktop app** — Windows & Linux via Tauri; **Android app** — Android 11+, sideloaded. See [Download](#download).
## Download
Each release on the [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases) links its files on `releases.poli0981.dev/youtube-generator/<version>/`, with a `SHA256SUMS` next to them:
| Platform | File |
| ----------------------- | ---------------------------------------------------------------------- |
| Windows 10/11 x64 | `YTDescGen_<version>_x64-setup.exe` (or the `…_x64_en-US.msi`) |
| Linux x86_64 | `YTDescGen_<version>_amd64.AppImage`, `…_amd64.deb` or `…_x86_64.rpm` |
| Android 11+ (all ABIs) | `YTDescGen_<version>_universal.apk` |
| macOS | no new builds after 1.6.0 (no macOS build machine since the move) |
The newest APK is always at <https://releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk>. The apps have no auto-update: install a new version over the old one, and your data stays. Releases up to 1.6.0 were published on GitHub, which is gone.
## Quick Start
@@ -50,17 +79,17 @@ Use the web app: **<https://ytgenerator.stream>** — a quick bot check runs on
Build it yourself:
```bash
git clone https://github.com/poli0981/youtube-generator.git
git clone https://git.poli0981.dev/poli0981/youtube-generator.git
cd youtube-generator
npm install
npm run dev # web dev server at http://localhost:5173
```
Desktop build (Windows / macOS / Linux):
Desktop build (Windows / Linux; macOS still builds locally on a Mac, but no release ships one):
```bash
npm run tauri:build
# Output: src-tauri/target/release/bundle/{msi,nsis,deb,rpm,appimage,dmg,app}
# Output: src-tauri/target/release/bundle/{msi,nsis,deb,rpm,appimage}
```
Android build (`.apk`) — requires the Android SDK + NDK + a JDK:
@@ -98,17 +127,16 @@ Architecture overview: [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
| Document | What's in it |
| -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **[Wiki](https://github.com/poli0981/youtube-generator/wiki)** | **User documentation** — quick start, backup & restore, every field and its limit, shortcuts, troubleshooting, FAQ. Start here if you're using the app rather than building it. |
| [Development Guide](./docs/DEVELOPMENT.md) | Toolchain, IDE setup, build commands, troubleshooting. _(Also: [Vietnamese](./docs/i18n/vi/DEVELOPMENT.md).)_ |
| [Hosting](./docs/HOSTING.md) | How ytgenerator.stream is built, deployed and protected. |
| [Architecture](./docs/ARCHITECTURE.md) | Layer model, data flow, engine design. |
| [Features](./docs/FEATURES.md) | Full feature matrix. |
| [Content Inventory](./docs/CONTENT-INVENTORY.md) | Every video type, genre, content warning and tech note the editor surfaces. _(Also: [Vietnamese](./docs/i18n/vi/CONTENT-INVENTORY.md).)_ |
| [Roadmap](./docs/ROADMAP.md) | What shipped and what's next. |
| [Roadmap](./docs/ROADMAP.md) | What shipped, and what maintenance mode still covers. |
| [Tech Spec](./docs/TECH-SPEC.md) | Implementation details and configs. |
| [i18n Guide](./docs/I18N.md) | Adding new locales. |
| [Packaging](./docs/PACKAGING.md) | Tauri desktop + Android release builds and signing. |
| [Contributing](./CONTRIBUTING.md) | PR process, commit conventions, required checks. |
| [Contributing](./CONTRIBUTING.md) | Issues and merge requests on GitLab, patches by e-mail, commit conventions, CI. |
| [Security](./SECURITY.md) | Reporting vulnerabilities. |
| [Accessibility](./ACCESSIBILITY.md) | What works with a keyboard, screen readers and zoom, known gaps, how to report a barrier. _(Also: [Vietnamese](./docs/i18n/vi/ACCESSIBILITY.md).)_ |
| [Privacy](./PRIVACY.md) | What is stored where, and what Cloudflare processes. |
@@ -121,7 +149,7 @@ Architecture overview: [`docs/ARCHITECTURE.md`](./docs/ARCHITECTURE.md).
## Contributing
PRs welcome — read [CONTRIBUTING.md](./CONTRIBUTING.md) first. Native-speaker corrections to the AI-translated locales (JA / ES / KO / ZH / PT-BR / ID) are especially appreciated.
YTDescGen is in [maintenance mode](#project-status): bug, accessibility and translation fixes and agreed option requests are welcome — read [CONTRIBUTING.md](./CONTRIBUTING.md) first. Native-speaker corrections to the AI-translated locales (JA / ES / KO / ZH / PT-BR / ID) are especially appreciated. Issues and merge requests go to the [GitLab mirror](https://gitlab.com/poli0981/youtube-generator/-/issues) (the Gitea repository takes no sign-ups); patches also by e-mail to `code@poli0981.dev`.
## License
@@ -136,7 +164,7 @@ This project was co-authored with **Anthropic's Claude Code** (Claude Opus model
| For | Where |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Anything general | `contact@poli0981.dev` |
| Security vulnerabilities | [GitHub advisory](https://github.com/poli0981/youtube-generator/security/advisories/new) or `security@poli0981.dev` — see [SECURITY.md](./SECURITY.md) |
| Security vulnerabilities | `security@poli0981.dev`, by e-mail only — see [SECURITY.md](./SECURITY.md) |
| Privacy and data requests | `privacy@poli0981.dev` |
| Terms, legal | `legal@poli0981.dev` |
| Copyright / DMCA notices | `dmca@poli0981.dev` |
+1 -1
View File
@@ -1,5 +1,5 @@
# REUSE (https://reuse.software) licensing information for the whole
# repository, checked in CI by .github/workflows/compliance.yml.
# repository, checked in CI by .gitea/workflows/compliance.yml.
#
# Everything here is original work released under Apache-2.0 unless a more
# specific annotation below says otherwise. Add one whenever a file under
+9 -10
View File
@@ -6,19 +6,18 @@ Only the latest released version of YTDescGen receives security updates, and the
| Version | Supported |
| ------- | --------- |
| 1.5.x | ✅ |
| < 1.5 | ❌ |
| 1.7.x | ✅ |
| < 1.7 | ❌ |
YTDescGen has been in [maintenance mode](./CONTRIBUTING.md#maintenance-mode) since 1.6.0. That doesn't change this policy: security fixes keep shipping, and a dependency with a high or critical CVE is fixed as soon as possible.
## Reporting a Vulnerability
Please report security issues **privately**. Do not open a public issue.
Please report security issues **privately, by e-mail**: **security@poli0981.dev**, with the subject prefix `[SECURITY]`.
**Preferred channels (in order):**
**Do not open a public issue** — in particular not on the GitLab mirror (`gitlab.com/poli0981/youtube-generator`), which is where ordinary issues go. If a report arrives there anyway, the maintainer makes the issue confidential and carries on by e-mail. (The GitHub advisory form went with the suspended GitHub account in November 2026.)
1. **GitHub Security Advisory** — [open a draft advisory](https://github.com/poli0981/youtube-generator/security/advisories/new) in this repository.
2. **Email** — **security@poli0981.dev** with the subject prefix `[SECURITY]`.
The same contacts are published in [`/.well-known/security.txt`](https://ytgenerator.stream/.well-known/security.txt) (RFC 9116).
The same contact is published in [`/.well-known/security.txt`](https://ytgenerator.stream/.well-known/security.txt) (RFC 9116).
Include:
@@ -38,8 +37,8 @@ Include:
In scope:
- The web app at `ytgenerator.stream`, including its Cloudflare Worker (`worker/`): the Turnstile gate, its cookies, and the security headers.
- The desktop binaries (Windows, macOS, Linux) and the Android APK published on the GitHub releases page, including the Tauri commands in `src-tauri/`.
- CI/CD workflows in `.github/workflows/`.
- The desktop installers (Windows, Linux) and the Android APK linked from the [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases) and served from `releases.poli0981.dev/youtube-generator/`, including the Tauri commands in `src-tauri/`. (macOS builds stopped after 1.6.0.)
- CI/CD workflows in `.gitea/workflows/` and the shared workflows they call in `poli0981/.github`.
Out of scope:
+3 -3
View File
@@ -1,8 +1,8 @@
# Terms of Use
**Effective:** 2026-09-30
**Effective:** 2026-11-25
These terms govern your use of YTDescGen — the web app at **https://ytgenerator.stream** and the desktop and Android apps distributed from this project's [GitHub releases](https://github.com/poli0981/youtube-generator/releases). By using YTDescGen you agree to them, together with the [Privacy Policy](PRIVACY.md) and the [Disclaimer](DISCLAIMER.md).
These terms govern your use of YTDescGen — the web app at **https://ytgenerator.stream** and the desktop and Android apps distributed from this project's [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases) (the files are served from `releases.poli0981.dev`). By using YTDescGen you agree to them, together with the [Privacy Policy](PRIVACY.md) and the [Disclaimer](DISCLAIMER.md).
## License
@@ -57,7 +57,7 @@ By submitting a contribution (issue, pull request, comment, locale translation,
3. You will not include malicious code or knowingly vulnerable dependencies.
4. You will follow the [Code of Conduct](CODE_OF_CONDUCT.md) and [Contributing Guide](CONTRIBUTING.md).
Violations may result in your contribution being closed and, in severe cases, a permanent ban from the repository — see `CONTRIBUTING.md` § "Auto-ignored Contributions". Contributions made on GitHub are also subject to [GitHub's Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service).
Violations may result in your contribution being closed and, in severe cases, a permanent ban from the repository — see `CONTRIBUTING.md` § "Auto-ignored Contributions". Contributions made on the GitLab mirror are also subject to [GitLab's terms](https://about.gitlab.com/terms/).
## Termination
+24 -24
View File
@@ -14,22 +14,22 @@ Bundled into the web app and the desktop / Android apps.
| --- | --- | --- | --- |
| `@fontsource-variable/inter` | 5.3.0 | OFL-1.1 | <https://github.com/fontsource/font-files> |
| `@fontsource-variable/jetbrains-mono` | 5.3.0 | OFL-1.1 | <https://github.com/fontsource/font-files> |
| `@tauri-apps/api` | 2.12.4 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
| `@tauri-apps/plugin-opener` | 2.7.2 | MIT OR Apache-2.0 | <https://github.com/tauri-apps/plugins-workspace> |
| `@tauri-apps/api` | 2.12.5 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
| `@tauri-apps/plugin-opener` | 2.7.3 | MIT OR Apache-2.0 | <https://github.com/tauri-apps/plugins-workspace> |
| `clsx` | 2.1.1 | MIT | <https://github.com/lukeed/clsx> |
| `cmdk` | 1.1.1 | MIT | <https://github.com/pacocoursey/cmdk> |
| `i18next` | 26.6.0 | MIT | <https://github.com/i18next/i18next> |
| `i18next-resources-to-backend` | 1.2.4 | MIT | <https://github.com/i18next/i18next-resources-to-backend> |
| `lucide-react` | 1.66.0 | ISC | <https://github.com/lucide-icons/lucide> |
| `i18next-resources-to-backend` | 1.3.0 | MIT | <https://github.com/i18next/i18next-resources-to-backend> |
| `lucide-react` | 1.77.0 | ISC | <https://github.com/lucide-icons/lucide> |
| `motion` | 13.5.1 | MIT | <https://github.com/motiondivision/motion> |
| `radix-ui` | 1.8.1 | MIT | <https://github.com/radix-ui/primitives> |
| `react` | 19.3.1 | MIT | <https://github.com/react/react> |
| `react-dom` | 19.3.1 | MIT | <https://github.com/react/react> |
| `react-i18next` | 17.1.11 | MIT | <https://github.com/i18next/react-i18next> |
| `react-router-dom` | 7.18.5 | MIT | <https://github.com/remix-run/react-router> |
| `simple-icons` | 16.36.0 | CC0-1.0 | <https://simpleicons.org> |
| `react-i18next` | 17.1.13 | MIT | <https://github.com/i18next/react-i18next> |
| `react-router-dom` | 7.18.6 | MIT | <https://github.com/remix-run/react-router> |
| `simple-icons` | 16.38.1 | CC0-1.0 | <https://simpleicons.org> |
| `sonner` | 2.0.8 | MIT | <https://github.com/emilkowalski/sonner> |
| `zustand` | 5.0.16 | MIT | <https://github.com/pmndrs/zustand> |
| `zustand` | 5.1.0 | MIT | <https://github.com/pmndrs/zustand> |
## Build and development tools
@@ -39,31 +39,31 @@ Used to build, test and check YTDescGen. Not shipped to users.
| --- | --- | --- | --- |
| `@eslint/js` | 10.0.1 | MIT | <https://github.com/eslint/eslint> |
| `@resvg/resvg-js` | 2.6.2 | MPL-2.0 | — |
| `@tailwindcss/postcss` | 4.3.4 | MIT | <https://github.com/tailwindlabs/tailwindcss> |
| `@tauri-apps/cli` | 2.12.4 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
| `@tailwindcss/postcss` | 4.3.5 | MIT | <https://github.com/tailwindlabs/tailwindcss> |
| `@tauri-apps/cli` | 2.12.6 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
| `@testing-library/jest-dom` | 7.0.1 | MIT | <https://github.com/testing-library/jest-dom> |
| `@testing-library/react` | 16.3.3 | MIT | <https://github.com/testing-library/react-testing-library> |
| `@types/node` | 26.6.6 | MIT | <https://github.com/DefinitelyTyped/DefinitelyTyped> |
| `@types/react` | 19.3.0 | MIT | <https://github.com/DefinitelyTyped/DefinitelyTyped> |
| `@types/react-dom` | 19.3.0 | MIT | <https://github.com/DefinitelyTyped/DefinitelyTyped> |
| `@typescript/typescript6` | 6.0.2 | Apache-2.0 | <https://github.com/microsoft/TypeScript> |
| `@vitejs/plugin-react` | 6.2.1 | MIT | <https://github.com/vitejs/vite-plugin-react> |
| `@vitejs/plugin-react` | 6.3.0 | MIT | <https://github.com/vitejs/vite-plugin-react> |
| `@vitest/coverage-v8` | 4.1.12 | MIT | <https://github.com/vitest-dev/vitest> |
| `autoprefixer` | 10.6.2 | MIT | <https://github.com/postcss/autoprefixer> |
| `eslint` | 10.14.0 | MIT | <https://github.com/eslint/eslint> |
| `autoprefixer` | 10.7.0 | MIT | <https://github.com/postcss/autoprefixer> |
| `eslint` | 10.15.0 | MIT | <https://github.com/eslint/eslint> |
| `eslint-plugin-react-hooks` | 7.1.1 | MIT | <https://github.com/facebook/react> |
| `knip` | 6.44.1 | ISC | <https://github.com/webpro-nl/knip> |
| `marked` | 18.1.3 | MIT | <https://github.com/markedjs/marked> |
| `postcss` | 8.5.32 | MIT | <https://github.com/postcss/postcss> |
| `prettier` | 3.9.10 | MIT | <https://github.com/prettier/prettier> |
| `knip` | 6.47.0 | ISC | <https://github.com/webpro-nl/knip> |
| `marked` | 18.2.1 | MIT | <https://github.com/markedjs/marked> |
| `postcss` | 8.5.33 | MIT | <https://github.com/postcss/postcss> |
| `prettier` | 3.10.1 | MIT | <https://github.com/prettier/prettier> |
| `prettier-plugin-tailwindcss` | 0.8.1 | MIT | <https://github.com/tailwindlabs/prettier-plugin-tailwindcss> |
| `tailwindcss` | 4.3.4 | MIT | <https://github.com/tailwindlabs/tailwindcss> |
| `tailwindcss` | 4.3.5 | MIT | <https://github.com/tailwindlabs/tailwindcss> |
| `tsx` | 4.23.15 | MIT | <https://github.com/privatenumber/tsx> |
| `typescript` | 7.0.2 | Apache-2.0 | <https://github.com/microsoft/TypeScript> |
| `typescript-eslint` | 8.72.1 | MIT | <https://github.com/typescript-eslint/typescript-eslint> |
| `vite` | 8.3.5 | MIT | <https://github.com/vitejs/vite> |
| `typescript-eslint` | 8.73.0 | MIT | <https://github.com/typescript-eslint/typescript-eslint> |
| `vite` | 8.3.8 | MIT | <https://github.com/vitejs/vite> |
| `vitest` | 4.1.12 | MIT | <https://github.com/vitest-dev/vitest> |
| `wrangler` | 4.156.2 | MIT OR Apache-2.0 | <https://github.com/cloudflare/workers-sdk> |
| `wrangler` | 4.166.0 | MIT OR Apache-2.0 | <https://github.com/cloudflare/workers-sdk> |
## Desktop and Android shell (Rust crates)
@@ -72,10 +72,10 @@ Direct dependencies of `src-tauri/`. Transitive crates are checked in CI by `car
| Crate | Version | License | Project |
| --- | --- | --- | --- |
| `serde` | 1.0.228 | MIT OR Apache-2.0 | <https://github.com/serde-rs/serde> |
| `tauri` | 2.12.5 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
| `tauri-build` | 2.7.4 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
| `tauri` | 2.12.7 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
| `tauri-build` | 2.7.6 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
| `tauri-plugin-dialog` | 2.8.4 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/plugins-workspace> |
| `tauri-plugin-opener` | 2.7.2 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/plugins-workspace> |
| `tauri-plugin-opener` | 2.7.3 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/plugins-workspace> |
| `tauri-plugin-single-instance` | 2.5.5 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/plugins-workspace> |
## Fonts and icons
+1 -1
View File
@@ -27,7 +27,7 @@
<g font-family="Segoe UI, Inter, Helvetica Neue, Arial, sans-serif">
<text x="410" y="268" font-size="92" font-weight="700" fill="#F4F4F8" letter-spacing="-1.5">YTDescGen</text>
<text x="412" y="334" font-size="34" fill="#B4B4C6">Titles, descriptions &amp; tags for gameplay videos</text>
<text x="412" y="384" font-size="28" fill="#8E8EA6">8 languages · Web · Windows · macOS · Linux · Android</text>
<text x="412" y="384" font-size="28" fill="#8E8EA6">8 languages · Web · Windows · Linux · Android</text>
<text x="412" y="452" font-size="30" font-weight="600" fill="#A5A6FB">ytgenerator.stream</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

+5 -4
View File
@@ -10,7 +10,7 @@ import { LEGAL_DOCS, legalDocPath, type LegalDoc, type LegalDocId } from "../src
*
* 1. `virtual:legal-docs` — { [id]: { title, effective, html: { en, vi? } } },
* imported lazily by the in-app Legal Center, so desktop and Android carry
* the documents offline and nothing is fetched from GitHub any more.
* the documents offline and nothing is fetched from the forge.
* 2. `dist/legal/<id>.html` (+ `<id>.vi.html`, `index.html`) — plain pages
* with no script, which the Cloudflare Worker serves to anyone, before the
* Turnstile gate: people must be able to read the Terms and the Privacy
@@ -21,7 +21,8 @@ import { LEGAL_DOCS, legalDocPath, type LegalDoc, type LegalDocId } from "../src
const VIRTUAL_ID = "virtual:legal-docs";
const RESOLVED_VIRTUAL_ID = `\0${VIRTUAL_ID}`;
const REPO_BLOB = "https://github.com/poli0981/youtube-generator/blob/main/";
/** Files in the canonical repository on Gitea (where outside links point). */
const REPO_BLOB = "https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/";
const ROOT = resolve(import.meta.dirname, "..");
type DocLang = "en" | "vi";
@@ -63,7 +64,7 @@ export function escapeHtml(text: string): string {
return text.replace(/[&<>"']/g, (ch) => HTML_ESCAPES[ch] ?? ch);
}
/** Point relative links at the in-site page, or at GitHub for anything else. */
/** Point relative links at the in-site page, or at the Gitea repository for anything else. */
export function rewriteHref(href: string, fromFile: string): string {
if (/^(?:[a-z][a-z0-9+.-]*:|#)/i.test(href)) return href;
const hashAt = href.indexOf("#");
@@ -248,7 +249,7 @@ function pageShell(options: {
<nav aria-label="Legal documents"><p>Legal</p><ul>${nav}</ul></nav>
<main>${options.body}</main>
</div>
<footer>© ${copyrightYears(new Date().getUTCFullYear())} poli0981 (SkullMute) · Source code under the Apache License 2.0 · <a href="https://github.com/poli0981/youtube-generator">GitHub</a> · <a href="mailto:contact@poli0981.dev">contact@poli0981.dev</a></footer>
<footer>© ${copyrightYears(new Date().getUTCFullYear())} poli0981 (SkullMute) · Source code under the Apache License 2.0 · <a href="https://git.poli0981.dev/poli0981/youtube-generator">Source (Gitea)</a> · <a href="mailto:contact@poli0981.dev">contact@poli0981.dev</a></footer>
</body>
</html>
`;
-1
View File
@@ -43,7 +43,6 @@ export function renderSecurityTxt(now: Date): string {
"# Security contact for YTDescGen — https://ytgenerator.stream",
"# Scope, response times and disclosure policy are in the Policy link below.",
"Contact: mailto:security@poli0981.dev",
"Contact: https://github.com/poli0981/youtube-generator/security/advisories/new",
`Expires: ${expires.toISOString().replace(/\.\d{3}Z$/, "Z")}`,
"Preferred-Languages: en, vi",
`Canonical: ${SITE_ORIGIN}/.well-known/security.txt`,
+2 -2
View File
@@ -2,7 +2,7 @@
## YTDescGen — Technical Architecture
Reflects **v1.5.2**. Implementation details (configs, interfaces, file formats, CI) are in [TECH-SPEC.md](TECH-SPEC.md); desktop and Android builds in [PACKAGING.md](PACKAGING.md); running the web deployment in [HOSTING.md](HOSTING.md).
Reflects **v1.7.0**. Implementation details (configs, interfaces, file formats, CI) are in [TECH-SPEC.md](TECH-SPEC.md); desktop and Android builds in [PACKAGING.md](PACKAGING.md); running the web deployment in [HOSTING.md](HOSTING.md).
---
@@ -391,7 +391,7 @@ Export: `ExportBackupDialog` → `collectBackup(chosen sections)` → `saveTextF
## 6. Web Delivery
The web build is served at <https://ytgenerator.stream> by a Cloudflare Worker (`worker/`, configured by `wrangler.jsonc`) that Cloudflare Workers Builds deploys from `main`. The Worker puts a Turnstile check in front of the app (verified server-side; a signed `HttpOnly` `__Host-ytg_gate` cookie remembers the pass for 24 hours), serves the prerendered legal pages at `/legal/*` to everyone, sets the security headers (a CSP per page type), and answers `429` to a client that sends too many requests (Workers Rate Limiting bindings, behind a WAF rate limiting rule at the zone). Agreeing to the terms on the gate page sets the `ytg_terms` cookie, which the app reads so a web visitor meets one blocking screen, not two. Build-time extras for the web only — static legal pages, `/.well-known/security.txt`, the cookieless Web Analytics beacon — come from `build-plugins/`. The desktop and Android builds use none of this and contain no analytics. Request flow, cookies, headers and operations: [HOSTING.md](HOSTING.md).
The web build is served at <https://ytgenerator.stream> by a Cloudflare Worker (`worker/`, configured by `wrangler.jsonc`) that the `deploy` job of `.gitea/workflows/ci.yml` deploys from `main` with wrangler. The Worker puts a Turnstile check in front of the app (verified server-side; a signed `HttpOnly` `__Host-ytg_gate` cookie remembers the pass for 24 hours), serves the prerendered legal pages at `/legal/*` to everyone, sets the security headers (a CSP per page type), and answers `429` to a client that sends too many requests (Workers Rate Limiting bindings, behind a WAF rate limiting rule at the zone). Agreeing to the terms on the gate page sets the `ytg_terms` cookie, which the app reads so a web visitor meets one blocking screen, not two. Build-time extras for the web only — static legal pages, `/.well-known/security.txt`, the cookieless Web Analytics beacon — come from `build-plugins/`. The desktop and Android builds use none of this and contain no analytics. Request flow, cookies, headers and operations: [HOSTING.md](HOSTING.md).
## 7. Desktop Packaging (Tauri)
+1 -1
View File
@@ -1,6 +1,6 @@
# Content Inventory
A static manifest of every video type, game genre, content warning, tech note, store, link field and cross-post platform surfaced in YTDescGen's editor (as of v1.3.0). Maintained manually — when adding a new option to one of the source files below, **add a row here too** in the same PR.
A static manifest of every video type, game genre, content warning, tech note, store, link field and cross-post platform surfaced in YTDescGen's editor (as of v1.7.0). Maintained manually — when adding a new option to one of the source files below, **add a row here too** in the same PR.
This file exists for **transparency** — anyone curious about what the editor can describe (without installing the app or reading the source) can scan it in one minute.
+12 -9
View File
@@ -23,7 +23,7 @@ Install in this order:
| Tool | Version | Why |
| ----------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Node.js** | **26** — the version in `.node-version` | CI, the release workflows and Cloudflare Workers Builds all read `.node-version`, and `package.json` declares `engines.node >= 26`. Use [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm) (fnm reads `.node-version`). |
| **Node.js** | **26** — the version in `.node-version` | CI, the release workflow and the deploy job all read `.node-version`, and `package.json` declares `engines.node >= 26`. Use [nvm](https://github.com/nvm-sh/nvm) or [fnm](https://github.com/Schniz/fnm) (fnm reads `.node-version`). |
| **npm** | 11, bundled with Node 26 | The project uses npm; `pnpm` and `yarn` are not tested. |
| **Rust** | stable, `>= 1.90` | Required for the Tauri desktop and Android builds (Tauri 2.12 needs Rust 1.90). Install via [rustup](https://rustup.rs/); its default profile includes `rustfmt` and `clippy`. |
| **Python** | `3.12` | Optional — only needed for some Tauri platform tooling on Windows. |
@@ -68,7 +68,7 @@ Recommended extensions (no `.vscode/extensions.json` is committed — install ma
```bash
# 1. Clone
git clone https://github.com/poli0981/youtube-generator.git
git clone https://git.poli0981.dev/poli0981/youtube-generator.git
cd youtube-generator
# 2. Install web dependencies
@@ -83,10 +83,13 @@ The dev server is the app alone: no Turnstile gate and no analytics. To run the
## Branches and Pull Requests
- Branch from `main` (`feat/…`, `fix/…`, `docs/…`, `chore/…`) and open the pull request against `main`. There is no other long-lived branch, and every merge to `main` deploys the web app.
The repository lives on Gitea ([`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator)); outside contributors open issues and merge requests on the GitLab mirror ([`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator)) or send patches to `code@poli0981.dev`. CI is Gitea Actions (`.gitea/workflows/`), run by a runner on the maintainer's PC.
- Branch from `main` (`feat/…`, `fix/…`, `docs/…`, `chore/…`) and open the pull request against `main`. There is no other long-lived branch, and every merge to `main` deploys the web app (the `deploy` job of `ci.yml`).
- PR titles use the commit format `type(scope): message`; CI checks them.
- Every PR runs the `check` job (below), `dependency-review`, `workflow-lint`, `reuse` and `pr-title`; the Rust jobs `lint-and-test` and `cargo-deny` run when `src-tauri/` changes.
- After `check`, the `sonarcloud` job sends the code and the coverage report to [SonarCloud](https://sonarcloud.io/project/overview?id=poli0981_youtube-generator) (settings in `sonar-project.properties`) and fails when its quality gate does: new code needs A ratings, reviewed security hotspots, at most 3 % duplication and at least 80 % coverage. PRs from forks and from Dependabot skip it — they get no `SONAR_TOKEN` — and `main` is analysed after every merge.
- Every PR runs the `check` job (below), `workflow-lint` (actionlint, zizmor), `reuse`, `pr-title` and the shared security scan (gitleaks, Opengrep, osv-scanner, cargo-deny); the Rust job `lint-and-test` runs when `src-tauri/` changes.
- The `Qodana` workflow runs JetBrains [Qodana](https://www.jetbrains.com/qodana/) on every PR and every push to `main`: Qodana for JS on the repository (`qodana.yaml`) and Qodana for Rust on `src-tauri/` (`src-tauri/qodana.yaml`, in Docker on the runner PC). Both fail on any problem. It is not a required check.
- Dependency updates come from Renovate (`renovate.json`), grouped, after a 3-day release age.
Full rules: [CONTRIBUTING.md](../CONTRIBUTING.md).
@@ -116,13 +119,13 @@ Full rules: [CONTRIBUTING.md](../CONTRIBUTING.md).
| `npm run validate:locales` | Enforces all 8 locales match `_schema.json` exactly. **Must pass before any locale-touching PR merges.** |
| `npm run test` | Vitest watch mode. |
| `npm run test:run` | Vitest single-run. |
| `npm run test:coverage` | Single run with a coverage report into `coverage/` — the logic layers, and `lcov.info` goes to SonarCloud; fails below the thresholds for `src/engine/` and `worker/` set in `vitest.config.ts`. This is what CI runs. |
| `npm run test:coverage` | Single run with a coverage report into `coverage/` — the logic layers; fails below the thresholds for `src/engine/` and `worker/` set in `vitest.config.ts`. This is what CI runs. |
| `npm run check:version` | Asserts all **six** version fields agree (`package.json`, both `package-lock.json` entries, `tauri.conf.json`, `Cargo.toml`, `Cargo.lock`). The only thing that notices a missed one. |
| `npm run check:tauri` | The `@tauri-apps/*` npm packages and the Tauri crates must share major.minor. The Tauri CLI refuses to build otherwise, and CI never runs a Tauri build. |
| `npm run check:licenses` | Every bundled package has an allowed license, and `THIRD_PARTY_NOTICES.md` matches what is installed. |
| `npm run check:copyright` | NOTICE, REUSE.toml and the installers' copyright string (`tauri.conf.json`) state the copyright years for the year of HEAD's commit — "2026", then "2026-2027" from the first commit of 2027. CI gate (v1.1.0). |
| `npm run check:bundle` | Run after `npm run build`: the initial load must stay ≤ 280 KB gzip and no JS chunk over 500 KB raw. |
| `npm run cf:check` | `wrangler deploy --dry-run`: validates `wrangler.jsonc` and bundles the Worker the way Workers Builds will, without deploying. |
| `npm run cf:check` | `wrangler deploy --dry-run`: validates `wrangler.jsonc` and bundles the Worker the way the deploy job will, without deploying. |
### Generate
@@ -175,7 +178,7 @@ See [PACKAGING.md](./PACKAGING.md) for the full release pipeline. Quick local bu
```bash
npm run tauri:build
# Output: src-tauri/target/release/bundle/
# Windows: MSI + NSIS installers · Linux: deb, rpm, AppImage · macOS: .app + DMG
# Windows: MSI + NSIS installers · Linux: deb, rpm, AppImage · macOS (local only, not released): .app + DMG
```
The first build takes ~5–10 minutes (cold Cargo cache). Subsequent builds are incremental.
@@ -184,7 +187,7 @@ The Vite dev server does not watch `src-tauri/**` or `.wrangler/**` (`server.wat
### Rust checks
The same steps as the `lint-and-test` job in `.github/workflows/rust.yml`, which runs when `src-tauri/` changes (and weekly):
The same steps as the `lint-and-test` job in `.gitea/workflows/rust.yml`, which runs when `src-tauri/` changes (and weekly):
```bash
npm run build # tauri::generate_context!() embeds dist/, so clippy and the tests need a build
+53 -25
View File
@@ -1,6 +1,6 @@
# Complete Feature List
## YTDescGen — All Features (v1.5.2 + Planned)
## YTDescGen — All Features (v1.7.0)
---
@@ -9,17 +9,16 @@
| Platform | Where | Bot check & analytics |
| ----------- | --------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| **Web** | [ytgenerator.stream](https://ytgenerator.stream) | A Cloudflare **Turnstile** check (usually invisible), remembered for 24 hours; **cookieless** Web Analytics |
| **Desktop** | Windows, macOS, Linux — [Releases](https://github.com/poli0981/youtube-generator/releases) | Neither |
| **Android** | Android 11+, sideloaded `.apk` — [Releases](https://github.com/poli0981/youtube-generator/releases) | Neither |
| **Desktop** | Windows, Linux — [Releases](https://git.poli0981.dev/poli0981/youtube-generator/releases) (macOS up to 1.6.0) | Neither |
| **Android** | Android 11+, sideloaded `.apk` — [Releases](https://git.poli0981.dev/poli0981/youtube-generator/releases) | Neither |
The web app is a Cloudflare Worker in front of the static build, and
Cloudflare Workers Builds deploys every merge to `main` — see
the CI `deploy` job publishes every merge to `main` — see
[HOSTING.md](./HOSTING.md). On every platform your data stays on the device.
GitHub Pages is retired. Until **2026-11-29** the old
`poli0981.github.io/youtube-generator` address shows a moving notice whose
**Download my data** button saves what the browser stored there as a backup
file — restore it in **Settings › Backup & restore**.
Release files live on `releases.poli0981.dev/youtube-generator/<version>/`
(each release on Gitea links them). The old GitHub Pages address and its
moving notice went with the suspended GitHub account in November 2026.
## 🎬 Video Types (20 types)
@@ -165,6 +164,9 @@ video editor. The suggestions are LUTs that come with DaVinci Resolve, named
the way its LUT menu shows them; any other name is printed as typed. A pasted
file name or path (Explorer's _Copy as path_) is cut down to the LUT's name:
`"C:\…\Arri\Arri Alexa LogC to Rec709.dat"` → `Arri Alexa LogC to Rec709`.
**Custom** (v1.6.0), the first suggestion (typing "custom" works too), is for
a LUT of your own: the line then reads just _LUT applied_ (_Có áp dụng LUT_ in
Vietnamese), without a name.
**GPU catalog (v1.0.0)** — 198 models in 29 groups: NVIDIA GeForce (desktop
and laptop), AMD Radeon (including integrated), Intel Arc and integrated,
@@ -227,6 +229,29 @@ lowering the resolution to or below the source ends the upscale. 1080p 60fps
still has no badge, and the Upscale line stays when the graphics settings are
hidden. Saved with the channel profile.
**Upscaler and frame generation** — Video settings › the vendor picks the
options the other fields offer, and the `In-game Setting:` line names each
one under its brand (kept in English in every language, as viewers search
for it):
| Vendor | Upscaling | Frame generation |
| ------ | --------------------------------------------------------------- | ---------------------------------------------------------------------- |
| NVIDIA | DLAA, DLSS Quality / Balanced / Performance / Ultra Performance | x2, x3, x4, **x6**, **Dynamic** (Dynamic Multi Frame Gen), **Custom…** |
| AMD | FSR Native AA, Quality / Balanced / Performance / Ultra Perf. | x2, x3 (Fluid Motion Frames), **Custom…** |
| Intel | XeSS Native AA, Ultra Quality, Quality … Ultra Performance | x2 (XeFG), **Custom…** |
New in v1.6.0 (bold): NVIDIA's x6 and Dynamic Multi Frame Generation;
**Custom…** for every vendor, which prints what you type (_NVIDIA Smooth
Motion_, _Lossless Scaling x3_); and, for NVIDIA, a **DLSS 5 Neural
Rendering** switch, printed after the DLSS mode:
```
In-game Setting: Ultra - NVIDIA DLSS Quality + NVIDIA DLSS 5 Neural Rendering + NVIDIA Dynamic Multi Frame Generation with Path Tracing
```
Changing the vendor drops what the new one doesn't offer. These settings
belong to the draft and to templates, not to the profile.
With one output language selected, the Output page shows content warnings,
tech notes and playthrough notes bilingually (English · output language)
unless the output is English; with several languages selected, each tab —
@@ -352,7 +377,7 @@ a pasted store link can each be undone from the toast they show.
- **Command palette** (Ctrl/⌘+K) — go to any page or the Legal Center; copy
the title, description, tags or everything; apply a saved profile, game
preset or template; switch theme, interface language or output language;
open the shortcuts, the wiki or a bug report.
open the shortcuts or a bug report.
- **Live preview** — the generated title, description and tags beside the
editor form (a sheet on phones), with the same counters and copy rules as
the Output page.
@@ -383,8 +408,8 @@ Center, in English and Vietnamese). In short:
`tests/styles/contrast.test.ts`; white text sits on the darker
`accent-solid` / `danger-solid` fills; focus stays visible in Windows High
Contrast; desktop zoom with Ctrl/⌘ + = / − (`zoomHotkeysEnabled`).
- **Reporting** — the _Accessibility barrier_ issue form
(`.github/ISSUE_TEMPLATE/accessibility.yml`), or `contact@` with
- **Reporting** — the _Accessibility_ issue template on the GitLab mirror
(`.gitlab/issue_templates/Accessibility.md`), or `contact@` with
`[Accessibility]`.
## 💾 Data Persistence
@@ -429,17 +454,17 @@ In **Settings › Backup & restore**:
`Ctrl` on Windows / Linux / Android, `⌘` on a Mac — both work everywhere.
| Shortcut | Action |
| ---------------------------- | --------------------------------------------------------------- |
| `Ctrl/⌘+K` | Command palette |
| `Ctrl/⌘+Enter` or `Ctrl/⌘+G` | Generate (switch to Output) |
| `Ctrl/⌘+Shift+C` | Copy All — same limits and Strict Mode rules as the Output page |
| `Ctrl/⌘+S` | Save the current output to History |
| `Ctrl/⌘+B` | Collapse / expand the sidebar |
| `Alt+T` | Go to the notifications (while any are on screen) |
| Shortcut | Action |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------ |
| `Ctrl/⌘+K` | Command palette |
| `Ctrl/⌘+Enter` or `Ctrl/⌘+G` | Generate (switch to Output) |
| `Ctrl/⌘+Shift+C` | Copy All — same limits and Strict Mode rules as the Output page |
| `Ctrl/⌘+S` | Save the current output to History |
| `Ctrl/⌘+B` | Collapse / expand the sidebar |
| `Alt+T` | Go to the notifications (while any are on screen) |
| `Ctrl/⌘+/` or `?` | Show keyboard shortcuts (`?` only outside text fields, while Settings › Editor › Single-key shortcuts is on) |
| `Ctrl/⌘+=` / `Ctrl/⌘+−` | Zoom in / out — desktop app (v1.5.1) |
| `Escape` | Close modal |
| `Ctrl/⌘+=` / `Ctrl/⌘+−` | Zoom in / out — desktop app (v1.5.1) |
| `Escape` | Close modal |
## 🔧 Settings
@@ -511,8 +536,8 @@ Strict Mode is on or off.
| Window | Resizable, 1280×820 by default |
| Installer | The Windows MSI / NSIS installers show the license page |
There is no auto-updater yet — new versions come from
[Releases](https://github.com/poli0981/youtube-generator/releases).
There is no auto-updater — new versions come from
[Releases](https://git.poli0981.dev/poli0981/youtube-generator/releases) (files on `releases.poli0981.dev`).
## 📱 Android App (v0.29)
@@ -525,7 +550,7 @@ separate mobile project. Build with `cargo tauri android build --apk`; see
| Same codebase | One Tauri 2 project produces web, desktop, and Android |
| Min version | Android 11+ (minSdk 30); `targetSdk` 36 (Android 16) |
| Tested | Android 11 → 16 (emulators); real device on Android 12 |
| Signed APK | Self-signed release APK for sideloading; CI publishes it to GitHub Releases |
| Signed APK | Self-signed release APK for sideloading; CI publishes it to `releases.poli0981.dev` |
| Responsive UI | Bottom tab bar (Editor, Output, Batch, Profiles, More), touch-sized controls, safe-area insets |
| File export | Routed through the WebView download (lands in Downloads) on Android |
| Persistence | App-private storage; works offline |
@@ -573,7 +598,10 @@ documents and ticks one "I agree" checkbox.
## 🔌 Future Extension Points
See [ROADMAP.md](./ROADMAP.md) for the post-1.0 backlog.
**Frozen: YTDescGen is in maintenance mode** (since v1.6.0) and takes no new
features — see [CONTRIBUTING.md → Maintenance mode](../CONTRIBUTING.md#maintenance-mode).
The ideas below and the [ROADMAP.md](./ROADMAP.md) backlog stay as a record; one
moves only if the maintainer judges it genuinely necessary.
| Extension | Description | Effort |
| -------------------- | ----------------------------------------------------------- | ------ |
+6 -6
View File
@@ -8,12 +8,12 @@ How the web app is built, deployed and protected. The desktop and Android apps d
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Domain | `ytgenerator.stream`, on Cloudflare (DNS, TLS, HSTS preload at the zone edge) |
| Hosting | Cloudflare Worker **`youtube-generator`** with static assets from `dist/` |
| Build & deploy | **Workers Builds**, connected to this repository in the Cloudflare dashboard. Every push to `main` builds and deploys to production; other branches get preview versions. There is **no GitHub Actions deploy workflow** |
| Build & deploy | The **`deploy` job** of [`.gitea/workflows/ci.yml`](../.gitea/workflows/ci.yml): after `check` passes on a push to `main`, `wrangler deploy` builds and deploys to production with the user-level Actions secrets `CLOUDFLARE_API_TOKEN` + `CLOUDFLARE_ACCOUNT_ID`, then waits until the new build's entry chunk answers 200 |
| Configuration | [`wrangler.jsonc`](../wrangler.jsonc) — the only Cloudflare file in the repo |
| Worker code | [`worker/`](../worker) — the Turnstile gate, the legal pages route, security headers |
| Build-time web extras | [`build-plugins/web-only.ts`](../build-plugins/web-only.ts) (Web Analytics beacon, `security.txt`) and [`build-plugins/legal-docs.ts`](../build-plugins/legal-docs.ts) (legal pages) |
GitHub Pages (`poli0981.github.io/youtube-generator`) is retired. Until 2026-11-29 it serves only a moving notice from [`migration-page/`](../migration-page), published by hand with the `pages-migration.yml` workflow; issue #177 tracks removing it.
Workers Builds deployed from the GitHub repository until the GitHub account was suspended (November 2026); its Git connection is gone, and Gitea CI deploys instead (ops decision D3). The job runs on the maintainer's PC like every Gitea job: a merge made while the PC is off deploys when it comes back. GitHub Pages (`poli0981.github.io/youtube-generator`), which served a moving notice for the old address, went with the account.
## Request flow
@@ -104,7 +104,7 @@ The custom domain is declared in `routes` because `wrangler deploy` detaches any
These live in Cloudflare, not in the repository:
1. **Workers Builds** — build command empty (`wrangler.jsonc` runs `npm run build`), deploy command `npx wrangler deploy`, non-production deploy command `npx wrangler versions upload`. Root directory `/`; Node 26 comes from `.node-version`, and the build variable `NODE_VERSION=26` says the same.
1. **Workers Builds** — disconnected (no Git repository). The deploy credentials are an API token with Workers edit rights on the account, stored as the Gitea user-level Actions secrets `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID` (shared by the web repositories).
2. **Turnstile widget** — hostname `ytgenerator.stream` (add the `workers.dev` subdomain if preview URLs should pass the gate).
3. **Web Analytics** — the manual beacon is used; turn off _automatic setup_ for the hostname so visits aren't counted twice.
4. **Redirect rule** — `www.ytgenerator.stream/*` → `concat("https://ytgenerator.stream", http.request.uri.path)`, 301, preserving the query string.
@@ -124,10 +124,10 @@ The test keys always pass. Never put the real secret in a file. Worker tests run
## Releases, previews and rollback
- A merge to `main` is a production deploy. CI's required `check` job already ran `npm run build` and `npm run cf:check` on the pull request.
- Branch builds upload a **preview version** (`preview_urls: true`); preview URLs pass the gate only if their hostname is allowed in the Turnstile widget.
- A merge to `main` is a production deploy: CI's `check` job runs again on `main` (it already ran `npm run build` and `npm run cf:check` on the pull request), then `deploy`. Its status and log are on the commit in Gitea (Actions › CI); a failure posts to Discord through `notify-ci-failure.yml`.
- Branches get no preview version any more (Workers Builds made them). `preview_urls: true` stays, so `npx wrangler versions upload` from a branch still gives one by hand; preview URLs pass the gate only if their hostname is allowed in the Turnstile widget.
- **Rollback**: Cloudflare dashboard › the Worker › Deployments › pick an earlier version, or `npx wrangler rollback`. Rolling back the Worker also rolls back its assets.
- Each deploy posts a **Workers Builds** check run on the merge commit in GitHub; open its details link for the build log.
- **Deploy by hand** (CI down, PC away from the repo): `npx wrangler login` once, then `npm ci --ignore-scripts && npx wrangler deploy` from a clean `main`.
## Checking production
+2 -1
View File
@@ -404,4 +404,5 @@ Community members can contribute translations by:
Native-speaker corrections to the AI-translated locales are the most welcome
contribution of all. `src/i18n/locales/<code>/*.json` can be edited straight
from GitHub's web UI; see [CONTRIBUTING.md](../CONTRIBUTING.md).
from GitLab's web IDE on the mirror (a merge request), or sent as a patch; see
[CONTRIBUTING.md](../CONTRIBUTING.md).
+45 -46
View File
@@ -2,7 +2,7 @@
## YTDescGen — Tauri 2 Desktop and Android Apps
Reflects **v1.5.2**: Windows, macOS (Apple silicon) and Linux desktop apps plus an Android APK, all built from the same Tauri 2 project in `src-tauri/`. The web app is deployed separately — see [HOSTING.md](HOSTING.md).
Reflects **v1.7.0**: Windows and Linux desktop apps plus an Android APK, all built from the same Tauri 2 project in `src-tauri/` (macOS still builds locally on a Mac, but releases stopped shipping it after 1.6.0: there is no macOS runner on Gitea). The web app is deployed separately — see [HOSTING.md](HOSTING.md).
---
@@ -62,7 +62,7 @@ The icons come from the one brand logo: `npx tauri icon assets/brand/logo.svg` r
{
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
"productName": "YTDescGen",
"version": "1.5.2",
"version": "1.7.0",
"identifier": "com.skullmute.ytdescgen",
"build": {
"beforeBuildCommand": "npm run build",
@@ -122,7 +122,7 @@ Notes:
- The CSP allows only the app's own files (plus inline styles, which Radix, Motion and sonner set). That is why the Vite build never inlines assets as `data:` URIs (`assetsInlineLimit: 0`) and the fonts are self-hosted. The Tauri build also carries no analytics beacon — Vite adds it only to the web build.
- There is **no `trayIcon` entry**: the tray icon is built in code (`lib.rs`), with the app icon — a `trayIcon` entry would add a second one.
- There is **no `updater` configuration** — see [Updates](#updates).
- `targets: "all"` builds every bundle the platform supports (MSI + NSIS on Windows, `.app` + `.dmg` on macOS, `.deb` + `.rpm` + AppImage on Linux); the release workflow narrows macOS to `.app`.
- `targets: "all"` builds every bundle the platform supports (MSI + NSIS on Windows, `.deb` + `.rpm` + AppImage on Linux, `.app` + `.dmg` on a Mac).
- `bundle.copyright` (v1.1.0) is the installers' copyright string — the Windows file properties, the macOS `Info.plist` and the Linux packages. `npm run check:copyright` (in CI) holds its year to the year of the newest commit, together with NOTICE and REUSE.toml, and `npm run update:copyright` rewrites all three: the first commit of a new year needs it.
> **Installer license page (v0.28).** The real `src-tauri/tauri.conf.json`
@@ -211,7 +211,7 @@ The commands:
What makes them safe:
- **Names, not paths.** `storage.rs` builds every path itself, under Tauri's `app_data_dir()`, from a name that must match `ytdescgen-<lowercase letters, digits, hyphens>.json` (at most 100 bytes) for backups or `ytdescgen-YYYYMMDD.jsonl` for logs. Anything else — `..`, separators, other extensions — is rejected before a path exists.
- **Dialogs run in Rust.** `file_dialog.rs` accepts only the extensions `json`, `jsonl`, `txt`, `csv` and `md`; reduces a suggested name to its file name (`../../x/backup.json` → `backup.json`); makes a saved file end in an allowed extension (`backup` → `backup.json`, `backup.exe` → `backup.exe.json`); and refuses imports over 20 MB or that are not UTF-8 (a byte-order mark is stripped). The chosen path never passes through JavaScript. On desktop the dialog is attached to the app window. Both commands are `async` and run the dialog and the file I/O through `tauri::async_runtime::spawn_blocking`: the dialogs' blocking API must stay off the main thread, and blocking work must not hold one of the async runtime's workers (SonarCloud `rust:S7493`).
- **Dialogs run in Rust.** `file_dialog.rs` accepts only the extensions `json`, `jsonl`, `txt`, `csv` and `md`; reduces a suggested name to its file name (`../../x/backup.json` → `backup.json`); makes a saved file end in an allowed extension (`backup` → `backup.json`, `backup.exe` → `backup.exe.json`); and refuses imports over 20 MB or that are not UTF-8 (a byte-order mark is stripped). The chosen path never passes through JavaScript. On desktop the dialog is attached to the app window. Both commands are `async` and run the dialog and the file I/O through `tauri::async_runtime::spawn_blocking`: the dialogs' blocking API must stay off the main thread, and blocking work must not hold one of the async runtime's workers.
- **Removed in v1.0.0**: the five commands that read, wrote, appended to, listed and deleted any path the webview sent (`save_to_file`, `read_from_file`, `append_to_file`, `list_dir`, `delete_file`), and the fs and shell plugins.
Both modules have unit tests (`cargo test` in `src-tauri/`): the name rules, path rejection, backup pruning, legacy recovery, dialog filters, writing the picked file and the import checks.
@@ -303,21 +303,22 @@ The Tauri CLI runs `npm run build` first (`beforeBuildCommand`) with `TAURI_ENV_
**Supported WebViews.** Since v1.3.0 both builds use Vite's default target, `baseline-widely-available` — the same engines the website supports: Chromium 111, Safari 16.4, Firefox 114 (Tauri builds were lowered to `es2020` before; the stylesheet's cascade layers already needed Chromium 99+ / Safari 15.4+, so an older WebView showed the app unstyled anyway). In practice: WebView2 on Windows (it updates itself), macOS 11 or later with current Safari updates (the app is Apple silicon only, and `bundle.macOS.minimumSystemVersion` says 11.0), WebKitGTK 2.40 or later on Linux, and on Android 11+ an Android System WebView kept current through Google Play. TypeScript keeps the app's code to the same floor: `lib` in `tsconfig.json` is ES2022, since Vite lowers syntax but never polyfills built-ins.
Output file names, with the v1.1.0 release sizes:
Released file names (the release workflow renames Tauri's output to these), with the v1.1.0 release sizes:
| Platform | Bundle | File | Size |
| --------------------- | -------------------------------- | ---------------------------------------- | ------ |
| Windows | MSI | `YTDescGen_<version>_x64_en-US.msi` | 4.1 MB |
| Windows | NSIS | `YTDescGen_<version>_x64-setup.exe` | 3.1 MB |
| macOS (Apple silicon) | `.app`, archived by tauri-action | `YTDescGen_<version>_aarch64.app.tar.gz` | 4.1 MB |
| Linux | Debian | `YTDescGen_<version>_amd64.deb` | 5.3 MB |
| Linux | RPM | `YTDescGen-<version>-1.x86_64.rpm` | 5.3 MB |
| Linux | AppImage | `YTDescGen_<version>_amd64.AppImage` | 80 MB |
| Android | Universal APK | `app-universal-release.apk` | 44 MB |
| Platform | Bundle | File on `releases.poli0981.dev/youtube-generator/<version>/` | Size |
| -------- | ------------- | ------------------------------------------------------------ | ------ |
| Windows | MSI | `YTDescGen_<version>_x64_en-US.msi` | 4.1 MB |
| Windows | NSIS | `YTDescGen_<version>_x64-setup.exe` | 3.1 MB |
| Linux | Debian | `YTDescGen_<version>_amd64.deb` | 5.3 MB |
| Linux | RPM | `YTDescGen_<version>_x86_64.rpm` | 5.3 MB |
| Linux | AppImage | `YTDescGen_<version>_amd64.AppImage` | 80 MB |
| Android | Universal APK | `YTDescGen_<version>_universal.apk` | 44 MB |
### GitHub Actions Release
Next to them: `SHA256SUMS`. The newest APK is also at `releases.poli0981.dev/youtube-generator/youtube-generator-latest.apk` (a `-latest.` name, so Cloudflare does not cache it). Releases up to 1.6.0 were published on GitHub (including a macOS `YTDescGen_<version>_aarch64.app.tar.gz`), which went with the suspended account.
Pushing a `v*` tag (signed, e.g. `v1.0.0`) runs [.github/workflows/release-desktop.yml](../.github/workflows/release-desktop.yml) and [.github/workflows/release-android.yml](../.github/workflows/release-android.yml). Both start with a **`verify`** job, and their build jobs `needs: verify`:
### The release workflow (Gitea Actions)
Pushing a `v*` tag (signed, e.g. `v1.7.0`) runs [.gitea/workflows/release.yml](../.gitea/workflows/release.yml) on the maintainer's PC (the Gitea runner). It starts with a **`verify`** job, and every build job `needs: verify`:
```yaml
- run: npm ci # a clean install: package-manager-cache: false
@@ -330,30 +331,28 @@ Pushing a `v*` tag (signed, e.g. `v1.0.0`) runs [.github/workflows/release-deskt
Release jobs use no dependency caches — a poisoned cache entry written by another workflow must not reach the binaries — and every action is pinned by commit SHA.
The desktop build is a three-platform matrix; `tauri-apps/tauri-action` builds each target and uploads its bundles to one **draft** GitHub Release named `YTDescGen vX.Y.Z`:
| Job | Runner | Output |
| ---------- | ------------------------------------------ | ------------------------------------------------------ |
| `windows` | `windows-latest` (host mode on the PC) | `.msi`, `-setup.exe` (NSIS) |
| `linux` | `ubuntu-22.04` (Docker; its glibc is the floor) | `.AppImage`, `.deb`, `.rpm` |
| `android` | `ubuntu-latest` (Docker, SDK + NDK installed in the job) | universal `.apk`, signed |
| `assemble` | `ubuntu-latest` | `SHA256SUMS`, the `-latest.apk` alias, the release notes |
| `publish` | the ops repo's `publish-r2.yml` | uploads to R2: the versioned files first, the alias last |
| `release` | `ubuntu-latest` | a **draft** Gitea release `YTDescGen vX.Y.Z` with the links |
| Runner | Target | Output |
| ---------------- | -------------------------- | --------------------------- |
| `windows-latest` | `x86_64-pc-windows-msvc` | `.msi`, `.exe` (NSIS) |
| `macos-15` | `aarch64-apple-darwin` | `.app.tar.gz` |
| `ubuntu-latest` | `x86_64-unknown-linux-gnu` | `.AppImage`, `.deb`, `.rpm` |
The Linux job installs `libwebkit2gtk-4.1-dev`, `libgtk-3-dev`, `libayatana-appindicator3-dev`, `librsvg2-dev`, `patchelf` and `rpm` before building — Tauri's webview and bundling tooling need them. AppImage bundling runs with `APPIMAGE_EXTRACT_AND_RUN=1` (linuxdeploy needs FUSE, which a container doesn't have) and `NO_STRIP=true`.
Linux runners install `libwebkit2gtk-4.1-dev`, `libgtk-3-dev`, `libayatana-appindicator3-dev`, `librsvg2-dev` and `patchelf` before building — Tauri's webview and AppImage tooling need them. AppImage bundling runs with `APPIMAGE_EXTRACT_AND_RUN=1` (linuxdeploy needs FUSE, which hosted runners don't reliably provide) and `NO_STRIP=true`.
**No macOS.** There is no macOS runner (ops decision D9): 1.6.0 was the last macOS build. A Mac install keeps working with the version it has.
`fail-fast: false` keeps the other platforms going if one breaks. The `bundleArgs` matrix field is concatenated with `--target ${{ matrix.target }}` and passed through to `tauri build`.
**Where the files go.** Cloudflare R2, bucket `poli0981-releases`, public only through `https://releases.poli0981.dev/youtube-generator/` (no directory listing: link exact files). `publish-r2.yml` uploads with rclone `--immutable`, so an uploaded file is never replaced: a broken release ships as a new version. The R2 keys are user-level Actions secrets (`R2_RELEASES_ACCESS_KEY_ID`, `R2_RELEASES_SECRET_ACCESS_KEY`, variable `R2_ACCOUNT_ID`) and only reach the tag-triggered `publish` job. The Gitea release holds the notes and the links, never the binaries (the forge's disk is small).
**macOS notes (v0.9.1+):**
**Code signing is intentionally skipped** for Windows (and was for macOS) — this is an open-source personal tool, and signing certificates carry recurring cost. End users will see the standard "unverified publisher" / "unidentified developer" prompts on first launch. Document the bypass steps in the release notes if needed. (The Android APK is signed — see below.)
- **DMG bundling is skipped** (`--bundles app`). Tauri's DMG bundler runs an AppleScript that flakes intermittently on hosted macOS runners (the headless display can't load Finder fast enough for `osascript` to position icons), so we ship a `.app.tar.gz` instead. Users expand the archive and drag the `.app` into `/Applications`.
- **Intel macOS (`macos-13`) is NOT built.** GitHub started deprecating the `macos-13` free runner pool in 2025; jobs queue indefinitely. If Intel support becomes a priority, switch the macos-15 entry's target to `universal-apple-darwin` (Tauri builds both archs and lipos them into one universal binary) — the runner already has the toolchain capacity.
**Release notes.** The `assemble` job writes the draft's body: a link to `CHANGELOG.md`, one link per file, the APK alias and the checksums. The maintainer checks the links (`curl -sI`), edits the notes if needed and publishes the draft in the Gitea UI. Publishing a draft the job token created fires no workflow, so then run **Actions › Announce Release to Discord › Run workflow** with the tag.
**Code signing is intentionally skipped** for both Windows and macOS — this is an open-source personal tool, and signing certificates carry recurring cost. End users will see the standard "unverified publisher" / "unidentified developer" prompts on first launch. Document the bypass steps in the release notes if needed. (The Android APK is signed — see below.)
**Dry run:** Actions › Release › Run workflow on a branch (no tag) builds everything and keeps the files as the `r2-release` artifact for 7 days; `publish` and `release` skip (publish-r2 refuses a branch ref). Use it before a release that changes the build.
**Release notes.** tauri-action gives the draft a fixed body ("See the assets to download the installer for your platform."). `CHANGELOG.md` is hand-maintained and is the source for the notes; the maintainer smoke-tests the binaries and publishes the draft by hand. Publishing triggers `announce-release.yml` (the Announcements discussion and Discord).
**Manual re-run:** both workflows accept `workflow_dispatch` with a `tag` input — `gh workflow run release-desktop.yml -f tag=v1.0.0` rebuilds an existing release without deleting and recreating the tag. The manifests at that tag must already carry the version, or `verify` stops the run. Useful when a transient runner failure costs a single platform's binary.
**Backfill for pre-workflow tags:** `v0.8.0` and `v0.8.1` predate the multi-platform matrix and only have local Windows builds. To attach binaries retroactively, build manually then `gh release create v0.8.0 --notes-file CHANGELOG.md path/to/*.msi …`.
**Older releases:** v0.x–v1.6.0 were GitHub Releases; their files went with the account. The tags are on Gitea.
## Android (.apk) Packaging
@@ -476,24 +475,24 @@ cargo tauri android build --apk
- `cargo tauri android build --apk --target aarch64` builds an arm64-only APK (smaller download; covers virtually all modern phones).
- The build runs `npm run build` first (the `beforeBuildCommand`), then Gradle. The first build takes several minutes (Rust × up to 4 ABIs + a cold Gradle).
- For on-device iteration with hot reload: `cargo tauri android dev`.
- With the npm CLI instead of the cargo one: `npm run tauri android build -- --apk`.
- With the npm CLI instead of the cargo one: `npm run tauri android build -- --apk` (the Gradle build still calls `cargo tauri`, so the cargo CLI must be installed either way).
Install on a device: copy the APK over (or `adb install -r <apk>`) and enable
"Install unknown apps" for the source app.
### CI
[.github/workflows/release-android.yml](../.github/workflows/release-android.yml)
runs on a `v*` tag (or `workflow_dispatch` with a `tag`). After `verify`, the
`build-android` job sets up JDK 17 (Temurin), the Android SDK, NDK
`27.3.13750724`, the four Rust Android targets and the cargo Tauri CLI; decodes
the keystore into `$RUNNER_TEMP`; writes `src-tauri/gen/android/keystore.properties`;
and runs `cargo tauri android build --apk` with `NDK_HOME` pinned to that NDK.
The APK is kept as the workflow artifact `ytdescgen-android-apk`, then attached
to the draft release with `gh release upload <tag> --clobber`. That upload needs
the draft the desktop workflow creates; if the Android job gets there first,
re-run it. It needs four repo secrets:
The `android` job of [.gitea/workflows/release.yml](../.gitea/workflows/release.yml)
(a `v*` tag, or a dry run by dispatch) sets up JDK 17 (Temurin), the Android SDK
(`platform-tools`, then `ndk;27.3.13750724`, `build-tools;36.1.0` and
`platforms;android-36` through `sdkmanager` — the runner image has no SDK), the
four Rust Android targets and the cargo Tauri CLI at the npm CLI's version (the
committed Gradle project calls `cargo tauri`); decodes the keystore into
`$RUNNER_TEMP`; writes `src-tauri/gen/android/keystore.properties`; runs
`cargo tauri android build --apk` with `NDK_HOME` pinned to that NDK; verifies the signature with `apksigner`; and
removes the keystore and the properties file. The APK goes on as
`YTDescGen_<version>_universal.apk`. It needs four repo secrets (only this job,
which runs only for a tag or a dispatch, sees them):
| Secret | Value |
| ------------------------- | --------------------------------------------------------- |
@@ -511,7 +510,7 @@ re-run it. It needs four repo secrets:
## Updates
The app has no in-app updater: no updater plugin, no `updater` configuration, and it never checks for new versions. New versions are published as GitHub Releases; users download the installer or APK for their platform and install it over the existing app. User data is outside the installation — in the WebView storage and the app data directory described above — so it is kept. An Android update must be signed with the same keystore to install over an existing copy.
The app has no in-app updater: no updater plugin, no `updater` configuration, and it never checks for new versions. New versions are published on the [releases page](https://git.poli0981.dev/poli0981/youtube-generator/releases), with the files on `releases.poli0981.dev/youtube-generator/<version>/`; users download the installer or APK for their platform and install it over the existing app. User data is outside the installation — in the WebView storage and the app data directory described above — so it is kept. An Android update must be signed with the same keystore to install over an existing copy.
## Offline Capability
+82 -13
View File
@@ -2,10 +2,12 @@
## YTDescGen — Phased Development Plan
> **Status (2026-11-10): v1.5.2 is the current release.** Phases 1–4 are the original
> plan, kept as a record; notes added beside or under an item say what has
> changed since. Every release is listed in [CHANGELOG.md](../CHANGELOG.md).
> What's next: Phase 5 and the backlog at the end of this page.
> **Status (2026-11-26): maintenance mode, from v1.6.0.** YTDescGen is
> feature-complete: it stays maintained but takes no new features — see
> [Maintenance mode](#maintenance-mode--from-v160) below. Phases 1–4 are the
> original plan, kept as a record; notes added beside or under an item say
> what has changed since. Every release is listed in
> [CHANGELOG.md](../CHANGELOG.md). Phase 5 and the backlog are frozen.
---
@@ -373,10 +375,76 @@ collected, and this week's dependency updates; i18next stays on 26.6 to keep
the initial load inside its budget —
[CHANGELOG.md](../CHANGELOG.md#v152--2026-11-10).
## v1.6.0 — Maintenance mode begins ✅ SHIPPED 2026-11-17
The last feature release: DLSS 5 Neural Rendering, NVIDIA's x6 and Dynamic
Multi Frame Generation and a Custom frame generation for every vendor in
Video settings, and a Custom LUT that prints just "LUT applied". JetBrains
Qodana joins SonarCloud, and the project enters
[maintenance mode](#maintenance-mode--from-v160) —
[CHANGELOG.md](../CHANGELOG.md#v160--2026-11-17).
## v1.7.0 — Moved to Gitea ✅ SHIPPED 2026-11-26
A maintenance release forced by the platform: the GitHub account was
suspended, so the source moved to Gitea (git.poli0981.dev), issues and merge
requests to the GitLab mirror, CI to Gitea Actions on the maintainer's PC,
downloads to releases.poli0981.dev and the website's deploys to a CI job.
The app's links follow; macOS builds stop; SonarCloud and Dependabot give
way to the shared security scan and Renovate —
[CHANGELOG.md](../CHANGELOG.md#v170--2026-11-26).
---
## Maintenance mode — from v1.6.0
**Status**: ongoing since v1.6.0 (November 2026).
YTDescGen is feature-complete. From 1.6.0 on it is maintained, not extended:
no new features unless one is judged genuinely necessary. The accepted
changes, and how out-of-scope issues and pull requests are closed, are in
[CONTRIBUTING.md → Maintenance mode](../CONTRIBUTING.md#maintenance-mode):
1. Dependency updates on a regular schedule.
2. Security fixes: a dependency with a high or critical CVE, a serious runtime
issue.
3. Major language, runtime and framework upgrades (Node 24 → 26, TypeScript
6 → 7).
4. Bug, UI/UX and accessibility fixes, and adding or removing an option in one
of the app's lists when people really need it.
5. Translation fixes: wording that doesn't fit a culture or region, misleading
spelling mistakes.
6. Cloudflare / Worker changes the platform forces.
7. Website incidents such as DDoS or bot spam.
What 1.6.0 set up for it:
- [x] **Policy**: README → Project status, CONTRIBUTING → Maintenance mode,
SECURITY, MAINTAINERS, CLAUDE.md.
- [x] **Issue forms**: the feature request form is gone; an Option request
and a Translation or wording fix form joined Bug report and
Accessibility barrier; a Scope checklist in the pull request template.
- [x] **Auto-close**: `maintenance-triage.yml` closed, with a bilingual
comment and the `out-of-scope` label, feature issues and `feat:` pull
requests from outside contributors (`feat(options)`, `feat(a11y)` and
`feat(i18n)` stayed open). It went with the move to Gitea (v1.7.0):
issues now arrive on the GitLab mirror, which Gitea Actions cannot see,
and the maintainer closes out-of-scope ones by hand.
- [x] **Qodana**: Qodana for JS and Qodana for Rust (Early Access) on every
push and pull request, reported to Qodana Cloud, with a gate of zero
problems.
Known maintenance already queued: i18next 27 and Tauri 3 arrive as planned
major upgrades when they are ready. (The GitHub Pages moving notice, due to come
down on 2026-11-29, went with the GitHub account first.)
---
## Phase 5 — Extensions & Ecosystem (Priority: P2-P3)
**Frozen while YTDescGen is in maintenance mode.** An item moves only if it
falls under the [maintenance policy](../CONTRIBUTING.md#maintenance-mode).
**Goal**: IDE extension, CLI, community features.
**Estimated**: Ongoing
@@ -423,7 +491,8 @@ the initial load inside its budget —
## Backlog (after v1.0.0)
Ideas carried over from the v1.0.0 planning — not scheduled.
Ideas carried over from the v1.0.0 planning — not scheduled, and frozen while
YTDescGen is in maintenance mode.
```
- [ ] Auto-fill game info from Steam through the Worker — needs rate limiting
@@ -441,13 +510,13 @@ Ideas carried over from the v1.0.0 planning — not scheduled.
## Timeline Summary
| Phase | Scope | Days | Cumulative |
| ------- | ------------------ | ------- | ---------- |
| Phase 1 | MVP Core | 3-4 | 3-4 days |
| Phase 2 | Profiles & Presets | 2-3 | 5-7 days |
| Phase 3 | Polish & Advanced | 2-3 | 7-10 days |
| Phase 4 | Desktop App | 2-3 | 9-13 days |
| Phase 5 | Extensions | Ongoing | — |
| Phase | Scope | Days | Cumulative |
| ------- | ------------------ | ------ | ---------- |
| Phase 1 | MVP Core | 3-4 | 3-4 days |
| Phase 2 | Profiles & Presets | 2-3 | 5-7 days |
| Phase 3 | Polish & Advanced | 2-3 | 7-10 days |
| Phase 4 | Desktop App | 2-3 | 9-13 days |
| Phase 5 | Extensions | Frozen | — |
**MVP usable after Phase 1** (~3-4 days). Full-featured after Phase 3 (~7-10 days).
**v1.0.0 shipped on 2026-09-30; the current release is v1.5.2 (2026-11-10).**
**v1.0.0 shipped on 2026-09-30; the current release is v1.7.0 (2026-11-26), the first from Gitea. Maintenance mode since v1.6.0.**
+38 -34
View File
@@ -2,7 +2,7 @@
## YTDescGen — Implementation Details
Reflects **v1.5.2**. The module map and data flow are in [ARCHITECTURE.md](ARCHITECTURE.md), the desktop and Android builds in [PACKAGING.md](PACKAGING.md), and running the web deployment (Cloudflare Worker, Turnstile, secrets, rollback) in [HOSTING.md](HOSTING.md).
Reflects **v1.7.0**. The module map and data flow are in [ARCHITECTURE.md](ARCHITECTURE.md), the desktop and Android builds in [PACKAGING.md](PACKAGING.md), and running the web deployment (Cloudflare Worker, Turnstile, secrets, rollback) in [HOSTING.md](HOSTING.md).
---
@@ -13,7 +13,7 @@ Reflects **v1.5.2**. The module map and data flow are in [ARCHITECTURE.md](ARCHI
```json
{
"name": "yt-desc-gen",
"version": "1.5.2",
"version": "1.7.0",
"private": true,
"license": "Apache-2.0",
"type": "module",
@@ -107,10 +107,10 @@ Notes:
- **UI stack**: React 19, React Router 7, Zustand 5, i18next 26 / react-i18next 17, Radix primitives through the single `radix-ui` package (Dialog, AlertDialog, Popover, Tooltip, Tabs, Switch, Checkbox, ToggleGroup, Slot), Motion (loaded through `LazyMotion`), cmdk for the command palette, sonner for toasts (react-hot-toast is gone), lucide-react 1.x for UI icons and simple-icons (CC0-1.0) for the brand marks lucide 1.x dropped.
- **Tauri on the JavaScript side** is only `@tauri-apps/api` (for `invoke`) and `@tauri-apps/plugin-opener`. There are no dialog, fs or shell plugin packages: file access goes through the app's own Rust commands (see [PACKAGING.md](PACKAGING.md)). `@tauri-apps/cli` is pinned exactly, and `npm run check:tauri` keeps the npm packages on the same major.minor as the crates.
- **Build-time only**: `marked` renders the legal documents and `@resvg/resvg-js` rasterises the brand assets; neither ships in the app. `wrangler` is pinned exactly for `cf:dev` / `cf:check`.
- **i18next stays on 26.6.x** (`~26.6.0`, and a Dependabot ignore for 26.7.x): 26.7 adds the debug-mode warnings for the move to v27 — about 1.9 KB gzip that would take the initial load over its 280 KB budget. The tilde and the ignore go with the i18next 27 migration (`.github/dependabot.yml` has the note).
- **i18next stays on 26.6.x** (`~26.6.0`, and `allowedVersions: "<26.7.0"` in `renovate.json`): 26.7 adds the debug-mode warnings for the move to v27 — about 1.9 KB gzip that would take the initial load over its 280 KB budget. The tilde and the rule go with the i18next 27 migration (`renovate.json` has the note).
- **Fonts** are self-hosted: `@fontsource-variable/inter` and `@fontsource-variable/jetbrains-mono` are imported in `src/main.tsx`, and each subset (latin, latin-ext, vietnamese, …) is fetched only when a page uses it.
- **TypeScript 7** checks types: `@typescript/native` is an npm alias for `typescript@7`, the native compiler, and supplies `tsc`. TypeScript 7.0 ships no JavaScript API, so `typescript` is an alias for `@typescript/typescript6` — the TypeScript 6.0 API that typescript-eslint loads (its peer range stops below 6.1), plus `tsc6`. Both are Microsoft's documented side-by-side setup. `@typescript/typescript6` pulls TypeScript 6 in as `@typescript/old`, which ships a `tsc` too; CI fails if the `tsc` on `PATH` is not 7.x. Dependabot may not follow `npm:` aliases, so TypeScript bumps can be manual.
- **Node 26** comes from `.node-version`, which CI, the release workflows and Cloudflare Workers Builds all read; `engines.node` says `>=26`. Vitest runs its workers with `--no-experimental-webstorage`: Node 25+ defines a `localStorage` global that is `undefined` without `--localstorage-file`, and zustand's `persist` crashes on it instead of falling back to memory.
- **TypeScript 7** checks types: `@typescript/native` is an npm alias for `typescript@7`, the native compiler, and supplies `tsc`. TypeScript 7.0 ships no JavaScript API, so `typescript` is an alias for `@typescript/typescript6` — the TypeScript 6.0 API that typescript-eslint loads (its peer range stops below 6.1), plus `tsc6`. Both are Microsoft's documented side-by-side setup. `@typescript/typescript6` pulls TypeScript 6 in as `@typescript/old`, which ships a `tsc` too; CI fails if the `tsc` on `PATH` is not 7.x. Renovate leaves the aliases' majors to the maintainer (`renovate.json`), so TypeScript majors are bumped by hand.
- **Node 26** comes from `.node-version`, which CI, the release workflow and the deploy job all read; `engines.node` says `>=26`. Vitest runs its workers with `--no-experimental-webstorage`: Node 25+ defines a `localStorage` global that is `undefined` without `--localstorage-file`, and zustand's `persist` crashes on it instead of falling back to memory.
- **Installs skip lifecycle scripts** in every workflow (`npm ci --ignore-scripts`). The three packages that have one — esbuild, workerd, fsevents — take their native binary from `optionalDependencies`.
### tsconfig.json
@@ -276,7 +276,7 @@ Components use the tokens (`bg-surface-1`, `text-text-muted`, `rounded-card`,
### wrangler.jsonc
The only Cloudflare file in the repository; Workers Builds runs `npx wrangler deploy` on every push to `main`. Its settings, without the file's comments:
The only Cloudflare file in the repository; the `deploy` job of `.gitea/workflows/ci.yml` runs `wrangler deploy` after every green push to `main`. Its settings, without the file's comments:
```json
{
@@ -347,8 +347,9 @@ export interface GeneratorInput {
// liveUrl, scheduledTime, gachaQuestType, chapterName, questName, characterName,
// anniversaryYear, gachaVersion.
// Video settings: resolution, upscaledFrom (v1.5.0), fps, graphicsPreset (+ graphicsPresetCustom),
// skipGraphicsSettings, rayTracingModes, frameGenVendor, frameGenMultiplier,
// upscaleQuality, artStyle, videoStyleEra, versionInfo.
// skipGraphicsSettings, rayTracingModes, frameGenVendor, frameGenMultiplier
// (+ frameGenCustom, v1.6.0), upscaleQuality, dlssNeuralRendering (v1.6.0),
// artStyle, videoStyleEra, versionInfo.
// Content: timestamps, playlistLink, contactEmail, adEmail, gameKeyEmail,
// copyrightEmail, musicAttribution, sponsorName, sponsorPlatform, pubDevName,
// thirdPartyAdText,
@@ -420,7 +421,7 @@ export interface TitleFormatConfig {
**Empty channel name** (`channel-phrase.ts`, used by the description, pinned comment and playlist builders): templates render with `CHANNEL_SLOT` (`@@CHANNEL@@`) in place of an empty channel name. `withoutEmptyChannel(text, language)` then removes the words that go with the channel name in that language ("trên kênh", "による", "en", "no", "di", …) and the English "on" (for English, and for locales that still carry English sentences for newer video types), replaces any slot left over with a neutral fallback ("this channel", "kênh", …) and tidies the spacing before punctuation. "…of Hades on ." no longer happens in any of the eight languages.
**Rig block** (`rig-block.ts`): `buildRigLines(rig, t)` returns `Label: value` lines, shared by the description and the social captions. Labels come from `description.rigLabels.<field>` in the output language, the order is `RIG_FIELDS` (CPU, GPU, RAM, motherboard, storage, OS, monitor, capture, controller, video editor, LUT), and values go through `formatRigValue` (`gpu:nvidia-rtx-5080` → "NVIDIA GeForce RTX 5080"; a text field's `clean` — `cleanCpuName`, and since v1.4.0 `cleanLutName`, which cuts a pasted path or `.cube` / `.dat` file name down to the LUT's name — runs there as well as when the editor field loses focus). Keys that are no longer rig fields are still printed, after the known ones.
**Rig block** (`rig-block.ts`): `buildRigLines(rig, t)` returns `Label: value` lines, shared by the description and the social captions. Labels come from `description.rigLabels.<field>` in the output language, the order is `RIG_FIELDS` (CPU, GPU, RAM, motherboard, storage, OS, monitor, capture, controller, video editor, LUT), and values go through `formatRigValue` (`gpu:nvidia-rtx-5080` → "NVIDIA GeForce RTX 5080"; a text field's `clean` — `cleanCpuName`, and since v1.4.0 `cleanLutName`, which cuts a pasted path or `.cube` / `.dat` file name down to the LUT's name — runs there as well as when the editor field loses focus). A field with a `customNoteKey` whose value is "Custom" (any case) prints that templates key as its whole line instead — since v1.6.0 the LUT's "LUT applied" (`description.rigNotes.lut_custom`), for a LUT of one's own. Keys that are no longer rig fields are still printed, after the known ones.
**Chapters** (`timeline-parser.ts`):
@@ -474,7 +475,7 @@ interface EditorActions {
}
/** Bump together with a new step in migrateEditorState. */
export const EDITOR_STORE_VERSION = 21;
export const EDITOR_STORE_VERSION = 22;
export const useEditorStore = create<EditorData & EditorActions>()(
persist(
@@ -508,7 +509,7 @@ export function migrateEditorState(persistedState: unknown, version: number): Ed
| Store | localStorage key | Version | Migration (exported) |
| ------------------ | ------------------------ | ----------------------------- | ---------------------------------------------------------------------------------------------- |
| `useEditorStore` | `ytdescgen-editor-draft` | `EDITOR_STORE_VERSION` = 21 | `migrateEditorState` |
| `useEditorStore` | `ytdescgen-editor-draft` | `EDITOR_STORE_VERSION` = 22 | `migrateEditorState` |
| `useProfileStore` | `ytdescgen-profiles` | `PROFILE_STORE_VERSION` = 3 | `migrateProfilesState` |
| `usePresetStore` | `ytdescgen-presets` | `PRESET_STORE_VERSION` = 2 | `migratePresetsState` |
| `useTemplateStore` | `ytdescgen-templates` | `TEMPLATE_STORE_VERSION` = 2 | `migrateTemplatesState` |
@@ -525,6 +526,8 @@ v1.5.0: editor v21 back-fills `upscaledFrom` (recorded at a lower resolution, up
v1.5.1: the settings gain `singleKeyShortcuts` (default `true`: the bare `?` opens the shortcut list) without a version bump, like `hideScrollbars` — `healSettings` back-fills it and turns anything but a boolean into `true`.
v1.6.0: editor v22 back-fills `frameGenCustom` (the frame generation typed for the new `"custom"` multiplier) with `""` and `dlssNeuralRendering` (NVIDIA DLSS 5 Neural Rendering) with `false`, coercing values of the wrong type. The multiplier list only widens (`x6` and `dynamic` for NVIDIA, `custom` for every vendor), and the backup whitelist checks it against `FRAMEGEN_MULTIPLIERS`. `normalizeEditorPatch` and the backup import turn `dlssNeuralRendering` off for any vendor but NVIDIA (`coerceDlssNeuralRendering`). Neither field is a profile or preset field, like the rest of the frame-gen settings. The LUT's "Custom" needs no migration: it is a rig value like any LUT name.
Rules:
- **localStorage is the only store**, on the web, desktop and Android. The desktop "mirror" file of earlier versions (`storage-adapter.ts`, `saveSettings`, `checkDataFileHealth`) was removed in v1.0.0; it was written next to the data folder and never read back. [PACKAGING.md](PACKAGING.md) covers how the leftover file is recovered.
@@ -587,18 +590,20 @@ An unknown version is read as 0: every migration step is idempotent, so running
`auto-backup.ts` writes `ytdescgen-backup-YYYYMMDD-HHmm.json` through the `backup_write` command into `<app data>/backups/`: 5 s after start, then 30 s after the last change to profiles, presets, templates, history or settings, at most once every 10 minutes. It skips a write when the data is identical to the last backup (FNV-1a hash of `data`, seeded from the newest backup on start) or when the library (profiles, presets, templates, history) is empty, so a run of empty backups can never push the good ones out. The draft is included but does not trigger a backup. **Back up now** in Settings and the backup before a restore (`…-before-restore.json`) use the same folder and name pattern. The Rust side writes atomically (temporary file + rename) and keeps the newest ten `ytdescgen-backup-*` files; any other name, such as a recovered `ytdescgen-legacy-data.json`, is never deleted automatically.
## 5. GitHub Actions
## 5. CI (Gitea Actions)
| Workflow | Runs on | Jobs |
| ------------------------------------------------------ | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ci.yml` (CI) | PRs to and pushes on `main` | `check` — the required status on `main`; `sonarcloud` — the SonarCloud scan with `check`'s coverage (pushes on `main`, PRs from this repository except Dependabot's) |
| `security.yml` (Security) | PRs, pushes on `main`, weekly, manual | `dependency-review` (PRs: fails on a newly added high/critical advisory), `workflow-lint` (actionlint + zizmor, `.github/zizmor.yml`), `scorecard` (OpenSSF Scorecard, informational; not on PRs) |
| `compliance.yml` (Compliance) | PRs, pushes on `main` | `reuse` (REUSE licensing via `REUSE.toml`), `pr-title` (Conventional-Commit PR titles with a lower-case subject) |
| `rust.yml` (Rust) | Changes under `src-tauri/`, weekly, manual | `lint-and-test` (`cargo fmt --all -- --check`, `cargo clippy --all-targets --locked -- -D warnings`, `cargo test --locked`, after `npm run build` because `generate_context!` embeds `dist/`), `cargo-deny` (`check advisories licenses sources`, `src-tauri/deny.toml`) |
| `release-desktop.yml`, `release-android.yml` | `v*` tags, manual with a `tag` input | `verify`, then the builds — see [PACKAGING.md](PACKAGING.md) |
| `announce-release.yml` | Release published, manual | Links the release to an Announcements discussion and posts to Discord |
| `notify-ci-failure.yml`, `notify-release-pipeline.yml` | `workflow_run` | Discord notifications through the maintainer's shared workflows |
| `pages-migration.yml` | Manual only | Publishes `migration-page/` to the old GitHub Pages address until 2026-11-29 |
The workflows are in `.gitea/workflows/` and run on Gitea Actions (since November 2026; GitHub Actions before the account was suspended). The runner is the maintainer's PC: `windows-latest` jobs run on the host, `ubuntu-*` jobs in Docker (`docker.gitea.com/runner-images`); scheduled runs sit inside 13:00–16:00 UTC, the hours the PC is on. The shared workflows come from the ops repository `poli0981/.github`, pinned to a tag's commit (v2026.11.4).
| Workflow | Runs on | Jobs |
| ------------------------------------------------------ | --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ci.yml` (CI) | PRs to and pushes on `main` | `check` — the required status on `main`; `deploy` — `wrangler deploy` to production after `check`, pushes on `main` only |
| `security.yml` (Security) | PRs, pushes on `main`, weekly (Wed), manual | `workflow-lint` (actionlint + shellcheck, zizmor offline, `.github/actionlint.yaml` / `.github/zizmor.yml`); `scan` — the ops `security.yml`: gitleaks (full history), Opengrep, osv-scanner (`osv-scanner.toml` exceptions), cargo-deny (`src-tauri/deny.toml`) |
| `compliance.yml` (Compliance) | PRs, pushes on `main` | `reuse` (REUSE licensing via `REUSE.toml`), `pr-title` (Conventional-Commit PR titles with a lower-case subject, read from the event payload) |
| `rust.yml` (Rust) | Changes under `src-tauri/`, weekly (Mon), manual | `lint-and-test` (`cargo fmt --all -- --check`, `cargo clippy --all-targets --locked -- -D warnings`, `cargo test --locked`, after `npm run build` because `generate_context!` embeds `dist/`) |
| `qodana.yml` (Qodana) | PRs to and pushes on `main`, manual | `typescript` — Qodana for JS in native mode (`qodana.yaml`); `rust` — Qodana for Rust, Early Access, in Docker Desktop on the runner PC (`src-tauri/qodana.yaml`); both through the ops `reusable-qodana.yml`, both skip without their token |
| `release.yml` (Release) | `v*` tags; manual = dry run | `verify`, the Windows / Linux / Android builds, `assemble`, `publish` (R2), `release` (draft) — see [PACKAGING.md](PACKAGING.md) |
| `announce-release.yml` | Release published, manual with a `tag` | Posts the release to Discord through the ops workflow (run it by hand after publishing a draft CI created) |
| `notify-ci-failure.yml`, `notify-release-pipeline.yml` | `workflow_run` | Discord notifications through the ops repo's shared workflows |
The `check` job, in order:
@@ -610,7 +615,6 @@ The `check` job, in order:
- run: npm run lint
- run: npm run validate:locales
- run: npm run test:coverage # thresholds in vitest.config.ts
- uses: actions/upload-artifact # coverage/lcov.info, for the sonarcloud job
# consistency
- run: npm run format:check
- run: npm run knip
@@ -628,29 +632,29 @@ The `check` job, in order:
- run: npm run cf:check # wrangler deploy --dry-run
```
Then `sonarcloud` (after `check` succeeds):
Then `deploy` (pushes on `main`, after `check` succeeds):
```yaml
- uses: actions/checkout # fetch-depth: 0 — new code is told from old by git blame
- uses: actions/download-artifact # the coverage report from check
- run: jq -r .version package.json # → sonar.projectVersion
- uses: SonarSource/sonarqube-scan-action # SONAR_TOKEN, sonar-project.properties
- run: npm ci --ignore-scripts # a clean install, no dependency cache
- run: npx wrangler deploy # build.command runs npm run build; CLOUDFLARE_API_TOKEN + CLOUDFLARE_ACCOUNT_ID
- run: curl https://ytgenerator.stream/assets/<the new entry chunk> # until it answers 200
```
- **Bundle budget** (`scripts/check-bundle-size.ts`): the initial load is every script, modulepreload and stylesheet `dist/index.html` references, summed gzip — lazy chunks (pages, locales, legal documents) are excluded. The result is printed as a table and added to the job summary.
- **Licences** (`scripts/lib/third-party.ts`): every package bundled into the app must carry an allowed licence (MIT, ISC, Apache-2.0, BSD-2/3-Clause, 0BSD, CC0-1.0, Unlicense, BlueOak-1.0.0, OFL-1.1, Zlib, MPL-2.0), and `THIRD_PARTY_NOTICES.md` is generated (`npm run generate:third-party`) and checked, not hand-written.
- **Copyright years** (`scripts/lib/copyright.ts`, v1.1.0): NOTICE, REUSE.toml and `bundle.copyright` in `tauri.conf.json` must state `copyrightYears(<year of HEAD's commit>)` from `src/config/brand.ts` — "2026", then "2026-2027" from the first commit of 2027. The commit year rather than the clock keeps old commits green; `npm run update:copyright` rewrites the three files. The `/legal` pages' footer uses the same helper at build time.
- **Wrangler dry run** validates `wrangler.jsonc` and bundles the Worker exactly as Workers Builds will, without deploying.
- **SonarCloud** (CI-based; Automatic Analysis is off in the project's settings): `sonar-project.properties` makes the whole repository main code except the tests (`tests/**` and any `src/**/*.test.ts(x)`, analysed as tests) and the binary files (icons, the Gradle wrapper's jar), imports `coverage/lcov.info` and excludes from coverage everything Vitest does not measure (see [Testing Strategy](#6-testing-strategy)). The scan waits for the quality gate — Sonar way: A security, reliability and maintainability ratings, every security hotspot reviewed, ≤ 3 % duplication and ≥ 80 % coverage on new code — and fails the job when it fails. New code is "since the previous version": the job reads `package.json`'s version into `sonar.projectVersion`, so every release starts a new period. The scan runs in a job of its own so that `SONAR_TOKEN` never shares a job with npm packages. PRs from forks and from Dependabot get no repository secrets and skip it; the condition checks the PR author, not `github.actor` (zizmor's `bot-conditions`).
- Every workflow declares least-privilege `permissions`, checks out with `persist-credentials: false`, and pins actions by commit SHA (Dependabot keeps the SHAs and version comments current). The exceptions are the actionlint Docker image (pinned by version tag) and the maintainer's own `poli0981/.github` reusable workflows (tracked at `main`, allowed in `.github/zizmor.yml`). CI, Security, Compliance and Rust cancel superseded runs through a `concurrency` group, except on `main`, where each commit's result is a record the release process reads back.
- **Wrangler dry run** validates `wrangler.jsonc` and bundles the Worker exactly as `deploy` will, without deploying.
- **Security scan** (the ops `security.yml`): gitleaks over the whole history, Opengrep (SAST, report only), osv-scanner over `package-lock.json` and `src-tauri/Cargo.lock`, cargo-deny (advisories, licences, sources). Reports are artifacts (Gitea has no code-scanning UI). An advisory no release fixes yet is listed with its reason and an expiry date in `osv-scanner.toml` next to the lockfile, and for crates in `src-tauri/deny.toml` too. SonarCloud, which ran here until v1.6.0, was dropped with the move (ops decision D1).
- **Qodana** (v1.6.0; JetBrains, Ultimate licence — the account runs the trial): `qodana.yml` calls the ops `reusable-qodana.yml` (the Qodana CLI) twice: Qodana for JS in native mode, on the runner's Node 26 and `node_modules` (`qodana.yaml`), and Qodana for Rust (Early Access, Docker only, so `windows-latest` + Docker Desktop on the runner PC) on `src-tauri/` (`src-tauri/qodana.yaml`: its `bootstrap` pins the image's dhi.io apt repository and installs the packages `rust.yml` installs, a stand-in `dist/index.html` lets `generate_context!` expand, and the project gets 25 minutes to open). Both use the `qodana.recommended` profile and a quality gate of zero problems; every exclusion in a `qodana.yaml` says why. Results go to Qodana Cloud (projects `yt-ts-js` and `yt-rust`) and the `qodana-report-*` artifacts. A `tokens` job checks for `QODANA_TOKEN_TS_JS` and `QODANA_TOKEN_RUST`; without one that analysis is skipped. Not a required check. When the licence lapses, both jobs fail at the licence check.
- Every workflow declares least-privilege `permissions`, checks out with `persist-credentials: false`, and pins actions by commit SHA (Renovate keeps the SHAs and version comments current); calls into the ops repo are pinned to a tag's commit too (bumped by hand). Linting tools are pinned binaries with SHA-256 checks or come from the hash-locked `.github/requirements-ci.txt`. CI, Security, Compliance, Rust and Qodana cancel superseded runs through a `concurrency` group, except on `main`, where every run deploys or is a record.
**Web deployment is not a GitHub workflow.** Cloudflare Workers Builds builds and deploys the Worker and `dist/` on every push to `main` (preview versions for other branches). The old `deploy-web.yml` (GitHub Pages) is gone; `pages-migration.yml` only serves the moving notice, which hands visitors the data their browser saved on the old address as a `_format: 2` backup file. See [HOSTING.md](HOSTING.md).
**Web deployment** is the `deploy` job of `ci.yml` (`wrangler deploy` with the user-level secrets `CLOUDFLARE_API_TOKEN` and `CLOUDFLARE_ACCOUNT_ID`). Cloudflare Workers Builds deployed from GitHub until November 2026; the GitHub Pages notice and its `pages-migration.yml` went with the account. See [HOSTING.md](HOSTING.md).
**Why these gates exist (v0.35.0).** Several gates were installed and configured long before they ran: `knip` had a `knip.json`, Prettier had a config and a `format` script. Turning them on found real problems at once — most notably that `tsconfig.json` covers only `src/`, so `tests/` and `scripts/` had never been type-checked, which hid three fields missing from the editor → engine parity fixture.
## 6. Testing Strategy
Vitest runs `tests/**/*.test.{ts,tsx}` and `src/**/*.test.{ts,tsx}` in the **node** environment, with `globals: true`: 1131 tests in 54 files at v1.5.2. Directories: `tests/engine`, `store`, `styles` (WCAG AA contrast of the colour tokens), `utils` (backup detect / sanitize / restore, quick entry, validation, the migration page), `worker` (router, rate limits, cookie, Turnstile verdicts, headers, gate language), `build` (legal pages, web-only plugins), `config`, `hooks`, `i18n`, `scripts`. No test renders components: React Testing Library is installed but jsdom is not, so a rendering test would need both jsdom and a `// @vitest-environment jsdom` docblock.
Vitest runs `tests/**/*.test.{ts,tsx}` and `src/**/*.test.{ts,tsx}` in the **node** environment, with `globals: true`: 1156 tests in 55 files at v1.7.0. Directories: `tests/engine`, `store`, `styles` (WCAG AA contrast of the colour tokens), `utils` (backup detect / sanitize / restore, quick entry, validation, the migration page), `worker` (router, rate limits, cookie, Turnstile verdicts, headers, gate language), `build` (legal pages, web-only plugins), `config`, `hooks`, `i18n`, `scripts`. No test renders components: React Testing Library is installed but jsdom is not, so a rendering test would need both jsdom and a `// @vitest-environment jsdom` docblock.
Engine tests build a full `GeneratorInput` and pass a mock translator (`tests/helpers/mock-t.ts`) that reads the real `templates.json` files (en, vi, ja):
@@ -692,7 +696,7 @@ describe("buildTitle", () => {
});
```
`npm run test:coverage` (what CI runs) measures the logic layers with V8 — `src/engine/**`, `src/config/**`, `src/store/**`, `src/utils/**`, `worker/**` (except `worker/index.ts`, the runtime wiring) and `build-plugins/**` — and writes `coverage/lcov.info` for SonarCloud. Components, pages and hooks are checked in the running app, `src/i18n` is i18next set-up and `scripts/` is tooling; SonarCloud would count a file missing from the report as 0 % covered, so `sonar.coverage.exclusions` lists all of them, and a new source folder goes into one list or the other. The run fails below these thresholds — the engine is what the whole app trusts, the Worker is what guards the site:
`npm run test:coverage` (what CI runs) measures the logic layers with V8 — `src/engine/**`, `src/config/**`, `src/store/**`, `src/utils/**`, `worker/**` (except `worker/index.ts`, the runtime wiring) and `build-plugins/**` — the layers the unit tests are for. Components, pages and hooks are checked in the running app, `src/i18n` is i18next set-up and `scripts/` is tooling. The run fails below these thresholds — the engine is what the whole app trusts, the Worker is what guards the site:
| Scope | Statements | Branches | Functions | Lines |
| ----------------------------------------- | ---------- | -------- | --------- | ----- |
+4 -4
View File
@@ -2,11 +2,11 @@
> **Lưu ý dịch thuật:** Tiếng Anh là phiên bản chính ([`ACCESSIBILITY.md` ở root](../../../ACCESSIBILITY.md)). Bản tiếng Việt này có thể chậm cập nhật một vài commit.
**Cập nhật lần cuối:** 2026-11-09
**Cập nhật lần cuối:** 2026-11-25
YTDescGen hướng tới việc ai làm video cũng dùng được, kể cả người dùng bàn phím thay chuột, trình đọc màn hình, phóng to hoặc kính lúp, chế độ tương phản cao, điều khiển bằng giọng nói hay màn hình cảm ứng. Văn bản này nói rõ những gì đang hoạt động, cách kiểm tra, những gì chưa ổn, và cách báo cho chúng tôi khi bạn gặp rào cản.
Văn bản áp dụng cho trang web [ytgenerator.stream](https://ytgenerator.stream), ứng dụng desktop (Windows, macOS, Linux) và ứng dụng Android. Các bản này dùng chung một giao diện, nên mọi điều dưới đây áp dụng cho tất cả, trừ khi có nêu tên nền tảng.
Văn bản áp dụng cho trang web [ytgenerator.stream](https://ytgenerator.stream), ứng dụng desktop (Windows và Linux; bản macOS đến 1.6.0, phiên bản cuối cùng được build cho macOS) và ứng dụng Android. Các bản này dùng chung một giao diện, nên mọi điều dưới đây áp dụng cho tất cả, trừ khi có nêu tên nền tảng.
## Mục tiêu
@@ -88,7 +88,7 @@ Chúng tôi hướng tới [WCAG 2.2](https://www.w3.org/TR/WCAG22/) mức **AA*
Nếu có điều gì trong YTDescGen cản trở bạn, hãy cho chúng tôi biết. Bạn không cần biết nguyên nhân kỹ thuật.
- **Nên dùng:** mở một [issue về khả năng tiếp cận](https://github.com/poli0981/youtube-generator/issues/new?template=accessibility.yml). Biểu mẫu sẽ hỏi nền tảng, công nghệ hỗ trợ bạn dùng và chuyện gì đã xảy ra.
- **Nên dùng:** mở một [issue về khả năng tiếp cận](https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Accessibility) trên bản mirror GitLab (nơi nhận issue của dự án từ tháng 11/2026). Mẫu sẽ hỏi nền tảng, công nghệ hỗ trợ bạn dùng và chuyện gì đã xảy ra.
- **Không muốn đăng công khai?** Gửi email tới **contact@poli0981.dev**, tiêu đề bắt đầu bằng `[Accessibility]`.
- **Câu hỏi nhanh?** Hỏi trên [Discord](https://discord.gg/kDM9GMu5vm).
@@ -126,4 +126,4 @@ Mẫu pull request có cùng danh sách kiểm tra này.
## Góp ý cho văn bản này
Mọi ý tưởng để cải thiện văn bản này hay cách xử lý khả năng tiếp cận đều được hoan nghênh trên [GitHub Discussions](https://github.com/poli0981/youtube-generator/discussions). Còn rào cản thì hãy báo qua [quy trình báo lỗi](#báo-một-rào-cản) để được theo dõi.
Mọi ý tưởng để cải thiện văn bản này hay cách xử lý khả năng tiếp cận đều được hoan nghênh qua một [issue trên bản mirror GitLab](https://gitlab.com/poli0981/youtube-generator/-/issues) hoặc email tới **contact@poli0981.dev**. Còn rào cản thì hãy báo qua [quy trình báo lỗi](#báo-một-rào-cản) để được theo dõi.
+1 -1
View File
@@ -1,6 +1,6 @@
# Danh mục Nội dung
Bản kê khai tĩnh cho mọi loại video, thể loại game, cảnh báo nội dung, ghi chú kỹ thuật, cửa hàng, trường link và nền tảng đăng chéo trong editor của YTDescGen (tính đến v1.3.0). Cập nhật thủ công — khi thêm mục mới vào một trong các file nguồn dưới đây, **thêm dòng tương ứng vào đây** trong cùng PR.
Bản kê khai tĩnh cho mọi loại video, thể loại game, cảnh báo nội dung, ghi chú kỹ thuật, cửa hàng, trường link và nền tảng đăng chéo trong editor của YTDescGen (tính đến v1.7.0). Cập nhật thủ công — khi thêm mục mới vào một trong các file nguồn dưới đây, **thêm dòng tương ứng vào đây** trong cùng PR.
File này tồn tại để **minh bạch** — bất kỳ ai tò mò về việc editor có thể mô tả được gì (mà không cần cài app hay đọc source) đều có thể quét trong một phút.
+12 -9
View File
@@ -25,7 +25,7 @@ Cài theo thứ tự:
| Công cụ | Phiên bản | Lý do |
| ----------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Node.js** | **26** — đúng phiên bản trong `.node-version` | CI, các workflow release và Cloudflare Workers Builds đều đọc `.node-version`, và `package.json` khai báo `engines.node >= 26`. Dùng [nvm](https://github.com/nvm-sh/nvm) hoặc [fnm](https://github.com/Schniz/fnm) (fnm đọc được `.node-version`). |
| **Node.js** | **26** — đúng phiên bản trong `.node-version` | CI, workflow release và job deploy đều đọc `.node-version`, và `package.json` khai báo `engines.node >= 26`. Dùng [nvm](https://github.com/nvm-sh/nvm) hoặc [fnm](https://github.com/Schniz/fnm) (fnm đọc được `.node-version`). |
| **npm** | 11, đi kèm Node 26 | Dự án dùng npm; `pnpm` và `yarn` chưa test. |
| **Rust** | stable, `>= 1.90` | Bắt buộc cho bản build Tauri desktop và Android (Tauri 2.12 cần Rust 1.90). Cài qua [rustup](https://rustup.rs/); profile mặc định đã có sẵn `rustfmt` và `clippy`. |
| **Python** | `3.12` | Tùy chọn — chỉ cần cho một số tooling Tauri trên Windows. |
@@ -70,7 +70,7 @@ Extension đề xuất (không có `.vscode/extensions.json` được commit —
```bash
# 1. Clone
git clone https://github.com/poli0981/youtube-generator.git
git clone https://git.poli0981.dev/poli0981/youtube-generator.git
cd youtube-generator
# 2. Cài web dependencies
@@ -85,10 +85,13 @@ Dev server chỉ chạy riêng app: không có cổng Turnstile, không có anal
## Nhánh và Pull Request
- Tạo nhánh từ `main` (`feat/…`, `fix/…`, `docs/…`, `chore/…`) và mở pull request vào `main`. Không có nhánh dài hạn nào khác, và mỗi lần merge vào `main` đều deploy bản web.
Repo nằm trên Gitea ([`git.poli0981.dev/poli0981/youtube-generator`](https://git.poli0981.dev/poli0981/youtube-generator)); người ngoài mở issue và merge request trên bản mirror GitLab ([`gitlab.com/poli0981/youtube-generator`](https://gitlab.com/poli0981/youtube-generator)) hoặc gửi patch tới `code@poli0981.dev`. CI là Gitea Actions (`.gitea/workflows/`), chạy bằng runner trên máy của maintainer.
- Tạo nhánh từ `main` (`feat/…`, `fix/…`, `docs/…`, `chore/…`) và mở pull request vào `main`. Không có nhánh dài hạn nào khác, và mỗi lần merge vào `main` đều deploy bản web (job `deploy` của `ci.yml`).
- Tiêu đề PR theo định dạng commit `type(scope): message`; CI có kiểm tra.
- Mỗi PR đều chạy job `check` (xem bên dưới), `dependency-review`, `workflow-lint`, `reuse` và `pr-title`; hai job Rust `lint-and-test` và `cargo-deny` chạy khi có thay đổi trong `src-tauri/`.
- Sau `check`, job `sonarcloud` gửi mã nguồn và báo cáo coverage lên [SonarCloud](https://sonarcloud.io/project/overview?id=poli0981_youtube-generator) (cấu hình trong `sonar-project.properties`) và fail khi quality gate fail: code mới phải đạt hạng A, mọi security hotspot đã được review, trùng lặp tối đa 3 % và coverage tối thiểu 80 %. PR từ fork và từ Dependabot bỏ qua job này — chúng không có `SONAR_TOKEN` — còn `main` được phân tích sau mỗi lần merge.
- Mỗi PR đều chạy job `check` (xem bên dưới), `workflow-lint` (actionlint, zizmor), `reuse`, `pr-title` và bộ quét bảo mật dùng chung (gitleaks, Opengrep, osv-scanner, cargo-deny); job Rust `lint-and-test` chạy khi có thay đổi trong `src-tauri/`.
- Workflow `Qodana` chạy JetBrains [Qodana](https://www.jetbrains.com/qodana/) trên mọi PR và mọi lần push vào `main`: Qodana for JS cho cả repo (`qodana.yaml`) và Qodana for Rust cho `src-tauri/` (`src-tauri/qodana.yaml`, chạy trong Docker trên máy runner). Cả hai fail khi có bất kỳ lỗi nào. Đây không phải check bắt buộc.
- Cập nhật dependency do Renovate lo (`renovate.json`), gộp nhóm, sau khi bản mới ra được 3 ngày.
Quy định đầy đủ: [CONTRIBUTING.md](../../../CONTRIBUTING.md).
@@ -118,13 +121,13 @@ Quy định đầy đủ: [CONTRIBUTING.md](../../../CONTRIBUTING.md).
| `npm run validate:locales` | Bắt buộc cả 8 locale khớp chính xác với `_schema.json`. **Phải pass trước khi merge PR động đến locale.** |
| `npm run test` | Vitest chế độ watch. |
| `npm run test:run` | Vitest chạy một lần. |
| `npm run test:coverage` | Chạy một lần kèm báo cáo coverage vào `coverage/` — các tầng logic, SonarCloud đọc `lcov.info`; fail nếu thấp hơn ngưỡng đặt cho `src/engine/` và `worker/` trong `vitest.config.ts`. CI chạy lệnh này. |
| `npm run test:coverage` | Chạy một lần kèm báo cáo coverage vào `coverage/` — các tầng logic; fail nếu thấp hơn ngưỡng đặt cho `src/engine/` và `worker/` trong `vitest.config.ts`. CI chạy lệnh này. |
| `npm run check:version` | Kiểm tra cả **sáu** trường version khớp nhau (`package.json`, hai chỗ trong `package-lock.json`, `tauri.conf.json`, `Cargo.toml`, `Cargo.lock`). Đây là thứ duy nhất phát hiện khi bỏ sót một chỗ. |
| `npm run check:tauri` | Các package npm `@tauri-apps/*` và các crate Tauri phải cùng major.minor. Tauri CLI sẽ từ chối build nếu lệch, mà CI thì không chạy build Tauri. |
| `npm run check:licenses` | Mọi package được bundle đều có license nằm trong danh sách cho phép, và `THIRD_PARTY_NOTICES.md` khớp với những gì đang cài. |
| `npm run check:copyright` | NOTICE, REUSE.toml và chuỗi copyright của bộ cài (`tauri.conf.json`) phải ghi đúng năm theo năm của commit HEAD — "2026", rồi "2026-2027" từ commit đầu tiên của năm 2027. Gate của CI (v1.1.0). |
| `npm run check:bundle` | Chạy sau `npm run build`: lần tải đầu phải ≤ 280 KB gzip và không chunk JS nào vượt 500 KB (chưa nén). |
| `npm run cf:check` | `wrangler deploy --dry-run`: kiểm tra `wrangler.jsonc` và bundle Worker y như Workers Builds sẽ làm, nhưng không deploy. |
| `npm run cf:check` | `wrangler deploy --dry-run`: kiểm tra `wrangler.jsonc` và bundle Worker y như job deploy sẽ làm, nhưng không deploy. |
### Sinh file
@@ -177,7 +180,7 @@ Xem [PACKAGING.md](../../PACKAGING.md) cho pipeline release đầy đủ. Build
```bash
npm run tauri:build
# Output: src-tauri/target/release/bundle/
# Windows: bộ cài MSI + NSIS · Linux: deb, rpm, AppImage · macOS: .app + DMG
# Windows: bộ cài MSI + NSIS · Linux: deb, rpm, AppImage · macOS (chỉ build tại máy, không phát hành): .app + DMG
```
Build đầu tiên mất khoảng 5–10 phút (Cargo cache rỗng). Build sau đó là incremental.
@@ -186,7 +189,7 @@ Vite dev server không theo dõi `src-tauri/**` và `.wrangler/**` (`server.watc
### Kiểm tra Rust
Giống các bước của job `lint-and-test` trong `.github/workflows/rust.yml` (chạy khi `src-tauri/` thay đổi, và hằng tuần):
Giống các bước của job `lint-and-test` trong `.gitea/workflows/rust.yml` (chạy khi `src-tauri/` thay đổi, và hằng tuần):
```bash
npm run build # tauri::generate_context!() nhúng dist/, nên clippy và test cần có bản build
+2 -2
View File
@@ -6,14 +6,14 @@
YTDescGen là dự án cá nhân do một người duy trì (`@poli0981`) để dùng cho kênh YouTube [`@SkullMute`](https://www.youtube.com/@SkullMute), và chia sẻ công khai dưới dạng mã nguồn mở. Đây **không phải sản phẩm thương mại** và không có nghĩa vụ hỗ trợ.
Mã nguồn, tài liệu, bản dịch locale, và các quyết định thiết kế trong repo này được **đồng tác giả với sự hỗ trợ của Anthropic's Claude Code (các model Claude Opus; từ bản v1.0.0 đến v1.5.1 dùng Claude Opus 5.5, bản v1.5.2 dùng Claude Fable 5.2)**. Tất cả commit, release, và quyết định kiến trúc được người duy trì xem xét và phê duyệt trước khi merge.
Mã nguồn, tài liệu, bản dịch locale, và các quyết định thiết kế trong repo này được **đồng tác giả với sự hỗ trợ của Anthropic's Claude Code (các model Claude Opus; từ bản v1.0.0 đến v1.5.1, bản v1.6.0 và v1.7.0 dùng Claude Opus 5.5, bản v1.5.2 dùng Claude Fable 5.2)**. Tất cả commit, release, và quyết định kiến trúc được người duy trì xem xét và phê duyệt trước khi merge.
Tuyên bố này áp dụng cho:
- Mã nguồn trong `src/` và `src-tauri/`.
- Tài liệu trong `docs/` và các file markdown ở root.
- File locale trong `src/i18n/locales/`.
- Workflow CI/CD trong `.github/workflows/`.
- Workflow CI/CD trong `.gitea/workflows/`.
- Cloudflare Worker trong `worker/` và các build plugin trong `build-plugins/`.
Xem thêm: [`THIRD_PARTY_NOTICES.md`](../../../THIRD_PARTY_NOTICES.md) § "AI-assisted development".
+2 -2
View File
@@ -55,7 +55,7 @@
"alternateName": "YouTube Description Generator",
"url": "https://ytgenerator.stream/",
"applicationCategory": "MultimediaApplication",
"operatingSystem": "Web, Windows, macOS, Linux, Android",
"operatingSystem": "Web, Windows, Linux, Android",
"description": "Generate YouTube titles, descriptions, and tags for Gameplay No Commentary channels — eight languages, reusable profiles and presets, on the web or as a desktop and Android app.",
"inLanguage": ["en", "vi", "ja", "es", "ko", "zh", "pt-BR", "id"],
"offers": {
@@ -68,7 +68,7 @@
"name": "SkullMute",
"url": "https://poli0981.dev/"
},
"license": "https://github.com/poli0981/youtube-generator/blob/main/LICENSE"
"license": "https://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/LICENSE"
}
</script>
</head>
-55
View File
@@ -1,55 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex" />
<meta name="color-scheme" content="dark light" />
<title>YTDescGen has moved to ytgenerator.stream</title>
<meta
name="description"
content="YTDescGen now lives at ytgenerator.stream. Download the data you saved here and restore it there."
/>
<link rel="canonical" href="https://ytgenerator.stream/" />
<link rel="stylesheet" href="/youtube-generator/style.css" />
<script src="/youtube-generator/app.js" defer></script>
</head>
<body>
<main class="card">
<p class="brand">YTDescGen</p>
<h1 data-i18n="title">YTDescGen has moved to ytgenerator.stream</h1>
<p data-i18n="lead">
The app now lives at its own address. Everything you saved on this old address — profiles,
presets, templates, history, settings — stays in this browser, so bring it along in two
steps.
</p>
<ol class="steps">
<li>
<strong data-i18n="step1">Download your data</strong>
<p id="found" class="muted" data-i18n="searching">Looking for saved data…</p>
<button id="download" type="button" disabled data-i18n="download">
Download my data
</button>
</li>
<li>
<strong data-i18n="step2">Restore it on the new site</strong>
<p class="muted" data-i18n="step2Hint">
Open Settings › Backup &amp; restore, choose Restore and pick the file — or drop it
there. You'll see what's new before anything changes.
</p>
<a class="button primary" href="https://ytgenerator.stream/settings" data-i18n="open">
Open ytgenerator.stream
</a>
</li>
</ol>
<p class="muted small" data-i18n="notice">
This page stays until 29 November 2026. The desktop and Android apps aren't affected.
</p>
<p class="small">
<button id="language" type="button" class="link" data-i18n="switch">Tiếng Việt</button>
</p>
</main>
</body>
</html>
-173
View File
@@ -1,173 +0,0 @@
// YTDescGen moved from poli0981.github.io/youtube-generator to
// ytgenerator.stream. Browser storage belongs to a site, so data saved on the
// old address can't follow on its own: this page reads it and hands it over
// as a backup file (the format the new site's Settings › Restore reads).
(function () {
"use strict";
// Store key, where a list section keeps its items, and the backup section.
var STORES = [
{ key: "ytdescgen-profiles", section: "profiles", list: "profiles" },
{ key: "ytdescgen-presets", section: "presets", list: "presets" },
{ key: "ytdescgen-templates", section: "templates", list: "templates" },
{ key: "ytdescgen-history", section: "history", list: "entries" },
{ key: "ytdescgen-settings", section: "settings", list: null },
{ key: "ytdescgen-editor-draft", section: "draft", list: null },
];
var TEXT = {
en: {
title: "YTDescGen has moved to ytgenerator.stream",
lead: "The app now lives at its own address. Everything you saved on this old address — profiles, presets, templates, history, settings — stays in this browser, so bring it along in two steps.",
step1: "Download your data",
searching: "Looking for saved data…",
found: "Found: {list}.",
none: "Nothing was saved in this browser — you can go straight to the new site.",
unavailable:
"This browser won't let the page read its storage (private mode?). Open the page in the browser you used before.",
download: "Download my data",
step2: "Restore it on the new site",
step2Hint:
"Open Settings › Backup & restore, choose Restore and pick the file — or drop it there. You'll see what's new before anything changes.",
open: "Open ytgenerator.stream",
notice:
"This page stays until 29 November 2026. The desktop and Android apps aren't affected.",
switch: "Tiếng Việt",
profiles: "Profiles ({n})",
presets: "Game presets ({n})",
templates: "Templates ({n})",
history: "History ({n})",
settings: "Settings",
draft: "Editor draft",
},
vi: {
title: "YTDescGen đã chuyển sang ytgenerator.stream",
lead: "Ứng dụng giờ có địa chỉ riêng. Mọi thứ bạn đã lưu ở địa chỉ cũ này — hồ sơ, preset, template, lịch sử, cài đặt — vẫn nằm trong trình duyệt này, hãy mang theo bằng hai bước.",
step1: "Tải dữ liệu của bạn",
searching: "Đang tìm dữ liệu đã lưu…",
found: "Tìm thấy: {list}.",
none: "Trình duyệt này chưa lưu gì — bạn có thể sang thẳng trang mới.",
unavailable:
"Trình duyệt không cho trang đọc bộ nhớ (chế độ ẩn danh?). Hãy mở trang bằng trình duyệt bạn đã dùng trước đây.",
download: "Tải dữ liệu của tôi",
step2: "Khôi phục trên trang mới",
step2Hint:
"Mở Cài đặt › Sao lưu & khôi phục, chọn Khôi phục rồi chọn tệp — hoặc thả tệp vào đó. Bạn sẽ xem trước những gì mới trước khi có thay đổi nào.",
open: "Mở ytgenerator.stream",
notice:
"Trang này tồn tại đến ngày 29/11/2026. Ứng dụng desktop và Android không bị ảnh hưởng.",
switch: "English",
profiles: "Hồ sơ ({n})",
presets: "Preset game ({n})",
templates: "Template ({n})",
history: "Lịch sử ({n})",
settings: "Cài đặt",
draft: "Bản nháp editor",
},
};
var lang = /^vi\b/i.test(navigator.language || "") ? "vi" : "en";
var found = null; // { data, parts } once read
var readFailed = false;
function format(template, values) {
return template.replace(/\{(\w+)\}/g, function (_, name) {
return String(values[name]);
});
}
function readStores() {
var data = {};
var parts = [];
STORES.forEach(function (store) {
var raw = localStorage.getItem(store.key);
if (!raw) return;
var saved;
try {
saved = JSON.parse(raw);
} catch (e) {
return;
}
// Zustand's saved shape: { state, version }.
var state = saved && saved.state ? saved.state : saved;
var version = saved && typeof saved.version === "number" ? saved.version : 0;
if (!state || typeof state !== "object") return;
if (store.list) {
var items = state[store.list];
if (!Array.isArray(items) || items.length === 0) return;
data[store.section] = { version: version, items: items };
parts.push({ section: store.section, n: items.length });
} else {
data[store.section] = { version: version, value: state };
parts.push({ section: store.section, n: 1 });
}
});
return { data: data, parts: parts };
}
function render() {
var text = TEXT[lang];
document.documentElement.lang = lang;
document.title = text.title;
Array.prototype.forEach.call(document.querySelectorAll("[data-i18n]"), function (el) {
var key = el.getAttribute("data-i18n");
if (text[key] && key !== "searching") el.textContent = text[key];
});
var status = document.getElementById("found");
var button = document.getElementById("download");
if (readFailed) {
status.textContent = text.unavailable;
button.disabled = true;
} else if (!found || found.parts.length === 0) {
status.textContent = text.none;
button.disabled = true;
} else {
var list = found.parts.map(function (part) {
return format(text[part.section], { n: part.n });
});
status.textContent = format(text.found, { list: list.join(", ") });
button.disabled = false;
}
}
function download() {
if (!found) return;
var now = new Date();
var envelope = {
_app: "ytdescgen",
_format: 2,
_type: "backup",
_schemaVersion: 1,
_appVersion: "0.38.0",
_exportedAt: now.toISOString(),
_source: "poli0981.github.io/youtube-generator",
data: found.data,
};
var blob = new Blob([JSON.stringify(envelope, null, 2)], { type: "application/json" });
var url = URL.createObjectURL(blob);
var link = document.createElement("a");
var day = now.toISOString().slice(0, 10);
link.href = url;
link.download = "ytdescgen-legacy-backup-" + day + ".json";
document.body.appendChild(link);
link.click();
link.remove();
setTimeout(function () {
URL.revokeObjectURL(url);
}, 1000);
}
document.addEventListener("DOMContentLoaded", function () {
try {
found = readStores();
} catch (e) {
readFailed = true;
}
document.getElementById("download").addEventListener("click", download);
document.getElementById("language").addEventListener("click", function () {
lang = lang === "vi" ? "en" : "vi";
render();
});
render();
});
})();
-55
View File
@@ -1,55 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex" />
<meta name="color-scheme" content="dark light" />
<title>YTDescGen has moved to ytgenerator.stream</title>
<meta
name="description"
content="YTDescGen now lives at ytgenerator.stream. Download the data you saved here and restore it there."
/>
<link rel="canonical" href="https://ytgenerator.stream/" />
<link rel="stylesheet" href="/youtube-generator/style.css" />
<script src="/youtube-generator/app.js" defer></script>
</head>
<body>
<main class="card">
<p class="brand">YTDescGen</p>
<h1 data-i18n="title">YTDescGen has moved to ytgenerator.stream</h1>
<p data-i18n="lead">
The app now lives at its own address. Everything you saved on this old address — profiles,
presets, templates, history, settings — stays in this browser, so bring it along in two
steps.
</p>
<ol class="steps">
<li>
<strong data-i18n="step1">Download your data</strong>
<p id="found" class="muted" data-i18n="searching">Looking for saved data…</p>
<button id="download" type="button" disabled data-i18n="download">
Download my data
</button>
</li>
<li>
<strong data-i18n="step2">Restore it on the new site</strong>
<p class="muted" data-i18n="step2Hint">
Open Settings › Backup &amp; restore, choose Restore and pick the file — or drop it
there. You'll see what's new before anything changes.
</p>
<a class="button primary" href="https://ytgenerator.stream/settings" data-i18n="open">
Open ytgenerator.stream
</a>
</li>
</ol>
<p class="muted small" data-i18n="notice">
This page stays until 29 November 2026. The desktop and Android apps aren't affected.
</p>
<p class="small">
<button id="language" type="button" class="link" data-i18n="switch">Tiếng Việt</button>
</p>
</main>
</body>
</html>
-122
View File
@@ -1,122 +0,0 @@
:root {
color-scheme: dark light;
--bg: #0b0b12;
--surface: #151522;
--border: #2a2a3d;
--text: #ececf4;
--muted: #a0a0b8;
--accent: #7c6cf6;
--accent-text: #ffffff;
}
@media (prefers-color-scheme: light) {
:root {
--bg: #f5f5fa;
--surface: #ffffff;
--border: #dcdce8;
--text: #16161f;
--muted: #5c5c70;
--accent: #5b4de0;
}
}
* {
box-sizing: border-box;
}
body {
margin: 0;
min-height: 100dvh;
display: grid;
place-items: center;
padding: 24px 16px;
background: var(--bg);
color: var(--text);
font:
15px/1.6 system-ui,
-apple-system,
"Segoe UI",
Roboto,
sans-serif;
}
.card {
width: 100%;
max-width: 34rem;
padding: 28px;
border: 1px solid var(--border);
border-radius: 20px;
background: var(--surface);
}
.brand {
margin: 0 0 8px;
color: var(--accent);
font-weight: 700;
letter-spacing: 0.02em;
}
h1 {
margin: 0 0 12px;
font-size: 1.45rem;
line-height: 1.3;
}
.steps {
margin: 20px 0;
padding-left: 1.2rem;
}
.steps li {
margin-bottom: 18px;
}
.steps p {
margin: 4px 0 10px;
}
.muted {
color: var(--muted);
}
.small {
font-size: 0.85rem;
}
button,
.button {
display: inline-block;
padding: 9px 16px;
border: 1px solid var(--border);
border-radius: 10px;
background: transparent;
color: var(--text);
font: inherit;
font-weight: 600;
text-decoration: none;
cursor: pointer;
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.primary,
#download:not(:disabled) {
border-color: var(--accent);
background: var(--accent);
color: var(--accent-text);
}
.link {
padding: 0;
border: 0;
color: var(--accent);
font-weight: 500;
}
:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
+1355 -609
View File
File diff suppressed because it is too large. Load diff
+22 -22
View File
@@ -1,6 +1,6 @@
{
"name": "yt-desc-gen",
"version": "1.5.2",
"version": "1.7.0",
"private": true,
"license": "Apache-2.0",
"type": "module",
@@ -40,50 +40,50 @@
"dependencies": {
"@fontsource-variable/inter": "^5.3.0",
"@fontsource-variable/jetbrains-mono": "^5.3.0",
"@tauri-apps/api": "^2.12.4",
"@tauri-apps/plugin-opener": "^2.7.2",
"@tauri-apps/api": "^2.12.5",
"@tauri-apps/plugin-opener": "^2.7.3",
"clsx": "^2.1.1",
"cmdk": "^1.1.1",
"i18next": "~26.6.0",
"i18next-resources-to-backend": "^1.2.4",
"lucide-react": "^1.66.0",
"i18next-resources-to-backend": "^1.3.0",
"lucide-react": "^1.77.0",
"motion": "^13.5.1",
"radix-ui": "^1.8.1",
"react": "^19.3.1",
"react-dom": "^19.3.1",
"react-i18next": "^17.1.11",
"react-router-dom": "^7.18.5",
"simple-icons": "^16.36.0",
"react-i18next": "^17.1.13",
"react-router-dom": "^7.18.6",
"simple-icons": "^16.38.1",
"sonner": "^2.0.8",
"zustand": "^5.0.16"
"zustand": "^5.1.0"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@resvg/resvg-js": "2.6.2",
"@tailwindcss/postcss": "^4.3.4",
"@tauri-apps/cli": "2.12.4",
"@tailwindcss/postcss": "^4.3.5",
"@tauri-apps/cli": "2.12.6",
"@testing-library/jest-dom": "^7.0.1",
"@testing-library/react": "^16.3.3",
"@types/node": "^26.6.6",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@typescript/native": "npm:typescript@^7.0.2",
"@vitejs/plugin-react": "^6.2.1",
"@vitejs/plugin-react": "^6.3.0",
"@vitest/coverage-v8": "^4.1.12",
"autoprefixer": "^10.6.2",
"eslint": "^10.14.0",
"autoprefixer": "^10.7.0",
"eslint": "^10.15.0",
"eslint-plugin-react-hooks": "^7.1.1",
"knip": "^6.44.1",
"marked": "18.1.3",
"postcss": "^8.5.32",
"prettier": "^3.9.10",
"knip": "^6.47.0",
"marked": "18.2.1",
"postcss": "^8.5.33",
"prettier": "^3.10.1",
"prettier-plugin-tailwindcss": "^0.8.1",
"tailwindcss": "^4.3.3",
"tailwindcss": "^4.3.5",
"tsx": "^4.23.15",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"typescript-eslint": "^8.72.1",
"vite": "^8.3.5",
"typescript-eslint": "^8.73.0",
"vite": "^8.3.8",
"vitest": "^4.1.12",
"wrangler": "4.156.2"
"wrangler": "4.166.0"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 KiB

After

Width:  |  Height:  |  Size: 177 KiB

+2 -1
View File
@@ -2,6 +2,7 @@
// first paint, so a light-theme user never sees the dark default flash. A
// separate file rather than an inline <script> so the Content-Security-Policy
// needs no exception.
/* global document, localStorage */
(function () {
var root = document.documentElement;
var theme = "dark";
@@ -14,7 +15,7 @@
// Unhealed raw storage, so only a real `true` counts.
if (state && state.hideScrollbars === true) hideScrollbars = true;
if (state && typeof state.appLanguage === "string") lang = state.appLanguage;
} catch (e) {
} catch {
/* storage blocked or corrupt: keep the defaults */
}
root.classList.toggle("dark", theme === "dark");
+58
View File
@@ -0,0 +1,58 @@
# Qodana for JavaScript / TypeScript: the web app (src/), the Worker, the
# build plugins, scripts, tests and workflows. Run by
# .gitea/workflows/qodana.yml (job `typescript`: the ops repo's
# reusable-qodana.yml, native mode), reported to the Qodana Cloud project
# yt-ts-js (secret QODANA_TOKEN_TS_JS).
version: "1.0"
linter: qodana-js
profile:
name: qodana.recommended
# The quality gate: any problem fails the job.
failureConditions:
severityThresholds:
any: 0
exclude:
- name: All
paths:
# The Tauri shell is the Rust project (src-tauri/qodana.yaml).
- src-tauri
# Build output, caches and reports.
- dist
- coverage
- node_modules
- .wrangler
# `${{ secrets.DISCORD_RELEASE_PIPELINE_WEBHOOK }}` is a reference to a
# repository secret, not a secret: the "discord-client-secret" rule only
# sees the word.
- name: HardcodedPasswords
paths:
- .gitea/workflows/notify-release-pipeline.yml
# `\]` and `\}` outside a character class stay escaped: they read as the
# literal brackets they are, and the patterns stay valid if they ever get
# the `u` or `v` flag, where a lone `]` or `}` is a syntax error. ESLint's
# no-useless-escape accepts them too.
- name: RegExpRedundantEscape
# `@i18n/index` is the form tsconfig.json's `@i18n/*` path resolves. The
# bare `@i18n` this suggests resolves only through Vite's alias, so tsc
# would no longer find the module.
- name: ES6PreferShortImport
# The three react-hooks warnings eslint.config.js documents (state synced
# from i18next, from a store number, and a useMemo the React Compiler
# can't keep): each needs a restructure, and the config keeps them as
# warnings on purpose. ESLint runs in CI's `check` job as well.
- name: Eslint
paths:
- src/hooks/use-languages-ready.ts
- src/components/editor/PlaytestEditor.tsx
- src/components/editor/StoreLinkEditor.tsx
# The legacy draft fields `spoilerWarning`, `matureWarning` and
# `endingsShown` are `@deprecated` so new code doesn't use them; these
# files carry them on purpose, to read and migrate drafts, presets and
# templates saved by older versions.
- name: JSDeprecatedSymbols
paths:
- src/config/defaults.ts
- src/store/editor-store.ts
- src/hooks/use-current-generator-input.ts
- src/engine/description-builder.ts
- src/utils/library-apply.ts
+54
View File
@@ -0,0 +1,54 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>poli0981/renovate-config"],
"packageRules": [
{
"description": "Maintenance mode: a major lands only in a planned release with its migration (Vitest 5, i18next 27, …). It waits on the Dependency Dashboard until it is ticked there; minor and patch updates come in the preset's grouped pull request.",
"matchUpdateTypes": ["major"],
"dependencyDashboardApproval": true
},
{
"description": "Tauri, its JS packages and its Rust crates in ONE pull request: the tauri CLI refuses to build when the @tauri-apps/* npm packages and the tauri crates differ in major.minor (`npm run check:tauri` catches a one-sided bump). Outside the preset's all-non-major group, so it never waits behind an unrelated bump.",
"matchManagers": ["npm", "cargo"],
"matchPackageNames": ["@tauri-apps/**", "tauri", "tauri-build", "tauri-plugin-*"],
"groupName": "Tauri (JS + Rust)",
"groupSlug": "tauri"
},
{
"description": "@vitest/coverage-v8 needs vitest's exact version.",
"matchManagers": ["npm"],
"matchPackageNames": ["vitest", "@vitest/**"],
"groupName": "Vitest",
"groupSlug": "vitest"
},
{
"description": "i18next stays on 26.6.x: 26.7 adds ~1.9 KB gzip of debug-mode warnings to the initial load, over the 280 KB budget (`npm run check:bundle`). Lift this with the planned i18next 27 migration (docs/TECH-SPEC.md).",
"matchManagers": ["npm"],
"matchPackageNames": ["i18next"],
"allowedVersions": "<26.7.0"
},
{
"description": "TypeScript is two npm aliases: `typescript` is the 6.0 API package typescript-eslint loads (@typescript/typescript6), `@typescript/native` is TypeScript 7, whose tsc builds the app. Their majors are taken by hand, never by a bot; @types/node follows .node-version, not the newest Node.",
"matchManagers": ["npm"],
"matchDepNames": ["typescript", "@typescript/native", "@types/node"],
"matchUpdateTypes": ["major"],
"enabled": false
},
{
"description": "Runtimes are bumped by hand, every copy at once: Node is .node-version (+ engines and @types/node); the Android job's JDK (setup-java in release.yml) moves with Tauri's Gradle template, and only a release build would show a break.",
"matchDepNames": ["node", "java-jdk"],
"enabled": false
},
{
"description": "glib 0.18 comes with Tauri's gtk-rs 0.18 Linux stack; its fix (0.20) is a major the tree cannot take until Tauri moves (src-tauri/deny.toml, src-tauri/osv-scanner.toml).",
"matchManagers": ["cargo"],
"matchPackageNames": ["glib"],
"enabled": false
},
{
"description": "src-tauri/gen/android is Tauri's generated Gradle project: the Android Gradle Plugin, Kotlin and the wrapper move with Tauri's template, not on their own. Kotlin 2.2+ refuses the template's `kotlinOptions {}` block, and only a release build would show it (free-steam-games-list's held update).",
"matchManagers": ["gradle", "gradle-wrapper"],
"enabled": false
}
]
}
+1 -1
View File
@@ -4,7 +4,7 @@
*
* The tauri CLI refuses to build a release when they differ ("Found version
* mismatched Tauri packages"), but nothing in CI runs `tauri build` — so a
* Dependabot bump of one side merges green and the break only shows up after
* bot bump of one side merges green and the break only shows up after
* a release tag. This runs in CI instead. Run via `npm run check:tauri`.
*/
import { readFileSync } from "fs";
+1 -1
View File
@@ -61,7 +61,7 @@ export function headCommitYear(): number {
const options = { cwd: ROOT, encoding: "utf8" } as const;
// A dev/CI script: `git` is whichever one the developer's PATH or the CI
// image provides, by design — there is no fixed install path to pin.
const iso = execFileSync("git", ["log", "-1", "--format=%cI"], options); // NOSONAR
const iso = execFileSync("git", ["log", "-1", "--format=%cI"], options);
const year = Number(iso.trim().slice(0, 4));
if (Number.isInteger(year) && year >= 2000) return year;
} catch {
-50
View File
@@ -1,50 +0,0 @@
# SonarCloud, CI-based analysis. Automatic Analysis is off in the project's
# settings: the scanner runs in the `sonarcloud` job of
# .github/workflows/ci.yml, on every PR and every push to main, and reads this
# file. The version (package.json) is passed on the command line there.
sonar.organization=poli0981
sonar.projectKey=poli0981_youtube-generator
sonar.sourceEncoding=UTF-8
# Main code is the whole repository: the app, the Worker, the build plugins,
# the scripts, the Tauri shell (Rust, and the Android project, which is
# committed and edited), the migration page and the workflows. The tests are
# analysed as tests: the same files Vitest runs (vitest.config.ts) plus
# tests/helpers. Files git ignores are left out on their own; binary files
# (the icons, the Gradle wrapper's jar) are left out here — there is nothing
# in them to analyse, and the scanner warns about each one it reads as text.
sonar.sources=.
sonar.exclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx,**/*.png,**/*.ico,**/*.icns,**/*.jar
sonar.tests=.
sonar.test.inclusions=tests/**,src/**/*.test.ts,src/**/*.test.tsx
# Coverage is Vitest's LCOV report (`npm run test:coverage` in the `check`
# job), which measures the logic layers: src/engine, src/config, src/store,
# src/utils, worker/ and build-plugins/. SonarCloud would count a file missing
# from the report as 0 % covered, so everything else is excluded here. Keep
# this list in step with `coverage.include` in vitest.config.ts.
# - No test renders a component or page (there is no DOM environment); the
# hooks and i18n are React and i18next glue, checked in the running app.
# - worker/index.ts only wires the router to the Workers runtime.
# - scripts/ and the config files are tooling; the migration page and
# public/theme-init.js are static pages' scripts.
# - The Rust and Android code have no coverage tooling.
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.coverage.exclusions=\
src/App.tsx,\
src/main.tsx,\
src/components/**,\
src/pages/**,\
src/hooks/**,\
src/i18n/**,\
worker/index.ts,\
scripts/**,\
*.config.js,\
*.config.ts,\
migration-page/**,\
public/**,\
src-tauri/**
# The scan waits for the quality gate and fails the job when it fails, so the
# result is in CI as well as in SonarCloud's own check on the PR.
sonar.qualitygate.wait=true
+324 -81
View File
@@ -43,9 +43,9 @@ dependencies = [
[[package]]
name = "anyhow"
version = "1.0.102"
version = "1.0.103"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"
[[package]]
name = "async-broadcast"
@@ -73,9 +73,9 @@ dependencies = [
[[package]]
name = "async-executor"
version = "1.14.0"
version = "1.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a"
checksum = "f426a31126c735126297bc5ea7a521263c9faff4f63ca415267ee625651c4f37"
dependencies = [
"async-task",
"concurrent-queue",
@@ -237,7 +237,16 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
dependencies = [
"bit-vec",
"bit-vec 0.8.0",
]
[[package]]
name = "bit-set"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "56d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c"
dependencies = [
"bit-vec 0.10.2",
]
[[package]]
@@ -246,6 +255,12 @@ version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
[[package]]
name = "bit-vec"
version = "0.10.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72503af1e72be411d74ca45cd6b309878fcb35354e252fc2a3a8bda3a97082a0"
[[package]]
name = "bitflags"
version = "1.3.2"
@@ -270,6 +285,15 @@ dependencies = [
"generic-array",
]
[[package]]
name = "block-buffer"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
dependencies = [
"hybrid-array",
]
[[package]]
name = "block2"
version = "0.6.2"
@@ -492,10 +516,16 @@ dependencies = [
]
[[package]]
name = "cookie"
version = "0.18.1"
name = "const-oid"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"
checksum = "be95d4a884358a21a199689323c29e9256b4a1b315e22f183d155422041d3a9a"
[[package]]
name = "cookie"
version = "0.18.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d55f2d6c30eeec7d5c6f98bd4395d4abb1895629eab97ee6522d340623615f8a"
dependencies = [
"time",
"version_check",
@@ -550,6 +580,15 @@ dependencies = [
"libc",
]
[[package]]
name = "cpufeatures"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
dependencies = [
"libc",
]
[[package]]
name = "crc32fast"
version = "1.5.0"
@@ -584,6 +623,15 @@ dependencies = [
"typenum",
]
[[package]]
name = "crypto-common"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
dependencies = [
"hybrid-array",
]
[[package]]
name = "cssparser"
version = "0.37.0"
@@ -593,7 +641,20 @@ dependencies = [
"cssparser-macros",
"dtoa-short",
"itoa",
"phf",
"phf 0.13.1",
"smallvec",
]
[[package]]
name = "cssparser"
version = "0.38.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "11119743ad110e8c1bdccd930d7f5c30c99e5fc76a7b63ec9807e84eef0c5f59"
dependencies = [
"cssparser-macros",
"dtoa-short",
"itoa",
"phf 0.14.0",
"smallvec",
]
@@ -695,8 +756,19 @@ version = "0.10.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
dependencies = [
"block-buffer",
"crypto-common",
"block-buffer 0.10.4",
"crypto-common 0.1.7",
]
[[package]]
name = "digest"
version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
dependencies = [
"block-buffer 0.12.1",
"const-oid",
"crypto-common 0.2.2",
]
[[package]]
@@ -717,7 +789,7 @@ dependencies = [
"libc",
"option-ext",
"redox_users",
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -772,12 +844,27 @@ version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fac5fca71e65e94cc718a6e2af65d6e0f9c6027751c2aa562fbb5087fda639bc"
dependencies = [
"bit-set",
"cssparser",
"bit-set 0.8.0",
"cssparser 0.37.0",
"foldhash 0.2.0",
"html5ever",
"html5ever 0.39.0",
"precomputed-hash",
"selectors",
"selectors 0.38.0",
"tendril",
]
[[package]]
name = "dom_query"
version = "0.29.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "498c698ac51127148a3984450e51fca7f01805a91d7a1f7a24af0a5f761e3385"
dependencies = [
"bit-set 0.11.1",
"cssparser 0.38.0",
"foldhash 0.2.0",
"html5ever 0.40.1",
"precomputed-hash",
"selectors 0.41.0",
"tendril",
]
@@ -888,16 +975,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
dependencies = [
"libc",
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
name = "event-listener"
version = "5.4.1"
version = "5.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab"
checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2"
dependencies = [
"concurrent-queue",
"parking",
"pin-project-lite",
]
@@ -1000,9 +1086,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
[[package]]
name = "form_urlencoded"
version = "1.2.2"
version = "1.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e"
dependencies = [
"percent-encoding",
]
@@ -1436,7 +1522,18 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8"
dependencies = [
"log",
"markup5ever",
"markup5ever 0.39.0",
]
[[package]]
name = "html5ever"
version = "0.40.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "456a1a377e608e555d22ddab27ac0114bc7a7b4199078108e34c2aeae6c9b130"
dependencies = [
"log",
"markup5ever 0.40.0",
"memchr",
]
[[package]]
@@ -1478,6 +1575,15 @@ version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
[[package]]
name = "hybrid-array"
version = "0.4.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17"
dependencies = [
"typenum",
]
[[package]]
name = "hyper"
version = "1.9.0"
@@ -1953,7 +2059,18 @@ checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de"
dependencies = [
"log",
"tendril",
"web_atoms",
"web_atoms 0.2.3",
]
[[package]]
name = "markup5ever"
version = "0.40.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ab3dc68ac4a0f5719e560136778c1ee716e296030d75dbd4484e37e39e3a842"
dependencies = [
"log",
"tendril",
"web_atoms 0.3.0",
]
[[package]]
@@ -2395,8 +2512,19 @@ version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
dependencies = [
"phf_macros",
"phf_shared",
"phf_macros 0.13.1",
"phf_shared 0.13.1",
"serde",
]
[[package]]
name = "phf"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6"
dependencies = [
"phf_macros 0.14.0",
"phf_shared 0.14.0",
"serde",
]
@@ -2406,8 +2534,18 @@ version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
dependencies = [
"phf_generator",
"phf_shared",
"phf_generator 0.13.1",
"phf_shared 0.13.1",
]
[[package]]
name = "phf_codegen"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41b585a510fb76fdebead6897982ef2a03a21d8e6cbcca904999742a4afc6ffe"
dependencies = [
"phf_generator 0.14.0",
"phf_shared 0.14.0",
]
[[package]]
@@ -2417,7 +2555,17 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
dependencies = [
"fastrand",
"phf_shared",
"phf_shared 0.13.1",
]
[[package]]
name = "phf_generator"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100"
dependencies = [
"fastrand",
"phf_shared 0.14.0",
]
[[package]]
@@ -2426,8 +2574,21 @@ version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef"
dependencies = [
"phf_generator",
"phf_shared",
"phf_generator 0.13.1",
"phf_shared 0.13.1",
"proc-macro2",
"quote",
"syn 2.0.117",
]
[[package]]
name = "phf_macros"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085"
dependencies = [
"phf_generator 0.14.0",
"phf_shared 0.14.0",
"proc-macro2",
"quote",
"syn 2.0.117",
@@ -2442,6 +2603,15 @@ dependencies = [
"siphasher",
]
[[package]]
name = "phf_shared"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89"
dependencies = [
"siphasher",
]
[[package]]
name = "pin-project-lite"
version = "0.2.17"
@@ -2780,15 +2950,15 @@ dependencies = [
[[package]]
name = "rustix"
version = "1.1.4"
version = "1.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
dependencies = [
"bitflags 2.11.0",
"errno",
"libc",
"linux-raw-sys",
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -2870,15 +3040,32 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d"
dependencies = [
"bitflags 2.11.0",
"cssparser",
"cssparser 0.37.0",
"derive_more",
"log",
"new_debug_unreachable",
"phf",
"phf_codegen",
"phf 0.13.1",
"phf_codegen 0.13.1",
"precomputed-hash",
"rustc-hash",
"servo_arc",
"servo_arc 0.4.3",
"smallvec",
]
[[package]]
name = "selectors"
version = "0.41.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8322aebea94a6cc288ff884e8a49bdbceef60206c400c6c46d22e62fc4fd91a6"
dependencies = [
"bitflags 2.11.0",
"cssparser 0.38.0",
"derive_more",
"log",
"new_debug_unreachable",
"precomputed-hash",
"rustc-hash",
"servo_arc 0.5.0",
"smallvec",
]
@@ -3050,6 +3237,15 @@ dependencies = [
"stable_deref_trait",
]
[[package]]
name = "servo_arc"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b4eceb519ec34d8290aaf6e46f435102f2bfa63f22b05a144fb16ab266d3b198"
dependencies = [
"stable_deref_trait",
]
[[package]]
name = "sha2"
version = "0.10.9"
@@ -3057,8 +3253,19 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
dependencies = [
"cfg-if",
"cpufeatures",
"digest",
"cpufeatures 0.2.17",
"digest 0.10.7",
]
[[package]]
name = "sha2"
version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19"
dependencies = [
"cfg-if",
"cpufeatures 0.3.1",
"digest 0.11.3",
]
[[package]]
@@ -3179,7 +3386,19 @@ checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
dependencies = [
"new_debug_unreachable",
"parking_lot",
"phf_shared",
"phf_shared 0.13.1",
"precomputed-hash",
]
[[package]]
name = "string_cache"
version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffa8a5dbe8b3f0bbe29d4c3225daafaeead63afdc1b65fc4c01a1384166038e6"
dependencies = [
"new_debug_unreachable",
"parking_lot",
"phf_shared 0.14.0",
"precomputed-hash",
]
@@ -3189,8 +3408,20 @@ version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
dependencies = [
"phf_generator",
"phf_shared",
"phf_generator 0.13.1",
"phf_shared 0.13.1",
"proc-macro2",
"quote",
]
[[package]]
name = "string_cache_codegen"
version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "928dcdf75e47626b3617a976ec205d9f057584c371c1f23b782129268d0e6edc"
dependencies = [
"phf_generator 0.14.0",
"phf_shared 0.14.0",
"proc-macro2",
"quote",
]
@@ -3268,9 +3499,9 @@ dependencies = [
[[package]]
name = "tao"
version = "0.37.2"
version = "0.37.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5777b06fe6435126ae8d816eba269e050e1e10d302cf5461e9c49eccabc3548"
checksum = "02ca9c0ce2a2fd70dc4ef4449ca5e8d30e6fa0db111cd8008594602a06a68371"
dependencies = [
"bitflags 2.11.0",
"block2",
@@ -3325,9 +3556,9 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
[[package]]
name = "tauri"
version = "2.12.5"
version = "2.12.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5fb0244332cfb9cee7e2a568bf5da29a36ed8fdbd717f6f47a66b6b7b358c072"
checksum = "30fbfbb9dc9a2697b0e96d909ddc295fb18d2d82a58ed542ab8d9eba2edbe6da"
dependencies = [
"anyhow",
"bytes",
@@ -3376,9 +3607,9 @@ dependencies = [
[[package]]
name = "tauri-build"
version = "2.7.4"
version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adddb0e648752aaac5da9c3c3c6a68e1e87cab55e3b757b18a9441ef8c3ac614"
checksum = "73d80784e874fa117b9b00a6680cf2f9b8a51bbd14406bea980cf8f328b00646"
dependencies = [
"anyhow",
"cargo_toml",
@@ -3399,9 +3630,9 @@ dependencies = [
[[package]]
name = "tauri-codegen"
version = "2.7.4"
version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb37631cf71dab5e8ab55e1bdd701e18a52653d90b78e71d0e5598b1e0a61316"
checksum = "c5dc6caab4da5646f57648f39b794bae118f0dd4a4305eeb8c892966171f4852"
dependencies = [
"base64 0.23.1",
"brotli",
@@ -3414,7 +3645,7 @@ dependencies = [
"semver",
"serde",
"serde_json",
"sha2",
"sha2 0.11.1",
"syn 2.0.117",
"tauri-utils",
"thiserror 2.0.18",
@@ -3426,9 +3657,9 @@ dependencies = [
[[package]]
name = "tauri-macros"
version = "2.7.4"
version = "2.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0cc38db58854c10fb5f91a887ed8bf82d3239bb92b5d8db86eda09e96d9963d1"
checksum = "2831c5da8603a96b1efc0b650c2cb6decc69b6cda257d815fe70c7f5be53818e"
dependencies = [
"heck 0.5.0",
"proc-macro2",
@@ -3498,9 +3729,9 @@ dependencies = [
[[package]]
name = "tauri-plugin-opener"
version = "2.7.2"
version = "2.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53810be1b4fed22bb6ac3f4cab5a2b80d9391d1af436bda145607532bc0bb219"
checksum = "54592c6718b42ab198bf11bda6a428a3553ca2f2f8e506df56f6a063ec328331"
dependencies = [
"dunce",
"glob",
@@ -3536,9 +3767,9 @@ dependencies = [
[[package]]
name = "tauri-runtime"
version = "2.12.2"
version = "2.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7c55766d99cea69055904d1735b93c2049302b2e09effd462120deb5581d78e9"
checksum = "60c2b14bd5265b63993cdc34ad526fb836e0fd0cf64a4634a895db0784844d5e"
dependencies = [
"cookie",
"dpi",
@@ -3561,9 +3792,9 @@ dependencies = [
[[package]]
name = "tauri-runtime-wry"
version = "2.12.3"
version = "2.12.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e1aa9d8b7a120f879f44fdc1053f7b7dbf416bf0bbc6a72b714dec46b782b52f"
checksum = "b8c14a025255cc9816d401635035075b09b6cc9973b7b8fd7b8fcb8753f30f92"
dependencies = [
"gtk",
"http",
@@ -3586,15 +3817,15 @@ dependencies = [
[[package]]
name = "tauri-utils"
version = "2.10.2"
version = "2.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "362ab21cd4cc713f2a02b1a9b5688198b1541cfb6907c4281e9190e0f0ef4aa3"
checksum = "28d1d33d4453c5df0bf1672dbc7ada69d8ed74f56a4316d964a4aa73d4ecd3ad"
dependencies = [
"anyhow",
"brotli",
"cargo_metadata",
"ctor",
"dom_query",
"dom_query 0.28.0",
"dunce",
"glob",
"http",
@@ -3602,7 +3833,7 @@ dependencies = [
"json-patch",
"log",
"memchr",
"phf",
"phf 0.13.1",
"plist",
"proc-macro2",
"quote",
@@ -3643,7 +3874,7 @@ dependencies = [
"getrandom 0.4.2",
"once_cell",
"rustix",
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -3754,9 +3985,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
[[package]]
name = "tokio"
version = "1.51.0"
version = "1.51.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2bd1c4c0fc4a7ab90fc15ef6daaa3ec3b893f004f915f2392557ed23237820cd"
checksum = "a13e32eacd0222f9658be2ccbd83b718bfd9bfb0d54b5921913c184cb86124a5"
dependencies = [
"bytes",
"libc",
@@ -4011,9 +4242,9 @@ checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
[[package]]
name = "typenum"
version = "1.19.0"
version = "1.20.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
[[package]]
name = "uds_windows"
@@ -4046,9 +4277,9 @@ checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
[[package]]
name = "url"
version = "2.5.8"
version = "2.5.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a"
dependencies = [
"form_urlencoded",
"idna",
@@ -4296,10 +4527,22 @@ version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "57a9779e9f04d2ac1ce317aee707aa2f6b773afba7b931222bff6983843b1576"
dependencies = [
"phf",
"phf_codegen",
"string_cache",
"string_cache_codegen",
"phf 0.13.1",
"phf_codegen 0.13.1",
"string_cache 0.9.0",
"string_cache_codegen 0.6.1",
]
[[package]]
name = "web_atoms"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7572660c8890448ba236b7376f27e389c6a7e1c70195622faced601f855c0ada"
dependencies = [
"phf 0.14.0",
"phf_codegen 0.14.0",
"string_cache 0.11.0",
"string_cache_codegen 0.11.2",
]
[[package]]
@@ -4402,7 +4645,7 @@ version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
dependencies = [
"windows-sys 0.61.2",
"windows-sys 0.59.0",
]
[[package]]
@@ -4827,16 +5070,16 @@ checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
[[package]]
name = "wry"
version = "0.57.1"
version = "0.57.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "759c50ddad0ef9913bb5496cb9d509a50433a3b78cb0238d61105526589cf0e9"
checksum = "ceb43f824178e8110e3181bfd478359c43b041452a9560d321bd8d121e468f86"
dependencies = [
"base64 0.23.1",
"block2",
"cookie",
"crossbeam-channel",
"dirs",
"dom_query",
"dom_query 0.29.0",
"dpi",
"dunce",
"gdkx11",
@@ -4854,7 +5097,7 @@ dependencies = [
"objc2-web-kit",
"percent-encoding",
"raw-window-handle",
"sha2",
"sha2 0.10.9",
"soup3",
"tao-macros",
"thiserror 2.0.18",
@@ -4914,7 +5157,7 @@ dependencies = [
[[package]]
name = "yt-desc-gen"
version = "1.5.2"
version = "1.7.0"
dependencies = [
"serde",
"tauri",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "yt-desc-gen"
version = "1.5.2"
version = "1.7.0"
description = "YouTube Gameplay Description Generator"
authors = ["poli0981"]
edition = "2021"
+7 -2
View File
@@ -1,6 +1,7 @@
# cargo-deny configuration for the Tauri shell. Run by
# .github/workflows/rust.yml (on changes under src-tauri/, and weekly for new
# RustSec advisories): `cargo deny check advisories licenses sources`.
# .gitea/workflows/security.yml through the ops repo's security.yml (job
# `rust`: `cargo deny --all-features check`), on every push and pull request
# and weekly for new RustSec advisories.
[graph]
all-features = false
@@ -12,6 +13,10 @@ all-features = false
# on, and would otherwise keep this job permanently red. Vulnerabilities
# always fail, whatever the depth.
unmaintained = "workspace"
# Transitive unsound / unmaintained advisories with no fix yet (glib 0.18, the
# zbus crates, chrono — all under Tauri's Linux stack) stay out of this check
# by the scopes above; osv-scanner, which reports them, lists each with its
# reason and an expiry date in src-tauri/osv-scanner.toml.
[licenses]
confidence-threshold = 0.9
+40
View File
@@ -0,0 +1,40 @@
# OSV-Scanner exceptions for Cargo.lock (security.yml → the ops repo's
# security.yml, `deps` job): the scanner reads this file because it sits next
# to the lockfile.
#
# Only advisories that NO release of our dependency chain fixes yet — a fixed
# one is taken (Cargo.lock), not listed here. Every entry expires, so the
# weekly scan turns red again and someone looks. cargo-deny doesn't need them
# (deny.toml scopes unsound / unmaintained to direct dependencies). Reviewed
# 2026-11-25 with Tauri 2.12 (the same Linux stack as free-steam-games-list
# and free-games-itchio-list).
[[IgnoredVulns]]
id = "GHSA-wrw7-89jp-8q8g"
effectiveUntil = 2027-03-01
reason = "glib 0.18 VariantStrIter unsoundness. Linux only, via gtk 0.18 under tao/wry/webkit2gtk; the shell never iterates GVariant strings. Fixed in glib 0.20, which Tauri 2's Linux stack does not use yet."
[[IgnoredVulns]]
id = "RUSTSEC-2024-0370"
effectiveUntil = 2027-03-01
reason = "proc-macro-error is unmaintained. Build-time only (a proc-macro of the gtk 0.18 macros); nothing of it ships."
[[IgnoredVulns]]
id = "RUSTSEC-2026-0370"
effectiveUntil = 2027-03-01
reason = "zvariant (zbus, Linux D-Bus via Tauri's plugins): no release of the dependants takes the fix yet."
[[IgnoredVulns]]
id = "RUSTSEC-2026-0371"
effectiveUntil = 2027-03-01
reason = "zbus_names: as zvariant."
[[IgnoredVulns]]
id = "RUSTSEC-2026-0372"
effectiveUntil = 2027-03-01
reason = "zvariant_derive: as zvariant; a derive macro, build-time."
[[IgnoredVulns]]
id = "RUSTSEC-2026-0543"
effectiveUntil = 2027-03-01
reason = "chrono is unmaintained (informational, no fixed release). Pulled in by Tauri's dependencies; no unsound API reported."
+58
View File
@@ -0,0 +1,58 @@
# Qodana for Rust (Early Access): the Tauri 2 shell of the desktop and
# Android apps. Run by .gitea/workflows/qodana.yml (job `rust`: the ops repo's
# reusable-qodana.yml, Docker Desktop on the maintainer's PC), reported to the
# Qodana Cloud project yt-rust (secret QODANA_TOKEN_RUST).
version: "1.0"
linter: qodana-rust
profile:
name: qodana.recommended
# The quality gate: any problem fails the job.
failureConditions:
severityThresholds:
any: 0
# The linter evaluates build scripts and expands macros with `cargo check`,
# and its image has neither a C toolchain nor the libraries Tauri links
# against (the same packages rust.yml installs). Needs root in the container:
# the workflow passes `-u root`.
#
# The image is a Docker Hardened Image: its libraries are installed as
# `<v>+dhi0`, which sorts above the `<v>+deb13u0+dhi0` its own repository
# (dhi.io) ships, so every -dev package reads as a downgrade and apt stops
# ("held broken packages"). Pinning dhi.io and allowing downgrades lets the
# install through (found on free-steam-games-list, ops migration notes).
bootstrap: |
printf 'Package: *\nPin: origin dhi.io\nPin-Priority: 1001\n' > /etc/apt/preferences.d/dhi
apt-get update -qq
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --allow-downgrades --no-install-recommends build-essential pkg-config libssl-dev libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev
# Opening the project (crates, build scripts, macro expansion) takes longer
# than the linter's default 10 minutes in Docker Desktop on the runner PC on a
# cold cache ("failed to configure the project: timeout reached").
properties:
qd.rust.configuration.timeout.minutes: "25"
exclude:
- name: All
paths:
# Cargo's build output, and the Android project `tauri android init`
# generated (Kotlin and Gradle, not Rust).
- target
- gen
# tauri::generate_handler! needs each command's module path
# (`storage::backup_list`): the #[tauri::command] macro puts a hidden
# helper next to the function, and the handler finds it through that
# path. Without the prefix the crate no longer compiles.
- name: RsUnnecessaryQualifications
paths:
- src/lib.rs
# The linter's own type and borrow checker, which re-implement rustc's.
# rustc is the checker of record: rust.yml builds the crate and runs clippy
# with -D warnings, so a real error of these kinds cannot merge. The
# 2026.3 Early Access linter reports errors rustc does not have — its
# first run on Gitea (2026-11-25) found 9, all false: `20 * 1024 * 1024`
# in a `u64` const read as a `Duration` (E0308, file_dialog.rs and
# storage.rs), `file.metadata()` then `file.take()` read as a use after
# move (E0382), a `usize` in a test read as a toml_parser `Span`, plus the
# unresolved paths of what tauri::generate_context!() and the
# #[tauri::command] macros expand to.
- name: RsTypeCheck
- name: RsBorrowChecker
- name: RsUnresolvedPath
+14 -18
View File
@@ -17,6 +17,17 @@ use tauri::{
mod file_dialog;
mod storage;
/// Bring the main window back: show it, restore it if minimized and focus
/// it. Used by a second launch, the tray menu's "Show" and a tray click.
#[cfg(desktop)]
fn show_main_window<R: tauri::Runtime>(app: &tauri::AppHandle<R>) {
if let Some(window) = app.get_webview_window("main") {
let _ = window.show();
let _ = window.unminimize();
let _ = window.set_focus();
}
}
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
// Plugins and commands shared by every platform (desktop + Android).
@@ -62,11 +73,7 @@ pub fn run() {
// in the *first* (already-running) instance when a second launch is
// attempted: we surface its window instead of letting the second boot.
.plugin(tauri_plugin_single_instance::init(|app, _argv, _cwd| {
if let Some(window) = app.get_webview_window("main") {
let _ = window.show();
let _ = window.unminimize();
let _ = window.set_focus();
}
show_main_window(app);
}))
.setup(move |app| {
let show = MenuItem::with_id(app, "show", "Show YTDescGen", true, None::<&str>)?;
@@ -83,13 +90,7 @@ pub fn run() {
.tooltip("YTDescGen — YouTube Description Generator")
.menu(&menu)
.on_menu_event(move |app, event| match event.id.as_ref() {
"show" => {
if let Some(window) = app.get_webview_window("main") {
let _ = window.show();
let _ = window.unminimize();
let _ = window.set_focus();
}
}
"show" => show_main_window(app),
"quit" => {
quitting_menu.store(true, Ordering::SeqCst);
app.exit(0);
@@ -103,12 +104,7 @@ pub fn run() {
..
} = event
{
let app = tray.app_handle();
if let Some(window) = app.get_webview_window("main") {
let _ = window.show();
let _ = window.unminimize();
let _ = window.set_focus();
}
show_main_window(tray.app_handle());
}
})
.build(app)?;
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
"productName": "YTDescGen",
"version": "1.5.2",
"version": "1.7.0",
"identifier": "com.skullmute.ytdescgen",
"build": {
"beforeBuildCommand": "npm run build",
@@ -23,6 +23,7 @@ import {
getValidFrameGenMultipliers,
coerceUpscaleQuality,
coerceFrameGenMultiplier,
coerceDlssNeuralRendering,
} from "@engine/graphics-vendor";
import { upscaleSourcesFor, validUpscaleSource } from "@engine/upscale";
import { VIDEO_STYLE_ERA_IDS, type VideoStyleEra } from "@config/video-styles";
@@ -101,6 +102,12 @@ export function VideoSettingsForm() {
if (coercedQ !== store.upscaleQuality) store.set("upscaleQuality", coercedQ);
const coercedM = coerceFrameGenMultiplier(next, store.frameGenMultiplier);
if (coercedM !== store.frameGenMultiplier) store.set("frameGenMultiplier", coercedM);
// v1.6.0: DLSS 5 Neural Rendering is NVIDIA's; its switch hides for
// other vendors, so it turns off rather than linger unseen.
const coercedNeural = coerceDlssNeuralRendering(next, store.dlssNeuralRendering);
if (coercedNeural !== store.dlssNeuralRendering) {
store.set("dlssNeuralRendering", coercedNeural);
}
}
// v1.5.0: "Upscaled from" lists only resolutions below the video's own.
@@ -211,6 +218,17 @@ export function VideoSettingsForm() {
/>
</div>
{/* v1.6.0: "Custom…" frame generation, printed as typed. */}
{store.frameGenMultiplier === "custom" && (
<Input
label={t("editor.frameGenCustom")}
maxLength={FIELD_LIMITS.LABEL}
placeholder={t("editor.frameGenCustomPlaceholder")}
value={store.frameGenCustom}
onChange={(e) => store.set("frameGenCustom", e.target.value)}
/>
)}
<div className="grid gap-3 sm:grid-cols-2">
<Select
label={t("editor.upscaleQuality")}
@@ -226,6 +244,15 @@ export function VideoSettingsForm() {
/>
</div>
{/* v1.6.0: DLSS 5 Neural Rendering — NVIDIA (RTX 50 series) only. */}
{store.frameGenVendor === "nvidia" && (
<Toggle
label={t("editor.dlssNeuralRendering")}
checked={store.dlssNeuralRendering}
onChange={(v) => store.set("dlssNeuralRendering", v)}
/>
)}
<Input
label={t("editor.versionInfo")}
maxLength={FIELD_LIMITS.LABEL}
+4 -2
View File
@@ -4,7 +4,8 @@ import {
siBuymeacoffee,
siDiscord,
siFacebook,
siGithub,
siGitea,
siGitlab,
siInstagram,
siKofi,
siMastodon,
@@ -53,7 +54,8 @@ export const MastodonIcon = brandIcon(siMastodon);
export const DiscordIcon = brandIcon(siDiscord);
export const SteamIcon = brandIcon(siSteam);
export const TelegramIcon = brandIcon(siTelegram);
export const GithubIcon = brandIcon(siGithub);
export const GiteaIcon = brandIcon(siGitea);
export const GitlabIcon = brandIcon(siGitlab);
export const KofiIcon = brandIcon(siKofi);
export const BuyMeACoffeeIcon = brandIcon(siBuymeacoffee);
export const PatreonIcon = brandIcon(siPatreon);
-4
View File
@@ -2,7 +2,6 @@ import { useNavigate } from "react-router-dom";
import { useTranslation } from "react-i18next";
import { Command } from "cmdk";
import {
BookOpen,
Bug,
ClipboardCopy,
Contrast,
@@ -211,9 +210,6 @@ function PaletteBody({
<Item icon={<Keyboard />} onSelect={run(onShowShortcuts)}>
{t("shortcuts.title")}
</Item>
<Item icon={<BookOpen />} onSelect={run(() => void openExternal(ABOUT.wikiUrl))}>
{t("command.wiki")}
</Item>
<Item icon={<Bug />} onSelect={run(() => void openExternal(ABOUT.bugReportUrl))}>
{t("tabs.reportBug")}
</Item>
+2 -2
View File
@@ -1,4 +1,4 @@
import { useId, useState, type FormEvent } from "react";
import { useId, useState, type SubmitEvent } from "react";
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
import { Modal } from "@components/ui/Modal";
@@ -35,7 +35,7 @@ function PresetSaveFormBody({ onClose, editPreset }: PresetSaveFormProps) {
);
const [fromEditor, setFromEditor] = useState(false);
const save = (e: FormEvent) => {
const save = (e: SubmitEvent) => {
e.preventDefault();
const fields = presetFieldsFromEditor(editorDataOf(useEditorStore.getState()));
const name = gameName.trim() || fields.gameName.trim() || t("presets.unnamed");
+2 -2
View File
@@ -1,4 +1,4 @@
import { useId, useState, type FormEvent } from "react";
import { useId, useState, type SubmitEvent } from "react";
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
import { Modal } from "@components/ui/Modal";
@@ -38,7 +38,7 @@ function ProfileSaveFormBody({ onClose, editProfile }: ProfileSaveFormProps) {
);
const [fromEditor, setFromEditor] = useState(false);
const save = (e: FormEvent) => {
const save = (e: SubmitEvent) => {
e.preventDefault();
const fields = profileFieldsFromEditor(editorDataOf(useEditorStore.getState()));
const finalName = name.trim() || fields.channelName.trim() || t("profiles.unnamed");
@@ -1,4 +1,4 @@
import { useId, useState, type FormEvent } from "react";
import { useId, useState, type SubmitEvent } from "react";
import { useTranslation } from "react-i18next";
import { toast } from "sonner";
import { Modal } from "@components/ui/Modal";
@@ -32,7 +32,7 @@ function TemplateSaveFormBody({ onClose, editTemplate }: TemplateSaveFormProps)
const [name, setName] = useState(editTemplate?.name ?? "");
const [fromEditor, setFromEditor] = useState(false);
const save = (e: FormEvent) => {
const save = (e: SubmitEvent) => {
e.preventDefault();
const snapshot = structuredClone(editorDataOf(useEditorStore.getState()));
const finalName = name.trim() || snapshot.gameName.trim() || t("templates.unnamed");
+2 -2
View File
@@ -29,7 +29,8 @@ interface AccordionProps {
export function Accordion({
id,
title,
icon,
// Capitalised so JSX reads it as a component, not an HTML tag.
icon: Icon,
summary,
badge,
open,
@@ -37,7 +38,6 @@ export function Accordion({
children,
}: AccordionProps) {
const panelId = `section-${id}-panel`;
const Icon = icon;
return (
<section
id={`section-${id}`}
+9 -7
View File
@@ -14,15 +14,17 @@ export const ABOUT = {
version: pkg.version,
license: "Apache-2.0",
website: "https://ytgenerator.stream",
repo: "https://github.com/poli0981/youtube-generator",
issuesUrl: "https://github.com/poli0981/youtube-generator/issues",
bugReportUrl: "https://github.com/poli0981/youtube-generator/issues/new?template=bug_report.yml",
discussionsUrl: "https://github.com/poli0981/youtube-generator/discussions",
wikiUrl: "https://github.com/poli0981/youtube-generator/wiki",
securityAdvisoryUrl: "https://github.com/poli0981/youtube-generator/security/advisories/new",
/** The canonical source (Gitea). Outsiders cannot sign up there. */
repo: "https://git.poli0981.dev/poli0981/youtube-generator",
/**
* Issues and merge requests go to the GitLab mirror, which Gitea pushes
* to. The bug form is `.gitlab/issue_templates/Bug.md`.
*/
issuesUrl: "https://gitlab.com/poli0981/youtube-generator/-/issues",
bugReportUrl: "https://gitlab.com/poli0981/youtube-generator/-/issues/new?issuable_template=Bug",
author: {
name: "SkullMute",
github: "https://github.com/poli0981",
profile: "https://git.poli0981.dev/poli0981",
website: "https://poli0981.dev/",
links: "https://poli0981.dev/links/",
},
+6
View File
@@ -66,7 +66,11 @@ export interface EditorDefaults {
rayTracingModes: RTMode[];
frameGenVendor: FrameGenVendor;
frameGenMultiplier: FrameGenMultiplier;
/** v1.6.0: the frame generation as typed, when the multiplier is `"custom"`. */
frameGenCustom: string;
upscaleQuality: UpscaleQuality;
/** v1.6.0: NVIDIA DLSS 5 Neural Rendering (NVIDIA only). */
dlssNeuralRendering: boolean;
artStyle: ArtStyle;
/** v0.22.0 opt-in. Empty string = no style line in the description. */
videoStyleEra: VideoStyleEra;
@@ -205,7 +209,9 @@ export const DEFAULTS = {
rayTracingModes: [],
frameGenVendor: "none",
frameGenMultiplier: "none",
frameGenCustom: "",
upscaleQuality: "none",
dlssNeuralRendering: false,
artStyle: "none",
videoStyleEra: "" satisfies VideoStyleEra,
versionInfo: "",
+1 -3
View File
@@ -2,11 +2,9 @@
* Donate / support links surfaced on the About page and via the persistent
* Donate button in the Header.
*
* Mirrors `.github/FUNDING.yml` so GitHub's "Sponsor this project" picker
* and the in-app surface stay aligned. Update both files together.
* GitHub Sponsors went with the suspended GitHub account (2026-11).
*/
export const DONATE = {
githubSponsors: "https://github.com/sponsors/poli0981",
kofi: "https://ko-fi.com/skullmute",
buyMeACoffee: "https://buymeacoffee.com/skullmute",
patreon: "https://www.patreon.com/skullmute",
+11 -5
View File
@@ -60,12 +60,18 @@ export const FRAMEGEN_VENDORS = ["none", "nvidia", "amd", "intel"] as const;
export type FrameGenVendor = (typeof FRAMEGEN_VENDORS)[number];
/**
* Frame-generation multiplier — DLSS 4 supports up to x4, FSR 3 up to x3,
* Intel XeFG is ramping up. `"none"` means upscaling is in use but frame
* generation isn't; useful for builds where DLSS Quality is enabled but
* FG was left off.
* Frame-generation multiplier — DLSS 4 supports up to x4 and DLSS 4.5 adds
* x6 and Dynamic Multi Frame Generation (`"dynamic"`, which picks the
* multiplier itself), FSR 3 goes up to x3, Intel XeFG is ramping up.
* `"none"` means upscaling is in use but frame generation isn't; useful for
* builds where DLSS Quality is enabled but FG was left off.
*
* v1.6.0: `"custom"` reveals a free-form text field (`frameGenCustom`),
* printed as typed — the same escape hatch as the graphics preset's, for
* modes the list doesn't name (a driver-level or third-party frame
* generator, a newer multiplier).
*/
export const FRAMEGEN_MULTIPLIERS = ["none", "x2", "x3", "x4", "x6"] as const;
export const FRAMEGEN_MULTIPLIERS = ["none", "x2", "x3", "x4", "x6", "dynamic", "custom"] as const;
export type FrameGenMultiplier = (typeof FRAMEGEN_MULTIPLIERS)[number];
/**
+14 -14
View File
@@ -46,7 +46,7 @@ export const PLATFORMS: readonly PlatformConfig[] = [
// /app/, /sub/ (package) or /bundle/ + <digits>, optionally followed by
// /<slug>; or the s.team/a/<digits> short link.
urlPattern:
/^https:\/\/(?:store\.steampowered\.com\/(?:app|sub|bundle)\/\d+(?:\/[^\s]*)?|s\.team\/a\/\d+\/?)$/i,
/^https:\/\/(?:store\.steampowered\.com\/(?:app|sub|bundle)\/\d+(?:\/\S*)?|s\.team\/a\/\d+\/?)$/i,
normalize: normalizeSteamUrl,
},
{
@@ -54,14 +54,14 @@ export const PLATFORMS: readonly PlatformConfig[] = [
tagName: "Epic Games",
label: "Epic Games Store",
urlPrefix: "https://store.epicgames.com/",
urlPattern: /^https:\/\/(?:store\.epicgames\.com|www\.epicgames\.com\/store)\/[^\s]+$/i,
urlPattern: /^https:\/\/(?:store\.epicgames\.com|www\.epicgames\.com\/store)\/\S+$/i,
},
{
id: "ps",
tagName: "PlayStation",
label: "PlayStation Store",
urlPrefix: "https://store.playstation.com/",
urlPattern: /^https:\/\/store\.playstation\.com\/[^\s]+$/i,
urlPattern: /^https:\/\/store\.playstation\.com\/\S+$/i,
},
{
id: "xbox",
@@ -70,7 +70,7 @@ export const PLATFORMS: readonly PlatformConfig[] = [
urlPrefix: "https://www.xbox.com/games/",
// xbox.com (with or without www) and the Microsoft Store web pages.
urlPattern:
/^https:\/\/(?:(?:www\.)?xbox\.com|apps\.microsoft\.com|www\.microsoft\.com\/[a-z-]*\/?store)\/[^\s]*$/i,
/^https:\/\/(?:(?:www\.)?xbox\.com|apps\.microsoft\.com|www\.microsoft\.com\/[a-z-]*\/?store)\/\S*$/i,
},
{
id: "nintendo",
@@ -80,14 +80,14 @@ export const PLATFORMS: readonly PlatformConfig[] = [
// Every regional site: nintendo.com/us/…, nintendo.co.uk, nintendo.de,
// store.nintendo.co.uk, nintendo.co.jp …
urlPattern:
/^https:\/\/(?:[a-z0-9-]+\.)*nintendo\.(?:com|co\.[a-z]{2}|com\.[a-z]{2}|[a-z]{2})\/[^\s]+$/i,
/^https:\/\/(?:[a-z0-9-]+\.)*nintendo\.(?:com|co\.[a-z]{2}|com\.[a-z]{2}|[a-z]{2})\/\S+$/i,
},
{
id: "gog",
tagName: "GOG",
label: "GOG",
urlPrefix: "https://www.gog.com/game/",
urlPattern: /^https:\/\/(?:www\.)?gog\.com\/[^\s]+$/i,
urlPattern: /^https:\/\/(?:www\.)?gog\.com\/\S+$/i,
},
{
id: "itchio",
@@ -103,7 +103,7 @@ export const PLATFORMS: readonly PlatformConfig[] = [
tagName: "Humble Bundle",
label: "Humble Bundle",
urlPrefix: "https://www.humblebundle.com/store/",
urlPattern: /^https:\/\/(?:www\.)?humblebundle\.com\/[^\s]+$/i,
urlPattern: /^https:\/\/(?:www\.)?humblebundle\.com\/\S+$/i,
},
{
id: "amazon",
@@ -111,21 +111,21 @@ export const PLATFORMS: readonly PlatformConfig[] = [
label: "Amazon Luna",
urlPrefix: "https://luna.amazon.com/game/",
// Luna's own site, or the game's page on any Amazon storefront.
urlPattern: /^https:\/\/(?:luna\.amazon\.com|(?:www\.)?amazon\.[a-z.]{2,6})\/[^\s]+$/i,
urlPattern: /^https:\/\/(?:luna\.amazon\.com|(?:www\.)?amazon\.[a-z.]{2,6})\/\S+$/i,
},
{
id: "ea",
tagName: "EA app",
label: "EA app",
urlPrefix: "https://www.ea.com/games/",
urlPattern: /^https:\/\/(?:www\.)?ea\.com\/[^\s]+$/i,
urlPattern: /^https:\/\/(?:www\.)?ea\.com\/\S+$/i,
},
{
id: "ubisoft",
tagName: "Ubisoft Connect",
label: "Ubisoft Store",
urlPrefix: "https://store.ubisoft.com/",
urlPattern: /^https:\/\/(?:store\.ubisoft\.com|(?:www\.)?ubisoft\.com)\/[^\s]+$/i,
urlPattern: /^https:\/\/(?:store\.ubisoft\.com|(?:www\.)?ubisoft\.com)\/\S+$/i,
},
{
id: "battlenet",
@@ -133,7 +133,7 @@ export const PLATFORMS: readonly PlatformConfig[] = [
label: "Battle.net",
urlPrefix: "https://shop.battle.net/",
// shop.battle.net and its regional hosts (us.shop.battle.net …).
urlPattern: /^https:\/\/(?:[a-z0-9-]+\.)*battle\.net\/[^\s]+$/i,
urlPattern: /^https:\/\/(?:[a-z0-9-]+\.)*battle\.net\/\S+$/i,
},
{
id: "googleplay",
@@ -151,7 +151,7 @@ export const PLATFORMS: readonly PlatformConfig[] = [
tagName: "iOS",
label: "App Store",
urlPrefix: "https://apps.apple.com/app/",
urlPattern: /^https:\/\/apps\.apple\.com\/[^\s]+$/i,
urlPattern: /^https:\/\/apps\.apple\.com\/\S+$/i,
},
{
id: "meta",
@@ -159,7 +159,7 @@ export const PLATFORMS: readonly PlatformConfig[] = [
label: "Meta Quest Store",
urlPrefix: "https://www.meta.com/experiences/",
// meta.com, and oculus.com links that still circulate.
urlPattern: /^https:\/\/(?:www\.)?(?:meta|oculus)\.com\/[^\s]+$/i,
urlPattern: /^https:\/\/(?:www\.)?(?:meta|oculus)\.com\/\S+$/i,
},
{
// Catch-all for indie / niche releases distributed only from a
@@ -170,6 +170,6 @@ export const PLATFORMS: readonly PlatformConfig[] = [
id: "publisher",
label: "Publisher / Developer site",
urlPrefix: "https://",
urlPattern: /^https:\/\/[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+(?:\/[^\s]*)?$/i,
urlPattern: /^https:\/\/[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+(?:\/\S*)?$/i,
},
] as const;
+4 -4
View File
@@ -36,14 +36,14 @@ export const PLAYTEST_PLATFORMS: readonly PlaytestPlatformConfig[] = [
id: "steam",
label: "Steam Playtest",
urlPrefix: "https://store.steampowered.com/app/",
urlPattern: /^https:\/\/store\.steampowered\.com\/app\/\d+(?:\/[^\s]*)?$/i,
urlPattern: /^https:\/\/store\.steampowered\.com\/app\/\d+(?:\/\S*)?$/i,
maxInvites: 100,
},
{
id: "epic",
label: "Epic Games Store",
urlPrefix: "https://store.epicgames.com/",
urlPattern: /^https:\/\/store\.epicgames\.com\/[^\s]+$/i,
urlPattern: /^https:\/\/store\.epicgames\.com\/\S+$/i,
maxInvites: 100,
},
{
@@ -57,7 +57,7 @@ export const PLAYTEST_PLATFORMS: readonly PlaytestPlatformConfig[] = [
id: "discord",
label: "Discord / Community",
urlPrefix: "https://discord.gg/",
urlPattern: /^https:\/\/(?:discord\.gg|discord\.com\/invite)\/[^\s]+$/i,
urlPattern: /^https:\/\/(?:discord\.gg|discord\.com\/invite)\/\S+$/i,
maxInvites: 100,
},
{
@@ -66,7 +66,7 @@ export const PLAYTEST_PLATFORMS: readonly PlaytestPlatformConfig[] = [
id: "other",
label: "Other / Signup form",
urlPrefix: "https://",
urlPattern: /^https:\/\/[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+(?:\/[^\s]*)?$/i,
urlPattern: /^https:\/\/[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)+(?:\/\S*)?$/i,
maxInvites: 100,
},
] as const;
+19 -1
View File
@@ -111,6 +111,21 @@ export interface RigField {
readonly clean?: (raw: string) => string;
/** Takes both columns of the editor's grid (long values, such as a LUT name). */
readonly wide?: boolean;
/**
* `text` fields (v1.6.0): when the value is "Custom" (any case — the
* field's first suggestion), the description prints this templates key
* as the whole line instead of "Label: Custom". The LUT's is "LUT
* applied", for a LUT of one's own that has no name worth printing.
*/
readonly customNoteKey?: string;
}
/** The value that selects a field's {@link RigField.customNoteKey} line. */
const RIG_CUSTOM_VALUE = "Custom";
/** True when a rig value is the "Custom" choice (case and spaces ignored). */
export function isCustomRigValue(value: string): boolean {
return value.trim().toLowerCase() === RIG_CUSTOM_VALUE.toLowerCase();
}
/**
@@ -489,9 +504,11 @@ export function cleanCpuName(raw: string): string {
/**
* LUTs that come with DaVinci Resolve, named the way its LUT menu shows
* them (from Resolve 21's own LUT folder), offered while typing in the
* LUT field. Any other LUT's name is accepted as typed.
* LUT field. Any other LUT's name is accepted as typed. v1.6.0: "Custom"
* comes first — a LUT of one's own, printed as just "LUT applied".
*/
export const LUT_SUGGESTIONS: readonly string[] = [
RIG_CUSTOM_VALUE,
"Arri Alexa LogC to Rec709",
"Rec709 Kodak 2383 D65",
"Rec709 Kodak 2383 D60",
@@ -593,6 +610,7 @@ export const RIG_FIELDS: readonly RigField[] = [
suggestions: LUT_SUGGESTIONS,
clean: cleanLutName,
wide: true,
customNoteKey: "description.rigNotes.lut_custom",
},
];
Loaded 100 of 142 files, more files were not shown because too many files have changed in this diff. Show more