feat: start checks

This commit is contained in:
2025-03-16 17:55:38 +00:00
parent 08d6a2a2fe
commit 8d55e92fc9
26 changed files with 456 additions and 211 deletions

View File

@ -9,6 +9,8 @@ const props = defineProps({
showNamespace: Boolean,
showVersion: Boolean,
showCategories: Boolean,
showDescription: Boolean,
showIcon: Boolean,
});
const iconSrc = () => {
@ -26,12 +28,13 @@ const iconSrc = () => {
<template>
<img
v-if="showIcon"
:src="iconSrc()"
class="self-center rounded-sm"
width="32px"
height="32px"
/>
<label class="m-3 align-middle text grow z-5 h-50px" for="switch">
<label class="m-3 align-middle text grow z-5 h-50px">
<div>
<span class="text-lg">
{{ pkg?.name ?? 'Untitled' }}
@ -48,6 +51,18 @@ const iconSrc = () => {
class="pi pi-exclamation-triangle ml-1 text-red-400"
>
</span>
<span
v-if="pkg?.loc?.kind === 'Hook'"
v-tooltip="'Hook'"
class="pi pi-wrench ml-1 text-blue-400"
>
</span>
<span
v-if="pkg?.loc?.kind === 'IO'"
v-tooltip="'IO'"
class="pi pi-wrench ml-1 text-green-400"
>
</span>
<span
v-if="showNamespace && pkg?.namespace"
class="text-sm opacity-75"
@ -69,8 +84,8 @@ const iconSrc = () => {
>
</span>
</div>
<div class="text-sm opacity-75">
{{ pkg?.description ?? 'No description' }}
<div v-if="showDescription" class="text-sm opacity-75">
{{ pkg?.description || 'No description' }}
</div>
<div v-if="showCategories" class="mt-1 flex gap-1">
<span class="text-xs" v-for="c in pkg?.rmt?.categories"