Updated the Obsidian docs-vault
This commit is contained in:
1 parent
72fd77ee01
commit
260282a0e2
36 files changed
+3497
-144
No files matched your search
@@ -0,0 +1,82 @@
|
||||
---
|
||||
title: Components
|
||||
tags:
|
||||
- frontend
|
||||
- components
|
||||
- react
|
||||
---
|
||||
|
||||
# Components
|
||||
|
||||
All in `react_frontend/src/components/`. Organized by domain.
|
||||
|
||||
---
|
||||
|
||||
## Layout
|
||||
|
||||
| Component | File | Description |
|
||||
|---|---|---|
|
||||
| `AppLayout` | `layout/AppLayout.tsx` | Root layout with Sidebar + main area |
|
||||
| `Sidebar` | `layout/Sidebar.tsx` | Left navigation sidebar |
|
||||
|
||||
## Entry Components
|
||||
|
||||
| Component | File | Description |
|
||||
|---|---|---|
|
||||
| `EntryCard` | `entries/EntryCard.tsx` | Entry poster card (grid item) |
|
||||
| `EntryLibraryGrid` | `entries/EntryLibraryGrid.tsx` | Grid layout for entry cards |
|
||||
| `TrendingSlider` | `entries/TrendingSlider.tsx` | Horizontal slider for trending entries |
|
||||
| `TrendingGrid` | `entries/TrendingGrid.tsx` | Grid for trending/popular TMDB entries |
|
||||
| `SeasonsContainer` | `entries/SeasonsContainer.tsx` | Seasons list for TV entry details |
|
||||
| `EpisodeWatchHistory` | `entries/EpisodeWatchHistory.tsx` | Watch history list for an episode |
|
||||
| `CastList` | `entries/CastList.tsx` | Horizontal cast/crew list |
|
||||
|
||||
## Collection Components
|
||||
|
||||
| Component | File | Description |
|
||||
|---|---|---|
|
||||
| `CollectionsGrid` | `collections/CollectionsGrid.tsx` | Grid of collection cards |
|
||||
|
||||
## Dashboard Charts
|
||||
|
||||
See [[Statistics]] for data details.
|
||||
|
||||
| Component | File | Description |
|
||||
|---|---|---|
|
||||
| `WatchActivityChart` | `dashboard/WatchActivityChart.tsx` | Monthly watch activity (area chart) |
|
||||
| `WatchTimeChart` | `dashboard/WatchTimeChart.tsx` | Monthly watch time (area chart) |
|
||||
| `CouchDayChart` | `dashboard/CouchDayChart.tsx` | Day-of-week distribution (bar chart) |
|
||||
| `LibraryGrowthChart` | `dashboard/LibraryGrowthChart.tsx` | Library growth over time (area chart) |
|
||||
| `MediaTypeChart` | `dashboard/MediaTypeChart.tsx` | Movies vs TV breakdown |
|
||||
| `TopGenresChart` | `dashboard/TopGenresChart.tsx` | Top genres by count |
|
||||
| `RatingsChart` | `dashboard/RatingsChart.tsx` | Ratings distribution |
|
||||
|
||||
## Dialogs
|
||||
|
||||
| Component | File | Description |
|
||||
|---|---|---|
|
||||
| `EntrySeenDialog` | `dialogs/EntrySeenDialog.tsx` | Mark movie/episode as watched. Uses react-hook-form + zod. See [[Watch Tracking]] |
|
||||
| `EpisodeSeenEditDialog` | `dialogs/EpisodeSeenEditDialog.tsx` | Create/edit episode watch record |
|
||||
| `EntryMediaDialog` | `dialogs/EntryMediaDialog.tsx` | Media gallery for entry |
|
||||
| `EntrySettingsDialog` | `dialogs/EntrySettingsDialog.tsx` | Entry settings (calendar, sync, hidden) |
|
||||
| `MovieWatchHistoryDialog` | `dialogs/MovieWatchHistoryDialog.tsx` | Full movie watch history |
|
||||
| `RatingDialog` | `dialogs/RatingDialog.tsx` | Rate entry (supports half-stars) |
|
||||
| `ConfirmDialog` | `dialogs/ConfirmDialog.tsx` | Generic confirmation dialog |
|
||||
| `AddEntryToCollectionDialog` | `dialogs/AddEntryToCollectionDialog.tsx` | Add entry to collection picker |
|
||||
| `CollectionEditDialog` | `dialogs/CollectionEditDialog.tsx` | Create/edit collection |
|
||||
|
||||
## Skeletons
|
||||
|
||||
> [!info] File: `components/skeletons/PageSkeletons.tsx`
|
||||
|
||||
14 named skeleton exports used as `<Suspense>` fallbacks for lazy-loaded pages:
|
||||
|
||||
`HomeSkeleton`, `LibrarySkeleton`, `WatchlistSkeleton`, `DashboardSkeleton`, `CollectionsSkeleton`, `CollectionDetailsSkeleton`, `MediaSkeleton`, `CalendarSkeleton`, `EntryDetailsSkeleton`, `SeasonSkeleton`, `EpisodeSkeleton`, `PeopleSkeleton`, `PersonDetailsSkeleton`, `SettingsSkeleton`
|
||||
|
||||
## UI Primitives (shadcn/ui)
|
||||
|
||||
Base components from shadcn/ui in `components/ui/`:
|
||||
|
||||
`badge`, `avatar`, `button`, `calendar`, `card`, `checkbox`, `dialog`, `dropdown-menu`, `input`, `label`, `popover`, `progress`, `scroll-area`, `select`, `separator`, `sheet`, `skeleton`, `sonner`, `switch`, `tabs`, `textarea`, `tooltip`
|
||||
|
||||
Theme: **base-nova** style.
|
||||
Reference in new issue
Block a user