refactor: manually write like 3,000 import statements because i must test my willpower
This commit is contained in:
274 files changed
+1222
-1702
No files matched your search
@@ -1,13 +1,13 @@
|
||||
<script lang="ts">
|
||||
import type { Snippet } from 'svelte'
|
||||
import Avatar from '../Avatar.svelte'
|
||||
import Avatar from '../generic/Avatar.svelte'
|
||||
|
||||
interface Props {
|
||||
href?: string
|
||||
icon?: string
|
||||
title: string
|
||||
detail?: string
|
||||
orientation: 'vertical' | 'horizontal'
|
||||
orientation?: 'vertical' | 'horizontal'
|
||||
children?: Snippet
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<script lang="ts" generics="T">
|
||||
import type { Snippet } from 'svelte'
|
||||
import type { ClassValue } from 'svelte/elements'
|
||||
|
||||
const sizeDelay: Record<'lg' | 'md' | 'sm' | 'xs', number> = {
|
||||
lg: 120,
|
||||
md: 80,
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<script lang="ts">
|
||||
import { invalidate } from '$app/navigation'
|
||||
import { page as pageData } from '$app/state'
|
||||
import { t } from '$lib/app/i18n'
|
||||
import { Button } from 'mono-svelte'
|
||||
import { ChevronLeft, ChevronRight, Icon } from 'svelte-hero-icons'
|
||||
import { ChevronLeft, ChevronRight, Icon } from 'svelte-hero-icons/dist'
|
||||
import { backOut } from 'svelte/easing'
|
||||
import { fly } from 'svelte/transition'
|
||||
import { page as pageData } from '$app/state'
|
||||
import { invalidate } from '$app/navigation'
|
||||
import { SvelteURLSearchParams } from 'svelte/reactivity'
|
||||
import { fly } from 'svelte/transition'
|
||||
|
||||
interface Props {
|
||||
page?: number
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { navigating, page } from '$app/state'
|
||||
import { t } from '$lib/app/i18n'
|
||||
import { Button, TextInput } from 'mono-svelte'
|
||||
import { MagnifyingGlass } from 'svelte-hero-icons'
|
||||
import { MagnifyingGlass } from 'svelte-hero-icons/dist'
|
||||
|
||||
interface Props {
|
||||
query?: string | null
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { settings } from '$lib/settings.svelte.js'
|
||||
import { settings } from '$lib/app/settings.svelte'
|
||||
import type { Snippet } from 'svelte'
|
||||
import type {
|
||||
ClassValue,
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
<script lang="ts">
|
||||
import { browser } from '$app/environment'
|
||||
import { page } from '$app/state'
|
||||
import type { GetPosts, ListingType, PostView } from '$lib/api/types'
|
||||
import type {
|
||||
GetPosts,
|
||||
ListingType,
|
||||
PostView,
|
||||
SortType,
|
||||
} from '$lib/api/types'
|
||||
import { settings } from '$lib/app/settings.svelte'
|
||||
import Location from '$lib/feature/filter/Location.svelte'
|
||||
import Sort from '$lib/feature/filter/Sort.svelte'
|
||||
import ViewSelect from '$lib/feature/filter/ViewSelect.svelte'
|
||||
import PostFeed from '$comp/lemmy/post/feed/PostFeed.svelte'
|
||||
import VirtualFeed from '$comp/lemmy/post/feed/VirtualFeed.svelte'
|
||||
import { Header } from '$comp/ui/layout'
|
||||
import Pageination from '$comp/ui/layout/Pageination.svelte'
|
||||
import { settings } from '$lib/settings.svelte.js'
|
||||
import type { SortType } from 'lemmy-js-client'
|
||||
import Button from 'mono-svelte/button/Button.svelte'
|
||||
import PostFeed from '$lib/feature/post/feed/PostFeed.svelte'
|
||||
import VirtualFeed from '$lib/feature/post/feed/VirtualFeed.svelte'
|
||||
import { Button } from 'mono-svelte'
|
||||
import type { Snippet } from 'svelte'
|
||||
import { ArrowRight, Icon } from 'svelte-hero-icons'
|
||||
import { ArrowRight, Icon } from 'svelte-hero-icons/dist'
|
||||
import { Header, Pageination } from '..'
|
||||
|
||||
interface Props {
|
||||
posts: PostView[]
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
<script lang="ts">
|
||||
import { invalidateAll } from '$app/navigation'
|
||||
import { page } from '$app/state'
|
||||
import TabButton from '$comp/input/TabButton.svelte'
|
||||
import { SvelteURL } from 'svelte/reactivity'
|
||||
|
||||
interface Props {
|
||||
routes: {
|
||||
href: string
|
||||
|
||||
Reference in new issue
Block a user