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 | 4x 20x 20x | <template>
<span v-if="words !== null" class="text-xs text-muted">
{{ $t("docSource.meta", { words, updated }) }}
</span>
<code class="font-mono text-xs text-dimmed">{{ source }}</code>
</template>
<script setup lang="ts">
interface Props {
/** The repo path of the markdown file. */
source: string;
/** Left out when the doc isn't in the snapshot. */
words?: number | null;
updatedAt?: string | null;
}
const { source, words = null, updatedAt = null } = defineProps<Props>();
const { t } = useI18n();
const updated = computed(() => relativeTime(updatedAt, t));
</script>
|