Skip to content

Commit 930a25e

Browse files
committed
refactor: use design components in footer build infos
1 parent 1bfa878 commit 930a25e

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

app/components/BuildEnvironment.vue

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,27 +17,19 @@ const buildInfo = useAppConfig().buildInfo
1717
<NuxtTime :datetime="buildInfo.time" :locale="locale" relative />
1818
</i18n-t>
1919
<span>&middot;</span>
20-
<NuxtLink
20+
<LinkBase
2121
v-if="buildInfo.env === 'release'"
22-
external
2322
:href="`https://github.com/npmx-dev/npmx.dev/tag/v${buildInfo.version}`"
24-
target="_blank"
25-
class="hover:text-fg transition-colors"
2623
>
2724
v{{ buildInfo.version }}
28-
</NuxtLink>
25+
</LinkBase>
2926
<span v-else class="tracking-wider">{{ buildInfo.env }}</span>
3027

3128
<template v-if="buildInfo.commit && buildInfo.branch !== 'release'">
3229
<span>&middot;</span>
33-
<NuxtLink
34-
external
35-
:href="`https://github.com/npmx-dev/npmx.dev/commit/${buildInfo.commit}`"
36-
target="_blank"
37-
class="hover:text-fg transition-colors"
38-
>
30+
<LinkBase :href="`https://github.com/npmx-dev/npmx.dev/commit/${buildInfo.commit}`">
3931
{{ buildInfo.shortCommit }}
40-
</NuxtLink>
32+
</LinkBase>
4133
</template>
4234
</div>
4335
</template>

0 commit comments

Comments
 (0)