Migrate to Vue 3 and Vite
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
27
js/src/views/ErrorView.vue
Normal file
27
js/src/views/ErrorView.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<section class="container mx-auto">
|
||||
<span v-if="code === ErrorCode.REGISTRATION_CLOSED">
|
||||
{{ t("Registration is currently closed.") }}
|
||||
</span>
|
||||
|
||||
<span v-else>
|
||||
{{ t("Unknown error.") }}
|
||||
</span>
|
||||
</section>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ErrorCode } from "@/types/enums";
|
||||
import { useHead } from "@vueuse/head";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { useRouteQuery } from "vue-use-route-query";
|
||||
import { computed } from "vue";
|
||||
|
||||
const { t } = useI18n({ useScope: "global" });
|
||||
|
||||
useHead({
|
||||
title: computed(() => t("Error")),
|
||||
});
|
||||
|
||||
const code = useRouteQuery("code", null);
|
||||
</script>
|
||||
Reference in New Issue
Block a user