2022-11-29 05:02:44 +09:00
|
|
|
<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 22:59:28 +09:00
|
|
|
<div>{{ $t('error.status_not_found') }}</div>
|
2022-11-29 05:02:44 +09:00
|
|
|
|
|
|
|
<NuxtLink v-if="originalUrl" :to="originalUrl" target="_blank">
|
2022-12-01 22:59:28 +09:00
|
|
|
<button btn-solid flex="~ center gap-2" text-sm px2 py1>
|
2022-11-29 05:02:44 +09:00
|
|
|
<div i-ri:arrow-right-up-line />
|
2022-12-01 22:59:28 +09:00
|
|
|
{{ $t('status.try_original_site') }}
|
2022-11-29 05:02:44 +09:00
|
|
|
</button>
|
|
|
|
</NuxtLink>
|
|
|
|
</div>
|
|
|
|
</CommonNotFound>
|
|
|
|
</template>
|