feat(v0.13): structured Gacha fields, GPU/RAM dropdowns, copy guard, locked window
Bug fixes:
- AppShell layout reflow (h-screen overflow-hidden) so the main pane
scrolls without dragging the sidebar/header along
- Tauri window locked at 1100x750 (resizable=false, maximizable=false)
Gacha-quest editor:
- Anniversary year dropdown (1-20) replaces chapterName for anniversary type;
templates render "{{anniversaryYear}}{{ordinalSuffix}} Anniversary"
- Showcase swaps Chapter/Quest/Part for characterName input;
description matches user-requested phrasing including {{versionLabel}}
- New gachaVersion field (e.g. "1.2", "2.4"), surfaces in Gacha-specific
intros via description.intro.versionInline; distinct from the existing
versionInfo (driver / general game version)
- Smart placeholder per Quest Type (Day 12, Floor 12, Part 1, etc.) so
the inputs hint at the right shape per quest pattern
- Per-quest-type field visibility map controls which inputs render
My Rig editor:
- Cascading GPU dropdown (Brand -> Series -> Model) with ~200+ models
across NVIDIA, AMD, Intel Arc, Apple Silicon + free-text Custom brand
- Composite RAM input (size dropdown 4-256GB + custom numeric, paired
with DDR1-DDR7 dropdown). Output: "16 GB DDR5" / "48 GB DDR5"
- formatRigValue extended for both new types; legacy free-text passes
through unchanged so v0.12 profiles render identically
- Inline validation badges for incomplete selections (brand without
model, RAM size without DDR, custom numeric empty)
Content warnings:
- 27 new entries: 5 phobias (cynophobia, nyctophobia, pyrophobia,
pediophobia, hemophobia), 4 mental health (bipolar, ocd, panic,
dissociation), 5 sensitive (hate_speech, historical_atrocity,
slavery, terrorism, bullying)
- New "Playstyle disclosures" group (8 items): blind_playthrough,
no_spoilers_chat, casual/hardcore difficulty, permadeath,
speedrun_attempt, completionist_run, learning_mechanics
Copy validation:
- useClipboard().copy(text, { limit, fieldLabel }) refuses to write
when text exceeds the limit; toast warning surfaces the count
- CopyButton renders with text-danger style and warning icon when
over-limit so the lock state is visible before clicking
- CopyAllBar pre-validates Title and Description; combined error toast
if either is over
Storage:
- Editor store v10 -> v11 migration: adds characterName, anniversaryYear,
gachaVersion with safe defaults; out-of-range anniversaryYear coerces
to null
- Storage stays Record<string, string> for rig (pipe-delimited tuples)
so no rig migration needed
i18n:
- 6 locales (en/es/ja/ko/vi/zh) updated with new keys; schema validated
- 629 ui keys + 339 templates keys per locale
- ordinal suffix helper drops the English suffix for non-English locales
so "周年記念" / "주년" / "Aniversario" don't get "st/nd/rd/th"
Tests: 350/350 (was 335)
- 11 new rig-fields tests (cascading + composite + legacy passthrough)
- 4 new v10 -> v11 migration tests
- Anniversary title test updated to use anniversaryYear
Bundle: 373 KB raw / 125 KB gzipped, under the 500 KB target.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
25f0d0705f
commit
fa3ce87f61
41 files changed
+1854
-134
No files matched your search
@@ -2,6 +2,46 @@
|
||||
|
||||
All notable changes to YTDescGen ship as tagged releases on `main`.
|
||||
|
||||
## v0.13.0 — 2026-05-08
|
||||
|
||||
A scope-broadening release: two UI/Gacha bugs squashed, Gacha-quest editor extended with three structured fields (Anniversary year dropdown, Showcase character name, free-form `gachaVersion`), copy buttons hard-stop when text exceeds YouTube's title/description/tags limits, the Tauri desktop window is now locked at 1100×750 (no resize, no maximize), 27 new content warnings — including a brand-new "Playstyle disclosures" group — fill the phobia / mental-health / sensitive / playstyle gaps, and the My Rig editor's free-text GPU and RAM inputs are replaced with structured cascading dropdowns (Brand → Series → Model for GPU, Size + DDR generation for RAM) covering ~200+ GPU models across 14 series and 4 brands. Two QoL touches round it out: per-quest-type smart placeholders ("Day 12" for Daily Commission, "Floor 12" for Endgame, "Part 1" for Main Story) and inline validation badges that nudge the creator when a rig field is half-filled.
|
||||
|
||||
### Added
|
||||
|
||||
- **Anniversary year dropdown (1–20)** ([src/components/editor/ExtraFieldsInput.tsx](src/components/editor/ExtraFieldsInput.tsx)) — replaces the v0.12 `chapterName` text input for the `anniversary` quest type. Title and description templates render `"{{anniversaryYear}}{{ordinalSuffix}} Anniversary"` (e.g. "2nd Anniversary", "11th Anniversary") with a locale-aware `ordinalSuffix()` helper that returns `st/nd/rd/th` for English and an empty string for non-English locales (so "周年記念" / "주년" / "周年纪念" don't pick up an English suffix).
|
||||
- **Showcase character name** — when `gachaQuestType === "showcase"`, the editor swaps Chapter/Quest/Part for a single `characterName` input. The description renders the user's exact requested phrasing: "This video showcases the skills, appearance, and details of {{characterName}} in {{gameName}}{{versionLabel}} on {{channelName}}." Title becomes "{{gameName}} — Character Showcase: {{characterName}}".
|
||||
- **Gacha `gachaVersion` field** ([src/store/editor-store.ts](src/store/editor-store.ts)) — free-form game version label like "1.2", "2.4", scoped to the Gacha Quest video type. Distinct from `versionInfo` (driver/general game version, rendered in the 🖥 VIDEO SETTINGS block for any video type). Surfaces in Gacha-specific intros via a new `description.intro.versionInline` template helper that renders only when non-empty (so the parenthetical "(version 1.2)" disappears entirely when the field is blank — no "(version )" artifact).
|
||||
- **Cascading GPU dropdown** ([src/config/gpu-catalog.ts](src/config/gpu-catalog.ts), [src/config/rig-fields.ts](src/config/rig-fields.ts)) — three-level Brand → Series → Model picker covering NVIDIA (GTX 700/900/10/16, RTX 20/30/40/50), AMD (HD 7000, R7/R9 200/300, RX 400/500/Vega/5000/6000/7000/9000), Intel Arc (A and B series), and Apple Silicon (M1–M4 with Pro/Max/Ultra variants). A `Custom` brand swap-in keeps free-text entry available for niche cards. Stored as pipe-delimited `"<brand>|<series>|<model>"` so the rig store stays a flat `Record<string, string>` — no schema migration vs. v0.12. `formatRigValue("gpu", …)` outputs `"NVIDIA RTX 4090"` (drops the redundant series label).
|
||||
- **Composite RAM input** — two cascading dropdowns (Size + DDR) replace the free-text RAM field. Sizes: 4/6/8/12/16/32/64/96/128/256 GB plus a `Custom…` numeric input for unusual sticks. DDR generations: DDR1–DDR7. Output renders as `"32 GB DDR5"` / `"48 GB DDR5"` (custom). Same flat-string storage approach as GPU (`"<size>|<ddr>"`, with `"custom:48|DDR5"` for custom numeric).
|
||||
- **27 new content warnings + Playstyle disclosures group** ([src/engine/types.ts](src/engine/types.ts), [src/config/content-warning-groups.ts](src/config/content-warning-groups.ts)) — Phobias gain `cynophobia / nyctophobia / pyrophobia / pediophobia / hemophobia` (5). Mental health gains `bipolar_themes / ocd_themes / panic_attacks / dissociation` (4). Sensitive gains `hate_speech / historical_atrocity / slavery_themes / terrorism_themes / bullying_themes` (5). A brand-new **Playstyle disclosures** group (8 items) covers `blind_playthrough / no_spoilers_chat / casual_difficulty / hardcore_difficulty / permadeath_run / speedrun_attempt / completionist_run / learning_mechanics` — disclosure-style warnings that aren't really "content" but viewers benefit from knowing (e.g. "Blind playthrough — first time" sets expectations for repeated dying).
|
||||
- **Smart placeholders per Quest Type** ([src/config/gacha-quest-types.ts](src/config/gacha-quest-types.ts)) — `GACHA_QUEST_PLACEHOLDERS` map drives the Chapter / Quest / Part inputs to show context-specific hints based on the selected quest type: `"Day 12"` for Daily Commission, `"Floor 12"` for Endgame, `"Part 1"` and `"Chapter 5 Act 2"` for Main Story, etc. Placeholders only — no value clearing or auto-fill, so user input is preserved when switching types.
|
||||
- **Inline rig validation badges** ([src/utils/rig-validation.ts](src/utils/rig-validation.ts)) — `validateGpuValue` / `validateRamValue` flag half-filled selections (brand picked but no model, RAM size set but DDR missing, custom numeric empty) and the rig editor renders a small ⚠️ warning under the affected field. Soft warning only — the description still renders, but the badge nudges the creator to complete the field.
|
||||
- **Copy-over-limit guard** ([src/hooks/use-clipboard.ts](src/hooks/use-clipboard.ts)) — `useClipboard().copy(text, { limit, fieldLabel })` now refuses to write to the clipboard when `text.length > limit`. Surfaces a toast like "Title is too long: 117/100 chars. Trim before copying." Each output button (Title / Description / Tags) passes its respective `YT_LIMITS.*` cap; the Copy All bar pre-validates Title and Description and shows a combined error if either is over. Over-limit copy buttons render with a `text-danger` style and a ⚠️ icon so the lock state is visible before the user clicks.
|
||||
|
||||
### Changed
|
||||
|
||||
- **Editor store v10 → v11** ([src/store/editor-store.ts](src/store/editor-store.ts)) — additive only: `characterName: ""`, `anniversaryYear: null`, `gachaVersion: ""` back-fills. Out-of-range or non-integer `anniversaryYear` values coerce to `null` so a hand-edited persistent blob with `anniversaryYear: 99` doesn't render "99th Anniversary" in titles. Existing fields round-trip unchanged.
|
||||
- **Tauri window locked** ([src-tauri/tauri.conf.json](src-tauri/tauri.conf.json)) — `resizable: false`, `maximizable: false`, and `minWidth = maxWidth = 1100` / `minHeight = maxHeight = 750` ensure the desktop binary opens at the design resolution and stays there. Eliminates layout drift from users dragging the window to ultra-wide ratios where the editor → preview split breaks.
|
||||
- **AppShell layout reflow** ([src/components/layout/AppShell.tsx](src/components/layout/AppShell.tsx)) — root `min-h-screen` swapped for `h-screen overflow-hidden` so the outer container can't grow beyond viewport height. The `<main>` scroll container now actually constrains content, fixing the v0.12 bug where long descriptions caused the entire page (sidebar + header included) to scroll instead of just the main pane.
|
||||
- **Showcase template renders character, not quest** — `gachaQuestType.showcase` title and `description.intro.gacha_quest_showcase` now consume `characterName` instead of `questName`. Pre-v0.13 drafts that picked `showcase` and filled `questName` will see `characterName` empty after upgrade — re-enter the character into the new field.
|
||||
- **Anniversary template renders year + ordinal** — `gachaQuestType.anniversary` and `description.intro.gacha_quest_anniversary` consume `anniversaryYear` (number) instead of `chapterName` (free text). The English title is now `"<game> — 2nd Anniversary - Day N"` driven by the new ordinal helper; locale variants render in their native conventions ("2周年記念", "2주년 기념", "Aniversario 2", etc.).
|
||||
- **`formatRigValue()` extended** — switches on `field.type` to handle the two new cascading / composite types. Pre-v0.13 free-text GPU and RAM values (no pipes) pass through unchanged so existing profiles render the same string they did before; the editor displays them under the Custom brand for further editing.
|
||||
|
||||
### Under the hood
|
||||
|
||||
- **Schema-driven locale validation** still passes with 629 ui keys + 339 templates keys across all 6 locales (en/es/ja/ko/vi/zh) — every new key is mirrored in the schema and translated where applicable. Validation errors are caught at the build / pre-merge step via `npm run validate:locales`.
|
||||
- **`tests/engine/rig-fields.test.ts`** grew from 7 → 18 cases — new coverage for `cascading_dropdown` (brand+model formatting, custom-brand verbatim, brand-only fallback, legacy free-text passthrough) and `composite_dropdown` (size+DDR, custom numeric, partial values, legacy passthrough).
|
||||
- **`tests/store/editor-store.migrate.test.ts`** grew from 9 → 13 cases — new v10 → v11 migration tests assert the Gacha field back-fills, the 1–20 anniversary-year range guard, and the round-trip preservation of valid persisted values.
|
||||
- **`tests/engine/title-builder.test.ts`** updated — the Anniversary test now passes `anniversaryYear: 7` instead of `chapterName: "7th"` to match the new template shape.
|
||||
- Test count: 350/350 (was 335/335).
|
||||
|
||||
### Migration notes
|
||||
|
||||
- v10 → v11 is automatic and additive; the migration runs once on first launch of v0.13. Existing drafts are preserved.
|
||||
- **Showcase users**: the `questName` you previously typed for showcase videos won't be carried into `characterName`. Open the editor, pick Showcase, and re-enter the character — the field name change is intentional (Showcase = character, not quest).
|
||||
- **Anniversary users**: the free-text `chapterName` you used to type "2nd" / "Year 2" / etc. is no longer used by the Anniversary template. Pick the year from the new dropdown instead.
|
||||
- **Free-text GPU / RAM users**: existing profiles render identically. The editor will show your old free-text under the Custom brand / RAM legacy fallback; switch to the structured dropdowns when convenient.
|
||||
|
||||
## v0.12.1 — 2026-05-06
|
||||
|
||||
Hotfix for v0.12.0. Ticking a Tech Notes checkbox (or filling any of the new Playthrough Notes structured fields — Endings shown, Language patch, Game version) updated the editor state but never reached the description preview, because the editor → engine mapping in `useCurrentGeneratorInput` wasn't kept in sync when the new fields were added. The unit-test suite caught nothing because every v0.12 description-builder test passed `GeneratorInput` directly to the engine, bypassing the hook.
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "yt-desc-gen",
|
||||
"version": "0.12.1",
|
||||
"version": "0.13.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "yt-desc-gen",
|
||||
"version": "0.12.1",
|
||||
"version": "0.13.0",
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "^2.0.0",
|
||||
"@tauri-apps/plugin-dialog": "^2.0.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "yt-desc-gen",
|
||||
"version": "0.12.1",
|
||||
"version": "0.13.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
Generated
+1
-1
@@ -5426,7 +5426,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "yt-desc-gen"
|
||||
version = "0.12.1"
|
||||
version = "0.13.0"
|
||||
dependencies = [
|
||||
"serde",
|
||||
"serde_json",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "yt-desc-gen"
|
||||
version = "0.12.1"
|
||||
version = "0.13.0"
|
||||
description = "YouTube Gameplay Description Generator"
|
||||
authors = ["poli0981"]
|
||||
edition = "2021"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/tauri-apps/tauri/dev/crates/tauri-cli/schema.json",
|
||||
"productName": "YTDescGen",
|
||||
"version": "0.12.1",
|
||||
"version": "0.13.0",
|
||||
"identifier": "com.skullmute.ytdescgen",
|
||||
"build": {
|
||||
"beforeBuildCommand": "npm run build",
|
||||
@@ -15,9 +15,12 @@
|
||||
"title": "YTDescGen",
|
||||
"width": 1100,
|
||||
"height": 750,
|
||||
"minWidth": 800,
|
||||
"minHeight": 600,
|
||||
"resizable": true,
|
||||
"minWidth": 1100,
|
||||
"minHeight": 750,
|
||||
"maxWidth": 1100,
|
||||
"maxHeight": 750,
|
||||
"resizable": false,
|
||||
"maximizable": false,
|
||||
"fullscreen": false,
|
||||
"center": true
|
||||
}
|
||||
|
||||
@@ -4,10 +4,15 @@ import { Textarea } from "@components/ui/Textarea";
|
||||
import { VIDEO_TYPES } from "@config/video-types";
|
||||
import {
|
||||
GACHA_QUEST_TYPE_GROUPS,
|
||||
GACHA_QUEST_FIELD_VISIBILITY,
|
||||
GACHA_QUEST_PLACEHOLDERS,
|
||||
DEFAULT_GACHA_QUEST_TYPE,
|
||||
type GachaQuestType,
|
||||
} from "@config/gacha-quest-types";
|
||||
import { useEditorStore } from "@store/editor-store";
|
||||
|
||||
const ANNIVERSARY_YEARS = Array.from({ length: 20 }, (_, i) => i + 1);
|
||||
|
||||
/**
|
||||
* Renders inputs for the extra fields required by the currently selected
|
||||
* video type — e.g. "Part Number" for `part`, "Boss Name" for `boss`,
|
||||
@@ -22,6 +27,32 @@ export function ExtraFieldsInput() {
|
||||
const extraFields: readonly string[] = currentVideoType?.extraFields ?? [];
|
||||
if (extraFields.length === 0) return null;
|
||||
|
||||
const isGacha = store.videoType === "gacha_quest";
|
||||
const questType = (store.gachaQuestType ?? DEFAULT_GACHA_QUEST_TYPE) as GachaQuestType;
|
||||
const visibility = GACHA_QUEST_FIELD_VISIBILITY[questType];
|
||||
const placeholders = GACHA_QUEST_PLACEHOLDERS[questType];
|
||||
|
||||
const placeholderFor = (
|
||||
field: "chapterName" | "questName" | "partNumber",
|
||||
): string => {
|
||||
const key = `editor.placeholders.questType.${questType}.${field}`;
|
||||
const localised = t(key);
|
||||
if (localised && localised !== key) return localised;
|
||||
const fromMap = placeholders[field];
|
||||
if (fromMap) return fromMap;
|
||||
return t(`editor.${field}Placeholder`);
|
||||
};
|
||||
|
||||
// For non-gacha video types, the original visibility logic still applies
|
||||
// — every extraField listed renders. Only gacha-quest gates the trio
|
||||
// through `GACHA_QUEST_FIELD_VISIBILITY` plus the new char/year/version
|
||||
// fields.
|
||||
const showField = (id: "chapterName" | "questName" | "partNumber"): boolean => {
|
||||
if (!extraFields.includes(id)) return false;
|
||||
if (!isGacha) return true;
|
||||
return visibility[id];
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-3">
|
||||
{extraFields.includes("gachaQuestType") && (
|
||||
@@ -55,30 +86,74 @@ export function ExtraFieldsInput() {
|
||||
</select>
|
||||
</div>
|
||||
)}
|
||||
{extraFields.includes("chapterName") && (
|
||||
{isGacha && visibility.characterName && (
|
||||
<Input
|
||||
label={t("editor.characterName")}
|
||||
placeholder={t("editor.characterNamePlaceholder")}
|
||||
value={store.characterName ?? ""}
|
||||
onChange={(e) => store.set("characterName", e.target.value)}
|
||||
/>
|
||||
)}
|
||||
{isGacha && visibility.anniversaryYear && (
|
||||
<div className="flex flex-col gap-1">
|
||||
<label
|
||||
htmlFor="anniversary-year"
|
||||
className="text-sm font-medium text-text-secondary"
|
||||
>
|
||||
{t("editor.anniversaryYear")}
|
||||
</label>
|
||||
<select
|
||||
id="anniversary-year"
|
||||
value={store.anniversaryYear ?? ""}
|
||||
onChange={(e) =>
|
||||
store.set(
|
||||
"anniversaryYear",
|
||||
e.target.value === "" ? null : Number(e.target.value),
|
||||
)
|
||||
}
|
||||
className="rounded-lg border border-border bg-surface-1 px-3 py-2 text-sm text-text-primary transition-colors focus:border-accent focus:outline-none focus:ring-2 focus:ring-accent/50"
|
||||
>
|
||||
<option value="">—</option>
|
||||
{ANNIVERSARY_YEARS.map((y) => (
|
||||
<option key={y} value={y}>
|
||||
{t("editor.anniversaryYearOption", { count: y })}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
</div>
|
||||
)}
|
||||
{showField("chapterName") && (
|
||||
<Input
|
||||
label={t("editor.chapterName")}
|
||||
placeholder={t("editor.chapterNamePlaceholder")}
|
||||
placeholder={isGacha ? placeholderFor("chapterName") : t("editor.chapterNamePlaceholder")}
|
||||
value={store.chapterName ?? ""}
|
||||
onChange={(e) => store.set("chapterName", e.target.value)}
|
||||
/>
|
||||
)}
|
||||
{extraFields.includes("questName") && (
|
||||
{showField("questName") && (
|
||||
<Input
|
||||
label={t("editor.questName")}
|
||||
placeholder={t("editor.questNamePlaceholder")}
|
||||
placeholder={isGacha ? placeholderFor("questName") : t("editor.questNamePlaceholder")}
|
||||
value={store.questName ?? ""}
|
||||
onChange={(e) => store.set("questName", e.target.value)}
|
||||
/>
|
||||
)}
|
||||
{extraFields.includes("partNumber") && (
|
||||
{showField("partNumber") && (
|
||||
<Input
|
||||
label={t("editor.partNumber")}
|
||||
placeholder={t("editor.partNumberPlaceholder")}
|
||||
placeholder={isGacha ? placeholderFor("partNumber") : t("editor.partNumberPlaceholder")}
|
||||
value={store.partNumber ?? ""}
|
||||
onChange={(e) => store.set("partNumber", e.target.value)}
|
||||
/>
|
||||
)}
|
||||
{isGacha && (
|
||||
<Input
|
||||
label={t("editor.gachaVersion")}
|
||||
placeholder={t("editor.gachaVersionPlaceholder")}
|
||||
value={store.gachaVersion ?? ""}
|
||||
onChange={(e) => store.set("gachaVersion", e.target.value)}
|
||||
/>
|
||||
)}
|
||||
{extraFields.includes("bossName") && (
|
||||
<Input
|
||||
label={t("editor.bossName")}
|
||||
|
||||
@@ -1,48 +1,242 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { AlertTriangle } from "lucide-react";
|
||||
import { Input } from "@components/ui/Input";
|
||||
import { Select } from "@components/ui/Select";
|
||||
import { RIG_FIELDS } from "@config/rig-fields";
|
||||
import {
|
||||
RIG_FIELDS,
|
||||
parseCascadingValue,
|
||||
parseCompositeValue,
|
||||
type RigField,
|
||||
type CompositePart,
|
||||
} from "@config/rig-fields";
|
||||
import { GPU_CUSTOM_BRAND_ID, findGpuBrand } from "@config/gpu-catalog";
|
||||
import { useEditorStore } from "@store/editor-store";
|
||||
import {
|
||||
validateGpuValue,
|
||||
validateRamValue,
|
||||
type RigValidationIssue,
|
||||
} from "@utils/rig-validation";
|
||||
|
||||
const CUSTOM_PREFIX = "custom:";
|
||||
|
||||
function joinCascading(brand: string, series: string, model: string): string {
|
||||
if (!brand && !series && !model) return "";
|
||||
return `${brand}|${series}|${model}`;
|
||||
}
|
||||
|
||||
function joinComposite(parts: readonly string[]): string {
|
||||
if (parts.every((p) => !p)) return "";
|
||||
return parts.join("|");
|
||||
}
|
||||
|
||||
export function RigEditor() {
|
||||
const { t } = useTranslation("ui");
|
||||
const rig = useEditorStore((s) => s.rig);
|
||||
const setNested = useEditorStore((s) => s.setNested);
|
||||
|
||||
const renderValidationBadge = (issue: RigValidationIssue | null) => {
|
||||
if (!issue) return null;
|
||||
return (
|
||||
<div className="flex items-center gap-1 text-xs text-warning">
|
||||
<AlertTriangle className="h-3 w-3" />
|
||||
<span>{t(issue.messageKey)}</span>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const renderCascading = (field: RigField) => {
|
||||
const raw = rig[field.id] ?? "";
|
||||
const { brand, series, model } = parseCascadingValue(raw);
|
||||
const isCustom = brand === GPU_CUSTOM_BRAND_ID;
|
||||
const issue = validateGpuValue(raw);
|
||||
const catalog = field.catalog ?? [];
|
||||
|
||||
const brandOptions = [
|
||||
{ value: "", label: "—" },
|
||||
...catalog.map((b) => ({ value: b.id, label: b.label })),
|
||||
];
|
||||
const currentBrand = findGpuBrand(brand);
|
||||
const seriesOptions = currentBrand
|
||||
? [
|
||||
{ value: "", label: "—" },
|
||||
...currentBrand.series.map((s) => ({ value: s.id, label: s.label })),
|
||||
]
|
||||
: [{ value: "", label: "—" }];
|
||||
const currentSeries = currentBrand?.series.find((s) => s.id === series);
|
||||
const modelOptions = currentSeries
|
||||
? [
|
||||
{ value: "", label: "—" },
|
||||
...currentSeries.models.map((m) => ({ value: m, label: m })),
|
||||
]
|
||||
: [{ value: "", label: "—" }];
|
||||
|
||||
const setBrand = (next: string) => {
|
||||
// Switching brand resets series + model so the user can't end up
|
||||
// with mismatched cascading values (NVIDIA brand + AMD series).
|
||||
setNested("rig", field.id, next ? joinCascading(next, "", "") : "");
|
||||
};
|
||||
const setSeries = (next: string) => {
|
||||
setNested("rig", field.id, joinCascading(brand, next, ""));
|
||||
};
|
||||
const setModel = (next: string) => {
|
||||
setNested("rig", field.id, joinCascading(brand, series, next));
|
||||
};
|
||||
const setCustomText = (text: string) => {
|
||||
setNested(
|
||||
"rig",
|
||||
field.id,
|
||||
text ? joinCascading(GPU_CUSTOM_BRAND_ID, "", text) : "",
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<div key={field.id} className="col-span-2 flex flex-col gap-2">
|
||||
<span className="text-sm font-medium text-text-secondary">{t(field.labelKey)}</span>
|
||||
<div className="grid grid-cols-3 gap-2">
|
||||
<Select
|
||||
label={t("editor.gpu_brand")}
|
||||
value={brand}
|
||||
options={brandOptions}
|
||||
onChange={setBrand}
|
||||
/>
|
||||
{isCustom ? (
|
||||
<div className="col-span-2">
|
||||
<Input
|
||||
label={t("editor.gpu_custom")}
|
||||
placeholder="e.g. RTX 4090 (custom OC)"
|
||||
value={model}
|
||||
onChange={(e) => setCustomText(e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
) : (
|
||||
<>
|
||||
<Select
|
||||
label={t("editor.gpu_series")}
|
||||
value={series}
|
||||
options={seriesOptions}
|
||||
onChange={setSeries}
|
||||
disabled={!brand}
|
||||
/>
|
||||
<Select
|
||||
label={t("editor.gpu_model")}
|
||||
value={model}
|
||||
options={modelOptions}
|
||||
onChange={setModel}
|
||||
disabled={!series}
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
{renderValidationBadge(issue)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const renderComposite = (field: RigField) => {
|
||||
if (!field.composite) return null;
|
||||
const raw = rig[field.id] ?? "";
|
||||
const { parts: storedParts } = parseCompositeValue(raw);
|
||||
const issue = validateRamValue(raw);
|
||||
const partValues = field.composite.parts.map(
|
||||
(_p, i) => storedParts[i] ?? "",
|
||||
);
|
||||
|
||||
const setPart = (index: number, next: string) => {
|
||||
const updated = [...partValues];
|
||||
updated[index] = next;
|
||||
setNested("rig", field.id, joinComposite(updated));
|
||||
};
|
||||
|
||||
const renderPart = (part: CompositePart, index: number) => {
|
||||
const stored = partValues[index] ?? "";
|
||||
const isCustom = part.allowCustom && stored.startsWith(CUSTOM_PREFIX);
|
||||
const customText = isCustom ? stored.slice(CUSTOM_PREFIX.length) : "";
|
||||
const selectValue = isCustom ? "custom" : stored;
|
||||
|
||||
const onSelectChange = (next: string) => {
|
||||
if (next === "custom" && part.allowCustom) {
|
||||
setPart(index, `${CUSTOM_PREFIX}`);
|
||||
} else {
|
||||
setPart(index, next);
|
||||
}
|
||||
};
|
||||
const onCustomChange = (next: string) => {
|
||||
setPart(index, `${CUSTOM_PREFIX}${next}`);
|
||||
};
|
||||
|
||||
return (
|
||||
<div key={part.id} className="flex flex-col gap-1">
|
||||
<Select
|
||||
label={t(part.labelKey)}
|
||||
value={selectValue}
|
||||
options={part.options}
|
||||
onChange={onSelectChange}
|
||||
/>
|
||||
{isCustom && part.allowCustom && (
|
||||
<div className="flex items-center gap-2">
|
||||
<Input
|
||||
placeholder={part.customPlaceholder}
|
||||
value={customText}
|
||||
inputMode="numeric"
|
||||
onChange={(e) => onCustomChange(e.target.value)}
|
||||
/>
|
||||
{part.customSuffix && (
|
||||
<span className="text-sm text-text-muted">{part.customSuffix.trim()}</span>
|
||||
)}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<div key={field.id} className="col-span-2 flex flex-col gap-2">
|
||||
<span className="text-sm font-medium text-text-secondary">{t(field.labelKey)}</span>
|
||||
<div className="grid grid-cols-2 gap-2">
|
||||
{field.composite.parts.map((p, i) => renderPart(p, i))}
|
||||
</div>
|
||||
{renderValidationBadge(issue)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
const renderDropdownWithVersion = (field: RigField) => {
|
||||
const raw = rig[field.id] ?? "";
|
||||
const [value = "", version = ""] = raw.split("|");
|
||||
|
||||
const commit = (nextValue: string, nextVersion: string) => {
|
||||
// Keep the stored form compact: drop the pipe when empty.
|
||||
const next =
|
||||
!nextValue && !nextVersion ? "" : `${nextValue}|${nextVersion}`;
|
||||
setNested("rig", field.id, next);
|
||||
};
|
||||
|
||||
return (
|
||||
<div key={field.id} className="col-span-2 grid grid-cols-[1fr_auto] gap-2">
|
||||
<Select
|
||||
label={t(field.labelKey)}
|
||||
value={value}
|
||||
options={field.options ?? []}
|
||||
onChange={(v) => commit(v, version)}
|
||||
/>
|
||||
<Input
|
||||
label={t("editor.version")}
|
||||
placeholder={field.versionPlaceholder}
|
||||
value={version}
|
||||
onChange={(e) => commit(value, e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-3">
|
||||
<span className="text-sm font-medium text-text-secondary">{t("editor.rig")}</span>
|
||||
<div className="grid grid-cols-2 gap-2">
|
||||
{RIG_FIELDS.map((field) => {
|
||||
if (field.type === "dropdown_with_version") {
|
||||
const raw = rig[field.id] ?? "";
|
||||
const [value = "", version = ""] = raw.split("|");
|
||||
|
||||
const commit = (nextValue: string, nextVersion: string) => {
|
||||
// Keep the stored form compact: drop the pipe when empty.
|
||||
const next =
|
||||
!nextValue && !nextVersion ? "" : `${nextValue}|${nextVersion}`;
|
||||
setNested("rig", field.id, next);
|
||||
};
|
||||
|
||||
return (
|
||||
<div key={field.id} className="col-span-2 grid grid-cols-[1fr_auto] gap-2">
|
||||
<Select
|
||||
label={t(field.labelKey)}
|
||||
value={value}
|
||||
options={field.options ?? []}
|
||||
onChange={(v) => commit(v, version)}
|
||||
/>
|
||||
<Input
|
||||
label={t("editor.version")}
|
||||
placeholder={field.versionPlaceholder}
|
||||
value={version}
|
||||
onChange={(e) => commit(value, e.target.value)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
if (field.type === "cascading_dropdown") return renderCascading(field);
|
||||
if (field.type === "composite_dropdown") return renderComposite(field);
|
||||
if (field.type === "dropdown_with_version") return renderDropdownWithVersion(field);
|
||||
return (
|
||||
<Input
|
||||
key={field.id}
|
||||
|
||||
@@ -19,11 +19,11 @@ export function AppShell() {
|
||||
useGlobalErrorHandler();
|
||||
|
||||
return (
|
||||
<div className="flex min-h-screen bg-surface-0">
|
||||
<div className="flex h-screen overflow-hidden bg-surface-0">
|
||||
<Sidebar />
|
||||
<div className="flex min-w-0 flex-1 flex-col">
|
||||
<Header />
|
||||
<main className="flex-1 overflow-y-auto">
|
||||
<main className="min-h-0 flex-1 overflow-y-auto">
|
||||
<Outlet />
|
||||
</main>
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
import { useTranslation } from "react-i18next";
|
||||
import toast from "react-hot-toast";
|
||||
import { ClipboardCopy } from "lucide-react";
|
||||
import { Button } from "@components/ui/Button";
|
||||
import { useGeneratedOutput } from "@hooks/use-generated-output";
|
||||
import { useClipboard } from "@hooks/use-clipboard";
|
||||
import { YT_LIMITS } from "@engine/types";
|
||||
|
||||
interface CopyAllBarProps {
|
||||
extraText?: string;
|
||||
@@ -14,8 +16,34 @@ export function CopyAllBar({ extraText }: CopyAllBarProps) {
|
||||
const { copy } = useClipboard();
|
||||
|
||||
const handleCopyAll = () => {
|
||||
const text = extraText || `${output.title}\n\n${output.description}`;
|
||||
copy(text);
|
||||
if (extraText) {
|
||||
copy(extraText);
|
||||
return;
|
||||
}
|
||||
const overflows: string[] = [];
|
||||
if (output.title.length > YT_LIMITS.TITLE_MAX) {
|
||||
overflows.push(
|
||||
t("output.copy.overLimit", {
|
||||
field: t("output.title"),
|
||||
count: output.title.length,
|
||||
limit: YT_LIMITS.TITLE_MAX,
|
||||
}),
|
||||
);
|
||||
}
|
||||
if (output.description.length > YT_LIMITS.DESCRIPTION_MAX) {
|
||||
overflows.push(
|
||||
t("output.copy.overLimit", {
|
||||
field: t("output.description"),
|
||||
count: output.description.length,
|
||||
limit: YT_LIMITS.DESCRIPTION_MAX,
|
||||
}),
|
||||
);
|
||||
}
|
||||
if (overflows.length > 0) {
|
||||
toast.error(overflows.join("\n"));
|
||||
return;
|
||||
}
|
||||
copy(`${output.title}\n\n${output.description}`);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
@@ -1,18 +1,35 @@
|
||||
import { Copy, Check } from "lucide-react";
|
||||
import { Copy, Check, AlertTriangle } from "lucide-react";
|
||||
import clsx from "clsx";
|
||||
import { Button } from "@components/ui/Button";
|
||||
import { useClipboard } from "@hooks/use-clipboard";
|
||||
|
||||
interface CopyButtonProps {
|
||||
text: string;
|
||||
label: string;
|
||||
limit?: number;
|
||||
fieldLabel?: string;
|
||||
}
|
||||
|
||||
export function CopyButton({ text, label }: CopyButtonProps) {
|
||||
export function CopyButton({ text, label, limit, fieldLabel }: CopyButtonProps) {
|
||||
const { copy, copied } = useClipboard();
|
||||
const isOver = limit !== undefined && text.length > limit;
|
||||
|
||||
return (
|
||||
<Button variant="ghost" size="sm" onClick={() => copy(text)} disabled={!text}>
|
||||
{copied ? <Check className="h-4 w-4" /> : <Copy className="h-4 w-4" />}
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="sm"
|
||||
onClick={() => copy(text, { limit, fieldLabel })}
|
||||
disabled={!text}
|
||||
className={clsx(isOver && "text-danger hover:bg-surface-2 hover:text-danger")}
|
||||
title={isOver ? `${text.length}/${limit}` : undefined}
|
||||
>
|
||||
{isOver ? (
|
||||
<AlertTriangle className="h-4 w-4" />
|
||||
) : copied ? (
|
||||
<Check className="h-4 w-4" />
|
||||
) : (
|
||||
<Copy className="h-4 w-4" />
|
||||
)}
|
||||
{copied ? "Copied!" : label}
|
||||
</Button>
|
||||
);
|
||||
|
||||
@@ -24,7 +24,12 @@ export function OutputPreview({ output: outputProp }: OutputPreviewProps) {
|
||||
<h3 className="text-sm font-semibold text-text-primary">{t("output.title")}</h3>
|
||||
<div className="flex items-center gap-3">
|
||||
{showCharCount && <CharCounter text={output.title} limit={YT_LIMITS.TITLE_MAX} />}
|
||||
<CopyButton text={output.title} label={t("output.copyTitle")} />
|
||||
<CopyButton
|
||||
text={output.title}
|
||||
label={t("output.copyTitle")}
|
||||
limit={YT_LIMITS.TITLE_MAX}
|
||||
fieldLabel={t("output.title")}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="rounded-lg border border-border bg-surface-1 p-3">
|
||||
@@ -38,7 +43,12 @@ export function OutputPreview({ output: outputProp }: OutputPreviewProps) {
|
||||
<h3 className="text-sm font-semibold text-text-primary">{t("output.description")}</h3>
|
||||
<div className="flex items-center gap-3">
|
||||
{showCharCount && <CharCounter text={output.description} limit={YT_LIMITS.DESCRIPTION_MAX} />}
|
||||
<CopyButton text={output.description} label={t("output.copyDescription")} />
|
||||
<CopyButton
|
||||
text={output.description}
|
||||
label={t("output.copyDescription")}
|
||||
limit={YT_LIMITS.DESCRIPTION_MAX}
|
||||
fieldLabel={t("output.description")}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="max-h-[400px] overflow-y-auto rounded-lg border border-border bg-surface-1 p-3">
|
||||
@@ -56,7 +66,12 @@ export function OutputPreview({ output: outputProp }: OutputPreviewProps) {
|
||||
</h3>
|
||||
<div className="flex items-center gap-3">
|
||||
{showCharCount && <CharCounter text={output.tagString} limit={YT_LIMITS.TAGS_MAX} />}
|
||||
<CopyButton text={output.tagString} label={t("output.copyTags")} />
|
||||
<CopyButton
|
||||
text={output.tagString}
|
||||
label={t("output.copyTags")}
|
||||
limit={YT_LIMITS.TAGS_MAX}
|
||||
fieldLabel={t("output.tags")}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div className="rounded-lg border border-border bg-surface-1 p-3">
|
||||
|
||||
@@ -49,6 +49,11 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
|
||||
"arachnophobia",
|
||||
"entomophobia",
|
||||
"ophidiophobia",
|
||||
"cynophobia",
|
||||
"nyctophobia",
|
||||
"pyrophobia",
|
||||
"pediophobia",
|
||||
"hemophobia",
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -65,6 +70,10 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
|
||||
"body_fluids",
|
||||
"pregnancy_horror",
|
||||
"illness_themes",
|
||||
"bipolar_themes",
|
||||
"ocd_themes",
|
||||
"panic_attacks",
|
||||
"dissociation",
|
||||
],
|
||||
},
|
||||
{
|
||||
@@ -89,6 +98,25 @@ export const CONTENT_WARNING_GROUPS: readonly ContentWarningGroup[] = [
|
||||
"psychological_manipulation",
|
||||
"grief_loss",
|
||||
"kidnapping",
|
||||
"hate_speech",
|
||||
"historical_atrocity",
|
||||
"slavery_themes",
|
||||
"terrorism_themes",
|
||||
"bullying_themes",
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "playstyle",
|
||||
labelKey: "editor.contentWarningGroups.playstyle",
|
||||
items: [
|
||||
"blind_playthrough",
|
||||
"no_spoilers_chat",
|
||||
"casual_difficulty",
|
||||
"hardcore_difficulty",
|
||||
"permadeath_run",
|
||||
"speedrun_attempt",
|
||||
"completionist_run",
|
||||
"learning_mechanics",
|
||||
],
|
||||
},
|
||||
] as const;
|
||||
@@ -45,6 +45,12 @@ export interface EditorDefaults {
|
||||
chapterName: string;
|
||||
/** Gacha-quest individual quest / event name (free-form). */
|
||||
questName: string;
|
||||
/** Gacha-quest character name (v0.13) — only rendered for `showcase` quest type. */
|
||||
characterName: string;
|
||||
/** Gacha-quest anniversary year (v0.13) — only rendered for `anniversary` quest type. 1–20 or null. */
|
||||
anniversaryYear: number | null;
|
||||
/** Gacha-quest game version label (v0.13) — e.g. "1.2", "2.4". Only used for `gacha_quest` videoType. */
|
||||
gachaVersion: string;
|
||||
resolution: string;
|
||||
fps: string;
|
||||
graphicsPreset: GraphicsPreset;
|
||||
@@ -139,6 +145,9 @@ export const DEFAULTS = {
|
||||
gachaQuestType: DEFAULT_GACHA_QUEST_TYPE,
|
||||
chapterName: "",
|
||||
questName: "",
|
||||
characterName: "",
|
||||
anniversaryYear: null,
|
||||
gachaVersion: "",
|
||||
resolution: "1080p",
|
||||
fps: "60",
|
||||
graphicsPreset: "medium",
|
||||
|
||||
@@ -114,3 +114,102 @@ export const GACHA_PART_SUFFIX_STYLES: Record<GachaQuestType, GachaPartSuffixSty
|
||||
daily_commission: "day",
|
||||
showcase: "none",
|
||||
};
|
||||
|
||||
/**
|
||||
* Quest-type → which extra fields to render in the Gacha-quest editor
|
||||
* (v0.13). Keeps the `extra-fields` UI surgical: Showcase replaces
|
||||
* Chapter/Quest with Character Name, Anniversary swaps the part-number
|
||||
* input for a 1–20 year dropdown, and the rest fall back to the default
|
||||
* Chapter/Quest/Part triplet. `gachaVersion` is always shown for the
|
||||
* `gacha_quest` video type, regardless of the selected quest type — it
|
||||
* applies broadly (game patch labels like "1.2", "2.4").
|
||||
*/
|
||||
export interface GachaQuestFieldVisibility {
|
||||
chapterName: boolean;
|
||||
questName: boolean;
|
||||
partNumber: boolean;
|
||||
characterName: boolean;
|
||||
anniversaryYear: boolean;
|
||||
}
|
||||
|
||||
const DEFAULT_FIELD_VISIBILITY: GachaQuestFieldVisibility = {
|
||||
chapterName: true,
|
||||
questName: true,
|
||||
partNumber: true,
|
||||
characterName: false,
|
||||
anniversaryYear: false,
|
||||
};
|
||||
|
||||
export const GACHA_QUEST_FIELD_VISIBILITY: Record<
|
||||
GachaQuestType,
|
||||
GachaQuestFieldVisibility
|
||||
> = {
|
||||
main_story: { ...DEFAULT_FIELD_VISIBILITY, questName: false },
|
||||
world_quest: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
side_quest: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
spinoff_quest: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
companion_quest: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
bond_quest: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
event: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
anniversary: {
|
||||
chapterName: false,
|
||||
questName: false,
|
||||
partNumber: true,
|
||||
characterName: false,
|
||||
anniversaryYear: true,
|
||||
},
|
||||
crossover: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
dating_event: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
tutorial_quest: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
guide_quest: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
trial_quest: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
endgame: { ...DEFAULT_FIELD_VISIBILITY, questName: false },
|
||||
coop: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, partNumber: false },
|
||||
daily_commission: { ...DEFAULT_FIELD_VISIBILITY, chapterName: false, questName: false },
|
||||
showcase: {
|
||||
chapterName: false,
|
||||
questName: false,
|
||||
partNumber: false,
|
||||
characterName: true,
|
||||
anniversaryYear: false,
|
||||
},
|
||||
};
|
||||
|
||||
/**
|
||||
* Per-quest-type placeholder hints for Chapter Name / Quest Name / Part
|
||||
* Number inputs (v0.13 QoL). Surfaces concrete examples so creators
|
||||
* don't have to guess what each field expects under different quest
|
||||
* patterns. Translated via `editor.placeholders.questType.<id>.<field>`
|
||||
* — fall back to the static defaults when the locale lacks the override.
|
||||
*/
|
||||
export interface GachaQuestPlaceholders {
|
||||
chapterName?: string;
|
||||
questName?: string;
|
||||
partNumber?: string;
|
||||
}
|
||||
|
||||
export const GACHA_QUEST_PLACEHOLDERS: Record<GachaQuestType, GachaQuestPlaceholders> = {
|
||||
main_story: {
|
||||
chapterName: "e.g. Chapter 5 Act 2",
|
||||
partNumber: "e.g. Part 1",
|
||||
},
|
||||
world_quest: { questName: "e.g. The Hidden Path" },
|
||||
side_quest: { questName: "e.g. A Solitary Constellation" },
|
||||
spinoff_quest: { questName: "e.g. The Tale of Wuthering Waves" },
|
||||
companion_quest: { questName: "e.g. Yelan: Path of Stillness" },
|
||||
bond_quest: { questName: "e.g. Trust Mission - Hina" },
|
||||
event: { questName: "e.g. Summer Festival 2024" },
|
||||
anniversary: { partNumber: "Day 1, Day 7, etc." },
|
||||
crossover: { questName: "e.g. Honkai x Genshin Crossover" },
|
||||
dating_event: { questName: "e.g. Date with Furina" },
|
||||
tutorial_quest: { questName: "e.g. First Steps in Teyvat" },
|
||||
guide_quest: { questName: "e.g. How to upgrade artifacts" },
|
||||
trial_quest: { questName: "e.g. Adventure Trial - Diluc" },
|
||||
endgame: {
|
||||
chapterName: "e.g. Spiral Abyss / Memory of Chaos",
|
||||
partNumber: "Floor 12, Floor 11",
|
||||
},
|
||||
coop: { questName: "e.g. Co-op Boss Run" },
|
||||
daily_commission: { partNumber: "Day 1, Day 12, etc." },
|
||||
showcase: {},
|
||||
};
|
||||
@@ -0,0 +1,265 @@
|
||||
/**
|
||||
* GPU catalog for the My Rig editor (v0.13). Three-level taxonomy:
|
||||
*
|
||||
* Brand → Series → Model
|
||||
*
|
||||
* The cascading-dropdown UI in {@link RigEditor} stores the user's
|
||||
* choice as a pipe-delimited string `"<brandId>|<seriesId>|<model>"` so
|
||||
* the rig store stays a flat `Record<string, string>` (no schema
|
||||
* migration vs. v0.12). The third segment is the verbatim model display
|
||||
* string — it's stored as-is so we never need a reverse lookup table to
|
||||
* render the value back into the description output.
|
||||
*
|
||||
* Backward-compatibility: pre-v0.13 rigs persisted GPU as free-form text
|
||||
* (`"NVIDIA RTX 4090"`). Those values lack pipes, so `formatRigValue`
|
||||
* passes them through unchanged, and the editor renders them under the
|
||||
* `custom` brand for further editing.
|
||||
*
|
||||
* Scope: ambitious — covers the GPUs viewers commonly own in 2026,
|
||||
* which still includes 10+ years of legacy NVIDIA / AMD parts because
|
||||
* gameplay-no-commentary audiences run a wide spread of hardware ages.
|
||||
*
|
||||
* Apple Silicon is included for creators who edit on Mac and want their
|
||||
* rig listing to reflect that, even though Apple chips aren't really
|
||||
* "gaming GPUs" in the discrete-card sense.
|
||||
*/
|
||||
|
||||
export interface GpuSeries {
|
||||
/** Stable id used in the storage tuple (`<brandId>|<seriesId>|<model>`). */
|
||||
readonly id: string;
|
||||
readonly label: string;
|
||||
/** Free-form display strings — stored verbatim as the model segment. */
|
||||
readonly models: readonly string[];
|
||||
}
|
||||
|
||||
export interface GpuBrand {
|
||||
readonly id: string;
|
||||
readonly label: string;
|
||||
readonly series: readonly GpuSeries[];
|
||||
}
|
||||
|
||||
export type GpuCatalog = readonly GpuBrand[];
|
||||
|
||||
const NVIDIA_SERIES: readonly GpuSeries[] = [
|
||||
{
|
||||
id: "rtx_50",
|
||||
label: "RTX 50 Series",
|
||||
models: ["RTX 5050", "RTX 5060", "RTX 5060 Ti", "RTX 5070", "RTX 5070 Ti", "RTX 5080", "RTX 5090"],
|
||||
},
|
||||
{
|
||||
id: "rtx_40",
|
||||
label: "RTX 40 Series",
|
||||
models: [
|
||||
"RTX 4050 (laptop)",
|
||||
"RTX 4060",
|
||||
"RTX 4060 Ti",
|
||||
"RTX 4070",
|
||||
"RTX 4070 SUPER",
|
||||
"RTX 4070 Ti",
|
||||
"RTX 4070 Ti SUPER",
|
||||
"RTX 4080",
|
||||
"RTX 4080 SUPER",
|
||||
"RTX 4090",
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "rtx_30",
|
||||
label: "RTX 30 Series",
|
||||
models: [
|
||||
"RTX 3050",
|
||||
"RTX 3050 6GB",
|
||||
"RTX 3060",
|
||||
"RTX 3060 Ti",
|
||||
"RTX 3070",
|
||||
"RTX 3070 Ti",
|
||||
"RTX 3080",
|
||||
"RTX 3080 12GB",
|
||||
"RTX 3080 Ti",
|
||||
"RTX 3090",
|
||||
"RTX 3090 Ti",
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "rtx_20",
|
||||
label: "RTX 20 Series",
|
||||
models: [
|
||||
"RTX 2060",
|
||||
"RTX 2060 SUPER",
|
||||
"RTX 2070",
|
||||
"RTX 2070 SUPER",
|
||||
"RTX 2080",
|
||||
"RTX 2080 SUPER",
|
||||
"RTX 2080 Ti",
|
||||
"TITAN RTX",
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "gtx_16",
|
||||
label: "GTX 16 Series",
|
||||
models: ["GTX 1630", "GTX 1650", "GTX 1650 SUPER", "GTX 1660", "GTX 1660 SUPER", "GTX 1660 Ti"],
|
||||
},
|
||||
{
|
||||
id: "gtx_10",
|
||||
label: "GTX 10 Series",
|
||||
models: [
|
||||
"GTX 1050",
|
||||
"GTX 1050 Ti",
|
||||
"GTX 1060 3GB",
|
||||
"GTX 1060 6GB",
|
||||
"GTX 1070",
|
||||
"GTX 1070 Ti",
|
||||
"GTX 1080",
|
||||
"GTX 1080 Ti",
|
||||
"TITAN Xp",
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "gtx_900",
|
||||
label: "GTX 900 Series",
|
||||
models: ["GTX 950", "GTX 960", "GTX 970", "GTX 980", "GTX 980 Ti", "TITAN X (Maxwell)"],
|
||||
},
|
||||
{
|
||||
id: "gtx_700",
|
||||
label: "GTX 700 Series",
|
||||
models: ["GTX 750", "GTX 750 Ti", "GTX 760", "GTX 770", "GTX 780", "GTX 780 Ti", "TITAN Black"],
|
||||
},
|
||||
];
|
||||
|
||||
const AMD_SERIES: readonly GpuSeries[] = [
|
||||
{
|
||||
id: "rx_9000",
|
||||
label: "Radeon RX 9000",
|
||||
models: ["RX 9060", "RX 9060 XT", "RX 9070", "RX 9070 XT", "RX 9080", "RX 9090 XT"],
|
||||
},
|
||||
{
|
||||
id: "rx_7000",
|
||||
label: "Radeon RX 7000",
|
||||
models: [
|
||||
"RX 7600",
|
||||
"RX 7600 XT",
|
||||
"RX 7700 XT",
|
||||
"RX 7800 XT",
|
||||
"RX 7900 GRE",
|
||||
"RX 7900 XT",
|
||||
"RX 7900 XTX",
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "rx_6000",
|
||||
label: "Radeon RX 6000",
|
||||
models: [
|
||||
"RX 6400",
|
||||
"RX 6500 XT",
|
||||
"RX 6600",
|
||||
"RX 6600 XT",
|
||||
"RX 6650 XT",
|
||||
"RX 6700",
|
||||
"RX 6700 XT",
|
||||
"RX 6750 XT",
|
||||
"RX 6800",
|
||||
"RX 6800 XT",
|
||||
"RX 6900 XT",
|
||||
"RX 6950 XT",
|
||||
],
|
||||
},
|
||||
{
|
||||
id: "rx_5000",
|
||||
label: "Radeon RX 5000",
|
||||
models: ["RX 5500", "RX 5500 XT", "RX 5600", "RX 5600 XT", "RX 5700", "RX 5700 XT"],
|
||||
},
|
||||
{
|
||||
id: "rx_vega",
|
||||
label: "Radeon RX Vega",
|
||||
models: ["RX Vega 56", "RX Vega 64", "Radeon VII"],
|
||||
},
|
||||
{
|
||||
id: "rx_500",
|
||||
label: "Radeon RX 500",
|
||||
models: ["RX 550", "RX 560", "RX 570", "RX 580", "RX 590"],
|
||||
},
|
||||
{
|
||||
id: "rx_400",
|
||||
label: "Radeon RX 400",
|
||||
models: ["RX 460", "RX 470", "RX 480"],
|
||||
},
|
||||
{
|
||||
id: "r9_300",
|
||||
label: "Radeon R7/R9 300",
|
||||
models: ["R7 360", "R7 370", "R9 380", "R9 380X", "R9 390", "R9 390X", "R9 Fury", "R9 Fury X", "R9 Nano"],
|
||||
},
|
||||
{
|
||||
id: "r9_200",
|
||||
label: "Radeon R7/R9 200",
|
||||
models: ["R7 250", "R7 260", "R7 260X", "R9 270", "R9 270X", "R9 280", "R9 280X", "R9 290", "R9 290X"],
|
||||
},
|
||||
{
|
||||
id: "hd_7000",
|
||||
label: "Radeon HD 7000",
|
||||
models: ["HD 7750", "HD 7770", "HD 7850", "HD 7870", "HD 7950", "HD 7970"],
|
||||
},
|
||||
];
|
||||
|
||||
const INTEL_SERIES: readonly GpuSeries[] = [
|
||||
{
|
||||
id: "arc_b",
|
||||
label: "Arc B Series (Battlemage)",
|
||||
models: ["Arc B380", "Arc B570", "Arc B580"],
|
||||
},
|
||||
{
|
||||
id: "arc_a",
|
||||
label: "Arc A Series (Alchemist)",
|
||||
models: ["Arc A310", "Arc A380", "Arc A580", "Arc A750", "Arc A770"],
|
||||
},
|
||||
];
|
||||
|
||||
const APPLE_SERIES: readonly GpuSeries[] = [
|
||||
{
|
||||
id: "m4",
|
||||
label: "Apple M4",
|
||||
models: ["M4", "M4 Pro", "M4 Max"],
|
||||
},
|
||||
{
|
||||
id: "m3",
|
||||
label: "Apple M3",
|
||||
models: ["M3", "M3 Pro", "M3 Max", "M3 Ultra"],
|
||||
},
|
||||
{
|
||||
id: "m2",
|
||||
label: "Apple M2",
|
||||
models: ["M2", "M2 Pro", "M2 Max", "M2 Ultra"],
|
||||
},
|
||||
{
|
||||
id: "m1",
|
||||
label: "Apple M1",
|
||||
models: ["M1", "M1 Pro", "M1 Max", "M1 Ultra"],
|
||||
},
|
||||
];
|
||||
|
||||
export const GPU_CATALOG: GpuCatalog = [
|
||||
{ id: "nvidia", label: "NVIDIA", series: NVIDIA_SERIES },
|
||||
{ id: "amd", label: "AMD", series: AMD_SERIES },
|
||||
{ id: "intel", label: "Intel", series: INTEL_SERIES },
|
||||
{ id: "apple", label: "Apple Silicon", series: APPLE_SERIES },
|
||||
{ id: "custom", label: "Custom", series: [] },
|
||||
];
|
||||
|
||||
/** Stable signal that the user picked the free-text fallback. */
|
||||
export const GPU_CUSTOM_BRAND_ID = "custom";
|
||||
|
||||
/**
|
||||
* Lookup a brand by id without throwing. Returns `undefined` for unknown
|
||||
* ids so callers can render a graceful fallback (legacy free-text values
|
||||
* round-trip without exploding).
|
||||
*/
|
||||
export function findGpuBrand(brandId: string): GpuBrand | undefined {
|
||||
return GPU_CATALOG.find((b) => b.id === brandId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup a series within a known brand. Returns `undefined` for both
|
||||
* unknown brand and unknown series; the caller decides whether to clear
|
||||
* the downstream model selection or preserve it.
|
||||
*/
|
||||
export function findGpuSeries(brandId: string, seriesId: string): GpuSeries | undefined {
|
||||
return findGpuBrand(brandId)?.series.find((s) => s.id === seriesId);
|
||||
}
|
||||
+207
-17
@@ -1,3 +1,10 @@
|
||||
import {
|
||||
GPU_CATALOG,
|
||||
GPU_CUSTOM_BRAND_ID,
|
||||
findGpuBrand,
|
||||
type GpuCatalog,
|
||||
} from "./gpu-catalog";
|
||||
|
||||
/**
|
||||
* Supported rig field input types.
|
||||
*
|
||||
@@ -6,8 +13,23 @@
|
||||
* free-form version text input. The stored value is
|
||||
* `"<option_value>|<version>"` so we don't break the flat
|
||||
* `Partial<Record<string, string>>` rig shape in the editor store.
|
||||
* - `cascading_dropdown` (v0.13): three-level Brand → Series → Model
|
||||
* dropdown for GPU. Stored as `"<brand>|<series>|<model>"`. When
|
||||
* brand = `"custom"`, the UI swaps to a single free-text input and
|
||||
* stores `"custom||<freeText>"` (the model is the verbatim text the
|
||||
* user typed). Pre-v0.13 free-text values lack pipes — they pass
|
||||
* through `formatRigValue` unchanged so old profiles render the same
|
||||
* string they did before.
|
||||
* - `composite_dropdown` (v0.13): two-or-more dropdowns combined into
|
||||
* one logical field. Used by RAM (size + DDR generation). Each part
|
||||
* may opt into a free-text "Custom" override; the stored format is
|
||||
* pipe-delimited in the order parts are declared.
|
||||
*/
|
||||
export type RigFieldType = "text" | "dropdown_with_version";
|
||||
export type RigFieldType =
|
||||
| "text"
|
||||
| "dropdown_with_version"
|
||||
| "cascading_dropdown"
|
||||
| "composite_dropdown";
|
||||
|
||||
export interface RigFieldOption {
|
||||
readonly value: string;
|
||||
@@ -15,6 +37,29 @@ export interface RigFieldOption {
|
||||
readonly label: string;
|
||||
}
|
||||
|
||||
export interface CompositePart {
|
||||
/** Stable id, used to assemble the storage tuple in declaration order. */
|
||||
readonly id: string;
|
||||
readonly labelKey: string;
|
||||
readonly options: readonly RigFieldOption[];
|
||||
/** When true, the part renders an extra free-text input when value === `"custom"`. */
|
||||
readonly allowCustom?: boolean;
|
||||
/** Suffix shown after the custom numeric input (e.g. " GB"). */
|
||||
readonly customSuffix?: string;
|
||||
/** Optional placeholder for the custom input. */
|
||||
readonly customPlaceholder?: string;
|
||||
}
|
||||
|
||||
export interface CompositeFieldSpec {
|
||||
readonly parts: readonly CompositePart[];
|
||||
/**
|
||||
* Format the stored parts into the description-output string. Receives
|
||||
* resolved labels (not raw ids) — for `custom` parts the resolved value
|
||||
* is the free-text the user typed.
|
||||
*/
|
||||
readonly format: (resolvedParts: readonly string[]) => string;
|
||||
}
|
||||
|
||||
export interface RigField {
|
||||
readonly id: string;
|
||||
readonly labelKey: string;
|
||||
@@ -22,6 +67,10 @@ export interface RigField {
|
||||
readonly placeholder?: string;
|
||||
readonly options?: readonly RigFieldOption[];
|
||||
readonly versionPlaceholder?: string;
|
||||
/** Set when {@link type} is `"cascading_dropdown"`. */
|
||||
readonly catalog?: GpuCatalog;
|
||||
/** Set when {@link type} is `"composite_dropdown"`. */
|
||||
readonly composite?: CompositeFieldSpec;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -45,10 +94,73 @@ export const VIDEO_EDITOR_OPTIONS: readonly RigFieldOption[] = [
|
||||
{ value: "other", label: "Other" },
|
||||
];
|
||||
|
||||
/** RAM size options in GB. `custom` opens a numeric free-text input. */
|
||||
export const RAM_SIZE_OPTIONS: readonly RigFieldOption[] = [
|
||||
{ value: "", label: "—" },
|
||||
{ value: "4", label: "4 GB" },
|
||||
{ value: "6", label: "6 GB" },
|
||||
{ value: "8", label: "8 GB" },
|
||||
{ value: "12", label: "12 GB" },
|
||||
{ value: "16", label: "16 GB" },
|
||||
{ value: "32", label: "32 GB" },
|
||||
{ value: "64", label: "64 GB" },
|
||||
{ value: "96", label: "96 GB" },
|
||||
{ value: "128", label: "128 GB" },
|
||||
{ value: "256", label: "256 GB" },
|
||||
{ value: "custom", label: "Custom…" },
|
||||
];
|
||||
|
||||
/** DDR generation. DDR1 stays in the list for legacy gear; users with
|
||||
* unusual rigs (DDR6/DDR7) can pick early-spec options. */
|
||||
export const RAM_DDR_OPTIONS: readonly RigFieldOption[] = [
|
||||
{ value: "", label: "—" },
|
||||
{ value: "DDR1", label: "DDR1" },
|
||||
{ value: "DDR2", label: "DDR2" },
|
||||
{ value: "DDR3", label: "DDR3" },
|
||||
{ value: "DDR4", label: "DDR4" },
|
||||
{ value: "DDR5", label: "DDR5" },
|
||||
{ value: "DDR6", label: "DDR6" },
|
||||
{ value: "DDR7", label: "DDR7" },
|
||||
];
|
||||
|
||||
const RAM_COMPOSITE: CompositeFieldSpec = {
|
||||
parts: [
|
||||
{
|
||||
id: "size",
|
||||
labelKey: "editor.ram_size",
|
||||
options: RAM_SIZE_OPTIONS,
|
||||
allowCustom: true,
|
||||
customSuffix: " GB",
|
||||
customPlaceholder: "48",
|
||||
},
|
||||
{
|
||||
id: "ddr",
|
||||
labelKey: "editor.ram_ddr",
|
||||
options: RAM_DDR_OPTIONS,
|
||||
},
|
||||
],
|
||||
format: ([size = "", ddr = ""]) => {
|
||||
if (!size && !ddr) return "";
|
||||
if (!size) return ddr;
|
||||
if (!ddr) return size;
|
||||
return `${size} ${ddr}`;
|
||||
},
|
||||
};
|
||||
|
||||
export const RIG_FIELDS: readonly RigField[] = [
|
||||
{ id: "cpu", labelKey: "rig.cpu", type: "text", placeholder: "Intel i9-14900K / AMD Ryzen 9 7950X" },
|
||||
{ id: "gpu", labelKey: "rig.gpu", type: "text", placeholder: "NVIDIA RTX 4090 / AMD RX 7900 XTX" },
|
||||
{ id: "ram", labelKey: "rig.ram", type: "text", placeholder: "32GB DDR5-6000" },
|
||||
{
|
||||
id: "gpu",
|
||||
labelKey: "rig.gpu",
|
||||
type: "cascading_dropdown",
|
||||
catalog: GPU_CATALOG,
|
||||
},
|
||||
{
|
||||
id: "ram",
|
||||
labelKey: "rig.ram",
|
||||
type: "composite_dropdown",
|
||||
composite: RAM_COMPOSITE,
|
||||
},
|
||||
{ id: "storage", labelKey: "rig.storage", type: "text", placeholder: "2TB Samsung 990 PRO NVMe" },
|
||||
{ id: "monitor", labelKey: "rig.monitor", type: "text", placeholder: "LG 27GP950 27\" 4K 144Hz" },
|
||||
{ id: "capture", labelKey: "rig.capture", type: "text", placeholder: "OBS Studio 30.x" },
|
||||
@@ -65,27 +177,105 @@ export const RIG_FIELDS: readonly RigField[] = [
|
||||
|
||||
export type RigFieldId = (typeof RIG_FIELDS)[number]["id"];
|
||||
|
||||
/**
|
||||
* Parse a cascading-dropdown stored value into its three segments.
|
||||
* Empty segments stay as empty strings. Pipeless legacy values are
|
||||
* returned as `["", "", raw]` so the caller can render them under the
|
||||
* Custom brand without losing the original text.
|
||||
*/
|
||||
export function parseCascadingValue(raw: string): {
|
||||
brand: string;
|
||||
series: string;
|
||||
model: string;
|
||||
isLegacy: boolean;
|
||||
} {
|
||||
if (!raw) return { brand: "", series: "", model: "", isLegacy: false };
|
||||
if (!raw.includes("|")) {
|
||||
// Pre-v0.13 free-text. Treat as Custom + verbatim model.
|
||||
return { brand: GPU_CUSTOM_BRAND_ID, series: "", model: raw, isLegacy: true };
|
||||
}
|
||||
const [brand = "", series = "", model = ""] = raw.split("|");
|
||||
return { brand, series, model, isLegacy: false };
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse a composite-dropdown stored value into its segments. The order
|
||||
* matches the parts declared on the field's {@link CompositeFieldSpec}.
|
||||
* Pipeless legacy values are returned as a single-element tuple so the
|
||||
* caller can render them as a fallback string.
|
||||
*/
|
||||
export function parseCompositeValue(raw: string): {
|
||||
parts: readonly string[];
|
||||
isLegacy: boolean;
|
||||
} {
|
||||
if (!raw) return { parts: [], isLegacy: false };
|
||||
if (!raw.includes("|")) return { parts: [raw], isLegacy: true };
|
||||
return { parts: raw.split("|"), isLegacy: false };
|
||||
}
|
||||
|
||||
/**
|
||||
* Format a stored rig value for display in the description output.
|
||||
* For dropdown_with_version fields, this turns `"davinci_resolve_studio|19.1"`
|
||||
* into `"DaVinci Resolve Studio 19.1"`. Other values pass through.
|
||||
*
|
||||
* - `dropdown_with_version` ("davinci_resolve_studio|19.1") →
|
||||
* `"DaVinci Resolve Studio 19.1"`.
|
||||
* - `cascading_dropdown` ("nvidia|rtx_40|RTX 4090") →
|
||||
* `"NVIDIA RTX 4090"` (series label dropped — the model string is
|
||||
* already verbose enough). Custom brand returns the verbatim model.
|
||||
* Legacy pipeless values pass through unchanged.
|
||||
* - `composite_dropdown` ("16|DDR5", "custom:48|DDR5") →
|
||||
* `"16 GB DDR5"` / `"48 GB DDR5"` via the field's
|
||||
* {@link CompositeFieldSpec.format}.
|
||||
* - All other field types pass the raw value through.
|
||||
*/
|
||||
export function formatRigValue(fieldId: string, raw: string): string {
|
||||
const field = RIG_FIELDS.find((f) => f.id === fieldId);
|
||||
if (!field || field.type !== "dropdown_with_version") return raw;
|
||||
if (!field) return raw;
|
||||
|
||||
const [value = "", version = ""] = raw.split("|");
|
||||
const trimmedVersion = version.trim();
|
||||
if (!value && !trimmedVersion) return "";
|
||||
if (field.type === "dropdown_with_version") {
|
||||
const [value = "", version = ""] = raw.split("|");
|
||||
const trimmedVersion = version.trim();
|
||||
if (!value && !trimmedVersion) return "";
|
||||
|
||||
// The empty-value sentinel option renders as "—" in the dropdown but
|
||||
// should act as "no selection" in the output.
|
||||
let label = "";
|
||||
if (value) {
|
||||
const option = field.options?.find((o) => o.value === value);
|
||||
label = option?.label ?? value;
|
||||
let label = "";
|
||||
if (value) {
|
||||
const option = field.options?.find((o) => o.value === value);
|
||||
label = option?.label ?? value;
|
||||
}
|
||||
|
||||
if (!label) return trimmedVersion;
|
||||
return trimmedVersion ? `${label} ${trimmedVersion}` : label;
|
||||
}
|
||||
|
||||
if (!label) return trimmedVersion;
|
||||
return trimmedVersion ? `${label} ${trimmedVersion}` : label;
|
||||
if (field.type === "cascading_dropdown") {
|
||||
const { brand, model, isLegacy } = parseCascadingValue(raw);
|
||||
if (isLegacy) return raw;
|
||||
if (!brand && !model) return "";
|
||||
if (brand === GPU_CUSTOM_BRAND_ID) return model.trim();
|
||||
const brandLabel = findGpuBrand(brand)?.label ?? brand;
|
||||
if (!model.trim()) return brandLabel;
|
||||
return `${brandLabel} ${model.trim()}`;
|
||||
}
|
||||
|
||||
if (field.type === "composite_dropdown" && field.composite) {
|
||||
const { parts, isLegacy } = parseCompositeValue(raw);
|
||||
if (isLegacy) return raw;
|
||||
if (parts.length === 0) return "";
|
||||
|
||||
// Resolve each declared part. `custom:<value>` segments collapse to
|
||||
// the free-text payload (without the `custom:` prefix).
|
||||
const resolved = field.composite.parts.map((spec, i) => {
|
||||
const stored = (parts[i] ?? "").trim();
|
||||
if (!stored) return "";
|
||||
if (spec.allowCustom && stored.startsWith("custom:")) {
|
||||
const txt = stored.slice("custom:".length).trim();
|
||||
return txt ? `${txt}${spec.customSuffix ?? ""}` : "";
|
||||
}
|
||||
const opt = spec.options.find((o) => o.value === stored);
|
||||
return opt?.label ?? stored;
|
||||
});
|
||||
|
||||
return field.composite.format(resolved);
|
||||
}
|
||||
|
||||
return raw;
|
||||
}
|
||||
@@ -4,6 +4,7 @@ import { PLATFORMS } from "@config/platforms";
|
||||
import { SOCIAL_FIELDS } from "@config/social-fields";
|
||||
import { formatRigValue } from "@config/rig-fields";
|
||||
import { DEFAULT_GACHA_QUEST_TYPE } from "@config/gacha-quest-types";
|
||||
import { ordinalSuffix } from "./title-builder";
|
||||
import { parseTimeline, renderTimeline } from "./timeline-parser";
|
||||
import { sanitizeHashtag } from "@utils/sanitize";
|
||||
|
||||
@@ -226,6 +227,9 @@ export function buildDescription(
|
||||
const questType = input.gachaQuestType ?? DEFAULT_GACHA_QUEST_TYPE;
|
||||
introKey = `description.intro.gacha_quest_${questType}`;
|
||||
}
|
||||
const versionLabel = input.gachaVersion?.trim()
|
||||
? ` (${t("description.intro.versionInline", { v: input.gachaVersion.trim() })})`
|
||||
: "";
|
||||
const intro = t(introKey, {
|
||||
gameName,
|
||||
channelName: input.channelName,
|
||||
@@ -236,6 +240,12 @@ export function buildDescription(
|
||||
modName: input.modName ?? "",
|
||||
chapterName: input.chapterName ?? "",
|
||||
questName: input.questName ?? "",
|
||||
characterName: input.characterName ?? "",
|
||||
anniversaryYear: input.anniversaryYear != null ? String(input.anniversaryYear) : "",
|
||||
ordinalSuffix:
|
||||
input.anniversaryYear != null ? ordinalSuffix(input.anniversaryYear) : "",
|
||||
gachaVersion: input.gachaVersion ?? "",
|
||||
versionLabel,
|
||||
});
|
||||
sections.push(intro);
|
||||
|
||||
|
||||
@@ -125,6 +125,29 @@ function composeTitle(args: ComposeArgs): string {
|
||||
return parts.join(separator);
|
||||
}
|
||||
|
||||
/**
|
||||
* English ordinal suffix for an integer (1 → "st", 2 → "nd", 11 → "th",
|
||||
* 21 → "st", etc.). Used by the Anniversary template to render
|
||||
* `"{{anniversaryYear}}{{ordinalSuffix}} Anniversary"` as e.g.
|
||||
* `"2nd Anniversary"`. Non-English locales pass an empty string so the
|
||||
* native form ("第2周年", "주년") doesn't pick up an English suffix.
|
||||
*/
|
||||
export function ordinalSuffix(n: number): string {
|
||||
const abs = Math.abs(Math.trunc(n));
|
||||
const lastTwo = abs % 100;
|
||||
if (lastTwo >= 11 && lastTwo <= 13) return "th";
|
||||
switch (abs % 10) {
|
||||
case 1:
|
||||
return "st";
|
||||
case 2:
|
||||
return "nd";
|
||||
case 3:
|
||||
return "rd";
|
||||
default:
|
||||
return "th";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the per-quest-type partNumber suffix for a gacha title — e.g.
|
||||
* `" - Part 5"`, `" - Day 3"`, `" - Floor 12"`. Driven by the
|
||||
@@ -180,6 +203,10 @@ export function buildTitle(
|
||||
gameName,
|
||||
chapterName: input.chapterName ?? "",
|
||||
questName: input.questName ?? "",
|
||||
characterName: input.characterName ?? "",
|
||||
anniversaryYear: input.anniversaryYear != null ? String(input.anniversaryYear) : "",
|
||||
ordinalSuffix: input.anniversaryYear != null ? ordinalSuffix(input.anniversaryYear) : "",
|
||||
gachaVersion: input.gachaVersion ?? "",
|
||||
partSuffix,
|
||||
});
|
||||
|
||||
|
||||
@@ -241,6 +241,11 @@ export const CONTENT_WARNINGS = [
|
||||
"arachnophobia",
|
||||
"entomophobia",
|
||||
"ophidiophobia",
|
||||
"cynophobia",
|
||||
"nyctophobia",
|
||||
"pyrophobia",
|
||||
"pediophobia",
|
||||
"hemophobia",
|
||||
// Mental health
|
||||
"anxiety_inducing",
|
||||
"depression_themes",
|
||||
@@ -252,6 +257,10 @@ export const CONTENT_WARNINGS = [
|
||||
"body_fluids",
|
||||
"pregnancy_horror",
|
||||
"illness_themes",
|
||||
"bipolar_themes",
|
||||
"ocd_themes",
|
||||
"panic_attacks",
|
||||
"dissociation",
|
||||
// Mature / sensitive
|
||||
"blood_gore",
|
||||
"mature_18plus",
|
||||
@@ -271,6 +280,20 @@ export const CONTENT_WARNINGS = [
|
||||
"psychological_manipulation",
|
||||
"grief_loss",
|
||||
"kidnapping",
|
||||
"hate_speech",
|
||||
"historical_atrocity",
|
||||
"slavery_themes",
|
||||
"terrorism_themes",
|
||||
"bullying_themes",
|
||||
// Playstyle disclosures
|
||||
"blind_playthrough",
|
||||
"no_spoilers_chat",
|
||||
"casual_difficulty",
|
||||
"hardcore_difficulty",
|
||||
"permadeath_run",
|
||||
"speedrun_attempt",
|
||||
"completionist_run",
|
||||
"learning_mechanics",
|
||||
] as const;
|
||||
export type ContentWarning = (typeof CONTENT_WARNINGS)[number];
|
||||
|
||||
@@ -322,6 +345,24 @@ export interface GeneratorInput {
|
||||
* usually rely on `chapterName` only.
|
||||
*/
|
||||
questName?: string;
|
||||
/**
|
||||
* Gacha-quest-only (v0.13): character name. Used by the `showcase`
|
||||
* quest type as the primary subject of the title and description.
|
||||
*/
|
||||
characterName?: string;
|
||||
/**
|
||||
* Gacha-quest-only (v0.13): anniversary year (1–20). Used by the
|
||||
* `anniversary` quest type to render "1st", "2nd", ..., "Nth"
|
||||
* Anniversary in title and description templates.
|
||||
*/
|
||||
anniversaryYear?: number | null;
|
||||
/**
|
||||
* Gacha-quest-only (v0.13): game version label like `"1.2"`, `"2.4"`.
|
||||
* Distinct from {@link versionInfo} which is the driver / generic game
|
||||
* version shown in 🖥 VIDEO SETTINGS for any video type. `gachaVersion`
|
||||
* is rendered inside Gacha-specific intros (showcase / anniversary etc.).
|
||||
*/
|
||||
gachaVersion?: string;
|
||||
resolution?: string;
|
||||
fps?: string;
|
||||
/**
|
||||
|
||||
+36
-13
@@ -1,29 +1,52 @@
|
||||
import { useState, useCallback, useRef } from "react";
|
||||
import toast from "react-hot-toast";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { logger } from "@utils/logger";
|
||||
|
||||
export interface CopyOptions {
|
||||
limit?: number;
|
||||
fieldLabel?: string;
|
||||
}
|
||||
|
||||
interface UseClipboardReturn {
|
||||
copy: (text: string) => Promise<void>;
|
||||
copy: (text: string, opts?: CopyOptions) => Promise<boolean>;
|
||||
copied: boolean;
|
||||
}
|
||||
|
||||
export function useClipboard(): UseClipboardReturn {
|
||||
const { t } = useTranslation("ui");
|
||||
const [copied, setCopied] = useState(false);
|
||||
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
|
||||
|
||||
const copy = useCallback(async (text: string) => {
|
||||
try {
|
||||
await navigator.clipboard.writeText(text);
|
||||
setCopied(true);
|
||||
toast.success("Copied!");
|
||||
const copy = useCallback(
|
||||
async (text: string, opts?: CopyOptions): Promise<boolean> => {
|
||||
if (opts?.limit !== undefined && text.length > opts.limit) {
|
||||
toast.error(
|
||||
t("output.copy.overLimit", {
|
||||
field: opts.fieldLabel ?? t("output.copy.fieldGeneric"),
|
||||
count: text.length,
|
||||
limit: opts.limit,
|
||||
}),
|
||||
);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
||||
timeoutRef.current = setTimeout(() => setCopied(false), 2000);
|
||||
} catch (e) {
|
||||
toast.error("Failed to copy");
|
||||
logger.error("clipboard", "Failed to copy to clipboard", String(e));
|
||||
}
|
||||
}, []);
|
||||
try {
|
||||
await navigator.clipboard.writeText(text);
|
||||
setCopied(true);
|
||||
toast.success(t("output.copied"));
|
||||
|
||||
if (timeoutRef.current) clearTimeout(timeoutRef.current);
|
||||
timeoutRef.current = setTimeout(() => setCopied(false), 2000);
|
||||
return true;
|
||||
} catch (e) {
|
||||
toast.error(t("output.copy.failed"));
|
||||
logger.error("clipboard", "Failed to copy to clipboard", String(e));
|
||||
return false;
|
||||
}
|
||||
},
|
||||
[t],
|
||||
);
|
||||
|
||||
return { copy, copied };
|
||||
}
|
||||
@@ -40,6 +40,9 @@ export function buildGeneratorInputFromEditor(
|
||||
gachaQuestType: state.gachaQuestType,
|
||||
chapterName: state.chapterName,
|
||||
questName: state.questName,
|
||||
characterName: state.characterName,
|
||||
anniversaryYear: state.anniversaryYear,
|
||||
gachaVersion: state.gachaVersion,
|
||||
resolution: state.resolution,
|
||||
fps: state.fps,
|
||||
graphicsPreset: state.graphicsPreset,
|
||||
|
||||
@@ -20,6 +20,11 @@
|
||||
"gachaQuestType",
|
||||
"chapterName", "chapterNamePlaceholder",
|
||||
"questName", "questNamePlaceholder",
|
||||
"characterName", "characterNamePlaceholder",
|
||||
"anniversaryYear", "anniversaryYearOption",
|
||||
"gachaVersion", "gachaVersionPlaceholder",
|
||||
"gpu_brand", "gpu_series", "gpu_model", "gpu_custom",
|
||||
"ram_size", "ram_ddr",
|
||||
"vnDonate", "vnDonateHelp",
|
||||
"vnBankName", "vnBankNamePlaceholder",
|
||||
"vnBankAccount", "vnBankAccountPlaceholder",
|
||||
@@ -66,6 +71,10 @@
|
||||
"editor.artStyleOptions": ["none", "realistic", "stylized", "anime", "cel_shaded", "low_poly", "voxel", "pixel_art", "hand_drawn", "comic", "photorealistic"],
|
||||
"editor.toast": ["urlAutoFilled"],
|
||||
"editor.warning": ["linkNameMismatch"],
|
||||
"editor.validation": [
|
||||
"gpuMissingSeries", "gpuMissingModel", "gpuCustomEmpty",
|
||||
"ramMissingDdr", "ramMissingSize", "ramCustomEmpty"
|
||||
],
|
||||
"editor.playthroughOptions": ["none", "blind", "replay", "newgame_plus", "postgame"],
|
||||
"editor.difficultyOptions": ["none", "easy", "normal", "hard", "nightmare", "custom"],
|
||||
"editor.playthroughNotes": [
|
||||
@@ -84,13 +93,17 @@
|
||||
"not_no_hit_run", "not_clean_walkthrough", "casual_no_commentary", "many_deaths_patience", "slow_exploration", "puzzle_stuck_possible", "grinding_cut", "not_speedrun_relaxed",
|
||||
"exploration_focus_skip_combat", "edited_for_pacing", "support_developers", "online_connectivity_issues"
|
||||
],
|
||||
"editor.contentWarningGroups": ["spoilers", "photosensitive", "phobias", "mental_health", "sensitive"],
|
||||
"editor.contentWarningGroups": ["spoilers", "photosensitive", "phobias", "mental_health", "sensitive", "playstyle"],
|
||||
"editor.contentWarningOptions": [
|
||||
"spoiler_story", "spoiler_ending", "spoiler_true_ending", "spoiler_post_game", "spoiler_secret_ending", "spoiler_dlc",
|
||||
"flashing_lights", "motion_sickness", "migraine_trigger", "loud_noises",
|
||||
"jump_scares", "acrophobia", "trypophobia", "thalassophobia", "claustrophobia", "arachnophobia", "entomophobia", "ophidiophobia",
|
||||
"cynophobia", "nyctophobia", "pyrophobia", "pediophobia", "hemophobia",
|
||||
"anxiety_inducing", "depression_themes", "eating_disorders", "substance_use", "self_harm", "ptsd_themes", "needles", "body_fluids", "pregnancy_horror", "illness_themes",
|
||||
"blood_gore", "mature_18plus", "disturbing_imagery", "animal_abuse", "child_harm", "domestic_violence", "sexual_assault", "torture", "religion_themes", "war_violence", "discrimination", "police_violence", "smoking_drinking", "detailed_killing", "cult_occult", "psychological_manipulation", "grief_loss", "kidnapping"
|
||||
"bipolar_themes", "ocd_themes", "panic_attacks", "dissociation",
|
||||
"blood_gore", "mature_18plus", "disturbing_imagery", "animal_abuse", "child_harm", "domestic_violence", "sexual_assault", "torture", "religion_themes", "war_violence", "discrimination", "police_violence", "smoking_drinking", "detailed_killing", "cult_occult", "psychological_manipulation", "grief_loss", "kidnapping",
|
||||
"hate_speech", "historical_atrocity", "slavery_themes", "terrorism_themes", "bullying_themes",
|
||||
"blind_playthrough", "no_spoilers_chat", "casual_difficulty", "hardcore_difficulty", "permadeath_run", "speedrun_attempt", "completionist_run", "learning_mechanics"
|
||||
],
|
||||
"editor.gachaQuestTypeOptions": [
|
||||
"main_story", "world_quest", "side_quest", "spinoff_quest", "companion_quest", "bond_quest",
|
||||
@@ -111,6 +124,7 @@
|
||||
"generateAlternatives", "saveAsTemplate"
|
||||
],
|
||||
"output.variants": ["default", "typeFirst", "qualityFirst"],
|
||||
"output.copy": ["overLimit", "fieldGeneric", "failed"],
|
||||
"common": ["save", "cancel", "delete", "confirm", "export", "import", "reset", "search", "generate", "undo", "dismiss"],
|
||||
"videoTypes": ["full", "part", "full_demo", "demo_part", "boss", "boss_nohit", "ending", "speedrun", "100percent", "dlc", "newgame_plus", "challenge", "side_quest", "secret", "comparison", "guide", "mods", "collectibles", "livestream", "gacha_quest"],
|
||||
"genres": ["action", "hack_slash", "beatemup", "platformer", "horror", "survival_horror", "psychological_horror", "rpg", "jrpg", "action_rpg", "crpg", "fps", "arena_shooter", "tactical_fps", "boomer_shooter", "extraction_shooter", "shmup", "openworld", "indie", "soulslike", "racing", "story", "simulation", "city_builder", "fighting", "stealth", "survival_craft", "roguelike", "metroidvania", "mmo", "rhythm", "puzzle", "tower_defense", "card_game", "deck_builder", "auto_battler", "battle_royale", "tactical", "space", "farming", "fmv", "visual_novel"],
|
||||
@@ -147,7 +161,8 @@
|
||||
"gacha_quest_event", "gacha_quest_anniversary", "gacha_quest_crossover", "gacha_quest_dating_event",
|
||||
"gacha_quest_tutorial_quest", "gacha_quest_guide_quest", "gacha_quest_trial_quest",
|
||||
"gacha_quest_endgame", "gacha_quest_coop", "gacha_quest_daily_commission",
|
||||
"gacha_quest_showcase"
|
||||
"gacha_quest_showcase",
|
||||
"versionInline"
|
||||
],
|
||||
"description": ["noCommentaryLine"],
|
||||
"description.sections": [
|
||||
@@ -176,8 +191,12 @@
|
||||
"spoiler_story", "spoiler_ending", "spoiler_true_ending", "spoiler_post_game", "spoiler_secret_ending", "spoiler_dlc",
|
||||
"flashing_lights", "motion_sickness", "migraine_trigger", "loud_noises",
|
||||
"jump_scares", "acrophobia", "trypophobia", "thalassophobia", "claustrophobia", "arachnophobia", "entomophobia", "ophidiophobia",
|
||||
"cynophobia", "nyctophobia", "pyrophobia", "pediophobia", "hemophobia",
|
||||
"anxiety_inducing", "depression_themes", "eating_disorders", "substance_use", "self_harm", "ptsd_themes", "needles", "body_fluids", "pregnancy_horror", "illness_themes",
|
||||
"blood_gore", "mature_18plus", "disturbing_imagery", "animal_abuse", "child_harm", "domestic_violence", "sexual_assault", "torture", "religion_themes", "war_violence", "discrimination", "police_violence", "smoking_drinking", "detailed_killing", "cult_occult", "psychological_manipulation", "grief_loss", "kidnapping"
|
||||
"bipolar_themes", "ocd_themes", "panic_attacks", "dissociation",
|
||||
"blood_gore", "mature_18plus", "disturbing_imagery", "animal_abuse", "child_harm", "domestic_violence", "sexual_assault", "torture", "religion_themes", "war_violence", "discrimination", "police_violence", "smoking_drinking", "detailed_killing", "cult_occult", "psychological_manipulation", "grief_loss", "kidnapping",
|
||||
"hate_speech", "historical_atrocity", "slavery_themes", "terrorism_themes", "bullying_themes",
|
||||
"blind_playthrough", "no_spoilers_chat", "casual_difficulty", "hardcore_difficulty", "permadeath_run", "speedrun_attempt", "completionist_run", "learning_mechanics"
|
||||
],
|
||||
"description.storeLinkSuffix": ["free", "demo"],
|
||||
"description.graphics": ["with", "artStyle", "videoLabel", "inGameSettingLabel", "versionLabel"],
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"companion_quest": "{{gameName}} — Companion Quest: {{questName}}",
|
||||
"bond_quest": "{{gameName}} — Bond Quest: {{questName}}",
|
||||
"event": "{{gameName}} — Event: {{questName}}",
|
||||
"anniversary": "{{gameName}} — {{chapterName}} Anniversary{{partSuffix}}",
|
||||
"anniversary": "{{gameName}} — {{anniversaryYear}}{{ordinalSuffix}} Anniversary{{partSuffix}}",
|
||||
"crossover": "{{gameName}} — Crossover: {{questName}}",
|
||||
"dating_event": "{{gameName}} — Dating Event: {{questName}}",
|
||||
"tutorial_quest": "{{gameName}} — Tutorial: {{questName}}",
|
||||
@@ -47,7 +47,7 @@
|
||||
"endgame": "{{gameName}} — {{chapterName}}{{partSuffix}}",
|
||||
"coop": "{{gameName}} — Co-op: {{questName}}",
|
||||
"daily_commission": "{{gameName}} — Daily Commissions{{partSuffix}}",
|
||||
"showcase": "{{gameName}} — Showcase: {{questName}}"
|
||||
"showcase": "{{gameName}} — Character Showcase: {{characterName}}"
|
||||
},
|
||||
"gachaPartSuffix": {
|
||||
"part": " - Part {{n}}",
|
||||
@@ -83,7 +83,7 @@
|
||||
"gacha_quest_companion_quest": "Companion Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_bond_quest": "Bond Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_event": "Limited-time Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "{{chapterName}} Anniversary celebration in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "Celebrating the {{anniversaryYear}}{{ordinalSuffix}} anniversary of {{gameName}}{{versionLabel}} on {{channelName}}.",
|
||||
"gacha_quest_crossover": "Crossover Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_dating_event": "Dating Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_tutorial_quest": "Tutorial \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
@@ -92,7 +92,8 @@
|
||||
"gacha_quest_endgame": "Endgame mode \"{{chapterName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_coop": "Co-op session \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_daily_commission": "Daily Commissions in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_showcase": "Showcase \"{{questName}}\" from {{gameName}} on {{channelName}}."
|
||||
"gacha_quest_showcase": "This video showcases the skills, appearance, and details of {{characterName}} in {{gameName}}{{versionLabel}} on {{channelName}}.",
|
||||
"versionInline": "version {{v}}"
|
||||
},
|
||||
"noCommentaryLine": "No Commentary — pure gameplay for your enjoyment.",
|
||||
"storeLinkSuffix": {
|
||||
@@ -209,6 +210,11 @@
|
||||
"arachnophobia": "Spiders",
|
||||
"entomophobia": "Insects",
|
||||
"ophidiophobia": "Snakes",
|
||||
"cynophobia": "Dogs",
|
||||
"nyctophobia": "Darkness / pitch-black scenes",
|
||||
"pyrophobia": "Fire / burning scenes",
|
||||
"pediophobia": "Dolls / mannequins",
|
||||
"hemophobia": "Blood",
|
||||
"anxiety_inducing": "Scenes that may cause anxiety",
|
||||
"depression_themes": "Depression themes",
|
||||
"eating_disorders": "Eating disorder themes",
|
||||
@@ -219,6 +225,10 @@
|
||||
"body_fluids": "Body fluids",
|
||||
"pregnancy_horror": "Pregnancy / birth horror",
|
||||
"illness_themes": "Illness / infection themes",
|
||||
"bipolar_themes": "Bipolar disorder themes",
|
||||
"ocd_themes": "Obsessive-compulsive themes",
|
||||
"panic_attacks": "Panic attack scenes",
|
||||
"dissociation": "Dissociation / derealization themes",
|
||||
"blood_gore": "Blood and gore",
|
||||
"mature_18plus": "Mature themes — 18+",
|
||||
"disturbing_imagery": "Disturbing imagery",
|
||||
@@ -236,7 +246,20 @@
|
||||
"cult_occult": "Cult / occult themes",
|
||||
"psychological_manipulation": "Psychological manipulation",
|
||||
"grief_loss": "Loss / grief themes",
|
||||
"kidnapping": "Kidnapping"
|
||||
"kidnapping": "Kidnapping",
|
||||
"hate_speech": "Hate speech themes",
|
||||
"historical_atrocity": "Historical atrocities",
|
||||
"slavery_themes": "Slavery themes",
|
||||
"terrorism_themes": "Terrorism themes",
|
||||
"bullying_themes": "Bullying themes",
|
||||
"blind_playthrough": "Blind playthrough — first time playing",
|
||||
"no_spoilers_chat": "No spoilers in chat please",
|
||||
"casual_difficulty": "Casual / story difficulty",
|
||||
"hardcore_difficulty": "Hardcore / max difficulty",
|
||||
"permadeath_run": "Permadeath / Iron Man run",
|
||||
"speedrun_attempt": "Speedrun attempt",
|
||||
"completionist_run": "100% completionist run",
|
||||
"learning_mechanics": "Still learning the mechanics"
|
||||
}
|
||||
},
|
||||
"graphics": {
|
||||
|
||||
@@ -96,6 +96,18 @@
|
||||
"chapterNamePlaceholder": "e.g. Chapter 5 Act 2: Where the Stars Fall",
|
||||
"questName": "Quest Name",
|
||||
"questNamePlaceholder": "e.g. A Solitary Constellation",
|
||||
"characterName": "Character Name",
|
||||
"characterNamePlaceholder": "e.g. Furina, Topaz, Acheron",
|
||||
"anniversaryYear": "Anniversary Year",
|
||||
"anniversaryYearOption": "Year {{count}}",
|
||||
"gachaVersion": "Game Version",
|
||||
"gachaVersionPlaceholder": "e.g. 1.2, 2.4",
|
||||
"gpu_brand": "Brand",
|
||||
"gpu_series": "Series",
|
||||
"gpu_model": "Model",
|
||||
"gpu_custom": "Custom GPU",
|
||||
"ram_size": "RAM Size",
|
||||
"ram_ddr": "DDR Generation",
|
||||
"vnDonate": "Donate (Vietnam)",
|
||||
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
|
||||
"vnBankName": "Bank name",
|
||||
@@ -268,7 +280,8 @@
|
||||
"photosensitive": "Photosensitive / Health",
|
||||
"phobias": "Phobias",
|
||||
"mental_health": "Mental health",
|
||||
"sensitive": "Mature / Sensitive content"
|
||||
"sensitive": "Mature / Sensitive content",
|
||||
"playstyle": "Playstyle disclosures"
|
||||
},
|
||||
"contentWarningOptions": {
|
||||
"spoiler_story": "Story / ending spoilers",
|
||||
@@ -289,6 +302,11 @@
|
||||
"arachnophobia": "Spiders",
|
||||
"entomophobia": "Insects",
|
||||
"ophidiophobia": "Snakes",
|
||||
"cynophobia": "Dogs",
|
||||
"nyctophobia": "Darkness",
|
||||
"pyrophobia": "Fire",
|
||||
"pediophobia": "Dolls",
|
||||
"hemophobia": "Blood",
|
||||
"anxiety_inducing": "Anxiety-inducing scenes",
|
||||
"depression_themes": "Depression themes",
|
||||
"eating_disorders": "Eating disorders",
|
||||
@@ -299,6 +317,10 @@
|
||||
"body_fluids": "Body fluids",
|
||||
"pregnancy_horror": "Pregnancy / birth horror",
|
||||
"illness_themes": "Illness / infection",
|
||||
"bipolar_themes": "Bipolar themes",
|
||||
"ocd_themes": "OCD themes",
|
||||
"panic_attacks": "Panic attacks",
|
||||
"dissociation": "Dissociation",
|
||||
"blood_gore": "Blood and gore",
|
||||
"mature_18plus": "Mature 18+",
|
||||
"disturbing_imagery": "Disturbing imagery",
|
||||
@@ -316,7 +338,20 @@
|
||||
"cult_occult": "Cult / occult",
|
||||
"psychological_manipulation": "Psychological manipulation",
|
||||
"grief_loss": "Loss / grief",
|
||||
"kidnapping": "Kidnapping"
|
||||
"kidnapping": "Kidnapping",
|
||||
"hate_speech": "Hate speech",
|
||||
"historical_atrocity": "Historical atrocities",
|
||||
"slavery_themes": "Slavery themes",
|
||||
"terrorism_themes": "Terrorism themes",
|
||||
"bullying_themes": "Bullying themes",
|
||||
"blind_playthrough": "Blind playthrough",
|
||||
"no_spoilers_chat": "No spoilers in chat",
|
||||
"casual_difficulty": "Casual / story mode",
|
||||
"hardcore_difficulty": "Hardcore / max difficulty",
|
||||
"permadeath_run": "Permadeath / Iron Man",
|
||||
"speedrun_attempt": "Speedrun attempt",
|
||||
"completionist_run": "100% completionist",
|
||||
"learning_mechanics": "Still learning mechanics"
|
||||
},
|
||||
"playthroughNotes": {
|
||||
"title": "Playthrough notes",
|
||||
@@ -392,6 +427,14 @@
|
||||
"clearDraftConfirm": "Are you sure you want to clear all form data?",
|
||||
"genreSearchPlaceholder": "Search genres",
|
||||
"genreSearchNoResults": "No matching genres",
|
||||
"validation": {
|
||||
"gpuMissingSeries": "Pick a series to complete the GPU.",
|
||||
"gpuMissingModel": "Pick a model to complete the GPU.",
|
||||
"gpuCustomEmpty": "Enter a GPU name or pick from the catalog.",
|
||||
"ramMissingDdr": "Pick a DDR generation.",
|
||||
"ramMissingSize": "Pick a RAM size.",
|
||||
"ramCustomEmpty": "Enter a RAM size in GB."
|
||||
},
|
||||
"genreGroups": {
|
||||
"rpg": "All RPGs",
|
||||
"shooter": "All Shooters",
|
||||
@@ -428,6 +471,11 @@
|
||||
"default": "Default",
|
||||
"typeFirst": "Type First",
|
||||
"qualityFirst": "Quality First"
|
||||
},
|
||||
"copy": {
|
||||
"overLimit": "{{field}} is too long: {{count}}/{{limit}} chars. Trim before copying.",
|
||||
"fieldGeneric": "Text",
|
||||
"failed": "Failed to copy"
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"companion_quest": "{{gameName}} — Companion Quest: {{questName}}",
|
||||
"bond_quest": "{{gameName}} — Bond Quest: {{questName}}",
|
||||
"event": "{{gameName}} — Event: {{questName}}",
|
||||
"anniversary": "{{gameName}} — {{chapterName}} Anniversary{{partSuffix}}",
|
||||
"anniversary": "{{gameName}} — Aniversario {{anniversaryYear}}{{partSuffix}}",
|
||||
"crossover": "{{gameName}} — Crossover: {{questName}}",
|
||||
"dating_event": "{{gameName}} — Dating Event: {{questName}}",
|
||||
"tutorial_quest": "{{gameName}} — Tutorial: {{questName}}",
|
||||
@@ -47,7 +47,7 @@
|
||||
"endgame": "{{gameName}} — {{chapterName}}{{partSuffix}}",
|
||||
"coop": "{{gameName}} — Co-op: {{questName}}",
|
||||
"daily_commission": "{{gameName}} — Daily Commissions{{partSuffix}}",
|
||||
"showcase": "{{gameName}} — Showcase: {{questName}}"
|
||||
"showcase": "{{gameName}} — Showcase de personaje: {{characterName}}"
|
||||
},
|
||||
"gachaPartSuffix": {
|
||||
"part": " - Part {{n}}",
|
||||
@@ -83,7 +83,7 @@
|
||||
"gacha_quest_companion_quest": "Companion Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_bond_quest": "Bond Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_event": "Limited-time Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "{{chapterName}} Anniversary celebration in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "Celebrando el {{anniversaryYear}}º aniversario de {{gameName}}{{versionLabel}} en {{channelName}}.",
|
||||
"gacha_quest_crossover": "Crossover Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_dating_event": "Dating Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_tutorial_quest": "Tutorial \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
@@ -92,7 +92,8 @@
|
||||
"gacha_quest_endgame": "Endgame mode \"{{chapterName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_coop": "Co-op session \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_daily_commission": "Daily Commissions in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_showcase": "Showcase \"{{questName}}\" from {{gameName}} on {{channelName}}."
|
||||
"gacha_quest_showcase": "Este vídeo presenta las habilidades, apariencia y detalles de {{characterName}} en {{gameName}}{{versionLabel}} en {{channelName}}.",
|
||||
"versionInline": "versión {{v}}"
|
||||
},
|
||||
"noCommentaryLine": "Sin Comentarios — gameplay puro para tu disfrute.",
|
||||
"storeLinkSuffix": {
|
||||
@@ -209,6 +210,11 @@
|
||||
"arachnophobia": "Arañas",
|
||||
"entomophobia": "Insectos",
|
||||
"ophidiophobia": "Serpientes",
|
||||
"cynophobia": "Perros",
|
||||
"nyctophobia": "Oscuridad / escenas en negro",
|
||||
"pyrophobia": "Fuego / escenas de incendio",
|
||||
"pediophobia": "Muñecas / maniquíes",
|
||||
"hemophobia": "Sangre",
|
||||
"anxiety_inducing": "Escenas que pueden causar ansiedad",
|
||||
"depression_themes": "Temática de depresión",
|
||||
"eating_disorders": "Trastornos alimentarios",
|
||||
@@ -219,6 +225,10 @@
|
||||
"body_fluids": "Fluidos corporales",
|
||||
"pregnancy_horror": "Horror de embarazo / parto",
|
||||
"illness_themes": "Enfermedad / infección",
|
||||
"bipolar_themes": "Trastorno bipolar",
|
||||
"ocd_themes": "Trastorno obsesivo-compulsivo",
|
||||
"panic_attacks": "Escenas de ataques de pánico",
|
||||
"dissociation": "Disociación / desrealización",
|
||||
"blood_gore": "Sangre y violencia gráfica",
|
||||
"mature_18plus": "Contenido adulto 18+",
|
||||
"disturbing_imagery": "Imágenes perturbadoras",
|
||||
@@ -236,7 +246,20 @@
|
||||
"cult_occult": "Sectas / ocultismo",
|
||||
"psychological_manipulation": "Manipulación psicológica",
|
||||
"grief_loss": "Pérdida / duelo",
|
||||
"kidnapping": "Secuestro"
|
||||
"kidnapping": "Secuestro",
|
||||
"hate_speech": "Discurso de odio",
|
||||
"historical_atrocity": "Atrocidades históricas",
|
||||
"slavery_themes": "Esclavitud",
|
||||
"terrorism_themes": "Terrorismo",
|
||||
"bullying_themes": "Acoso escolar",
|
||||
"blind_playthrough": "Sin spoilers — primera vez",
|
||||
"no_spoilers_chat": "Sin spoilers en el chat",
|
||||
"casual_difficulty": "Casual / dificultad historia",
|
||||
"hardcore_difficulty": "Hardcore / máxima dificultad",
|
||||
"permadeath_run": "Permadeath / Iron Man",
|
||||
"speedrun_attempt": "Intento de speedrun",
|
||||
"completionist_run": "Completista 100%",
|
||||
"learning_mechanics": "Aprendiendo las mecánicas"
|
||||
}
|
||||
},
|
||||
"graphics": {
|
||||
|
||||
@@ -96,6 +96,18 @@
|
||||
"chapterNamePlaceholder": "e.g. Chapter 5 Act 2: Where the Stars Fall",
|
||||
"questName": "Quest Name",
|
||||
"questNamePlaceholder": "e.g. A Solitary Constellation",
|
||||
"characterName": "Nombre del personaje",
|
||||
"characterNamePlaceholder": "ej. Furina, Topaz, Acheron",
|
||||
"anniversaryYear": "Año de aniversario",
|
||||
"anniversaryYearOption": "Año {{count}}",
|
||||
"gachaVersion": "Versión del juego",
|
||||
"gachaVersionPlaceholder": "ej. 1.2, 2.4",
|
||||
"gpu_brand": "Marca",
|
||||
"gpu_series": "Serie",
|
||||
"gpu_model": "Modelo",
|
||||
"gpu_custom": "GPU personalizada",
|
||||
"ram_size": "Tamaño RAM",
|
||||
"ram_ddr": "Generación DDR",
|
||||
"vnDonate": "Donate (Vietnam)",
|
||||
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
|
||||
"vnBankName": "Bank name",
|
||||
@@ -268,7 +280,8 @@
|
||||
"photosensitive": "Fotosensibilidad / Salud",
|
||||
"phobias": "Fobias",
|
||||
"mental_health": "Salud mental",
|
||||
"sensitive": "Adulto / Sensible"
|
||||
"sensitive": "Adulto / Sensible",
|
||||
"playstyle": "Notas de juego"
|
||||
},
|
||||
"contentWarningOptions": {
|
||||
"spoiler_story": "Spoilers — historia / final",
|
||||
@@ -289,6 +302,11 @@
|
||||
"arachnophobia": "Arañas",
|
||||
"entomophobia": "Insectos",
|
||||
"ophidiophobia": "Serpientes",
|
||||
"cynophobia": "Perros",
|
||||
"nyctophobia": "Oscuridad",
|
||||
"pyrophobia": "Fuego",
|
||||
"pediophobia": "Muñecas",
|
||||
"hemophobia": "Sangre",
|
||||
"anxiety_inducing": "Escenas de ansiedad",
|
||||
"depression_themes": "Temática depresiva",
|
||||
"eating_disorders": "Trastornos alimentarios",
|
||||
@@ -299,6 +317,10 @@
|
||||
"body_fluids": "Fluidos corporales",
|
||||
"pregnancy_horror": "Horror de embarazo",
|
||||
"illness_themes": "Enfermedad",
|
||||
"bipolar_themes": "Trastorno bipolar",
|
||||
"ocd_themes": "TOC",
|
||||
"panic_attacks": "Ataques de pánico",
|
||||
"dissociation": "Disociación",
|
||||
"blood_gore": "Sangre y violencia gráfica",
|
||||
"mature_18plus": "Adulto 18+",
|
||||
"disturbing_imagery": "Imágenes perturbadoras",
|
||||
@@ -316,7 +338,20 @@
|
||||
"cult_occult": "Sectas / ocultismo",
|
||||
"psychological_manipulation": "Manipulación psicológica",
|
||||
"grief_loss": "Duelo / pérdida",
|
||||
"kidnapping": "Secuestro"
|
||||
"kidnapping": "Secuestro",
|
||||
"hate_speech": "Discurso de odio",
|
||||
"historical_atrocity": "Atrocidades históricas",
|
||||
"slavery_themes": "Esclavitud",
|
||||
"terrorism_themes": "Terrorismo",
|
||||
"bullying_themes": "Acoso escolar",
|
||||
"blind_playthrough": "Sin spoilers — primera vez",
|
||||
"no_spoilers_chat": "Sin spoilers en el chat",
|
||||
"casual_difficulty": "Casual / historia",
|
||||
"hardcore_difficulty": "Hardcore / máxima dificultad",
|
||||
"permadeath_run": "Permadeath / Iron Man",
|
||||
"speedrun_attempt": "Intento de speedrun",
|
||||
"completionist_run": "Completista 100%",
|
||||
"learning_mechanics": "Aprendiendo mecánicas"
|
||||
},
|
||||
"playthroughNotes": {
|
||||
"title": "Notas de la partida",
|
||||
@@ -392,6 +427,14 @@
|
||||
"clearDraftConfirm": "¿Estás seguro de que quieres borrar todos los datos del formulario?",
|
||||
"genreSearchPlaceholder": "Buscar géneros",
|
||||
"genreSearchNoResults": "No se encontraron géneros",
|
||||
"validation": {
|
||||
"gpuMissingSeries": "Selecciona la serie del GPU.",
|
||||
"gpuMissingModel": "Selecciona el modelo del GPU.",
|
||||
"gpuCustomEmpty": "Introduce el nombre del GPU o elige uno del catálogo.",
|
||||
"ramMissingDdr": "Selecciona la generación DDR.",
|
||||
"ramMissingSize": "Selecciona la cantidad de RAM.",
|
||||
"ramCustomEmpty": "Introduce la cantidad de RAM (GB)."
|
||||
},
|
||||
"genreGroups": {
|
||||
"rpg": "Todos los RPG",
|
||||
"shooter": "Todos los Shooter",
|
||||
@@ -428,6 +471,11 @@
|
||||
"default": "Predeterminado",
|
||||
"typeFirst": "Tipo Primero",
|
||||
"qualityFirst": "Calidad Primero"
|
||||
},
|
||||
"copy": {
|
||||
"overLimit": "{{field}} demasiado largo: {{count}}/{{limit}} caracteres. Recórtalo antes de copiar.",
|
||||
"fieldGeneric": "Texto",
|
||||
"failed": "Error al copiar"
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"companion_quest": "{{gameName}} — Companion Quest: {{questName}}",
|
||||
"bond_quest": "{{gameName}} — Bond Quest: {{questName}}",
|
||||
"event": "{{gameName}} — Event: {{questName}}",
|
||||
"anniversary": "{{gameName}} — {{chapterName}} Anniversary{{partSuffix}}",
|
||||
"anniversary": "{{gameName}} — {{anniversaryYear}}周年記念{{partSuffix}}",
|
||||
"crossover": "{{gameName}} — Crossover: {{questName}}",
|
||||
"dating_event": "{{gameName}} — Dating Event: {{questName}}",
|
||||
"tutorial_quest": "{{gameName}} — Tutorial: {{questName}}",
|
||||
@@ -47,7 +47,7 @@
|
||||
"endgame": "{{gameName}} — {{chapterName}}{{partSuffix}}",
|
||||
"coop": "{{gameName}} — Co-op: {{questName}}",
|
||||
"daily_commission": "{{gameName}} — Daily Commissions{{partSuffix}}",
|
||||
"showcase": "{{gameName}} — Showcase: {{questName}}"
|
||||
"showcase": "{{gameName}} — キャラクターショーケース:{{characterName}}"
|
||||
},
|
||||
"gachaPartSuffix": {
|
||||
"part": " - Part {{n}}",
|
||||
@@ -83,7 +83,7 @@
|
||||
"gacha_quest_companion_quest": "Companion Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_bond_quest": "Bond Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_event": "Limited-time Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "{{chapterName}} Anniversary celebration in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "{{gameName}}{{versionLabel}}の{{anniversaryYear}}周年を{{channelName}}でお祝いします。",
|
||||
"gacha_quest_crossover": "Crossover Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_dating_event": "Dating Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_tutorial_quest": "Tutorial \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
@@ -92,7 +92,8 @@
|
||||
"gacha_quest_endgame": "Endgame mode \"{{chapterName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_coop": "Co-op session \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_daily_commission": "Daily Commissions in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_showcase": "Showcase \"{{questName}}\" from {{gameName}} on {{channelName}}."
|
||||
"gacha_quest_showcase": "{{gameName}}{{versionLabel}}の{{characterName}}のスキル・外見・詳細を{{channelName}}で紹介します。",
|
||||
"versionInline": "バージョン{{v}}"
|
||||
},
|
||||
"noCommentaryLine": "実況なし — 純粋なゲームプレイをお楽しみください。",
|
||||
"storeLinkSuffix": {
|
||||
@@ -209,6 +210,11 @@
|
||||
"arachnophobia": "クモ",
|
||||
"entomophobia": "昆虫",
|
||||
"ophidiophobia": "ヘビ",
|
||||
"cynophobia": "犬",
|
||||
"nyctophobia": "暗闇 / 漆黒のシーン",
|
||||
"pyrophobia": "炎 / 火災シーン",
|
||||
"pediophobia": "人形 / マネキン",
|
||||
"hemophobia": "血液",
|
||||
"anxiety_inducing": "不安を誘発するシーン",
|
||||
"depression_themes": "うつ病をテーマとする内容",
|
||||
"eating_disorders": "摂食障害",
|
||||
@@ -219,6 +225,10 @@
|
||||
"body_fluids": "体液の描写",
|
||||
"pregnancy_horror": "妊娠 / 出産ホラー",
|
||||
"illness_themes": "病気 / 感染をテーマとする内容",
|
||||
"bipolar_themes": "双極性障害をテーマとする内容",
|
||||
"ocd_themes": "強迫性障害をテーマとする内容",
|
||||
"panic_attacks": "パニック発作のシーン",
|
||||
"dissociation": "解離 / 現実感喪失をテーマとする内容",
|
||||
"blood_gore": "流血・グロ表現",
|
||||
"mature_18plus": "成人向け 18+",
|
||||
"disturbing_imagery": "不快な映像",
|
||||
@@ -236,7 +246,20 @@
|
||||
"cult_occult": "カルト / オカルト",
|
||||
"psychological_manipulation": "心理的操作",
|
||||
"grief_loss": "喪失 / 悲嘆",
|
||||
"kidnapping": "誘拐"
|
||||
"kidnapping": "誘拐",
|
||||
"hate_speech": "ヘイトスピーチをテーマとする内容",
|
||||
"historical_atrocity": "歴史的残虐行為",
|
||||
"slavery_themes": "奴隷制をテーマとする内容",
|
||||
"terrorism_themes": "テロをテーマとする内容",
|
||||
"bullying_themes": "いじめをテーマとする内容",
|
||||
"blind_playthrough": "ブラインドプレイ — 初見プレイ",
|
||||
"no_spoilers_chat": "チャットでネタバレはお控えください",
|
||||
"casual_difficulty": "カジュアル / ストーリー難度でプレイ",
|
||||
"hardcore_difficulty": "ハードコア / 最高難度でプレイ",
|
||||
"permadeath_run": "パーマデス / アイアンマン縛り",
|
||||
"speedrun_attempt": "RTAチャレンジ",
|
||||
"completionist_run": "100% コンプリート",
|
||||
"learning_mechanics": "操作 / システム学習中"
|
||||
}
|
||||
},
|
||||
"graphics": {
|
||||
|
||||
@@ -96,6 +96,18 @@
|
||||
"chapterNamePlaceholder": "e.g. Chapter 5 Act 2: Where the Stars Fall",
|
||||
"questName": "Quest Name",
|
||||
"questNamePlaceholder": "e.g. A Solitary Constellation",
|
||||
"characterName": "キャラクター名",
|
||||
"characterNamePlaceholder": "例:フリーナ、トパーズ、アチェロン",
|
||||
"anniversaryYear": "周年",
|
||||
"anniversaryYearOption": "{{count}}周年",
|
||||
"gachaVersion": "ゲームバージョン",
|
||||
"gachaVersionPlaceholder": "例:1.2、2.4",
|
||||
"gpu_brand": "メーカー",
|
||||
"gpu_series": "シリーズ",
|
||||
"gpu_model": "モデル",
|
||||
"gpu_custom": "カスタムGPU",
|
||||
"ram_size": "RAM容量",
|
||||
"ram_ddr": "DDR世代",
|
||||
"vnDonate": "Donate (Vietnam)",
|
||||
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
|
||||
"vnBankName": "Bank name",
|
||||
@@ -268,7 +280,8 @@
|
||||
"photosensitive": "光感受性 / 健康",
|
||||
"phobias": "恐怖症",
|
||||
"mental_health": "メンタルヘルス",
|
||||
"sensitive": "成人向け / センシティブ"
|
||||
"sensitive": "成人向け / センシティブ",
|
||||
"playstyle": "プレイ情報"
|
||||
},
|
||||
"contentWarningOptions": {
|
||||
"spoiler_story": "ストーリー / エンディングのネタバレ",
|
||||
@@ -289,6 +302,11 @@
|
||||
"arachnophobia": "クモ",
|
||||
"entomophobia": "昆虫",
|
||||
"ophidiophobia": "ヘビ",
|
||||
"cynophobia": "犬",
|
||||
"nyctophobia": "暗闇",
|
||||
"pyrophobia": "炎",
|
||||
"pediophobia": "人形",
|
||||
"hemophobia": "血",
|
||||
"anxiety_inducing": "不安を誘発",
|
||||
"depression_themes": "うつ病テーマ",
|
||||
"eating_disorders": "摂食障害",
|
||||
@@ -299,6 +317,10 @@
|
||||
"body_fluids": "体液",
|
||||
"pregnancy_horror": "妊娠 / 出産ホラー",
|
||||
"illness_themes": "病気 / 感染",
|
||||
"bipolar_themes": "双極性障害",
|
||||
"ocd_themes": "強迫性障害",
|
||||
"panic_attacks": "パニック発作",
|
||||
"dissociation": "解離",
|
||||
"blood_gore": "流血・グロ",
|
||||
"mature_18plus": "成人向け 18+",
|
||||
"disturbing_imagery": "不快な映像",
|
||||
@@ -316,7 +338,20 @@
|
||||
"cult_occult": "カルト / オカルト",
|
||||
"psychological_manipulation": "心理的操作",
|
||||
"grief_loss": "喪失 / 悲嘆",
|
||||
"kidnapping": "誘拐"
|
||||
"kidnapping": "誘拐",
|
||||
"hate_speech": "ヘイトスピーチ",
|
||||
"historical_atrocity": "歴史的残虐行為",
|
||||
"slavery_themes": "奴隷制",
|
||||
"terrorism_themes": "テロリズム",
|
||||
"bullying_themes": "いじめ",
|
||||
"blind_playthrough": "ブラインドプレイ — 初見",
|
||||
"no_spoilers_chat": "チャットでネタバレ禁止",
|
||||
"casual_difficulty": "カジュアル / ストーリー難度",
|
||||
"hardcore_difficulty": "ハードコア / 最高難度",
|
||||
"permadeath_run": "パーマデス / アイアンマン",
|
||||
"speedrun_attempt": "RTAチャレンジ",
|
||||
"completionist_run": "100% コンプ",
|
||||
"learning_mechanics": "操作を覚え中"
|
||||
},
|
||||
"playthroughNotes": {
|
||||
"title": "プレイ情報",
|
||||
@@ -392,6 +427,14 @@
|
||||
"clearDraftConfirm": "フォームデータをすべてクリアしますか?",
|
||||
"genreSearchPlaceholder": "ジャンルを検索",
|
||||
"genreSearchNoResults": "該当するジャンルはありません",
|
||||
"validation": {
|
||||
"gpuMissingSeries": "シリーズを選択してください。",
|
||||
"gpuMissingModel": "モデルを選択してください。",
|
||||
"gpuCustomEmpty": "GPU名を入力するか、カタログから選択してください。",
|
||||
"ramMissingDdr": "DDR世代を選択してください。",
|
||||
"ramMissingSize": "RAM容量を選択してください。",
|
||||
"ramCustomEmpty": "RAM容量(GB)を入力してください。"
|
||||
},
|
||||
"genreGroups": {
|
||||
"rpg": "すべての RPG",
|
||||
"shooter": "すべてのシューター",
|
||||
@@ -428,6 +471,11 @@
|
||||
"default": "デフォルト",
|
||||
"typeFirst": "タイプ優先",
|
||||
"qualityFirst": "画質優先"
|
||||
},
|
||||
"copy": {
|
||||
"overLimit": "{{field}}が長すぎます:{{count}}/{{limit}}文字。コピー前に短縮してください。",
|
||||
"fieldGeneric": "テキスト",
|
||||
"failed": "コピーに失敗しました"
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"companion_quest": "{{gameName}} — Companion Quest: {{questName}}",
|
||||
"bond_quest": "{{gameName}} — Bond Quest: {{questName}}",
|
||||
"event": "{{gameName}} — Event: {{questName}}",
|
||||
"anniversary": "{{gameName}} — {{chapterName}} Anniversary{{partSuffix}}",
|
||||
"anniversary": "{{gameName}} — {{anniversaryYear}}주년 기념{{partSuffix}}",
|
||||
"crossover": "{{gameName}} — Crossover: {{questName}}",
|
||||
"dating_event": "{{gameName}} — Dating Event: {{questName}}",
|
||||
"tutorial_quest": "{{gameName}} — Tutorial: {{questName}}",
|
||||
@@ -47,7 +47,7 @@
|
||||
"endgame": "{{gameName}} — {{chapterName}}{{partSuffix}}",
|
||||
"coop": "{{gameName}} — Co-op: {{questName}}",
|
||||
"daily_commission": "{{gameName}} — Daily Commissions{{partSuffix}}",
|
||||
"showcase": "{{gameName}} — Showcase: {{questName}}"
|
||||
"showcase": "{{gameName}} — 캐릭터 쇼케이스: {{characterName}}"
|
||||
},
|
||||
"gachaPartSuffix": {
|
||||
"part": " - Part {{n}}",
|
||||
@@ -83,7 +83,7 @@
|
||||
"gacha_quest_companion_quest": "Companion Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_bond_quest": "Bond Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_event": "Limited-time Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "{{chapterName}} Anniversary celebration in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "{{channelName}}에서 {{gameName}}{{versionLabel}}의 {{anniversaryYear}}주년을 함께 기념합니다.",
|
||||
"gacha_quest_crossover": "Crossover Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_dating_event": "Dating Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_tutorial_quest": "Tutorial \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
@@ -92,7 +92,8 @@
|
||||
"gacha_quest_endgame": "Endgame mode \"{{chapterName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_coop": "Co-op session \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_daily_commission": "Daily Commissions in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_showcase": "Showcase \"{{questName}}\" from {{gameName}} on {{channelName}}."
|
||||
"gacha_quest_showcase": "{{channelName}}에서 {{gameName}}{{versionLabel}}의 {{characterName}} 스킬·외형·디테일을 소개합니다.",
|
||||
"versionInline": "버전 {{v}}"
|
||||
},
|
||||
"noCommentaryLine": "무음 플레이 — 순수한 게임플레이를 즐겨보세요.",
|
||||
"storeLinkSuffix": {
|
||||
@@ -209,6 +210,11 @@
|
||||
"arachnophobia": "거미 공포",
|
||||
"entomophobia": "곤충 공포",
|
||||
"ophidiophobia": "뱀 공포",
|
||||
"cynophobia": "개 공포",
|
||||
"nyctophobia": "어둠 / 칠흑 같은 장면",
|
||||
"pyrophobia": "불 / 화재 장면",
|
||||
"pediophobia": "인형 / 마네킹",
|
||||
"hemophobia": "혈액 공포",
|
||||
"anxiety_inducing": "불안 유발 장면",
|
||||
"depression_themes": "우울 주제",
|
||||
"eating_disorders": "섭식 장애",
|
||||
@@ -219,6 +225,10 @@
|
||||
"body_fluids": "체액 묘사",
|
||||
"pregnancy_horror": "임신 / 출산 호러",
|
||||
"illness_themes": "질병 / 감염 주제",
|
||||
"bipolar_themes": "양극성 장애 주제",
|
||||
"ocd_themes": "강박장애 주제",
|
||||
"panic_attacks": "공황 발작 장면",
|
||||
"dissociation": "해리 / 현실감 상실 주제",
|
||||
"blood_gore": "유혈 / 그로테스크",
|
||||
"mature_18plus": "성인 18+",
|
||||
"disturbing_imagery": "충격적 이미지",
|
||||
@@ -236,7 +246,20 @@
|
||||
"cult_occult": "사이비 / 오컬트",
|
||||
"psychological_manipulation": "심리적 조종",
|
||||
"grief_loss": "상실 / 슬픔",
|
||||
"kidnapping": "납치"
|
||||
"kidnapping": "납치",
|
||||
"hate_speech": "혐오 발언 주제",
|
||||
"historical_atrocity": "역사적 잔혹 행위",
|
||||
"slavery_themes": "노예제 주제",
|
||||
"terrorism_themes": "테러리즘 주제",
|
||||
"bullying_themes": "괴롭힘 주제",
|
||||
"blind_playthrough": "블라인드 플레이 — 첫 플레이",
|
||||
"no_spoilers_chat": "채팅 스포일러 금지 요청",
|
||||
"casual_difficulty": "캐주얼 / 스토리 난이도 플레이",
|
||||
"hardcore_difficulty": "하드코어 / 최고 난이도 플레이",
|
||||
"permadeath_run": "영구 사망 / 아이언맨 모드",
|
||||
"speedrun_attempt": "스피드런 시도",
|
||||
"completionist_run": "100% 컴플리션 도전",
|
||||
"learning_mechanics": "조작 / 시스템 학습 중"
|
||||
}
|
||||
},
|
||||
"graphics": {
|
||||
|
||||
@@ -96,6 +96,18 @@
|
||||
"chapterNamePlaceholder": "e.g. Chapter 5 Act 2: Where the Stars Fall",
|
||||
"questName": "Quest Name",
|
||||
"questNamePlaceholder": "e.g. A Solitary Constellation",
|
||||
"characterName": "캐릭터 이름",
|
||||
"characterNamePlaceholder": "예: 푸리나, 토파즈, 아케론",
|
||||
"anniversaryYear": "주년",
|
||||
"anniversaryYearOption": "{{count}}주년",
|
||||
"gachaVersion": "게임 버전",
|
||||
"gachaVersionPlaceholder": "예: 1.2, 2.4",
|
||||
"gpu_brand": "제조사",
|
||||
"gpu_series": "시리즈",
|
||||
"gpu_model": "모델",
|
||||
"gpu_custom": "사용자 GPU",
|
||||
"ram_size": "RAM 용량",
|
||||
"ram_ddr": "DDR 세대",
|
||||
"vnDonate": "Donate (Vietnam)",
|
||||
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
|
||||
"vnBankName": "Bank name",
|
||||
@@ -268,7 +280,8 @@
|
||||
"photosensitive": "광과민 / 건강",
|
||||
"phobias": "공포증",
|
||||
"mental_health": "정신 건강",
|
||||
"sensitive": "성인 / 민감"
|
||||
"sensitive": "성인 / 민감",
|
||||
"playstyle": "플레이 안내"
|
||||
},
|
||||
"contentWarningOptions": {
|
||||
"spoiler_story": "스토리 / 엔딩 스포일러",
|
||||
@@ -289,6 +302,11 @@
|
||||
"arachnophobia": "거미 공포",
|
||||
"entomophobia": "곤충 공포",
|
||||
"ophidiophobia": "뱀 공포",
|
||||
"cynophobia": "개 공포",
|
||||
"nyctophobia": "어둠 공포",
|
||||
"pyrophobia": "불 공포",
|
||||
"pediophobia": "인형 공포",
|
||||
"hemophobia": "혈액 공포",
|
||||
"anxiety_inducing": "불안 유발",
|
||||
"depression_themes": "우울 주제",
|
||||
"eating_disorders": "섭식 장애",
|
||||
@@ -299,6 +317,10 @@
|
||||
"body_fluids": "체액",
|
||||
"pregnancy_horror": "임신 호러",
|
||||
"illness_themes": "질병 / 감염",
|
||||
"bipolar_themes": "양극성 장애",
|
||||
"ocd_themes": "강박장애",
|
||||
"panic_attacks": "공황 발작",
|
||||
"dissociation": "해리 증상",
|
||||
"blood_gore": "유혈 / 그로테스크",
|
||||
"mature_18plus": "성인 18+",
|
||||
"disturbing_imagery": "충격적 이미지",
|
||||
@@ -316,7 +338,20 @@
|
||||
"cult_occult": "사이비 / 오컬트",
|
||||
"psychological_manipulation": "심리적 조종",
|
||||
"grief_loss": "상실 / 슬픔",
|
||||
"kidnapping": "납치"
|
||||
"kidnapping": "납치",
|
||||
"hate_speech": "혐오 발언",
|
||||
"historical_atrocity": "역사적 잔혹 행위",
|
||||
"slavery_themes": "노예제 주제",
|
||||
"terrorism_themes": "테러리즘 주제",
|
||||
"bullying_themes": "괴롭힘 주제",
|
||||
"blind_playthrough": "블라인드 플레이",
|
||||
"no_spoilers_chat": "채팅 스포 금지",
|
||||
"casual_difficulty": "캐주얼 / 스토리 난이도",
|
||||
"hardcore_difficulty": "하드코어 / 최고 난이도",
|
||||
"permadeath_run": "영구 사망 / 아이언맨",
|
||||
"speedrun_attempt": "스피드런 시도",
|
||||
"completionist_run": "100% 컴플리션",
|
||||
"learning_mechanics": "조작 학습 중"
|
||||
},
|
||||
"playthroughNotes": {
|
||||
"title": "플레이 노트",
|
||||
@@ -392,6 +427,14 @@
|
||||
"clearDraftConfirm": "모든 양식 데이터를 지우시겠습니까?",
|
||||
"genreSearchPlaceholder": "장르 검색",
|
||||
"genreSearchNoResults": "일치하는 장르 없음",
|
||||
"validation": {
|
||||
"gpuMissingSeries": "GPU 시리즈를 선택하세요.",
|
||||
"gpuMissingModel": "GPU 모델을 선택하세요.",
|
||||
"gpuCustomEmpty": "GPU 이름을 입력하거나 목록에서 선택하세요.",
|
||||
"ramMissingDdr": "DDR 세대를 선택하세요.",
|
||||
"ramMissingSize": "RAM 용량을 선택하세요.",
|
||||
"ramCustomEmpty": "RAM 용량(GB)을 입력하세요."
|
||||
},
|
||||
"genreGroups": {
|
||||
"rpg": "모든 RPG",
|
||||
"shooter": "모든 슈터",
|
||||
@@ -428,6 +471,11 @@
|
||||
"default": "기본",
|
||||
"typeFirst": "유형 우선",
|
||||
"qualityFirst": "화질 우선"
|
||||
},
|
||||
"copy": {
|
||||
"overLimit": "{{field}}이(가) 너무 깁니다: {{count}}/{{limit}}자. 복사 전에 줄여주세요.",
|
||||
"fieldGeneric": "텍스트",
|
||||
"failed": "복사 실패"
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"companion_quest": "{{gameName}} — Nhiệm vụ đồng hành: {{questName}}",
|
||||
"bond_quest": "{{gameName}} — Nhiệm vụ thân mật: {{questName}}",
|
||||
"event": "{{gameName}} — Sự kiện: {{questName}}",
|
||||
"anniversary": "{{gameName}} — Kỷ niệm {{chapterName}}{{partSuffix}}",
|
||||
"anniversary": "{{gameName}} — Kỷ niệm năm {{anniversaryYear}}{{partSuffix}}",
|
||||
"crossover": "{{gameName}} — Crossover: {{questName}}",
|
||||
"dating_event": "{{gameName}} — Hẹn hò: {{questName}}",
|
||||
"tutorial_quest": "{{gameName}} — Hướng dẫn: {{questName}}",
|
||||
@@ -47,7 +47,7 @@
|
||||
"endgame": "{{gameName}} — {{chapterName}}{{partSuffix}}",
|
||||
"coop": "{{gameName}} — Co-op: {{questName}}",
|
||||
"daily_commission": "{{gameName}} — Nhiệm vụ hàng ngày{{partSuffix}}",
|
||||
"showcase": "{{gameName}} — Showcase: {{questName}}"
|
||||
"showcase": "{{gameName}} — Showcase nhân vật: {{characterName}}"
|
||||
},
|
||||
"gachaPartSuffix": {
|
||||
"part": " - Phần {{n}}",
|
||||
@@ -83,7 +83,7 @@
|
||||
"gacha_quest_companion_quest": "Nhiệm vụ đồng hành \"{{questName}}\" của {{gameName}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_bond_quest": "Nhiệm vụ thân mật \"{{questName}}\" của {{gameName}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_event": "Sự kiện \"{{questName}}\" trong {{gameName}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_anniversary": "Lễ kỷ niệm {{chapterName}} của {{gameName}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_anniversary": "Lễ kỷ niệm năm thứ {{anniversaryYear}} của {{gameName}}{{versionLabel}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_crossover": "Sự kiện Crossover \"{{questName}}\" trong {{gameName}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_dating_event": "Sự kiện hẹn hò \"{{questName}}\" trong {{gameName}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_tutorial_quest": "Hướng dẫn \"{{questName}}\" của {{gameName}} trên kênh {{channelName}}.",
|
||||
@@ -92,7 +92,8 @@
|
||||
"gacha_quest_endgame": "Chế độ cuối game \"{{chapterName}}\" trong {{gameName}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_coop": "Co-op \"{{questName}}\" trong {{gameName}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_daily_commission": "Nhiệm vụ hàng ngày trong {{gameName}} trên kênh {{channelName}}.",
|
||||
"gacha_quest_showcase": "Showcase \"{{questName}}\" của {{gameName}} trên kênh {{channelName}}."
|
||||
"gacha_quest_showcase": "Video showcase kỹ năng, ngoại hình và chi tiết của {{characterName}} trong {{gameName}}{{versionLabel}} trên kênh {{channelName}}.",
|
||||
"versionInline": "phiên bản {{v}}"
|
||||
},
|
||||
"noCommentaryLine": "Không bình luận — gameplay thuần túy để bạn thưởng thức.",
|
||||
"storeLinkSuffix": {
|
||||
@@ -209,6 +210,11 @@
|
||||
"arachnophobia": "Sợ nhện",
|
||||
"entomophobia": "Sợ côn trùng",
|
||||
"ophidiophobia": "Sợ rắn",
|
||||
"cynophobia": "Sợ chó",
|
||||
"nyctophobia": "Sợ bóng tối / cảnh đen tuyền",
|
||||
"pyrophobia": "Sợ lửa / cảnh cháy",
|
||||
"pediophobia": "Sợ búp bê / hình nộm",
|
||||
"hemophobia": "Sợ máu",
|
||||
"anxiety_inducing": "Cảnh có thể gây lo âu",
|
||||
"depression_themes": "Chủ đề trầm cảm",
|
||||
"eating_disorders": "Chủ đề rối loạn ăn uống",
|
||||
@@ -219,6 +225,10 @@
|
||||
"body_fluids": "Có cảnh dịch cơ thể",
|
||||
"pregnancy_horror": "Kinh dị sinh nở",
|
||||
"illness_themes": "Chủ đề bệnh tật / lây nhiễm",
|
||||
"bipolar_themes": "Chủ đề rối loạn lưỡng cực",
|
||||
"ocd_themes": "Chủ đề rối loạn ám ảnh cưỡng chế",
|
||||
"panic_attacks": "Có cảnh hoảng loạn / cơn panic",
|
||||
"dissociation": "Chủ đề phân ly / mất kết nối thực tại",
|
||||
"blood_gore": "Cảnh máu me",
|
||||
"mature_18plus": "Chủ đề người lớn — 18+",
|
||||
"disturbing_imagery": "Hình ảnh gây ám ảnh",
|
||||
@@ -236,7 +246,20 @@
|
||||
"cult_occult": "Chủ đề giáo phái / huyền bí",
|
||||
"psychological_manipulation": "Chủ đề thao túng tâm lý",
|
||||
"grief_loss": "Chủ đề mất mát / đau buồn",
|
||||
"kidnapping": "Có cảnh bắt cóc"
|
||||
"kidnapping": "Có cảnh bắt cóc",
|
||||
"hate_speech": "Chủ đề phát ngôn thù ghét",
|
||||
"historical_atrocity": "Tái hiện tội ác lịch sử",
|
||||
"slavery_themes": "Chủ đề nô lệ / nô dịch",
|
||||
"terrorism_themes": "Chủ đề khủng bố",
|
||||
"bullying_themes": "Chủ đề bắt nạt / bạo lực học đường",
|
||||
"blind_playthrough": "Chơi blind — lần đầu chạm tay",
|
||||
"no_spoilers_chat": "Mong mọi người đừng spoil trong chat",
|
||||
"casual_difficulty": "Chơi ở độ khó dễ / chế độ cốt truyện",
|
||||
"hardcore_difficulty": "Chơi ở độ khó cao nhất / Hardcore",
|
||||
"permadeath_run": "Lối chơi Permadeath / Iron Man",
|
||||
"speedrun_attempt": "Thử speedrun",
|
||||
"completionist_run": "Chơi 100% completionist",
|
||||
"learning_mechanics": "Vẫn đang học cơ chế game"
|
||||
}
|
||||
},
|
||||
"graphics": {
|
||||
|
||||
@@ -96,6 +96,18 @@
|
||||
"chapterNamePlaceholder": "vd: Chương 5 Hồi 2 — Nơi Vì Sao Rơi",
|
||||
"questName": "Tên nhiệm vụ",
|
||||
"questNamePlaceholder": "vd: Chòm Sao Đơn Độc",
|
||||
"characterName": "Tên nhân vật",
|
||||
"characterNamePlaceholder": "vd: Furina, Topaz, Acheron",
|
||||
"anniversaryYear": "Năm kỷ niệm",
|
||||
"anniversaryYearOption": "Năm {{count}}",
|
||||
"gachaVersion": "Phiên bản game",
|
||||
"gachaVersionPlaceholder": "vd: 1.2, 2.4",
|
||||
"gpu_brand": "Hãng",
|
||||
"gpu_series": "Dòng",
|
||||
"gpu_model": "Model",
|
||||
"gpu_custom": "GPU tự nhập",
|
||||
"ram_size": "Dung lượng RAM",
|
||||
"ram_ddr": "Thế hệ DDR",
|
||||
"vnDonate": "Donate (Việt Nam)",
|
||||
"vnDonateHelp": "Chỉ hiển thị trong description khi ngôn ngữ đầu ra là Tiếng Việt.",
|
||||
"vnBankName": "Tên ngân hàng",
|
||||
@@ -268,7 +280,8 @@
|
||||
"photosensitive": "Sức khoẻ / nhạy sáng",
|
||||
"phobias": "Hội chứng sợ",
|
||||
"mental_health": "Sức khoẻ tinh thần",
|
||||
"sensitive": "Nội dung nhạy cảm / 18+"
|
||||
"sensitive": "Nội dung nhạy cảm / 18+",
|
||||
"playstyle": "Chú thích lối chơi"
|
||||
},
|
||||
"contentWarningOptions": {
|
||||
"spoiler_story": "Spoiler cốt truyện / kết thúc",
|
||||
@@ -289,6 +302,11 @@
|
||||
"arachnophobia": "Sợ nhện",
|
||||
"entomophobia": "Sợ côn trùng",
|
||||
"ophidiophobia": "Sợ rắn",
|
||||
"cynophobia": "Sợ chó",
|
||||
"nyctophobia": "Sợ bóng tối",
|
||||
"pyrophobia": "Sợ lửa",
|
||||
"pediophobia": "Sợ búp bê",
|
||||
"hemophobia": "Sợ máu",
|
||||
"anxiety_inducing": "Cảnh gây lo âu",
|
||||
"depression_themes": "Chủ đề trầm cảm",
|
||||
"eating_disorders": "Rối loạn ăn uống",
|
||||
@@ -299,6 +317,10 @@
|
||||
"body_fluids": "Dịch cơ thể",
|
||||
"pregnancy_horror": "Kinh dị sinh nở",
|
||||
"illness_themes": "Bệnh tật / lây nhiễm",
|
||||
"bipolar_themes": "Rối loạn lưỡng cực",
|
||||
"ocd_themes": "Chủ đề OCD",
|
||||
"panic_attacks": "Cơn hoảng loạn",
|
||||
"dissociation": "Rối loạn phân ly",
|
||||
"blood_gore": "Máu me",
|
||||
"mature_18plus": "Người lớn 18+",
|
||||
"disturbing_imagery": "Hình ảnh ám ảnh",
|
||||
@@ -316,7 +338,20 @@
|
||||
"cult_occult": "Giáo phái / huyền bí",
|
||||
"psychological_manipulation": "Thao túng tâm lý",
|
||||
"grief_loss": "Mất mát / đau buồn",
|
||||
"kidnapping": "Bắt cóc"
|
||||
"kidnapping": "Bắt cóc",
|
||||
"hate_speech": "Phát ngôn thù ghét",
|
||||
"historical_atrocity": "Tội ác lịch sử",
|
||||
"slavery_themes": "Chủ đề nô lệ",
|
||||
"terrorism_themes": "Chủ đề khủng bố",
|
||||
"bullying_themes": "Chủ đề bắt nạt",
|
||||
"blind_playthrough": "Chơi lần đầu (blind)",
|
||||
"no_spoilers_chat": "Không spoil trong chat",
|
||||
"casual_difficulty": "Độ khó dễ / cốt truyện",
|
||||
"hardcore_difficulty": "Hardcore / độ khó tối đa",
|
||||
"permadeath_run": "Permadeath / Iron Man",
|
||||
"speedrun_attempt": "Thử speedrun",
|
||||
"completionist_run": "100% completionist",
|
||||
"learning_mechanics": "Đang học cơ chế"
|
||||
},
|
||||
"playthroughNotes": {
|
||||
"title": "Ghi chú lượt chơi",
|
||||
@@ -392,6 +427,14 @@
|
||||
"clearDraftConfirm": "Bạn có chắc muốn xóa toàn bộ dữ liệu form?",
|
||||
"genreSearchPlaceholder": "Tìm thể loại",
|
||||
"genreSearchNoResults": "Không có thể loại phù hợp",
|
||||
"validation": {
|
||||
"gpuMissingSeries": "Chọn dòng để hoàn tất GPU.",
|
||||
"gpuMissingModel": "Chọn model để hoàn tất GPU.",
|
||||
"gpuCustomEmpty": "Nhập tên GPU hoặc chọn từ danh sách.",
|
||||
"ramMissingDdr": "Chọn thế hệ DDR.",
|
||||
"ramMissingSize": "Chọn dung lượng RAM.",
|
||||
"ramCustomEmpty": "Nhập dung lượng RAM (GB)."
|
||||
},
|
||||
"genreGroups": {
|
||||
"rpg": "Tất cả RPG",
|
||||
"shooter": "Tất cả Shooter",
|
||||
@@ -428,6 +471,11 @@
|
||||
"default": "Mặc định",
|
||||
"typeFirst": "Loại video trước",
|
||||
"qualityFirst": "Chất lượng trước"
|
||||
},
|
||||
"copy": {
|
||||
"overLimit": "{{field}} quá dài: {{count}}/{{limit}} ký tự. Cắt bớt trước khi copy.",
|
||||
"fieldGeneric": "Văn bản",
|
||||
"failed": "Copy thất bại"
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
"companion_quest": "{{gameName}} — Companion Quest: {{questName}}",
|
||||
"bond_quest": "{{gameName}} — Bond Quest: {{questName}}",
|
||||
"event": "{{gameName}} — Event: {{questName}}",
|
||||
"anniversary": "{{gameName}} — {{chapterName}} Anniversary{{partSuffix}}",
|
||||
"anniversary": "{{gameName}} — {{anniversaryYear}}周年纪念{{partSuffix}}",
|
||||
"crossover": "{{gameName}} — Crossover: {{questName}}",
|
||||
"dating_event": "{{gameName}} — Dating Event: {{questName}}",
|
||||
"tutorial_quest": "{{gameName}} — Tutorial: {{questName}}",
|
||||
@@ -47,7 +47,7 @@
|
||||
"endgame": "{{gameName}} — {{chapterName}}{{partSuffix}}",
|
||||
"coop": "{{gameName}} — Co-op: {{questName}}",
|
||||
"daily_commission": "{{gameName}} — Daily Commissions{{partSuffix}}",
|
||||
"showcase": "{{gameName}} — Showcase: {{questName}}"
|
||||
"showcase": "{{gameName}} — 角色展示:{{characterName}}"
|
||||
},
|
||||
"gachaPartSuffix": {
|
||||
"part": " - Part {{n}}",
|
||||
@@ -83,7 +83,7 @@
|
||||
"gacha_quest_companion_quest": "Companion Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_bond_quest": "Bond Quest \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_event": "Limited-time Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "{{chapterName}} Anniversary celebration in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_anniversary": "在 {{channelName}} 庆祝 {{gameName}}{{versionLabel}} 的{{anniversaryYear}}周年纪念。",
|
||||
"gacha_quest_crossover": "Crossover Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_dating_event": "Dating Event \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_tutorial_quest": "Tutorial \"{{questName}}\" from {{gameName}} on {{channelName}}.",
|
||||
@@ -92,7 +92,8 @@
|
||||
"gacha_quest_endgame": "Endgame mode \"{{chapterName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_coop": "Co-op session \"{{questName}}\" in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_daily_commission": "Daily Commissions in {{gameName}} on {{channelName}}.",
|
||||
"gacha_quest_showcase": "Showcase \"{{questName}}\" from {{gameName}} on {{channelName}}."
|
||||
"gacha_quest_showcase": "本期视频在 {{channelName}} 展示 {{gameName}}{{versionLabel}} 中 {{characterName}} 的技能、外观与细节。",
|
||||
"versionInline": "版本 {{v}}"
|
||||
},
|
||||
"noCommentaryLine": "无解说 — 纯粹的游戏体验,尽情享受。",
|
||||
"storeLinkSuffix": {
|
||||
@@ -209,6 +210,11 @@
|
||||
"arachnophobia": "蜘蛛恐惧",
|
||||
"entomophobia": "昆虫恐惧",
|
||||
"ophidiophobia": "蛇恐惧",
|
||||
"cynophobia": "犬恐惧",
|
||||
"nyctophobia": "黑暗 / 漆黑场景恐惧",
|
||||
"pyrophobia": "火焰 / 燃烧场景恐惧",
|
||||
"pediophobia": "玩偶 / 假人恐惧",
|
||||
"hemophobia": "血液恐惧",
|
||||
"anxiety_inducing": "可能引发焦虑的场景",
|
||||
"depression_themes": "抑郁主题",
|
||||
"eating_disorders": "饮食失调",
|
||||
@@ -219,6 +225,10 @@
|
||||
"body_fluids": "体液镜头",
|
||||
"pregnancy_horror": "怀孕 / 分娩恐怖",
|
||||
"illness_themes": "疾病 / 感染主题",
|
||||
"bipolar_themes": "双相障碍主题",
|
||||
"ocd_themes": "强迫症主题",
|
||||
"panic_attacks": "恐慌发作场景",
|
||||
"dissociation": "分离 / 现实解体主题",
|
||||
"blood_gore": "血腥场面",
|
||||
"mature_18plus": "成人 18+",
|
||||
"disturbing_imagery": "令人不适的画面",
|
||||
@@ -236,7 +246,20 @@
|
||||
"cult_occult": "邪教 / 神秘学",
|
||||
"psychological_manipulation": "心理操控",
|
||||
"grief_loss": "失去 / 悲伤",
|
||||
"kidnapping": "绑架"
|
||||
"kidnapping": "绑架",
|
||||
"hate_speech": "仇恨言论主题",
|
||||
"historical_atrocity": "历史暴行",
|
||||
"slavery_themes": "奴隶制主题",
|
||||
"terrorism_themes": "恐怖主义主题",
|
||||
"bullying_themes": "霸凌主题",
|
||||
"blind_playthrough": "首次盲打 — 初见游玩",
|
||||
"no_spoilers_chat": "请勿在聊天剧透",
|
||||
"casual_difficulty": "休闲 / 剧情难度游玩",
|
||||
"hardcore_difficulty": "硬核 / 最高难度游玩",
|
||||
"permadeath_run": "永久死亡 / Iron Man 玩法",
|
||||
"speedrun_attempt": "速通挑战",
|
||||
"completionist_run": "100% 全收集挑战",
|
||||
"learning_mechanics": "仍在熟悉游戏机制"
|
||||
}
|
||||
},
|
||||
"graphics": {
|
||||
|
||||
@@ -96,6 +96,18 @@
|
||||
"chapterNamePlaceholder": "e.g. Chapter 5 Act 2: Where the Stars Fall",
|
||||
"questName": "Quest Name",
|
||||
"questNamePlaceholder": "e.g. A Solitary Constellation",
|
||||
"characterName": "角色名称",
|
||||
"characterNamePlaceholder": "例:芙宁娜、托帕斯、阿刻戎",
|
||||
"anniversaryYear": "周年",
|
||||
"anniversaryYearOption": "{{count}}周年",
|
||||
"gachaVersion": "游戏版本",
|
||||
"gachaVersionPlaceholder": "例:1.2、2.4",
|
||||
"gpu_brand": "品牌",
|
||||
"gpu_series": "系列",
|
||||
"gpu_model": "型号",
|
||||
"gpu_custom": "自定义 GPU",
|
||||
"ram_size": "内存容量",
|
||||
"ram_ddr": "DDR 代",
|
||||
"vnDonate": "Donate (Vietnam)",
|
||||
"vnDonateHelp": "Only rendered into the description when output language is Vietnamese.",
|
||||
"vnBankName": "Bank name",
|
||||
@@ -268,7 +280,8 @@
|
||||
"photosensitive": "光敏感 / 健康",
|
||||
"phobias": "恐惧症",
|
||||
"mental_health": "心理健康",
|
||||
"sensitive": "成人 / 敏感"
|
||||
"sensitive": "成人 / 敏感",
|
||||
"playstyle": "游玩说明"
|
||||
},
|
||||
"contentWarningOptions": {
|
||||
"spoiler_story": "剧情 / 结局剧透",
|
||||
@@ -289,6 +302,11 @@
|
||||
"arachnophobia": "蜘蛛恐惧",
|
||||
"entomophobia": "昆虫恐惧",
|
||||
"ophidiophobia": "蛇恐惧",
|
||||
"cynophobia": "犬恐惧",
|
||||
"nyctophobia": "黑暗恐惧",
|
||||
"pyrophobia": "火焰恐惧",
|
||||
"pediophobia": "玩偶恐惧",
|
||||
"hemophobia": "血液恐惧",
|
||||
"anxiety_inducing": "可能引发焦虑",
|
||||
"depression_themes": "抑郁主题",
|
||||
"eating_disorders": "饮食失调",
|
||||
@@ -299,6 +317,10 @@
|
||||
"body_fluids": "体液",
|
||||
"pregnancy_horror": "怀孕恐怖",
|
||||
"illness_themes": "疾病 / 感染",
|
||||
"bipolar_themes": "双相障碍",
|
||||
"ocd_themes": "强迫症",
|
||||
"panic_attacks": "恐慌发作",
|
||||
"dissociation": "分离 / 现实解体",
|
||||
"blood_gore": "血腥场面",
|
||||
"mature_18plus": "成人 18+",
|
||||
"disturbing_imagery": "令人不适画面",
|
||||
@@ -316,7 +338,20 @@
|
||||
"cult_occult": "邪教 / 神秘学",
|
||||
"psychological_manipulation": "心理操控",
|
||||
"grief_loss": "失去 / 悲伤",
|
||||
"kidnapping": "绑架"
|
||||
"kidnapping": "绑架",
|
||||
"hate_speech": "仇恨言论",
|
||||
"historical_atrocity": "历史暴行",
|
||||
"slavery_themes": "奴隶制",
|
||||
"terrorism_themes": "恐怖主义",
|
||||
"bullying_themes": "霸凌",
|
||||
"blind_playthrough": "首次盲打",
|
||||
"no_spoilers_chat": "聊天勿剧透",
|
||||
"casual_difficulty": "休闲 / 剧情难度",
|
||||
"hardcore_difficulty": "硬核 / 最高难度",
|
||||
"permadeath_run": "永久死亡 / Iron Man",
|
||||
"speedrun_attempt": "速通挑战",
|
||||
"completionist_run": "100% 全收集",
|
||||
"learning_mechanics": "仍在熟悉机制"
|
||||
},
|
||||
"playthroughNotes": {
|
||||
"title": "本期游玩说明",
|
||||
@@ -392,6 +427,14 @@
|
||||
"clearDraftConfirm": "确定要清除所有表单数据吗?",
|
||||
"genreSearchPlaceholder": "搜索类型",
|
||||
"genreSearchNoResults": "未找到类型",
|
||||
"validation": {
|
||||
"gpuMissingSeries": "请选择 GPU 系列。",
|
||||
"gpuMissingModel": "请选择 GPU 型号。",
|
||||
"gpuCustomEmpty": "请输入 GPU 名称或从列表选择。",
|
||||
"ramMissingDdr": "请选择 DDR 代。",
|
||||
"ramMissingSize": "请选择内存容量。",
|
||||
"ramCustomEmpty": "请输入内存容量(GB)。"
|
||||
},
|
||||
"genreGroups": {
|
||||
"rpg": "所有 RPG",
|
||||
"shooter": "所有射击",
|
||||
@@ -428,6 +471,11 @@
|
||||
"default": "默认",
|
||||
"typeFirst": "类型优先",
|
||||
"qualityFirst": "画质优先"
|
||||
},
|
||||
"copy": {
|
||||
"overLimit": "{{field}}过长:{{count}}/{{limit}} 字符。复制前请精简。",
|
||||
"fieldGeneric": "文本",
|
||||
"failed": "复制失败"
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
|
||||
@@ -56,6 +56,12 @@ export interface EditorData {
|
||||
gachaQuestType: GachaQuestType;
|
||||
chapterName: string;
|
||||
questName: string;
|
||||
/** Gacha-quest character name (v0.13) — used for `showcase` quest type. */
|
||||
characterName: string;
|
||||
/** Gacha-quest anniversary year (v0.13) — 1–20 or null. */
|
||||
anniversaryYear: number | null;
|
||||
/** Gacha-quest game version (v0.13) — e.g. "1.2", "2.4". Only used for gacha_quest videoType. */
|
||||
gachaVersion: string;
|
||||
resolution: string;
|
||||
fps: string;
|
||||
graphicsPreset: GraphicsPreset;
|
||||
@@ -229,6 +235,9 @@ const initialState: EditorData = {
|
||||
gachaQuestType: DEFAULTS.editor.gachaQuestType,
|
||||
chapterName: DEFAULTS.editor.chapterName,
|
||||
questName: DEFAULTS.editor.questName,
|
||||
characterName: DEFAULTS.editor.characterName,
|
||||
anniversaryYear: DEFAULTS.editor.anniversaryYear,
|
||||
gachaVersion: DEFAULTS.editor.gachaVersion,
|
||||
resolution: DEFAULTS.editor.resolution,
|
||||
fps: DEFAULTS.editor.fps,
|
||||
graphicsPreset: DEFAULTS.editor.graphicsPreset,
|
||||
@@ -356,7 +365,13 @@ export const useEditorStore = create<EditorState>()(
|
||||
// existing `playthroughStatus` / `difficulty` /
|
||||
// `difficultyCustomLabel` values are preserved; only the
|
||||
// description-builder render path changed.
|
||||
version: 10,
|
||||
// v10 → v11: v0.13. Gacha-quest gained three new structured fields:
|
||||
// `characterName` (used for the Showcase quest type, replacing
|
||||
// chapter/quest in templates), `anniversaryYear` (1–20 number
|
||||
// used by the Anniversary quest type), and `gachaVersion`
|
||||
// (free-form game version like "1.2"). All additive — empty
|
||||
// / null defaults round-trip cleanly.
|
||||
version: 11,
|
||||
migrate: (persistedState, version) =>
|
||||
migrateEditorState(persistedState, version),
|
||||
partialize: (state) => ({
|
||||
@@ -378,6 +393,9 @@ export const useEditorStore = create<EditorState>()(
|
||||
gachaQuestType: state.gachaQuestType,
|
||||
chapterName: state.chapterName,
|
||||
questName: state.questName,
|
||||
characterName: state.characterName,
|
||||
anniversaryYear: state.anniversaryYear,
|
||||
gachaVersion: state.gachaVersion,
|
||||
resolution: state.resolution,
|
||||
fps: state.fps,
|
||||
graphicsPreset: state.graphicsPreset,
|
||||
@@ -579,5 +597,16 @@ export function migrateEditorState(
|
||||
);
|
||||
}
|
||||
}
|
||||
if (version < 11) {
|
||||
// v0.13 Gacha additions — empty / null back-fill.
|
||||
if (typeof state.characterName !== "string") state.characterName = "";
|
||||
if (typeof state.gachaVersion !== "string") state.gachaVersion = "";
|
||||
const ay = state.anniversaryYear;
|
||||
if (typeof ay === "number" && Number.isInteger(ay) && ay >= 1 && ay <= 20) {
|
||||
state.anniversaryYear = ay;
|
||||
} else {
|
||||
state.anniversaryYear = null;
|
||||
}
|
||||
}
|
||||
return { ...initialState, ...state } as EditorData;
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
import {
|
||||
parseCascadingValue,
|
||||
parseCompositeValue,
|
||||
} from "@config/rig-fields";
|
||||
import { GPU_CUSTOM_BRAND_ID } from "@config/gpu-catalog";
|
||||
|
||||
/**
|
||||
* Validation outcome for a rig field. `kind` carries the i18n key used
|
||||
* to render the badge tooltip — callers translate via the existing
|
||||
* `editor.validation.*` namespace.
|
||||
*/
|
||||
export interface RigValidationIssue {
|
||||
kind: "incomplete" | "invalid";
|
||||
/** i18n key under `editor.validation.*` (e.g. `editor.validation.incompleteGpu`). */
|
||||
messageKey: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* GPU cascading-dropdown validator (v0.13). Surfaces a soft warning
|
||||
* when the user picks a brand but hasn't drilled down to a concrete
|
||||
* model — partial selections cause "AMD" / "NVIDIA" to appear alone in
|
||||
* the description, which is technically valid but rarely intentional.
|
||||
*
|
||||
* Custom brand: requires a non-empty free-text value, otherwise the
|
||||
* stored `"custom||"` collapses to nothing in the description.
|
||||
*
|
||||
* Returns `null` when the value is fully blank (no selection at all is
|
||||
* a deliberate "skip rig field" state and shouldn't trip the badge).
|
||||
*/
|
||||
export function validateGpuValue(raw: string): RigValidationIssue | null {
|
||||
if (!raw) return null;
|
||||
const { brand, series, model, isLegacy } = parseCascadingValue(raw);
|
||||
if (isLegacy) return null;
|
||||
|
||||
if (brand === GPU_CUSTOM_BRAND_ID) {
|
||||
if (!model.trim()) {
|
||||
return { kind: "incomplete", messageKey: "editor.validation.gpuCustomEmpty" };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
if (brand && !series) {
|
||||
return { kind: "incomplete", messageKey: "editor.validation.gpuMissingSeries" };
|
||||
}
|
||||
if (brand && series && !model) {
|
||||
return { kind: "incomplete", messageKey: "editor.validation.gpuMissingModel" };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* RAM composite-dropdown validator (v0.13). Surfaces a warning when the
|
||||
* user picks a size but no DDR generation, or vice-versa — the resulting
|
||||
* description line ("32 GB" or just "DDR5") is awkward enough that we
|
||||
* nudge the creator to fill in the other half.
|
||||
*
|
||||
* Custom size with empty numeric input is also flagged so the user
|
||||
* doesn't accidentally render a `"GB"` with no number.
|
||||
*/
|
||||
export function validateRamValue(raw: string): RigValidationIssue | null {
|
||||
if (!raw) return null;
|
||||
const { parts, isLegacy } = parseCompositeValue(raw);
|
||||
if (isLegacy) return null;
|
||||
|
||||
const [size = "", ddr = ""] = parts;
|
||||
|
||||
if (size.startsWith("custom:")) {
|
||||
const txt = size.slice("custom:".length).trim();
|
||||
if (!txt) {
|
||||
return { kind: "incomplete", messageKey: "editor.validation.ramCustomEmpty" };
|
||||
}
|
||||
}
|
||||
|
||||
if (size && !ddr) {
|
||||
return { kind: "incomplete", messageKey: "editor.validation.ramMissingDdr" };
|
||||
}
|
||||
if (!size && ddr) {
|
||||
return { kind: "incomplete", messageKey: "editor.validation.ramMissingSize" };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -38,4 +38,58 @@ describe("formatRigValue", () => {
|
||||
expect(field?.type).toBe("dropdown_with_version");
|
||||
expect(field?.options?.length).toBeGreaterThan(3);
|
||||
});
|
||||
|
||||
describe("cascading_dropdown (GPU, v0.13)", () => {
|
||||
it("formats brand + model and drops the redundant series label", () => {
|
||||
expect(formatRigValue("gpu", "nvidia|rtx_40|RTX 4090")).toBe("NVIDIA RTX 4090");
|
||||
});
|
||||
|
||||
it("returns the verbatim model for the Custom brand", () => {
|
||||
expect(formatRigValue("gpu", "custom||RX 7800 XT (OC)")).toBe("RX 7800 XT (OC)");
|
||||
});
|
||||
|
||||
it("renders just the brand label when model is empty", () => {
|
||||
expect(formatRigValue("gpu", "amd|rx_7000|")).toBe("AMD");
|
||||
});
|
||||
|
||||
it("returns empty string when nothing is selected", () => {
|
||||
expect(formatRigValue("gpu", "")).toBe("");
|
||||
expect(formatRigValue("gpu", "||")).toBe("");
|
||||
});
|
||||
|
||||
it("passes legacy free-text values through unchanged", () => {
|
||||
// Pre-v0.13 rigs persisted GPU as plain text. Round-trip those.
|
||||
expect(formatRigValue("gpu", "NVIDIA GeForce RTX 4090")).toBe(
|
||||
"NVIDIA GeForce RTX 4090",
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("composite_dropdown (RAM, v0.13)", () => {
|
||||
it("formats preset size + DDR generation", () => {
|
||||
expect(formatRigValue("ram", "16|DDR5")).toBe("16 GB DDR5");
|
||||
});
|
||||
|
||||
it("supports a custom numeric size", () => {
|
||||
expect(formatRigValue("ram", "custom:48|DDR5")).toBe("48 GB DDR5");
|
||||
});
|
||||
|
||||
it("renders only the size when DDR is empty", () => {
|
||||
expect(formatRigValue("ram", "32|")).toBe("32 GB");
|
||||
});
|
||||
|
||||
it("renders only DDR when size is empty", () => {
|
||||
expect(formatRigValue("ram", "|DDR4")).toBe("DDR4");
|
||||
});
|
||||
|
||||
it("returns empty string when nothing is set", () => {
|
||||
expect(formatRigValue("ram", "")).toBe("");
|
||||
expect(formatRigValue("ram", "|")).toBe("");
|
||||
});
|
||||
|
||||
it("passes legacy free-text values through unchanged", () => {
|
||||
// Pre-v0.13 rigs persisted RAM as plain text like "32GB DDR5-6000".
|
||||
expect(formatRigValue("ram", "32GB DDR5-6000")).toBe("32GB DDR5-6000");
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -232,7 +232,7 @@ describe("buildTitle — gacha_quest video type (v0.9)", () => {
|
||||
videoType: "gacha_quest",
|
||||
gachaQuestType: "anniversary",
|
||||
gameName: "Honkai Impact 3rd",
|
||||
chapterName: "7th",
|
||||
anniversaryYear: 7,
|
||||
partNumber: "3",
|
||||
}),
|
||||
t,
|
||||
|
||||
@@ -57,6 +57,9 @@ function makeEditorData(overrides: Partial<EditorData> = {}): EditorData {
|
||||
gachaQuestType: DEFAULTS.editor.gachaQuestType as GachaQuestType,
|
||||
chapterName: DEFAULTS.editor.chapterName,
|
||||
questName: DEFAULTS.editor.questName,
|
||||
characterName: DEFAULTS.editor.characterName,
|
||||
anniversaryYear: DEFAULTS.editor.anniversaryYear,
|
||||
gachaVersion: DEFAULTS.editor.gachaVersion,
|
||||
resolution: DEFAULTS.editor.resolution,
|
||||
fps: DEFAULTS.editor.fps,
|
||||
graphicsPreset: DEFAULTS.editor.graphicsPreset as GraphicsPreset,
|
||||
|
||||
@@ -161,3 +161,44 @@ describe("migrateEditorState — v9 → v10 (v0.12)", () => {
|
||||
expect(twice).toEqual(once);
|
||||
});
|
||||
});
|
||||
|
||||
describe("migrateEditorState — v10 → v11 (v0.13)", () => {
|
||||
function makeV10Persisted(
|
||||
overrides: Record<string, unknown> = {},
|
||||
): Record<string, unknown> {
|
||||
// v10 is v9 + the playthrough-notes / tech-notes fields. Easiest to
|
||||
// build by routing v9 through the migration once and then apply
|
||||
// overrides — keeps this test surface narrow even as the v9 base
|
||||
// schema evolves.
|
||||
const v10 = migrateEditorState(makeV9Persisted(), 9);
|
||||
return { ...v10, ...overrides } as unknown as Record<string, unknown>;
|
||||
}
|
||||
|
||||
it("back-fills the three v0.13 Gacha fields with safe defaults", () => {
|
||||
const result = migrateEditorState(makeV10Persisted(), 10);
|
||||
expect(result.characterName).toBe("");
|
||||
expect(result.anniversaryYear).toBeNull();
|
||||
expect(result.gachaVersion).toBe("");
|
||||
});
|
||||
|
||||
it("preserves a valid persisted anniversaryYear in the 1–20 range", () => {
|
||||
const result = migrateEditorState(makeV10Persisted({ anniversaryYear: 7 }), 10);
|
||||
expect(result.anniversaryYear).toBe(7);
|
||||
});
|
||||
|
||||
it("coerces out-of-range / non-integer anniversaryYear values to null", () => {
|
||||
expect(migrateEditorState(makeV10Persisted({ anniversaryYear: 0 }), 10).anniversaryYear).toBeNull();
|
||||
expect(migrateEditorState(makeV10Persisted({ anniversaryYear: 21 }), 10).anniversaryYear).toBeNull();
|
||||
expect(migrateEditorState(makeV10Persisted({ anniversaryYear: 2.5 }), 10).anniversaryYear).toBeNull();
|
||||
expect(migrateEditorState(makeV10Persisted({ anniversaryYear: "7" }), 10).anniversaryYear).toBeNull();
|
||||
});
|
||||
|
||||
it("preserves existing characterName and gachaVersion values", () => {
|
||||
const result = migrateEditorState(
|
||||
makeV10Persisted({ characterName: "Furina", gachaVersion: "4.2" }),
|
||||
10,
|
||||
);
|
||||
expect(result.characterName).toBe("Furina");
|
||||
expect(result.gachaVersion).toBe("4.2");
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user