diff --git a/src/lib/components/edra/headless/components/ContentInsertionPane.svelte b/src/lib/components/edra/headless/components/ContentInsertionPane.svelte index a66e514..580a04c 100644 --- a/src/lib/components/edra/headless/components/ContentInsertionPane.svelte +++ b/src/lib/components/edra/headless/components/ContentInsertionPane.svelte @@ -1,11 +1,6 @@ - import Album from '$components/Album.svelte' - import Game from '$components/Game.svelte' import MentionList from '$components/MentionList.svelte' import Page from '$components/Page.svelte' import RecentAlbums from '$components/RecentAlbums.svelte' @@ -13,8 +11,6 @@ let { data } = $props<{ data: PageData }>() let albums = $derived(data.albums) - let games = $derived(data.games) - let error = $derived(data.error) const pageUrl = $derived($page.url.href) diff --git a/src/routes/api/psn/+server.ts b/src/routes/api/psn/+server.ts index 917dc74..1599b7c 100644 --- a/src/routes/api/psn/+server.ts +++ b/src/routes/api/psn/+server.ts @@ -4,8 +4,7 @@ import redis from '../redis-client' import type { AuthTokensResponse, - GetUserPlayedTimeResponse, - RecentlyPlayedGamesResponse + GetUserPlayedTimeResponse } from 'psn-api' import type { RequestHandler } from './$types' @@ -13,7 +12,6 @@ const require = Module.createRequire(import.meta.url) const { exchangeNpssoForCode, exchangeCodeForAccessToken, - getRecentlyPlayedGames, getUserPlayedTime } = require('psn-api') @@ -21,7 +19,7 @@ const CACHE_TTL = 60 * 60 // 1 hour const PSN_NPSSO_TOKEN = process.env.PSN_NPSSO_TOKEN const PSN_ID = '1275018559140296533' -export const GET: RequestHandler = async ({ url }) => { +export const GET: RequestHandler = async () => { // Check if data is in cache const cachedData = await redis.get(`psn:${PSN_ID}`) if (cachedData) { @@ -45,7 +43,7 @@ async function authorize(npsso: string): Promise { return authorization } -async function getSerializedGames(psnId: string): Promise { +async function getSerializedGames(_psnId: string): Promise { // Authorize with PSN and get games sorted by last played time const authorization = await authorize(PSN_NPSSO_TOKEN || '') const response = await getUserPlayedTime(authorization, PSN_ID, { diff --git a/src/routes/photos/[id]/+page.svelte b/src/routes/photos/[id]/+page.svelte index 78873b1..df1e93c 100644 --- a/src/routes/photos/[id]/+page.svelte +++ b/src/routes/photos/[id]/+page.svelte @@ -5,7 +5,6 @@ import { generateMetaTags } from '$lib/utils/metadata' import { page } from '$app/stores' import { goto } from '$app/navigation' - import { onMount } from 'svelte' import { spring } from 'svelte/motion' import { getCurrentMousePosition } from '$lib/stores/mouse' import type { PageData } from './$types' @@ -46,7 +45,6 @@ let defaultRightX = 0 const pageUrl = $derived($page.url.href) - const fromAlbum = $derived($page.url.searchParams.get('from')) // Generate metadata const metaTags = $derived( @@ -218,10 +216,6 @@ } } - // Track last known mouse position for scroll updates - let lastMouseX = 0 - let lastMouseY = 0 - // Store last mouse client position for scroll updates let lastClientX = 0 let lastClientY = 0