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 | 10x 2x 10x 8x 2x 2x 10x | <template>
<WidgetPanel :title="$t('healthCoverageReport.title')" :meta="$t('healthCoverageReport.meta')">
<template v-if="copied">
<div class="flex justify-end border-b border-default px-4 py-2">
<UButton
:to="src"
target="_blank"
external
:label="$t('healthCoverageReport.open')"
icon="i-lucide-external-link"
color="neutral"
variant="ghost"
size="xs"
/>
</div>
<iframe :src class="embedded-report h-160" :title="$t('healthCoverageReport.frame')" />
</template>
<EmptyState v-else>
<I18nT keypath="healthCoverageReport.empty" scope="global">
<template #test>
<code class="font-mono">{{ TEST }}</code>
</template>
<template #collect>
<code class="font-mono">{{ COLLECT }}</code>
</template>
</I18nT>
</EmptyState>
</WidgetPanel>
</template>
<script setup lang="ts">
interface Props {
/** Whether the collector copied the merged HTML report in. */
copied: boolean;
}
const { copied } = defineProps<Props>();
const TEST = "pnpm test:coverage";
const COLLECT = "pnpm exec nx collect @joinery/developer-portal";
const src = embedUrl("/embed/coverage/index.html");
</script>
|