Navigation par barre du bas + gabarits de jeux natifs
Build and Publish Docker Image / build-and-push-image (push) Successful in 1m0s
Build and Publish Docker Image / build-and-push-image (push) Successful in 1m0s
Navigation : - Suppression du menu hamburger, remplacé par le logo de l'app dans l'en-tête - Barre du bas à 5 onglets : Accueil, Mes jeux, Parties, Stats, Joueurs - Menu profil sur l'avatar (haut-droite) : profil/switch, Emplacements, Jeux importés, Paramètres - Nouvelle page "Mes jeux" (/jeux) : bibliothèque de tous les jeux Format d'import enrichi + gabarits : - Champ icon (lucide) au niveau du jeu, et icon/color sur les catégories - Gabarits JSON des 5 jeux natifs dans public/game-templates/ (référence, au format d'import) + doc à jour Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -5,6 +5,8 @@ import { ImportedGameDefinition, RESERVED_GAME_IDS } from "../types/gameImport";
|
||||
const scoringCategorySchema = z.object({
|
||||
id: z.string(),
|
||||
label: z.string(),
|
||||
icon: z.string().max(40).optional(),
|
||||
color: z.string().max(30).optional(),
|
||||
});
|
||||
|
||||
const gameOptionSchema = z.object({
|
||||
@@ -67,6 +69,7 @@ export const importedGameSchema = z.object({
|
||||
primary: z.string(),
|
||||
secondary: z.string().optional(),
|
||||
}),
|
||||
icon: z.string().max(40).optional(),
|
||||
iconImage: z.string().optional(),
|
||||
bannerImage: z.string().optional(),
|
||||
});
|
||||
@@ -104,6 +107,7 @@ export function toGameConfig(def: ImportedGameDefinition): GameConfig {
|
||||
options: def.options,
|
||||
description: def.description,
|
||||
colors: def.colors,
|
||||
icon: def.icon,
|
||||
imagePath: def.iconImage,
|
||||
bannerPath: def.bannerImage,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user