feat: all-video media row, clickable media selector, download button
Build & Deploy / build-and-deploy (push) Failing after 44s

- Backend: Add GET /api/games/{id}/download endpoint (ZIP streaming)
- Frontend: All videos now shown in media row alongside screenshots
- Click any media thumbnail to load it into the media container
- Videos show YouTube thumbnail, screenshots show image preview
- Active thumbnail has green border highlight
- Download button between Edit and Delete triggers ZIP download
- Early return: if no media, the entire section is hidden
This commit is contained in:
David Alvarez
2026-05-26 16:47:17 +02:00
parent 0912e43d99
commit 446a9d61b8
3 changed files with 159 additions and 42 deletions
+5
View File
@@ -84,6 +84,11 @@ export async function scrapeIGDB(gameId, igdbId) {
return res.json();
}
/** Download a game's ZIP bundle */
export function downloadGame(id) {
window.open(`${BASE}/api/games/${id}/download`, '_blank');
}
/** Check IGDB status */
export async function igdbStatus() {
const res = await fetch(`${BASE}/api/igdb/status`);