Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download webui/static/developer/index.html from SAkizuki/DanbooruSearch: direct link, hf CLI and curl.
- Browser
- Download file 7.4 kB
-
https://huggingface.co/spaces/SAkizuki/DanbooruSearch/resolve/main/webui/static/developer/index.html
- Command line
-
hf download hf://spaces/SAkizuki/DanbooruSearch/webui/static/developer/index.html
-
curl -L -o index.html https://huggingface.co/spaces/SAkizuki/DanbooruSearch/resolve/main/webui/static/developer/index.html
7.4 kB
| <html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>API Key · DanbooruSearch</title><link rel="stylesheet" href="/admin/assets/admin.css"><link rel="stylesheet" href="/developer/assets/portal.css"><script src="/developer/assets/portal_view.js" defer></script><script src="/developer/assets/portal.js" defer></script></head> | |
| <body class="developer-shell" data-read-only="{{read_only}}"> | |
| <aside class="sidebar"> | |
| <a class="brand" href="/"><span class="brand-mark" aria-hidden="true">D<span>·</span></span><span>DanbooruSearch<small>开发者中心</small></span></a> | |
| <nav aria-label="开发者导航"><a href="/developer/apply">申请 Key</a><a href="/developer/keys">我的 Key</a></nav> | |
| <div class="sidebar-bottom"><p>网页搜索无需申请 Key</p><a href="/">← 返回标签搜索</a></div> | |
| </aside> | |
| <main><header class="topbar"><span>DanbooruSearch / 开发者中心</span><button id="logout" class="text-button" hidden>退出登录</button></header> | |
| <div class="heading"><div><span class="eyebrow">开发者中心</span><h1 id="title">API 接入</h1><p id="view-description">申请独立额度,管理程序调用凭证。</p></div></div> | |
| <section id="readonly-notice" class="panel" {{readonly_hidden}}><h2>请使用 Hugging Face 账号申请 API Key</h2><p>当前站点仅提供开发者说明与申请表预览,不支持提交业务申请、领取或管理 Key。请前往 Hugging Face 站点,使用 Hugging Face 账号登录后申请;开放范围以该站点为准。</p><a href="https://sakizuki-danboorusearch.hf.space/developer/apply" target="_blank" rel="noopener">前往 Hugging Face 申请 Key →</a></section> | |
| <p id="message" role="status" aria-live="polite"></p><section id="login" class="panel"><h2>使用 Hugging Face 账号登录</h2><p>测试期间仅向受邀账号开放。请在新标签页完成登录,再回到这里刷新。</p><div class="toolbar"><a id="login-link" class="button primary" target="_blank" rel="noopener">登录 Hugging Face</a><button id="refresh-login">已登录,刷新</button></div></section> | |
| <div id="content" hidden><div class="toolbar"><span id="identity"></span><button id="refresh">刷新</button></div> | |
| <details id="rules" class="panel"><summary>{{rules_title}}</summary><div class="markdown-copy">{{rules_body}}</div></details> | |
| <section id="apply-section" class="panel"><h2 id="apply-title">申请独立额度</h2><form id="apply-form"><fieldset {{form_disabled}} aria-label="API Key 申请信息"> | |
| <div class="fields"><label>使用类型 <span class="required-marker" aria-hidden="true">*</span><select required name="kind" id="kind"><option value="personal">个人业务 · 仅本人使用</option><option value="public">公开业务 · 向其他人提供服务</option></select></label> | |
| <label>Client 名称 <span class="required-marker" aria-hidden="true">*</span><input name="client" required maxlength="80" placeholder="my-tag-tool" pattern="[ -~]{1,80}"></label> | |
| <label>公开服务 HTTPS 地址 <span id="site-required" class="required-marker" aria-hidden="true" hidden>*</span><input disabled name="site" id="site" maxlength="500" placeholder="https://example.com"></label> | |
| <label>申请每日点数 <span class="required-marker" aria-hidden="true">*</span><input name="daily" id="daily" type="number" min="1" max="10000000" value="3000" required></label></div> | |
| <p id="estimate" class="muted"></p><label id="purpose-field">用途说明 <span class="required-marker" aria-hidden="true">*</span><textarea name="purpose" maxlength="1000" required placeholder="说明如何使用,不要填写密码、Token 或敏感信息"></textarea></label> | |
| <details><summary>{{terms_title}}</summary><div class="markdown-copy">{{terms_body}}</div></details> | |
| <label class="check"><input type="checkbox" name="accepted" required><span><span class="required-marker" aria-hidden="true">*</span> 我已阅读并同意使用须知、接入规则和隐私说明,确认如实申报业务类型。</span></label><button type="submit" class="primary">提交申请</button><button id="cancel-edit" type="button" hidden>取消资料变更</button></fieldset></form></section> | |
| <div id="admin-tabs" class="key-tabs" role="tablist" aria-label="Key 管理" hidden><button id="tab-applications" role="tab" data-key-tab="applications" aria-controls="applications-section">申请审核</button><button id="tab-grants" role="tab" data-key-tab="grants" aria-controls="grants-section">授权与 Key</button><button id="tab-audit" role="tab" data-key-tab="audit" aria-controls="audit-section">操作记录</button></div> | |
| <section id="admin-tools" class="panel" hidden><h2>审核与管理</h2><div class="toolbar"><input id="filter-search" placeholder="账号或 Client"><select id="filter-state"><option value="">全部申请</option><option value="pending">待审核</option><option value="approved">已批准</option><option value="rejected">已拒绝</option></select><select id="filter-grant"><option value="">全部授权</option><option value="active">有效</option><option value="paused">暂停</option><option value="closed">关闭</option></select><button id="filter">筛选</button><button id="retry-refunds">重试已知退款</button></div><p id="pool"></p></section> | |
| <section id="applications-section" class="panel"><h2>申请记录</h2><div id="applications" class="cards"></div></section> | |
| <section id="grants-section" class="panel"><h2>授权与 Key</h2><p id="reset" class="muted"></p><div id="grants" class="cards"></div></section> | |
| <section id="audit-section" class="panel" hidden><h2>操作记录</h2><div id="audit" class="cards"></div></section> | |
| <div id="pagination" class="toolbar"><button id="previous">上一页</button><span id="page"></span><button id="next">下一页</button></div> | |
| </div><dialog id="secret-dialog" aria-labelledby="secret-title"><h2 id="secret-title">Key 仅展示一次</h2><p>请立即保存到安全位置。关闭后无法找回;如未保存,请轮换。</p> | |
| <textarea id="secret" readonly aria-label="新 API Key" spellcheck="false"></textarea> | |
| <div class="secret-actions"><button id="copy-secret" type="button">复制 Key</button><button id="close-secret" type="button" class="primary">我已保存,关闭</button></div> | |
| <p id="secret-feedback" class="muted" role="status" aria-live="polite"></p> | |
| <div class="curl-examples"><h3>试一次标签搜索</h3><p class="muted">已填入本次 Key 与登记信息,复制后可直接运行。示例也包含完整 Key,请妥善保存。</p> | |
| <div class="example-tabs" role="tablist" aria-label="示例语言"> | |
| <button id="example-windows" type="button" role="tab" aria-selected="true">Windows</button> | |
| <button id="example-posix" type="button" role="tab" aria-selected="false" tabindex="-1">macOS / Linux</button> | |
| <button id="example-python" type="button" role="tab" aria-selected="false" tabindex="-1">Python</button></div> | |
| <section id="example-panel" class="curl-example" role="tabpanel" tabindex="0"><div class="example-heading"><span id="example-hint" class="muted"></span><button id="copy-example" type="button">复制代码</button></div><pre><code id="example-code"></code></pre></section></div></dialog> | |
| <footer>遇到问题请提供时间、申请编号和脱敏前缀,不发送完整 Key。联系:misakaacer@gmail.com</footer></main></body></html> | |