Tetardtek 67931eeadb
All checks were successful
CI/CD — Build & Deploy / Build & Deploy (push) Successful in 21s
fix: refactor store to singleton class pattern (s.subscribe fix)
Exported $state proxies were confused with Svelte stores by SvelteKit
runtime, causing "s.subscribe is not a function" on /jeu.

Fix: encapsulate all $state fields in a Game class, export singleton.
Components import { game } and access game.state, game.click(), etc.
Class fields are proper $state — no raw proxy exported.
2026-03-28 20:39:21 +01:00
Description
No description provided
12 MiB
Languages
TypeScript 48.5%
Svelte 30%
JavaScript 15%
CSS 5.9%
Shell 0.3%
Other 0.3%