Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions app/components/PackageDependencies.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const sortedOptionalDependencies = computed(() => {
>
{{ $t('package.dependencies.title', { count: sortedDependencies.length }) }}
<span
class="i-carbon-link w-3 h-3 block opacity-0 group-hover:opacity-100 transition-opacity duration-200"
class="i-carbon:link w-3 h-3 block opacity-0 group-hover:opacity-100 transition-opacity duration-200"
aria-hidden="true"
/>
</a>
Expand All @@ -89,7 +89,7 @@ const sortedOptionalDependencies = computed(() => {
<li
v-for="[dep, version] in sortedDependencies.slice(0, depsExpanded ? undefined : 10)"
:key="dep"
class="flex items-center justify-between py-1 text-sm gap-2"
class="flex items-center justify-start py-1 text-sm gap-2"
>
<NuxtLink
:to="{ name: 'package', params: { package: dep.split('/') } }"
Expand All @@ -105,8 +105,9 @@ const sortedOptionalDependencies = computed(() => {
:title="getOutdatedTooltip(outdatedDeps[dep])"
aria-hidden="true"
>
<span class="i-carbon-warning-alt w-3 h-3 block" />
<span class="i-carbon:warning-alt w-3 h-3 block" />
</span>
<span aria-hidden="true" class="flex-shrink-1 flex-grow-1" />
<NuxtLink
v-if="getVulnerableDepInfo(dep)"
:to="{
Expand All @@ -117,12 +118,12 @@ const sortedOptionalDependencies = computed(() => {
:class="SEVERITY_TEXT_COLORS[getHighestSeverity(getVulnerableDepInfo(dep)!.counts)]"
:title="`${getVulnerableDepInfo(dep)!.counts.total} vulnerabilities`"
>
<span class="i-carbon-security w-3 h-3 block" aria-hidden="true" />
<span class="i-carbon:security w-3 h-3 block" aria-hidden="true" />
<span class="sr-only">{{ $t('package.dependencies.view_vulnerabilities') }}</span>
</NuxtLink>
<NuxtLink
:to="{ name: 'package', params: { package: [...dep.split('/'), 'v', version] } }"
class="font-mono text-xs text-right truncate"
class="font-mono text-xs text-end truncate"
:class="getVersionClass(outdatedDeps[dep])"
:title="outdatedDeps[dep] ? getOutdatedTooltip(outdatedDeps[dep]) : version"
>
Expand Down Expand Up @@ -164,7 +165,7 @@ const sortedOptionalDependencies = computed(() => {
>
{{ $t('package.peer_dependencies.title', { count: sortedPeerDependencies.length }) }}
<span
class="i-carbon-link w-3 h-3 block opacity-0 group-hover:opacity-100 transition-opacity duration-200"
class="i-carbon:link w-3 h-3 block opacity-0 group-hover:opacity-100 transition-opacity duration-200"
aria-hidden="true"
/>
</a>
Expand All @@ -176,7 +177,7 @@ const sortedOptionalDependencies = computed(() => {
<li
v-for="peer in sortedPeerDependencies.slice(0, peerDepsExpanded ? undefined : 10)"
:key="peer.name"
class="flex items-center justify-between py-1 text-sm gap-2"
class="flex items-center justify-start py-1 text-sm gap-2"
>
<div class="flex items-center gap-2 min-w-0">
<NuxtLink
Expand All @@ -193,12 +194,13 @@ const sortedOptionalDependencies = computed(() => {
{{ $t('package.dependencies.optional') }}
</span>
</div>
<span aria-hidden="true" class="flex-shrink-1 flex-grow-1" />
<NuxtLink
:to="{
name: 'package',
params: { package: [...peer.name.split('/'), 'v', peer.version] },
}"
class="font-mono text-xs text-fg-subtle max-w-[40%] text-right truncate"
class="font-mono text-xs text-fg-subtle max-w-[40%] text-end truncate"
:title="peer.version"
>
{{ peer.version }}
Expand Down Expand Up @@ -234,7 +236,7 @@ const sortedOptionalDependencies = computed(() => {
$t('package.optional_dependencies.title', { count: sortedOptionalDependencies.length })
}}
<span
class="i-carbon-link w-3 h-3 block opacity-0 group-hover:opacity-100 transition-opacity duration-200"
class="i-carbon:link w-3 h-3 block opacity-0 group-hover:opacity-100 transition-opacity duration-200"
aria-hidden="true"
/>
</a>
Expand All @@ -249,17 +251,18 @@ const sortedOptionalDependencies = computed(() => {
optionalDepsExpanded ? undefined : 10,
)"
:key="dep"
class="flex items-center justify-between py-1 text-sm gap-2"
class="flex items-center justify-start py-1 text-sm gap-2"
>
<NuxtLink
:to="{ name: 'package', params: { package: dep.split('/') } }"
class="font-mono text-fg-muted hover:text-fg transition-colors duration-200 truncate min-w-0"
>
{{ dep }}
</NuxtLink>
<span aria-hidden="true" class="flex-shrink-1 flex-grow-1" />
<NuxtLink
:to="{ name: 'package', params: { package: [...dep.split('/'), 'v', version] } }"
class="font-mono text-xs text-fg-subtle max-w-[50%] text-right truncate"
class="font-mono text-xs text-fg-subtle max-w-[50%] text-end truncate"
:title="version"
>
{{ version }}
Expand Down
Loading