Create a new team
-Search and click items to add them to your grid
-diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte deleted file mode 100644 index cc88df0e..00000000 --- a/src/routes/+page.svelte +++ /dev/null @@ -1,2 +0,0 @@ -
Visit svelte.dev/docs/kit to read the documentation
diff --git a/src/routes/[username]/+page.server.ts b/src/routes/[username]/+page.server.ts deleted file mode 100644 index e4216f1c..00000000 --- a/src/routes/[username]/+page.server.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { PageServerLoad } from './$types' -import { error } from '@sveltejs/kit' -import { userAdapter } from '$lib/api/adapters/user.adapter' -import { parseParty } from '$lib/api/schemas/party' - -export const load: PageServerLoad = async ({ params, url, depends, locals }) => { - depends('app:profile') - const username = params.username - const pageParam = url.searchParams.get('page') - const page = pageParam ? Math.max(1, parseInt(pageParam, 10) || 1) : 1 - const tab = url.searchParams.get('tab') === 'favorites' ? 'favorites' : 'teams' - const isOwner = locals.session?.account?.username === username - - try { - if (tab === 'favorites' && isOwner) { - const fav = await userAdapter.getFavorites({ page }) - return { - user: { username } as any, - items: fav.items, - page: fav.page, - total: fav.total, - totalPages: fav.totalPages, - perPage: fav.perPage, - tab, - isOwner - } - } - - const { user, items, total, totalPages, perPage } = await userAdapter.getProfile(username, page) - const parties = items.map((p) => parseParty(p)) - return { user, items: parties, page, total, totalPages, perPage, tab, isOwner } - } catch (e: any) { - throw error(e?.status || 502, e?.message || 'Failed to load profile') - } -} diff --git a/src/routes/[username]/+page.svelte b/src/routes/[username]/+page.svelte deleted file mode 100644 index 4174c130..00000000 --- a/src/routes/[username]/+page.svelte +++ /dev/null @@ -1,263 +0,0 @@ - - -Loading {tab}...
-Failed to load {tab}: {partiesQuery.error?.message || 'Unknown error'}
- -{tab === 'favorites' ? 'No favorite teams yet' : 'No teams found'}
-You've seen all {tab === 'favorites' ? 'favorites' : 'teams'}!
-{JSON.stringify(data, null, 2)}
diff --git a/src/routes/about/+page.ts b/src/routes/about/+page.ts
deleted file mode 100644
index 662ce0ad..00000000
--- a/src/routes/about/+page.ts
+++ /dev/null
@@ -1,8 +0,0 @@
-import { PUBLIC_SIERO_API_URL } from '$env/static/public'
-
-export const load = async ({ fetch }) => {
- const apiBase = PUBLIC_SIERO_API_URL || 'http://localhost:3000'
- const response = await fetch(`${apiBase}/api/v1/version`)
- const status = await response.json()
- return { status }
-}
diff --git a/src/routes/api/settings/+server.ts b/src/routes/api/settings/+server.ts
deleted file mode 100644
index 4c9f745c..00000000
--- a/src/routes/api/settings/+server.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { json } from '@sveltejs/kit'
-import type { RequestHandler } from './$types'
-import { setUserCookie } from '$lib/auth/cookies'
-import type { UserCookie } from '$lib/types/UserCookie'
-
-export const POST: RequestHandler = async ({ cookies, request }) => {
- try {
- const userCookie = await request.json() as UserCookie
-
- // Calculate expiry date (60 days from now)
- const expires = new Date()
- expires.setDate(expires.getDate() + 60)
-
- // Set the user cookie with the updated data
- setUserCookie(cookies, userCookie, {
- secure: true,
- expires
- })
-
- return json({ success: true })
- } catch (error) {
- console.error('Failed to update settings cookie:', error)
- return json({ error: 'Failed to update settings' }, { status: 500 })
- }
-}
\ No newline at end of file
diff --git a/src/routes/collection/+page.svelte b/src/routes/collection/+page.svelte
deleted file mode 100644
index 6a629bc0..00000000
--- a/src/routes/collection/+page.svelte
+++ /dev/null
@@ -1,31 +0,0 @@
-Your collection in Granblue Fantasy
- -The character you're looking for could not be found.
- -- {summon.callDescription || 'No description available'} -
-No call effect information available
- {/if} -- {summon.auraDescription || 'No description available'} -
-No aura effect information available
- {/if} -- {summon.subAuraDescription || 'No description available'} -
-The summon you're looking for could not be found.
- -{skill.description || 'No description available'}
-No skills available
- {/if} -The weapon you're looking for could not be found.
- -Guides and resources for Granblue Fantasy players.
- -@{account.username}
- - -No party data available for this code.
-Loading teams...
-Failed to load teams: {partiesQuery.error?.message || 'Unknown error'}
- -No teams found
-You've reached the end of all teams!
-Search and click items to add them to your grid
-Details:
-- Test both interaction methods: -
-
- {/snippet}
-
- {#snippet contextMenu()}
- {imageUrl}
- Note: Image will show error state if file doesn't exist
-