ui: clean up nav footer

zio/stable
Anthony Fu 2023-01-03 18:24:39 +01:00
parent 64fa8d2bf4
commit 564a754a4d
2 changed files with 15 additions and 7 deletions

View File

@ -28,16 +28,13 @@ function toggleDark() {
/> />
</CommonTooltip> </CommonTooltip>
</div> </div>
<div>
<button cursor-pointer hover:underline @click="openPreviewHelp">
{{ $t('nav.show_intro') }}
</button>
</div>
<div>{{ $t('app_desc_short') }}</div>
<div> <div>
<i18n-t v-if="isHydrated" keypath="nav.built_at"> <i18n-t v-if="isHydrated" keypath="nav.built_at">
<time :datetime="String(buildTimeDate)" :title="$d(buildTimeDate, 'long')">{{ buildTimeAgo }}</time> <time :datetime="String(buildTimeDate)" :title="$d(buildTimeDate, 'long')">{{ buildTimeAgo }}</time>
</i18n-t> </i18n-t>
<span v-else>
{{ $t('nav.built_at', [$d(buildTimeDate, 'shortDate')]) }}
</span>
<template v-if="buildInfo.version"> <template v-if="buildInfo.version">
&middot; &middot;
v{{ buildInfo.version }} v{{ buildInfo.version }}
@ -55,7 +52,15 @@ function toggleDark() {
</template> </template>
</div> </div>
<div> <div>
<a href="/m.webtoo.ls/@elk" target="_blank">Mastodon</a> &middot; <a href="https://chat.elk.zone" target="_blank">Discord</a> &middot; <a href="https://github.com/elk-zone" target="_blank">GitHub</a> <NuxtLink cursor-pointer hover:underline to="/settings/about">
{{ $t('settings.about.label') }}
</NuxtLink>
&middot;
<a href="/m.webtoo.ls/@elk" target="_blank">Mastodon</a>
&middot;
<a href="https://chat.elk.zone" target="_blank">Discord</a>
&middot;
<a href="https://github.com/elk-zone" target="_blank">GitHub</a>
</div> </div>
</footer> </footer>
</template> </template>

View File

@ -76,6 +76,9 @@ const datetimeFormats = Object.values(locales).reduce((acc, data) => {
} }
else { else {
acc[data.code] = { acc[data.code] = {
shortDate: {
dateStyle: 'short',
},
short: { short: {
dateStyle: 'short', dateStyle: 'short',
timeStyle: 'short', timeStyle: 'short',