1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-30 15:58:19 +09:00
This commit is contained in:
syuilo 2024-03-27 15:42:33 +09:00
parent 991f973272
commit c9b4801e5b
3 changed files with 18 additions and 13 deletions

13
locales/index.d.ts vendored
View File

@ -4936,6 +4936,10 @@ export interface Locale extends ILocale {
* 使 * 使
*/ */
"useBackupCode": string; "useBackupCode": string;
/**
*
*/
"open": string;
"_bubbleGame": { "_bubbleGame": {
/** /**
* *
@ -9848,14 +9852,13 @@ export interface Locale extends ILocale {
*/ */
"title": string; "title": string;
/** /**
* * {host}
*
*/ */
"description": string; "description": ParameterizedString<"host">;
/** /**
* {domain} *
*/ */
"trustThisDomain": ParameterizedString<"domain">; "trustThisDomain": string;
}; };
} }
declare const locales: { declare const locales: {

View File

@ -1230,6 +1230,7 @@ gameRetry: "リトライ"
notUsePleaseLeaveBlank: "使用しない場合は空欄にしてください" notUsePleaseLeaveBlank: "使用しない場合は空欄にしてください"
useTotp: "ワンタイムパスワードを使う" useTotp: "ワンタイムパスワードを使う"
useBackupCode: "バックアップコードを使う" useBackupCode: "バックアップコードを使う"
open: "開く"
_bubbleGame: _bubbleGame:
howToPlay: "遊び方" howToPlay: "遊び方"
@ -2624,5 +2625,5 @@ _urlPreviewSetting:
_externalNavigationWarning: _externalNavigationWarning:
title: "外部サイトに移動します" title: "外部サイトに移動します"
description: "別のサイトに移動しようとしています。\nリンク先の安全性を十分に確認した上で進んでください。" description: "{host}を離れて外部サイトに移動します"
trustThisDomain: "今後{domain}のリンクを信頼する" trustThisDomain: "このデバイスで今後このドメインを信頼する"

View File

@ -13,15 +13,15 @@ SPDX-License-Identifier: AGPL-3.0-only
</div> </div>
<div :class="$style.title">{{ i18n.ts._externalNavigationWarning.title }}</div> <div :class="$style.title">{{ i18n.ts._externalNavigationWarning.title }}</div>
</div> </div>
<div><Mfm :text="i18n.ts._externalNavigationWarning.description"/></div> <div><Mfm :text="i18n.tsx._externalNavigationWarning.description({ host: instanceName })"/></div>
<div class="_monospace" :class="$style.urlAddress">{{ url }}</div> <div class="_monospace" :class="$style.urlAddress">{{ url }}</div>
<div> <div>
<MkSwitch v-model="trustThisDomain">{{ i18n.tsx._externalNavigationWarning.trustThisDomain({ domain }) }}</MkSwitch> <MkSwitch v-model="trustThisDomain">{{ i18n.ts._externalNavigationWarning.trustThisDomain }}</MkSwitch>
</div> </div>
</div> </div>
<div :class="$style.buttons"> <div :class="$style.buttons">
<MkButton data-cy-modal-dialog-ok inline primary rounded @click="ok">{{ i18n.ts.ok }}</MkButton>
<MkButton data-cy-modal-dialog-cancel inline rounded @click="cancel">{{ i18n.ts.cancel }}</MkButton> <MkButton data-cy-modal-dialog-cancel inline rounded @click="cancel">{{ i18n.ts.cancel }}</MkButton>
<MkButton data-cy-modal-dialog-ok inline primary rounded @click="ok"><i class="ti ti-external-link"></i> {{ i18n.ts.open }}</MkButton>
</div> </div>
</div> </div>
</MkModal> </MkModal>
@ -34,6 +34,7 @@ import MkButton from '@/components/MkButton.vue';
import MkSwitch from '@/components/MkSwitch.vue'; import MkSwitch from '@/components/MkSwitch.vue';
import { i18n } from '@/i18n.js'; import { i18n } from '@/i18n.js';
import { defaultStore } from '@/store.js'; import { defaultStore } from '@/store.js';
import { instanceName } from '@/config';
type Result = string | number | true | null; type Result = string | number | true | null;
@ -119,8 +120,8 @@ onBeforeUnmount(() => {
} }
.urlAddress { .urlAddress {
padding: var(--margin); padding: 10px 14px;
border-radius: calc(var(--radius) / 2); border-radius: 8px;
border: 1px solid var(--divider); border: 1px solid var(--divider);
overflow-x: auto; overflow-x: auto;
white-space: nowrap; white-space: nowrap;
@ -130,6 +131,6 @@ onBeforeUnmount(() => {
display: flex; display: flex;
gap: 8px; gap: 8px;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: center; justify-content: right;
} }
</style> </style>