Show the build version in the footer

This commit is contained in:
Djeex committed 2026-11-30 14:08:40 +00:00
1 parent 4e8a68c330
commit 66eccec274
2 files changed
+30

No files matched your search

+16
View File
@@ -1,5 +1,6 @@
<script setup lang="ts">
const appConfig = useAppConfig()
const { buildVersion, buildVersionUrl } = useRuntimeConfig().public
const { forced: forcedColorMode } = useDocusColorMode()
interface FooterLink {
@@ -44,6 +45,21 @@ const links = computed<FooterLink[]>(() => {
</script>
<template>
<template v-if="buildVersion">
<a
v-if="buildVersionUrl"
:href="buildVersionUrl"
target="_blank"
rel="noopener"
class="text-xs text-muted tabular-nums hover:text-default"
title="Build version, see the change behind it"
>v{{ buildVersion }}</a>
<span
v-else
class="text-xs text-muted tabular-nums"
title="Build version"
>v{{ buildVersion }}</span>
</template>
<template v-if="links.length">
<UButton
v-for="(link, index) of links"