@@ -81,12 +81,9 @@ const sortedOptionalDependencies = computed(() => {
8181 :key =" dep"
8282 class =" flex items-center justify-between py-1 text-sm gap-2"
8383 >
84- <NuxtLink
85- :to =" { name: 'package', params: { package: dep.split('/') } }"
86- class =" font-mono text-fg-muted hover:text-fg transition-colors duration-200 truncate min-w-0 flex-1"
87- >
84+ <LinkBase :to =" { name: 'package', params: { package: dep.split('/') } }" >
8885 {{ dep }}
89- </NuxtLink >
86+ </LinkBase >
9087 <span class =" flex items-center gap-1 max-w-[40%]" >
9188 <span
9289 v-if =" outdatedDeps[dep]"
@@ -97,7 +94,7 @@ const sortedOptionalDependencies = computed(() => {
9794 >
9895 <span class =" i-carbon:warning-alt w-3 h-3" />
9996 </span >
100- <NuxtLink
97+ <LinkBase
10198 v-if =" getVulnerableDepInfo(dep)"
10299 :to =" {
103100 name: 'package',
@@ -106,33 +103,33 @@ const sortedOptionalDependencies = computed(() => {
106103 class =" shrink-0"
107104 :class =" SEVERITY_TEXT_COLORS[getHighestSeverity(getVulnerableDepInfo(dep)!.counts)]"
108105 :title =" `${getVulnerableDepInfo(dep)!.counts.total} vulnerabilities`"
106+ iconclass =" i-carbon:security"
109107 >
110- <span class =" i-carbon:security w-3 h-3" aria-hidden =" true" />
111108 <span class =" sr-only" >{{ $t('package.dependencies.view_vulnerabilities') }}</span >
112- </NuxtLink >
113- <NuxtLink
109+ </LinkBase >
110+ <LinkBase
114111 v-if =" getDeprecatedDepInfo(dep)"
115112 :to =" {
116113 name: 'package',
117114 params: { package: [...dep.split('/'), 'v', getDeprecatedDepInfo(dep)!.version] },
118115 }"
119116 class =" shrink-0 text-purple-500"
120117 :title =" getDeprecatedDepInfo(dep)!.message"
118+ iconclass =" i-carbon:warning-hex"
121119 >
122- <span class =" i-carbon-warning-hex w-3 h-3" aria-hidden =" true" />
123120 <span class =" sr-only" >{{ $t('package.deprecated.label') }}</span >
124- </NuxtLink >
125- <NuxtLink
121+ </LinkBase >
122+ <LinkBase
126123 :to =" {
127124 name: 'package',
128125 params: { package: [...dep.split('/'), 'v', version] },
129126 }"
130- class =" font-mono text-xs text-end truncate"
127+ class =" truncate"
131128 :class =" getVersionClass(outdatedDeps[dep])"
132129 :title =" outdatedDeps[dep] ? getOutdatedTooltip(outdatedDeps[dep], $t) : version"
133130 >
134131 {{ version }}
135- </NuxtLink >
132+ </LinkBase >
136133 <span v-if =" outdatedDeps[dep]" class =" sr-only" >
137134 ({{ getOutdatedTooltip(outdatedDeps[dep], $t) }})
138135 </span >
@@ -173,33 +170,29 @@ const sortedOptionalDependencies = computed(() => {
173170 class =" flex items-center justify-between py-1 text-sm gap-1 min-w-0"
174171 >
175172 <div class =" flex items-center gap-1 min-w-0 flex-1" >
176- <NuxtLink
173+ <LinkBase
177174 :to =" {
178175 name: 'package',
179176 params: { package: peer.name.split('/') },
180177 }"
181- class =" font-mono text-fg-muted hover:text-fg transition-colors duration-200 truncate"
178+ class =" truncate"
182179 >
183180 {{ peer.name }}
184- </NuxtLink >
185- <span
186- v-if =" peer.optional"
187- class =" px-1 py-0.5 font-mono text-[10px] text-fg-subtle bg-bg-muted border border-border rounded shrink-0"
188- :title =" $t('package.dependencies.optional')"
189- >
181+ </LinkBase >
182+ <TagStatic v-if =" peer.optional" :title =" $t('package.dependencies.optional')" >
190183 {{ $t('package.dependencies.optional') }}
191- </span >
184+ </TagStatic >
192185 </div >
193- <NuxtLink
186+ <LinkBase
194187 :to =" {
195188 name: 'package',
196189 params: { package: [...peer.name.split('/'), 'v', peer.version] },
197190 }"
198- class =" font-mono text-xs text-fg-subtle max-w-[40%] truncate"
191+ class =" truncate"
199192 :title =" peer.version"
200193 >
201194 {{ peer.version }}
202- </NuxtLink >
195+ </LinkBase >
203196 </li >
204197 </ul >
205198 <button
@@ -238,28 +231,25 @@ const sortedOptionalDependencies = computed(() => {
238231 :key =" dep"
239232 class =" flex items-center justify-between py-1 text-sm gap-2"
240233 >
241- <NuxtLink
242- :to =" { name: 'package', params: { package: dep.split('/') } }"
243- class =" font-mono text-fg-muted hover:text-fg transition-colors duration-200 truncate min-w-0 flex-1"
244- >
234+ <LinkBase :to =" { name: 'package', params: { package: dep.split('/') } }" class =" truncate" >
245235 {{ dep }}
246- </NuxtLink >
247- <NuxtLink
236+ </LinkBase >
237+ <LinkBase
248238 :to =" {
249239 name: 'package',
250240 params: { package: [...dep.split('/'), 'v', version] },
251241 }"
252- class =" font-mono text-xs text-fg-subtle max-w-[40%] text-end truncate"
242+ class =" truncate"
253243 :title =" version"
254244 >
255245 {{ version }}
256- </NuxtLink >
246+ </LinkBase >
257247 </li >
258248 </ul >
259249 <button
260250 v-if =" sortedOptionalDependencies.length > 10 && !optionalDepsExpanded"
261251 type =" button"
262- class =" mt-2 font-mono text-xs text-fg-muted hover:text-fg transition-colors duration-200 rounded focus-visible:outline-accent/70 "
252+ class =" mt-2 truncate "
263253 @click =" optionalDepsExpanded = true"
264254 >
265255 {{
0 commit comments