migrate: change settings from a store to a state

This commit is contained in:
Xylight committed 2024-10-25 21:09:32 -07:00
1 parent ffcd9faa96
commit d597349887
128 files changed
+1010 -1144

No files matched your search

+6 -6
View File
@@ -1,23 +1,23 @@
<script lang="ts">
import { preventDefault } from 'svelte/legacy';
import { preventDefault } from 'svelte/legacy'
import { site, validateInstance } from '$lib/lemmy.js'
import { Button, Note, TextInput, toast } from 'mono-svelte'
import { MINIMUM_VERSION } from '$lib/version'
import { mayBeIncompatible } from '$lib/lemmy'
import { DOMAIN_REGEX_FORMS } from '$lib/util'
import { profile, profileData, type Profile } from '$lib/auth'
import { DOMAIN_REGEX_FORMS } from '$lib/util.svelte'
import { profile, profileData, type Profile } from '$lib/auth.svelte'
import { LINKED_INSTANCE_URL } from '$lib/instance'
import { goto } from '$app/navigation'
import { t } from '$lib/translations'
import Header from '$lib/components/ui/layout/pages/Header.svelte'
interface Props {
ref?: string;
children?: import('svelte').Snippet;
ref?: string
children?: import('svelte').Snippet
}
let { ref = '/', children }: Props = $props();
let { ref = '/', children }: Props = $props()
let form = $state({
instance: '',