From 18d55a4af6afe81876a7b5fd44c23cfb57e2cf6a Mon Sep 17 00:00:00 2001 From: Prayag Prajapati Date: Wed, 21 May 2025 23:12:17 +0530 Subject: [PATCH] refactor: use suspense queries to fetch page data --- index.html | 2 +- package.json | 56 +- pnpm-lock.yaml | 2318 +++++++++++------ src/components/backdrop/index.tsx | 2 +- src/components/carousel/index.tsx | 4 +- src/components/carouselSlide/index.tsx | 2 +- src/components/playback/audioPlayer/index.tsx | 4 +- src/components/settings/index.tsx | 2 +- src/components/skeleton/item.tsx | 2 +- src/main.tsx | 4 +- src/routes/__root.tsx | 2 +- src/routes/_api/artist/$id.tsx | 2 +- src/routes/_api/boxset/$id.tsx | 2 +- src/routes/_api/episode/$id.tsx | 2 +- src/routes/_api/home/index.tsx | 201 +- src/routes/_api/item/$id.tsx | 48 +- src/routes/_api/library/$id.tsx | 850 +++--- src/routes/_api/library/library.scss | 8 + src/routes/_api/person/$id.tsx | 2 +- src/routes/_api/player/index.tsx | 2 +- src/routes/_api/player/photos.tsx | 2 +- src/routes/_api/series/$id.tsx | 2 +- src/styles/global.scss | 11 - src/utils/hooks/useParallax.tsx | 2 +- src/utils/queries/items.ts | 68 + src/utils/queries/library.ts | 26 + vite.config.ts | 7 +- 27 files changed, 2140 insertions(+), 1493 deletions(-) create mode 100644 src/utils/queries/items.ts create mode 100644 src/utils/queries/library.ts diff --git a/index.html b/index.html index 90010a8..ccc7f31 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - + Blink