From 1ac4c692bbdd667569eb4f66ceedcb85560168d9 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Sun, 22 Dec 2024 18:51:22 +0900 Subject: [PATCH] fix --- locales/index.d.ts | 4 +++ locales/ja-JP.yml | 1 + .../src/components/MkSignin.input.vue | 2 +- .../src/components/MkSignin.password.vue | 22 ++++++++++--- packages/frontend/src/components/MkSignin.vue | 31 ++++++++++++------- 5 files changed, 43 insertions(+), 17 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 266c7b18a9..6a0e8e2d10 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -3722,6 +3722,10 @@ export interface Locale extends ILocale { * モバイルデバイスのときドロワーで表示 */ "useDrawerReactionPickerForMobile": string; + /** + * おかえりなさい + */ + "welcomeBack": string; /** * おかえりなさい、{name}さん */ diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index f8f99223a2..80fc646c2f 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -926,6 +926,7 @@ incorrectTotp: "ワンタイムパスワードが間違っているか、期限 voteConfirm: "「{choice}」に投票しますか?" hide: "隠す" useDrawerReactionPickerForMobile: "モバイルデバイスのときドロワーで表示" +welcomeBack: "おかえりなさい" welcomeBackWithName: "おかえりなさい、{name}さん" clickToFinishEmailVerification: "[{ok}]を押して、メールアドレスの確認を完了してください。" overridedDeviceKind: "デバイスタイプ" diff --git a/packages/frontend/src/components/MkSignin.input.vue b/packages/frontend/src/components/MkSignin.input.vue index a9692b2114..cdc6aa5134 100644 --- a/packages/frontend/src/components/MkSignin.input.vue +++ b/packages/frontend/src/components/MkSignin.input.vue @@ -36,7 +36,7 @@ SPDX-License-Identifier: AGPL-3.0-only v-model="username" :placeholder="isEmail ? i18n.ts.emailAddress : i18n.ts.username" :type="isEmail ? 'email' : 'text'" - :pattern="isEmail ? '^[^@]+@[^@]+$' : undefined" + :pattern="isEmail ? undefined : '^[^@]+$'" :spellcheck="false" :autocomplete="isEmail ? 'email' : 'username webauthn'" autofocus diff --git a/packages/frontend/src/components/MkSignin.password.vue b/packages/frontend/src/components/MkSignin.password.vue index cd003a39df..b940c349b0 100644 --- a/packages/frontend/src/components/MkSignin.password.vue +++ b/packages/frontend/src/components/MkSignin.password.vue @@ -6,17 +6,21 @@ SPDX-License-Identifier: AGPL-3.0-only