mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
d2ca085a17
* fix: emits use ev instead of e * fix: errors use err instead of e * fix: replace use of data where possible * fix: events use evt instead of e * fix: use strict equals * fix: use emoji instead of e * fix: vue lints
45 lines
866 B
Vue
45 lines
866 B
Vue
<template>
|
|
<XModalWindow ref="dialog"
|
|
:width="366"
|
|
:height="500"
|
|
@close="dialog.close()"
|
|
@closed="$emit('closed')"
|
|
>
|
|
<template #header>{{ $ts.signup }}</template>
|
|
|
|
<div class="_monolithic_">
|
|
<div class="_section">
|
|
<XSignup :auto-set="autoSet" @signup="onSignup" @signupEmailPending="onSignupEmailPending"/>
|
|
</div>
|
|
</div>
|
|
</XModalWindow>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { } from 'vue';
|
|
import XModalWindow from '@/components/ui/modal-window.vue';
|
|
import XSignup from './signup.vue';
|
|
|
|
const props = withDefaults(defineProps<{
|
|
autoSet?: boolean;
|
|
}>(), {
|
|
autoSet: false,
|
|
});
|
|
|
|
const emit = defineEmits<{
|
|
(ev: 'done'): void;
|
|
(ev: 'closed'): void;
|
|
}>();
|
|
|
|
const dialog = $ref<InstanceType<typeof XModalWindow>>();
|
|
|
|
function onSignup(res) {
|
|
emit('done', res);
|
|
dialog.close();
|
|
}
|
|
|
|
function onSignupEmailPending() {
|
|
dialog.close();
|
|
}
|
|
</script>
|