diff --git a/src/app.d.ts b/src/app.d.ts index a3c055e3..960de5d7 100644 --- a/src/app.d.ts +++ b/src/app.d.ts @@ -14,7 +14,6 @@ declare global { slots?: { sidebar?: { component?: ComponentType - // eslint-disable-next-line props?: any } } diff --git a/src/lib/components/lemmy/ObjectAutocomplete.svelte b/src/lib/components/lemmy/ObjectAutocomplete.svelte index fe91e774..133ce007 100644 --- a/src/lib/components/lemmy/ObjectAutocomplete.svelte +++ b/src/lib/components/lemmy/ObjectAutocomplete.svelte @@ -14,7 +14,6 @@ listing_type?: ListingType showWhenEmpty?: boolean placeholder?: string - // eslint-disable-next-line onselect?: (item: any) => void } diff --git a/src/lib/components/lemmy/dropdowns/Sort.svelte b/src/lib/components/lemmy/dropdowns/Sort.svelte index f14830a3..1381f23a 100644 --- a/src/lib/components/lemmy/dropdowns/Sort.svelte +++ b/src/lib/components/lemmy/dropdowns/Sort.svelte @@ -22,8 +22,6 @@ Sun, Trophy, } from 'svelte-hero-icons' - import { backOut } from 'svelte/easing' - import { fly } from 'svelte/transition' interface Props extends SelectProps { selected: string diff --git a/src/lib/components/markdown/Markdown.svelte b/src/lib/components/markdown/Markdown.svelte index c2342c92..d377fb3f 100644 --- a/src/lib/components/markdown/Markdown.svelte +++ b/src/lib/components/markdown/Markdown.svelte @@ -36,7 +36,6 @@ marked.use(linkify, { extensions: [ // @ts-expect-error hell with marked - // eslint-disable-next-line containerExtension((params: any) => { if (params.type == 'spoiler') { return { @@ -49,7 +48,6 @@ return null }), // @ts-expect-error hell with marked - // eslint-disable-next-line subSupscriptExtension((params: any) => { if (params.type == 'subscript') { return { diff --git a/src/lib/components/ui/Placeholder.svelte b/src/lib/components/ui/Placeholder.svelte index 36755214..59cea410 100644 --- a/src/lib/components/ui/Placeholder.svelte +++ b/src/lib/components/ui/Placeholder.svelte @@ -28,7 +28,6 @@ {#if icon}
+ import type { Snippet } from 'svelte' + + const placements = { + top: 'top-6 lg:top-22', + bottom: 'bottom-22 lg:bottom-6', + } + + interface Props { + placement: keyof typeof placements + children?: Snippet + } + + let { placement, children }: Props = $props() + + +
+ {@render children?.()} +
diff --git a/src/lib/components/ui/layout/Shell.svelte b/src/lib/components/ui/layout/Shell.svelte index 31c03afa..f3269dcb 100644 --- a/src/lib/components/ui/layout/Shell.svelte +++ b/src/lib/components/ui/layout/Shell.svelte @@ -40,7 +40,7 @@ class={[ 'fixed lg:sticky bottom-0 lg:top-0', !dockVisible && 'max-lg:-bottom-24', - 'max-w-3xl p-4 left-1/2 -translate-x-1/2 lg:max-w-full lg:p-0 lg:left-0 lg:translate-x-0', + 'max-w-3xl p-3 left-1/2 -translate-x-1/2 lg:max-w-full lg:p-0 lg:left-0 lg:translate-x-0', 'w-full z-50 pointer-events-none', ]} style="transition: bottom .4s cubic-bezier(0.075, 0.82, 0.165, 1);" diff --git a/src/lib/components/ui/navbar/NavButton.svelte b/src/lib/components/ui/navbar/NavButton.svelte index 98b7b5bb..0e059130 100644 --- a/src/lib/components/ui/navbar/NavButton.svelte +++ b/src/lib/components/ui/navbar/NavButton.svelte @@ -56,7 +56,7 @@ {#snippet prefix()}
{#if icon} - + {:else} {@render customIcon?.({ size: 16, isSelected })} {/if} diff --git a/src/lib/components/ui/navbar/commands/Commands.svelte b/src/lib/components/ui/navbar/commands/Commands.svelte index f6fcbdb6..a0e399c7 100644 --- a/src/lib/components/ui/navbar/commands/Commands.svelte +++ b/src/lib/components/ui/navbar/commands/Commands.svelte @@ -42,7 +42,6 @@ const debounce = (fn: Function, ms = 300) => { let timeoutId: ReturnType - // eslint-disable-next-line return function (this: any, ...args: any[]) { clearTimeout(timeoutId) timeoutId = setTimeout(() => fn.apply(this, args), ms) diff --git a/src/lib/components/util/debug/DebugObject.svelte b/src/lib/components/util/debug/DebugObject.svelte index b926c0d9..f7c3db34 100644 --- a/src/lib/components/util/debug/DebugObject.svelte +++ b/src/lib/components/util/debug/DebugObject.svelte @@ -3,7 +3,6 @@ import { Modal } from 'mono-svelte' interface Props { - // eslint-disable-next-line object: any open?: boolean title?: import('svelte').Snippet diff --git a/src/lib/components/util/debug/DebugTree.svelte b/src/lib/components/util/debug/DebugTree.svelte index 18daa595..09c241e7 100644 --- a/src/lib/components/util/debug/DebugTree.svelte +++ b/src/lib/components/util/debug/DebugTree.svelte @@ -1,7 +1,6 @@ diff --git a/src/routes/inbox/+page.svelte b/src/routes/inbox/+page.svelte index 5aff9d22..d35dceda 100644 --- a/src/routes/inbox/+page.svelte +++ b/src/routes/inbox/+page.svelte @@ -12,6 +12,7 @@ import { Button, Option, Select } from 'mono-svelte' import { ArrowPath, Check, Funnel, Icon, Inbox } from 'svelte-hero-icons' import InboxItem from './InboxItem.svelte' + import Fixate from '$lib/components/ui/generic/Fixate.svelte' let { data } = $props() @@ -114,9 +115,7 @@ {/if} {#if !(data.page == 1 && (data?.inbox?.value.length ?? 0) == 0)} -
+ `?page=${page}`} /> -
+ {/if} diff --git a/src/routes/moderation/+layout.svelte b/src/routes/moderation/+layout.svelte index cb868b82..d2a2dec5 100644 --- a/src/routes/moderation/+layout.svelte +++ b/src/routes/moderation/+layout.svelte @@ -21,6 +21,4 @@ }, ]} /> -
- {@render children?.()} -
+{@render children?.()} diff --git a/src/routes/moderation/+page.svelte b/src/routes/moderation/+page.svelte index 5f5a51f5..5b0a56f9 100644 --- a/src/routes/moderation/+page.svelte +++ b/src/routes/moderation/+page.svelte @@ -15,6 +15,7 @@ import { tick } from 'svelte' import { Check, Funnel, Icon, ShieldCheck, XMark } from 'svelte-hero-icons' import Report from './Report.svelte' + import Fixate from '$lib/components/ui/generic/Fixate.svelte' let { data = $bindable() } = $props() @@ -153,11 +154,13 @@ {/if} {/snippet} - `?page=${current}`} - hasMore={data.items.value.length >= 20} - /> + + `?page=${current}`} + hasMore={data.items.value.length >= 20} + /> + {:else}
{/if} -
+ `?page=${page}`} page={data.page} /> -
+ diff --git a/src/routes/saved/+page.ts b/src/routes/saved/+page.ts index f885d314..d3027990 100644 --- a/src/routes/saved/+page.ts +++ b/src/routes/saved/+page.ts @@ -26,7 +26,7 @@ export async function load({ url, fetch }) { const { posts, comments } = await client({ func: fetch }).getPersonDetails({ saved_only: true, limit: 20, - page: 1, + page: page, person_id: user?.local_user_view.person.id, }) diff --git a/src/routes/search/SearchBar.svelte b/src/routes/search/SearchBar.svelte index 02bd03a5..a0c8a0be 100644 --- a/src/routes/search/SearchBar.svelte +++ b/src/routes/search/SearchBar.svelte @@ -13,30 +13,28 @@ let searchElement = $state() -
-
+ + -
+ {#snippet prefix()} + + {/snippet} +