mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-21 21:45:11 +00:00
fix(frontend): mCaptchaを使用していてもbotプロテクションに関する警告が消えないのを修正 (#14390)
* fix(frontend): mCaptchaを使用していてもbotプロテクションに関する警告が消えないのを修正 * Update Changelog * refactor
This commit is contained in:
parent
37c9d91ba0
commit
046f2435b2
3 changed files with 15 additions and 20 deletions
|
@ -9,6 +9,7 @@
|
||||||
- Fix: Play編集時に公開範囲が「パブリック」にリセットされる問題を修正
|
- Fix: Play編集時に公開範囲が「パブリック」にリセットされる問題を修正
|
||||||
- Fix: ページ遷移に失敗することがある問題を修正
|
- Fix: ページ遷移に失敗することがある問題を修正
|
||||||
- Fix: iOSでユーザー名などがリンクとして誤検知される現象を抑制
|
- Fix: iOSでユーザー名などがリンクとして誤検知される現象を抑制
|
||||||
|
- Fix: mCaptchaを使用していてもbotプロテクションに関する警告が消えないのを修正
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
- Fix: WSの`readAllNotifications` メッセージが `body` を持たない場合に動作しない問題 #14374
|
- Fix: WSの`readAllNotifications` メッセージが `body` を持たない場合に動作しない問題 #14374
|
||||||
|
|
|
@ -7,7 +7,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<div ref="el" class="hiyeyicy" :class="{ wide: !narrow }">
|
<div ref="el" class="hiyeyicy" :class="{ wide: !narrow }">
|
||||||
<div v-if="!narrow || currentPage?.route.name == null" class="nav">
|
<div v-if="!narrow || currentPage?.route.name == null" class="nav">
|
||||||
<MkSpacer :contentMax="700" :marginMin="16">
|
<MkSpacer :contentMax="700" :marginMin="16">
|
||||||
<div class="lxpfedzu">
|
<div class="lxpfedzu _gaps">
|
||||||
<div class="banner">
|
<div class="banner">
|
||||||
<img :src="instance.iconUrl || '/favicon.ico'" alt="" class="icon"/>
|
<img :src="instance.iconUrl || '/favicon.ico'" alt="" class="icon"/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -61,10 +61,10 @@ const narrow = ref(false);
|
||||||
const view = ref(null);
|
const view = ref(null);
|
||||||
const el = ref<HTMLDivElement | null>(null);
|
const el = ref<HTMLDivElement | null>(null);
|
||||||
const pageProps = ref({});
|
const pageProps = ref({});
|
||||||
let noMaintainerInformation = isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail);
|
const noMaintainerInformation = computed(() => isEmpty(instance.maintainerName) || isEmpty(instance.maintainerEmail));
|
||||||
let noBotProtection = !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha && !instance.enableTurnstile;
|
const noBotProtection = computed(() => !instance.disableRegistration && !instance.enableHcaptcha && !instance.enableRecaptcha && !instance.enableTurnstile && !instance.enableMcaptcha);
|
||||||
let noEmailServer = !instance.enableEmail;
|
const noEmailServer = computed(() => !instance.enableEmail);
|
||||||
let noInquiryUrl = isEmpty(instance.inquiryUrl);
|
const noInquiryUrl = computed(() => isEmpty(instance.inquiryUrl));
|
||||||
const thereIsUnresolvedAbuseReport = ref(false);
|
const thereIsUnresolvedAbuseReport = ref(false);
|
||||||
const currentPage = computed(() => router.currentRef.value.child);
|
const currentPage = computed(() => router.currentRef.value.child);
|
||||||
|
|
||||||
|
@ -235,25 +235,22 @@ const menuDef = computed(() => [{
|
||||||
}],
|
}],
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
watch(narrow.value, () => {
|
|
||||||
if (currentPage.value?.route.name == null && !narrow.value) {
|
|
||||||
router.push('/admin/overview');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
ro.observe(el.value);
|
if (el.value != null) {
|
||||||
|
ro.observe(el.value);
|
||||||
narrow.value = el.value.offsetWidth < NARROW_THRESHOLD;
|
narrow.value = el.value.offsetWidth < NARROW_THRESHOLD;
|
||||||
|
}
|
||||||
if (currentPage.value?.route.name == null && !narrow.value) {
|
if (currentPage.value?.route.name == null && !narrow.value) {
|
||||||
router.push('/admin/overview');
|
router.replace('/admin/overview');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
onActivated(() => {
|
onActivated(() => {
|
||||||
narrow.value = el.value.offsetWidth < NARROW_THRESHOLD;
|
if (el.value != null) {
|
||||||
|
narrow.value = el.value.offsetWidth < NARROW_THRESHOLD;
|
||||||
|
}
|
||||||
if (currentPage.value?.route.name == null && !narrow.value) {
|
if (currentPage.value?.route.name == null && !narrow.value) {
|
||||||
router.push('/admin/overview');
|
router.replace('/admin/overview');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -198,9 +198,6 @@ const menuDef = computed(() => [{
|
||||||
}],
|
}],
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
watch(narrow, () => {
|
|
||||||
});
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
ro.observe(el.value);
|
ro.observe(el.value);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue