You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
ehentai-go/web/templates/index.html

39 lines
1.6 KiB

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<title>ehentai-go</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
font-family: ui-monospace, SFMono-Regular, Menlo, "DejaVu Sans Mono", monospace;
background: #0f172a;
color: #e2e8f0;
margin: 0;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
main { text-align: center; padding: 2rem; max-width: 36rem; }
h1 { font-size: 1.5rem; margin: 0 0 0.5rem; color: #a6e22e; }
p { font-size: 0.875rem; line-height: 1.7; color: #94a3b8; margin: 0.5rem 0; }
code { color: #f8f8f2; background: #1e293b; padding: 0.1rem 0.4rem; border-radius: 4px; }
ul { text-align: left; font-size: 0.875rem; line-height: 1.7; color: #cbd5e1; }
</style>
</head>
<body>
<main>
<h1>ehentai-go · running</h1>
<p>本服务只做一件事:接收浏览器油猴脚本推送过来的图片二进制,落盘到 <code>downloads/&lt;name&gt;/</code></p>
<p>UI 入口在 e-hentai 画廊页:把油猴脚本 <code>get-pre-download-infos.js</code> 装到 Tampermonkey,打开画廊页,点右上角 <code>Send & Push</code></p>
<ul>
<li><code>GET /healthz</code> — 连通性探针</li>
<li><code>POST /api/galleries/check</code> — 检查画廊 JSON 是否存在</li>
<li><code>POST /api/galleries/save</code> — 写入画廊元信息</li>
<li><code>GET /api/galleries/{title}/missing-images</code> — 列出还没下载的图片 key</li>
<li><code>POST /api/galleries/{title}/images/{key}</code> — 接收单张图片二进制</li>
</ul>
</main>
</body>
</html>