From 20c78d56198edf240a137aa147732f0d34dbe692 Mon Sep 17 00:00:00 2001 From: James Xylight Date: Thu, 21 Aug 2025 18:34:24 -0700 Subject: [PATCH] lint: fix problems --- .../lemmy/community/CommunityCard.svelte | 5 ++--- .../lemmy/community/CommunityForm.svelte | 20 +++++++------------ .../components/ui/layout/pages/Tabs.svelte | 2 -- src/lib/components/ui/sidebar/Sidebar.svelte | 7 +++---- src/routes/accounts/+page.svelte | 2 -- src/routes/communities/+page.svelte | 10 ++-------- src/routes/inbox/+page.svelte | 3 +-- src/routes/instances/linked/+page.svelte | 6 ++---- .../post/[instance]/[id=integer]/+page.svelte | 7 +++---- src/routes/saved/+page.svelte | 1 - src/routes/search/SearchBar.svelte | 1 - src/routes/settings/+page.svelte | 6 +----- src/routes/util/+layout.svelte | 1 - 13 files changed, 21 insertions(+), 50 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityCard.svelte b/src/lib/components/lemmy/community/CommunityCard.svelte index 26aaaed1..91508c73 100644 --- a/src/lib/components/lemmy/community/CommunityCard.svelte +++ b/src/lib/components/lemmy/community/CommunityCard.svelte @@ -76,6 +76,8 @@ import Entity from '$lib/components/ui/Entity.svelte' import Expandable from '$lib/components/ui/Expandable.svelte' import LabelStat from '$lib/components/ui/LabelStat.svelte' + import CommonList from '$lib/components/ui/layout/CommonList.svelte' + import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte' import { t } from '$lib/i18n/translations' import { client, getClient } from '$lib/lemmy.svelte.js' import { errorMessage } from '$lib/lemmy/error' @@ -105,9 +107,6 @@ NoSymbol, Plus, } from 'svelte-hero-icons' - import ItemList from '../generic/ItemList.svelte' - import CommonList from '$lib/components/ui/layout/CommonList.svelte' - import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte' let loading = $state({ blocking: false, diff --git a/src/lib/components/lemmy/community/CommunityForm.svelte b/src/lib/components/lemmy/community/CommunityForm.svelte index b1534a43..1849b0e9 100644 --- a/src/lib/components/lemmy/community/CommunityForm.svelte +++ b/src/lib/components/lemmy/community/CommunityForm.svelte @@ -1,13 +1,13 @@
{ + e.preventDefault() + submit() + }} class="flex flex-col gap-4 h-full w-full" > {#if formtitle}{@render formtitle()}{:else} diff --git a/src/lib/components/ui/layout/pages/Tabs.svelte b/src/lib/components/ui/layout/pages/Tabs.svelte index 7d9a6180..341a8879 100644 --- a/src/lib/components/ui/layout/pages/Tabs.svelte +++ b/src/lib/components/ui/layout/pages/Tabs.svelte @@ -10,7 +10,6 @@ }[] currentRoute?: SvelteURL | undefined buildUrl?: (currentRoute: SvelteURL | undefined, href: string) => string - class?: string children?: import('svelte').Snippet } @@ -18,7 +17,6 @@ routes, currentRoute = undefined, buildUrl = (_, href) => href, - class: clazz = '', children, }: Props = $props() diff --git a/src/lib/components/ui/sidebar/Sidebar.svelte b/src/lib/components/ui/sidebar/Sidebar.svelte index 83a58214..c0f5d3a0 100644 --- a/src/lib/components/ui/sidebar/Sidebar.svelte +++ b/src/lib/components/ui/sidebar/Sidebar.svelte @@ -1,10 +1,10 @@ diff --git a/src/routes/post/[instance]/[id=integer]/+page.svelte b/src/routes/post/[instance]/[id=integer]/+page.svelte index 46c06716..2298bab8 100644 --- a/src/routes/post/[instance]/[id=integer]/+page.svelte +++ b/src/routes/post/[instance]/[id=integer]/+page.svelte @@ -1,10 +1,10 @@