Add the race screen of the daily team
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
08c3c8f6a2
commit
7ed63fff49
17 changed files with 553 additions and 9 deletions
|
|
@ -16,6 +16,7 @@ import { publishCardsReserve } from "./cardsReserve.js";
|
|||
import { PrivacyNotice } from "./PrivacyNotice.jsx";
|
||||
import { GuildPanel } from "./GuildPanel.jsx";
|
||||
import { pendingQuestCount } from "./guildQuests.js";
|
||||
import { RacePanel } from "./RacePanel.jsx";
|
||||
import { ShopPanel } from "./ShopPanel.jsx";
|
||||
import { TeamPanel } from "./TeamPanel.jsx";
|
||||
import { TransfersPanel } from "./TransfersPanel.jsx";
|
||||
|
|
@ -23,7 +24,7 @@ import { TransfersPanel } from "./TransfersPanel.jsx";
|
|||
// Le jeu, puis l'économie et les échanges, puis le journal : mêmes groupes séparés par un filet que l'administration.
|
||||
const PLAYER_NAVIGATION = [["home", "guild", "packs", "collection"], ["shop", "transfers"], ["history", "account"]];
|
||||
// Sections sans entrée de menu, ouvertes depuis une autre : le menu y désigne cette section parente.
|
||||
const SUBSECTION_PARENTS = { daily: "guild", team: "guild", expeditions: "guild" };
|
||||
const SUBSECTION_PARENTS = { daily: "guild", team: "guild", race: "guild", expeditions: "guild" };
|
||||
const PLAYER_SECTIONS = new Set([...PLAYER_NAVIGATION.flat(), ...Object.keys(SUBSECTION_PARENTS)]);
|
||||
// Ancienne adresse conservée pour les favoris : le recyclage vit désormais dans la Collection.
|
||||
const PLAYER_SECTION_ALIASES = { recycling: "collection" };
|
||||
|
|
@ -309,6 +310,7 @@ export function CardsPage({ siteContent, cardsConfig, playerSection = "", player
|
|||
{section === "guild" && <GuildPanel catalog={catalog} state={state} content={content.guild} />}
|
||||
{section === "daily" && <DailyPanel {...panelProps} content={content.daily} />}
|
||||
{section === "team" && <TeamPanel {...panelProps} content={content.team} statLabels={content.expeditions.stats} />}
|
||||
{section === "race" && <RacePanel {...panelProps} content={content.race} teamContent={content.team} statLabels={content.expeditions.stats} />}
|
||||
{section === "expeditions" && <ExpeditionsPanel {...panelProps} content={{ ...content.expeditions, cardSheet: content.cardSheet }} joinId={decodeURIComponent(playerSubsection)} />}
|
||||
{section === "packs" && <PackPanel {...panelProps} content={content.packs} reserveContent={content.home} />}
|
||||
{section === "collection" && <CollectionPanel {...panelProps} headingContent={content.collection} recyclingContent={content.recycling} onStartTransfer={startTransfer} />}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue