refactor: manually write like 3,000 import statements because i must test my willpower

This commit is contained in:
Xylight committed 2025-09-24 21:19:19 -07:00
1 parent 75f907743e
commit 0479aba095
274 files changed
+1222 -1702

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
<script lang="ts">
import { t } from '$lib/app/i18n'
import { TextInput, Select, Option } from 'mono-svelte'
import { Option, Select, TextInput } from 'mono-svelte'
const multipliers = {
minute: 60,
+5 -5
View File
@@ -1,13 +1,13 @@
<script lang="ts">
import { profile } from '$lib/app/auth.svelte.js'
import ProgressBar from '$lib/ui/info/ProgressBar.svelte'
import { profile } from '$lib/app/auth.svelte'
import { errorMessage } from '$lib/app/error'
import { t } from '$lib/app/i18n'
import { errorMessage } from '$lib/lemmy/error'
import { uploadImage } from '$lib/util.svelte.js'
import { uploadImage } from '$lib/app/util.svelte'
import { Button, toast } from 'mono-svelte'
import { DocumentPlus, Icon } from 'svelte-hero-icons'
import { DocumentPlus, Icon } from 'svelte-hero-icons/dist'
import { expoOut } from 'svelte/easing'
import { slide } from 'svelte/transition'
import ProgressBar from '../info/ProgressBar.svelte'
interface Props {
image?: FileList | null
+2 -2
View File
@@ -1,8 +1,8 @@
<script lang="ts">
import { Button, Modal, TextInput } from 'mono-svelte'
import Switch from '../input/Switch.svelte'
import { t } from '$lib/app/i18n'
import { Button, Modal, TextInput } from 'mono-svelte'
import ImageAttachForm from './ImageAttachForm.svelte'
import Switch from './Switch.svelte'
let {
open = $bindable(),
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import { t } from '$lib/app/i18n'
import { Label } from 'mono-svelte'
import { DocumentPlus, Icon, Plus } from 'svelte-hero-icons'
import { DocumentPlus, Icon, Plus } from 'svelte-hero-icons/dist'
import ImageInputModal from './ImageInputModal.svelte'
let {
+3 -4
View File
@@ -1,8 +1,7 @@
<script lang="ts">
import { preventDefault } from 'svelte/legacy'
import { DocumentPlus, Icon } from 'svelte-hero-icons'
import { Label, TextInput } from 'mono-svelte'
import { DocumentPlus, Icon } from 'svelte-hero-icons/dist'
import { preventDefault } from 'svelte/legacy'
interface Props {
accept?: string
@@ -52,7 +51,7 @@
class="w-full max-w-sm h-full rounded-lg"
/>
{:else if url}
<img src={url} />
<img src={url} alt="" />
{:else}
<Icon src={DocumentPlus} class="opacity-50" size="36" />
<p class="text-sm opacity-50">Attach a file</p>
+2 -2
View File
@@ -1,11 +1,11 @@
<script lang="ts">
import Avatar from '$lib/ui/generic/Avatar.svelte'
import { getClient } from '$lib/api/client.svelte'
import type { Community, ListingType } from '$lib/api/types'
import { MenuButton, Search } from 'mono-svelte'
import { createEventDispatcher } from 'svelte'
import { Icon, ServerStack, XCircle } from 'svelte-hero-icons'
import { Icon, ServerStack, XCircle } from 'svelte-hero-icons/dist'
import { fly } from 'svelte/transition'
import Avatar from '../generic/Avatar.svelte'
interface Props {
type?: 'community' | 'instance'