fix: ssr handoff crash

This commit is contained in:
James Xylight committed 2025-02-13 16:39:16 -08:00
1 parent c37d1789d6
commit 77671aaec5
9 files changed
+98 -113

No files matched your search

+1 -4
View File
@@ -10,10 +10,7 @@
} from '$lib/auth.svelte.js'
import { Menu, MenuButton, Modal } from 'mono-svelte'
import DebugObject from '$lib/components/util/debug/DebugObject.svelte'
import {
DEFAULT_INSTANCE_URL,
LINKED_INSTANCE_URL,
} from '$lib/instance.svelte.js'
import { LINKED_INSTANCE_URL } from '$lib/instance.svelte.js'
import ProfileAvatar from '$lib/lemmy/ProfileAvatar.svelte'
import { settings } from '$lib/settings.svelte.js'
import { Button, TextInput } from 'mono-svelte'
+1 -1
View File
@@ -11,7 +11,7 @@
import { t } from '$lib/translations'
import { Button, TextInput, toast } from 'mono-svelte'
let instance = $state(LINKED_INSTANCE_URL || $currentInstance || '')
let instance = $state(LINKED_INSTANCE_URL || currentInstance.data || '')
let email = $state('')
let loading = $state(false)
@@ -20,7 +20,7 @@
let { data }: Props = $props()
let instance = $state(LINKED_INSTANCE_URL || $currentInstance || '')
let instance = $state(LINKED_INSTANCE_URL || currentInstance.data || '')
let password = $state(''),
password_verify = $state('')
let loading = $state(false)
+2 -2
View File
@@ -231,8 +231,8 @@
</p>
{/snippet}
<Button
color="primary"
class="dark:bg-pink-400 bg-pink-600"
color="none"
class="dark:bg-pink-400 bg-pink-600 text-white dark:text-black"
href="https://buymeacoffee.com/xylight"
target="_blank"
rounding="xl"
+1 -1
View File
@@ -18,7 +18,7 @@
import { goto } from '$app/navigation'
import { Badge, Material, Spinner, toast } from 'mono-svelte'
import { DEFAULT_INSTANCE_URL } from '$lib/instance.svelte.js'
import { DEFAULT_INSTANCE_URL, instance } from '$lib/instance.svelte.js'
import { validateInstance } from '$lib/lemmy.svelte.js'
import { Button, TextInput } from 'mono-svelte'
import { onMount } from 'svelte'