-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
408 lines (392 loc) · 23.3 KB
/
index.html
File metadata and controls
408 lines (392 loc) · 23.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="API Tester — 测试你的 OpenAI 兼容 API 是否可用,纯静态,零服务器">
<title>API Tester — OpenAI Compatible API Test</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Noto+Sans+SC:wght@300;400;500;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.jsdelivr.net/npm/jszip@3.10.1/dist/jszip.min.js"></script>
</head>
<body>
<div class="grid-bg" aria-hidden="true"></div>
<!-- Onboarding Overlay -->
<div class="onboarding-overlay hidden" id="onboarding-overlay">
<div class="onboarding-backdrop" id="onboarding-backdrop"></div>
<div class="onboarding-tooltip" id="onboarding-tooltip">
<div class="onboarding-step-indicator" id="onboarding-step-indicator"></div>
<h3 class="onboarding-title" id="onboarding-title"></h3>
<p class="onboarding-desc" id="onboarding-desc"></p>
<div class="onboarding-actions">
<button class="btn btn-outline btn-sm" id="onboarding-skip" onclick="endOnboarding()">
<span data-i18n="onboarding_skip">跳过</span>
</button>
<button class="btn btn-primary btn-sm" id="onboarding-next" onclick="nextOnboardingStep()">
<span data-i18n="onboarding_next">下一步</span>
</button>
</div>
</div>
</div>
<!-- Header -->
<header class="header" id="header">
<div class="header-inner">
<div class="logo">
<svg class="logo-icon" width="28" height="28" viewBox="0 0 28 28" fill="none" stroke="currentColor" stroke-width="1.5">
<rect x="2" y="2" width="24" height="24" rx="4"/>
<path d="M8 14h12M14 8v12"/>
<circle cx="8" cy="8" r="1.5"/>
<circle cx="20" cy="20" r="1.5"/>
</svg>
<span class="logo-text">API Tester</span>
</div>
<nav class="header-nav">
<button class="btn-icon" id="btn-guide" onclick="startOnboarding()" title="Guide">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2">
<circle cx="8" cy="8" r="6.5"/>
<path d="M6 6.5a2 2 0 013.5 1.3c0 1.2-1.5 1.2-1.5 2.2"/>
<circle cx="8" cy="12" r="0.5" fill="currentColor"/>
</svg>
</button>
<button class="lang-toggle" id="lang-toggle" onclick="toggleLang()" title="Switch Language">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2">
<circle cx="8" cy="8" r="6.5"/>
<ellipse cx="8" cy="8" rx="3" ry="6.5"/>
<path d="M2 6h12M2 10h12"/>
</svg>
<span id="lang-label">EN</span>
</button>
<a href="https://github.com/kobolingfeng/api-hero" class="header-link" target="_blank" rel="noopener">
<svg width="18" height="18" viewBox="0 0 16 16" fill="currentColor"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/></svg>
</a>
</nav>
</div>
</header>
<main class="main">
<section class="hero">
<h1 class="hero-title" data-i18n="hero_title">测试你的 OpenAI 兼容 API</h1>
<p class="hero-desc" data-i18n="hero_desc">输入 Base URL 和 API Key,一键验证连通性。纯静态页面,密钥加密存储,不离开浏览器。</p>
<!-- Security badge -->
<div class="security-badge">
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.2">
<path d="M6 1L2 3v3c0 2.5 1.7 4.5 4 5 2.3-.5 4-2.5 4-5V3L6 1z"/>
<path d="M4.5 6l1 1 2-2"/>
</svg>
<span data-i18n="security_badge">AES-GCM 加密存储 · 密钥不离开浏览器</span>
</div>
</section>
<!-- ═══ Primary Zone: Config + Results ═══ -->
<div class="layout-primary">
<section class="card" id="card-config">
<div class="card-header">
<div class="card-dot"></div>
<h2 class="card-title" data-i18n="config_title">接口配置</h2>
</div>
<div class="card-body">
<div class="smart-paste-area" id="smart-paste-area">
<div class="smart-paste-header">
<svg width="14" height="14" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2"><path d="M2 4h12M2 8h8M2 12h10"/><circle cx="14" cy="10" r="2" fill="currentColor" stroke="none"/></svg>
<span data-i18n="smart_paste_label">智能识别</span>
</div>
<textarea id="smart-paste-input" class="smart-paste-input" rows="3" placeholder="粘贴配置文本,自动识别 Base URL、API Key 和模型名..." data-i18n-placeholder="smart_paste_placeholder"></textarea>
<button class="btn btn-outline btn-sm smart-paste-btn" onclick="runSmartPaste()">
<svg width="10" height="10" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M1 7h12M9 3l4 4-4 4"/></svg>
<span data-i18n="smart_paste_btn">识别并填入</span>
</button>
</div>
<div class="field" id="field-base-url">
<label class="field-label" for="base-url" data-i18n="label_base_url">Base URL</label>
<input type="url" id="base-url" class="field-input" placeholder="https://api.openai.com/v1" value="https://api.openai.com/v1">
<p class="field-hint" data-i18n="hint_base_url">API 提供商的接口地址,通常以 /v1 结尾</p>
</div>
<div class="field" id="field-api-key">
<label class="field-label" for="api-key">
<span data-i18n="label_api_key">API Key</span>
<span class="field-label-badge" data-i18n="label_encrypted">已加密</span>
</label>
<div class="field-input-wrap">
<input type="password" id="api-key" class="field-input" placeholder="sk-...">
<button class="field-btn-icon" id="toggle-key" title="Toggle">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2">
<path d="M1 8s3-5 7-5 7 5 7 5-3 5-7 5-7-5-7-5z"/>
<circle cx="8" cy="8" r="2"/>
</svg>
</button>
</div>
<p class="field-hint" data-i18n="hint_api_key">你的 API 密钥,保存时会使用 AES-GCM 加密</p>
</div>
<div class="field" id="field-model">
<label class="field-label" for="model-name">
<span data-i18n="label_model">模型</span>
</label>
<div class="field-input-wrap">
<input type="text" id="model-name" class="field-input" placeholder="gpt-4o" value="gpt-3.5-turbo" autocomplete="off">
<button class="field-btn-icon" id="btn-fetch-models" onclick="fetchModels()" title="Fetch models">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.2">
<path d="M2 8a6 6 0 0111.5-2.3" /><path d="M14 8a6 6 0 01-11.5 2.3"/>
<path d="M13 2v4h-4"/><path d="M3 14v-4h4"/>
</svg>
</button>
</div>
<p class="field-hint" data-i18n="hint_model">手动输入或点击右侧按钮自动获取可用模型</p>
<div class="model-dropdown hidden" id="model-dropdown">
<div class="model-dropdown-header">
<span class="model-dropdown-title" data-i18n="models_available">可用模型</span>
<span class="model-dropdown-count" id="model-count"></span>
</div>
<div class="model-dropdown-list" id="model-list"></div>
</div>
</div>
<div class="field" id="field-prompt">
<label class="field-label" for="test-prompt" data-i18n="label_prompt">测试 Prompt</label>
<textarea id="test-prompt" class="field-input field-textarea" rows="2" placeholder="Say hello...">Say hello!</textarea>
</div>
<div class="card-actions" id="card-actions">
<button class="btn btn-primary" id="btn-test" onclick="testAPI()">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M1 7h12M9 3l4 4-4 4"/></svg>
<span data-i18n="btn_test">测试连接</span>
</button>
<button class="btn btn-outline" id="btn-ping" onclick="pingAPI()">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="7" cy="7" r="5"/><path d="M7 4v3l2 2"/></svg>
<span data-i18n="btn_ping">连通检测</span>
</button>
<button class="btn btn-outline" id="btn-save" onclick="saveConfig()">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M11 13H3a1 1 0 01-1-1V2a1 1 0 011-1h6l3 3v8a1 1 0 01-1 1z"/><path d="M9 1v3h3M5 9h4"/></svg>
<span data-i18n="btn_save">保存</span>
</button>
</div>
</div>
</section>
<!-- Results Card -->
<section class="card" id="card-results">
<div class="card-header">
<div class="card-dot"></div>
<h2 class="card-title" data-i18n="result_title">测试结果</h2>
<div class="status-badge hidden" id="status-badge">
<span class="status-dot"></span>
<span class="status-text" id="status-text"></span>
</div>
</div>
<div class="card-body">
<div class="result-state" id="state-idle">
<div class="idle-visual">
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" stroke="currentColor" stroke-width="1" opacity="0.25">
<circle cx="24" cy="24" r="20"/>
<path d="M24 14v10l6 6"/>
</svg>
</div>
<p class="idle-text" data-i18n="idle_text">等待测试…</p>
</div>
<div class="result-state hidden" id="state-loading">
<div class="loader"><div class="loader-ring"></div></div>
<p class="loading-text" data-i18n="loading_text">正在连接…</p>
</div>
<div class="result-state hidden" id="state-ping">
<div class="ping-results" id="ping-results"></div>
</div>
<div class="result-state hidden" id="state-success">
<div class="result-indicator success-indicator">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 10l4 4 8-8"/></svg>
<span data-i18n="success_text">连接成功</span>
</div>
<pre class="result-output" id="result-output"></pre>
</div>
<div class="result-state hidden" id="state-error">
<div class="result-indicator error-indicator">
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M5 5l10 10M15 5L5 15"/></svg>
<span data-i18n="error_text">连接失败</span>
</div>
<pre class="result-output error-output" id="error-output"></pre>
</div>
<div class="stats-row hidden" id="stats-row">
<div class="stat">
<span class="stat-label" data-i18n="stat_latency">延迟</span>
<span class="stat-value" id="stat-latency">—</span>
</div>
<div class="stat">
<span class="stat-label" data-i18n="stat_tokens">Tokens</span>
<span class="stat-value" id="stat-tokens">—</span>
</div>
<div class="stat">
<span class="stat-label" data-i18n="stat_model">模型</span>
<span class="stat-value" id="stat-model">—</span>
</div>
</div>
</div>
</section>
</div>
<!-- ═══ Secondary Zone: Saved + Export + Probe ═══ -->
<div class="layout-secondary">
<!-- Saved Configs Card -->
<section class="card" id="card-saved">
<div class="card-header">
<div class="card-dot"></div>
<h2 class="card-title" data-i18n="saved_title">已保存</h2>
<div class="card-header-actions">
<button class="btn-icon" onclick="testAllProviders()" title="测试全部" data-i18n-title="btn_testall" id="btn-test-all">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M1 7h12M9 3l4 4-4 4"/></svg>
</button>
<button class="btn-icon" onclick="exportAllProviders()" title="导出全部" data-i18n-title="btn_export_all" id="btn-export-all">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M2 2h10M2 6h10M2 10h10"/><path d="M12 5l-2 2 2 2"/></svg>
</button>
<button class="btn-icon" onclick="importConfigs()" title="导入" data-i18n-title="btn_import" id="btn-import-all">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M7 1v9M3 6l4 4 4-4"/><path d="M1 11v1a1 1 0 001 1h10a1 1 0 001-1v-1"/></svg>
</button>
<button class="btn-icon" onclick="deleteAllProviders()" title="删除全部" data-i18n-title="btn_delete_all" id="btn-delete-all">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.4"><path d="M2 4h10"/><path d="M5 4V2.5h4V4"/><path d="M4 4v7.5A1.5 1.5 0 005.5 13h3A1.5 1.5 0 0010 11.5V4"/><path d="M6 6.5v4M8 6.5v4"/></svg>
</button>
</div>
<input type="file" id="import-file" accept=".json,.toml,.env,.yaml,.yml,.zip" class="sr-only">
</div>
<div class="card-body">
<div class="saved-list" id="saved-list">
<div class="empty-state" id="empty-state">
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" stroke="currentColor" stroke-width="1" opacity="0.3">
<rect x="4" y="4" width="24" height="24" rx="3"/>
<path d="M10 16h12M16 10v12" stroke-dasharray="2 2"/>
</svg>
<p data-i18n="empty_saved">暂无保存的配置</p>
</div>
</div>
</div>
</section>
<div class="layout-secondary-right">
<!-- Export Card -->
<section class="card" id="card-export">
<div class="card-header">
<div class="card-dot"></div>
<h2 class="card-title" data-i18n="export_title">导出配置</h2>
</div>
<div class="card-body">
<p class="export-desc" data-i18n="export_desc">将当前配置导出为各平台通用格式</p>
<div class="export-grid">
<button class="export-item" onclick="exportConfig('openai-env')"><span class="export-label">OpenAI .env</span><svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.2"><path d="M2 6h8M7 3l3 3-3 3"/></svg></button>
<button class="export-item" onclick="exportConfig('openclaw')"><span class="export-label">OpenClaw</span><svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.2"><path d="M2 6h8M7 3l3 3-3 3"/></svg></button>
<button class="export-item" onclick="exportConfig('codex')"><span class="export-label">Codex CLI</span><svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.2"><path d="M2 6h8M7 3l3 3-3 3"/></svg></button>
<button class="export-item" onclick="exportConfig('claude-code')"><span class="export-label">Claude Code</span><svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.2"><path d="M2 6h8M7 3l3 3-3 3"/></svg></button>
<button class="export-item" onclick="exportConfig('antigravity')"><span class="export-label">Antigravity</span><svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.2"><path d="M2 6h8M7 3l3 3-3 3"/></svg></button>
<button class="export-item" onclick="exportConfig('curl')"><span class="export-label">cURL</span><svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.2"><path d="M2 6h8M7 3l3 3-3 3"/></svg></button>
<button class="export-item" onclick="exportConfig('python')"><span class="export-label">Python</span><svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.2"><path d="M2 6h8M7 3l3 3-3 3"/></svg></button>
<button class="export-item" onclick="exportConfig('json')"><span class="export-label">JSON</span><svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.2"><path d="M2 6h8M7 3l3 3-3 3"/></svg></button>
</div>
</div>
</section>
<!-- Model Probe Card -->
<section class="card" id="card-probe">
<div class="card-header">
<div class="card-dot"></div>
<h2 class="card-title" data-i18n="probe_title">模型探测</h2>
</div>
<div class="card-body">
<div class="probe-search">
<select id="probe-select" class="field-input" onchange="onProbeSelect()">
<option value="" data-i18n="probe_placeholder">选择要探测的模型…</option>
</select>
<button class="btn btn-primary btn-sm" onclick="runProbeAll()" id="btn-probe-all" disabled>
<svg width="12" height="12" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M1 7h12M9 3l4 4-4 4"/></svg>
<span data-i18n="probe_all">全部探测</span>
</button>
</div>
<div class="probe-hint" data-i18n="probe_hint">选择一个模型,查看哪些已保存服务商支持该模型并测试连通性</div>
<div id="probe-results"></div>
</div>
</section>
</div>
</div>
</main>
<!-- Export Modal -->
<div class="modal-overlay hidden" id="export-modal">
<div class="modal">
<div class="modal-header">
<h3 class="modal-title" id="modal-title">Export</h3>
<button class="btn-icon" onclick="closeModal()">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 4l8 8M12 4l-8 8"/></svg>
</button>
</div>
<div class="modal-body">
<pre class="modal-code" id="modal-code"></pre>
</div>
<div class="modal-footer">
<button class="btn btn-outline" onclick="copyExport()">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="4" y="4" width="9" height="9" rx="1"/><path d="M4 10H2.5A1.5 1.5 0 011 8.5v-6A1.5 1.5 0 012.5 1h6A1.5 1.5 0 0110 2.5V4"/></svg>
<span data-i18n="btn_copy">复制</span>
</button>
<button class="btn btn-primary" onclick="downloadExport()">
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M7 1v9M3 6l4 4 4-4"/><path d="M1 11v1.5A1.5 1.5 0 002.5 14h9a1.5 1.5 0 001.5-1.5V11"/></svg>
<span data-i18n="btn_download">下载</span>
</button>
</div>
</div>
</div>
<!-- Prompt Modal (replaces native prompt) -->
<div class="modal-overlay hidden" id="prompt-modal">
<div class="modal" style="max-width:420px">
<div class="modal-header">
<h3 class="modal-title" id="prompt-modal-title"></h3>
<button class="btn-icon" onclick="cancelPromptModal()">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 4l8 8M12 4l-8 8"/></svg>
</button>
</div>
<div class="modal-body">
<input type="text" id="prompt-modal-input" class="field-input" style="width:100%">
</div>
<div class="modal-footer" style="display:flex;gap:8px;justify-content:flex-end">
<button class="btn btn-outline" onclick="cancelPromptModal()" data-i18n="onboarding_skip">取消</button>
<button class="btn btn-primary" id="prompt-modal-ok" onclick="confirmPromptModal()">OK</button>
</div>
</div>
</div>
<!-- Confirm Modal (replaces native confirm) -->
<div class="modal-overlay hidden" id="confirm-modal">
<div class="modal" style="max-width:420px">
<div class="modal-header">
<h3 class="modal-title" id="confirm-modal-title"></h3>
</div>
<div class="modal-footer" style="display:flex;gap:8px;justify-content:flex-end;padding-top:16px">
<button class="btn btn-outline" onclick="cancelConfirmModal()">取消</button>
<button class="btn btn-primary" onclick="confirmConfirmModal()" style="background:var(--error);border-color:var(--error)">确认</button>
</div>
</div>
</div>
<!-- Provider Export Modal -->
<div class="modal-overlay hidden" id="provider-export-modal">
<div class="modal" style="max-width:520px">
<div class="modal-header">
<h3 class="modal-title" id="provider-export-title"></h3>
<button class="btn-icon" onclick="closeProviderExportModal()">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 4l8 8M12 4l-8 8"/></svg>
</button>
</div>
<div class="modal-body">
<div class="export-grid" id="provider-export-grid"></div>
</div>
</div>
</div>
<!-- Test All Modal -->
<div class="modal-overlay hidden" id="testall-modal">
<div class="modal modal-wide">
<div class="modal-header">
<h3 class="modal-title" id="testall-title" data-i18n="testall_title">批量测试</h3>
<button class="btn-icon" onclick="closeTestAllModal()">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 4l8 8M12 4l-8 8"/></svg>
</button>
</div>
<div class="modal-body">
<div id="testall-results"></div>
</div>
<div class="modal-footer">
<div class="testall-summary" id="testall-summary"></div>
</div>
</div>
</div>
<div class="toast" id="toast"></div>
<footer class="footer">
<p data-i18n="footer_text">纯静态 · AES-GCM 加密 · 无追踪</p>
<p class="footer-sub">
<span data-i18n="footer_star">喜欢的话点个</span> <a href="https://github.com/kobolingfeng/api-hero" target="_blank" rel="noopener">⭐ Star</a>
</p>
</footer>
<script src="app.js"></script>
</body>
</html>