All files / apps/huella-legal/layers/reading/app/components/article BackMatter.vue

100% Statements 8/8
100% Branches 1/1
100% Functions 3/3
100% Lines 5/5

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  9x             4x         10x                                 9x   9x    
<template>
    <div class="flex max-w-measure flex-col gap-12">
        <ArticleNotes :notes="article.body.notes" />
        <ArticleBibliography :entries="article.body.bibliography" />
 
        <ArticleCiteBox id="citar" :citations="article.citations" />
 
        <p v-if="article.tags.length" class="font-sans text-sm text-muted print:hidden">
            <span class="mr-1 font-semibold text-highlighted">{{ $t("article.tags") }}</span>
            {{ tagNames }}
        </p>
 
        <div id="autor" class="flex flex-col gap-12">
            <ArticleAuthorCard
                v-for="author in article.authors"
                :key="author.id"
                :author
                :count="authorCounts[author.id]"
                :to="{ name: 'author', params: { slug: author.slug } }"
            />
        </div>
    </div>
</template>
 
<script setup lang="ts">
interface Props {
    article: Article;
    authorCounts: Record<string, number>;
}
 
const props = defineProps<Props>();
 
const tagNames = computed<string>(() => props.article.tags.map(({ name }) => name).join(" ยท "));
</script>