Complete Phase 1 implementation of YTDescGen: - Project setup: Vite 5 + React 18 + TypeScript strict + Tailwind CSS dark theme - Config layer: 7 video types, 10 genres, 7 platforms, rig/social fields - i18n: EN/VI/JA with separate UI and template namespaces + validation script - Core engine: title-builder, description-builder, tag-generator (pure TS, zero React) - 42 unit tests covering all engine functions - Zustand stores: editor + settings with localStorage persistence - UI: 6 primitives, 11 editor components, 4 output components, 3 layout components - Pages: Editor (form + quick preview) and Output (title/desc/tags + copy) - CI/CD: GitHub Actions for lint/typecheck/test/build + GitHub Pages deploy Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
29 lines
1022 B
TypeScript
29 lines
1022 B
TypeScript
export const SOCIAL_FIELDS = [
|
|
{ id: "kofi", labelKey: "social.kofi", urlPrefix: "https://ko-fi.com/", category: "donate" },
|
|
{
|
|
id: "patreon",
|
|
labelKey: "social.patreon",
|
|
urlPrefix: "https://patreon.com/",
|
|
category: "donate",
|
|
},
|
|
{
|
|
id: "buymeacoffee",
|
|
labelKey: "social.buymeacoffee",
|
|
urlPrefix: "https://buymeacoffee.com/",
|
|
category: "donate",
|
|
},
|
|
{
|
|
id: "paypal",
|
|
labelKey: "social.paypal",
|
|
urlPrefix: "https://paypal.me/",
|
|
category: "donate",
|
|
},
|
|
{ id: "github", labelKey: "social.github", urlPrefix: "https://github.com/", category: "social" },
|
|
{ id: "twitter", labelKey: "social.twitter", urlPrefix: "https://x.com/", category: "social" },
|
|
{ id: "discord", labelKey: "social.discord", urlPrefix: "https://discord.gg/", category: "social" },
|
|
{ id: "website", labelKey: "social.website", urlPrefix: "", category: "social" },
|
|
] as const;
|
|
|
|
export type SocialFieldId = (typeof SOCIAL_FIELDS)[number]["id"];
|
|
export type SocialCategory = "donate" | "social";
|