refactor(frontend): MkRadiosの指定をpropsから行うように (#16597)

* refactor(frontend): MkRadiosの指定をpropsから行うように

* spdx

* fix lint

* fix: mkradiosを動的slotsに対応させる

* fix: remove comment [ci skip]

* fix lint

* fix lint

* migrate

* rename

* fix

* fix

* fix types

* remove unused imports

* fix

* wip

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
This commit is contained in:
かっこかり
2026-01-14 14:02:50 +09:00
committed by GitHub
parent 153ebd4392
commit b941c896aa
34 changed files with 505 additions and 284 deletions

View File

@@ -19,13 +19,17 @@ SPDX-License-Identifier: AGPL-3.0-only
</template>
<div class="_gaps_m">
<MkRadios v-model="botProtectionForm.state.provider">
<option value="none">{{ i18n.ts.none }} ({{ i18n.ts.notRecommended }})</option>
<option value="hcaptcha">hCaptcha</option>
<option value="mcaptcha">mCaptcha</option>
<option value="recaptcha">reCAPTCHA</option>
<option value="turnstile">Turnstile</option>
<option value="testcaptcha">testCaptcha</option>
<MkRadios
v-model="botProtectionForm.state.provider"
:options="[
{ value: 'none', label: `${i18n.ts.none} (${i18n.ts.notRecommended})` },
{ value: 'hcaptcha', label: 'hCaptcha' },
{ value: 'mcaptcha', label: 'mCaptcha' },
{ value: 'recaptcha', label: 'reCAPTCHA' },
{ value: 'turnstile', label: 'Turnstile' },
{ value: 'testcaptcha', label: 'testCaptcha' },
]"
>
</MkRadios>
<template v-if="botProtectionForm.state.provider === 'hcaptcha'">