From 6d5b1f50aba4d1d9b6e827d0735ca40c1d51045b Mon Sep 17 00:00:00 2001 From: openclaw Date: Tue, 3 Mar 2026 00:31:35 +0800 Subject: [PATCH] feat: optimize web console - add error handling, loading states, settings page --- web/index.html | 445 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 445 insertions(+) create mode 100644 web/index.html diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..a4dc7ce --- /dev/null +++ b/web/index.html @@ -0,0 +1,445 @@ + + + + + + INP2P Control Plane + + + + + + +
+ + +
+
+
+
+ +
+

INP2P

+

输入 Master Token

+
+
+ + +
{{ loginError }}
+
+
+
+ + + + + +
+
+

{{ tabNames[activeTab] }}

+
+ {{ refreshInterval }}s + +
+
+ +
+ + +
+
+
+
在线节点
+
{{ stats.nodes || 0 }}
+
+
+
中继
+
{{ relayCount }}
+
+
+
打洞率
+
{{ punchRate }}%
+
+
+
SDWAN
+
{{ sdwan.enabled ? 'ON' : 'OFF' }}
+
+
+ +
+
+

NAT 分布

+
+
+
+

信令日志

+
+
+ [{{ log.time }}] + {{ log.msg }} +
+
等待数据...
+
+
+
+
+ + +
+
+ + +
+
+
+
+
+

{{ n.name }}

+
{{ n.publicIP }}:{{ n.publicPort }}
+
+
+ {{ ['CONE','SYMM','STAT'][n.natType-1] || 'UNK' }} +
+
+
+
OS{{ n.os || 'linux' }}
+
版本{{ n.version }}
+
中继{{ n.relayEnabled ? '是' : '否' }}
+
在线{{ formatUptime(n.loginTime) }}
+
+ +
+
+
+ + +
+
+
+
+

网络配置

+ +
+
+
+ + +
+ +
+
+
+
+

IP 分配

+ +
+ + + + + + + + +
{{ sn.node }}
+
+ + + +
+
+
+
+ + +
+
+

系统设置

+
+
+
自动刷新
+
当前: {{ refreshInterval }} 秒
+
+ +
+
+
+
+
+ + +
+
+
+

隧道: {{ appManagerNode.name }}

+ +
+
+
+
+
{{ a.appName }}
+
{{ a.srcPort }} → {{ a.peerNode }}:{{ a.dstPort }}
+ +
+
+
+ + + + + +
+
+
+ + +
+
+
+ + +
+ {{ msg }} +
+
+ + + +