v0.38.4
This commit is contained in:
1 parent
9e81cce271
commit
185d5da6f9
31 files changed
+296
-199
No files matched your search
@@ -9,6 +9,7 @@
|
||||
else if (type !== "textarea") input.type = type;
|
||||
if (type === "checkbox") input.checked = !!value; else input.value = value ?? "";
|
||||
for (const key of ["min", "max", "maxLength", "required", "pattern", "rows", "step"]) if (Object.hasOwn(options, key)) input[key] = options[key];
|
||||
if (options.switch) input.classList.add("switch");
|
||||
if (type === "checkbox") wrapper.append(input, label("span", key)); else wrapper.append(label("span", key), input);
|
||||
parent.append(wrapper); return input;
|
||||
}
|
||||
@@ -134,8 +135,8 @@
|
||||
const startupAddress = b.tls ? latestStatus?.listeners?.locked_https : latestStatus?.listeners?.locked_http;
|
||||
const startupLocked = !!startupAddress && currentAddresses.includes(startupAddress);
|
||||
const readAddresses = addressTagEditor(grid, currentAddresses, startupLocked ? [startupAddress] : []);
|
||||
const enabled = field(grid, "listener-enabled", "vhEnabled", item.enabled !== false, "checkbox");
|
||||
const tls = field(grid, "listener-tls", "vhTls", !!b.tls, "checkbox"); const h2 = field(grid, "listener-h2", "vhHttp2", b.tls && b.http2 !== false, "checkbox"); const h2c = field(grid, "listener-h2c", "listenerH2c", !b.tls && !!b.h2c, "checkbox");
|
||||
const enabled = field(grid, "listener-enabled", "vhEnabled", item.enabled !== false, "checkbox", { switch: true });
|
||||
const tls = field(grid, "listener-tls", "vhTls", !!b.tls, "checkbox", { switch: true }); const h2 = field(grid, "listener-h2", "vhHttp2", b.tls && b.http2 !== false, "checkbox", { switch: true }); const h2c = field(grid, "listener-h2c", "listenerH2c", !b.tls && !!b.h2c, "checkbox", { switch: true });
|
||||
const preservedHttp2 = effectiveHttp2Settings(b);
|
||||
const protocolActions = el("div", undefined, "listener-protocol-settings-actions vh-wide"); body.append(protocolActions);
|
||||
const h2Settings = button(protocolActions, "h2Configure", () => {
|
||||
@@ -145,7 +146,7 @@
|
||||
});
|
||||
h2Settings.classList.add("listener-h2-settings-link"); h2Settings.dataset.uiIconName = "settings";
|
||||
const preservedHttp3 = Object.hasOwn(b, "http3") ? b.http3 : (b.tls ? { ...h3Defaults } : null);
|
||||
const h3 = field(grid, "listener-h3", "h3Enable", b.tls && !!preservedHttp3, "checkbox");
|
||||
const h3 = field(grid, "listener-h3", "h3Enable", b.tls && !!preservedHttp3, "checkbox", { switch: true });
|
||||
const h3Settings = button(protocolActions, "h3Configure", () => {
|
||||
window.rustProxySettings?.select("connections");
|
||||
window.rustProxySettings?.selectHttpTab?.("http3");
|
||||
|
||||
Reference in new issue
Block a user