- webapp/admin/: a second Vite entry (/admin/, HashRouter), served only by the Worker after the Access check, with its own CSP. Review queue by status (approve, approve with override for previously removed games, reject), paste-to-add URLs, and a catalog editor for the three maintainer fields, removal with a public reason, and restore of removed games. Uses the published /data for search; every write is applied to the latest repository state by the Worker. An expired Access session surfaces as "sign in again" instead of a broken request. - /suggest (web only; the desktop/Android apps link to the website): itch.io link + optional note (<= 500 characters, deleted after 180 days), Cloudflare Turnstile loaded on demand, EN + VI strings. - Local development: DEV_ADMIN_EMAIL in .dev.vars lets `wrangler dev` on localhost into the admin without Access; it is ignored on any other host. Checked in wrangler dev with a local D1: queue listing, reject, approve answering "GitHub App not configured", catalog search/editor, and a Suggest submission (Turnstile test keys) landing in the queue; no CSP violations. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
30 lines
700 B
JSON
30 lines
700 B
JSON
{
|
|
"compilerOptions": {
|
|
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
"target": "es2023",
|
|
"lib": ["ES2023", "DOM", "DOM.Iterable"],
|
|
"module": "esnext",
|
|
"types": ["vite/client"],
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
|
|
"moduleResolution": "bundler",
|
|
"allowImportingTsExtensions": true,
|
|
"verbatimModuleSyntax": true,
|
|
"moduleDetection": "force",
|
|
"noEmit": true,
|
|
"jsx": "react-jsx",
|
|
"resolveJsonModule": true,
|
|
|
|
"paths": {
|
|
"@/*": ["./src/*"]
|
|
},
|
|
|
|
"noUnusedLocals": true,
|
|
"noUnusedParameters": true,
|
|
"erasableSyntaxOnly": true,
|
|
"noFallthroughCasesInSwitch": true
|
|
},
|
|
"include": ["src", "admin"]
|
|
}
|