Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | 7x 7x 7x | <template> <ul class="flex flex-col"> <li v-for="row in rows" :key="row.id" class="flex items-center gap-3 border-t border-default py-2 first:border-t-0" > <UIcon name="i-lucide-check" class="tone-good size-4 shrink-0" /> <span class="flex-1 font-mono text-xs text-muted uppercase"> {{ $t(`method.prove.checks.${row.id}.area`) }} </span> <span class="text-sm text-highlighted">{{ row.figure }}</span> </li> </ul> </template> <script setup lang="ts"> interface Props { /** Spec files across the repo; `null` when nothing was collected. */ specs: number | null; rules: { enabled: number; inHouse: number } | null; } const { specs, rules } = defineProps<Props>(); const { t } = useI18n(); const rows = computed(() => [ { id: "tests", figure: specs ? t("checksPreview.tests.count", { count: specs }) : t("checksPreview.tests.none"), }, { id: "accessibility", figure: t("checksPreview.accessibility") }, { id: "lint", figure: rules ? t("checksPreview.lint.count", { count: rules.enabled }) : t("checksPreview.lint.none"), }, ]); </script> |