refactor: prefer barrel exports
This commit is contained in:
64 files changed
+181
-249
No files matched your search
@@ -3,24 +3,25 @@
|
||||
|
||||
import { goto } from '$app/navigation'
|
||||
import { page } from '$app/state'
|
||||
import { profile } from '$lib/auth.svelte.js'
|
||||
import { getClient } from '$lib/client/lemmy.svelte'
|
||||
import type { GetCaptchaResponse } from '$lib/client/types'
|
||||
import ErrorContainer, {
|
||||
clearErrorScope,
|
||||
pushError,
|
||||
} from '$lib/components/error/ErrorContainer.svelte'
|
||||
import SiteCard from '$lib/components/lemmy/SiteCard.svelte'
|
||||
import SiteCard from '$lib/components/lemmy/instance/InstanceCard.svelte'
|
||||
import Markdown from '$lib/components/markdown/Markdown.svelte'
|
||||
import MarkdownEditor from '$lib/components/markdown/MarkdownEditor.svelte'
|
||||
import Avatar from '$lib/components/ui/Avatar.svelte'
|
||||
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||
import Placeholder from '$lib/components/ui/Placeholder.svelte'
|
||||
import SectionTitle from '$lib/components/ui/SectionTitle.svelte'
|
||||
import { t } from '$lib/i18n/translations.js'
|
||||
import { getClient } from '$lib/client/lemmy.svelte'
|
||||
import { errorMessage } from '$lib/lemmy/error.js'
|
||||
import type { GetCaptchaResponse } from '$lib/client/types'
|
||||
import {
|
||||
Button,
|
||||
Checkbox,
|
||||
Label,
|
||||
Material,
|
||||
Spinner,
|
||||
TextInput,
|
||||
@@ -36,7 +37,6 @@
|
||||
QuestionMarkCircle,
|
||||
XCircle,
|
||||
} from 'svelte-hero-icons'
|
||||
import { profile } from '$lib/auth.svelte.js'
|
||||
|
||||
let { data } = $props()
|
||||
|
||||
@@ -230,9 +230,7 @@
|
||||
/>
|
||||
{/if}
|
||||
{#if captchaRequired}
|
||||
<SectionTitle class="block -mb-3 font-medium text-sm">
|
||||
Captcha
|
||||
</SectionTitle>
|
||||
<Label class="block -mb-3 font-medium text-sm">Captcha</Label>
|
||||
<Material rounding="2xl">
|
||||
<div class="flex flex-col gap-4">
|
||||
{#await getCaptcha()}
|
||||
|
||||
Reference in new issue
Block a user