Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9d17d66d29 | ||
|
|
e67801285b | ||
|
|
86eeb0ed02
|
||
|
|
6c0614d720 | ||
|
|
c9a8ae6ea3
|
||
|
|
9d6fb06163
|
||
|
|
9998e171d1
|
||
|
|
45ba6bb3da
|
||
|
|
fe9b540d70
|
||
|
|
4386d6014c
|
||
|
|
0249c10257
|
||
|
|
b0d901cf9f
|
||
|
|
257fb6b7d8
|
||
|
|
7223a8c5ff
|
||
|
|
de04ce4da3
|
||
|
|
f116df0d8d
|
||
|
|
a88bc8c112
|
||
|
|
d7e287646d | ||
|
|
cdcd779219
|
||
|
|
42697ce842 | ||
|
|
b2eb8236b4
|
||
|
|
e71949cf21 | ||
|
|
cefbbd13ee
|
||
|
|
731e194a70 | ||
|
|
3b1b17ebf1
|
||
|
|
5a9e7e83de
|
||
|
|
d060444ab1 | ||
|
|
cc66d9ecd9
|
||
|
|
b7cfdec142 | ||
|
|
b3d6190d06 | ||
|
|
0297209cff | ||
|
|
653cf829af
|
||
|
|
d0d22ef679 | ||
|
|
8a76e98eea
|
||
|
|
dfe5f827dd | ||
|
|
ae3f729c4e | ||
|
|
df92c80bcf | ||
|
|
5fd28e336c
|
||
|
|
754b669f4d | ||
|
|
a45a06fad7
|
||
|
|
806201721c | ||
|
|
68dc48ea53
|
||
|
|
d6cfea8449 | ||
|
|
8628991390
|
||
|
|
06e0d9ae3d | ||
|
|
941a1fad4f
|
||
|
|
8cc9a46167 | ||
|
|
cf9934e25f
|
||
|
|
09f50362a2 | ||
|
|
d2519ccaef
|
||
|
|
b216d71591 | ||
|
|
b7d357ce4c | ||
|
|
0789a11a39
|
||
|
|
d799c52112
|
||
|
|
c14698c704 | ||
|
|
78abb6f354
|
||
|
|
842b9d2a36 | ||
|
|
931d7d8f8e |
No files matched your search
@@ -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@d209202bc7d53ff1cc128f7f907dac145c9d6ae9 # v8.3.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
|
||||
@@ -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
|
||||
@@ -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 }}
|
||||
@@ -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 }}
|
||||
@@ -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
|
||||
@@ -0,0 +1,74 @@
|
||||
name: Rust
|
||||
|
||||
# The Tauri shell changes rarely, so this only runs when it does (or weekly,
|
||||
# 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/**"
|
||||
- ".gitea/workflows/rust.yml"
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "src-tauri/**"
|
||||
- ".gitea/workflows/rust.yml"
|
||||
schedule:
|
||||
- cron: "53 15 * * 1"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: rust-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
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=""; 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
|
||||
# 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
|
||||
- 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
|
||||
working-directory: src-tauri
|
||||
run: cargo fmt --all -- --check
|
||||
- name: clippy
|
||||
working-directory: src-tauri
|
||||
run: cargo clippy --all-targets --locked -- -D warnings
|
||||
- name: test
|
||||
working-directory: src-tauri
|
||||
run: cargo test --locked
|
||||
@@ -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
|
||||
@@ -1,6 +0,0 @@
|
||||
github: poli0981
|
||||
ko_fi: skullmute
|
||||
buy_me_a_coffee: skullmute
|
||||
patreon: skullmute
|
||||
custom:
|
||||
- paypal.me/DungDang212
|
||||
@@ -0,0 +1,123 @@
|
||||
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", "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://git.poli0981.dev/poli0981/youtube-generator/src/branch/main/ACCESSIBILITY.md#reporting-a-barrier).
|
||||
- type: textarea
|
||||
id: barrier
|
||||
attributes:
|
||||
label: What happened?
|
||||
description: What were you trying to do, and what got in the way?
|
||||
placeholder: e.g. "With NVDA, the Copy Title button is announced only as 'button'."
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: repro
|
||||
attributes:
|
||||
label: Steps to reproduce
|
||||
description: The page, then numbered steps — keys you pressed, gestures or voice commands.
|
||||
placeholder: |
|
||||
1. Open Output
|
||||
2. Press Tab until the Copy Title button
|
||||
3. Listen to what the screen reader says
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: expected
|
||||
attributes:
|
||||
label: What did you expect?
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: assistive-tech
|
||||
attributes:
|
||||
label: Assistive technology or setting
|
||||
description: Pick everything you were using.
|
||||
multiple: true
|
||||
options:
|
||||
- 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)
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: assistive-tech-version
|
||||
attributes:
|
||||
label: Version of that tool (if you know it)
|
||||
placeholder: e.g. NVDA 2026.3, VoiceOver on macOS 26
|
||||
- type: dropdown
|
||||
id: severity
|
||||
attributes:
|
||||
label: How much does it stop you?
|
||||
description: The levels are explained in ACCESSIBILITY.md.
|
||||
options:
|
||||
- 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
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: version
|
||||
attributes:
|
||||
label: App version
|
||||
description: From the About page. Example `v1.7.0`.
|
||||
placeholder: v1.7.0
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: surface
|
||||
attributes:
|
||||
label: Where are you running YTDescGen?
|
||||
options:
|
||||
- Web (ytgenerator.stream)
|
||||
- Desktop — Windows (Tauri)
|
||||
- Desktop — macOS (Tauri, 1.6.0 or older)
|
||||
- Desktop — Linux (Tauri)
|
||||
- Android (APK)
|
||||
- Local dev (npm run dev)
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: os
|
||||
attributes:
|
||||
label: Operating system and browser
|
||||
description: e.g. Windows 11 25H2 + Edge 141, macOS 26 + Safari 26, Android 15. Leave the browser out for the desktop and Android apps.
|
||||
validations:
|
||||
required: true
|
||||
- type: dropdown
|
||||
id: language
|
||||
attributes:
|
||||
label: App 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: textarea
|
||||
id: recording
|
||||
attributes:
|
||||
label: Screen recording, screenshot or screen reader output (optional)
|
||||
description: Drag and drop files here, or paste what the screen reader said.
|
||||
@@ -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.3.2`.
|
||||
placeholder: v1.3.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)
|
||||
|
||||
@@ -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,55 +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
|
||||
- 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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -42,6 +60,20 @@ If this PR touches the UI, attach screenshots or short recordings at:
|
||||
Otherwise delete this section.
|
||||
-->
|
||||
|
||||
## Accessibility
|
||||
|
||||
<!--
|
||||
If this PR 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 -->
|
||||
|
||||
@@ -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'
|
||||
@@ -1,137 +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 has the opposite case, a fix Dependabot cannot reach: miniflare
|
||||
# (under wrangler, dev only) pins `undici` to an exact version, so the security
|
||||
# job fails with `security_update_not_possible` and `overrides` in package.json
|
||||
# lifts it instead:
|
||||
#
|
||||
# undici 7.29.1 (fix: 7.30.1, alert #49) pinned by
|
||||
# miniflare 5.x (every release up to 5.20261019.2-beta)
|
||||
#
|
||||
# Remove the override once a wrangler release brings undici >= 7.30.1 on its
|
||||
# own (`npm view miniflare@<version> dependencies.undici`).
|
||||
#
|
||||
# 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"]
|
||||
|
||||
- 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: ["*"]
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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 }}
|
||||
@@ -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").
|
||||
@@ -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 }}
|
||||
@@ -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
|
||||
@@ -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"
|
||||
@@ -1,134 +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: ""
|
||||
- os: macos-14
|
||||
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 }}
|
||||
@@ -1,78 +0,0 @@
|
||||
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.
|
||||
on:
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "src-tauri/**"
|
||||
- ".github/workflows/rust.yml"
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "src-tauri/**"
|
||||
- ".github/workflows/rust.yml"
|
||||
schedule:
|
||||
- cron: "41 4 * * 1"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: rust-${{ github.ref }}
|
||||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
|
||||
|
||||
jobs:
|
||||
lint-and-test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Install Linux dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y 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
|
||||
with:
|
||||
toolchain: stable
|
||||
components: rustfmt, clippy
|
||||
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
|
||||
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
|
||||
- run: npm ci --ignore-scripts
|
||||
- run: npm run build
|
||||
- name: rustfmt
|
||||
working-directory: src-tauri
|
||||
run: cargo fmt --all -- --check
|
||||
- name: clippy
|
||||
working-directory: src-tauri
|
||||
run: cargo clippy --all-targets --locked -- -D warnings
|
||||
- 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
|
||||
@@ -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@85b2b9fb8e3325e7a23d7d0a9d7ba5ae0f999e3e # v0.7.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
@@ -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:
|
||||
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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 -->
|
||||
@@ -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
|
||||
@@ -0,0 +1,127 @@
|
||||
# Accessibility
|
||||
|
||||
**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 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
|
||||
|
||||
We aim for [WCAG 2.2](https://www.w3.org/TR/WCAG22/) level **AA**. That is a goal, not a claim of conformance: YTDescGen is a solo open-source project and has not had an independent audit. When we find something that falls short, it is fixed or listed under [Known limitations](#known-limitations).
|
||||
|
||||
## What works today
|
||||
|
||||
### Keyboard
|
||||
|
||||
- Every page, menu and dialog works with the keyboard alone. **Skip to content** is the first stop on the app's pages, and a visible outline shows where the focus is.
|
||||
- Dialogs keep the focus inside while they are open, close with **Esc**, and give the focus back to the control that opened them.
|
||||
- Shortcuts work on every page:
|
||||
- **Ctrl/⌘ + K**: command palette (any page, copy, profiles, presets, templates, theme, languages).
|
||||
- **Ctrl/⌘ + G** or **Ctrl/⌘ + Enter**: Output.
|
||||
- **Ctrl/⌘ + Shift + C**: Copy All.
|
||||
- **Ctrl/⌘ + S**: save to History.
|
||||
- **Ctrl/⌘ + B**: sidebar.
|
||||
- **Alt + T**: notifications.
|
||||
- **Ctrl/⌘ + /** (or **?**): the full list.
|
||||
- The single-key **?** shortcut can be turned off in **Settings › Editor › Single-key shortcuts**, for speech input and stray key presses.
|
||||
|
||||
### Screen readers
|
||||
|
||||
- Every control has a name, including icon-only buttons, and every field has a label. Hints and errors are tied to their field.
|
||||
- Confirmations and errors are announced ("Copied!", "Saved to History", why something can't be copied), and so are Strict Mode problems.
|
||||
- After you open another page, its name is read out. The focus stays on the link you used.
|
||||
- Each page has its own title and a single main heading, and the page language follows the interface language you pick (eight languages).
|
||||
- Generated titles, descriptions and tags are marked with the language they were written in, so a Japanese description is read with a Japanese voice even when the interface is in English.
|
||||
|
||||
### Vision
|
||||
|
||||
- Dark and light themes, both at WCAG AA contrast for text (4.5:1) on every background. A test keeps them there ([tests/styles/contrast.test.ts](tests/styles/contrast.test.ts)).
|
||||
- The layout reflows from wide screens down to phone width, so zooming in moves content into one column instead of off the screen.
|
||||
- The desktop apps zoom with **Ctrl/⌘ + =** and **Ctrl/⌘ + −** (Ctrl + mouse wheel works on Windows too). On Android, pinch to zoom.
|
||||
- In Windows High Contrast (forced colours), the focus outline stays visible.
|
||||
- **Settings › Appearance › Hide scrollbars** removes the scrollbars; scrolling still works with the keyboard, mouse wheel and touch.
|
||||
|
||||
### Motion
|
||||
|
||||
- With **Reduce motion** turned on in your operating system, animations and smooth scrolling are switched off.
|
||||
|
||||
### Touch
|
||||
|
||||
- On touch screens, buttons and fields grow to about 44 px, and so do small close and dismiss buttons.
|
||||
|
||||
### The website's check page
|
||||
|
||||
- The Cloudflare Turnstile check before the website usually finishes on its own. Its status ("Checking your browser…", errors) is announced, and it works with the keyboard. See [Known limitations](#known-limitations) if Cloudflare asks you to solve a challenge.
|
||||
|
||||
## How it is checked
|
||||
|
||||
- **By hand.** The maintainer uses YTDescGen with the keyboard alone (mouse unplugged) and with Windows Narrator, through the main flows: editor, output, copying, profiles, presets, templates, History, Settings and backups.
|
||||
- **Automatically.** A unit test checks the contrast of every colour token in both themes.
|
||||
- **Design rules.** Interface parts come from accessible building blocks (Radix primitives). An icon-only button can't be built without a name, and every field gets its label and error wiring from one shared component.
|
||||
|
||||
The app has **not** been tested yet with NVDA, JAWS, VoiceOver (macOS), TalkBack (Android) or Orca (Linux). Reports from people who use them are very welcome.
|
||||
|
||||
## Supported environments
|
||||
|
||||
| Platform | Runs on | Screen reader |
|
||||
| --- | --- | --- |
|
||||
| Windows: desktop app, or the website in Edge / Chrome | Windows 10 or 11 with WebView2; Chrome or Edge 111+ | Narrator: tested |
|
||||
| Website on other browsers | Firefox 114+, Safari 16.4+ | Not tested yet |
|
||||
| macOS desktop app | macOS 11 or later, Apple silicon | VoiceOver: not tested yet |
|
||||
| Linux desktop app | WebKitGTK 2.40 or later | Orca: not tested yet |
|
||||
| Android app | Android 11 or later, current Android System WebView | TalkBack: not tested yet |
|
||||
|
||||
## Known limitations
|
||||
|
||||
- **Cloudflare's challenge on the website.** If Turnstile asks you to solve a challenge instead of passing on its own, that challenge is Cloudflare's, and its accessibility is theirs to fix. If it stops you, the desktop and Android apps have no check page at all, or [email us](#reporting-a-barrier).
|
||||
- **Field borders are faint.** The outline of an empty text field is about 1.2–1.3:1 against the page, under the 3:1 that WCAG asks for. Fields are still marked by their labels, and the focused field gets an accent border and ring.
|
||||
- **The Continue button on the first-run screen** uses the brand gradient. White text on its lighter violet end is 3.96:1.
|
||||
- **Character counters are not read out as you type.** That would interrupt every keystroke. When a field is over YouTube's limit, copying it is refused with a message that says why, and Strict Mode lists the problem in an announced banner.
|
||||
- **No automated accessibility linting yet.** `eslint-plugin-jsx-a11y` does not support ESLint 10, which the project uses, and the unit tests run without a browser DOM. Checks are manual (see above) apart from the contrast test.
|
||||
- **Translations.** Interface languages other than English and Vietnamese were translated with AI assistance (see the [Disclaimer](DISCLAIMER.md)). Some labels may sound unnatural when read aloud.
|
||||
- **Emoji in descriptions.** Generated descriptions use a few emoji as section markers (for example 👍 and 🔔), and screen readers on YouTube read them out by name.
|
||||
|
||||
## Reporting a barrier
|
||||
|
||||
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://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).
|
||||
|
||||
### Severity
|
||||
|
||||
| Level | Meaning |
|
||||
| --- | --- |
|
||||
| **Critical** | You can't finish a core task: write, generate, copy, save, or get past the website's check. |
|
||||
| **High** | You can finish it, but only with real difficulty or a workaround. |
|
||||
| **Medium** | It works, but inconsistently or confusingly. |
|
||||
| **Low** | A minor annoyance that doesn't stop you. |
|
||||
|
||||
### How we respond
|
||||
|
||||
- We reply within **7 days**, and we will take your report at face value.
|
||||
- **Critical** barriers are fixed in the next patch release. Others are planned like any other bug, with the more severe first.
|
||||
- If there is a workaround, we tell you while the fix is on its way.
|
||||
- When the fix ships, we'll ask you to check it if you're willing.
|
||||
|
||||
This is a one-person project, so timelines are honest estimates, not guarantees. If one slips, we'll say so in the issue.
|
||||
|
||||
## For contributors
|
||||
|
||||
Changes to the interface should keep everything above true. Before opening a pull request that touches the UI:
|
||||
|
||||
- **Keyboard.** Everything works with the keyboard: the focus order makes sense, the focus outline is visible, **Esc** closes what you opened, and nothing traps the focus.
|
||||
- **Names.** Use the shared `Field` (label, hint and error wiring) and `IconButton` (which can't be rendered without a `label`) components. `aria-label` text goes through `t()` like any other string, in all eight locales.
|
||||
- **Errors and status.** They are announced: `Banner` with `alert`, a toast, or an existing live region.
|
||||
- **Colour.** Colour is never the only signal. Use the design tokens only, and run `npm run test:run`. The contrast test fails if a token drops under AA, and white text belongs on the `*-solid` fills.
|
||||
- **Motion.** New animation respects reduced motion. Motion's components do this already, and CSS animations are covered by the global rule in `globals.css`.
|
||||
- **Targets.** Anything clickable is at least 24 × 24 px and grows on touch screens.
|
||||
- **Screen reader.** Try the change once with a screen reader: Narrator (Win + Ctrl + Enter), VoiceOver (⌘ + F5), NVDA or Orca.
|
||||
|
||||
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 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.
|
||||
+191
@@ -2,6 +2,197 @@
|
||||
|
||||
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.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Windows: starting the app a second time.** A second copy started while the first was still starting up could miss the first one's window and stay open instead of handing over and exiting (tauri-plugin-single-instance 2.5.5). A hidden window — the app sitting in the tray — no longer flashes when it leaves the maximized state (tao 0.37.2).
|
||||
- **macOS: dragging onto the window.** No abort when a drag enters or is dropped on the window, and no panic while the dragged file paths are collected (tao 0.37.2, wry 0.57.1).
|
||||
- **Android:** the webview runs Tauri's start-up scripts once per page instead of twice (wry 0.57.1).
|
||||
- **Windows installer:** the NSIS installer blocks a downgrade over a newer MSI installation in silent, passive and update modes too (Tauri 2.12.5).
|
||||
|
||||
### Under the hood
|
||||
|
||||
- **Tauri 2.12.4 → 2.12.5**: tauri-build, tauri-macros and tauri-codegen 2.7.4, tauri-runtime-wry 2.12.3, wry 0.57.1, tao 0.37.2, tauri-plugin-dialog 2.8.4 (rfd 0.17), tauri-plugin-single-instance 2.5.5.
|
||||
- **Dependencies**, the newest releases at least a week old (the same cooldown Dependabot uses): i18next 26.6.0, react-i18next 17.1.11, i18next-resources-to-backend 1.2.4, lucide-react 1.66, react-router-dom 7.18.5, simple-icons 16.36, vite 8.3.5 (rolldown 1.2.16), @vitejs/plugin-react 6.2.1, tailwindcss 4.3.4, postcss 8.5.32, autoprefixer 10.6.2, marked 18.1.3, eslint 10.14, typescript-eslint 8.72.1, knip 6.44.1, @types/node 26.6.6, wrangler 4.156.2. Workflows: sonarqube-scan-action 8.4.0, zizmor-action 0.8.1. THIRD_PARTY_NOTICES regenerated.
|
||||
- **i18next stays on 26.6.x** (`~26.6.0` and a Dependabot ignore for 26.7.x). 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 would take the initial load from 279.0 to 280.9 KB — over the 280 KB budget — for code the app never runs. Both go with the i18next 27 migration.
|
||||
- **The `undici` override from v1.3.1 is gone**: miniflare 5.20261102.0-beta (under wrangler, development only) depends on undici 7.30.1 itself, so alert #49 stays fixed without it.
|
||||
- **Docs**: TECH-SPEC's `package.json` listing follows the real file again (its dependency versions were several releases old) and notes the i18next hold; ROADMAP, version references.
|
||||
- typecheck, typecheck:all, lint, format:check, validate:locales, knip, check:version, check:tauri, check:licenses, check:copyright, **1131 tests**, build, cf:check and `cargo fmt` / `clippy` / `test` / `deny` all pass; initial load 279.0 of 280 KB gzip. Verified live: `wrangler dev` on 4.156.2 serves the gate page, `/legal/accessibility` and `robots.txt`, and refuses a verify without a token; the desktop app (`tauri dev` with a separate test identifier) answers its commands, writes, lists, reads and deletes a backup, and opens and cancels the native Save and Open dialogs on the new dialog plugin.
|
||||
- Six manifests bumped 1.5.1 → 1.5.2.
|
||||
|
||||
## v1.5.1 — 2026-11-09
|
||||
|
||||
An **accessibility** release. YTDescGen already worked with the keyboard alone and with Narrator; this release adds an accessibility statement and fixes what an audit against WCAG 2.2 AA turned up — colour contrast, the language of generated text, page changes a screen reader didn't hear, a single-key shortcut that couldn't be turned off, and zoom in the desktop app. Web, desktop and Android all ship as 1.5.1.
|
||||
|
||||
### Added
|
||||
|
||||
- **[ACCESSIBILITY.md](ACCESSIBILITY.md)** — what works with a keyboard, screen readers, zoom, reduced motion and touch, how it is checked, the supported environments, known limitations, how to report a barrier (severity levels, a reply within 7 days, Critical fixes in the next patch) and a checklist for contributors. Also in Vietnamese, in the app's **Legal Center**, at `ytgenerator.stream/legal/accessibility`, and linked from the website's check page in all eight languages.
|
||||
- **Accessibility barrier** issue form on GitHub (assistive technology, severity, platform), an _Accessibility_ option in feature requests, and an accessibility checklist in the pull request template.
|
||||
- **Settings › Editor › Single-key shortcuts** — on by default; turning it off stops the bare `?` from opening the shortcut list (for speech input and stray key presses), and Ctrl/⌘ + / still opens it. Travels with backups.
|
||||
- **Zoom in the desktop app** — Ctrl/⌘ + = and Ctrl/⌘ + − (and Ctrl + mouse wheel on Windows).
|
||||
- **The page's name is read out** after you open another page; the focus stays on the link you used.
|
||||
- **Alt + T** (go to the notifications) in the shortcut list.
|
||||
|
||||
### Changed
|
||||
|
||||
- **Colours reach WCAG AA (4.5:1) for text** in both themes: secondary "muted" text (hints, placeholders, counters) is lighter in the dark theme and darker in the light theme; the dark theme's accent is a little lighter; filled buttons with white text use a deeper purple and red; the light theme's success, warning, danger and donate colours are darker. A test now checks every colour token against every background.
|
||||
- Generated titles, descriptions, tags, captions and playlist text are marked with the **language they were written in**, so a screen reader reads Japanese output with a Japanese voice while the interface is in English or Vietnamese — on Output, the On YouTube and Quick previews, History, Batch, Social and Playlist.
|
||||
- The Legal Center's intro mentions accessibility.
|
||||
|
||||
### Fixed
|
||||
|
||||
- The notifications area and its close button were announced in English ("Notifications alt+T", "Close toast") whatever the interface language.
|
||||
- The Endings table's number and name fields and the per-video From / To fields had no accessible name, and the From / To column headers were always English; the bank name typed under _Other_ had only a placeholder.
|
||||
- In Windows High Contrast, text fields showed no focus outline.
|
||||
- The genre chips' remove button was 20 px (now 24 px); dialog close and banner dismiss buttons grow on touch screens.
|
||||
- `SECURITY.md` still listed 1.3.x as the supported version.
|
||||
|
||||
### Under the hood
|
||||
|
||||
- New tokens `accent-solid`, `accent-solid-hover`, `danger-solid`, `danger-solid-hover`; `tests/styles/contrast.test.ts` reads both palettes from `globals.css` (text tokens on surface-0 to 2, muted also on surface-3, accent on its own tint, white on the solid fills, 3:1 for marks on `accent`). It found the light theme's donate colour at 4.26:1 on the first run.
|
||||
- `RouteAnnouncer` listens for `ytdescgen:page-title`, which `useDocumentTitle` fires in a microtask after the commit's effects, so pages rendered in the same commit and lazy pages are both heard and a language switch stays silent.
|
||||
- `singleKeyShortcuts` is an additive setting, healed (anything but a boolean → `true`) without a store version bump, like `hideScrollbars`.
|
||||
- Text controls use Tailwind's `outline-hidden` instead of `outline-none`. `zoomHotkeysEnabled` on the main window, plus `core:webview:allow-set-webview-zoom` for Tauri's macOS / Linux zoom polyfill.
|
||||
- Legal Center doc `accessibility` (`consent: false`, English + Vietnamese); `GateStrings.accessibility` in the Worker; the `accessibility` label on GitHub. New keys in all eight locales and `_schema.json`.
|
||||
- **Docs**: ACCESSIBILITY.md (+ Vietnamese), README, CONTRIBUTING, DEVELOPMENT (+ Vietnamese), FEATURES (accessibility section, shortcuts, settings), ARCHITECTURE, TECH-SPEC, PACKAGING, ROADMAP, CLAUDE.md, SECURITY, version references.
|
||||
- typecheck, typecheck:all, lint, format:check, validate:locales, knip, check:version, check:tauri, check:licenses, check:copyright, **1131 tests** (was 1093), build, cf:check and `cargo fmt` / `clippy` / `test` all pass; initial load 279.0 of 280 KB gzip. Verified in the dev server: Settings → Output announces "Settings", then "Output", without moving the focus, and switching to Vietnamese doesn't announce; the notifications region reads "Thông báo (Alt+T)" in Vietnamese; Japanese output under a Vietnamese interface carries `lang="ja"`; with the switch off `?` does nothing and leaves the list while Ctrl + / still opens it; `/legal/accessibility` in both languages with every in-page link resolving. In the desktop app (`tauri dev`, WebView2): Ctrl + = zooms to 110 %, Ctrl + − back to 100 %.
|
||||
- Six manifests bumped 1.5.0 → 1.5.1.
|
||||
|
||||
## v1.5.0 — 2026-11-08
|
||||
|
||||
A feature release for videos **upscaled in the editor**: recorded at 1440p, exported at 4K — the title says `[4K Upscaled]`, the description says what was upscaled to what and warns that fine detail may look different from the original image. Web, desktop and Android all ship as 1.5.0.
|
||||
|
||||
### Added
|
||||
|
||||
- **Upscaled from** (Video settings), next to Resolution — the resolution the footage was recorded at, when the video editor upscaled it to the video's resolution. Only lower resolutions are offered (none at 720p); lowering the resolution to or below the source sets it back to _Not upscaled_. Like resolution and FPS, it is saved with the channel profile. With it set:
|
||||
- **Title** — the quality badge reads `[4K Upscaled]`, `[2K Upscaled]` (1440p), `[4K Upscaled 120FPS]`, the word in the output language (`Upscale` in Vietnamese, Portuguese and Indonesian, `アップスケール`, `업스케일`, `超分`, `Reescalado`). Badge position, case and _Show quality badge_ work as before; 1080p 60fps still has no badge, upscaled or not.
|
||||
- **🖥 VIDEO SETTINGS** — a line right under the resolution, the editor taken from My Rig (left out when My Rig has none):
|
||||
|
||||
```
|
||||
Video: 4K - 60 FPS
|
||||
Upscale: 1440p → 4K (DaVinci Resolve Studio 21.2)
|
||||
```
|
||||
|
||||
It stays when _This game has no in-game graphics settings_ is on, like the video-style line.
|
||||
|
||||
- **▸ 🛠 TECH NOTES** — a note of its own, after the ones you picked and bilingual like them: _Upscaled to a higher resolution in editing — fine detail is reconstructed, so text, textures and edges may look slightly different from the original image._ It isn't in the checklist, so it can't be forgotten, and it goes away with the upscale. The DLSS / FSR / XeSS note is unchanged.
|
||||
- The collapsed Video settings section reads `1440p → 4K · 60 FPS`.
|
||||
|
||||
### Under the hood
|
||||
|
||||
- `src/engine/upscale.ts`: `validUpscaleSource` is the one rule the title, the description and the form share — anything other than a known resolution below the video's is ignored. `VIDEO_RESOLUTIONS`, `UPSCALED_FROM_OPTIONS` and `isUpscaledFrom` live in `src/config/graphics-settings.ts`.
|
||||
- `AUTO_TECH_NOTES` (`editor_upscaled`) holds the engine's own notes: never stored in `techNotes`, their bullets share `description.techNotes.items`; the tech-note parity test checks the checklist and the bullets separately.
|
||||
- Editor store v20 → v21: `upscaledFrom` back-fills to `""` and an unknown value becomes `""`; an applied profile or template and a restored backup read one the same way. `Profile.upscaledFrom` is optional, so the profile store stays at v3. New keys in all eight locales and `_schema.json`.
|
||||
- **Docs**: FEATURES (upscaled video, the badge setting, the profile row), CONTENT-INVENTORY (+ Vietnamese: the automatic note), ARCHITECTURE and TECH-SPEC (`upscale.ts`, the field, store v21, test count), ROADMAP, CLAUDE.md, version references.
|
||||
- typecheck, typecheck:all, lint, format:check, validate:locales, knip, check:version, check:tauri, check:licenses, check:copyright, **1093 tests** (was 1065), build all pass; initial load 277.8 of 280 KB gzip. Verified in the dev server: Elden Ring at 4K upscaled from 1440p with DaVinci Resolve Studio 21.2 in My Rig gives `Elden Ring — [4K Upscaled] — Gameplay No Commentary`, the Upscale line under `Video: 4K - 60 FPS` and the note; Vietnamese output gives `[4K Upscale]` and the `EN · VI` note; 1080p sets the field back to _Not upscaled_, 720p disables it; hidden graphics settings keep the Upscale line; the four selects sit in one column at 375 px, 2 × 2 at 1024 px and in a row at 1440 px.
|
||||
- Six manifests bumped 1.4.0 → 1.5.0.
|
||||
|
||||
## v1.4.0 — 2026-11-06
|
||||
|
||||
A feature release for the description and the tags: a **LUT** field in My Rig, printed on its own line under the video editor, and the **boss's name as a tag** in boss videos — plus this week's dependency updates. Web, desktop and Android all ship as 1.4.0.
|
||||
|
||||
### Added
|
||||
|
||||
- **LUT** (My Rig) — the LUT you grade with, on its own line right under the video editor, in the description and the social captions:
|
||||
|
||||
```
|
||||
Video Editor: DaVinci Resolve Studio 21.2
|
||||
LUT: Arri Alexa LogC to Rec709
|
||||
```
|
||||
|
||||
Typing offers 14 LUTs that come with DaVinci Resolve, named the way its LUT menu shows them (Arri Alexa LogC to Rec709, the Rec709 Kodak 2383 and Fujifilm 3513DI film looks, HDR 1000 nits to Gamma 2.4, …); any other name is printed as typed. A pasted file name or path — Explorer's _Copy as path_ included — is cut down to the LUT's name: `"C:\…\Arri\Arri Alexa LogC to Rec709.dat"` → `Arri Alexa LogC to Rec709`. Like the rest of the rig, it is saved with the channel profile. Left empty, there is no line.
|
||||
|
||||
- **The boss's name as a tag** — Boss Fight and Boss No Hit videos get the Boss Name field as a tag of its own, right after the game's name, so fitting the tags to 500 characters never drops it. Marks that add nothing to a search are left out: "Gael, Slave Knight" → `Gael Slave Knight`, "Mr. X" → `Mr X`, "S.T.A.L.K.E.R." → `STALKER`, "「マレニア」" → `マレニア`; apostrophes and hyphens inside a word stay ("Mergo's Wet Nurse", "T-103"), and so does a dot between digits ("Phase 2.0"). Over 30 characters (YouTube's per-tag limit here), the name before its title is used: "Loretta, Knight of the Haligtree" → `Loretta`. A boss name left in the draft after switching to another video type is not tagged.
|
||||
|
||||
### Fixed
|
||||
|
||||
- A **CPU name pasted from Windows** ("Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz") is tidied in the output too, not only once you leave the field — Ctrl/⌘+Shift+C or Ctrl/⌘+S pressed with the cursor still in it copied or saved the raw name. The new LUT field works the same way.
|
||||
|
||||
### Under the hood
|
||||
|
||||
- **Dependencies**, the newest releases at least a week old (Dependabot's cooldown): i18next 26.5.11, react-i18next 17.1.9, lucide-react 1.64, zustand 5.0.16, knip 6.44, wrangler 4.152 (miniflare 5.20261019.2-beta), @tauri-apps/cli 2.12.4. Dependabot's five npm PRs (#223–#227) were folded into one change: each failed CI alone because it left THIRD_PARTY_NOTICES stale (regenerated), and they would have conflicted with each other. GitHub Actions: Swatinem/rust-cache 2.9.3, zizmor-action 0.8.0. The undici override stays — miniflare still pins undici 7.29.1.
|
||||
- Dependabot alert #50 (minimatch, development tools only, through eslint and typescript-eslint) stays open for now: its fix is minimatch 11, a new matching engine outside eslint's `^10` range, and the issue needs attacker-controlled glob patterns, which lint never reads.
|
||||
- `RigField` gains `clean` (CPU, LUT) and `wide`; `formatRigValue` runs a field's cleaner; a test now holds the `rig.*` and `description.rigLabels.*` keys of all eight locales to `RIG_FIELDS`. `bossNameTag` in `tag-generator.ts` uses linear regexes and no lookbehind (the macOS 11–13 desktop webview is older WebKit, which rejects one); its word fit is shared with `tagFriendlyGameName`.
|
||||
- **Docs**: FEATURES (11 rig fields, the LUT, the boss name tag), ARCHITECTURE (tag priority), TECH-SPEC (rig block, tag order, test count), ROADMAP, version references.
|
||||
- typecheck, typecheck:all, lint, format:check, validate:locales, knip, check:version, check:tauri, check:licenses, check:copyright, **1065 tests** (was 1017), build, cf:check all pass; initial load 277.2 of 280 KB gzip. Verified in the dev server: the LUT field sits under Video Editor across both columns with its suggestions, a quoted Explorer path becomes the LUT's name when the field loses focus, and Quick Preview prints `LUT: Arri Alexa LogC to Rec709` right after `Video Editor: DaVinci Resolve Studio 21.2`; Boss Fight with "Gael, Slave Knight" puts `Gael Slave Knight` second in the tags, Full Gameplay drops it. `wrangler dev` on 4.152 serves the gate page.
|
||||
- Six manifests bumped 1.3.2 → 1.4.0.
|
||||
- **The macOS app is built on the `macos-15` runner.** GitHub retired the macOS 14 image on 2026-11-02, so the tag's first desktop run lost its macOS job ("The configuration 'macos-14-arm64-us-default' is not supported"); the Windows and Linux builds were unaffected. The macOS `.app.tar.gz` comes from a manual re-run of the desktop workflow for `v1.4.0`, which builds the tag's code.
|
||||
|
||||
## v1.3.2 — 2026-10-27
|
||||
|
||||
A hosting release: the website now **rate-limits** each visitor's address, so a script hammering ytgenerator.stream gets a cheap `429 Too Many Requests` instead of the gate, the app or a Turnstile check. Nothing a person does in normal use comes near the limits. The desktop and Android apps are unchanged apart from the version number. Web, desktop and Android all ship as 1.3.2.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -40,7 +51,8 @@ src/
|
||||
channel-phrase.ts # drops "on {{channel}}" when there is no channel name
|
||||
types.ts # GeneratorInput, CONTENT_WARNINGS, TECH_NOTES, option lists
|
||||
rig-block.ts, limits.ts, social-post-builder.ts, pinned-comment-builder.ts, playlist-builder.ts,
|
||||
endings-format.ts, graphics-vendor.ts
|
||||
endings-format.ts, graphics-vendor.ts, upscale.ts (upscaled in the editor: one rule for title,
|
||||
description and form)
|
||||
config/ # static data: video types, genres, platforms (stores),
|
||||
# social fields/platforms, GPU catalog, rig fields,
|
||||
# content-warning-groups / tech-note-groups (editor groups),
|
||||
@@ -65,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
|
||||
@@ -76,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
|
||||
@@ -87,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
|
||||
|
||||
@@ -102,7 +119,9 @@ LICENSES/ # license texts for REUSE
|
||||
### Styling
|
||||
|
||||
- Tailwind utilities and the design tokens (`bg-surface-1`, `text-text-muted`, `accent`, …) — no hard-coded colours, no inline styles.
|
||||
- Dark by default, light via class; touch targets grow on coarse pointers.
|
||||
- Dark by default, light via class; touch targets grow on coarse pointers (`pointer-coarse:`), nothing clickable under 24 px.
|
||||
- Contrast is WCAG AA in both themes and `tests/styles/contrast.test.ts` checks every token: text tokens on surfaces, white text only on the `*-solid` fills (`bg-accent-solid`, `bg-danger-solid`), never on `bg-accent`.
|
||||
- Focus: the global `:focus-visible` outline; a control that swaps it for a ring uses `outline-hidden` (stays visible in forced colours), not `outline-none`.
|
||||
- Watch Tailwind 4 specificity: a base `inline-flex` beats a plain `hidden` — wrap responsive visibility in an element.
|
||||
|
||||
### i18n
|
||||
@@ -127,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
|
||||
@@ -159,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
|
||||
|
||||
@@ -178,7 +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.
|
||||
+71
-22
@@ -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,20 +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 merge request template repeats it); the contrast test (`tests/styles/contrast.test.ts`) fails if a colour token drops under WCAG AA.
|
||||
|
||||
### i18n Contributions
|
||||
|
||||
@@ -58,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.
|
||||
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
@@ -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.3.2 with Claude Opus 5.5)**. 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
@@ -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,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
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
[](#project-status)
|
||||
[](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=ci.yml)
|
||||
[](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=qodana.yml)
|
||||
[](https://git.poli0981.dev/poli0981/youtube-generator/actions?workflow=security.yml)
|
||||
[](./LICENSE)
|
||||
[](./docs/DEVELOPMENT.md)
|
||||
[](https://github.com/poli0981/youtube-generator/releases)
|
||||
[](https://github.com/poli0981/youtube-generator/commits)
|
||||
[](https://git.poli0981.dev/poli0981/youtube-generator/releases)
|
||||
[](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.
|
||||
@@ -39,8 +55,22 @@ Built for the gameplay no-commentary niche — especially horror / scary games
|
||||
- **Command palette** (Ctrl/⌘ + K) and keyboard shortcuts.
|
||||
- **Contact emails by purpose** — one contact line, or separate lines for contact, advertising, game keys & playtest and copyright / DMCA, each purpose address checked for a word that says what it is for (`sponsor@…`, `keys@…`, `dmca@…`).
|
||||
- **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**, larger controls on touch screens, and an option to hide every scrollbar.
|
||||
- **Desktop app** — Windows, macOS & Linux via Tauri; **Android app** — Android 11+, sideloaded from [Releases](https://github.com/poli0981/youtube-generator/releases).
|
||||
- **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 & 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
|
||||
|
||||
@@ -49,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:
|
||||
@@ -97,18 +127,18 @@ 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. |
|
||||
| [Terms of Use](./TERMS.md) | Acceptable use, license compliance, DMCA. |
|
||||
| [Disclaimer](./DISCLAIMER.md) | AI-assistance and translation-quality disclosure. _(Also: [Vietnamese](./docs/i18n/vi/DISCLAIMER.md).)_ |
|
||||
@@ -119,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
|
||||
|
||||
@@ -134,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
@@ -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
@@ -6,19 +6,18 @@ Only the latest released version of YTDescGen receives security updates, and the
|
||||
|
||||
| Version | Supported |
|
||||
| ------- | --------- |
|
||||
| 1.3.x | ✅ |
|
||||
| < 1.3 | ❌ |
|
||||
| 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:
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
+28
-28
@@ -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.5.3 | MIT | <https://github.com/i18next/i18next> |
|
||||
| `i18next-resources-to-backend` | 1.2.3 | MIT | <https://github.com/i18next/i18next-resources-to-backend> |
|
||||
| `lucide-react` | 1.59.0 | ISC | <https://github.com/lucide-icons/lucide> |
|
||||
| `i18next` | 26.6.0 | MIT | <https://github.com/i18next/i18next> |
|
||||
| `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.0 | MIT | <https://github.com/i18next/react-i18next> |
|
||||
| `react-router-dom` | 7.18.4 | MIT | <https://github.com/remix-run/react-router> |
|
||||
| `simple-icons` | 16.35.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.15 | 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.3 | MIT | <https://github.com/tailwindlabs/tailwindcss> |
|
||||
| `@tauri-apps/cli` | 2.12.3 | 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.5 | MIT | <https://github.com/DefinitelyTyped/DefinitelyTyped> |
|
||||
| `@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.1.2 | 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.1 | MIT | <https://github.com/postcss/autoprefixer> |
|
||||
| `eslint` | 10.13.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.42.1 | ISC | <https://github.com/webpro-nl/knip> |
|
||||
| `marked` | 18.1.1 | MIT | <https://github.com/markedjs/marked> |
|
||||
| `postcss` | 8.5.31 | 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.3 | 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.0 | MIT | <https://github.com/typescript-eslint/typescript-eslint> |
|
||||
| `vite` | 8.3.4 | 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.151.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,11 +72,11 @@ 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.4 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
|
||||
| `tauri-build` | 2.7.3 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/tauri> |
|
||||
| `tauri-plugin-dialog` | 2.8.3 | 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-single-instance` | 2.5.4 | Apache-2.0 OR MIT | <https://github.com/tauri-apps/plugins-workspace> |
|
||||
| `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.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
|
||||
|
||||
|
||||
@@ -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 & 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 |
@@ -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("#");
|
||||
@@ -211,6 +212,8 @@ const DOC_SUMMARIES: Readonly<Record<LegalDocId, string>> = {
|
||||
license: "The Apache License 2.0 the source code is released under.",
|
||||
"third-party": "Open-source libraries, fonts and services YTDescGen relies on.",
|
||||
security: "How to report a vulnerability privately, and what is in scope.",
|
||||
accessibility:
|
||||
"What works with a keyboard, screen readers and zoom, known gaps, and how to report a barrier.",
|
||||
notice: "The Apache-2.0 NOTICE file with copyright and attribution.",
|
||||
conduct: "Contributor Covenant rules for the project's community spaces.",
|
||||
};
|
||||
@@ -246,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>
|
||||
`;
|
||||
@@ -259,6 +262,7 @@ const TITLE_BY_ID: Record<LegalDocId, string> = {
|
||||
license: "License (Apache-2.0)",
|
||||
"third-party": "Third-Party Notices",
|
||||
security: "Security Policy",
|
||||
accessibility: "Accessibility",
|
||||
notice: "NOTICE",
|
||||
conduct: "Code of Conduct",
|
||||
};
|
||||
@@ -296,10 +300,10 @@ function indexPage(): string {
|
||||
return pageShell({
|
||||
title: "Legal",
|
||||
canonicalPath: "/legal",
|
||||
description: "Terms, privacy, licensing and security information for YTDescGen.",
|
||||
description: "Terms, privacy, licensing, security and accessibility information for YTDescGen.",
|
||||
activeId: null,
|
||||
lang: "en",
|
||||
body: `<article><h1>Legal</h1><p>Terms, privacy, licensing and security information for YTDescGen — the same documents the app shows in its Legal Center.</p><div class="cards">${cards}</div></article>`,
|
||||
body: `<article><h1>Legal</h1><p>Terms, privacy, licensing, security and accessibility information for YTDescGen — the same documents the app shows in its Legal Center.</p><div class="cards">${cards}</div></article>`,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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`,
|
||||
|
||||
+21
-18
@@ -2,7 +2,7 @@
|
||||
|
||||
## YTDescGen — Technical Architecture
|
||||
|
||||
Reflects **v1.3.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).
|
||||
|
||||
---
|
||||
|
||||
@@ -32,7 +32,7 @@ Reflects **v1.3.2**. Implementation details (configs, interfaces, file formats,
|
||||
│ ├─ description-builder ── rig-block · timeline-parser │
|
||||
│ │ channel-phrase · endings-format │
|
||||
│ └─ tag-generator │
|
||||
│ Also: title-variants · limits · social-post-builder │
|
||||
│ Also: title-variants · limits · social-post-builder · upscale │
|
||||
│ pinned-comment-builder · playlist-builder · graphics-vendor │
|
||||
├────────────────────────────────────────────────────────────────────┤
|
||||
│ Infrastructure Layer │
|
||||
@@ -66,7 +66,7 @@ The same source ships two ways:
|
||||
|
||||
**Route tree.** `/legal` and `/legal/:docId` (the Legal Center) sit outside the consent guard, so the consent screen can open each document. Everything else is inside `ConsentGuard`, a layout route that renders `ConsentGate` until the user has accepted the current terms version (`CURRENT_TERMS_VERSION` = 2 since v1.0.0). Inside it, `AppShell` holds the pages: the Editor (index route) stays in the entry bundle; Output, Profiles, History, Settings, Batch, Social, Playlist, Logs and About are `React.lazy` chunks, each wrapped in its own `ErrorBoundary` + `Suspense` so a crash on one page cannot blank the app. On the web, `/legal/<id>` loaded directly is the Worker's static page; navigated to inside the app, it is the Legal Center — the same URL either way.
|
||||
|
||||
**App shell.** `AppShell` combines a collapsible `Sidebar`, the `Header` top bar (output and interface languages, theme), `MobileNav` (a bottom bar on phones, with a "More" drawer), and three lazily loaded pieces: the ⌘/Ctrl + K `CommandPalette` (cmdk), the shortcut help and the backup `RestoreDialog`, mounted only while a restore is pending. UI primitives in `components/ui/` wrap Radix (Dialog, AlertDialog, Popover, Tooltip, Tabs, Switch, Checkbox, ToggleGroup); animation is Motion behind `LazyMotion` (its feature bundle loads after first paint, and `MotionConfig reducedMotion="user"` honours the OS setting); toasts are sonner.
|
||||
**App shell.** `AppShell` combines a collapsible `Sidebar`, the `Header` top bar (output and interface languages, theme), `MobileNav` (a bottom bar on phones, with a "More" drawer), and three lazily loaded pieces: the ⌘/Ctrl + K `CommandPalette` (cmdk), the shortcut help and the backup `RestoreDialog`, mounted only while a restore is pending. UI primitives in `components/ui/` wrap Radix (Dialog, AlertDialog, Popover, Tooltip, Tabs, Switch, Checkbox, ToggleGroup); animation is Motion behind `LazyMotion` (its feature bundle loads after first paint, and `MotionConfig reducedMotion="user"` honours the OS setting); toasts are sonner, with translated region and close labels. `RouteAnnouncer` (v1.5.1) is a polite live region that reads out the new page's name after a navigation: every page names itself with `useDocumentTitle`, which fires `ytdescgen:page-title` once the commit's effects have run, and focus stays where it was. Accessibility as a whole: [ACCESSIBILITY.md](../ACCESSIBILITY.md).
|
||||
|
||||
**Error pages (v0.27).** `components/errors/` holds a reusable `ErrorPage` (404/403/419/500/offline/runtime) driven by the pure `config/error-pages.ts` map. The error routes (`/403`, `/419`, `/500`, `/offline`, catch-all `*`) are **siblings of the `AppShell` route group** inside the consent guard, so they render full-screen without the shell. `ErrorPage` is router-agnostic — Home is a plain location change (`/` on the web, `#/` in Tauri) and Back is `history.back()` — so the root `ErrorBoundary`, mounted in `main.tsx` outside the router, reuses it as its crash fallback.
|
||||
|
||||
@@ -93,6 +93,7 @@ The engine holds all generation logic with **zero framework dependency**: no Rea
|
||||
| `channel-phrase.ts` | Drops "on {{channelName}}" (per language) when the channel name is empty |
|
||||
| `rig-block.ts` | The rig as localised `Label: value` lines in a fixed order (description and social captions) |
|
||||
| `endings-format.ts`, `graphics-vendor.ts` | Endings lists split across videos; valid upscaler / frame-generation options per vendor |
|
||||
| `upscale.ts` | Upscaled in the editor (v1.5.0): `validUpscaleSource` — the one rule the title badge, the Upscale line and the automatic tech note share |
|
||||
| `limits.ts` | Over-limit status per field, Copy All rules, `<` / `>` detection |
|
||||
| `social-post-builder.ts` | Captions for TikTok, YouTube Shorts, Instagram Reels, Facebook Reels, X (weighted count), Threads, Bluesky |
|
||||
| `pinned-comment-builder.ts`, `playlist-builder.ts` | Pinned comment; playlist title, description and comment |
|
||||
@@ -139,8 +140,8 @@ interface GeneratorInput {
|
||||
|
||||
// Video-type specific: partNumber, bossName, dlcName, challengeName, modName, modList,
|
||||
// liveUrl, scheduledTime, gacha quest fields …
|
||||
// Video settings: resolution, fps, graphicsPreset, ray tracing, frame generation,
|
||||
// upscaling, artStyle, videoStyleEra, versionInfo …
|
||||
// Video settings: resolution, upscaledFrom, fps, graphicsPreset, ray tracing,
|
||||
// frame generation, upscaling, artStyle, videoStyleEra, versionInfo …
|
||||
// Content: timestamps, playlistLink, emails, music, sponsor, publisher, content warnings,
|
||||
// tech notes, playthrough notes, endings, playtest, community links …
|
||||
|
||||
@@ -219,14 +220,15 @@ generateTags(input, { includeMultilingualTags, includeTrendingTags, year })
|
||||
|
||||
priority pool source
|
||||
1 game name bare tag (≤ 30 chars) + a shorter form for composites
|
||||
2 core CORE_TAGS_BY_LANG[language]
|
||||
3 genre GENRE_TAG_REGISTRY[genre], for every selected genre
|
||||
4 video type VIDEO_TYPE_TAGS[videoType]
|
||||
5 platform PLATFORMS[].tagName ("Steam", "itch.io", …)
|
||||
6 quality resolution / fps
|
||||
7 multilingual MULTILINGUAL_TAGS[language] (setting)
|
||||
8 trending year-based, first genre only (setting)
|
||||
9 publisher/developer pubDevName, as a bare tag
|
||||
2 boss name bossNameTag(bossName) — Boss Fight / Boss No Hit only
|
||||
3 core CORE_TAGS_BY_LANG[language]
|
||||
4 genre GENRE_TAG_REGISTRY[genre], for every selected genre
|
||||
5 video type VIDEO_TYPE_TAGS[videoType]
|
||||
6 platform PLATFORMS[].tagName ("Steam", "itch.io", …)
|
||||
7 quality resolution / fps
|
||||
8 multilingual MULTILINGUAL_TAGS[language] (setting)
|
||||
9 trending year-based, first genre only (setting)
|
||||
10 publisher/developer pubDevName, as a bare tag
|
||||
│
|
||||
▼
|
||||
de-duplicate (case-insensitive) · drop tags over 30 characters
|
||||
@@ -256,7 +258,7 @@ export const GENRE_TAG_REGISTRY: Record<string, (gameName: string) => string[]>
|
||||
|
||||
```
|
||||
┌────────────────────────────────────────────────────────────────────┐
|
||||
│ EditorStore — "ytdescgen-editor-draft", v20 │
|
||||
│ EditorStore — "ytdescgen-editor-draft", v21 │
|
||||
│ - the draft: every form field (EditorData) + setter actions │
|
||||
│ - persists data only (editorDataOf); migrateEditorState │
|
||||
├────────────────────────────────────────────────────────────────────┤
|
||||
@@ -274,7 +276,8 @@ export const GENRE_TAG_REGISTRY: Record<string, (gameName: string) => string[]>
|
||||
│ - capped by the History Limit setting (10–500, default 100) │
|
||||
├────────────────────────────────────────────────────────────────────┤
|
||||
│ SettingsStore — "ytdescgen-settings", v12 │
|
||||
│ - theme · hideScrollbars · appLanguage · titleFormat │
|
||||
│ - theme · hideScrollbars · singleKeyShortcuts · appLanguage │
|
||||
│ - titleFormat │
|
||||
│ - description toggles · strictMode · copyAllIncludesTags · … │
|
||||
│ - healSettings on every load; consent and UI state never exported │
|
||||
├────────────────────────────────────────────────────────────────────┤
|
||||
@@ -296,7 +299,7 @@ Every persisted store uses Zustand `persist` with `createJSONStorage(() => local
|
||||
|
||||
`src/config/library-fields.ts` is the one list of which editor fields each kind of library item carries — the save forms, Apply, backups and imports all read it:
|
||||
|
||||
- **Profile** = the channel: `PROFILE_FIELDS` (channel name, emails, social, rig, resolution / fps / graphics preset, ad text, Vietnamese donate fields, community links).
|
||||
- **Profile** = the channel: `PROFILE_FIELDS` (channel name, emails, social, rig, resolution (+ upscaled from) / fps / graphics preset, ad text, Vietnamese donate fields, community links).
|
||||
- **Preset** = the game: `PRESET_FIELDS` (names, genres, platform, store links and their types, publisher, content warnings, language patch, game version, art style, the skip-graphics-settings switch, playlist link).
|
||||
- **Template** = the whole form (every field since v1.0.0).
|
||||
- `PER_VIDEO_FIELDS` is what belongs to one video only (boss, chapter, timestamps, pinned comment, endings, …).
|
||||
@@ -388,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)
|
||||
|
||||
@@ -419,7 +422,7 @@ React app (src/), built with TAURI_ENV_PLATFORM set
|
||||
- Android: universal .apk
|
||||
```
|
||||
|
||||
**The webview never names a path.** Since v1.0.0 the Rust side exposes only name-only commands for its own files (`backup_*` and `log_*` under the app data directory, `recover_legacy_data`) and two commands that open the native Save / Open dialog themselves (`export_text_file`, `import_text_file`: text formats only, imports capped at 20 MB). The capability file grants the webview only `core:default` and `opener:default`; the fs and shell plugins are gone. The JavaScript bridge is `src/utils/native.ts`, used by `file-ops.ts` (exports and imports on every platform), `log-storage.ts` and `utils/backup/`. Details: [PACKAGING.md](PACKAGING.md).
|
||||
**The webview never names a path.** Since v1.0.0 the Rust side exposes only name-only commands for its own files (`backup_*` and `log_*` under the app data directory, `recover_legacy_data`) and two commands that open the native Save / Open dialog themselves (`export_text_file`, `import_text_file`: text formats only, imports capped at 20 MB). The capability file grants the webview only `core:default`, `opener:default` and (v1.5.1, for the zoom hotkeys' macOS/Linux polyfill) `core:webview:allow-set-webview-zoom`; the fs and shell plugins are gone. The JavaScript bridge is `src/utils/native.ts`, used by `file-ops.ts` (exports and imports on every platform), `log-storage.ts` and `utils/backup/`. Details: [PACKAGING.md](PACKAGING.md).
|
||||
|
||||
Tauri advantages over Electron:
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -166,6 +166,8 @@ The game itself is made or run with generative AI — a story _about_ AI is "AI
|
||||
|
||||
Selected notes are rendered in a `▸ 🛠 TECH NOTES` block right after the content warnings, in the order you picked them. They describe the recording, not the game. Facts that have their own field — difficulty, endings shown, language patch, game version, the upscaler and frame generation in Video settings — are not repeated here.
|
||||
|
||||
When **Upscaled from** is set in Video settings (v1.5.0), one more note is added on its own, after yours: _Upscaled to a higher resolution in editing — fine detail is reconstructed, so text, textures and edges may look slightly different from the original image._ It is not in the checklist below; the Upscale line in Video settings says what was upscaled to what.
|
||||
|
||||
### Audio (5)
|
||||
|
||||
Some sections muted (copyright) · Volume reduced (copyright) · Game music replaced (copyright) · Cutscene audio muted only · Original audio kept (claim risk)
|
||||
|
||||
+13
-9
@@ -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
|
||||
@@ -246,3 +249,4 @@ docs/I18N.md). The restart advice above still applies to all of them.
|
||||
- [PACKAGING.md](./PACKAGING.md) — Tauri release builds and signing.
|
||||
- [Top-level CONTRIBUTING.md](../CONTRIBUTING.md) — PR process, commit conventions, auto-ignore rules.
|
||||
- [Top-level SECURITY.md](../SECURITY.md) — reporting vulnerabilities.
|
||||
- [Top-level ACCESSIBILITY.md](../ACCESSIBILITY.md) — what works with assistive technology, and the checklist for UI changes.
|
||||
+142
-53
@@ -1,6 +1,6 @@
|
||||
# Complete Feature List
|
||||
|
||||
## YTDescGen — All Features (v1.3.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)
|
||||
|
||||
@@ -142,7 +141,7 @@ is now "X (Twitter)" (same `twitter` id, so saved links still load).
|
||||
Bank, Cake by VPBank and Timo; a profile saved with OceanBank, CBBank or
|
||||
DongA Bank is offered the new name in one click.
|
||||
|
||||
## 💻 Rig Fields (10 fields)
|
||||
## 💻 Rig Fields (11 fields)
|
||||
|
||||
Printed in this order, with labels in the output language.
|
||||
|
||||
@@ -158,6 +157,16 @@ Printed in this order, with labels in the output language.
|
||||
| `capture` | Capture Software | Text | OBS Studio 31 |
|
||||
| `controller` | Controller | Text | DualSense / Xbox Wireless Controller |
|
||||
| `video_editor` | Video Editor | Dropdown + version | DaVinci Resolve Studio 19.1 |
|
||||
| `lut` | LUT | Text with suggestions (DaVinci Resolve's own LUTs) — v1.4.0 | Arri Alexa LogC to Rec709 |
|
||||
|
||||
**LUT (v1.4.0)** — the LUT you grade with, on its own line right under the
|
||||
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,
|
||||
@@ -179,11 +188,11 @@ Every block is optional and skipped when empty. In order:
|
||||
6. 🎮 Store links (heading depends on paid vs. free / demo links)
|
||||
7. © Game copyright line (opt-in)
|
||||
8. 🧪 Playtest / early access (when a playtest link is set)
|
||||
9. 🖥 Video settings (skipped for games without graphics settings)
|
||||
9. 🖥 Video settings (games without graphics settings keep only the upscale and video-style lines)
|
||||
10. 💻 My rig
|
||||
11. 🧩 Mod list (Modded Gameplay only)
|
||||
12. ⚠️ Content warnings (257 IDs across 13 groups, incl. AI-generated content — v1.2.0)
|
||||
13. 🛠 Tech notes (25 IDs across 5 groups)
|
||||
13. 🛠 Tech notes (25 IDs across 5 groups, plus an automatic note for an upscaled video — v1.5.0)
|
||||
14. Translation-quality note (opt-in; not for English or Vietnamese)
|
||||
15. 🎁 Sponsor credit (opt-in)
|
||||
16. 🤝 Sponsors & partners (opt-in)
|
||||
@@ -201,6 +210,48 @@ Every block is optional and skipped when empty. In order:
|
||||
27. Hashtags (1–3, auto-generated)
|
||||
```
|
||||
|
||||
**Upscaled video (v1.5.0)** — Video settings › **Upscaled from** is for
|
||||
footage recorded at a lower resolution and upscaled in the video editor
|
||||
(1440p → 4K, say). The title badge reads `[4K Upscaled]` (`[2K Upscaled]`,
|
||||
`[4K Upscaled 120FPS]`; the word in the output language), the Video settings
|
||||
block gets a line under the resolution — the editor taken from My Rig:
|
||||
|
||||
```
|
||||
Video: 4K - 60 FPS
|
||||
Upscale: 1440p → 4K (DaVinci Resolve Studio 21.2)
|
||||
```
|
||||
|
||||
and Tech notes gets a note of its own: _Upscaled to a higher resolution in
|
||||
editing — fine detail is reconstructed, so text, textures and edges may look
|
||||
slightly different from the original image._ It isn't in the checklist and
|
||||
goes away with the upscale. Only resolutions below the video's are offered;
|
||||
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 —
|
||||
@@ -254,6 +305,7 @@ per platform).
|
||||
| Pool | Triggered By | Sample Output |
|
||||
| ------------ | --------------------------------- | ------------------------------------------------------------------------ |
|
||||
| Game name | Always | `[game]` (shortened to fit 30 characters) |
|
||||
| Boss name | Boss Fight / Boss No Hit (v1.4.0) | `[boss]` — the Boss Name field, without punctuation |
|
||||
| Core | Always, in the output language | `[game] gameplay`, `[game] no commentary`, `gameplay no commentary` |
|
||||
| Genre | Each selected genre | `horror game no commentary`, `RPG gameplay no commentary` |
|
||||
| VideoType | Video type | `[game] boss fight`, `[game] speedrun`, `[game] all endings` |
|
||||
@@ -276,6 +328,17 @@ per platform).
|
||||
Game names are cleaned of characters YouTube splits tags on (`,` `;` `|`) and
|
||||
of ™ / ® / ©.
|
||||
|
||||
**Boss name tag (v1.4.0)** — Boss Fight and Boss No Hit videos get the boss's
|
||||
name as a tag of its own, right after the game's name, so fitting the list to
|
||||
500 characters never drops it. Marks that add nothing to a search go: `,` `:`
|
||||
`;` `!` `?` quotes, brackets, `&`, `「」` `・` `、`, ™, emoji. A dot is kept
|
||||
between digits ("Phase 2.0"), dropped between initials ("S.T.A.L.K.E.R." →
|
||||
`STALKER`) and a space anywhere else ("Mr. X" / "Mr.X" → `Mr X`); apostrophes
|
||||
and hyphens stay inside a word ("Mergo's Wet Nurse", "T-103"). "Gael, Slave
|
||||
Knight" → `Gael Slave Knight`. Over 30 characters, the name before its title is
|
||||
used ("Loretta, Knight of the Haligtree" → `Loretta`), otherwise the leading
|
||||
words that fit.
|
||||
|
||||
## ⚡ Faster Data Entry (v1.0.0)
|
||||
|
||||
- **Quick start** — at the top of the editor, pick a **channel profile** and
|
||||
@@ -314,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.
|
||||
@@ -329,19 +392,39 @@ a pasted store link can each be undone from the toast they show.
|
||||
- Dark and light themes; scrollbars can be hidden (v1.1.0); animated icons
|
||||
follow the system's _reduce motion_; controls grow on touch screens.
|
||||
|
||||
### ♿ Accessibility (v1.5.1)
|
||||
|
||||
The statement is [ACCESSIBILITY.md](../ACCESSIBILITY.md) (also in the Legal
|
||||
Center, in English and Vietnamese). In short:
|
||||
|
||||
- **Keyboard** — everything works without a mouse: skip link, visible focus,
|
||||
dialogs that keep and return focus, the shortcuts below; the bare `?` can
|
||||
be turned off (Settings › Editor › Single-key shortcuts, WCAG 2.1.4).
|
||||
- **Screen readers** — named controls and labelled fields, announced
|
||||
confirmations and errors, the new page's name read out after a navigation
|
||||
(`RouteAnnouncer`), translated toast labels, and generated text marked with
|
||||
its language (`lang`) so it is read with the right voice.
|
||||
- **Vision** — both themes at WCAG AA text contrast, checked by
|
||||
`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_ issue template on the GitLab mirror
|
||||
(`.gitlab/issue_templates/Accessibility.md`), or `contact@` with
|
||||
`[Accessibility]`.
|
||||
|
||||
## 💾 Data Persistence
|
||||
|
||||
Everything stays on the device: the browser's storage for
|
||||
`ytgenerator.stream` on the web, the app's own storage on desktop and
|
||||
Android. There is no account and no server-side copy.
|
||||
|
||||
| Item | What it holds | Where |
|
||||
| ----------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
|
||||
| **Profile** — the channel | Channel name; contact emails (general, advertising, game keys, copyright); social and donate links; community links; Vietnamese bank / MoMo / ZaloPay details; rig; resolution, FPS and graphics preset; sponsors & partners text | Profiles › Profiles |
|
||||
| **Game preset** — the game | Game name (+ per-language names); genres; platform; store links and their type (paid / free / demo); publisher / developer; content warnings; language patch; game version; art style; "no graphics settings"; series playlist | Profiles › Game presets |
|
||||
| **Template** — the whole form | Every editor field | Profiles › Templates |
|
||||
| **History** | One entry per video — game, video type, language, genres, title, description, tags. Saving the same video again updates its entry (v1.0.0) | History |
|
||||
| **Draft** | The editor form, saved as you type | — |
|
||||
| Item | What it holds | Where |
|
||||
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------- |
|
||||
| **Profile** — the channel | Channel name; contact emails (general, advertising, game keys, copyright); social and donate links; community links; Vietnamese bank / MoMo / ZaloPay details; rig; resolution (and what it was upscaled from), FPS and graphics preset; sponsors & partners text | Profiles › Profiles |
|
||||
| **Game preset** — the game | Game name (+ per-language names); genres; platform; store links and their type (paid / free / demo); publisher / developer; content warnings; language patch; game version; art style; "no graphics settings"; series playlist | Profiles › Game presets |
|
||||
| **Template** — the whole form | Every editor field | Profiles › Templates |
|
||||
| **History** | One entry per video — game, video type, language, genres, title, description, tags. Saving the same video again updates its entry (v1.0.0) | History |
|
||||
| **Draft** | The editor form, saved as you type | — |
|
||||
|
||||
The field lists live in `src/config/library-fields.ts`. Profiles, presets and
|
||||
templates export and import as JSON; History exports as **CSV** or JSON.
|
||||
@@ -371,39 +454,42 @@ 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 |
|
||||
| `Ctrl/⌘+/` or `?` | Show keyboard shortcuts (`?` only outside text fields) |
|
||||
| `Escape` | Close modal |
|
||||
| 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 |
|
||||
|
||||
## 🔧 Settings
|
||||
|
||||
| Setting | Type | Default | Description |
|
||||
| -------------------------- | ------------------------------- | ---------------- | ---------------------------------------------------------------------------------- |
|
||||
| Theme | dark / light | dark | App color theme |
|
||||
| Hide scrollbars | boolean | false | v1.1.0. No scrollbar anywhere in the app; wheel, touch and keyboard still scroll |
|
||||
| App Language | SupportedLanguage | browser-detected | Language of the interface |
|
||||
| Default Output Language | SupportedLanguage | browser-detected | Language a new draft starts in (first run, Start over) |
|
||||
| Show Character Count | boolean | true | Display char counters on output. **Does not** affect copy blocking |
|
||||
| Compact Tag Display | boolean | false | Tags as comma list vs chip display |
|
||||
| Copy All includes the tags | boolean | false | v1.0.0. Copy All copies title, description, then tags |
|
||||
| **Strict Mode** | boolean | **false** | v0.35.0. Blocks Generate / Copy / Export while any field has a hard error |
|
||||
| Show quality badge | boolean | true | `[2K 60FPS]`-style badge in the title when resolution or FPS is above the defaults |
|
||||
| Title order | game first / video first | game first | v1.0.0. "Hades — Part 3" or "Part 3 — Hades" |
|
||||
| Quality badge position | prefix / middle / suffix | middle | Where the badge sits in the title |
|
||||
| Segment separator | em dash / hyphen / colon / pipe | em dash | Characters come from each locale |
|
||||
| Badge case | upper / lower | upper | "2K" or "2k" |
|
||||
| Include Multilingual Tags | boolean | true | Add tags in the output language |
|
||||
| Include Trending Tags | boolean | true | Add year-based trending tags |
|
||||
| Hashtag Count | 1-3 | 3 | Number of hashtags to generate |
|
||||
| Genre Playlists | map | `{}` | One playlist URL per genre (42), collapsed by default |
|
||||
| History Limit | 10–500 | 100 | Max history entries to keep |
|
||||
| Log Retention | 1–90 days | 7 | Log files older than this are deleted at boot |
|
||||
| Setting | Type | Default | Description |
|
||||
| -------------------------- | ------------------------------- | ---------------- | ---------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| Theme | dark / light | dark | App color theme |
|
||||
| Hide scrollbars | boolean | false | v1.1.0. No scrollbar anywhere in the app; wheel, touch and keyboard still scroll |
|
||||
| App Language | SupportedLanguage | browser-detected | Language of the interface |
|
||||
| Default Output Language | SupportedLanguage | browser-detected | Language a new draft starts in (first run, Start over) |
|
||||
| Show Character Count | boolean | true | Display char counters on output. **Does not** affect copy blocking |
|
||||
| Compact Tag Display | boolean | false | Tags as comma list vs chip display |
|
||||
| Copy All includes the tags | boolean | false | v1.0.0. Copy All copies title, description, then tags |
|
||||
| Single-key shortcuts | boolean | true | v1.5.1. `?` opens the shortcut list outside text fields; off leaves Ctrl/⌘ + / only (speech input, stray key presses) |
|
||||
| **Strict Mode** | boolean | **false** | v0.35.0. Blocks Generate / Copy / Export while any field has a hard error |
|
||||
| Show quality badge | boolean | true | `[2K 60FPS]`-style badge in the title when resolution or FPS is above the defaults; `[4K Upscaled]` for an upscaled video (v1.5.0) |
|
||||
| Title order | game first / video first | game first | v1.0.0. "Hades — Part 3" or "Part 3 — Hades" |
|
||||
| Quality badge position | prefix / middle / suffix | middle | Where the badge sits in the title |
|
||||
| Segment separator | em dash / hyphen / colon / pipe | em dash | Characters come from each locale |
|
||||
| Badge case | upper / lower | upper | "2K" or "2k" |
|
||||
| Include Multilingual Tags | boolean | true | Add tags in the output language |
|
||||
| Include Trending Tags | boolean | true | Add year-based trending tags |
|
||||
| Hashtag Count | 1-3 | 3 | Number of hashtags to generate |
|
||||
| Genre Playlists | map | `{}` | One playlist URL per genre (42), collapsed by default |
|
||||
| History Limit | 10–500 | 100 | Max history entries to keep |
|
||||
| Log Retention | 1–90 days | 7 | Log files older than this are deleted at boot |
|
||||
|
||||
"Browser-detected" means the browser's language when it is one of the eight,
|
||||
otherwise English. `Default Genre` and `Auto-save Draft` were removed in
|
||||
@@ -450,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)
|
||||
|
||||
@@ -464,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 |
|
||||
@@ -512,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
@@ -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
@@ -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).
|
||||
+51
-49
@@ -2,7 +2,7 @@
|
||||
|
||||
## YTDescGen — Tauri 2 Desktop and Android Apps
|
||||
|
||||
Reflects **v1.3.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.3.2",
|
||||
"version": "1.7.0",
|
||||
"identifier": "com.skullmute.ytdescgen",
|
||||
"build": {
|
||||
"beforeBuildCommand": "npm run build",
|
||||
@@ -81,7 +81,8 @@ The icons come from the one brand logo: `npx tauri icon assets/brand/logo.svg` r
|
||||
"resizable": true,
|
||||
"maximizable": true,
|
||||
"fullscreen": false,
|
||||
"center": true
|
||||
"center": true,
|
||||
"zoomHotkeysEnabled": true
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
@@ -121,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`
|
||||
@@ -138,12 +139,14 @@ Notes:
|
||||
```json
|
||||
{
|
||||
"identifier": "default",
|
||||
"description": "Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions.",
|
||||
"description": "Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions. set-webview-zoom backs the Ctrl/Cmd +/- zoom polyfill Tauri injects on macOS and Linux (zoomHotkeysEnabled).",
|
||||
"windows": ["main"],
|
||||
"permissions": ["core:default", "opener:default"]
|
||||
"permissions": ["core:default", "core:webview:allow-set-webview-zoom", "opener:default"]
|
||||
}
|
||||
```
|
||||
|
||||
`zoomHotkeysEnabled` (v1.5.1) lets the desktop app zoom with Ctrl/⌘ + = and Ctrl/⌘ + − (WebView2's own zoom control on Windows, which also takes Ctrl + mouse wheel; a polyfill on macOS and Linux that calls `set_webview_zoom`, hence the permission). Android has no zoom hotkeys; pinch zoom works there.
|
||||
|
||||
The webview can call Tauri's core APIs, the opener plugin (external links open in the system browser, mail client or dialler) and the app's own commands — nothing else. v1.0.0 removed the `fs` and `shell` plugins and their permissions. `tauri-plugin-dialog` is still a dependency, but only Rust uses it: the webview has no dialog permission and no dialog JavaScript package. (`tauri-plugin-fs` still appears in `Cargo.lock` as a dependency of the dialog plugin; the app does not register it.)
|
||||
|
||||
### 3. Rust Backend (src-tauri/src)
|
||||
@@ -208,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.
|
||||
@@ -300,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
|
||||
@@ -327,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-14` | `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-14 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
|
||||
|
||||
@@ -473,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 |
|
||||
| ------------------------- | --------------------------------------------------------- |
|
||||
@@ -508,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
|
||||
|
||||
|
||||
+112
-13
@@ -2,10 +2,12 @@
|
||||
|
||||
## YTDescGen — Phased Development Plan
|
||||
|
||||
> **Status (2026-10-27): v1.3.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.
|
||||
|
||||
---
|
||||
|
||||
@@ -343,10 +345,106 @@ Worker (Workers Rate Limiting bindings), behind a WAF rate limiting rule at
|
||||
the zone —
|
||||
[CHANGELOG.md](../CHANGELOG.md#v132--2026-10-27).
|
||||
|
||||
## v1.4.0 — LUT field, boss name tag ✅ SHIPPED 2026-11-06
|
||||
|
||||
A **LUT** field in My Rig, printed on its own line under the video editor
|
||||
(DaVinci Resolve's own LUTs offered while typing), the **boss's name as a
|
||||
tag** in Boss Fight and Boss No Hit videos, and this week's dependency
|
||||
updates — [CHANGELOG.md](../CHANGELOG.md#v140--2026-11-06).
|
||||
|
||||
## v1.5.0 — Upscaled video ✅ SHIPPED 2026-11-08
|
||||
|
||||
**Upscaled from** in Video settings, for footage upscaled in the video
|
||||
editor: a `[4K Upscaled]` title badge, an `Upscale: 1440p → 4K (…)` line in
|
||||
Video settings and an automatic tech note that fine detail may differ from
|
||||
the original image — [CHANGELOG.md](../CHANGELOG.md#v150--2026-11-08).
|
||||
|
||||
## v1.5.1 — Accessibility ✅ SHIPPED 2026-11-09
|
||||
|
||||
An accessibility statement ([ACCESSIBILITY.md](../ACCESSIBILITY.md), also in
|
||||
the Legal Center) and the fixes an audit against WCAG 2.2 AA turned up: AA
|
||||
contrast in both themes, generated text marked with its language, the page's
|
||||
name read out after a navigation, a switch for the single-key `?` shortcut,
|
||||
and zoom hotkeys in the desktop app —
|
||||
[CHANGELOG.md](../CHANGELOG.md#v151--2026-11-09).
|
||||
|
||||
## v1.5.2 — Maintenance ✅ SHIPPED 2026-11-10
|
||||
|
||||
Tauri 2.12.5 with the fixes its window, webview and single-instance layers
|
||||
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
|
||||
|
||||
@@ -393,7 +491,8 @@ the zone —
|
||||
|
||||
## 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
|
||||
@@ -411,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.3.2 (2026-10-27).**
|
||||
**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.**
|
||||
+66
-57
@@ -2,7 +2,7 @@
|
||||
|
||||
## YTDescGen — Implementation Details
|
||||
|
||||
Reflects **v1.3.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.3.2**. The module map and data flow are in [ARCHITECTURE.md](ARCHI
|
||||
```json
|
||||
{
|
||||
"name": "yt-desc-gen",
|
||||
"version": "1.3.2",
|
||||
"version": "1.7.0",
|
||||
"private": true,
|
||||
"license": "Apache-2.0",
|
||||
"type": "module",
|
||||
@@ -57,47 +57,47 @@ Reflects **v1.3.2**. The module map and data flow are in [ARCHITECTURE.md](ARCHI
|
||||
"@tauri-apps/plugin-opener": "^2.7.2",
|
||||
"clsx": "^2.1.1",
|
||||
"cmdk": "^1.1.1",
|
||||
"i18next": "^26.4.5",
|
||||
"i18next-resources-to-backend": "^1.2.3",
|
||||
"lucide-react": "^1.57.0",
|
||||
"i18next": "~26.6.0",
|
||||
"i18next-resources-to-backend": "^1.2.4",
|
||||
"lucide-react": "^1.66.0",
|
||||
"motion": "^13.5.1",
|
||||
"radix-ui": "^1.8.1",
|
||||
"react": "^19.3.0",
|
||||
"react-dom": "^19.3.0",
|
||||
"react-i18next": "^17.0.16",
|
||||
"react-router-dom": "^7.18.4",
|
||||
"simple-icons": "^16.33.0",
|
||||
"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",
|
||||
"sonner": "^2.0.8",
|
||||
"zustand": "^5.0.15"
|
||||
"zustand": "^5.0.16"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@resvg/resvg-js": "2.6.2",
|
||||
"@tailwindcss/postcss": "^4.3.3",
|
||||
"@tauri-apps/cli": "2.12.3",
|
||||
"@tailwindcss/postcss": "^4.3.4",
|
||||
"@tauri-apps/cli": "2.12.4",
|
||||
"@testing-library/jest-dom": "^7.0.1",
|
||||
"@testing-library/react": "^16.3.3",
|
||||
"@types/node": "^26.6.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.1.2",
|
||||
"@vitejs/plugin-react": "^6.2.1",
|
||||
"@vitest/coverage-v8": "^4.1.12",
|
||||
"autoprefixer": "^10.6.1",
|
||||
"eslint": "^10.12.0",
|
||||
"autoprefixer": "^10.6.2",
|
||||
"eslint": "^10.14.0",
|
||||
"eslint-plugin-react-hooks": "^7.1.1",
|
||||
"knip": "^6.41.0",
|
||||
"marked": "18.1.1",
|
||||
"postcss": "^8.5.30",
|
||||
"knip": "^6.44.1",
|
||||
"marked": "18.1.3",
|
||||
"postcss": "^8.5.32",
|
||||
"prettier": "^3.9.10",
|
||||
"prettier-plugin-tailwindcss": "^0.8.1",
|
||||
"tailwindcss": "^4.3.3",
|
||||
"tsx": "^4.23.15",
|
||||
"typescript": "npm:@typescript/typescript6@^6.0.2",
|
||||
"typescript-eslint": "^8.71.2",
|
||||
"vite": "^8.3.4",
|
||||
"typescript-eslint": "^8.72.1",
|
||||
"vite": "^8.3.5",
|
||||
"vitest": "^4.1.12",
|
||||
"wrangler": "4.149.0"
|
||||
"wrangler": "4.156.2"
|
||||
}
|
||||
}
|
||||
```
|
||||
@@ -107,9 +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 `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
|
||||
@@ -275,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
|
||||
{
|
||||
@@ -345,9 +346,10 @@ export interface GeneratorInput {
|
||||
// Video-type specific: partNumber, bossName, dlcName, challengeName, modName, modList,
|
||||
// liveUrl, scheduledTime, gachaQuestType, chapterName, questName, characterName,
|
||||
// anniversaryYear, gachaVersion.
|
||||
// Video settings: resolution, fps, graphicsPreset (+ graphicsPresetCustom),
|
||||
// skipGraphicsSettings, rayTracingModes, frameGenVendor, frameGenMultiplier,
|
||||
// upscaleQuality, artStyle, videoStyleEra, versionInfo.
|
||||
// Video settings: resolution, upscaledFrom (v1.5.0), fps, graphicsPreset (+ graphicsPresetCustom),
|
||||
// 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,
|
||||
@@ -414,12 +416,12 @@ export interface TitleFormatConfig {
|
||||
**Tag length, counted the way YouTube counts it** (`tag-generator.ts`):
|
||||
|
||||
- `youtubeTagsLength(tags)` = the sum of each tag's length, plus 2 for the quotes YouTube puts around any tag containing whitespace, plus one comma between tags. The old measure (length of the `", "`-joined string) ignored the quotes; 15 of 51 real tag sets were over 500 by YouTube's count while showing as under.
|
||||
- `generateTags` collects, in priority order: the game name (bare, and a shortened form for composites), core tags for the output language, genre tags for every selected genre, video-type tags, platform tags, quality tags, the output language's multilingual tags (setting), trending tags for the first genre (setting), and the publisher/developer name. It then de-duplicates case-insensitively, drops tags over 30 characters, and `trimToCharLimit(tags, 500)` keeps tags in priority order while they fit — a tag that doesn't fit is skipped and the shorter ones after it are still tried.
|
||||
- `generateTags` collects, in priority order: the game name (bare, and a shortened form for composites), the boss name for the video types whose `extraFields` include `bossName` (v1.4.0 — `bossNameTag`: NFC, every mark but in-word `'` `’` `-` and digit-to-digit `.` removed, dots between initials dropped, the name before its title or the leading words when over 30 characters), core tags for the output language, genre tags for every selected genre, video-type tags, platform tags, quality tags, the output language's multilingual tags (setting), trending tags for the first genre (setting), and the publisher/developer name. It then de-duplicates case-insensitively, drops tags over 30 characters, and `trimToCharLimit(tags, 500)` keeps tags in priority order while they fit — a tag that doesn't fit is skipped and the shorter ones after it are still tried.
|
||||
- Platform tags use `PlatformConfig.tagName` ("Steam", "Epic Games", "itch.io"), not the id; the publisher's own site has no tag name and adds no platform tags.
|
||||
|
||||
**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), and values go through `formatRigValue` (`gpu:nvidia-rtx-5080` → "NVIDIA GeForce RTX 5080"). 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`):
|
||||
|
||||
@@ -473,7 +475,7 @@ interface EditorActions {
|
||||
}
|
||||
|
||||
/** Bump together with a new step in migrateEditorState. */
|
||||
export const EDITOR_STORE_VERSION = 20;
|
||||
export const EDITOR_STORE_VERSION = 22;
|
||||
|
||||
export const useEditorStore = create<EditorData & EditorActions>()(
|
||||
persist(
|
||||
@@ -507,7 +509,7 @@ export function migrateEditorState(persistedState: unknown, version: number): Ed
|
||||
|
||||
| Store | localStorage key | Version | Migration (exported) |
|
||||
| ------------------ | ------------------------ | ----------------------------- | ---------------------------------------------------------------------------------------------- |
|
||||
| `useEditorStore` | `ytdescgen-editor-draft` | `EDITOR_STORE_VERSION` = 20 | `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` |
|
||||
@@ -520,6 +522,12 @@ v1.1.0: editor v20 back-fills `copyrightEmail` (the fourth split contact line) w
|
||||
|
||||
v1.2.0: nine content-warning ids and one tech note, and no version bump anywhere — the lists only widen. The backup whitelist (`choiceList` in `src/utils/backup/sanitize.ts`) checks against `CONTENT_WARNINGS` / `TECH_NOTES`, so a 1.1.0 build restoring a 1.2.0 backup keeps everything except the ids it doesn't know.
|
||||
|
||||
v1.5.0: editor v21 back-fills `upscaledFrom` (recorded at a lower resolution, upscaled to `resolution` in the video editor) with `""` and turns an unknown value into `""`; `normalizeEditorPatch` does the same for an applied profile or template, and the backup whitelist checks it against `UPSCALED_FROM_OPTIONS`. `Profile.upscaledFrom` is optional, so the profile store stays at v3. The engine's own tech note (`AUTO_TECH_NOTES`, `editor_upscaled`) is never stored, so `techNotes` and its whitelist don't change.
|
||||
|
||||
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.
|
||||
@@ -582,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:
|
||||
|
||||
@@ -605,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
|
||||
@@ -623,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`: 1017 tests in 52 files at v1.3.2. Directories: `tests/engine`, `store`, `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):
|
||||
|
||||
@@ -687,14 +696,14 @@ 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 |
|
||||
| ----------------------------------------- | ---------- | -------- | --------- | ----- |
|
||||
| `src/engine/**` | 88 % | 85 % | 60 % | 88 % |
|
||||
| `worker/**` (excluding `worker/index.ts`) | 95 % | 85 % | 95 % | 95 % |
|
||||
|
||||
Guard tests worth knowing: `tests/hooks/render-options-parity.test.ts` (settings → engine options), `tests/hooks/generator-input-mapping.test.ts` (editor → engine input), `tests/i18n/locale-registration.test.ts` (language registration in both directions), `tests/config/content-warning-groups.test.ts` and `tech-note-groups.test.ts` (every id in exactly one group, with an editor label and a description line in `_schema.json` — v1.2.0), the genre/tag-pool sync in `tests/engine/tag-generator.test.ts`, and `tests/worker/headers.test.ts` (keeps the Worker's baseline headers in step with `public/_headers`). The Rust side has its own `cargo test` suite (name validation, path rejection, pruning, legacy recovery, dialog filters).
|
||||
Guard tests worth knowing: `tests/hooks/render-options-parity.test.ts` (settings → engine options), `tests/hooks/generator-input-mapping.test.ts` (editor → engine input), `tests/i18n/locale-registration.test.ts` (language registration in both directions), `tests/config/content-warning-groups.test.ts` and `tech-note-groups.test.ts` (every id in exactly one group, with an editor label and a description line in `_schema.json` — v1.2.0), the genre/tag-pool sync in `tests/engine/tag-generator.test.ts`, `tests/worker/headers.test.ts` (keeps the Worker's baseline headers in step with `public/_headers`), and `tests/styles/contrast.test.ts` (v1.5.1: every text token reaches 4.5:1 on the surfaces in both themes, white text on the `*-solid` fills, 3:1 for marks on `accent`). The Rust side has its own `cargo test` suite (name validation, path rejection, pruning, legacy recovery, dialog filters).
|
||||
|
||||
## 7. YouTube Character Limits Reference
|
||||
|
||||
|
||||
@@ -0,0 +1,129 @@
|
||||
# Khả năng tiếp cận
|
||||
|
||||
> **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-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 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
|
||||
|
||||
Chúng tôi hướng tới [WCAG 2.2](https://www.w3.org/TR/WCAG22/) mức **AA**. Đây là mục tiêu, không phải tuyên bố đã đạt chuẩn: YTDescGen là dự án mã nguồn mở do một người duy trì và chưa được kiểm định độc lập. Khi phát hiện chỗ chưa đạt, chỗ đó sẽ được sửa hoặc ghi vào mục [Hạn chế đã biết](#hạn-chế-đã-biết).
|
||||
|
||||
## Những gì đang hoạt động
|
||||
|
||||
### Bàn phím
|
||||
|
||||
- Mọi trang, menu và hộp thoại đều dùng được chỉ bằng bàn phím. **Chuyển đến nội dung** là điểm dừng đầu tiên trên các trang của ứng dụng, và một đường viền hiện rõ vị trí đang được focus.
|
||||
- Hộp thoại giữ focus bên trong khi đang mở, đóng bằng **Esc**, rồi trả focus về đúng nút đã mở nó.
|
||||
- Phím tắt dùng được trên mọi trang:
|
||||
- **Ctrl/⌘ + K**: command palette (mở trang bất kỳ, sao chép, profile, preset, template, đổi theme và ngôn ngữ).
|
||||
- **Ctrl/⌘ + G** hoặc **Ctrl/⌘ + Enter**: sang trang Kết quả.
|
||||
- **Ctrl/⌘ + Shift + C**: Sao chép tất cả.
|
||||
- **Ctrl/⌘ + S**: lưu vào Lịch sử.
|
||||
- **Ctrl/⌘ + B**: thu gọn/mở thanh bên.
|
||||
- **Alt + T**: tới vùng thông báo.
|
||||
- **Ctrl/⌘ + /** (hoặc **?**): danh sách đầy đủ.
|
||||
- Phím tắt một phím **?** có thể tắt ở **Cài đặt › Trình soạn › Phím tắt một phím**, dành cho người nhập bằng giọng nói hoặc hay bấm nhầm phím.
|
||||
|
||||
### Trình đọc màn hình
|
||||
|
||||
- Mọi nút đều có tên, kể cả nút chỉ có biểu tượng, và mọi ô nhập đều có nhãn. Gợi ý và thông báo lỗi được gắn với đúng ô của nó.
|
||||
- Các xác nhận và lỗi đều được đọc lên ("Đã sao chép!", "Đã lưu vào lịch sử", lý do không sao chép được), các vấn đề của Strict Mode cũng vậy.
|
||||
- Khi bạn mở trang khác, tên trang được đọc lên. Focus vẫn ở liên kết bạn vừa dùng.
|
||||
- Mỗi trang có tiêu đề riêng và một tiêu đề chính duy nhất. Ngôn ngữ của trang theo ngôn ngữ giao diện bạn chọn (tám ngôn ngữ).
|
||||
- Tiêu đề, mô tả và tag được tạo ra đều gắn ngôn ngữ mà chúng được viết, nên mô tả tiếng Nhật được đọc bằng giọng tiếng Nhật kể cả khi giao diện đang là tiếng Việt.
|
||||
|
||||
### Thị giác
|
||||
|
||||
- Có theme tối và theme sáng, cả hai đều đạt độ tương phản WCAG AA cho chữ (4.5:1) trên mọi nền. Một test giữ cho điều này không bị phá ([tests/styles/contrast.test.ts](../../../tests/styles/contrast.test.ts)).
|
||||
- Bố cục co giãn từ màn hình rộng xuống bề rộng điện thoại, nên khi phóng to, nội dung dồn thành một cột thay vì tràn ra ngoài màn hình.
|
||||
- Ứng dụng desktop phóng to/thu nhỏ bằng **Ctrl/⌘ + =** và **Ctrl/⌘ + −** (trên Windows dùng được cả Ctrl + con lăn chuột). Trên Android, dùng hai ngón tay để phóng to.
|
||||
- Ở chế độ High Contrast của Windows (forced colours), đường viền focus vẫn hiện.
|
||||
- **Cài đặt › Giao diện › Ẩn thanh cuộn** bỏ các thanh cuộn; vẫn cuộn được bằng bàn phím, con lăn chuột và cảm ứng.
|
||||
|
||||
### Chuyển động
|
||||
|
||||
- Khi bật **Giảm chuyển động** (Reduce motion) trong hệ điều hành, các hiệu ứng động và cuộn mượt được tắt.
|
||||
|
||||
### Cảm ứng
|
||||
|
||||
- Trên màn hình cảm ứng, nút và ô nhập lớn lên khoảng 44 px, các nút đóng/bỏ qua nhỏ cũng vậy.
|
||||
|
||||
### Trang kiểm tra của website
|
||||
|
||||
- Bước kiểm tra Cloudflare Turnstile trước khi vào website thường tự xong. Trạng thái của nó ("Đang kiểm tra trình duyệt…", lỗi) được đọc lên, và dùng được bằng bàn phím. Xem [Hạn chế đã biết](#hạn-chế-đã-biết) nếu Cloudflare yêu cầu bạn giải thử thách.
|
||||
|
||||
## Cách kiểm tra
|
||||
|
||||
- **Thủ công.** Người duy trì dùng YTDescGen chỉ bằng bàn phím (rút chuột) và bằng Windows Narrator, qua các luồng chính: trình soạn, kết quả, sao chép, profile, preset, template, Lịch sử, Cài đặt và sao lưu.
|
||||
- **Tự động.** Một unit test kiểm tra độ tương phản của mọi token màu ở cả hai theme.
|
||||
- **Quy tắc thiết kế.** Các thành phần giao diện dựng từ những khối có sẵn khả năng tiếp cận (Radix primitives). Nút chỉ có biểu tượng không thể tạo ra mà thiếu tên, và mọi ô nhập lấy nhãn và phần nối lỗi từ cùng một component dùng chung.
|
||||
|
||||
Ứng dụng **chưa** được thử với NVDA, JAWS, VoiceOver (macOS), TalkBack (Android) hay Orca (Linux). Rất mong nhận được phản hồi từ những ai đang dùng các công cụ này.
|
||||
|
||||
## Môi trường hỗ trợ
|
||||
|
||||
| Nền tảng | Chạy trên | Trình đọc màn hình |
|
||||
| --- | --- | --- |
|
||||
| Windows: ứng dụng desktop, hoặc website trên Edge / Chrome | Windows 10 hoặc 11 với WebView2; Chrome hoặc Edge 111+ | Narrator: đã thử |
|
||||
| Website trên trình duyệt khác | Firefox 114+, Safari 16.4+ | Chưa thử |
|
||||
| Ứng dụng desktop macOS | macOS 11 trở lên, Apple silicon | VoiceOver: chưa thử |
|
||||
| Ứng dụng desktop Linux | WebKitGTK 2.40 trở lên | Orca: chưa thử |
|
||||
| Ứng dụng Android | Android 11 trở lên, Android System WebView bản mới | TalkBack: chưa thử |
|
||||
|
||||
## Hạn chế đã biết
|
||||
|
||||
- **Thử thách của Cloudflare trên website.** Nếu Turnstile bắt bạn giải thử thách thay vì tự qua, thử thách đó do Cloudflare quản lý và khả năng tiếp cận của nó do họ sửa. Nếu nó chặn bạn, hãy dùng ứng dụng desktop hoặc Android (không có trang kiểm tra), hoặc [gửi email cho chúng tôi](#báo-một-rào-cản).
|
||||
- **Viền ô nhập mờ.** Viền của ô nhập trống chỉ khoảng 1.2–1.3:1 so với nền, dưới mức 3:1 mà WCAG yêu cầu. Ô nhập vẫn được nhận biết qua nhãn, và ô đang focus có viền và vầng màu nhấn.
|
||||
- **Nút Tiếp tục ở màn hình chạy lần đầu** dùng gradient của thương hiệu. Chữ trắng trên đầu màu tím nhạt hơn của gradient chỉ đạt 3.96:1.
|
||||
- **Bộ đếm ký tự không được đọc lên khi bạn gõ**, vì như vậy sẽ chen ngang mỗi lần gõ phím. Khi một trường vượt giới hạn của YouTube, việc sao chép bị từ chối kèm thông báo lý do, và Strict Mode liệt kê vấn đề trong một banner được đọc lên.
|
||||
- **Chưa có lint khả năng tiếp cận tự động.** `eslint-plugin-jsx-a11y` chưa hỗ trợ ESLint 10 mà dự án đang dùng, và unit test chạy không có DOM của trình duyệt. Ngoài test độ tương phản, việc kiểm tra là thủ công (xem ở trên).
|
||||
- **Bản dịch.** Các ngôn ngữ giao diện ngoài tiếng Anh và tiếng Việt được dịch với sự hỗ trợ của AI (xem [Tuyên bố miễn trừ](DISCLAIMER.md)). Một số nhãn có thể nghe không tự nhiên khi được đọc lên.
|
||||
- **Emoji trong mô tả.** Mô tả được tạo dùng vài emoji làm dấu mục (ví dụ 👍 và 🔔), và trình đọc màn hình trên YouTube sẽ đọc tên của chúng.
|
||||
|
||||
## Báo một rào cản
|
||||
|
||||
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://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).
|
||||
|
||||
### Mức độ nghiêm trọng
|
||||
|
||||
| Mức | Ý nghĩa |
|
||||
| --- | --- |
|
||||
| **Critical** | Bạn không làm xong được việc chính: soạn, tạo, sao chép, lưu, hoặc qua được bước kiểm tra của website. |
|
||||
| **High** | Bạn làm xong được, nhưng rất vất vả hoặc phải dùng cách vòng. |
|
||||
| **Medium** | Vẫn dùng được, nhưng thất thường hoặc khó hiểu. |
|
||||
| **Low** | Phiền nhỏ, không cản bạn. |
|
||||
|
||||
### Cách chúng tôi phản hồi
|
||||
|
||||
- Chúng tôi trả lời trong vòng **7 ngày** và tin vào những gì bạn báo.
|
||||
- Rào cản **Critical** được sửa trong bản vá kế tiếp. Các mức khác được lên kế hoạch như mọi lỗi khác, mức nặng hơn làm trước.
|
||||
- Nếu có cách tạm thời, chúng tôi sẽ cho bạn biết trong lúc chờ bản sửa.
|
||||
- Khi bản sửa ra, chúng tôi sẽ nhờ bạn kiểm tra lại nếu bạn sẵn lòng.
|
||||
|
||||
Đây là dự án một người làm, nên các mốc thời gian là ước tính thật lòng, không phải cam kết. Nếu trễ, chúng tôi sẽ nói rõ trong issue.
|
||||
|
||||
## Dành cho người đóng góp
|
||||
|
||||
Thay đổi giao diện cần giữ đúng mọi điều ở trên. Trước khi mở pull request có đụng tới UI:
|
||||
|
||||
- **Bàn phím.** Mọi thứ dùng được bằng bàn phím: thứ tự focus hợp lý, đường viền focus hiện rõ, **Esc** đóng thứ bạn vừa mở, và không có chỗ nào giữ chặt focus.
|
||||
- **Tên gọi.** Dùng các component dùng chung `Field` (nối nhãn, gợi ý và lỗi) và `IconButton` (không thể render nếu thiếu `label`). Chữ trong `aria-label` đi qua `t()` như mọi chuỗi khác, đủ tám locale.
|
||||
- **Lỗi và trạng thái.** Phải được đọc lên: `Banner` với `alert`, một toast, hoặc một live region có sẵn.
|
||||
- **Màu sắc.** Màu không bao giờ là tín hiệu duy nhất. Chỉ dùng token thiết kế, và chạy `npm run test:run`. Test độ tương phản sẽ báo lỗi nếu một token tụt dưới AA, và chữ trắng phải nằm trên các nền `*-solid`.
|
||||
- **Chuyển động.** Hiệu ứng mới phải tôn trọng giảm chuyển động. Các component của Motion đã làm sẵn, và animation CSS được quy tắc chung trong `globals.css` xử lý.
|
||||
- **Kích thước.** Mọi thứ bấm được tối thiểu 24 × 24 px và lớn lên trên màn hình cảm ứng.
|
||||
- **Trình đọc màn hình.** Thử thay đổi một lần bằng trình đọc màn hình: Narrator (Win + Ctrl + Enter), VoiceOver (⌘ + F5), NVDA hoặc Orca.
|
||||
|
||||
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 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,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.
|
||||
|
||||
@@ -166,6 +166,8 @@ Bản thân game được làm hoặc chạy bằng AI tạo sinh — còn game
|
||||
|
||||
Ghi chú được chọn hiển thị trong khối `▸ 🛠 TECH NOTES` (`▸ 🛠 GHI CHÚ KỸ THUẬT` khi output là tiếng Việt) ngay sau cảnh báo nội dung, theo thứ tự người dùng chọn. Chúng nói về bản quay, không phải về game. Những thông tin đã có trường riêng — độ khó, ending đã chiếu, language patch, phiên bản game, upscaler và frame generation trong Video settings — không lặp lại ở đây.
|
||||
|
||||
Khi chọn **Upscaled from** trong Video settings (v1.5.0), một ghi chú nữa tự thêm vào sau các ghi chú bạn chọn: _Đã upscale lên độ phân giải cao hơn khi dựng — chi tiết nhỏ được tái tạo, nên chữ, texture và đường viền có thể hơi khác so với hình gốc._ Ghi chú này không có trong danh sách bên dưới; dòng Upscale trong Video settings cho biết upscale từ đâu lên đâu.
|
||||
|
||||
### Âm thanh (5)
|
||||
|
||||
Tắt tiếng (bản quyền) · Giảm volume (bản quyền) · Thay nhạc (bản quyền) · Chỉ tắt cutscene · Giữ audio gốc (rủi ro claim)
|
||||
|
||||
@@ -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
|
||||
@@ -248,3 +251,4 @@ docs/I18N.md). Lời khuyên restart ở trên vẫn áp dụng cho tất cả.
|
||||
- [PACKAGING.md](../../PACKAGING.md) — Tauri release build và signing.
|
||||
- [CONTRIBUTING.md ở root](../../../CONTRIBUTING.md) — quy trình PR, quy ước commit, auto-ignore rules.
|
||||
- [SECURITY.md ở root](../../../SECURITY.md) — báo cáo lỗ hổng bảo mật.
|
||||
- [ACCESSIBILITY.md ở root](../../../ACCESSIBILITY.md) — những gì dùng được với công nghệ hỗ trợ, và checklist cho thay đổi UI (bản tiếng Việt: [ACCESSIBILITY.md](./ACCESSIBILITY.md)).
|
||||
@@ -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.3.2 dùng Claude Opus 5.5)**. 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
@@ -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>
|
||||
|
||||
@@ -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 & 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>
|
||||
@@ -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();
|
||||
});
|
||||
})();
|
||||
@@ -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 & 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>
|
||||
@@ -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;
|
||||
}
|
||||
Generated
+1550
-980
File diff suppressed because it is too large.
Load diff
+24
-27
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "yt-desc-gen",
|
||||
"version": "1.3.2",
|
||||
"version": "1.7.0",
|
||||
"private": true,
|
||||
"license": "Apache-2.0",
|
||||
"type": "module",
|
||||
@@ -40,53 +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.5.3",
|
||||
"i18next-resources-to-backend": "^1.2.3",
|
||||
"lucide-react": "^1.59.0",
|
||||
"i18next": "~26.6.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.0",
|
||||
"react-router-dom": "^7.18.4",
|
||||
"simple-icons": "^16.35.0",
|
||||
"react-i18next": "^17.1.13",
|
||||
"react-router-dom": "^7.18.6",
|
||||
"simple-icons": "^16.38.1",
|
||||
"sonner": "^2.0.8",
|
||||
"zustand": "^5.0.15"
|
||||
"zustand": "^5.1.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@eslint/js": "^10.0.1",
|
||||
"@resvg/resvg-js": "2.6.2",
|
||||
"@tailwindcss/postcss": "^4.3.3",
|
||||
"@tauri-apps/cli": "2.12.3",
|
||||
"@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.5",
|
||||
"@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.1.2",
|
||||
"@vitejs/plugin-react": "^6.3.0",
|
||||
"@vitest/coverage-v8": "^4.1.12",
|
||||
"autoprefixer": "^10.6.1",
|
||||
"eslint": "^10.13.0",
|
||||
"autoprefixer": "^10.7.0",
|
||||
"eslint": "^10.15.0",
|
||||
"eslint-plugin-react-hooks": "^7.1.1",
|
||||
"knip": "^6.42.1",
|
||||
"marked": "18.1.1",
|
||||
"postcss": "^8.5.31",
|
||||
"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.0",
|
||||
"vite": "^8.3.4",
|
||||
"typescript-eslint": "^8.73.0",
|
||||
"vite": "^8.3.8",
|
||||
"vitest": "^4.1.12",
|
||||
"wrangler": "4.151.2"
|
||||
},
|
||||
"overrides": {
|
||||
"undici": "^7.30.1"
|
||||
"wrangler": "4.166.0"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 178 KiB After Width: | Height: | Size: 177 KiB |
@@ -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
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
Generated
+338
-182
@@ -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]]
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
@@ -893,11 +980,10 @@ dependencies = [
|
||||
|
||||
[[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"
|
||||
@@ -1547,12 +1653,12 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "ico"
|
||||
version = "0.5.0"
|
||||
version = "0.6.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3e795dff5605e0f04bff85ca41b51a96b83e80b281e96231bcaaf1ac35103371"
|
||||
checksum = "d75e94d66081e4d8dcd098bd8dc5254800fea14a26389b298410158d834de167"
|
||||
dependencies = [
|
||||
"byteorder",
|
||||
"png 0.17.16",
|
||||
"png",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -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]]
|
||||
@@ -2013,7 +2130,7 @@ dependencies = [
|
||||
"objc2-core-foundation",
|
||||
"objc2-foundation",
|
||||
"once_cell",
|
||||
"png 0.18.1",
|
||||
"png",
|
||||
"serde",
|
||||
"thiserror 2.0.18",
|
||||
"windows-sys 0.61.2",
|
||||
@@ -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"
|
||||
@@ -2478,19 +2648,6 @@ dependencies = [
|
||||
"time",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "png"
|
||||
version = "0.17.16"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
|
||||
dependencies = [
|
||||
"bitflags 1.3.2",
|
||||
"crc32fast",
|
||||
"fdeflate",
|
||||
"flate2",
|
||||
"miniz_oxide",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "png"
|
||||
version = "0.18.1"
|
||||
@@ -2752,9 +2909,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "rfd"
|
||||
version = "0.16.0"
|
||||
version = "0.17.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a15ad77d9e70a92437d8f74c35d99b4e4691128df018833e99f90bcd36152672"
|
||||
checksum = "20dafead71c16a34e1ff357ddefc8afc11e7d51d6d2b9fbd07eaa48e3e540220"
|
||||
dependencies = [
|
||||
"block2",
|
||||
"dispatch2",
|
||||
@@ -2762,16 +2919,18 @@ dependencies = [
|
||||
"gobject-sys",
|
||||
"gtk-sys",
|
||||
"js-sys",
|
||||
"libc",
|
||||
"log",
|
||||
"objc2",
|
||||
"objc2-app-kit",
|
||||
"objc2-core-foundation",
|
||||
"objc2-foundation",
|
||||
"percent-encoding",
|
||||
"raw-window-handle",
|
||||
"wasm-bindgen",
|
||||
"wasm-bindgen-futures",
|
||||
"web-sys",
|
||||
"windows-sys 0.60.2",
|
||||
"windows-sys 0.61.2",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
@@ -2791,9 +2950,9 @@ 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",
|
||||
@@ -2881,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",
|
||||
]
|
||||
|
||||
@@ -3061,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"
|
||||
@@ -3068,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]]
|
||||
@@ -3190,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",
|
||||
]
|
||||
|
||||
@@ -3200,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",
|
||||
]
|
||||
@@ -3279,9 +3499,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tao"
|
||||
version = "0.37.1"
|
||||
version = "0.37.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f37f381f4e048e6cdf038b5705f8cf14ad108279d46eb968140a7b291aba9400"
|
||||
checksum = "02ca9c0ce2a2fd70dc4ef4449ca5e8d30e6fa0db111cd8008594602a06a68371"
|
||||
dependencies = [
|
||||
"bitflags 2.11.0",
|
||||
"block2",
|
||||
@@ -3336,9 +3556,9 @@ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
||||
|
||||
[[package]]
|
||||
name = "tauri"
|
||||
version = "2.12.4"
|
||||
version = "2.12.7"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f316751027fc2644221d1a448564d519efb07067fda584879d9cda966391d212"
|
||||
checksum = "30fbfbb9dc9a2697b0e96d909ddc295fb18d2d82a58ed542ab8d9eba2edbe6da"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"bytes",
|
||||
@@ -3387,9 +3607,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tauri-build"
|
||||
version = "2.7.3"
|
||||
version = "2.7.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "641dd5fd297c99ab92717b0428cca5b9c6f960b2ac96ca131b3eebc9d70b8ddc"
|
||||
checksum = "73d80784e874fa117b9b00a6680cf2f9b8a51bbd14406bea980cf8f328b00646"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"cargo_toml",
|
||||
@@ -3410,22 +3630,22 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tauri-codegen"
|
||||
version = "2.7.3"
|
||||
version = "2.7.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a6585c5b536c00f039d12ce70a9755172d5423bbcfd3969863baa70314c3e02f"
|
||||
checksum = "c5dc6caab4da5646f57648f39b794bae118f0dd4a4305eeb8c892966171f4852"
|
||||
dependencies = [
|
||||
"base64 0.23.1",
|
||||
"brotli",
|
||||
"ico",
|
||||
"json-patch",
|
||||
"plist",
|
||||
"png 0.18.1",
|
||||
"png",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
"semver",
|
||||
"serde",
|
||||
"serde_json",
|
||||
"sha2",
|
||||
"sha2 0.11.1",
|
||||
"syn 2.0.117",
|
||||
"tauri-utils",
|
||||
"thiserror 2.0.18",
|
||||
@@ -3437,9 +3657,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tauri-macros"
|
||||
version = "2.7.3"
|
||||
version = "2.7.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "e2e83a0cfa1bae376e8fbbdc0b1692707aed50cd6072ce85cae4789af5d6c19f"
|
||||
checksum = "2831c5da8603a96b1efc0b650c2cb6decc69b6cda257d815fe70c7f5be53818e"
|
||||
dependencies = [
|
||||
"heck 0.5.0",
|
||||
"proc-macro2",
|
||||
@@ -3467,9 +3687,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-dialog"
|
||||
version = "2.8.3"
|
||||
version = "2.8.4"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b7461aaacf1901915ea7b9f5cd74f8224a351ed96af0a62c07fce934003cb34b"
|
||||
checksum = "ce0fb9c2b6d34a9720627ed930ebc8af26f61e648695aecaeb03d5c33c5896f5"
|
||||
dependencies = [
|
||||
"log",
|
||||
"raw-window-handle",
|
||||
@@ -3509,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",
|
||||
@@ -3531,9 +3751,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tauri-plugin-single-instance"
|
||||
version = "2.5.4"
|
||||
version = "2.5.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "561cd99484561bc39c954768e7b41a66cebbe1ac3d9d081c34361f740c489e2c"
|
||||
checksum = "726b6da0dd5bd1344f84f4108a622c07d01923baacb5c803a605189672c5352f"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
@@ -3547,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",
|
||||
@@ -3572,9 +3792,9 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "tauri-runtime-wry"
|
||||
version = "2.12.2"
|
||||
version = "2.12.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8d61892587aea2a85245bcaec98c6fe46268874c0a0deae5535fb71ca7b93eae"
|
||||
checksum = "b8c14a025255cc9816d401635035075b09b6cc9973b7b8fd7b8fcb8753f30f92"
|
||||
dependencies = [
|
||||
"gtk",
|
||||
"http",
|
||||
@@ -3582,7 +3802,6 @@ dependencies = [
|
||||
"log",
|
||||
"objc2",
|
||||
"objc2-app-kit",
|
||||
"once_cell",
|
||||
"percent-encoding",
|
||||
"raw-window-handle",
|
||||
"softbuffer",
|
||||
@@ -3598,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",
|
||||
@@ -3614,7 +3833,7 @@ dependencies = [
|
||||
"json-patch",
|
||||
"log",
|
||||
"memchr",
|
||||
"phf",
|
||||
"phf 0.13.1",
|
||||
"plist",
|
||||
"proc-macro2",
|
||||
"quote",
|
||||
@@ -3627,7 +3846,7 @@ dependencies = [
|
||||
"serde_with",
|
||||
"swift-rs",
|
||||
"thiserror 2.0.18",
|
||||
"toml 0.9.12+spec-1.1.0",
|
||||
"toml 1.1.6+spec-1.1.0",
|
||||
"url",
|
||||
"urlpattern",
|
||||
"uuid",
|
||||
@@ -3652,7 +3871,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
||||
dependencies = [
|
||||
"fastrand",
|
||||
"getrandom 0.3.4",
|
||||
"getrandom 0.4.2",
|
||||
"once_cell",
|
||||
"rustix",
|
||||
"windows-sys 0.59.0",
|
||||
@@ -3766,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",
|
||||
@@ -4003,7 +4222,7 @@ dependencies = [
|
||||
"objc2-core-graphics",
|
||||
"objc2-foundation",
|
||||
"once_cell",
|
||||
"png 0.18.1",
|
||||
"png",
|
||||
"serde",
|
||||
"thiserror 2.0.18",
|
||||
"windows-sys 0.61.2",
|
||||
@@ -4023,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"
|
||||
@@ -4058,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",
|
||||
@@ -4308,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]]
|
||||
@@ -4558,15 +4789,6 @@ dependencies = [
|
||||
"windows-targets 0.52.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-sys"
|
||||
version = "0.60.2"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
|
||||
dependencies = [
|
||||
"windows-targets 0.53.5",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-sys"
|
||||
version = "0.61.2"
|
||||
@@ -4600,30 +4822,13 @@ dependencies = [
|
||||
"windows_aarch64_gnullvm 0.52.6",
|
||||
"windows_aarch64_msvc 0.52.6",
|
||||
"windows_i686_gnu 0.52.6",
|
||||
"windows_i686_gnullvm 0.52.6",
|
||||
"windows_i686_gnullvm",
|
||||
"windows_i686_msvc 0.52.6",
|
||||
"windows_x86_64_gnu 0.52.6",
|
||||
"windows_x86_64_gnullvm 0.52.6",
|
||||
"windows_x86_64_msvc 0.52.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-targets"
|
||||
version = "0.53.5"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
|
||||
dependencies = [
|
||||
"windows-link",
|
||||
"windows_aarch64_gnullvm 0.53.1",
|
||||
"windows_aarch64_msvc 0.53.1",
|
||||
"windows_i686_gnu 0.53.1",
|
||||
"windows_i686_gnullvm 0.53.1",
|
||||
"windows_i686_msvc 0.53.1",
|
||||
"windows_x86_64_gnu 0.53.1",
|
||||
"windows_x86_64_gnullvm 0.53.1",
|
||||
"windows_x86_64_msvc 0.53.1",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "windows-threading"
|
||||
version = "0.2.1"
|
||||
@@ -4654,12 +4859,6 @@ version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
||||
|
||||
[[package]]
|
||||
name = "windows_aarch64_gnullvm"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
|
||||
|
||||
[[package]]
|
||||
name = "windows_aarch64_msvc"
|
||||
version = "0.42.2"
|
||||
@@ -4672,12 +4871,6 @@ version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
||||
|
||||
[[package]]
|
||||
name = "windows_aarch64_msvc"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_gnu"
|
||||
version = "0.42.2"
|
||||
@@ -4690,24 +4883,12 @@ version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_gnu"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_gnullvm"
|
||||
version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_gnullvm"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_msvc"
|
||||
version = "0.42.2"
|
||||
@@ -4720,12 +4901,6 @@ version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
||||
|
||||
[[package]]
|
||||
name = "windows_i686_msvc"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_gnu"
|
||||
version = "0.42.2"
|
||||
@@ -4738,12 +4913,6 @@ version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_gnu"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_gnullvm"
|
||||
version = "0.42.2"
|
||||
@@ -4756,12 +4925,6 @@ version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_gnullvm"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_msvc"
|
||||
version = "0.42.2"
|
||||
@@ -4774,12 +4937,6 @@ version = "0.52.6"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
||||
|
||||
[[package]]
|
||||
name = "windows_x86_64_msvc"
|
||||
version = "0.53.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
|
||||
|
||||
[[package]]
|
||||
name = "winnow"
|
||||
version = "0.5.40"
|
||||
@@ -4913,16 +5070,16 @@ checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
|
||||
|
||||
[[package]]
|
||||
name = "wry"
|
||||
version = "0.57.0"
|
||||
version = "0.57.3"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a819957a01b3119af85e638a38d242af76dbc87d130dca67bfd0441072e21ff0"
|
||||
checksum = "ceb43f824178e8110e3181bfd478359c43b041452a9560d321bd8d121e468f86"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"base64 0.23.1",
|
||||
"block2",
|
||||
"cookie",
|
||||
"crossbeam-channel",
|
||||
"dirs",
|
||||
"dom_query",
|
||||
"dom_query 0.29.0",
|
||||
"dpi",
|
||||
"dunce",
|
||||
"gdkx11",
|
||||
@@ -4938,10 +5095,9 @@ dependencies = [
|
||||
"objc2-foundation",
|
||||
"objc2-ui-kit",
|
||||
"objc2-web-kit",
|
||||
"once_cell",
|
||||
"percent-encoding",
|
||||
"raw-window-handle",
|
||||
"sha2",
|
||||
"sha2 0.10.9",
|
||||
"soup3",
|
||||
"tao-macros",
|
||||
"thiserror 2.0.18",
|
||||
@@ -5001,7 +5157,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "yt-desc-gen"
|
||||
version = "1.3.2"
|
||||
version = "1.7.0"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"tauri",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "yt-desc-gen"
|
||||
version = "1.3.2"
|
||||
version = "1.7.0"
|
||||
description = "YouTube Gameplay Description Generator"
|
||||
authors = ["poli0981"]
|
||||
edition = "2021"
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
{
|
||||
"identifier": "default",
|
||||
"description": "Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions.",
|
||||
"description": "Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions. set-webview-zoom backs the Ctrl/Cmd +/- zoom polyfill Tauri injects on macOS and Linux (zoomHotkeysEnabled).",
|
||||
"windows": [
|
||||
"main"
|
||||
],
|
||||
"permissions": [
|
||||
"core:default",
|
||||
"core:webview:allow-set-webview-zoom",
|
||||
"opener:default"
|
||||
]
|
||||
}
|
||||
+7
-2
@@ -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
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"default":{"identifier":"default","description":"Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions.","local":true,"windows":["main"],"permissions":["core:default","opener:default"]}}
|
||||
{"default":{"identifier":"default","description":"Default capabilities for YTDescGen. File access goes through the app's own name-only commands and native dialogs run from Rust, so the webview gets no dialog, fs or shell permissions. set-webview-zoom backs the Ctrl/Cmd +/- zoom polyfill Tauri injects on macOS and Linux (zoomHotkeysEnabled).","local":true,"windows":["main"],"permissions":["core:default","core:webview:allow-set-webview-zoom","opener:default"]}}
|
||||
@@ -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."
|
||||
@@ -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
@@ -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,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
|
||||
"productName": "YTDescGen",
|
||||
"version": "1.3.2",
|
||||
"version": "1.7.0",
|
||||
"identifier": "com.skullmute.ytdescgen",
|
||||
"build": {
|
||||
"beforeBuildCommand": "npm run build",
|
||||
@@ -20,7 +20,8 @@
|
||||
"resizable": true,
|
||||
"maximizable": true,
|
||||
"fullscreen": false,
|
||||
"center": true
|
||||
"center": true,
|
||||
"zoomHotkeysEnabled": true
|
||||
}
|
||||
],
|
||||
"security": {
|
||||
|
||||
@@ -265,6 +265,7 @@ export function EndingsEditor() {
|
||||
type="number"
|
||||
min={1}
|
||||
max={MAX_ENDINGS}
|
||||
aria-label={t("editor.endings.rowNumberAria", { row: i + 1 })}
|
||||
value={entry.number?.toString() ?? ""}
|
||||
onChange={(e) => {
|
||||
const v = e.target.value.trim();
|
||||
@@ -275,6 +276,7 @@ export function EndingsEditor() {
|
||||
<td className="px-2 py-1.5">
|
||||
<Input
|
||||
placeholder={t("editor.endings.namePlaceholder")}
|
||||
aria-label={t("editor.endings.rowNameAria", { row: i + 1 })}
|
||||
value={entry.name}
|
||||
onChange={(e) => updateEnding(i, { name: e.target.value })}
|
||||
/>
|
||||
@@ -322,8 +324,8 @@ export function EndingsEditor() {
|
||||
<thead className="bg-surface-2 text-text-muted text-xs uppercase">
|
||||
<tr>
|
||||
<th className="px-2 py-1.5 text-left">{t("editor.endings.videoLabel")}</th>
|
||||
<th className="px-2 py-1.5 text-left">From</th>
|
||||
<th className="px-2 py-1.5 text-left">To</th>
|
||||
<th className="px-2 py-1.5 text-left">{t("editor.endings.fromLabel")}</th>
|
||||
<th className="px-2 py-1.5 text-left">{t("editor.endings.toLabel")}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -335,6 +337,7 @@ export function EndingsEditor() {
|
||||
type="number"
|
||||
min={1}
|
||||
max={count}
|
||||
aria-label={t("editor.endings.rangeFromAria", { video: i + 1 })}
|
||||
value={String(r.from)}
|
||||
onChange={(e) => updateRange(i, { from: Number(e.target.value) || 1 })}
|
||||
/>
|
||||
@@ -344,6 +347,7 @@ export function EndingsEditor() {
|
||||
type="number"
|
||||
min={1}
|
||||
max={count}
|
||||
aria-label={t("editor.endings.rangeToAria", { video: i + 1 })}
|
||||
value={String(r.to)}
|
||||
onChange={(e) => updateRange(i, { to: Number(e.target.value) || 1 })}
|
||||
/>
|
||||
|
||||
@@ -39,7 +39,7 @@ export default function GenreList({
|
||||
<Command.Input
|
||||
autoFocus
|
||||
placeholder={t("editor.genreSearchPlaceholder")}
|
||||
className="text-text-primary placeholder:text-text-muted h-10 w-full bg-transparent text-sm outline-none"
|
||||
className="text-text-primary placeholder:text-text-muted h-10 w-full bg-transparent text-sm outline-hidden"
|
||||
/>
|
||||
</div>
|
||||
<Command.List className="max-h-72 scrollbar-thin overflow-y-auto p-1">
|
||||
|
||||
@@ -77,14 +77,14 @@ export function GenreSelector() {
|
||||
{genres.map((id) => (
|
||||
<span
|
||||
key={id}
|
||||
className="bg-accent-muted text-accent inline-flex h-7 items-center gap-1 rounded-full pr-1 pl-2.5 text-xs font-medium"
|
||||
className="bg-accent-muted text-accent inline-flex h-7 items-center gap-1 rounded-full pr-0.5 pl-2.5 text-xs font-medium"
|
||||
>
|
||||
{labelOf(id)}
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => toggle(id)}
|
||||
aria-label={t("editor.genreRemove", { genre: labelOf(id) })}
|
||||
className="hover:bg-accent/20 flex size-5 cursor-pointer items-center justify-center rounded-full"
|
||||
className="hover:bg-accent/20 flex size-6 cursor-pointer items-center justify-center rounded-full pointer-coarse:size-7"
|
||||
>
|
||||
<X className="size-3" aria-hidden="true" />
|
||||
</button>
|
||||
|
||||
@@ -55,7 +55,7 @@ export default function GpuList({
|
||||
<Command.Input
|
||||
autoFocus
|
||||
placeholder={t("editor.gpuSearch")}
|
||||
className="text-text-primary placeholder:text-text-muted h-10 w-full bg-transparent text-sm outline-none"
|
||||
className="text-text-primary placeholder:text-text-muted h-10 w-full bg-transparent text-sm outline-hidden"
|
||||
/>
|
||||
</div>
|
||||
<Command.List className="max-h-80 scrollbar-thin overflow-y-auto p-1">
|
||||
|
||||
@@ -33,6 +33,7 @@ export function LivePreview({
|
||||
// Without a game name the engine still renders "— Gameplay No Commentary";
|
||||
// show the prompt instead so nothing half-built can be copied.
|
||||
const hasGame = useEditorStore((s) => s.gameName.trim() !== "");
|
||||
const lang = useEditorStore((s) => s.language);
|
||||
const output = hasGame ? generated : EMPTY_GENERATOR_OUTPUT;
|
||||
const [tab, setTab] = useState<PreviewTab>("title");
|
||||
|
||||
@@ -73,7 +74,7 @@ export function LivePreview({
|
||||
>
|
||||
<TabPanel value="title" className="p-4">
|
||||
{output.title ? (
|
||||
<p className="text-text-primary text-[0.9375rem] leading-snug font-medium">
|
||||
<p lang={lang} className="text-text-primary text-[0.9375rem] leading-snug font-medium">
|
||||
{output.title}
|
||||
</p>
|
||||
) : (
|
||||
@@ -82,7 +83,10 @@ export function LivePreview({
|
||||
</TabPanel>
|
||||
<TabPanel value="description" className="p-4">
|
||||
{output.description ? (
|
||||
<pre className="text-text-secondary max-h-[min(52dvh,32rem)] scrollbar-thin overflow-y-auto font-sans text-xs leading-relaxed whitespace-pre-wrap">
|
||||
<pre
|
||||
lang={lang}
|
||||
className="text-text-secondary max-h-[min(52dvh,32rem)] scrollbar-thin overflow-y-auto font-sans text-xs leading-relaxed whitespace-pre-wrap"
|
||||
>
|
||||
{output.description}
|
||||
</pre>
|
||||
) : (
|
||||
@@ -91,7 +95,7 @@ export function LivePreview({
|
||||
</TabPanel>
|
||||
<TabPanel value="tags" className="p-4">
|
||||
{output.tags.length > 0 ? (
|
||||
<div className="flex flex-wrap gap-1">
|
||||
<div lang={lang} className="flex flex-wrap gap-1">
|
||||
{output.tags.map((tag, i) => (
|
||||
<span
|
||||
key={i}
|
||||
|
||||
@@ -9,7 +9,6 @@ import { PopoverContent, PopoverRoot, PopoverTrigger } from "@components/ui/Popo
|
||||
import { Spinner } from "@components/icons/animated";
|
||||
import {
|
||||
RIG_FIELDS,
|
||||
cleanCpuName,
|
||||
parseCompositeValue,
|
||||
resolveCompositeOptions,
|
||||
resolveCompositeLabelKey,
|
||||
@@ -117,7 +116,7 @@ function GpuPicker({
|
||||
);
|
||||
}
|
||||
|
||||
/** CPU (and any other suggested text field): type freely or pick a suggestion. */
|
||||
/** CPU, LUT (any suggested text field): type freely or pick a suggestion. */
|
||||
function SuggestedTextField({
|
||||
field,
|
||||
value,
|
||||
@@ -139,10 +138,11 @@ function SuggestedTextField({
|
||||
list={listId}
|
||||
autoComplete="off"
|
||||
onChange={(e) => onChange(e.target.value)}
|
||||
// "Intel(R) Core(TM) i7-12700K CPU @ 3.60GHz", as Windows shows it,
|
||||
// becomes "Intel Core i7-12700K" once the user leaves the field.
|
||||
// The field's own tidy-up once the user leaves it: Windows' "Intel(R)
|
||||
// Core(TM) i7-12700K CPU @ 3.60GHz" becomes "Intel Core i7-12700K",
|
||||
// a pasted "Rec709 Kodak 2383 D65.cube" loses its extension.
|
||||
onBlur={(e) => {
|
||||
const cleaned = field.id === "cpu" ? cleanCpuName(e.target.value) : e.target.value.trim();
|
||||
const cleaned = field.clean ? field.clean(e.target.value) : e.target.value.trim();
|
||||
if (cleaned !== e.target.value) onChange(cleaned);
|
||||
}}
|
||||
/>
|
||||
@@ -293,12 +293,10 @@ export function RigEditor() {
|
||||
}
|
||||
if (field.type === "composite_dropdown") return renderComposite(field);
|
||||
if (field.type === "dropdown_with_version") return renderDropdownWithVersion(field);
|
||||
if (field.suggestions) {
|
||||
return <SuggestedTextField key={field.id} field={field} value={value} onChange={set} />;
|
||||
}
|
||||
return (
|
||||
const input = field.suggestions ? (
|
||||
<SuggestedTextField field={field} value={value} onChange={set} />
|
||||
) : (
|
||||
<Input
|
||||
key={field.id}
|
||||
label={t(field.labelKey)}
|
||||
maxLength={FIELD_LIMITS.SHORT_NAME}
|
||||
placeholder={field.placeholder}
|
||||
@@ -306,6 +304,13 @@ export function RigEditor() {
|
||||
onChange={(e) => set(e.target.value)}
|
||||
/>
|
||||
);
|
||||
// A wide field (the LUT) takes the whole row, right under the
|
||||
// Video Editor row it belongs to.
|
||||
return (
|
||||
<div key={field.id} className={clsx("min-w-0", field.wide && "sm:col-span-2")}>
|
||||
{input}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -9,28 +9,27 @@ import {
|
||||
RT_MODES,
|
||||
FRAMEGEN_VENDORS,
|
||||
ART_STYLES,
|
||||
VIDEO_RESOLUTIONS,
|
||||
type GraphicsPreset,
|
||||
type RTMode,
|
||||
type FrameGenVendor,
|
||||
type FrameGenMultiplier,
|
||||
type UpscaleQuality,
|
||||
type ArtStyle,
|
||||
type UpscaledFrom,
|
||||
} from "@config/graphics-settings";
|
||||
import {
|
||||
getValidUpscaleQualities,
|
||||
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";
|
||||
import { FIELD_LIMITS } from "@config/field-limits";
|
||||
|
||||
const RESOLUTION_OPTIONS = [
|
||||
{ value: "720p", label: "720p" },
|
||||
{ value: "1080p", label: "1080p" },
|
||||
{ value: "1440p", label: "1440p" },
|
||||
{ value: "4K", label: "4K" },
|
||||
];
|
||||
const RESOLUTION_OPTIONS = VIDEO_RESOLUTIONS.map((r) => ({ value: r, label: r }));
|
||||
|
||||
const FPS_OPTIONS = [
|
||||
{ value: "30", label: "30 FPS" },
|
||||
@@ -103,6 +102,32 @@ 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.
|
||||
// A stale pair (an older profile applied over a 4K draft, say) shows as
|
||||
// "Not upscaled" — the engine ignores it too.
|
||||
const resolution = store.resolution ?? "1080p";
|
||||
const upscaledFrom = validUpscaleSource(resolution, store.upscaledFrom);
|
||||
const upscaleSources = upscaleSourcesFor(resolution);
|
||||
const upscaledFromOptions = [
|
||||
{ value: "", label: t("editor.upscaledFromNone") },
|
||||
...upscaleSources.map((r) => ({ value: r, label: r })),
|
||||
];
|
||||
|
||||
// Lowering the resolution to or below the upscale source ends the upscale,
|
||||
// so the draft never keeps a pair the Select can't show.
|
||||
function handleResolutionChange(next: string) {
|
||||
store.set("resolution", next);
|
||||
if (store.upscaledFrom && !validUpscaleSource(next, store.upscaledFrom)) {
|
||||
store.set("upscaledFrom", "");
|
||||
}
|
||||
}
|
||||
|
||||
const artStyleOptions = ART_STYLES.map((s) => ({
|
||||
@@ -112,12 +137,19 @@ export function VideoSettingsForm() {
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-3">
|
||||
<div className="grid grid-cols-1 gap-3 sm:grid-cols-3">
|
||||
<div className="grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4">
|
||||
<Select
|
||||
label={t("editor.resolution")}
|
||||
options={RESOLUTION_OPTIONS}
|
||||
value={store.resolution ?? "1080p"}
|
||||
onChange={(v) => store.set("resolution", v)}
|
||||
value={resolution}
|
||||
onChange={handleResolutionChange}
|
||||
/>
|
||||
<Select
|
||||
label={t("editor.upscaledFrom")}
|
||||
options={upscaledFromOptions}
|
||||
value={upscaledFrom}
|
||||
disabled={upscaleSources.length === 0}
|
||||
onChange={(v) => store.set("upscaledFrom", v as UpscaledFrom)}
|
||||
/>
|
||||
<Select
|
||||
label={t("editor.fps")}
|
||||
@@ -132,6 +164,9 @@ export function VideoSettingsForm() {
|
||||
onChange={(v) => store.set("graphicsPreset", v as GraphicsPreset)}
|
||||
/>
|
||||
</div>
|
||||
{upscaledFrom && (
|
||||
<p className="text-text-muted -mt-1 text-xs">{t("editor.upscaledFromHelp")}</p>
|
||||
)}
|
||||
|
||||
{store.graphicsPreset === "custom" && (
|
||||
<Input
|
||||
@@ -183,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")}
|
||||
@@ -198,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}
|
||||
|
||||
@@ -88,6 +88,7 @@ export function VietnameseDonateEditor() {
|
||||
/>
|
||||
{customMode && (
|
||||
<Input
|
||||
aria-label={t("editor.vnBankName")}
|
||||
placeholder={t("editor.vnBankNamePlaceholder")}
|
||||
value={vnBankName ?? ""}
|
||||
onChange={(e) => store.set("vnBankName", e.target.value)}
|
||||
|
||||
@@ -47,7 +47,7 @@ export function OfflineBanner() {
|
||||
type="button"
|
||||
onClick={() => setDismissed(true)}
|
||||
aria-label={t("common.dismiss")}
|
||||
className="text-text-muted hover:bg-surface-2 hover:text-text-primary flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors"
|
||||
className="text-text-muted hover:bg-surface-2 hover:text-text-primary flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors pointer-coarse:size-9"
|
||||
>
|
||||
<X className="size-3.5" aria-hidden="true" />
|
||||
</button>
|
||||
|
||||
@@ -36,7 +36,10 @@ export function HistoryCard({ entry }: { entry: HistoryEntry }) {
|
||||
<Icon className="size-4" aria-hidden />
|
||||
</span>
|
||||
<span className="min-w-0 flex-1">
|
||||
<span className="text-text-primary block truncate text-sm font-medium">
|
||||
<span
|
||||
lang={entry.language}
|
||||
className="text-text-primary block truncate text-sm font-medium"
|
||||
>
|
||||
{entry.title}
|
||||
</span>
|
||||
<span className="text-text-muted mt-0.5 block truncate text-xs">
|
||||
@@ -75,7 +78,10 @@ export function HistoryCard({ entry }: { entry: HistoryEntry }) {
|
||||
<CopyButton text={entry.description} label={t("output.copyDescription")} />
|
||||
<CopyButton text={entry.tags} label={t("output.copyTags")} />
|
||||
</div>
|
||||
<pre className="bg-surface-0 border-border text-text-secondary max-h-56 scrollbar-thin overflow-y-auto rounded-lg border p-2.5 font-sans text-xs leading-relaxed whitespace-pre-wrap">
|
||||
<pre
|
||||
lang={entry.language}
|
||||
className="bg-surface-0 border-border text-text-secondary max-h-56 scrollbar-thin overflow-y-auto rounded-lg border p-2.5 font-sans text-xs leading-relaxed whitespace-pre-wrap"
|
||||
>
|
||||
{entry.description}
|
||||
</pre>
|
||||
</div>
|
||||
|
||||
@@ -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);
|
||||
|
||||
Loaded 100 of 195 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user