nex_squid/docs/screenshot-mock.html

191 lines
13 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--primary: #f26a33; --primary-strong: #d94f1f; --primary-soft: #fff0e7; --primary-tint: #fff7f2;
--primary-rgb: 242,106,51; --ink: #342019; --muted: #7d6256; --muted-soft: #a98f80;
--line: rgba(89,51,34,.1); --paper: #fbf7f2; --canvas: #f5eee7;
--green: #19a974; --green-soft: #e5f8f0; --orange: #ee844c; --red: #e65a62;
}
body { width: 1320px; background: var(--canvas); color: var(--ink);
font-family: "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; font-weight: 540;
padding: 30px 40px 44px; }
h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.sub { color: var(--muted); font-size: 13.5px; margin-bottom: 24px; }
h2 { font-size: 15px; font-weight: 700; margin: 30px 0 10px; color: var(--primary-strong); }
h2 span { color: var(--muted-soft); font-weight: 540; font-size: 12.5px; margin-left: 8px; }
.app { background: #fffdfb; border: 1px solid var(--line); border-radius: 16px;
box-shadow: 0 14px 34px rgba(89,51,34,.08); padding: 26px 30px 24px; }
.eyebrow { color: var(--primary-strong); font-size: 12px; font-weight: 650; letter-spacing: .12em; }
.title { font-size: 22px; font-weight: 720; margin: 6px 0 4px; }
.desc { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.btn { border-radius: 10px; padding: 10px 18px; font-size: 13.5px; font-weight: 620;
border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn.primary { background: linear-gradient(145deg, #ff9664, var(--primary) 55%, var(--primary-strong));
color: #fff; border: none; box-shadow: 0 6px 14px rgba(var(--primary-rgb),.25); }
.btn.ghost { border-color: rgba(var(--primary-rgb),.3); color: var(--primary-strong); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; }
.chip { display:inline-block; font-size: 11.5px; border-radius: 999px; padding: 3px 10px; background: #fff;
border: 1px solid var(--line); color: var(--muted); }
.chip.ok { color: var(--green); border-color: rgba(25,169,116,.35); background: var(--green-soft); }
.main-card { border: 1px solid rgba(var(--primary-rgb),.25); border-radius: 14px; padding: 18px 22px;
background: linear-gradient(135deg, var(--primary-tint), #fff); display: flex; align-items: center; gap: 18px; }
.app-ic { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(145deg,#6ea8ff,#3f6fd8);
color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; flex: 0 0 auto;
box-shadow: 0 6px 14px rgba(63,111,216,.3); }
.main-card b { font-size: 15.5px; }
.main-card small { display: block; color: var(--muted); margin-top: 3px; font-size: 12.5px; line-height: 1.6; }
.kbd { font-family: Consolas, monospace; font-size: 11.5px; background: #fff; border: 1px solid var(--line);
border-bottom-width: 2.5px; border-radius: 6px; padding: 2px 8px; color: var(--ink); }
.items { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; margin-top: 14px; }
.item { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 12px 14px; }
.item b { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.item small { display: block; color: var(--muted-soft); font-size: 11.5px; margin-top: 6px; line-height: 1.6; }
.item .st { font-size: 10.5px; border-radius: 999px; padding: 1px 7px; margin-left: auto; }
.st.on { color: var(--green); background: var(--green-soft); }
.st.off { color: var(--muted-soft); background: rgba(89,51,34,.06); }
.hist { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.hist-h { display: flex; align-items: center; padding: 12px 16px 8px; font-size: 14px; font-weight: 700; }
.hist-h .acts { margin-left: auto; display: flex; gap: 8px; }
.hrow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px dashed var(--line); }
.thumb { width: 62px; height: 38px; border-radius: 7px; border: 1px solid var(--line); flex: 0 0 auto;
background: linear-gradient(135deg, #dfe8f5, #f6e8dd); position: relative; overflow: hidden; }
.thumb i { position: absolute; left: 6px; right: 6px; height: 3px; border-radius: 2px; background: rgba(52,32,25,.18); }
.thumb i:nth-child(1) { top: 8px; } .thumb i:nth-child(2) { top: 16px; width: 60%; right: auto; }
.thumb i:nth-child(3) { top: 24px; width: 78%; right: auto; }
.hrow .meta { flex: 1 1 auto; min-width: 0; }
.hrow .meta b { font-size: 13px; font-weight: 640; }
.hrow .meta small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: Consolas, monospace; }
.hrow .char { color: var(--muted-soft); font-size: 11.5px; flex: 0 0 auto; }
.fine { color: var(--muted-soft); font-size: 11.5px; margin-top: 10px; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
/* capture overlay mock */
.cap { background: linear-gradient(160deg, #2c2a33, #1c1b22); border-radius: 16px; padding: 30px 34px 26px;
position: relative; min-height: 460px; overflow: hidden; }
.fake-window { background: #f7f5f2; border-radius: 10px; box-shadow: 0 18px 44px rgba(0,0,0,.45); overflow: hidden; }
.fw-bar { background: #e9e5df; padding: 8px 12px; font-size: 12px; color: #6b6257; display: flex; gap: 6px; }
.fw-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6cdc2; }
.fw-body { padding: 14px 16px; }
.fw-line { height: 10px; border-radius: 4px; background: #ded8d0; margin-bottom: 10px; }
.dim { display: none; }
.sel { position: absolute; left: 74px; top: 84px; width: 560px; height: 300px; border: 2px solid var(--primary);
border-radius: 4px; box-shadow: 0 0 0 9999px rgba(20,18,24,.55); }
.handle { position: absolute; width: 9px; height: 9px; background: #fff; border: 2px solid var(--primary); border-radius: 2px; }
.sel .size { position: absolute; left: 0; top: -26px; background: var(--primary); color: #fff; font-size: 11.5px;
padding: 3px 9px; border-radius: 6px; font-family: Consolas, monospace; }
.toolbar { position: absolute; left: 74px; top: 402px; background: #fff; border-radius: 10px;
box-shadow: 0 10px 26px rgba(0,0,0,.35); display: flex; padding: 6px; gap: 4px; }
.tbtn { width: 34px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
font-size: 14px; color: #4a4238; }
.tbtn.hl { background: var(--primary-soft); color: var(--primary-strong); }
.tsep { width: 1px; background: var(--line); margin: 4px 4px; }
.ocr-pop { position: absolute; right: 40px; top: 84px; width: 360px; background: #fffdfb; border-radius: 12px;
box-shadow: 0 18px 44px rgba(0,0,0,.4); padding: 14px 16px; }
.ocr-pop h4 { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.ocr-pop h4 .tag { font-size: 10.5px; background: var(--green-soft); color: var(--green); border-radius: 999px; padding: 1px 8px; margin-left: auto; }
.ocr-text { margin-top: 10px; background: #f6f2ec; border-radius: 8px; padding: 10px 12px; font-size: 12.5px;
line-height: 1.7; color: var(--ink); max-height: 190px; overflow: hidden; }
.ocr-text .sel-hl { background: rgba(242,106,51,.22); border-radius: 3px; }
.ocr-acts { display: flex; gap: 8px; margin-top: 10px; }
</style>
</head>
<body>
<h1>Squid 小工具 · 截图识字(B1:snow-shot 引擎,纯离线 OCR)</h1>
<div class="sub">Squid 负责入口、快捷键、结果归档与设置;截图框选 / 标注 / 识字浮层由 snow-shot 完成(随包分发,进程解耦)。</div>
<h2>① Squid 内「小工具 › 截图识字」页 <span class="en">入口 + 设置 + 识别历史</span></h2>
<div class="app">
<div class="eyebrow">UTILITIES</div>
<div class="title">截图识字</div>
<div class="desc">框选屏幕任意区域:可标注、贴图、长截图、录屏,一键提取文字 —— 全程离线,画面不出本机。</div>
<div class="main-card">
<div class="app-ic">✂</div>
<div>
<b>截图识字引擎 · snow-shot 1.6.0 · 已就绪(离线识别)</b>
<small>识别模型已就位(PaddleOCR · 中文/英文,约 15 MB)· 更新:自动跟随 Squid 更新 · 许可:GPL-3(随包附协议)</small>
</div>
<div style="margin-left:auto; display:flex; gap:10px; align-items:center;">
<span style="font-size:12.5px;color:var(--muted)">快捷键 <span class="kbd">Ctrl</span> + <span class="kbd">Alt</span> + <span class="kbd">A</span></span>
<button class="btn primary">开始截图</button>
</div>
</div>
<div class="items">
<div class="item"><b>📥 保存位置 <span class="st on">接管</span></b>
<small>图片\Squid 截图<br>命名按时间自动<br><button class="btn sm" style="margin-top:6px">打开文件夹</button></small></div>
<div class="item"><b>🌙 跟随开机 <span class="st on">开</span></b>
<small>登录后热键即生效<br>未开也能从本页启动<br><button class="btn sm" style="margin-top:6px">设置</button></small></div>
<div class="item"><b>📋 识文自动复制 <span class="st on">开</span></b>
<small>点「提取文字」后自动进剪贴板<br>并记入下方历史<br><button class="btn sm" style="margin-top:6px">设置</button></small></div>
<div class="item"><b>🧩 划词翻译 <span class="st off">未装</span></b>
<small>需 B2 增强包 Umi-OCR<br>(HTTP 接口联动,可选)<br><button class="btn sm ghost" style="margin-top:6px">了解</button></small></div>
</div>
<div class="hist">
<div class="hist-h">识别历史 <small style="color:var(--muted-soft);font-weight:540;margin-left:8px">点行=重新复制文字 · 保留 30 天</small>
<div class="acts"><button class="btn sm">导出全部</button><button class="btn sm">清空</button></div></div>
<div class="hrow"><div class="thumb"><i></i><i></i><i></i></div>
<div class="meta"><b>今天 17:42 · 报价单截图</b><small>图片\Squid 截图\2026-11-25 174215.png</small></div>
<span class="char">326 字</span><button class="btn sm ghost">复制文字</button><button class="btn sm">打开图</button></div>
<div class="hrow"><div class="thumb"><i></i><i></i><i></i></div>
<div class="meta"><b>今天 15:08 · 报错弹窗</b><small>图片\Squid 截图\2026-11-25 150803.png</small></div>
<span class="char">88 字</span><button class="btn sm ghost">复制文字</button><button class="btn sm">打开图</button></div>
<div class="hrow"><div class="thumb"><i></i><i></i><i></i></div>
<div class="meta"><b>昨天 21:36 · 会议纪要长截图</b><small>图片\Squid 截图\2026-11-24 213644.png</small></div>
<span class="char">1,204 字</span><button class="btn sm ghost">复制文字</button><button class="btn sm">打开图</button></div>
</div>
<p class="fine">冷启动:首次按热键约 1 秒拉起引擎,之后常驻秒开;引擎崩溃不影响 Squid,托盘与本页都能重启它。</p>
</div>
<h2>② 截图中的浮层(snow-shot 实机风格) <span class="en">框选 → 标注工具条 → 提取文字结果卡</span></h2>
<div class="cap">
<div style="position:absolute; left:60px; top:60px; width:600px;">
<div class="fake-window">
<div class="fw-bar"><i></i><i></i><i></i> 发票明细 - 浏览器</div>
<div class="fw-body">
<div class="fw-line" style="width:88%"></div><div class="fw-line" style="width:70%"></div>
<div class="fw-line" style="width:92%"></div><div class="fw-line" style="width:55%"></div>
<div class="fw-line" style="width:80%"></div><div class="fw-line" style="width:64%;margin-bottom:0"></div>
</div>
</div>
</div>
<div class="dim"></div>
<div class="sel"><span class="size">560 × 300</span></div>
<div class="toolbar">
<span class="tbtn">✏</span><span class="tbtn">▭</span><span class="tbtn">→</span><span class="tbtn">M</span>
<span class="tbtn">▦</span><span class="tbtn">🔍</span>
<span class="tsep"></span>
<span class="tbtn hl">文</span><span class="tbtn">📌</span><span class="tbtn">⬇</span>
<span class="tsep"></span>
<span class="tbtn hl" style="width:auto;padding:0 10px;font-size:12px">完成 ✓</span><span class="tbtn">✕</span>
</div>
<div class="ocr-pop">
<h4>提取文字 <span class="tag">离线识别 · 0.6 秒</span></h4>
<div class="ocr-text">
电子发票(普通发票)<br>
发票号码:<span class="sel-hl">24502000000018234567</span><br>
开票日期:2026年11月20日<br>
购买方:某某科技有限公司<br>
金额合计:<span class="sel-hl">¥1,280.00</span> 税率 6%<br>
……
</div>
<div class="ocr-acts">
<button class="btn sm primary">复制全部</button>
<button class="btn sm">保留换行</button>
<button class="btn sm">合并段落</button>
<button class="btn sm" style="margin-left:auto">✕</button>
</div>
</div>
</div>
</body>
</html>