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

@@ -314,3 +314,26 @@ export function SettingsSkeleton() {
</div>
);
}
export function DiscoveryVideosSkeleton() {
return (
<div className="space-y-6 animate-in fade-in duration-300">
<div className="flex items-center justify-between">
<div className="space-y-2">
<Skeleton className="h-8 w-40" />
<Skeleton className="h-4 w-64" />
</div>
<Skeleton className="h-8 w-28 rounded-lg" />
</div>
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 xl:grid-cols-3 2xl:grid-cols-4">
{Array.from({ length: 6 }).map((_, i) => (
<div key={i} className="space-y-2">
<Skeleton className="aspect-video w-full rounded-lg" />
<Skeleton className="h-4 w-3/4" />
<Skeleton className="h-3 w-full" />
</div>
))}
</div>
</div>
);
}