ui: remove forwarding usage copy / 移除转发使用说明文案

This commit is contained in:
gdz66601 committed 2026-09-28 22:27:48 +08:00
1 parent 4a5c45a3e4
commit 7e1f657852
2 files changed
-10

No files matched your search

-4
View File
@@ -44,10 +44,6 @@ body[data-view='forward'] { overflow-y: auto; background: var(--home-bg); }
.forward-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--home-line); padding-top: 18px; margin-top: 18px; overflow-wrap: anywhere; }
.forward-status [data-status].is-retained { flex: 1; border: 1px solid var(--home-accent); border-left-width: 4px; border-radius: 6px; padding: 12px 14px; background: var(--home-accent-soft); color: var(--home-ink); font-weight: 700; line-height: 1.6; }
.forward-setup { margin-top: 20px; padding: 18px 20px; border: 1px solid var(--home-line); border-radius: 10px; background: var(--home-surface); line-height: 1.8; }
.forward-explanation { max-width: 780px; margin-top: 32px; line-height: 1.9; }
.forward-explanation h2 { font-size: 20px; }
.forward-explanation ol { padding-left: 22px; }
.forward-explanation li { padding-block: 4px; }
.forward-page code { font-family: var(--home-mono); }
.forward-page [data-key-fingerprint] { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--home-mono); }
.forward-page [data-preview-link] { display: inline-block; margin-top: 16px; overflow-wrap: anywhere; }
-6
View File
@@ -87,12 +87,6 @@ export class ForwardPage {
<button class="home-button" type="button" data-open hidden>重新打开预览 ↗</button></div>
<a data-preview-link target="_blank" rel="noopener noreferrer" hidden>弹窗被拦截?点击打开网站 ↗</a>
</section>
<section class="forward-explanation" aria-label="隔离与使用说明">
<h2>可信网站简单用,不可信网站单独隔离</h2>
<p>标准转发使用当前 Worker 的独立路径,不增加部署资源。隔离预览使用可选的独立 Worker 和跨站域名,不共享主站登录 Cookie。</p>
<ol><li>新建规则,选择主机并填写网站的 HTTP 端口。</li><li>选择规则并核对 SSH 主机指纹,连接后自动打开预览。</li><li>离开此页面后转发保持 8 分钟;重新进入可查看或立即停止。</li></ol>
<p class="forward-hint">支持常见资源、表单、网站 Cookie、HTTP 登录和重定向。授权最长 1 小时,上传最多 16 MiB。不支持 HTTPS 上游、WebSocket、Service Worker。标准模式兼容常见 fetch / XHR,但不是任意网站的透明代理;复杂 SPA、动态模块或硬编码跳转可能需要网站配置 base URL。同一隔离预览域名一次只使用一个网站,切换前关闭旧窗口。</p>
</section>
<dialog class="host-dialog forward-rule-dialog" aria-labelledby="forward-rule-title">
<form autocomplete="off"><div class="dialog-heading"><div><p class="home-eyebrow">SAVED FORWARD</p><h2 id="forward-rule-title">新建转发规则</h2></div></div>
<p class="dialog-intro">规则会加密保存在云端。网站仅在你点击连接后打开。</p>