docs: note about preview deploy
This commit is contained in:
parent
1a074aaff6
commit
abaf4a2f54
27
components/common/CommonPreviewPrompt.vue
Normal file
27
components/common/CommonPreviewPrompt.vue
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<script setup lang="ts">
|
||||||
|
const build = useBuildInfo()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div
|
||||||
|
m-2 p5 bg-rose:10 relative
|
||||||
|
rounded-lg of-hidden
|
||||||
|
flex="~ col gap-3"
|
||||||
|
>
|
||||||
|
<h2 font-bold text-rose>
|
||||||
|
{{ $t('help.build_preview.title') }}
|
||||||
|
</h2>
|
||||||
|
<p>
|
||||||
|
<i18n-t keypath="help.build_preview.desc1">
|
||||||
|
<NuxtLink :href="`https://github.com/elk-zone/elk/commit/${build.commit}`" target="_blank" text-rose hover:underline>
|
||||||
|
<code>{{ build.commit.slice(0, 7) }}</code>
|
||||||
|
</NuxtLink>
|
||||||
|
</i18n-t>
|
||||||
|
</p>
|
||||||
|
<p>{{ $t('help.build_preview.desc2') }}</p>
|
||||||
|
<p font-bold>
|
||||||
|
{{ $t('help.build_preview.desc3') }}
|
||||||
|
</p>
|
||||||
|
<div i-ri-git-pull-request-line absolute text-10em bottom--10 inset-ie--10 text-rose op10 class="-z-1" />
|
||||||
|
</div>
|
||||||
|
</template>
|
|
@ -2,7 +2,7 @@
|
||||||
import { usePreferences } from '~/composables/settings'
|
import { usePreferences } from '~/composables/settings'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const userSettings = useUserSettings()
|
const info = useBuildInfo()
|
||||||
|
|
||||||
const wideLayout = computed(() => route.meta.wideLayout ?? false)
|
const wideLayout = computed(() => route.meta.wideLayout ?? false)
|
||||||
|
|
||||||
|
@ -63,7 +63,9 @@ const isGrayscale = usePreferences('grayscaleMode')
|
||||||
<div sticky top-0 h-screen flex="~ col" gap-2 py3 ms-2>
|
<div sticky top-0 h-screen flex="~ col" gap-2 py3 ms-2>
|
||||||
<slot name="right">
|
<slot name="right">
|
||||||
<div flex-auto />
|
<div flex-auto />
|
||||||
|
|
||||||
<PwaPrompt />
|
<PwaPrompt />
|
||||||
|
<LazyCommonPreviewPrompt v-if="info.env === 'preview'" />
|
||||||
<NavFooter />
|
<NavFooter />
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -156,6 +156,12 @@
|
||||||
"unsupported_file_format": "Unsupported file format"
|
"unsupported_file_format": "Unsupported file format"
|
||||||
},
|
},
|
||||||
"help": {
|
"help": {
|
||||||
|
"build_preview": {
|
||||||
|
"desc1": "You are currently viewing a preview version of Elk from the community - {0}.",
|
||||||
|
"desc2": "It may contains unreviewed or even malicious changes.",
|
||||||
|
"desc3": "Don't log in with your real account.",
|
||||||
|
"title": "Preview deploy"
|
||||||
|
},
|
||||||
"desc_highlight": "Expect some bugs and missing features here and there.",
|
"desc_highlight": "Expect some bugs and missing features here and there.",
|
||||||
"desc_para1": "Thanks for your interest in trying out Elk, our work-in-progress Mastodon web client!",
|
"desc_para1": "Thanks for your interest in trying out Elk, our work-in-progress Mastodon web client!",
|
||||||
"desc_para2": "we are working hard on the development and improving it over time.",
|
"desc_para2": "we are working hard on the development and improving it over time.",
|
||||||
|
|
Loading…
Reference in a new issue