Sharkey/packages/frontend/src/pages/not-found.vue

38 lines
797 B
Vue
Raw Normal View History

<!--
SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
-->
2020-02-06 16:20:59 +02:00
<template>
2023-05-19 10:20:53 +03:00
<div>
2020-07-04 12:28:31 +03:00
<div class="_fullinfo">
<img :src="notFoundImageUrl" class="_ghost"/>
2022-07-20 16:24:26 +03:00
<div>{{ i18n.ts.notFoundDescription }}</div>
2020-07-04 12:28:31 +03:00
</div>
2020-02-06 16:20:59 +02:00
</div>
</template>
2022-01-07 09:48:51 +02:00
<script lang="ts" setup>
2023-09-19 10:37:43 +03:00
import { i18n } from '@/i18n.js';
import { definePageMetadata } from '@/scripts/page-metadata.js';
import { pleaseLogin } from '@/scripts/please-login.js';
import { notFoundImageUrl } from '@/instance.js';
2020-02-06 16:20:59 +02:00
const props = defineProps<{
showLoginPopup?: boolean;
}>();
if (props.showLoginPopup) {
pleaseLogin('/');
}
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.notFound,
icon: 'ti ti-alert-triangle',
2020-02-06 16:20:59 +02:00
});
</script>