feat: use full id in url
This commit is contained in:
parent
008db64987
commit
2ed22678ed
6 changed files with 32 additions and 13 deletions
|
@ -59,7 +59,7 @@ function getFieldNameIcon(fieldName: string) {
|
|||
<div flex flex-col>
|
||||
<ContentRich font-bold text-2xl break-words :content="getDisplayName(account)" :emojis="account.emojis" />
|
||||
<p op50>
|
||||
{{ getAccountHandle(account) }}
|
||||
{{ getShortHandle(account) }}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -86,13 +86,13 @@ function getFieldNameIcon(fieldName: string) {
|
|||
</div>
|
||||
</div>
|
||||
<div flex gap-5>
|
||||
<NuxtLink :to="`/${getAccountHandle(account)}/`" exact-active-class="text-primary">
|
||||
<NuxtLink :to="`/${getFullHandle(account)}/`" exact-active-class="text-primary">
|
||||
<span font-bold>{{ account.statusesCount }}</span> <span op50>Posts</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink :to="`/${getAccountHandle(account)}/following`" exact-active-class="text-primary">
|
||||
<NuxtLink :to="`/${getFullHandle(account)}/following`" exact-active-class="text-primary">
|
||||
<span font-bold>{{ account.followingCount }}</span> <span op50>Following</span>
|
||||
</NuxtLink>
|
||||
<NuxtLink :to="`/${getAccountHandle(account)}/followers`" exact-active-class="text-primary">
|
||||
<NuxtLink :to="`/${getFullHandle(account)}/followers`" exact-active-class="text-primary">
|
||||
<span font-bold>{{ account.followersCount }}</span> <span op50>Followers</span>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
|
|
|
@ -10,15 +10,15 @@ defineProps<{
|
|||
<div bg-base border="~ base" rounded w-80 z-900 overflow-hidden p-4 class="account-hover-card">
|
||||
<AccountInfo :account="account" />
|
||||
<div text-sm flex flex-row text-gray mt-4>
|
||||
<NuxtLink :to="`/${getAccountHandle(account)}/`">
|
||||
<NuxtLink :to="`/${getShortHandle(account)}/`">
|
||||
{{ account.statusesCount }} Posts
|
||||
</NuxtLink>
|
||||
<span flex-1 text-center> • </span>
|
||||
<NuxtLink :to="`/${getAccountHandle(account)}/following`">
|
||||
<NuxtLink :to="`/${getShortHandle(account)}/following`">
|
||||
{{ account.followingCount }} Following
|
||||
</NuxtLink>
|
||||
<span flex-1 text-center> • </span>
|
||||
<NuxtLink :to="`/${getAccountHandle(account)}/followers`">
|
||||
<NuxtLink :to="`/${getShortHandle(account)}/followers`">
|
||||
{{ account.followersCount }} Followers
|
||||
</NuxtLink>
|
||||
</div>
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
<span>Bookmarks</span>
|
||||
</div>
|
||||
</NuxtLink>
|
||||
<NuxtLink :to="`/@${currentUser.account?.username}`" active-class="text-primary" group>
|
||||
<NuxtLink :to="getAccountPath(currentUser.account)" active-class="text-primary" group>
|
||||
<div flex w-fit px5 py2 gap2 items-center transition-100 rounded-10 hover:bg-active>
|
||||
<AccountAvatar :account="currentUser.account" h="1.2em" />
|
||||
<span>Profile</span>
|
||||
|
|
|
@ -41,7 +41,7 @@ const sorted = computed(() => {
|
|||
@click="signout"
|
||||
>
|
||||
<div i-ri:logout-box-line />
|
||||
Sign out {{ getAccountHandle(currentUser.account) }}
|
||||
Sign out {{ getShortHandle(currentUser.account) }}
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue