diff --git a/bun.lockb b/bun.lockb index bc83e7c5..fea12a09 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/lib/components/lemmy/community/CommunityItem.svelte b/src/lib/components/lemmy/community/CommunityItem.svelte index 8c228db9..39c29366 100644 --- a/src/lib/components/lemmy/community/CommunityItem.svelte +++ b/src/lib/components/lemmy/community/CommunityItem.svelte @@ -93,21 +93,29 @@ -
- - - -
+ {#if community.counts} +
+ {#if community.counts.posts} + + {/if} + {#if community.counts.subscribers} + + {/if} + {#if community.counts.comments} + + {/if} +
+ {/if} diff --git a/src/lib/components/lemmy/moderation/BanModal.svelte b/src/lib/components/lemmy/moderation/BanModal.svelte index 04671dc2..f2df6411 100644 --- a/src/lib/components/lemmy/moderation/BanModal.svelte +++ b/src/lib/components/lemmy/moderation/BanModal.svelte @@ -100,10 +100,10 @@ } - -

- {banned ? $t('moderation.ban.unbanning') : $t('moderation.ban.banning')} -

+ {#if item}
diff --git a/src/lib/components/lemmy/moderation/RemoveModal.svelte b/src/lib/components/lemmy/moderation/RemoveModal.svelte index 9d7dbbb4..68c0638a 100644 --- a/src/lib/components/lemmy/moderation/RemoveModal.svelte +++ b/src/lib/components/lemmy/moderation/RemoveModal.svelte @@ -38,7 +38,7 @@ return removalTemplate(preset, { communityLink: `!${fullCommunityName( item!.community.name, - item!.community.actor_id + item!.community.actor_id, )}`, postTitle: item.post.name, reason: reason, @@ -158,14 +158,14 @@ } - - - {purge - ? $t('moderation.removeSubmission.titlePurge') - : removed - ? $t('moderation.removeSubmission.titleRestore') - : $t('moderation.removeSubmission.title')} - + {#if item} - -
{$t('moderation.reportModal.title')}
+ {#if item}
diff --git a/src/lib/components/ui/sidebar/CommunityList.svelte b/src/lib/components/ui/sidebar/CommunityList.svelte index a8d243b8..aab4201c 100644 --- a/src/lib/components/ui/sidebar/CommunityList.svelte +++ b/src/lib/components/ui/sidebar/CommunityList.svelte @@ -2,7 +2,6 @@ import { profile } from '$lib/auth' import Avatar from '$lib/components/ui/Avatar.svelte' import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte' - import { communityLink } from '$lib/lemmy/generic' import { addFavorite } from '$lib/lemmy/item' import { hasFavorite } from '$lib/lemmy/user' import type { Community } from 'lemmy-js-client' @@ -10,13 +9,12 @@ import { Icon, Star, Trash } from 'svelte-hero-icons' import { flip } from 'svelte/animate' import { expoOut } from 'svelte/easing' - import { slide } from 'svelte/transition' export let items: Community[] export let isFavorites = false -{#each items.sort( (a, b) => a.title.localeCompare(b.title) ) as follow (follow.id)} +{#each items.sort( (a, b) => a.title.localeCompare(b.title), ) as follow (follow.id)}
diff --git a/src/routes/profile/(subscriptions)/subscriptions/+page.svelte b/src/routes/profile/(subscriptions)/subscriptions/+page.svelte deleted file mode 100644 index 05a0ac83..00000000 --- a/src/routes/profile/(subscriptions)/subscriptions/+page.svelte +++ /dev/null @@ -1,16 +0,0 @@ - - - - {$t('profile.subscribed')} - - -{#if $profile?.user}{:else} -
- - {$t('toast.userLoading')} -
-{/if}