refactor: migrate to nuxt compatibilityVersion: 4 (#3298)
This commit is contained in:
parent
46e4433e1c
commit
a3fbc056a9
342 changed files with 1200 additions and 2932 deletions
|
@ -1,30 +0,0 @@
|
|||
<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">
|
||||
<div>{{ $t('error.status_not_found') }}</div>
|
||||
|
||||
<NuxtLink v-if="originalUrl" :to="originalUrl" external target="_blank">
|
||||
<button btn-solid flex="~ center gap-2" text-sm px2 py1>
|
||||
<div i-ri:arrow-right-up-line />
|
||||
{{ $t('status.try_original_site') }}
|
||||
</button>
|
||||
</NuxtLink>
|
||||
</div>
|
||||
</CommonNotFound>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue