impr:change the word and article Settings to pop-up boxes

This commit is contained in:
Zyronon
2025-12-03 20:03:17 +08:00
committed by GitHub
parent 9779c7402e
commit 6a5156ae36
15 changed files with 177 additions and 911 deletions

View File

@@ -2,7 +2,8 @@
import {defineAsyncComponent, onMounted, watch} from "vue";
import {useSettingStore} from "@/stores/setting.ts";
import { jump2Feedback } from "@/utils";
import {jump2Feedback} from "@/utils";
import {useDisableEventListener} from "@/hooks/event.ts";
const Dialog = defineAsyncComponent(() => import('@/components/dialog/Dialog.vue'))
@@ -17,41 +18,33 @@ watch(() => settingStore.load, (n) => {
}
}, {immediate: true})
useDisableEventListener(() => show)
</script>
<template>
<Dialog v-model="show"
title="提示"
footer
:closeOnClickBg="false"
cancel-button-text="不再提醒"
confirm-button-text="关闭"
@cancel="settingStore.conflictNotice = false"
<Dialog
v-model="show"
title="重要提示"
footer
:closeOnClickBg="false"
cancel-button-text="不再提醒"
confirm-button-text="关闭"
@cancel="settingStore.conflictNotice = false"
>
<div class="card w-120 center flex-col color-main py-0 mb-0">
<div>
<div class="text">
<div>
1 如果您安装了 <span class="font-bold text-red">调速 Vim</span> 等插件/脚本将导致本网站无法正常使用
</div>
<div>
因为它们会强行接管键盘按下事件<span class="font-bold text-red">导致使用本网站时按 'A' 'S' 等等按钮无反应</span>
</div>
</div>
<div class="pl-4">
<div>在对应插件/脚本的设置里面排除本网站</div>
<div>临时禁用对应插件/脚本</div>
<div>请打开浏览器无痕模式尝试</div>
</div>
<div class="text mt-2">
2如果您未安装以上插件/脚本还是无法使用
</div>
<div class="pl-4">
<div>请打开浏览器无痕模式尝试</div>
<div>无痕模式下无法正常使用请给<span class="color-link mx-1 cp" @click="jump2Feedback">点此</span>给作者反馈
</div>
</div>
<div class="card w-150 center flex-col color-main py-0 mb-0">
<div class="text">
如果您安装了 <span class="font-bold text-red">调速 Vim</span> 等插件/脚本它们会拦截键盘按下事件<span
class="font-bold text-red">导致在本网站练习时按 'A' 'S' 'D' 等键无反应</span>您可以根据以下步骤解决冲突
</div>
<ul class="m-0">
<li>用浏览器无痕模式打开本网站确认能否正常输入</li>
<li>无痕模式下无法输入请给<span class="color-link mx-1 cp" @click="jump2Feedback">点此</span>反馈</li>
<li>无痕模式下可以输入则是插件/脚本导致的冲突</li>
<li>临时禁用对应插件/脚本或在对应插件/脚本的设置里面排除本网站</li>
<li>可安装 <a
href="https://chromewebstore.google.com/detail/one-click-extensions-mana/pbgjpgbpljobkekbhnnmlikbbfhbhmem" target="_blank">此插件</a> 来快速激活禁用其他插件</li>
</ul>
</div>
</Dialog>
</template>