2023-01-03 05:19:36 +09:00
|
|
|
<script setup lang="ts">
|
2023-01-04 22:26:30 +09:00
|
|
|
import { buildInfo } from 'virtual:build-info'
|
2023-01-03 05:19:36 +09:00
|
|
|
|
2023-01-04 22:57:12 +09:00
|
|
|
const { t } = useI18n()
|
|
|
|
|
|
|
|
useHeadFixed({
|
|
|
|
title: () => `${t('settings.about.label')} | ${t('nav.settings')}`,
|
|
|
|
})
|
|
|
|
|
2023-01-04 22:26:30 +09:00
|
|
|
let showCommit = $ref(buildInfo.env !== 'release' && buildInfo.env !== 'dev')
|
2023-01-03 05:19:36 +09:00
|
|
|
const builtTime = useFormattedDateTime(buildInfo.time)
|
|
|
|
|
|
|
|
const handleShowCommit = () => {
|
|
|
|
setTimeout(() => {
|
|
|
|
showCommit = true
|
|
|
|
}, 50)
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
2022-12-27 08:04:24 +09:00
|
|
|
<template>
|
2022-12-28 10:12:56 +09:00
|
|
|
<MainContent back-on-small-screen>
|
2022-12-27 08:04:24 +09:00
|
|
|
<template #title>
|
|
|
|
<div text-lg font-bold flex items-center gap-2 @click="$scrollToTop">
|
|
|
|
<span>{{ $t('settings.about.label') }}</span>
|
|
|
|
</div>
|
|
|
|
</template>
|
2023-01-03 05:19:36 +09:00
|
|
|
|
|
|
|
<div flex="~ col gap4" w-full items-center justify-center my5>
|
|
|
|
<img :alt="$t('app_logo')" src="/logo.svg" w-24 h-24 class="rtl-flip">
|
|
|
|
<p text-lg>
|
|
|
|
{{ $t('app_desc_short') }}
|
|
|
|
</p>
|
2022-12-27 08:04:24 +09:00
|
|
|
</div>
|
2023-01-03 05:19:36 +09:00
|
|
|
|
|
|
|
<template v-if="isHydrated">
|
|
|
|
<SettingsItem
|
|
|
|
text="Version"
|
|
|
|
:to="showCommit ? `https://github.com/elk-zone/elk/commit/${buildInfo.commit}` : undefined"
|
|
|
|
external target="_blank"
|
|
|
|
@click="handleShowCommit"
|
|
|
|
>
|
|
|
|
<template #content>
|
|
|
|
<div font-mono>
|
2023-01-04 22:26:30 +09:00
|
|
|
<span>{{ buildInfo.env === 'release' ? `v${buildInfo.version}` : buildInfo.env }}</span>
|
2023-01-04 22:41:48 +09:00
|
|
|
<span v-if="showCommit"> ({{ buildInfo.commit.slice(0, 7) }}@{{ buildInfo.branch }})</span>
|
2023-01-03 05:19:36 +09:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</SettingsItem>
|
|
|
|
|
|
|
|
<SettingsItem text="Built time" :content="builtTime" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<div h-1px bg-border my2 />
|
|
|
|
|
|
|
|
<SettingsItem
|
|
|
|
:text="$t('nav.show_intro')"
|
|
|
|
icon="i-ri:article-line"
|
|
|
|
cursor-pointer
|
|
|
|
@click="openPreviewHelp"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<SettingsItem
|
|
|
|
text="Mastodon"
|
|
|
|
icon="i-ri:mastodon-line"
|
2023-01-03 17:14:49 +09:00
|
|
|
to="/m.webtoo.ls/@elk"
|
2023-01-03 05:19:36 +09:00
|
|
|
external target="_blank"
|
|
|
|
/>
|
|
|
|
<SettingsItem
|
|
|
|
text="Discord"
|
|
|
|
icon="i-ri:discord-fill"
|
|
|
|
to="https://chat.elk.zone"
|
|
|
|
external target="_blank"
|
|
|
|
/>
|
|
|
|
<SettingsItem
|
|
|
|
text="GitHub"
|
|
|
|
icon="i-ri:github-fill"
|
|
|
|
to="https://github.com/elk-zone"
|
|
|
|
external target="_blank"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<div h-1px bg-border my2 />
|
|
|
|
|
|
|
|
<template v-if="isHydrated">
|
|
|
|
<p px5 py3 font-bold text-lg>
|
|
|
|
Meet the team
|
|
|
|
</p>
|
|
|
|
<SettingsItem
|
|
|
|
v-for="team in teams" :key="team.github"
|
|
|
|
:text="team.display"
|
|
|
|
:to="`https://github.com/sponsors/${team.github}`"
|
|
|
|
external target="_blank"
|
|
|
|
>
|
|
|
|
<template #icon>
|
2023-01-05 17:21:02 +09:00
|
|
|
<img :src="`https://github.com/${team.github}.png?size=100`" :alt="team.display" rounded-full w-8 h-8 height="32" width="32">
|
2023-01-03 05:19:36 +09:00
|
|
|
</template>
|
|
|
|
</SettingsItem>
|
|
|
|
</template>
|
2022-12-27 08:04:24 +09:00
|
|
|
</MainContent>
|
|
|
|
</template>
|