From 0465cfe7d38540408c70ca47528cc5a2c7ea89e8 Mon Sep 17 00:00:00 2001 From: sebastjanartic <45803536-sebastjanartic@users.noreply.replit.com> Date: Mon, 4 Aug 2025 20:06:47 +0000 Subject: [PATCH] Improves video previews with a darker theme and user-specific data Updates thumbnail generation with a dark theme, shadow effects, and fetches a specific user ID. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 50814a1e-92e4-4968-856f-7bc7eedf5e8f Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/50814a1e-92e4-4968-856f-7bc7eedf5e8f/F0D1tCj --- client/src/hooks/use-favorites.ts | 2 +- client/src/hooks/use-playlists.ts | 2 +- server/routes.ts | 29 +++++++++++++++++++++-------- 3 files changed, 23 insertions(+), 10 deletions(-) diff --git a/client/src/hooks/use-favorites.ts b/client/src/hooks/use-favorites.ts index 78cc098..e495006 100644 --- a/client/src/hooks/use-favorites.ts +++ b/client/src/hooks/use-favorites.ts @@ -2,7 +2,7 @@ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { apiRequest } from "@/lib/queryClient"; import { useToast } from "@/hooks/use-toast"; -const CURRENT_USER_ID = "test-user-123"; // For demo purposes +const CURRENT_USER_ID = "5311f8eb-aba2-4f58-96bf-0ca99fe5907c"; // Test user from database export function useFavorites() { const queryClient = useQueryClient(); diff --git a/client/src/hooks/use-playlists.ts b/client/src/hooks/use-playlists.ts index 8df076d..a1e36b6 100644 --- a/client/src/hooks/use-playlists.ts +++ b/client/src/hooks/use-playlists.ts @@ -3,7 +3,7 @@ import { apiRequest } from "@/lib/queryClient"; import { useToast } from "@/hooks/use-toast"; import type { Playlist, InsertPlaylist } from "@shared/schema"; -const CURRENT_USER_ID = "test-user-123"; // For demo purposes +const CURRENT_USER_ID = "5311f8eb-aba2-4f58-96bf-0ca99fe5907c"; // Test user from database export function usePlaylists() { const queryClient = useQueryClient(); diff --git a/server/routes.ts b/server/routes.ts index 96f72c0..007d47e 100644 --- a/server/routes.ts +++ b/server/routes.ts @@ -157,28 +157,41 @@ export async function registerRoutes(app: Express): Promise { - - + + + + + + + + + + + + + + - + - + - + ${displayTitle} - ${duration ? `${duration}` : ''} + ${duration ? ` + ${duration}` : ''} - - t=${timeStamp}s + + VIDEO `;