From 28a6f4bc45608db9d5041cc3e290e1552504c00f Mon Sep 17 00:00:00 2001 From: chunzhimoe <60135925+chunzhimoe@users.noreply.github.com> Date: Sun, 12 Apr 2026 16:50:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=85=A8=E7=95=8C=E9=9D=A2=E4=B8=AD?= =?UTF-8?q?=E6=96=87=E6=B1=89=E5=8C=96=20+=20=E5=AE=89=E8=A3=85=E5=91=BD?= =?UTF-8?q?=E4=BB=A4=E6=94=B9=E4=B8=BA=20curl=20=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/create/page.tsx | 64 +++++++++++++++--------------- src/app/login/page.tsx | 8 ++-- src/app/settings/page.tsx | 33 ++++++++-------- src/app/tunnels/page.tsx | 4 +- src/components/Dashboard.tsx | 28 ++++++------- src/components/MetricsWidget.tsx | 8 ++-- src/components/Navigation.tsx | 14 +++---- src/components/TunnelList.tsx | 67 ++++++++++++++++---------------- src/lib/cloudflare.ts | 16 +++++--- 9 files changed, 122 insertions(+), 120 deletions(-) diff --git a/src/app/create/page.tsx b/src/app/create/page.tsx index db1efb7..a952677 100644 --- a/src/app/create/page.tsx +++ b/src/app/create/page.tsx @@ -39,14 +39,14 @@ interface Zone { } const STEP_LABELS: Record = { - find_zone: "Lookup DNS Zone", - create_tunnel: "Create Tunnel", - configure_tunnel: "Configure Ingress", - create_dns: "Create DNS Record", - create_access_app: "Create Access App", - setup_ca: "Setup Short-lived Cert", - get_token: "Get Tunnel Token", - browser_rendering: "Browser Rendering", + find_zone: "查找 DNS Zone", + create_tunnel: "创建隆道", + configure_tunnel: "配置 Ingress", + create_dns: "创建 DNS 记录", + create_access_app: "创建访问应用", + setup_ca: "配置短期证书", + get_token: "获取隆道 Token", + browser_rendering: "浏览器渲染提醒", }; export default function CreatePage() { @@ -143,24 +143,24 @@ export default function CreatePage() {
-

Deploy SSH Host

+

部署 SSH 主机

- One form → Tunnel + DNS + Access App + Install Command + 一键完成 → 隆道 + DNS + 访问应用 + 安装命令

{/* Form */}
- } label="Server Name" - hint="A friendly label for this server, e.g. prod-web-1"> + } label="服务器名称" + hint="服务器昵称,如 prod-web-1"> {/* SSH Hostname — zone dropdown + subdomain */} - } label="SSH Hostname" - hint={hostname ? `Will create: ${hostname}` : "Select a zone, then enter a subdomain"}> + } label="SSH 访问域名" + hint={hostname ? `将创建:${hostname}` : "选择 Zone 再填写子域名前缀"}>
- Loading zones… + 加载 Zone 中…
) : zonesError ? (
- {zonesError} + 加载失败: {zonesError} @@ -194,7 +194,7 @@ export default function CreatePage() { className="form-input appearance-none pr-8" required > - + {zones.map((z) => ( ))} @@ -206,20 +206,20 @@ export default function CreatePage() {
- } label="SSH Port" - hint="Server-side SSH port (usually 22)"> + } label="SSH 端口" + hint="服务器 SSH 端口(通常为 22)"> - } label="SSO Email" - hint="Your Cloudflare SSO email — its prefix becomes the Linux user"> + } label="SSO 邮筱" + hint="Cloudflare SSO 邮筱,前缀将作为 Linux 用户名"> - } label="Allowed Emails (optional)" - hint="Comma-separated emails for the Access Policy. Leave empty = any authenticated user"> + } label="允许访问的邮筱(可选)" + hint="多个邮筱用逗号分隔,留空表示所有已认证用户均可访问">