File tree Expand file tree Collapse file tree 1 file changed +1
-27
lines changed
Expand file tree Collapse file tree 1 file changed +1
-27
lines changed Original file line number Diff line number Diff line change @@ -3,16 +3,10 @@ const {
33 handle,
44 displayName = ' ' ,
55 description = ' ' ,
6- avatar = ' ' ,
7- packageCount = 0 ,
8- orgCount = 0 ,
96} = defineProps <{
107 handle: string
118 displayName? : string
129 description? : string
13- avatar? : string
14- packageCount? : number
15- orgCount? : number
1610}>()
1711
1812const getInitials = (name : string ) =>
@@ -23,13 +17,6 @@ const getInitials = (name: string) =>
2317 .join (' ' )
2418 .toUpperCase ()
2519 .slice (0 , 2 )
26-
27- const stats = computed (() => {
28- const items: string [] = []
29- if (packageCount > 0 ) items .push (` ${packageCount } package${packageCount !== 1 ? ' s' : ' ' } ` )
30- if (orgCount > 0 ) items .push (` ${orgCount } org${orgCount !== 1 ? ' s' : ' ' } ` )
31- return items .join (' · ' )
32- })
3320 </script >
3421
3522<template >
@@ -43,15 +30,7 @@ const stats = computed(() => {
4330 class =" flex items-center justify-center rounded-full bg-bg-muted overflow-hidden shrink-0"
4431 :style =" { width: '96px', height: '96px' }"
4532 >
46- <img
47- v-if =" avatar"
48- :src =" avatar"
49- :alt =" handle"
50- width =" 96"
51- height =" 96"
52- class =" w-full h-full object-cover"
53- />
54- <span v-else class =" text-8 text-fg-muted font-medium" >
33+ <span class =" text-8 text-fg-muted font-medium" >
5534 {{ getInitials(displayName || handle) }}
5635 </span >
5736 </span >
@@ -76,11 +55,6 @@ const stats = computed(() => {
7655 >
7756 {{ description }}
7857 </div >
79-
80- <!-- Stats -->
81- <div v-if =" stats" class =" text-3xl text-fg-muted" >
82- {{ stats }}
83- </div >
8458 </div >
8559 </OgLayout >
8660</template >
You can’t perform that action at this time.
0 commit comments