mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 05:29:07 +01:00
40 lines
756 B
Vue
40 lines
756 B
Vue
<template>
|
|
<div>
|
|
{{ i18n.ts.processing }}
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { onMounted } from "vue";
|
|
import * as os from "@/os";
|
|
import { i18n } from "@/i18n";
|
|
import { definePageMetadata } from "@/scripts/page-metadata";
|
|
import { useRouter } from "@/router";
|
|
|
|
const router = useRouter();
|
|
|
|
const props = defineProps<{
|
|
code: string;
|
|
}>();
|
|
|
|
onMounted(async () => {
|
|
await os.alert({
|
|
type: "info",
|
|
text: i18n.t("clickToFinishEmailVerification", { ok: i18n.ts.gotIt }),
|
|
});
|
|
await os.api("verify-email", {
|
|
code: props.code,
|
|
});
|
|
router.push("/");
|
|
});
|
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
definePageMetadata({
|
|
title: "Verify email",
|
|
icon: "ph-user ph-bold ph-lg",
|
|
});
|
|
</script>
|