update: mono-svelte
This commit is contained in:
1 parent
0cdb91b20b
commit
0179859427
8 files changed
+40
-52
No files matched your search
@@ -93,21 +93,29 @@
|
||||
</Subscribe>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-row gap-3 items-center">
|
||||
<LabelStat
|
||||
content={community.counts.posts.toString()}
|
||||
formatted
|
||||
label="Posts"
|
||||
/>
|
||||
<LabelStat
|
||||
content={community.counts.subscribers.toString()}
|
||||
formatted
|
||||
label="Members"
|
||||
/>
|
||||
<LabelStat
|
||||
content={community.counts.comments.toString()}
|
||||
formatted
|
||||
label="Comments"
|
||||
/>
|
||||
</div>
|
||||
{#if community.counts}
|
||||
<div class="flex flex-row gap-3 items-center">
|
||||
{#if community.counts.posts}
|
||||
<LabelStat
|
||||
content={community.counts.posts.toString()}
|
||||
formatted
|
||||
label="Posts"
|
||||
/>
|
||||
{/if}
|
||||
{#if community.counts.subscribers}
|
||||
<LabelStat
|
||||
content={community.counts.subscribers.toString()}
|
||||
formatted
|
||||
label="Members"
|
||||
/>
|
||||
{/if}
|
||||
{#if community.counts.comments}
|
||||
<LabelStat
|
||||
content={community.counts.comments.toString()}
|
||||
formatted
|
||||
label="Comments"
|
||||
/>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
@@ -100,10 +100,10 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<Modal bind:open class="max-w-xl w-full">
|
||||
<h1 slot="title">
|
||||
{banned ? $t('moderation.ban.unbanning') : $t('moderation.ban.banning')}
|
||||
</h1>
|
||||
<Modal
|
||||
bind:open
|
||||
title={banned ? $t('moderation.ban.unbanning') : $t('moderation.ban.banning')}
|
||||
>
|
||||
{#if item}
|
||||
<form class="flex flex-col gap-4" on:submit|preventDefault={submit}>
|
||||
<div class="flex items-center gap-1">
|
||||
|
||||
@@ -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 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<Modal bind:open>
|
||||
<span slot="title">
|
||||
{purge
|
||||
? $t('moderation.removeSubmission.titlePurge')
|
||||
: removed
|
||||
? $t('moderation.removeSubmission.titleRestore')
|
||||
: $t('moderation.removeSubmission.title')}
|
||||
</span>
|
||||
<Modal
|
||||
bind:open
|
||||
title={purge
|
||||
? $t('moderation.removeSubmission.titlePurge')
|
||||
: removed
|
||||
? $t('moderation.removeSubmission.titleRestore')
|
||||
: $t('moderation.removeSubmission.title')}
|
||||
>
|
||||
{#if item}
|
||||
<form
|
||||
on:submit|preventDefault={remove}
|
||||
|
||||
@@ -60,8 +60,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<Modal bind:open>
|
||||
<Header slot="title">{$t('moderation.reportModal.title')}</Header>
|
||||
<Modal bind:open title={$t('moderation.reportModal.title')}>
|
||||
<form class="flex flex-col gap-4" on:submit|preventDefault={report}>
|
||||
{#if item}
|
||||
<div class="pointer-events-none list-none">
|
||||
|
||||
@@ -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
|
||||
</script>
|
||||
|
||||
{#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)}
|
||||
<div
|
||||
class="inline-flex w-full items-center pl-3 hover:bg-slate-100 hover:dark:bg-zinc-800
|
||||
transition-colors rounded-lg"
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<slot />
|
||||
@@ -1,16 +0,0 @@
|
||||
<script lang="ts">
|
||||
import { profile } from '$lib/auth'
|
||||
import { t } from '$lib/translations'
|
||||
import { Spinner } from 'mono-svelte'
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<title>{$t('profile.subscribed')}</title>
|
||||
</svelte:head>
|
||||
|
||||
{#if $profile?.user}{:else}
|
||||
<div class="h-full w-full flex flex-col justify-center items-center">
|
||||
<Spinner width={40} />
|
||||
<span>{$t('toast.userLoading')}</span>
|
||||
</div>
|
||||
{/if}
|
||||
Reference in new issue
Block a user