diff --git a/README.md b/README.md index 002c7fa..d7551dd 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ -![logo](/static/favicon.png) - -# Pieni +# Pieni > A modern, minimal URL shortener diff --git a/src/routes/(app)/me/admin/InvitesView.svelte b/src/routes/(app)/me/admin/InvitesView.svelte index 1789361..3d7a536 100644 --- a/src/routes/(app)/me/admin/InvitesView.svelte +++ b/src/routes/(app)/me/admin/InvitesView.svelte @@ -1,5 +1,5 @@ @@ -23,11 +25,9 @@ - - - - New Invite - + + + New Invite @@ -38,16 +38,12 @@ - - - Role - - - Choose a role - Member - Administrator - - + + + Choose a role + Member + Administrator + Create invite @@ -62,18 +58,19 @@ Token Role - User - Used At - Created At + Created + Used + Used by {#each invites as invite (invite.id)} + {@const link = `${PUBLIC_BASEURL}/auth/signup?token=${invite.id}`} - - {invite.id.substring(0, 15)}... + + {link.slice(0, 12)}...{link.slice(-5)} navigator.clipboard - .writeText(invite.id) + .writeText(link) .then(() => toast.success(`Copied invite token to clipboard!`)) .catch((err) => toast.error(err))} > @@ -91,22 +88,45 @@ {invite.role} - {invite.userId ?? '-'} - {invite.usedAt ? dayjs().to(invite.usedAt) : '-'} {dayjs().to(invite.createdAt)} + {invite.usedAt ? dayjs().to(invite.usedAt) : '-'} + {invite.userId ?? '-'} - - - + - - + + + + + Are you sure? + + Do you want to delete the unused {invite.role} invite link: + {invite.id} + + + + + + + Cancel + + + + Delete invite + + + + + {/each}
{invite.id.substring(0, 15)}...
{link.slice(0, 12)}...{link.slice(-5)}
{invite.id}