feat(frontend): show date of user join (#2901)

* feat(frontend): show date of user join

Shows and formats the date when the user joined, on hover. Can add `cursor-help` if wanted.

Resolves #2243

* chore(frontend): lint
This commit is contained in:
Erb3 2024-11-08 03:25:02 +01:00 committed by GitHub
parent 4bcdb3f495
commit 33ad04d036
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,15 @@
{{ formatCompactNumber(sumDownloads) }}
downloads
</div>
<div class="flex items-center gap-2 font-semibold">
<div
v-tooltip="
formatMessage(commonMessages.dateAtTimeTooltip, {
date: new Date(user.created),
time: new Date(user.created),
})
"
class="flex items-center gap-2 font-semibold"
>
<CalendarIcon class="h-6 w-6 text-secondary" />
Joined
{{ formatRelativeTime(user.created) }}