diff --git a/src/lib/auth.svelte.ts b/src/lib/auth.svelte.ts
index 50e9b58c..4e66ae16 100644
--- a/src/lib/auth.svelte.ts
+++ b/src/lib/auth.svelte.ts
@@ -172,8 +172,6 @@ $effect.root(() => {
}
})
- $effect(() => {})
-
$effect(() => {
if (profile.data.id || profileData) fetchUserData(profile).then((res) => {})
})
diff --git a/src/lib/components/lemmy/community/CommunityItem.svelte b/src/lib/components/lemmy/community/CommunityItem.svelte
index fe9a1081..145e99e9 100644
--- a/src/lib/components/lemmy/community/CommunityItem.svelte
+++ b/src/lib/components/lemmy/community/CommunityItem.svelte
@@ -5,10 +5,14 @@
import {
ChatBubbleOvalLeftEllipsis,
Check,
+ ExclamationTriangle,
Icon,
InformationCircle,
+ MapPin,
+ NoSymbol,
PencilSquare,
Plus,
+ Trash,
UserGroup,
} from 'svelte-hero-icons'
import FormattedNumber from '$lib/components/util/FormattedNumber.svelte'
@@ -78,7 +82,43 @@
class="flex flex-col overflow-hidden whitespace-nowrap flex-1 min-w-0 flex-shrink"
>
- {community.community.title}
+ {community.community.title}
+ {#if community.community.deleted}
+
+ {/if}
+ {#if community.community.nsfw}
+
+ {/if}
+ {#if community.banned_from_community}
+
+ {/if}
+ {#if community.community.visibility == 'LocalOnly'}
+
+ {/if}
diff --git a/src/lib/fediseer/Fediseer.svelte b/src/lib/fediseer/Fediseer.svelte
deleted file mode 100644
index ce623cc5..00000000
--- a/src/lib/fediseer/Fediseer.svelte
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-
-
-
- {#snippet title()}
-
- Endorsements
- {data.endorsements.instances.length}
-
-
- {/snippet}
-
- {#each data.endorsements.instances as instance}
-
-
-
- {/each}
-
-
-
- {#snippet title()}
-
- Guarantees
- {data.guarantees.instances.length}
-
-
- {/snippet}
-
- {#each data.guarantees.instances as instance}
-
-
-
- {/each}
-
-
-
- {#snippet title()}
-
- Censures
- {data.censures.instances.length}
-
-
- {/snippet}
-
- {#each data.censures.instances as instance}
-
-
-
- {/each}
-
-
-
- {#snippet title()}
-
- Hesitations
- {data.hesitations.instances.length}
-
-
- {/snippet}
-
- {#each data.hesitations.instances as instance}
-
-
-
- {/each}
-
-
-
-
diff --git a/src/lib/fediseer/fediseer.ts b/src/lib/fediseer/fediseer.ts
deleted file mode 100644
index 1d631d13..00000000
--- a/src/lib/fediseer/fediseer.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-export interface Endorsements {
- instances: {
- domain: string
- endorsement_reasons: string[]
- }[]
-}
-
-export interface Hesitations {
- instances: {
- domain: string
- hesitation_reasons: string[]
- }[]
-}
-
-export interface Censures {
- instances: {
- domain: string
- censure_reasons: string[]
- }[]
-}
-
-export interface Guarantees {
- instances: {
- domain: string
- guarantee_reasons: string[]
- }[]
-}
-
-export interface Data {
- endorsements: Endorsements
- hesitations: Hesitations
- guarantees: Guarantees
- censures: Censures
-}
-
-class Fediseer {
- url: string
-
- constructor(url: string) {
- this.url = url
- }
-
- async getInstanceInfo(domain: string): Promise {
- const [endorsements, hesitations, guarantees, censures] = await Promise.all(
- [
- fetch(`${this.url}/v1/endorsements/${domain}`).then((r) =>
- r.json(),
- ) as Promise,
- fetch(`${this.url}/v1/hesitations/${domain}`).then((r) =>
- r.json(),
- ) as Promise,
- fetch(`${this.url}/v1/guarantees/${domain}`).then((r) =>
- r.json(),
- ) as Promise,
- fetch(`${this.url}/v1/censures/${domain}`).then((r) =>
- r.json(),
- ) as Promise,
- ],
- )
-
- return { endorsements, hesitations, guarantees, censures }
- }
-}
-
-export const fediseer = new Fediseer('https://fediseer.com/api')
diff --git a/src/routes/communities/+page.svelte b/src/routes/communities/+page.svelte
index d90df835..a354f85c 100644
--- a/src/routes/communities/+page.svelte
+++ b/src/routes/communities/+page.svelte
@@ -31,6 +31,7 @@
import { fly } from 'svelte/transition'
import { backOut, expoOut } from 'svelte/easing'
import { goto } from '$app/navigation'
+ import Skeleton from '$lib/components/ui/generic/Skeleton.svelte'
let { data } = $props()
@@ -107,77 +108,95 @@
/>
-
- {#if communities.length == 0}
-
- {/if}
+{#if navigating.to?.route.id == '/communities'}
+
+ {#each new Array(5) as _, index}
+
+
+
+ {/each}
+
+{:else}
+
+ {#if communities.length == 0}
+
+ {/if}
- {#if showTop}
-
- {$t('routes.search.top')}
-
-
- {#each communities.slice(0, 3) as community, index (community.community.id)}
-
-
+ {$t('routes.search.top')}
+
+
+ {#each communities.slice(0, 3) as community, index (community.community.id)}
+
-
-
-
- {/each}
-
- {/if}
+
+
+
+
+ {/each}
+
+ {/if}
- {#if communities.slice(showTop ? 3 : 0).length > 0}
-
- {$t('routes.search.other')}
-
- {/if}
- {#if communities}
- {@const sliced = communities.slice(showTop ? 3 : 0)}
-
- {#each sliced as community, index (community.community.id)}
-
+ {$t('routes.search.other')}
+
+ {/if}
+ {#if communities}
+ {@const sliced = communities.slice(showTop ? 3 : 0)}
+
+ {#each sliced as community, index (community.community.id)}
+
-
-
- {/each}
-
- {/if}
-
+ in:fly|global={{
+ duration: 1000,
+ easing: expoOut,
+ delay: index < 20 ? index * 35 : 0,
+ y: 16,
+ }}
+ >
+
+
+ {/each}
+
+ {/if}
+
+{/if}
{#if communities.length > 0}
{#snippet prefix()}
@@ -145,15 +146,33 @@
{/if}
{#if !data.results}
-
+ {#if navigating.to?.route.id == '/search'}
+
+ {#each new Array(5) as _, index}
+
+
+
+ {/each}
+
+ {:else}
+
+ {/if}
{:else}
{#await data.streamed.object}