feat: human readable numbers for counts

This commit is contained in:
Daniel Roe 2022-11-25 21:57:40 +00:00
parent 64e052d317
commit 94cd7c72f6
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55
3 changed files with 21 additions and 6 deletions

View file

@ -11,15 +11,15 @@ defineProps<{
<AccountInfo :account="account" />
<div text-sm flex flex-row text-gray mt-4>
<NuxtLink :to="`/${getShortHandle(account)}/`">
{{ account.statusesCount }} Posts
{{ formattedNumber(account.statusesCount) }} Posts
</NuxtLink>
<span flex-1 text-center> </span>
<NuxtLink :to="`/${getShortHandle(account)}/following`">
{{ account.followingCount }} Following
{{ humanReadableNumber(account.followingCount) }} Following
</NuxtLink>
<span flex-1 text-center> </span>
<NuxtLink :to="`/${getShortHandle(account)}/followers`">
{{ account.followersCount }} Followers
{{ humanReadableNumber(account.followersCount) }} Followers
</NuxtLink>
</div>
<ContentRich text-4 text-gray :content="account.note" :emojis="account.emojis" />