From 669138785dc2ea7618421e5b88355ef13103a697 Mon Sep 17 00:00:00 2001 From: Aidan Date: Wed, 30 Apr 2025 03:41:46 -0400 Subject: [PATCH] fixes: fix cve link position, lint, add not found state for track --- app/api/now-playing/route.ts | 2 +- app/page.tsx | 3 ++- components/widgets/LastPlayed.tsx | 10 +++++++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/api/now-playing/route.ts b/app/api/now-playing/route.ts index 5670115..2c56e8c 100644 --- a/app/api/now-playing/route.ts +++ b/app/api/now-playing/route.ts @@ -20,4 +20,4 @@ export async function GET() { console.error('Error fetching now playing:', error) return NextResponse.json({ error: 'Failed to fetch now playing data' }, { status: 500 }) } -} \ No newline at end of file +} \ No newline at end of file diff --git a/app/page.tsx b/app/page.tsx index ebddaad..226f3c2 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -53,8 +53,9 @@ export default function Home() { {mainStrings[secIndex].map((text: string, index: number) => (

{text} - {secIndex === 2 && index === 1 && ( + {secIndex === 2 && index === 2 && ( <> + {' '} CVE-2025-29927 diff --git a/components/widgets/LastPlayed.tsx b/components/widgets/LastPlayed.tsx index 70f95bc..0b860d1 100644 --- a/components/widgets/LastPlayed.tsx +++ b/components/widgets/LastPlayed.tsx @@ -6,6 +6,7 @@ import Image from "next/image" import { Music, ExternalLink, Disc, User, Loader2, AlertCircle } from "lucide-react" import Marquee from "react-fast-marquee" import { Progress } from "@/components/ui/progress" +import Link from "@/components/objects/Link" interface Track { track_name: string artist_name: string @@ -169,7 +170,14 @@ const NowPlaying: React.FC = () => { if (!track) { console.log("[LastPlayed] Hidden due to no track data") - return null + return ( +

+

Nothing's playing right now

+
+

Can you believe it? I'm not listening to anything on ListenBrainz right now! If you're in the mood, feel free to check out my ListenBrainz.

+
+
+ ) } console.log("[LastPlayed] Rendered track:", track.track_name)