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>
|
</Subscribe>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-row gap-3 items-center">
|
{#if community.counts}
|
||||||
<LabelStat
|
<div class="flex flex-row gap-3 items-center">
|
||||||
content={community.counts.posts.toString()}
|
{#if community.counts.posts}
|
||||||
formatted
|
<LabelStat
|
||||||
label="Posts"
|
content={community.counts.posts.toString()}
|
||||||
/>
|
formatted
|
||||||
<LabelStat
|
label="Posts"
|
||||||
content={community.counts.subscribers.toString()}
|
/>
|
||||||
formatted
|
{/if}
|
||||||
label="Members"
|
{#if community.counts.subscribers}
|
||||||
/>
|
<LabelStat
|
||||||
<LabelStat
|
content={community.counts.subscribers.toString()}
|
||||||
content={community.counts.comments.toString()}
|
formatted
|
||||||
formatted
|
label="Members"
|
||||||
label="Comments"
|
/>
|
||||||
/>
|
{/if}
|
||||||
</div>
|
{#if community.counts.comments}
|
||||||
|
<LabelStat
|
||||||
|
content={community.counts.comments.toString()}
|
||||||
|
formatted
|
||||||
|
label="Comments"
|
||||||
|
/>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
@@ -100,10 +100,10 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Modal bind:open class="max-w-xl w-full">
|
<Modal
|
||||||
<h1 slot="title">
|
bind:open
|
||||||
{banned ? $t('moderation.ban.unbanning') : $t('moderation.ban.banning')}
|
title={banned ? $t('moderation.ban.unbanning') : $t('moderation.ban.banning')}
|
||||||
</h1>
|
>
|
||||||
{#if item}
|
{#if item}
|
||||||
<form class="flex flex-col gap-4" on:submit|preventDefault={submit}>
|
<form class="flex flex-col gap-4" on:submit|preventDefault={submit}>
|
||||||
<div class="flex items-center gap-1">
|
<div class="flex items-center gap-1">
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
return removalTemplate(preset, {
|
return removalTemplate(preset, {
|
||||||
communityLink: `!${fullCommunityName(
|
communityLink: `!${fullCommunityName(
|
||||||
item!.community.name,
|
item!.community.name,
|
||||||
item!.community.actor_id
|
item!.community.actor_id,
|
||||||
)}`,
|
)}`,
|
||||||
postTitle: item.post.name,
|
postTitle: item.post.name,
|
||||||
reason: reason,
|
reason: reason,
|
||||||
@@ -158,14 +158,14 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Modal bind:open>
|
<Modal
|
||||||
<span slot="title">
|
bind:open
|
||||||
{purge
|
title={purge
|
||||||
? $t('moderation.removeSubmission.titlePurge')
|
? $t('moderation.removeSubmission.titlePurge')
|
||||||
: removed
|
: removed
|
||||||
? $t('moderation.removeSubmission.titleRestore')
|
? $t('moderation.removeSubmission.titleRestore')
|
||||||
: $t('moderation.removeSubmission.title')}
|
: $t('moderation.removeSubmission.title')}
|
||||||
</span>
|
>
|
||||||
{#if item}
|
{#if item}
|
||||||
<form
|
<form
|
||||||
on:submit|preventDefault={remove}
|
on:submit|preventDefault={remove}
|
||||||
|
|||||||
@@ -60,8 +60,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Modal bind:open>
|
<Modal bind:open title={$t('moderation.reportModal.title')}>
|
||||||
<Header slot="title">{$t('moderation.reportModal.title')}</Header>
|
|
||||||
<form class="flex flex-col gap-4" on:submit|preventDefault={report}>
|
<form class="flex flex-col gap-4" on:submit|preventDefault={report}>
|
||||||
{#if item}
|
{#if item}
|
||||||
<div class="pointer-events-none list-none">
|
<div class="pointer-events-none list-none">
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
import { profile } from '$lib/auth'
|
import { profile } from '$lib/auth'
|
||||||
import Avatar from '$lib/components/ui/Avatar.svelte'
|
import Avatar from '$lib/components/ui/Avatar.svelte'
|
||||||
import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte'
|
import SidebarButton from '$lib/components/ui/sidebar/SidebarButton.svelte'
|
||||||
import { communityLink } from '$lib/lemmy/generic'
|
|
||||||
import { addFavorite } from '$lib/lemmy/item'
|
import { addFavorite } from '$lib/lemmy/item'
|
||||||
import { hasFavorite } from '$lib/lemmy/user'
|
import { hasFavorite } from '$lib/lemmy/user'
|
||||||
import type { Community } from 'lemmy-js-client'
|
import type { Community } from 'lemmy-js-client'
|
||||||
@@ -10,13 +9,12 @@
|
|||||||
import { Icon, Star, Trash } from 'svelte-hero-icons'
|
import { Icon, Star, Trash } from 'svelte-hero-icons'
|
||||||
import { flip } from 'svelte/animate'
|
import { flip } from 'svelte/animate'
|
||||||
import { expoOut } from 'svelte/easing'
|
import { expoOut } from 'svelte/easing'
|
||||||
import { slide } from 'svelte/transition'
|
|
||||||
|
|
||||||
export let items: Community[]
|
export let items: Community[]
|
||||||
export let isFavorites = false
|
export let isFavorites = false
|
||||||
</script>
|
</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
|
<div
|
||||||
class="inline-flex w-full items-center pl-3 hover:bg-slate-100 hover:dark:bg-zinc-800
|
class="inline-flex w-full items-center pl-3 hover:bg-slate-100 hover:dark:bg-zinc-800
|
||||||
transition-colors rounded-lg"
|
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