2023-07-27 00:31:52 -05:00
|
|
|
<!--
|
2024-02-13 09:59:27 -06:00
|
|
|
SPDX-FileCopyrightText: syuilo and misskey-project
|
2023-07-27 00:31:52 -05:00
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
-->
|
|
|
|
|
2023-04-19 07:24:31 -05:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div :class="$style.banner">
|
|
|
|
<i class="ti ti-user-edit"></i>
|
|
|
|
</div>
|
2023-05-18 23:58:09 -05:00
|
|
|
<MkSpacer :marginMin="20" :marginMax="32">
|
2023-04-19 07:24:31 -05:00
|
|
|
<form class="_gaps_m" autocomplete="new-password" @submit.prevent="onSubmit">
|
|
|
|
<MkInput v-if="instance.disableRegistration" v-model="invitationCode" type="text" :spellcheck="false" required>
|
|
|
|
<template #label>{{ i18n.ts.invitationCode }}</template>
|
|
|
|
<template #prefix><i class="ti ti-key"></i></template>
|
|
|
|
</MkInput>
|
2023-05-18 23:58:33 -05:00
|
|
|
<MkInput v-model="username" type="text" pattern="^[a-zA-Z0-9_]{1,20}$" :spellcheck="false" autocomplete="username" required data-cy-signup-username @update:modelValue="onChangeUsername">
|
2023-04-19 07:24:31 -05:00
|
|
|
<template #label>{{ i18n.ts.username }} <div v-tooltip:dialog="i18n.ts.usernameInfo" class="_button _help"><i class="ti ti-help-circle"></i></div></template>
|
|
|
|
<template #prefix>@</template>
|
|
|
|
<template #suffix>@{{ host }}</template>
|
|
|
|
<template #caption>
|
|
|
|
<div><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.cannotBeChangedLater }}</div>
|
|
|
|
<span v-if="usernameState === 'wait'" style="color:#999"><MkLoading :em="true"/> {{ i18n.ts.checking }}</span>
|
2024-10-09 04:08:14 -05:00
|
|
|
<span v-else-if="usernameState === 'ok'" style="color: var(--MI_THEME-success)"><i class="ti ti-check ti-fw"></i> {{ i18n.ts.available }}</span>
|
|
|
|
<span v-else-if="usernameState === 'unavailable'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.unavailable }}</span>
|
|
|
|
<span v-else-if="usernameState === 'error'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.error }}</span>
|
|
|
|
<span v-else-if="usernameState === 'invalid-format'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.usernameInvalidFormat }}</span>
|
|
|
|
<span v-else-if="usernameState === 'min-range'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.tooShort }}</span>
|
|
|
|
<span v-else-if="usernameState === 'max-range'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.tooLong }}</span>
|
2023-04-19 07:24:31 -05:00
|
|
|
</template>
|
|
|
|
</MkInput>
|
2023-05-18 23:58:09 -05:00
|
|
|
<MkInput v-if="instance.emailRequiredForSignup" v-model="email" :debounce="true" type="email" :spellcheck="false" required data-cy-signup-email @update:modelValue="onChangeEmail">
|
2023-04-19 07:24:31 -05:00
|
|
|
<template #label>{{ i18n.ts.emailAddress }} <div v-tooltip:dialog="i18n.ts._signup.emailAddressInfo" class="_button _help"><i class="ti ti-help-circle"></i></div></template>
|
|
|
|
<template #prefix><i class="ti ti-mail"></i></template>
|
|
|
|
<template #caption>
|
|
|
|
<span v-if="emailState === 'wait'" style="color:#999"><MkLoading :em="true"/> {{ i18n.ts.checking }}</span>
|
2024-10-09 04:08:14 -05:00
|
|
|
<span v-else-if="emailState === 'ok'" style="color: var(--MI_THEME-success)"><i class="ti ti-check ti-fw"></i> {{ i18n.ts.available }}</span>
|
|
|
|
<span v-else-if="emailState === 'unavailable:used'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts._emailUnavailable.used }}</span>
|
|
|
|
<span v-else-if="emailState === 'unavailable:format'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts._emailUnavailable.format }}</span>
|
|
|
|
<span v-else-if="emailState === 'unavailable:disposable'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts._emailUnavailable.disposable }}</span>
|
|
|
|
<span v-else-if="emailState === 'unavailable:banned'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts._emailUnavailable.banned }}</span>
|
|
|
|
<span v-else-if="emailState === 'unavailable:mx'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts._emailUnavailable.mx }}</span>
|
|
|
|
<span v-else-if="emailState === 'unavailable:smtp'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts._emailUnavailable.smtp }}</span>
|
|
|
|
<span v-else-if="emailState === 'unavailable'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.unavailable }}</span>
|
|
|
|
<span v-else-if="emailState === 'error'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.error }}</span>
|
2023-04-19 07:24:31 -05:00
|
|
|
</template>
|
|
|
|
</MkInput>
|
2023-05-18 23:58:09 -05:00
|
|
|
<MkInput v-model="password" type="password" autocomplete="new-password" required data-cy-signup-password @update:modelValue="onChangePassword">
|
2023-04-19 07:24:31 -05:00
|
|
|
<template #label>{{ i18n.ts.password }}</template>
|
|
|
|
<template #prefix><i class="ti ti-lock"></i></template>
|
|
|
|
<template #caption>
|
2024-10-09 04:08:14 -05:00
|
|
|
<span v-if="passwordStrength == 'low'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.weakPassword }}</span>
|
|
|
|
<span v-if="passwordStrength == 'medium'" style="color: var(--MI_THEME-warn)"><i class="ti ti-check ti-fw"></i> {{ i18n.ts.normalPassword }}</span>
|
|
|
|
<span v-if="passwordStrength == 'high'" style="color: var(--MI_THEME-success)"><i class="ti ti-check ti-fw"></i> {{ i18n.ts.strongPassword }}</span>
|
2023-04-19 07:24:31 -05:00
|
|
|
</template>
|
|
|
|
</MkInput>
|
2023-05-18 23:58:09 -05:00
|
|
|
<MkInput v-model="retypedPassword" type="password" autocomplete="new-password" required data-cy-signup-password-retype @update:modelValue="onChangePasswordRetype">
|
2023-04-19 07:24:31 -05:00
|
|
|
<template #label>{{ i18n.ts.password }} ({{ i18n.ts.retype }})</template>
|
|
|
|
<template #prefix><i class="ti ti-lock"></i></template>
|
|
|
|
<template #caption>
|
2024-10-09 04:08:14 -05:00
|
|
|
<span v-if="passwordRetypeState == 'match'" style="color: var(--MI_THEME-success)"><i class="ti ti-check ti-fw"></i> {{ i18n.ts.passwordMatched }}</span>
|
|
|
|
<span v-if="passwordRetypeState == 'not-match'" style="color: var(--MI_THEME-error)"><i class="ti ti-alert-triangle ti-fw"></i> {{ i18n.ts.passwordNotMatched }}</span>
|
2023-04-19 07:24:31 -05:00
|
|
|
</template>
|
|
|
|
</MkInput>
|
|
|
|
<MkCaptcha v-if="instance.enableHcaptcha" ref="hcaptcha" v-model="hCaptchaResponse" :class="$style.captcha" provider="hcaptcha" :sitekey="instance.hcaptchaSiteKey"/>
|
2024-01-06 05:14:33 -06:00
|
|
|
<MkCaptcha v-if="instance.enableMcaptcha" ref="mcaptcha" v-model="mCaptchaResponse" :class="$style.captcha" provider="mcaptcha" :sitekey="instance.mcaptchaSiteKey" :instanceUrl="instance.mcaptchaInstanceUrl"/>
|
2023-04-19 07:24:31 -05:00
|
|
|
<MkCaptcha v-if="instance.enableRecaptcha" ref="recaptcha" v-model="reCaptchaResponse" :class="$style.captcha" provider="recaptcha" :sitekey="instance.recaptchaSiteKey"/>
|
|
|
|
<MkCaptcha v-if="instance.enableTurnstile" ref="turnstile" v-model="turnstileResponse" :class="$style.captcha" provider="turnstile" :sitekey="instance.turnstileSiteKey"/>
|
|
|
|
<MkButton type="submit" :disabled="shouldDisableSubmitting" large gradate rounded data-cy-signup-submit style="margin: 0 auto;">
|
|
|
|
<template v-if="submitting">
|
|
|
|
<MkLoading :em="true" :colored="false"/>
|
|
|
|
</template>
|
|
|
|
<template v-else>{{ i18n.ts.start }}</template>
|
|
|
|
</MkButton>
|
|
|
|
</form>
|
|
|
|
</MkSpacer>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2023-12-06 23:42:09 -06:00
|
|
|
import { ref, computed } from 'vue';
|
2023-04-19 07:24:31 -05:00
|
|
|
import { toUnicode } from 'punycode/';
|
2024-01-30 04:53:53 -06:00
|
|
|
import * as Misskey from 'misskey-js';
|
2024-10-02 22:11:09 -05:00
|
|
|
import * as config from '@@/js/config.js';
|
2023-04-19 07:24:31 -05:00
|
|
|
import MkButton from './MkButton.vue';
|
|
|
|
import MkInput from './MkInput.vue';
|
|
|
|
import MkCaptcha, { type Captcha } from '@/components/MkCaptcha.vue';
|
2023-09-19 02:37:43 -05:00
|
|
|
import * as os from '@/os.js';
|
2024-01-04 03:32:46 -06:00
|
|
|
import { misskeyApi } from '@/scripts/misskey-api.js';
|
2023-09-19 02:37:43 -05:00
|
|
|
import { login } from '@/account.js';
|
|
|
|
import { instance } from '@/instance.js';
|
|
|
|
import { i18n } from '@/i18n.js';
|
2023-04-19 07:24:31 -05:00
|
|
|
|
|
|
|
const props = withDefaults(defineProps<{
|
|
|
|
autoSet?: boolean;
|
|
|
|
}>(), {
|
|
|
|
autoSet: false,
|
|
|
|
});
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
2024-10-10 00:05:20 -05:00
|
|
|
(ev: 'signup', user: Misskey.entities.SignupResponse): void;
|
2023-04-19 07:24:31 -05:00
|
|
|
(ev: 'signupEmailPending'): void;
|
|
|
|
}>();
|
|
|
|
|
|
|
|
const host = toUnicode(config.host);
|
|
|
|
|
2023-12-06 23:42:09 -06:00
|
|
|
const hcaptcha = ref<Captcha | undefined>();
|
2024-10-02 22:11:09 -05:00
|
|
|
const mcaptcha = ref<Captcha | undefined>();
|
2023-12-06 23:42:09 -06:00
|
|
|
const recaptcha = ref<Captcha | undefined>();
|
|
|
|
const turnstile = ref<Captcha | undefined>();
|
|
|
|
|
|
|
|
const username = ref<string>('');
|
|
|
|
const password = ref<string>('');
|
|
|
|
const retypedPassword = ref<string>('');
|
|
|
|
const invitationCode = ref<string>('');
|
|
|
|
const email = ref('');
|
|
|
|
const usernameState = ref<null | 'wait' | 'ok' | 'unavailable' | 'error' | 'invalid-format' | 'min-range' | 'max-range'>(null);
|
2023-12-22 21:06:22 -06:00
|
|
|
const emailState = ref<null | 'wait' | 'ok' | 'unavailable:used' | 'unavailable:format' | 'unavailable:disposable' | 'unavailable:banned' | 'unavailable:mx' | 'unavailable:smtp' | 'unavailable' | 'error'>(null);
|
2023-12-06 23:42:09 -06:00
|
|
|
const passwordStrength = ref<'' | 'low' | 'medium' | 'high'>('');
|
|
|
|
const passwordRetypeState = ref<null | 'match' | 'not-match'>(null);
|
|
|
|
const submitting = ref<boolean>(false);
|
2023-12-25 23:19:35 -06:00
|
|
|
const hCaptchaResponse = ref<string | null>(null);
|
2024-01-06 05:14:33 -06:00
|
|
|
const mCaptchaResponse = ref<string | null>(null);
|
2023-12-25 23:19:35 -06:00
|
|
|
const reCaptchaResponse = ref<string | null>(null);
|
|
|
|
const turnstileResponse = ref<string | null>(null);
|
2023-12-06 23:42:09 -06:00
|
|
|
const usernameAbortController = ref<null | AbortController>(null);
|
|
|
|
const emailAbortController = ref<null | AbortController>(null);
|
|
|
|
|
|
|
|
const shouldDisableSubmitting = computed((): boolean => {
|
|
|
|
return submitting.value ||
|
|
|
|
instance.enableHcaptcha && !hCaptchaResponse.value ||
|
2024-01-06 05:14:33 -06:00
|
|
|
instance.enableMcaptcha && !mCaptchaResponse.value ||
|
2023-12-06 23:42:09 -06:00
|
|
|
instance.enableRecaptcha && !reCaptchaResponse.value ||
|
|
|
|
instance.enableTurnstile && !turnstileResponse.value ||
|
|
|
|
instance.emailRequiredForSignup && emailState.value !== 'ok' ||
|
|
|
|
usernameState.value !== 'ok' ||
|
|
|
|
passwordRetypeState.value !== 'match';
|
2023-04-19 07:24:31 -05:00
|
|
|
});
|
|
|
|
|
2023-09-15 00:28:29 -05:00
|
|
|
function getPasswordStrength(source: string): number {
|
|
|
|
let strength = 0;
|
|
|
|
let power = 0.018;
|
|
|
|
|
|
|
|
// 英数字
|
|
|
|
if (/[a-zA-Z]/.test(source) && /[0-9]/.test(source)) {
|
|
|
|
power += 0.020;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 大文字と小文字が混ざってたら
|
|
|
|
if (/[a-z]/.test(source) && /[A-Z]/.test(source)) {
|
|
|
|
power += 0.015;
|
|
|
|
}
|
|
|
|
|
|
|
|
// 記号が混ざってたら
|
|
|
|
if (/[!\x22\#$%&@'()*+,-./_]/.test(source)) {
|
|
|
|
power += 0.02;
|
|
|
|
}
|
|
|
|
|
|
|
|
strength = power * source.length;
|
|
|
|
|
|
|
|
return Math.max(0, Math.min(1, strength));
|
|
|
|
}
|
|
|
|
|
2023-04-19 07:24:31 -05:00
|
|
|
function onChangeUsername(): void {
|
2023-12-06 23:42:09 -06:00
|
|
|
if (username.value === '') {
|
|
|
|
usernameState.value = null;
|
2023-04-19 07:24:31 -05:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
const err =
|
2023-12-06 23:42:09 -06:00
|
|
|
!username.value.match(/^[a-zA-Z0-9_]+$/) ? 'invalid-format' :
|
|
|
|
username.value.length < 1 ? 'min-range' :
|
|
|
|
username.value.length > 20 ? 'max-range' :
|
2023-04-19 07:24:31 -05:00
|
|
|
null;
|
|
|
|
|
|
|
|
if (err) {
|
2023-12-06 23:42:09 -06:00
|
|
|
usernameState.value = err;
|
2023-04-19 07:24:31 -05:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-06 23:42:09 -06:00
|
|
|
if (usernameAbortController.value != null) {
|
|
|
|
usernameAbortController.value.abort();
|
2023-04-19 07:24:31 -05:00
|
|
|
}
|
2023-12-06 23:42:09 -06:00
|
|
|
usernameState.value = 'wait';
|
|
|
|
usernameAbortController.value = new AbortController();
|
2023-04-19 07:24:31 -05:00
|
|
|
|
2024-01-04 03:32:46 -06:00
|
|
|
misskeyApi('username/available', {
|
2023-12-06 23:42:09 -06:00
|
|
|
username: username.value,
|
|
|
|
}, undefined, usernameAbortController.value.signal).then(result => {
|
|
|
|
usernameState.value = result.available ? 'ok' : 'unavailable';
|
2023-04-19 07:24:31 -05:00
|
|
|
}).catch((err) => {
|
|
|
|
if (err.name !== 'AbortError') {
|
2023-12-06 23:42:09 -06:00
|
|
|
usernameState.value = 'error';
|
2023-04-19 07:24:31 -05:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function onChangeEmail(): void {
|
2023-12-06 23:42:09 -06:00
|
|
|
if (email.value === '') {
|
|
|
|
emailState.value = null;
|
2023-04-19 07:24:31 -05:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-12-06 23:42:09 -06:00
|
|
|
if (emailAbortController.value != null) {
|
|
|
|
emailAbortController.value.abort();
|
2023-04-19 07:24:31 -05:00
|
|
|
}
|
2023-12-06 23:42:09 -06:00
|
|
|
emailState.value = 'wait';
|
|
|
|
emailAbortController.value = new AbortController();
|
2023-04-19 07:24:31 -05:00
|
|
|
|
2024-01-04 03:32:46 -06:00
|
|
|
misskeyApi('email-address/available', {
|
2023-12-06 23:42:09 -06:00
|
|
|
emailAddress: email.value,
|
|
|
|
}, undefined, emailAbortController.value.signal).then(result => {
|
|
|
|
emailState.value = result.available ? 'ok' :
|
2023-04-19 07:24:31 -05:00
|
|
|
result.reason === 'used' ? 'unavailable:used' :
|
|
|
|
result.reason === 'format' ? 'unavailable:format' :
|
|
|
|
result.reason === 'disposable' ? 'unavailable:disposable' :
|
2023-12-22 21:06:22 -06:00
|
|
|
result.reason === 'banned' ? 'unavailable:banned' :
|
2023-04-19 07:24:31 -05:00
|
|
|
result.reason === 'mx' ? 'unavailable:mx' :
|
|
|
|
result.reason === 'smtp' ? 'unavailable:smtp' :
|
|
|
|
'unavailable';
|
|
|
|
}).catch((err) => {
|
|
|
|
if (err.name !== 'AbortError') {
|
2023-12-06 23:42:09 -06:00
|
|
|
emailState.value = 'error';
|
2023-04-19 07:24:31 -05:00
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
function onChangePassword(): void {
|
2023-12-06 23:42:09 -06:00
|
|
|
if (password.value === '') {
|
|
|
|
passwordStrength.value = '';
|
2023-04-19 07:24:31 -05:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-12-06 23:42:09 -06:00
|
|
|
const strength = getPasswordStrength(password.value);
|
|
|
|
passwordStrength.value = strength > 0.7 ? 'high' : strength > 0.3 ? 'medium' : 'low';
|
2023-04-19 07:24:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
function onChangePasswordRetype(): void {
|
2023-12-06 23:42:09 -06:00
|
|
|
if (retypedPassword.value === '') {
|
|
|
|
passwordRetypeState.value = null;
|
2023-04-19 07:24:31 -05:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2023-12-06 23:42:09 -06:00
|
|
|
passwordRetypeState.value = password.value === retypedPassword.value ? 'match' : 'not-match';
|
2023-04-19 07:24:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
async function onSubmit(): Promise<void> {
|
2023-12-06 23:42:09 -06:00
|
|
|
if (submitting.value) return;
|
|
|
|
submitting.value = true;
|
2023-04-19 07:24:31 -05:00
|
|
|
|
2024-10-10 00:05:20 -05:00
|
|
|
const signupPayload: Misskey.entities.SignupRequest = {
|
|
|
|
username: username.value,
|
|
|
|
password: password.value,
|
|
|
|
emailAddress: email.value,
|
|
|
|
invitationCode: invitationCode.value,
|
|
|
|
'hcaptcha-response': hCaptchaResponse.value,
|
|
|
|
'm-captcha-response': mCaptchaResponse.value,
|
|
|
|
'g-recaptcha-response': reCaptchaResponse.value,
|
|
|
|
'turnstile-response': turnstileResponse.value,
|
|
|
|
};
|
|
|
|
|
|
|
|
const res = await fetch(`${config.apiUrl}/signup`, {
|
|
|
|
method: 'POST',
|
|
|
|
headers: {
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
},
|
|
|
|
body: JSON.stringify(signupPayload),
|
|
|
|
}).catch(() => {
|
|
|
|
onSignupApiError();
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
|
|
|
|
if (res) {
|
|
|
|
if (res.status === 204 || instance.emailRequiredForSignup) {
|
2023-04-19 07:24:31 -05:00
|
|
|
os.alert({
|
|
|
|
type: 'success',
|
|
|
|
title: i18n.ts._signup.almostThere,
|
2024-01-19 17:11:59 -06:00
|
|
|
text: i18n.tsx._signup.emailSent({ email: email.value }),
|
2023-04-19 07:24:31 -05:00
|
|
|
});
|
|
|
|
emit('signupEmailPending');
|
|
|
|
} else {
|
2024-10-10 00:05:20 -05:00
|
|
|
const resJson = (await res.json()) as Misskey.entities.SignupResponse;
|
|
|
|
if (_DEV_) console.log(resJson);
|
|
|
|
|
|
|
|
emit('signup', resJson);
|
|
|
|
|
|
|
|
if (props.autoSet) {
|
|
|
|
await login(resJson.token);
|
2023-04-19 07:24:31 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-10-10 00:05:20 -05:00
|
|
|
|
|
|
|
submitting.value = false;
|
|
|
|
}
|
|
|
|
|
|
|
|
function onSignupApiError() {
|
|
|
|
submitting.value = false;
|
|
|
|
hcaptcha.value?.reset?.();
|
|
|
|
mcaptcha.value?.reset?.();
|
|
|
|
recaptcha.value?.reset?.();
|
|
|
|
turnstile.value?.reset?.();
|
|
|
|
|
|
|
|
os.alert({
|
|
|
|
type: 'error',
|
|
|
|
text: i18n.ts.somethingHappened,
|
|
|
|
});
|
2023-04-19 07:24:31 -05:00
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" module>
|
|
|
|
.banner {
|
|
|
|
padding: 16px;
|
|
|
|
text-align: center;
|
|
|
|
font-size: 26px;
|
2024-10-09 04:08:14 -05:00
|
|
|
background-color: var(--MI_THEME-accentedBg);
|
|
|
|
color: var(--MI_THEME-accent);
|
2023-04-19 07:24:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.captcha {
|
|
|
|
margin: 16px 0;
|
|
|
|
}
|
|
|
|
</style>
|