Commit Graph

341 Commits

Author SHA1 Message Date
Michess
dc7f718117 feat: new add time controls, correspondence games, and tournament mode
**Zeitmodi (Blitz/Rapid):**
- 5, 10, 30 Min Zeitkontrolle bei Spielerstellung
- Server-seitige Uhren: Zeit wird bei jedem Zug abgezogen
- Timeout-Erkennung via claimTimeout Socket-Event
- Schachuhr-Anzeige in GamePage (rot bei < 30s)
- Turnierspiele erhalten automatisch Zeitkontrolle

**Tagespartien (Correspondence):**
- Neue DB-Tabelle correspondence_game
- REST API: erstellen, beitreten, Zug machen, aufgeben
- Seite /correspondence: Liste aktiver Tagespartien
- Seite /correspondence/[code]: Spielen mit interaktivem Brett
- Einladungslink teilen, Gegner tritt via Link bei

**Turniermodus (Round-Robin):**
- Neue DB-Tabellen: tournament, tournament_player, tournament_round
- Round-Robin Paarungen mit Circle-Methode
- Turnier erstellen: /tournament/create
- Turnierliste: /tournament
- Turnierseite /tournament/[code]: Standings, Runden, Spiele
- Automatische Aktivisierung der nächsten Runde
- Turnierspiele werden als normale activeGames erstellt
- Ergebnisse aktualisieren Punkte automatisch

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 10:54:33 +02:00
Michess
aeb5fe313e feat: add time controls, correspondence games, and tournament mode
**Zeitmodi (Blitz/Rapid):**
- 5, 10, 30 Min Zeitkontrolle bei Spielerstellung
- Server-seitige Uhren: Zeit wird bei jedem Zug abgezogen
- Timeout-Erkennung via claimTimeout Socket-Event
- Schachuhr-Anzeige in GamePage (rot bei < 30s)
- Turnierspiele erhalten automatisch Zeitkontrolle

**Tagespartien (Correspondence):**
- Neue DB-Tabelle correspondence_game
- REST API: erstellen, beitreten, Zug machen, aufgeben
- Seite /correspondence: Liste aktiver Tagespartien
- Seite /correspondence/[code]: Spielen mit interaktivem Brett
- Einladungslink teilen, Gegner tritt via Link bei

**Turniermodus (Round-Robin):**
- Neue DB-Tabellen: tournament, tournament_player, tournament_round
- Round-Robin Paarungen mit Circle-Methode
- Turnier erstellen: /tournament/create
- Turnierliste: /tournament
- Turnierseite /tournament/[code]: Standings, Runden, Spiele
- Automatische Aktivisierung der nächsten Runde
- Turnierspiele werden als normale activeGames erstellt
- Ergebnisse aktualisieren Punkte automatisch

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 09:44:35 +02:00
Michess
09e5271dfb feat: redesign homepage layout and fix invite links
- Homepage: Grid-Layout mit 3 Karten (Spiel erstellen, KI, Freunde/Beitreten)
  statt vertikalem Stack mit Dividers
- CreateGame: kompakteres Styling, auf Deutsch, in Primary-Card integriert
- Einladungslink: APP_URL statt hardcoded ches.su in GamePage und CopyLink
- JoinGame: URL-Parsing für beliebige Domains (nicht nur ches.su)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 07:49:59 +02:00
Michess
0cc5a8e99c fix(ai): fix database model mapping for AI matches and missing AI names 2026-04-13 15:06:45 +02:00
Michess
f7b87f2941 fix: use existsSync instead of require(fs) in ESM module 2026-04-13 14:25:31 +02:00
Michess
4bc6ea58e6 fix: handle stockfish process error, try /usr/games/stockfish path 2026-04-13 14:19:58 +02:00
Michess
157fcf8fa4 fix: RefreshButton handle async onRefresh outside startTransition 2026-04-13 14:01:38 +02:00
Michess
446fce247f debug: add error boundary to show actual error message 2026-04-13 13:52:44 +02:00
Michess
39592bd579 fix: convert PublicGames to client component to avoid async server component in client tree 2026-04-13 13:45:43 +02:00
Michess
ebbc8227fd fix: use native stockfish binary via debian image 2026-04-13 13:40:21 +02:00
Michess
6b676d3015 fix: use child_process to spawn stockfish via stdin/stdout 2026-04-13 13:33:26 +02:00
Michess
6d677348d3 fix: pass NEXT_PUBLIC_* build args when building locally 2026-04-13 13:24:16 +02:00
Michess
3508c664e0 fix: next start explicitly on port 3000 2026-04-13 13:12:06 +02:00
Michess
81f60c9846 docker: build locally on NAS, no registry needed 2026-04-13 13:01:31 +02:00
Michess
8a6d7ddffb ci: trigger build
Some checks failed
Build & Push Docker Image / build (push) Failing after 6s
2026-04-13 12:57:46 +02:00
Michess
0e7b9c61e1 ci: use localhost:3001 registry to bypass Cloudflare
Some checks failed
Build & Push Docker Image / build (push) Failing after 6s
2026-04-13 12:53:02 +02:00
Michess
3a9681348f ci: trigger build after registry fix
Some checks failed
Build & Push Docker Image / build (push) Failing after 6s
2026-04-13 12:46:51 +02:00
Michess
0edc3cc7fd ci: trigger build
Some checks failed
Build & Push Docker Image / build (push) Failing after 6s
2026-04-13 12:29:21 +02:00
Michess
dfdf508064 ci: install bash+docker-cli+git via sh shell in setup step
Some checks failed
Build & Push Docker Image / build (push) Failing after 5s
2026-04-13 12:22:43 +02:00
Michess
46baf29eff ci: use node:20-alpine with docker-cli for runner compatibility
Some checks failed
Build & Push Docker Image / build (push) Failing after 3s
2026-04-13 12:19:57 +02:00
Michess
c1ea929753 ci: trigger build
Some checks failed
Build & Push Docker Image / build (push) Failing after 9s
2026-04-13 12:15:14 +02:00
Michess
b562839bd6 ci: trigger first Gitea Actions build
Some checks failed
Build & Push Docker Image / build (push) Failing after 22s
2026-04-13 11:58:05 +02:00
Michess
7b1f898b9e feat: Gitea Actions CI/CD — baut Image und pushed in Registry
Some checks failed
Build & Push Docker Image / build (push) Has been cancelled
2026-04-13 11:39:18 +02:00
Michess
47d9464ad4 fix: NEXT_PUBLIC_* URLs als Docker Build-Args weitergereicht 2026-04-13 11:36:47 +02:00
Michess
c056b93459 fix: provenance-Option entfernt (inkompatibel mit dieser Docker-Version) 2026-04-13 11:35:35 +02:00
Michess
641cdc7aad fix: BuildKit provenance deaktiviert (git-Warning entfernt) 2026-04-13 11:31:21 +02:00
Michess
e4c7aba178 fix: revalidate aus Client Component entfernt (Next.js Fehler) 2026-04-13 10:50:45 +02:00
Michess
694177c108 feat: Vollständiges Rebranding zu MiChess, Copyright Tom Misch
- Alle @chessu/ → @michess/ (Package-Namen und Imports)
- Theme-Namen chessuDark/Light → michessDark/Light
- Alle Display-Texte: chessu/Michess → MiChess
- Autor: dotnize → Tom Misch
- Copyright: Nathaniel Tampus → Tom Misch
- README komplett neu (Deutsch, MiChess-spezifisch)
- CONTRIBUTING.md neu
- FUNDING.yml + CODE_OF_CONDUCT.md entfernt
- Fork-Hinweis auf chessu bleibt im README erhalten (MIT-Pflicht)
- pnpm-lock.yaml entfernt (wird beim Build neu generiert)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 10:47:16 +02:00
Michess
4ab8cd3834 fix: ESLint-Fehler im Client behoben (unused vars, useCallback, CSSProperties) 2026-04-13 10:36:10 +02:00
Michess
b79a442b0c fix: TypeScript-Fehler behoben (stockfish types, null-Typ) 2026-04-13 10:30:54 +02:00
Michess
50464981c2 fix: Stockfish via npm-Paket statt Alpine apk
- stockfish als npm dependency (kein apk add nötig, portabel)
- Dockerfile: nur noch git via apk, kein stockfish
- docker-compose.yml: version-Zeile entfernt (veraltet)
- Controller auf npm-Package-API umgeschrieben (postMessage/onmessage)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 10:23:33 +02:00
Michess
7dac042d73 feat: Michess – Initiales Setup auf Basis von chessu
- Rebranding: chessu → Michess (Header, Footer, Metadata, Session-Cookie)
- Stockfish KI-Integration: 6 Schwierigkeitsgrade (Anfänger bis Meister)
- Admin-Panel: Nutzerverwaltung, Sperren/Entsperren, Git-Pull-Update
- Freundessystem: Anfragen, Freundesliste, Nutzersuche
- DB-Schema: role, banned, friend_request, friendship Tabellen
- Docker: NAS-optimiertes docker-compose.yml mit PostgreSQL Healthcheck
- Stockfish binary via apk im Alpine-Image installiert
- .env.example für einfaches Deployment
- scripts/update.sh für manuelles NAS-Update
- Brain.md + Plan.md als Projekt-Gedächtnis

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 10:02:52 +02:00
Nathaniel Tampus
29968f023d Merge pull request #29 from hriprsd/main
adding dockerfile and compose files for hosting chessu in container
2024-10-15 08:52:37 +08:00
hprasa638
8fdbc660a5 adding dockerfile and compose files for hosting chessu in container 2024-10-14 16:12:06 +05:30
Nathaniel Tampus
2ac873c5b1 update to node 20 & pnpm 9 2024-07-14 14:35:37 +08:00
Nathaniel Tampus
a13ff39fd5 add sponsorship 2024-07-14 14:35:01 +08:00
Nathaniel Tampus
b55c382983 update lockfile 2024-04-01 15:05:33 +08:00
Nathaniel Tampus
bf1b2159a7 update readme 2024-04-01 15:02:13 +08:00
Nathaniel Tampus
d5008a88fa format 2024-01-15 19:55:20 +08:00
Nathaniel Tampus
72c14280f0 update readme 2024-01-15 19:54:58 +08:00
Nathaniel Tampus
394644bc81 update deps 2024-01-15 19:54:50 +08:00
Nathaniel Tampus
f909419f8e update links 2023-11-23 11:49:52 +08:00
Nathaniel Tampus
8c9aa9e0ee update readme 2023-11-20 22:57:12 +08:00
Nathaniel Tampus
d20ad3418a next 14, update deps 2023-11-20 17:30:40 +08:00
Nathaniel Tampus
a8c8b2e199 update links & names 2023-11-20 17:28:18 +08:00
Nathaniel Tampus
7d8d8850c0 add isolated install scripts for each workspace 2023-10-09 12:15:50 +08:00
Nathaniel Tampus
93d991a9b2 fix scripts for workspace-specific installs 2023-10-09 11:59:53 +08:00
Nathaniel Tampus
4309086d7e add separate start script for server 2023-10-09 11:28:22 +08:00
Nathaniel Tampus
50bdd80d07 update deps 2023-10-09 11:02:49 +08:00
Nathaniel Tampus
32aa498abd update readme 2023-10-09 10:57:42 +08:00