Add Transparent Proxy and PROXY v2 support and help page

This commit is contained in:
mueller_minki
2026-10-04 19:21:50 +02:00
parent aebb7206f4
commit b7481c2109
24 changed files with 864 additions and 70 deletions

View File

@@ -68,6 +68,7 @@ h3 { font-size: 14px; margin: 18px 0 8px; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: #ff8a8a; }
.btn.small { padding: 3px 10px; font-size: 12.5px; }
.btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
input, select, textarea {
font: inherit; color: var(--text-primary); background: var(--surface-1);
border: 1px solid var(--border); border-radius: 4px; padding: 6px 8px; width: 100%;
@@ -138,6 +139,10 @@ input.code { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; te
#wires .wire-del path { stroke: #fff; stroke-width: 2; pointer-events: none; }
#wires .wire-del:hover circle { fill: var(--danger); }
#canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.marquee {
position: absolute; z-index: 5; pointer-events: none;
border: 1px solid #f08a24; background: rgba(240, 138, 36, .15); border-radius: 2px;
}
.editor-hint {
position: absolute; left: 12px; bottom: 10px; color: var(--text-muted); font-size: 12px;
background: rgba(26, 26, 25, .85); padding: 4px 8px; border-radius: 4px; pointer-events: none;
@@ -168,6 +173,11 @@ input.code { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; te
.node-body label { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; }
.node-body label > span { flex: none; width: 54px; }
.node-body input, .node-body select { padding: 3px 6px; font-size: 12.5px; }
.node-body .origin { display: flex; flex-direction: column; gap: 4px; }
.node-body label.check { justify-content: flex-start; cursor: pointer; }
.node-body label.check > span { width: auto; }
.node-body label.check input { width: auto; flex: none; margin: 0; accent-color: var(--accent); }
.node-body label.check.disabled { opacity: 0.5; cursor: default; }
.node-status { font-size: 11.5px; color: var(--text-muted); min-height: 16px; display: flex; gap: 6px; align-items: center; }
.node-status.err { color: #ff8a8a; }
.socket {
@@ -193,6 +203,26 @@ input.code { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; te
.save-state { color: var(--text-muted); font-size: 12.5px; min-width: 120px; }
.save-state.err { color: #ff8a8a; }
/* Help */
.help-toc { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13.5px; }
.help { line-height: 1.55; }
.help p, .help ul, .help ol { margin: 0 0 10px; }
.help p:last-child, .help ul:last-child, .help ol:last-child { margin-bottom: 0; }
.help li + li { margin-top: 6px; }
.help-table { border-collapse: collapse; width: 100%; margin-bottom: 10px; }
.help-table td { padding: 7px 10px 7px 0; border-top: 1px solid var(--border); vertical-align: top; }
.help-table td:first-child { white-space: nowrap; font-weight: 600; width: 1%; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 8px; }
.swatch.client_source { background: var(--node-source); }
.swatch.client_sink { background: var(--node-csink); }
.swatch.public_sink { background: var(--node-psink); }
.swatch.splitter { background: var(--node-split); }
.swatch.tunnel_source { background: var(--node-tsource); }
.swatch.tunnel_sink { background: var(--node-tsink); }
@media (max-width: 640px) {
.help-table td:first-child { white-space: normal; }
}
/* Stats */
.filter-row { display: flex; gap: 16px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.filter-row label { min-width: 280px; flex: 1; }