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 266c7b18a936..6a0e8e2d1034 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 f8f99223a25e..80fc646c2f23 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 a9692b211401..cdc6aa5134ed 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 cd003a39df32..b940c349b013 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