From 7ddb01226055fd82eecceaa49f8fedbdd14c2e78 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 31 Aug 2025 03:02:50 +0900 Subject: [PATCH] :v: --- locales/index.d.ts | 24 ++++ locales/ja-JP.yml | 6 + packages/frontend/src/pages/qr.read.vue | 156 +++++++++++++++++++----- 3 files changed, 158 insertions(+), 28 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 2b910df793..28d843535e 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -12569,6 +12569,30 @@ export interface Locale extends ILocale { * Fediverseで私をフォローしてください! */ "shareText": string; + /** + * カメラを選択 + */ + "chooseCamera": string; + /** + * ライト選択不可 + */ + "cannotToggleFlash": string; + /** + * ライトをオンにする + */ + "turnOnFlash": string; + /** + * ライトをオフにする + */ + "turnOffFlash": string; + /** + * コードリーダーを再開 + */ + "startQr": string; + /** + * コードリーダーを停止 + */ + "stopQr": string; }; } declare const locales: { diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 3de5ea60df..a80d4a0b7a 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -3366,3 +3366,9 @@ _qr: readTabTitle: "読み取る" shareTitle: "{name} {acct}" shareText: "Fediverseで私をフォローしてください!" + chooseCamera: "カメラを選択" + cannotToggleFlash: "ライト選択不可" + turnOnFlash: "ライトをオンにする" + turnOffFlash: "ライトをオフにする" + startQr: "コードリーダーを再開" + stopQr: "コードリーダーを停止" diff --git a/packages/frontend/src/pages/qr.read.vue b/packages/frontend/src/pages/qr.read.vue index 9e713a329e..d808cd8d82 100644 --- a/packages/frontend/src/pages/qr.read.vue +++ b/packages/frontend/src/pages/qr.read.vue @@ -11,26 +11,39 @@ SPDX-License-Identifier: AGPL-3.0-only '--MI-QrReadVideoHeight': 'min(calc(var(--MI-QrReadViewHeight) * 0.3), 512px)', }" > - -
- - - - -
- -
-
- +
+ +
+
+ + + + + + + +
+
+ + + + +
+ +
+
+ +
+