refactor: move shared modules out of app/

`app/` should hold route segments only. Game logic and the player-card
component are imported by both routes, so they belong outside:

  app/loto-game-logic.ts   -> lib/game-logic.ts
  app/loto-player-board.tsx -> components/player-board.tsx

Imports use the existing @/* alias. Drops the redundant `loto-` prefix.
Also fixes the package name from the scaffold default.
This commit is contained in:
tiennm99 committed 2026-04-26 19:34:37 +07:00
1 parent dd64aa6ed3
commit 254a6dc39a
8 files changed
+16 -16

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
{
"name": "nextjs-temp",
"name": "loto",
"version": "0.1.0",
"private": true,
"scripts": {