Skip to content

Commit

Permalink
style(public): update layout and text in index.html and index.md
Browse files Browse the repository at this point in the history
Update layout and text to improve user experience
  • Loading branch information
woodchen-ink committed Oct 26, 2024
1 parent 8c7c010 commit 09e4d8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 7 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,12 @@
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
margin: 0 0 10px 0;
}

.stats-header h3 {
margin: 0;
padding: 0;
}

.refresh-icon {
Expand Down Expand Up @@ -190,7 +195,7 @@
const summaryHtml = `
<div class="stats-summary">
<div class="stats-header">
<h3>📊 接口调用统计 <span class="refresh-icon">🔄</span></h3>
<h3>📊 接口调用次数 <span class="refresh-icon">🔄</span></h3>
</div>
<div class="stats-grid">
<div class="stats-item">今日总调用:${todayCalls} 次</div>
Expand Down
10 changes: 6 additions & 4 deletions public/index.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# Random-Api 随机文件API

## 接口统计
## 统计
<div class="stats-container">
<div id="stats-summary"></div>
<div id="stats-detail"></div>
</div>

## 图片接口
---

## 图片接口说明

| 种类 | 请求地址 |
| ---------- | ---------------- |
Expand All @@ -19,9 +21,9 @@
| AI绘图 | [https://random-api.czl.net/pic/ai](https://random-api.czl.net/pic/ai) |
| 加载 | [https://random-api.czl.net/pic/loading](https://random-api.czl.net/pic/loading) |

---

## 视频接口

## 视频接口说明
| 种类 | 请求地址 |
| ---------- | ---------------- |
| 所有 | [https://random-api.czl.net/video/all](https://random-api.czl.net/video/all) |
Expand Down

0 comments on commit 09e4d8c

Please sign in to comment.