1 Star 0 Fork 37

詩與遠方/eSearch

forked from xsf-root/eSearch 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setting.html 37.86 KB
一键复制 编辑 原始数据 按行查看 历史
xsf-root 提交于 2022-07-19 10:19 . :sparkles:设置 通过文件选择器添加插件
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>eSearch - 设置</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="supported-color-schemes" content="light dark">
<link rel="stylesheet" type="text/css" href="css/root.css">
<link rel="stylesheet" type="text/css" href="css/setting.css">
<link rel="stylesheet" type="text/css" href="css/template.css">
<link rel="stylesheet" type="text/css" href="css/template2.css">
</head>
<body>
<div id="find">
<input type="text" name="查找" id="find_input" title="{查找}" autocomplete="off" autocorrect="off"
autocapitalize="off" spellcheck="false">
<div id="find_t"></div>
<button title="{上一个匹配}" id="find_b_last"><img src="./assets/icons/up.svg" class="icon"></button>
<button title="{下一个匹配}" id="find_b_next"><img src="./assets/icons/down.svg" class="icon"></button>
<button title="{关闭}" id="find_b_close"><img src="./assets/icons/close.svg" class="icon"></button>
</div>
<div id="tab_bar">
<a href="index.html" title="{主页面}">
<div id="main"><img src="./assets/icons/main.svg" class="icon"></div>
</a>
<a href="help.html" title="{帮助}">
<div id="help"><img src="./assets/icons/help.svg" class="icon"></div>
</a>
</div>
<div id="main">
<div id="menu"></div>
<div id="setting_main">
<div id="setting_item">
<h1>
<t>启动</t>
</h1>
<h2>
<t>开机自启动</t>
</h2>
<group-b>
<lock-b id="autostart"></lock-b>
<t>开机自启动</t>
</group-b>
<h2>
<t>启动提示</t>
</h2>
<group-b>
<lock-b id="启动提示"></lock-b>
<t>启动时系统通知提示启动</t>
</group-b>
</div>
<div id="setting_item">
<h1>
<t>语言</t>
</h1>
<button id="系统语言">
<t>使用系统语言</t>
</button>
<button id="语言重启">
<t>重启软件以生效</t>
</button>
<set-select name="" id="语言">
<div value="zh-HANS">简体中文</div>
<div value="zh-HANT">繁体中文</div>
<div value="en">English</div>
<div value="ar">عربي</div>
<div value="eo">Esperanto</div>
<div value="es">Español</div>
<div value="fr">Français</div>
<div value="ru">Русский</div>
</set-select>
</div>
<div id="setting_item">
<h1>
<t>快捷键</t>
</h1>
<h2>
<t>全局</t>
</h2>
<div id="快捷键">
<div>
<hot-keys name="自动识别" value=""></hot-keys>
<hot-keys name="截屏搜索" value=""></hot-keys>
<hot-keys name="选中搜索" value=""></hot-keys>
<hot-keys name="剪贴板搜索" value=""></hot-keys>
<hot-keys name="快速截屏" value=""></hot-keys>
<hot-keys name="主页面" value=""></hot-keys>
</div>
</div>
<h2>
<t>截屏</t>
</h2>
<div>
<hot-keys name="关闭" value=""></hot-keys>
<hot-keys name="OCR(文字识别)" value=""></hot-keys>
<hot-keys name="以图搜图" value=""></hot-keys>
<hot-keys name="QR码" value=""></hot-keys>
<hot-keys name="图像编辑" value=""></hot-keys>
<hot-keys name="其他应用打开" value=""></hot-keys>
<hot-keys name="放在屏幕上" value=""></hot-keys>
<hot-keys name="复制" value=""></hot-keys>
<hot-keys name="保存" value=""></hot-keys>
<hot-keys name="复制颜色" value=""></hot-keys>
</div>
</div>
<div id="setting_item">
<h1>
<t>主搜索功能</t>
</h1>
<h2>
<t>自动搜索排除</t>
</h2>
<comment>
<t>若选中的文字符合文本框的规则,将使用截屏搜索而不是选择搜索</t>
</comment>
<textarea id="自动搜索排除" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
title="{换行新建项目,支持正则表达式}"></textarea>
<div id="linux_selection" style="display: none;">
<h2>
<t>剪贴板搜索</t>
</h2>
<group-b>
<lock-b id="剪贴板选区搜索"></lock-b>
<t>使用选区内容</t>
</group-b>
</div>
</div>
<div id="setting_item">
<h1>
<t>全局样式</t>
</h1>
<h2>
<t>毛玻璃效果</t>
</h2>
<t>模糊</t>
<range-b out="true" id="模糊" step="1" min="0" max="50" text="px"></range-b out="true">
<br>
<t>不透明度</t>
<range-b out="true" id="不透明度" step="1" min="0" max="100" text="%"></range-b out="true">
<div class="blur">
<img src="./assets/sample_picture.svg" alt="" class="blur_p">
<div class="blur_c"></div>
</div>
<h2>
<t>深色模式</t>
</h2>
<set-select name="" id="深色模式">
<div value="system">
<t>跟随系统</t>
</div>
<div value="light">
<t>浅色</t>
</div>
<div value="dark">
<t>深色</t>
</div>
</set-select>
<h2>
<t>全局缩放</t>
</h2>
<range-b out="true" min="0.1" max="3" id="全局缩放" step="0.05"></range-b out="true">
<h2>
<t>字体</t>
</h2>
<t>主要字体</t>
<comment>
<t>(适用于主页面等文字字体)</t>
</comment>
<div id="主要字体"><input type="text" spellcheck="false"></div>
<t>等宽字体</t>
<comment>
<t>(适用于截屏时数字、颜色代码等字体)</t>
</comment>
<div id="等宽字体"><input type="text" spellcheck="false"></div>
</div>
<div id="setting_item">
<h1>
<t>工具栏</t>
</h1>
<h2>
<t>工具栏跟随</t>
</h2>
<set-select id="工具栏跟随">
<div value="展示内容优先">
<t>展示内容优先</t>
</div>
<div value="效率优先">
<t>效率优先</t>
</div>
</set-select>
<h2>
<t>按钮大小</t>
</h2>
<t>按钮</t>
<range-b out="true" id="按钮大小" step="1" min="1" max="80" text="px"></range-b out="true">
</br>
<t>图标比例</t>
<range-b out="true" id="按钮图标比例" step="0.01" min="0.01" max="1" value="0.7"></range-b out="true">
</div>
<div id="setting_item">
<h1>
<t>取色器</t>
</h1>
<h2>
<t>大小</t>
</h2>
<t>取色器大小</t>
<range-b out="true" id="取色器大小" step="2" min="1" max="31"></range-b out="true">
</br>
<t>像素大小</t>
<range-b out="true" id="像素大小" min="1" max="10" text="px"></range-b out="true">
<div class="point_color_f">
<div id="point_color"></div>
</div>
<h2>
<t>默认格式</t>
</h2>
<set-select id="取色器默认格式">
<div value="HEX">HEX</div>
<div value="RGB">RGB</div>
<div value="HSL">HSL</div>
<div value="HSV">HSV</div>
<div value="CMYK">CMYK</div>
</set-select>
</div>
<div id="setting_item">
<h1>
<t>框选</t>
</h1>
<h2>
<t>框选颜色</t>
</h2>
<t>遮罩颜色</t>
<div id="遮罩颜色"><span></span><input type="text" spellcheck="false"></div>
<t>选区颜色</t>
<div id="选区颜色"><span></span><input type="text" spellcheck="false"></div>
<h2>
<t>光标</t>
</h2>
<set-select id="光标">
<div value="以(0,0)为起点">
<t>以(0,0)为起点</t>
</div>
<div value="以(1,1)为起点">
<t>以(1,1)为起点</t>
</div>
</set-select>
<h2>
<t>大小坐标</t>
</h2>
<group-b>
<lock-b id="显示四角坐标"></lock-b>
<t>显示四角坐标</t>
</group-b>
<comment>
<t>(截屏框选附近除了框选大小,还会加上左上角和右下角坐标)</t>
</comment>
<h2>
<t>框选后默认操作</t>
</h2>
<comment>
<t>框选完鼠标松开一瞬间,执行操作</t>
</comment>
<set-select name="" id="框选后默认操作">
<div value="no">
<t></t>
</div>
<div value="ocr" title="{OCR(文字识别)}">
<img src="./assets/icons/ocr.svg" class="icon" style="height: 24px;display: block;">
</div>
<div value="search" title="{以图搜图}">
<img src="./assets/icons/search.svg" class="icon" style="height: 24px;display: block;">
</div>
<div value="QR" title="{QR码}">
<img src="./assets/icons/scan.svg" class="icon" style="height: 24px;display: block;">
</div>
<div value="draw" title="{标记}">
<img src="./assets/icons/draw.svg" class="icon" style="height: 24px;display: block;">
</div>
<div value="open" title="{其他应用打开}">
<img src="./assets/icons/open.svg" class="icon" style="height: 24px;display: block;">
</div>
<div value="ding" title="{放在屏幕上}">
<img src="./assets/icons/ding.svg" class="icon" style="height: 24px;display: block;">
</div>
<div value="copy" title="{复制}">
<img src="./assets/icons/copy.svg" class="icon" style="height: 24px;display: block;">
</div>
<div value="save" title="{保存}">
<img src="./assets/icons/save.svg" class="icon" style="height: 24px;display: block;">
</div>
</set-select>
<h2>
<t>自动框选</t>
</h2>
<comment>
<t>使用OpenCV自动识别边缘轮廓(测试版)</t>
</comment>
<br>
<group-b>
<lock-b id="自动框选"></lock-b>
<t>启用自动框选</t>
</group-b>
<details>
<summary>
<t>边缘识别高级设置</t>
</summary>
<t>最小阈值</t>
<range-b out="true" id="框选最小阈值" min="0" max="255"></range-b out="true">
<br>
<t>最大阈值</t>
<range-b out="true" id="框选最大阈值" min="0" max="255"></range-b out="true">
</details>
</div>
<div id="setting_item">
<h1>
<t>图像编辑</t>
</h1>
<h2>
<t>默认属性</t>
</h2>
<t>填充颜色</t><input id="填充颜色" type="text" spellcheck="false">
<br>
<t>边框颜色</t><input id="边框颜色" type="text" spellcheck="false">
<br>
<t>边框宽度</t>
<range-b out="true" id="边框宽度" min="0" max="20" text="px"></range-b out="true">
<br>
<t>画笔颜色</t><input id="画笔颜色" type="text" spellcheck="false">
<br>
<t>画笔粗细</t>
<range-b out="true" id="画笔粗细" min="0" max="20" text="px"></range-b out="true">
<h2>
<t>复制偏移</t>
</h2>
<comment>
<t>复制完一个元素后,为了分辨,可以让其偏移</t>
</comment>
<br>
<t>x轴</t>
<range-b out="true" id="复制dx" min="0" max="50" text="px"></range-b out="true">
<br>
<t>y轴</t>
<range-b out="true" id="复制dy" min="0" max="50" text="px"></range-b out="true">
</div>
<div id="setting_item">
<h1>
<t>插件</t>
</h1>
<button id="plugin_b"><img src="./assets/icons/add.svg" class="icon"></button>
<textarea id="plugin" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
placeholder="{文件}"></textarea>
</div>
<div id="setting_item">
<h1>
<t>贴图</t>
</h1>
<h2>
<t>窗口变换</t>
</h2>
<comment>
<t>变换使用 CSS 代码</t>
</comment>
<textarea id="tran_css" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
placeholder="transform: rotateY(180deg);"></textarea>
</div>
<div id="setting_item">
<h1>
<t>快速截屏</t>
</h1>
<t>保存到</t>
<set-select id="快速截屏">
<div value="clip">
<t>剪贴板</t>
</div>
<div value="path">
<t>目录</t>
</div>
</set-select>
<input type="text" name="快速截屏路径" id="快速截屏路径" spellcheck="false"><button id="获取保存路径">
<t>获取保存路径</t>
</button>
</div>
<div id="setting_item">
<h1>
<t>录屏</t>
</h1>
<comment>
<t>凡是麦克风和摄像头,都应该当成开着的</t>
</comment>
<h2>
<t>自动录制</t>
</h2>
<group-b>
<lock-b id="开启自动录制"></lock-b>
<t>开启自动录制</t>
</group-b>
<range-b out="true" id="自动录制延时" min="0" max="10" text="s" step="1"></range-b out="true">
<h2>
<t>录制</t>
</h2>
<t>视频比特率</t>
<range-b out="true" id="视频比特率" min="1" max="40" text="Mbps" step="0.5"></range-b out="true">
<h2>
<t>提示</t>
</h2>
<group-b>
<lock-b id="开启键盘按键提示"></lock-b>
<t>开启键盘按键提示</t>
</group-b>
<br>
<group-b>
<lock-b id="开启鼠标按键提示"></lock-b>
<t>开启鼠标按键提示</t>
</group-b>
<br>
<group-b>
<lock-b id="开启光标提示"></lock-b>
<t>开启光标提示</t>
</group-b>
<h3>
<t>光标提示样式</t>
</h3>
<textarea id="cursor_css" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
placeholder="background-color: #ff08;"></textarea>
<h2>
<t>摄像头</t>
</h2>
<group-b>
<lock-b id="默认开启摄像头"></lock-b>
<t>默认开启</t>
</group-b>
<group-b>
<lock-b id="记录摄像头开启状态"></lock-b>
<t>记录开启状态</t>
</group-b>
<br>
<group-b>
<lock-b id="摄像头镜像"></lock-b>
<t>镜像</t>
</group-b>
<h2>
<t>音频</t>
</h2>
<group-b>
<lock-b id="默认开启音频"></lock-b>
<t>默认开启</t>
</group-b>
<group-b>
<lock-b id="记录音频开启状态"></lock-b>
<t>记录开启状态</t>
</group-b>
<h2>
<t>转换</t>
</h2>
<comment>
<t>使用 FFmpeg 对录制的视频进行转换工作</t>
</comment>
<br>
<button id="下载ffmpeg">
<t>下载 FFmpeg</t>
</button>
<t>FFmpeg 位置</t><input type="text" spellcheck="false" id="ffmpeg_path" placeholder="{文件}"><button
id="ffmpeg_path_b"><img src="./assets/icons/file.svg" class="icon"></button>
<h3>
<t>自动转换</t>
</h3>
<group-b>
<lock-b id="开启自动转换"></lock-b>
<t>开启自动转换</t>
</group-b>
<br>
<t>输出格式</t><input id="格式" type="text" spellcheck="false" name="格式">
<br>
<t>码率</t><input type="number" name="码率" id="码率">Mbps
<br>
<t>帧率</t><input type="number" name="帧率" id="帧率">
<br>
<t>其他参数</t><input type="text" name="其他参数" id="ff其他参数">
<h3>Gif</h3>
<group-b>
<lock-b id="高质量gif"></lock-b>
<t>高质量 Gif</t>
<comment>
<t>(转换时速度会很慢)</t>
</comment>
</group-b>
</div>
<div id="setting_item">
<h1>
<t>保存</t>
</h1>
<t>文件名称</t><input type="text" name="保存文件名称前缀" id="保存文件名称前缀" spellcheck="false"
style="width: 1em;"><input type="text" name="保存文件名称时间" id="保存文件名称时间" placeholder="{时间}"
spellcheck="false"><input type="text" name="保存文件名称后缀" id="保存文件名称后缀" style="width: 1em;"
spellcheck="false">
<p>
<t>预览:</t>
</p>
<p id="保存文件名称_p"></p>
<details>
<summary>
<t>时间代码</t>
</summary>
YYYY: <t>四位数年</t>(2022);
YY: <t>末两位年</t>(22);
MM: <t></t>(01);
M: <t></t>(1);
DD: <t></t>(01);
D: <t></t>(1);
d: <t>星期</t>(0~6);
HH: <t>24小时制小时</t>(01);
H: <t>24小时制小时</t>(18);
hh: <t>12小时制小时</t>(06);
h: <t>12小时制小时</t>(6);
mm: <t></t>(01);
m: <t></t>(1);
ss: <t></t>(01);
s: <t></t>(1);
S: <t>毫秒</t>(500);
</details>
<h2>
<t>默认格式</t>
</h2>
<set-select name="" id="默认格式">
<div value="png">png</div>
<div value="jpg">jpg</div>
<div value="svg">svg</div>
</set-select>
<br>
<t>jpg质量</t>
<range-b out="true" id="jpg质量" min="0" max="1.00" step="0.01"></range-b out="true">
</div>
<div id="setting_item">
<h1>
<t>编辑器</t>
</h1>
<h2>
<t>字体</t>
</h2>
<t>字体大小</t>
<range-b out="true" id="字体大小" min="0" max="100" step="1" value="16"></range-b out="true">
<group-b>
<lock-b id="记住字体大小"></lock-b>
<t>记住主页面字体大小</t>
</group-b>
<h2>
<t>样式</t>
</h2>
<t>Tab制表符宽度</t>
<range-b out="true" id="tab" min="1" max="8" step="1" value="2" text="字符"></range-b out="true">
<br>
<t>光标动画时间</t>
<range-b out="true" id="光标动画" min="0" max="0.5" step="0.01" value="0.05" text="秒"></range-b out="true">
<h2>
<t>更多</t>
</h2>
<group-b>
<lock-b id="换行"></lock-b>
<t>自动换行</t>
</group-b>
<br>
<group-b>
<lock-b id="拼写检查"></lock-b>
<t>拼写检查</t>
</group-b>
<br>
<group-b>
<lock-b id="行号"></lock-b>
<t>行号</t>
</group-b>
</div>
<div id="setting_item">
<h1>
<t>搜索</t>
</h1>
<h2>
<t>自动</t>
</h2>
<group-b>
<lock-b id="自动搜索"></lock-b>
<t>自动搜索</t>
</group-b>
<comment>
<t>(识屏或直接打开主页面,若文字为一行,则自动搜索)</t>
</comment>
</br>
<group-b>
<lock-b id="自动打开链接"></lock-b>
<t>自动打开链接</t>
</group-b>
</br>
<t>自动搜索中文占比</t>
<comment>
<t>(在中英混合中,数值越小,则整段文字越容易被程序认为是中文主要)</t>
</comment>
<range-b out="true" id="自动搜索中文占比" min="0.02" max="1.00" step="0.01"></range-b out="true">
<h2>
<t>文字搜索引擎</t>
</h2>
<h3>
<t>搜索引擎</t>
</h3>
<textarea id="搜索引擎"
placeholder="{百度}, https://www.baidu.com/s?wd=%s&#13;Google, https://www.google.com/search?q=%s"
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
title="{换行新建项目,%s代替关键字}"></textarea>
<h3>
<t>翻译引擎</t>
</h3>
<textarea id="翻译引擎" placeholder="Google, https://translate.google.cn/?op=translate&text=%s"
autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"
title="{换行新建项目,%s代替关键字}"></textarea>
<h3>
<t>默认引擎</t>
</h3>
<group-b>
<lock-b id="记住引擎"></lock-b>
<t>记住引擎选择</t>
</group-b>
<div name="" id="默认搜索引擎div">
</div>
<div name="" id="默认翻译引擎div">
</div>
<h2>
<t>图像搜索引擎</t>
</h2>
<set-select name="" id="图像搜索引擎">
<div value="baidu">
<t>百度</t>
</div>
<div value="yandex">Yandex</div>
<div value="google">Google</div>
</set-select>
<group-b>
<lock-b id="记住识图引擎"></lock-b>
<t>记住引擎选择</t>
</group-b>
<h2>
<t>浏览器中打开</t>
</h2>
<group-b>
<lock-b id="浏览器中打开"></lock-b>
<t>浏览器中打开</t>
</group-b>
<comment>
<t>(点击搜索或翻译按钮后,将在系统默认浏览器打开搜索结果,否则在一个新的软件窗口打开)</t>
</comment>
<br>
<group-b>
<lock-b id="搜索窗口自动关闭"></lock-b>
<t>浏览器打开后自动关闭标签页</t>
</group-b>
<br>
<group-b>
<lock-b id="标签缩小"></lock-b>
<t>标签缩小</t>
</group-b>
<comment>
<t>(标签将只显示图标,悬浮查看标题,中键或右键关闭)</t>
</comment>
<br>
<group-b>
<lock-b id="标签灰度"></lock-b>
<t>标签图标灰度</t>
</group-b>
<comment>
<t>(标签图标将以灰度图片展示,减少多余颜色的干扰)</t>
</comment>
<h2>清除数据</h2>
<button id="clear_storage">Cookie 等存储数据</button>
<button id="clear_cache">缓存</button>
</div>
<div id="setting_item">
<h1>
<t>文字识别(OCR)</t>
</h1>
<set-select name="" id="OCR类型">
<div value="离线">
<t>离线OCR</t>
</div>
<div value="baidu">
<t>百度</t>
</div>
<div value="youdao">
<t>有道</t>
</div>
</set-select>
<group-b>
<lock-b id="记住OCR引擎"></lock-b>
<t>记住引擎选择</t>
</group-b>
<br>
<group-b>
<lock-b checked id="离线切换"></lock-b>
<t>离线时切换离线OCR</t>
</group-b>
<h2>
<t>离线OCR</t>
</h2>
<group-b>
<lock-b checked id="检查OCR"></lock-b>
<t>OCR检测</t>
</group-b>
<comment>
<t>(每次启动时都提示OCR服务是否安装或开启)</t>
</comment>
<br>
<t>det模型</t><input type="text" spellcheck="false" id="ocr_det" placeholder="{目录}"><button
id="ocr_det_b">
<img src="./assets/icons/file.svg" class="icon">
</button>
<br>
<t>rec模型</t><input type="text" spellcheck="false" id="ocr_rec" placeholder="{目录}"><button
id="ocr_rec_b">
<img src="./assets/icons/file.svg" class="icon">
</button>
<br>
<t>字典</t><input type="text" spellcheck="false" id="ocr_字典" placeholder="{位置}"><button id="ocr_字典_b">
<img src="./assets/icons/file.svg" class="icon">
</button>
<br>
<button id="下载离线OCR">
<t>下载离线OCR</t>
</button>
<button id="删除离线OCR">
<t>删除离线OCR</t>
</button>
<h2>
<t>在线OCR</t>
</h2>
<details id="baidu_details">
<summary>
<t>百度</t>
</summary>
<t>类型:</t>
<comment>
<t>位置版不起实质效果,但可以扩充免费使用次数:)</t>
</comment>
<set-select name="" id="baidu_ocr_url">
<div value="https://aip.baidubce.com/rest/2.0/ocr/v1/accurate_basic">
<t>高精度版</t>
</div>
<div value="https://aip.baidubce.com/rest/2.0/ocr/v1/accurate">
<t>高精度含位置版</t>
</div>
<div value="https://aip.baidubce.com/rest/2.0/ocr/v1/general_basic">
<t>标准版</t>
</div>
<div value="https://aip.baidubce.com/rest/2.0/ocr/v1/general">
<t>标准含位置版</t>
</div>
<div value="https://aip.baidubce.com/rest/2.0/ocr/v1/handwriting">
<t>手写文字</t>
</div>
<div value="https://aip.baidubce.com/rest/2.0/ocr/v1/formula">
<t>公式</t>
</div>
</set-select>
<t>API Key:</t><input type="text" spellcheck="false" id="baidu_ocr_id">
<br>
<t>Secret Key:</t><input type="text" spellcheck="false" id="baidu_ocr_secret">
</details>
<details id="youdao_details">
<summary>
<t>有道</t>
</summary>
<t>应用ID:</t><input type="text" spellcheck="false" id="youdao_ocr_id">
<br>
<t>应用秘钥:</t><input type="text" spellcheck="false" id="youdao_ocr_secret">
</details>
</div>
<div id="setting_item">
<h1>
<t>历史记录</t>
</h1>
<h2>
<t>搜索</t>
</h2>
<group-b>
<lock-b name="" id="历史记录_b" checked></lock-b>
<t>保留历史记录</t>
</group-b>
</br>
<group-b>
<lock-b name="" id="清除历史记录"></lock-b>
<t>自动清除历史记录</t>
</group-b> <input type="number" min="0" id="his_d">
<t></t> <input type="number" min="1" id="his_h">
<t>小时</t>
<br>
<button id="clear_his">
<t>清空所有文字记录</t>
</button>
<h2>
<t>日期格式</t>
</h2>
<input type="text" id="时间格式" placeholder="时间格式" spellcheck="false">
</div>
<div id="setting_item">
<h1>
<t>代理</t>
</h1>
<group-b>
<lock-b name="" id="代理"></lock-b>
<t>开启代理</t>
</group-b>
</br>
<t>pac文件:</t>
<input type="text" spellcheck="false" id="pacScript">
</br>
<t>代理规则:</t>
<input type="text" spellcheck="false" id="proxyRules">
</br>
<t>排除规则:</t>
<input type="text" spellcheck="false" id="proxyBypassRules">
</div>
<div id="setting_item">
<h1>
<t>自动关闭窗口</t>
</h1>
<t>失去焦点后自动关闭</t>
<group-b>
<lock-b name="" id="主页面失焦"></lock-b>
<t>主页面</t>
</group-b>
</div>
<div id="setting_item">
<h1>
<t>高级</t>
</h1>
<h2>
<t>高级设置</t>
</h2>
<t>直接编辑设置源文件,更多自定义设置</t>
<comment>
<t>(需要JSON知识)</t>
</comment>
<br>
<button id="打开config">
<t>打开设置源文件</t>
</button>
<br>
<button id="set_default_setting">
<t>恢复默认设置</t>
</button>
<br>
<group-b>
<lock-b id="give_up_setting_b"></lock-b>
<t>不保存本次设置值</t>
</group-b>
<comment>
<t>(若不清楚刚才更改了什么设置,请选中)</t>
</comment>
<h2>
<t>硬件加速</t>
</h2>
<group-b>
<lock-b name="" id="硬件加速"></lock-b>
<t>启用硬件加速</t>
</group-b>
<comment>
<t>(如果可用,且更改需要重启软件生效)</t>
</comment>
<h2>
<t>检查更新</t>
</h2>
<group-b>
<lock-b name="" id="检查更新"></lock-b>
<t>启用检查更新</t>
</group-b>
<comment>
<t>(仅在周末检查,且只在设置打开时检查)</t>
</comment>
<h2 id="path_info">
<t>位置信息</t>
</h2>
<t>配置目录:</t><input type="text" spellcheck="false" id="user_data_path">
<div id="user_data_divs">
<button id="reload">
<t>重启软件以生效</t>
</button>
<button id="move_user_data">
<t>复制文件</t>
</button>
</div>
<h2 id="versions_info">
<t>版本信息</t>
</h2>
</div>
<div id="setting_item">
<h1>
<t>关于</t>
</h1>
<div id="about">
<img src="./assets/icon.svg" alt="Logo">
<div id="about_main">
<div id="name"></div>
<button id="version" title="{检查更新}"></button>
<div id="description"></div>
</div>
<div id="update_info"></div>
<div id="info"></div>
</div>
</div>
</div>
</div>
</body>
<script src="js/setting_preload.js"></script>
<script src="lib/template.js"></script>
<script src="lib/template2.js"></script>
<script src="js/set.js"></script>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/n_aiya/eSearch.git
git@gitee.com:n_aiya/eSearch.git
n_aiya
eSearch
eSearch
master

搜索帮助