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 -3
View File
@@ -1,7 +1,5 @@
<script lang="ts">
import { findClosestNumber } from '$lib/util.svelte.js'
import { createAvatar } from '@dicebear/core'
import * as initials from '@dicebear/initials'
import { findClosestNumber } from '$lib/app/util.svelte'
import type { ClassValue } from 'svelte/elements'
const sizes = [16, 24, 32, 48, 64, 96, 128, 256, 512]
+3 -3
View File
@@ -1,10 +1,10 @@
<script lang="ts">
import { t } from '$lib/app/i18n'
import Markdown from '$lib/app/markdown/Markdown.svelte'
import { Expandable } from 'mono-svelte'
import type { ClassValue } from 'svelte/elements'
import Markdown from '../../app/markdown/Markdown.svelte'
import FormattedNumber from '../../components/util/FormattedNumber.svelte'
import FormattedNumber from '../util/FormattedNumber.svelte'
import Avatar from './Avatar.svelte'
import Expandable from '../shared/disclosure/Expandable.svelte'
interface Props {
avatar?: string | undefined
+7 -8
View File
@@ -1,5 +1,12 @@
<script lang="ts" module>
import { pushState } from '$app/navigation'
import { page } from '$app/state'
import { t } from '$lib/app/i18n'
import { Button, Material, toast } from 'mono-svelte'
import { Share, XMark } from 'svelte-hero-icons/dist'
import { expoOut } from 'svelte/easing'
import { fade, scale } from 'svelte/transition'
import { trapFocus } from 'trap-focus-svelte'
export function showImage(url: string) {
pushState('', {
@@ -9,14 +16,6 @@
</script>
<script lang="ts">
import { page } from '$app/state'
import { t } from '$lib/app/i18n'
import { Button, Material, toast } from 'mono-svelte'
import { Share, XMark } from 'svelte-hero-icons'
import { expoOut } from 'svelte/easing'
import { fade, scale } from 'svelte/transition'
import { trapFocus } from 'trap-focus-svelte'
interface Props {
/**
* The full-resolution image URL
+2 -2
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import Avatar from '$lib/ui/generic/Avatar.svelte'
import CommonList from '$comp/ui/layout/CommonList.svelte'
import { Button } from 'mono-svelte'
import { CommonList } from '../layout'
import Avatar from './Avatar.svelte'
interface Props {
items: {