mirror of
https://github.com/tiennm99/loto.git
synced 2026-10-14 00:16:47 +00:00
308a999a7666d4a276ad4792adc956de06d827df
Author types in JSDoc comments. jsconfig.json keeps checkJs: true so the editor's bundled TS server still validates them; CI can validate with npx -p typescript tsc --noEmit on demand. Renames (history preserved via git mv): - next.config.ts -> next.config.mjs - app/layout.tsx -> app/layout.jsx - app/page.tsx -> app/page.jsx - app/master/page.tsx -> app/master/page.jsx - components/player-board.tsx -> components/player-board.jsx - lib/game-logic.ts -> lib/game-logic.js - tsconfig.json -> jsconfig.json (same @/* alias) Drops typescript and @types/node, @types/react, @types/react-dom from devDependencies. Removes vendored next-env.d.ts. eslint config no longer pulls in eslint-config-next/typescript. Behavior unchanged. Build, lint, and dev profiles verified.
Lô tô
Bàn số của trò chơi "Lô tô" — Next.js app.
Two pages: / for players, /master for the host (quản trò) — calls numbers, shows a tracking board, and has its own player card to play along.
See docs/ for project overview, architecture, code standards, and deployment.
Development
npm run dev
Inside code-server (reverse proxy)
cp .env.example .env.local
# edit .env.local: set CODESERVER_HOST and CODESERVER_PORT
npm run dev:codeserver
Open https://<CODESERVER_HOST>/absproxy/<CODESERVER_PORT>/.
Use /absproxy/{port}/, not /proxy/{port}/ — the latter strips the path prefix and breaks Next's basePath. HMR may not survive the proxy; refresh manually if it disconnects.
Build
npm run build
Static export to out/. Deployed to GitHub Pages from master via .github/workflows/deploy.yml.
Description
Lô Tô (Vietnamese lottery bingo) number board — Next.js web app
Readme
4.1 MiB
0 Stars
1 Watchers
0 Forks
Languages
TypeScript
89.9%
CSS
8%
JavaScript
2.1%