Add Discovery Videos feature

Let users upload videos, tag them with one or more entries, and watch
them from a new Discovery Videos page.

Backend:
- Add Video and VideoEntry models and relations
- Add video controller and /video routes
- Add video thumbnail generation service (ffmpeg-static)
- Add video upload storage location and config

Frontend:
- Add DiscoveryVideosPage with sidebar link and route
- Add AddVideoDialog, VideoDropzone, EntryMultiSelect, VideoCard
  and VideoPlayerDialog components
- Add discoveryVideos API client and useDiscoveryVideos hook
- Add format helpers, video types and normalizers
- Add skeleton for the page

Docs:
- Document the feature in docs-vault
This commit is contained in:
X4Lo committed 2026-11-03 15:57:53 +00:00
1 parent 4d88747649
commit eb3a12f6cb
41 files changed
+2163 -15

No files matched your search

+4 -3
View File
@@ -37,10 +37,10 @@ backend/
│ ├── relations.js All model associations → [[Database#Relationships]]
│ ├── dataInitializer.js Genre seeding (27 TMDB genres)
│ └── sequelizeHooks.js UserCollectionEntry hooks (order management)
├── controllers/ Route handlers (14 controllers)
├── controllers/ Route handlers (15 controllers)
├── services/ Business logic (16 services) → [[Services]]
├── models/ Sequelize models (17 models) → [[Models]]
├── routes/ Express routers (14 route files) → [[API Reference]]
├── models/ Sequelize models (19 models) → [[Models]]
├── routes/ Express routers (15 route files) → [[API Reference]]
├── errors/ Custom error classes → [[Error Handling]]
├── middleware/
│ └── errorHandler.js Central error catching
@@ -96,3 +96,4 @@ See [[Media System]] for the complete download → optimize → serve flow.
- [[Error Handling]] — Error classes and middleware
- [[TMDB Integration]] — External API
- [[Media System]] — Image handling
- [[Discovery Videos]] — Video upload/stream API