import { BilibiliRouter } from "@/router/BilibiliRouter"; import { UISwitch } from "@components/setting/components/ui-switch"; import type { PopsPanelContentConfig } from "@whitesev/pops/dist/types/src/components/panel/types/index.js"; import { UIInput } from "@components/setting/components/ui-input"; const SettingUISearch: PopsPanelContentConfig = { id: "panel-search", title: "搜索", isDefault() { return BilibiliRouter.isSearch(); }, views: [ { type: "container", text: "", views: [ { type: "deepMenu", text: "功能", views: [ { type: "container", text: "", views: [ UISwitch("搜索框自动获取焦点", "bili-search-inputAutoFocus", true, void 0, ""), UISwitch("美化搜索结果", "bili-search-beautifySearchResult", true, void 0, "重构搜索结果的样式"), UISwitch( "开启其它地区番剧搜索", "bili-search-enableOtherAreaSearchBangumi", false, void 0, "在搜索页面添加其它地区番剧搜索结果,需要解析服务器支持" ), ], }, { text: "搜索服务器", type: "container", views: [ UIInput( "香港", "bili-search-proxyApiServer-hk", "", "用于搜索番剧结果的代理", void 0, "bilibili优化.example.com" ), UIInput( "台湾", "bili-search-proxyApiServer-tw", "", "用于搜索番剧结果的代理", void 0, "bilibili优化.example.com" ), UIInput( "泰国/东南亚", "bili-search-proxyApiServer-tha-or-sea", "", "用于搜索番剧结果的代理", void 0, "bilibili优化.example.com" ), ], }, ], }, { type: "deepMenu", text: "覆盖点击事件", views: [ { type: "container", text: "", views: [ UISwitch("取消", "bili-search-cover-cancel", false, void 0, "点击取消按钮回退至上一页"), UISwitch( "搜索结果", "bili-search-cover-card-result-click-event", true, void 0, "修复点击搜索结果不跳转视频的问题" ), ], }, ], }, { text: "变量设置", type: "deepMenu", views: [ { text: "", type: "container", views: [ UISwitch("noCallApp", "bili-search-vue-prop-noCallApp", true, void 0, "noCallApp = true"), UISwitch("openAppDialog", "bili-search-vue-prop-openAppDialog", true, void 0, "openAppDialog = false"), ], }, ], }, ], }, ], }; export { SettingUISearch };