2.4 KiB
2.4 KiB
title, tags
| title | tags | |||
|---|---|---|---|---|
| Routing |
|
Routing
Overview
React Router 7 with lazy-loaded pages. All routes defined in react_frontend/src/App.tsx.
Every page uses React.lazy() with a custom <Suspense> skeleton fallback.
Route Table
| Path | Page Component | Skeleton | Description |
|---|---|---|---|
/ |
HomePage |
HomeSkeleton |
Landing page with trending/popular |
/search |
SearchPage |
HomeSkeleton |
TMDB multi-search |
/dashboard |
DashboardPage |
DashboardSkeleton |
Statistics charts |
/library |
LibraryPage |
LibrarySkeleton |
Library grid/list |
/discover/:category |
DiscoverPage |
HomeSkeleton |
TMDB browse (popular, trending, top-rated, upcoming) |
/watchlist |
WatchlistPage |
WatchlistSkeleton |
Watchlist entries |
/collections |
CollectionsPage |
CollectionsSkeleton |
Collections overview |
/collections/:id |
CollectionDetailsPage |
CollectionDetailsSkeleton |
Collection with entries |
/media |
MediaPage |
MediaSkeleton |
Media management |
/calendar |
CalendarPage |
CalendarSkeleton |
Calendar upcoming episodes |
/entry/:id |
EntryDetailsPage |
EntryDetailsSkeleton |
Entry details, seasons, cast |
/entry/:entryId/season/:seasonId |
SeasonPage |
SeasonSkeleton |
Season episodes |
/entry/:entryId/season/:seasonId/episode/:episodeId |
EpisodePage |
EpisodeSkeleton |
Episode details |
/people |
PeoplePage |
PeopleSkeleton |
People browse |
/people/:id |
PersonDetailsPage |
PersonDetailsSkeleton |
Person profile + filmography |
/people/tmdb/:tmdbId |
PersonTmdbRedirectPage |
PersonDetailsSkeleton |
TMDB person → local redirect |
/settings |
SettingsPage |
SettingsSkeleton |
Settings Page |
Layout
All routes are wrapped in AppLayout which provides:
Sidebar— left-side navigation- Main content area
URL Patterns
Entry Details Hierarchy
/entry/:id → EntryDetailsPage
/entry/:entryId/season/:seasonId → SeasonPage
/entry/:entryId/season/:seasonId/episode/:episodeId → EpisodePage
Breadcrumbs
See Navigation for breadcrumb patterns on nested pages.
See Also
- Pages — Detailed page documentation
- Navigation — Breadcrumb patterns
- Frontend — App-level setup