diff --git a/src/lib/types/steam.ts b/src/lib/types/steam.ts
index a385fc1..f3ba15b 100644
--- a/src/lib/types/steam.ts
+++ b/src/lib/types/steam.ts
@@ -1,4 +1,4 @@
-type SerializableGameInfo = {
+export type SerializableGameInfo = {
id: number | string | null
name: string
playtime: string | number | undefined
diff --git a/src/lib/utils/nowPlayingDetector.ts b/src/lib/utils/nowPlayingDetector.ts
index 9ed6bbe..fc75ab0 100644
--- a/src/lib/utils/nowPlayingDetector.ts
+++ b/src/lib/utils/nowPlayingDetector.ts
@@ -1,4 +1,3 @@
-import type { Album } from '$lib/types/lastfm'
import { logger } from '$lib/server/logger'
export interface TrackPlayInfo {
diff --git a/src/routes/+error.svelte b/src/routes/+error.svelte
index 14c3fc3..a1b3207 100644
--- a/src/routes/+error.svelte
+++ b/src/routes/+error.svelte
@@ -1,5 +1,4 @@
@@ -30,4 +29,4 @@
margin-top: $unit-2x;
color: var(--text-secondary);
}
-
\ No newline at end of file
+
diff --git a/src/routes/+page.ts b/src/routes/+page.ts
index 2837328..e3e535d 100644
--- a/src/routes/+page.ts
+++ b/src/routes/+page.ts
@@ -40,22 +40,6 @@ async function fetchRecentAlbums(fetch: typeof window.fetch): Promise
{
return musicData.albums
}
-async function fetchRecentSteamGames(fetch: typeof window.fetch): Promise {
- const response = await fetch('/api/steam')
- if (!response.ok) {
- throw new Error(`Failed to fetch recent game: ${response.status}`)
- }
- return await response.json()
-}
-
-async function fetchRecentPSNGames(fetch: typeof window.fetch): Promise {
- const response = await fetch('/api/psn')
- if (!response.ok) {
- throw new Error(`Failed to fetch recent game: ${response.status}`)
- }
- return await response.json()
-}
-
async function fetchProjects(
fetch: typeof window.fetch
): Promise<{ projects: Project[]; pagination: any }> {
diff --git a/src/routes/admin/albums/+page.svelte b/src/routes/admin/albums/+page.svelte
index 198527f..842322f 100644
--- a/src/routes/admin/albums/+page.svelte
+++ b/src/routes/admin/albums/+page.svelte
@@ -43,8 +43,6 @@
let filteredAlbums = $state([])
let isLoading = $state(true)
let error = $state('')
- let total = $state(0)
- let albumTypeCounts = $state>({})
let showDeleteModal = $state(false)
let albumToDelete = $state(null)
let activeDropdown = $state(null)
@@ -101,15 +99,6 @@
const data = await response.json()
albums = data.albums || []
- total = data.pagination?.total || albums.length
-
- // Calculate album status counts
- const counts: Record = {
- all: albums.length,
- published: albums.filter((a) => a.status === 'published').length,
- draft: albums.filter((a) => a.status === 'draft').length
- }
- albumTypeCounts = counts
// Apply initial filter and sort
applyFilterAndSort()
diff --git a/src/routes/admin/media/+page.svelte b/src/routes/admin/media/+page.svelte
index a8bc60b..3924259 100644
--- a/src/routes/admin/media/+page.svelte
+++ b/src/routes/admin/media/+page.svelte
@@ -24,7 +24,6 @@
const media = $derived(data.items ?? [])
const currentPage = $derived(data.pagination?.page ?? 1)
const totalPages = $derived(data.pagination?.totalPages ?? 1)
- const total = $derived(data.pagination?.total ?? 0)
// Read filter states from URL
const filterType = $derived($page.url.searchParams.get('mimeType') ?? 'all')
@@ -149,7 +148,7 @@
isDetailsModalOpen = false
}
- async function handleMediaUpdate(updatedMedia: Media) {
+ async function handleMediaUpdate(_updatedMedia: Media) {
// Invalidate to reload from server
await invalidate('admin:media')
}