2023-12-30 05:29:53 +00:00
|
|
|
<template>
|
2024-03-26 02:00:50 +00:00
|
|
|
<div class="page">
|
|
|
|
<div v-if="is404">
|
|
|
|
<h1>404 Not Found</h1>
|
2024-01-25 02:07:26 +00:00
|
|
|
|
2024-03-26 02:00:50 +00:00
|
|
|
<p v-if="abortReason">{{ abortReason }}</p>
|
|
|
|
<p v-else>This page could not be found.</p>
|
|
|
|
</div>
|
2024-01-25 02:07:26 +00:00
|
|
|
|
2024-03-26 02:00:50 +00:00
|
|
|
<div v-else>
|
|
|
|
<h1>500 Internal Error</h1>
|
|
|
|
<p>Something went wrong.</p>
|
|
|
|
</div>
|
2024-01-25 02:07:26 +00:00
|
|
|
</div>
|
2023-12-30 05:29:53 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2024-01-25 02:07:26 +00:00
|
|
|
import { inject } from 'vue';
|
|
|
|
|
|
|
|
defineProps({
|
|
|
|
is404: {
|
|
|
|
type: Boolean,
|
|
|
|
default: false,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
const pageContext = inject('pageContext');
|
|
|
|
const { abortReason } = pageContext;
|
2023-12-30 05:29:53 +00:00
|
|
|
</script>
|
2024-03-26 02:00:50 +00:00
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.page {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
2024-07-07 19:01:44 +00:00
|
|
|
flex-grow: 1;
|
2024-03-26 02:00:50 +00:00
|
|
|
}
|
|
|
|
</style>
|