Merge the Sokko TCG v1 into main

Bring in the server-backed card game and its administration, disabled in
production until /etc/sokko-g/cards.env is configured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-11-05 19:27:05 +01:00
commit a6cddbaa6a
202 changed files with 13344 additions and 75 deletions

1551
e2e/nebula-cards.spec.js Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,10 @@
// Rôle : vérifie qu'un build dont Sokko TCG est désactivé n'annonce le jeu nulle part.
import { expect, test } from "@playwright/test";
test("the site does not mention Sokko TCG while the game is disabled", async ({ page }) => {
await page.goto("/#/about");
await expect(page.locator(".about-page .nds-page-hero h1")).toBeVisible();
await expect(page.locator(".nav-icon-cards")).toHaveCount(0);
await expect(page.locator(".sidebar-note")).toContainText("Données stockées dans ce navigateur.");
await expect(page.locator("body")).not.toContainText("Sokko TCG");
});

View file

@ -90,7 +90,8 @@ for (const width of [1920, 1280, 1025, 1024, 960, 768]) {
await expect(page.locator(".sidebar-note")).toHaveCSS("display", "block");
await expect(page.locator(".sidebar-storage-actions")).toHaveCSS("flex-direction", responsiveCompact ? "column" : "row");
await expect(page.locator(".sidebar-action-button")).toHaveCount(2);
await expect(page.locator(".nav-item")).toHaveCount(3);
await expect(page.locator(".nav-item")).toHaveCount(4);
await expect(page.getByRole("link", { name: /Sokko TCG/ })).toBeVisible();
await expect(page.locator(".nav-item strong").first()).toHaveCSS("display", responsiveCompact ? "none" : "block");
const brand = page.locator(".brand");
const brandMark = page.locator(".brand-mark");