2023-12-13 15:14:07 +01:00
|
|
|
<template>
|
|
|
|
<GMisskeyGateway
|
2024-01-28 07:48:46 +01:00
|
|
|
:action="actionConfig"
|
2023-12-13 15:14:07 +01:00
|
|
|
:branding="{
|
|
|
|
heading: $t('_goToMisskey.heading'),
|
|
|
|
icon: WindowIco,
|
|
|
|
}"
|
|
|
|
></GMisskeyGateway>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
import WindowIco from 'bi/window.svg';
|
|
|
|
|
|
|
|
definePageMeta({
|
|
|
|
layout: 'blank',
|
|
|
|
});
|
|
|
|
|
|
|
|
useHead({
|
|
|
|
meta: [
|
|
|
|
{ name: 'robots', content: 'noindex' },
|
|
|
|
],
|
|
|
|
});
|
|
|
|
|
|
|
|
const { meta, query } = useRoute();
|
|
|
|
const { t } = useI18n();
|
|
|
|
|
2024-01-28 07:48:46 +01:00
|
|
|
// 遷移用パス
|
|
|
|
const path = computed(() => {
|
|
|
|
if (!query.path || query.path.length == 0) return undefined;
|
2023-12-13 15:14:07 +01:00
|
|
|
|
|
|
|
if (Array.isArray(query.path)) {
|
|
|
|
return query.path[0] as string;
|
|
|
|
} else {
|
|
|
|
return query.path;
|
|
|
|
}
|
2024-01-28 07:48:46 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
const actionConfig = computed(() => {
|
|
|
|
return {
|
|
|
|
type: 'link' as const,
|
|
|
|
path: path.value ?? '/',
|
|
|
|
};
|
|
|
|
});
|
2023-12-13 15:14:07 +01:00
|
|
|
|
|
|
|
meta.title = t('_goToMisskey.title');
|
2023-12-20 11:39:08 +01:00
|
|
|
meta.scrollButton = false;
|
2023-12-13 15:14:07 +01:00
|
|
|
</script>
|