1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 16:39:58 +00:00
elk/components/status/StatusNotFound.vue

31 lines
773 B
Vue
Raw Normal View History

<script setup lang="ts">
const { account, status } = defineProps<{
account: string
status: string
}>()
const originalUrl = computed(() => {
const [handle, _server] = account.split('@')
const server = _server || currentUser.value?.server
if (!server)
return null
return `https://${server}/@${handle}/${status}`
})
</script>
<template>
<CommonNotFound>
<div flex="~ col center gap2">
2022-12-01 13:59:28 +00:00
<div>{{ $t('error.status_not_found') }}</div>
<NuxtLink v-if="originalUrl" :to="originalUrl" external target="_blank">
2022-12-01 13:59:28 +00:00
<button btn-solid flex="~ center gap-2" text-sm px2 py1>
<div i-ri:arrow-right-up-line />
2022-12-01 13:59:28 +00:00
{{ $t('status.try_original_site') }}
</button>
</NuxtLink>
</div>
</CommonNotFound>
</template>