chore: sync local changes to Gitea

This commit is contained in:
shumengya
2026-06-24 22:10:24 +08:00
parent f0d79638c9
commit 2483614e89
21 changed files with 3946 additions and 262 deletions

53
src/App.tsx Normal file
View File

@@ -0,0 +1,53 @@
export default function App() {
return (
<>
<h1>Favicon API</h1>
<p>
HTTP API favicon使 <strong>Google</strong>
<strong>DuckDuckGo</strong> <strong></strong>
Bing favicon
API DuckDuckGo
</p>
<h2></h2>
<p>GET </p>
<ul>
<li>
<code>url</code> <code>domain</code> <code>u</code>
</li>
<li>
<code>size</code>16256 128 Google
</li>
</ul>
<h2></h2>
<div className="example">
<code>/api/favicon?url=https://twitter.com</code>
<br />
<img
src="/api/favicon?url=https://twitter.com"
alt="twitter"
width={32}
height={32}
/>
</div>
<div className="example">
<code>/api/favicon?domain=github.com&amp;size=64</code>
<br />
<img
src="/api/favicon?domain=github.com&size=64"
alt="github"
width={64}
height={64}
/>
</div>
<h2></h2>
<pre>
GET https://你的 Workers 域名/api/favicon?url=https://example.com
</pre>
<p> 400/502 JSON </p>
</>
);
}