mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-28 23:42:58 -04:00

https://nuxt.com/docs/4.x/getting-started/upgrade#default-data-and-error-values-in-useasyncdata-and-usefetch
13 lines
315 B
Vue
13 lines
315 B
Vue
<script setup lang="ts">
|
||
defineProps<{
|
||
hash: string | undefined;
|
||
}>();
|
||
|
||
const base = 'https://gitlab.com/PronounsPage/PronounsPage/-/commit';
|
||
</script>
|
||
|
||
<template>
|
||
<a v-if="hash" :href="`${base}/${hash}`" target="_blank" rel="noopener">{{ hash.substring(0, 8) }}</a>
|
||
<span v-else>–</span>
|
||
</template>
|