mirror of
https://git.fightbot.fun/hxuanyu/BingPaper.git
synced 2026-02-15 11:59:30 +08:00
新增单元测试验证图片重定向逻辑,优化前端预览链接样式,调整依赖配置
This commit is contained in:
@@ -38,6 +38,21 @@
|
||||
|
||||
/* Info Section */
|
||||
.info-card { background: var(--card-bg); padding: 2rem; border-radius: 12px; margin-bottom: 2rem; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
|
||||
.info-card ul { list-style: none; padding: 0; }
|
||||
.info-card li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
||||
.preview-link {
|
||||
text-decoration: none;
|
||||
color: var(--primary-color);
|
||||
font-size: 0.85rem;
|
||||
padding: 2px 8px;
|
||||
border: 1px solid var(--primary-color);
|
||||
border-radius: 4px;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
.preview-link:hover {
|
||||
background: var(--primary-color);
|
||||
color: white;
|
||||
}
|
||||
code { background: #f1f1f1; padding: 2px 5px; border-radius: 4px; color: #e83e8c; }
|
||||
pre { background: #f1f1f1; padding: 1rem; border-radius: 8px; overflow-x: auto; }
|
||||
|
||||
@@ -82,10 +97,10 @@
|
||||
<h2>使用说明</h2>
|
||||
<p>这是一个自动抓取必应每日一图并提供多分辨率管理的工具。您可以直接通过以下接口获取图片:</p>
|
||||
<ul>
|
||||
<li>今日图片:<code>/api/v1/image/today</code></li>
|
||||
<li>今日元数据:<code>/api/v1/image/today/meta</code></li>
|
||||
<li>随机图片:<code>/api/v1/image/random</code></li>
|
||||
<li>指定日期:<code>/api/v1/image/date/2026-01-26</code></li>
|
||||
<li><span>今日图片:</span><code>/api/v1/image/today</code> <a href="/api/v1/image/today" target="_blank" class="preview-link">立即预览</a></li>
|
||||
<li><span>今日元数据:</span><code>/api/v1/image/today/meta</code> <a href="/api/v1/image/today/meta" target="_blank" class="preview-link">立即预览</a></li>
|
||||
<li><span>随机图片:</span><code>/api/v1/image/random</code> <a href="/api/v1/image/random" target="_blank" class="preview-link">立即预览</a></li>
|
||||
<li><span>指定日期:</span><code>/api/v1/image/date/2026-01-26</code> <a href="/api/v1/image/date/2026-01-26" target="_blank" class="preview-link">立即预览</a></li>
|
||||
</ul>
|
||||
<p>参数支持:<code>variant=UHD|1920x1080|1366x768</code>,<code>format=jpg</code>。</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user