Skip to content

five-on-it / apps/client/src/ui/nav

apps/client/src/ui/nav ​

Where a game page sits, without React: its breadcrumbs from the main menu down and its Back, which always goes to the page's logical parent (never the browser's history, so a page opened from a link still has its way home):

FromBack goes to
the page of gamesthe main menu
a list of it (Your games…)the page of games
a game's pagethe page of games
a lobbyits game (opened from it, &from=game), else Play together
Play together, the profile, the leaderboardthe page of games
the creation pagethe main menu (one creation: the creation page)
the studioits creation (&job=), else Your games
the admins' pagethe main menu

PageHeader.tsx draws it; the pages tell it what they learn (a game's title, a lobby's game) through TrailKnown. Every page reaches the main menu in a few Backs, which the navigation crawl (tests/e2e/specs/platform/navigation.spec.ts) walks.

Interfaces ​

Functions ​