Show the build version in the footer
This commit is contained in:
1 parent
4e8a68c330
commit
66eccec274
2 files changed
+30
No files matched your search
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user