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

100% Statements 4/4
100% Branches 1/1
100% Functions 1/1
100% Lines 4/4

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    14x             5x   7x                                   14x    
<template>
    <section
        v-if="entries.length"
        :aria-labelledby="headingId"
        class="border-t border-default pt-6"
    >
        <h2 :id="headingId" class="text-kicker">
            {{ $t("articleBibliography.title") }}
        </h2>
        <ul class="mt-4 flex flex-col gap-3">
            <!-- eslint-disable vue/no-v-html -- only ever fed from the articles layer's sanitising body mapper -->
            <li
                v-for="(entry, index) in entries"
                :key="index"
                class="hl-links pl-6 -indent-6 font-serif text-citation wrap-break-word text-toned"
                v-html="entry"
            />
            <!-- eslint-enable vue/no-v-html -->
        </ul>
    </section>
</template>
 
<script setup lang="ts">
interface Props {
    entries: string[];
}
 
defineProps<Props>();
 
const headingId = useId();
</script>