Files
xk-hy-forward-go/internal/forward/testweb/web/index.html
2026-05-28 17:04:29 +08:00

85 lines
3.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>政务云连接测试 · forward-go</title>
<link rel="stylesheet" href="/t/static/t.css">
</head>
<body>
<div class="app">
<header class="topbar">
<div class="brand">
<span class="logo">T</span>
<span class="title">forward 政务云测试</span>
</div>
<div class="connect-bar">
<span class="label">连通测试</span>
<button type="button" class="btn" data-connect="supervise">28212 监管</button>
<button type="button" class="btn" data-connect="file">28211 文件</button>
<button type="button" class="btn primary" data-connect="both">全部</button>
<div id="connect-results" class="connect-results"></div>
</div>
</header>
<div class="layout">
<aside class="sidebar">
<div class="sidebar-head">
<h2>file 日志</h2>
<button type="button" class="btn sm" id="btn-refresh-logs">刷新</button>
</div>
<div class="meta-hint" id="meta-hint"></div>
<ul class="log-list" id="log-list"></ul>
</aside>
<main class="workspace">
<div class="toolbar">
<button type="button" class="btn" id="btn-load-outbound">加载出站(块2)</button>
<button type="button" class="btn" id="btn-load-inbound">加载入站(块1)</button>
<button type="button" class="btn" id="btn-export-outbound">导出 ApiPost(出站)</button>
<button type="button" class="btn" id="btn-export-inbound">导出 ApiPost(入站)</button>
<button type="button" class="btn" id="btn-curl">复制 cURL</button>
</div>
<div class="url-bar">
<select id="method" disabled>
<option>POST</option>
</select>
<input type="text" id="url" class="url-input" placeholder="TargetURL">
<button type="button" class="btn send primary" id="btn-send">发送</button>
</div>
<div class="tabs">
<button type="button" class="tab active" data-tab="headers">Headers</button>
<button type="button" class="tab" data-tab="body">Body</button>
<button type="button" class="tab" data-tab="response">响应</button>
<button type="button" class="tab" data-tab="logmeta">日志 Meta</button>
</div>
<div class="tab-panels">
<div class="panel active" id="panel-headers">
<table class="kv-table" id="headers-table">
<thead><tr><th>Key</th><th>Value</th><th></th></tr></thead>
<tbody></tbody>
</table>
<button type="button" class="btn sm" id="btn-add-header">+ Header</button>
</div>
<div class="panel" id="panel-body">
<div class="body-info" id="body-info"></div>
<textarea id="body-raw" spellcheck="false" placeholder="请求体(明文或 base64 解码后预览)"></textarea>
<input type="hidden" id="body-base64">
</div>
<div class="panel" id="panel-response">
<pre id="response-view" class="code-block">发送后或从日志块3 加载)</pre>
</div>
<div class="panel" id="panel-logmeta">
<pre id="logmeta-view" class="code-block"></pre>
</div>
</div>
</main>
</div>
</div>
<script src="/t/static/t.js"></script>
</body>
</html>