|
|
@ -11,153 +11,157 @@ await loadProfile(route.params.username as string) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<NuxtLayout> |
|
|
|
<div> |
|
|
|
<a-layout class="h-[75vh] overflow-y-auto flex"> |
|
|
|
<NuxtLayout> |
|
|
|
<a-layout-sider :collapsed="false" width="320" class="h-max px-5" :trigger="null" collapsible theme="light"> |
|
|
|
<a-layout class="h-[75vh] overflow-y-auto flex"> |
|
|
|
<div class="mx-2"> |
|
|
|
<a-layout-sider :collapsed="false" width="320" class="h-max px-5" :trigger="null" collapsible theme="light"> |
|
|
|
<div class="my-3"> |
|
|
|
<div class="mx-2"> |
|
|
|
<a-avatar v-if="profile.avatar" :size="150" :src="profile.avatar" /> |
|
|
|
<div class="my-3"> |
|
|
|
<a-avatar v-else :size="150"> |
|
|
|
<a-avatar v-if="profile.avatar" :size="150" :src="profile.avatar" /> |
|
|
|
<template #icon> |
|
|
|
<a-avatar v-else :size="150"> |
|
|
|
<MdiAccount class="w-full h-full p-[15px]" /> |
|
|
|
<template #icon> |
|
|
|
</template> |
|
|
|
<MdiAccount class="w-full h-full p-[15px]" /> |
|
|
|
</a-avatar> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</a-avatar> |
|
|
|
<div class="nc-profile-display-name text-[30px] my-2 font-bold"> |
|
|
|
</div> |
|
|
|
{{ profile.display_name }} |
|
|
|
<div class="nc-profile-display-name text-[30px] my-2 font-bold"> |
|
|
|
</div> |
|
|
|
{{ profile.display_name }} |
|
|
|
|
|
|
|
</div> |
|
|
|
<div class="nc-profile-user-name text-[18px] my-2">@{{ profile.user_name }}</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-profile-bio text-[15px] my-4"> |
|
|
|
<div class="nc-profile-user-name text-[18px] my-2">@{{ profile.user_name }}</div> |
|
|
|
{{ profile.bio }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-profile-follower my-2"> |
|
|
|
<div class="nc-profile-bio text-[15px] my-4"> |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
{{ profile.bio }} |
|
|
|
<MdiAccountSupervisorOutline class="text-lg" /> |
|
|
|
|
|
|
|
{{ profile.followerCount }} followers.{{ profile.followingCount }} Following |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="profile.id !== user.id" class="nc-profile-follow-btn my-4"> |
|
|
|
<div class="nc-profile-follower my-2"> |
|
|
|
<a-button |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
v-if="!isFollowing" |
|
|
|
<MdiAccountSupervisorOutline class="text-lg" /> |
|
|
|
class="!bg-primary !border-none w-full text-center !text-white rounded" |
|
|
|
{{ profile.followerCount }} followers.{{ profile.followingCount }} Following |
|
|
|
size="large" |
|
|
|
</div> |
|
|
|
@click="followUser(profile.id)" |
|
|
|
</div> |
|
|
|
> |
|
|
|
|
|
|
|
Follow |
|
|
|
|
|
|
|
</a-button> |
|
|
|
|
|
|
|
<a-button |
|
|
|
|
|
|
|
v-else |
|
|
|
|
|
|
|
class="!bg-primary !border-none w-full text-center !text-white rounded" |
|
|
|
|
|
|
|
size="large" |
|
|
|
|
|
|
|
@click="unfollowUser(profile.id)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Unfollow |
|
|
|
|
|
|
|
</a-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-profile-edit-btn my-4"> |
|
|
|
<div v-if="profile.id !== user.id" class="nc-profile-follow-btn my-4"> |
|
|
|
<a-button class="!bg-primary !border-none w-full text-center !text-white rounded" size="large"> |
|
|
|
<a-button |
|
|
|
Edit Profile |
|
|
|
v-if="!isFollowing" |
|
|
|
</a-button> |
|
|
|
class="!bg-primary !border-none w-full text-center !text-white rounded" |
|
|
|
</div> |
|
|
|
size="large" |
|
|
|
|
|
|
|
@click="followUser(profile.id)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Follow |
|
|
|
|
|
|
|
</a-button> |
|
|
|
|
|
|
|
<a-button |
|
|
|
|
|
|
|
v-else |
|
|
|
|
|
|
|
class="!bg-primary !border-none w-full text-center !text-white rounded" |
|
|
|
|
|
|
|
size="large" |
|
|
|
|
|
|
|
@click="unfollowUser(profile.id)" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Unfollow |
|
|
|
|
|
|
|
</a-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div v-if="profile.location" class="nc-profile-location my-2"> |
|
|
|
<div class="nc-profile-edit-btn my-4"> |
|
|
|
<div class="flex items-center mr-4"><MdiMapMarkerOutline class="text-lg mr-2" /> {{ profile.location }}</div> |
|
|
|
<a-button class="!bg-primary !border-none w-full text-center !text-white rounded" size="large"> |
|
|
|
</div> |
|
|
|
Edit Profile |
|
|
|
|
|
|
|
</a-button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div v-if="profile.website" class="nc-profile-website my-2"> |
|
|
|
<div v-if="profile.location" class="nc-profile-location my-2"> |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
<div class="flex items-center mr-4"><MdiMapMarkerOutline class="text-lg mr-2" /> {{ profile.location }}</div> |
|
|
|
<MdiLinkVariant class="text-lg mr-2" /> |
|
|
|
|
|
|
|
<a class="!no-underline" :href="profile.website" rel="noopener noreferrer" target="_blank">{{ profile.website }}</a> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="nc-profile-statistics my-10"> |
|
|
|
<div v-if="profile.website" class="nc-profile-website my-2"> |
|
|
|
<div class="text-[20px] font-bold">Statistics</div> |
|
|
|
|
|
|
|
<div class="mt-5"> |
|
|
|
|
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
<MdiCircleMedium class="text-lg text-[#4E2BDC]" /> |
|
|
|
<MdiLinkVariant class="text-lg mr-2" /> |
|
|
|
<span class="text-[16px]">Database</span> |
|
|
|
<a class="!no-underline" :href="profile.website" rel="noopener noreferrer" target="_blank">{{ |
|
|
|
</div> |
|
|
|
profile.website |
|
|
|
<div class="mt-2"> |
|
|
|
}}</a> |
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Columns </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x5</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Views </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x21</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Tables </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x158</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Databases </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x9</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="mt-5"> |
|
|
|
|
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
<div class="nc-profile-statistics my-10"> |
|
|
|
<MdiCircleMedium class="text-lg text-[#E9ED2A]" /> |
|
|
|
<div class="text-[20px] font-bold">Statistics</div> |
|
|
|
<span class="text-[16px]">Automations</span> |
|
|
|
<div class="mt-5"> |
|
|
|
</div> |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
<div class="mt-2"> |
|
|
|
<MdiCircleMedium class="text-lg text-[#4E2BDC]" /> |
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
<span class="text-[16px]">Database</span> |
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Columns </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x5</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
<div class="mt-2"> |
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Views </a-button> |
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
<span class="ml-2 text-[12px]">x21</span> |
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Columns </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x5</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Views </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x21</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Tables </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x158</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Databases </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x9</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
</div> |
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Tables </a-button> |
|
|
|
<div class="mt-5"> |
|
|
|
<span class="ml-2 text-[12px]">x158</span> |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
|
|
|
|
<MdiCircleMedium class="text-lg text-[#E9ED2A]" /> |
|
|
|
|
|
|
|
<span class="text-[16px]">Automations</span> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
<div class="mt-2"> |
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Databases </a-button> |
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
<span class="ml-2 text-[12px]">x9</span> |
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Columns </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x5</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Views </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x21</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Tables </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x158</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="nc-profile-statistics-badge inline-block m-1"> |
|
|
|
|
|
|
|
<a-button class="!rounded-2xl !bg-[#F2F4F7]" size="small"> Databases </a-button> |
|
|
|
|
|
|
|
<span class="ml-2 text-[12px]">x9</span> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</a-layout-sider> |
|
|
|
</a-layout-sider> |
|
|
|
<a-layout-content class="h-max px-5 py-2 scrollbar-thumb-gray-500"> |
|
|
|
<a-layout-content class="h-max px-5 py-2 scrollbar-thumb-gray-500"> |
|
|
|
<a-tabs> |
|
|
|
<a-tabs> |
|
|
|
<a-tab-pane key="overview" class="w-full"> |
|
|
|
<a-tab-pane key="overview" class="w-full"> |
|
|
|
<template #tab> |
|
|
|
<template #tab> |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
<MdiBookOpenBlankVariant class="text-lg mr-2" /> |
|
|
|
<MdiBookOpenBlankVariant class="text-lg mr-2" /> |
|
|
|
Overview |
|
|
|
Overview |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<LazyProfileOverview /> |
|
|
|
<LazyProfileOverview /> |
|
|
|
</a-tab-pane> |
|
|
|
</a-tab-pane> |
|
|
|
<a-tab-pane key="stars" class="w-full"> |
|
|
|
<a-tab-pane key="stars" class="w-full"> |
|
|
|
<template #tab> |
|
|
|
<template #tab> |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
<div class="flex items-center mr-4"> |
|
|
|
<MdiStarOutline class="text-lg mr-2" /> |
|
|
|
<MdiStarOutline class="text-lg mr-2" /> |
|
|
|
<span class="mr-2">Stars</span> |
|
|
|
<span class="mr-2">Stars</span> |
|
|
|
<a-badge |
|
|
|
<a-badge |
|
|
|
count="25" |
|
|
|
count="25" |
|
|
|
:number-style="{ |
|
|
|
:number-style="{ |
|
|
|
backgroundColor: '#B5B5B7', |
|
|
|
backgroundColor: '#B5B5B7', |
|
|
|
color: '#FFFFFF', |
|
|
|
color: '#FFFFFF', |
|
|
|
}" |
|
|
|
}" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<LazyProfileStars /> |
|
|
|
<LazyProfileStars /> |
|
|
|
</a-tab-pane> |
|
|
|
</a-tab-pane> |
|
|
|
</a-tabs> |
|
|
|
</a-tabs> |
|
|
|
</a-layout-content> |
|
|
|
</a-layout-content> |
|
|
|
</a-layout> |
|
|
|
</a-layout> |
|
|
|
</NuxtLayout> |
|
|
|
</NuxtLayout> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|