do frontend (preact)

This commit is contained in:
2026-11-21 02:07:32 +01:00
parent 040bd10d97
commit 405ea5a23c
32 changed files with 1512 additions and 31 deletions

31
web/tsconfig.json Normal file
View File

@@ -0,0 +1,31 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "ESNext",
"moduleResolution": "bundler",
"noEmit": true,
"allowJs": true,
"checkJs": true,
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
/* Preact Config */
"jsx": "react-jsx",
"jsxImportSource": "preact",
"skipLibCheck": true,
"paths": {
"react": ["./node_modules/preact/compat/"],
"react-dom": ["./node_modules/preact/compat/"],
"react-dom/*": ["./node_modules/preact/compat/*"],
"@/*": ["./src/*"]
}
},
"include": ["node_modules/vite/client.d.ts", "**/*"],
"exclude": ["dist", "node_modules"]
}