www/caddy: Remove obsolete model_relation_domain formatter (#4813)

* www/caddy: Remove obsolete model_relation_domain formatter

* www/caddy: Bump revision and changelog
This commit is contained in:
Monviech
2025-07-15 09:58:13 +02:00
committed by GitHub
parent cf8304b6c7
commit 9b31fedd44
5 changed files with 2 additions and 22 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
PLUGIN_NAME= caddy
PLUGIN_VERSION= 2.0.2
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_DEPENDS= caddy-custom
PLUGIN_COMMENT= Modern Reverse Proxy with Automatic HTTPS, Dynamic DNS and Layer4 Routing
PLUGIN_MAINTAINER= cedrik@pischem.com
+1
View File
@@ -12,6 +12,7 @@ Add: Global server timeout options (opnsense/plugins/pull/4778)
Cleanup: Change all camelCase to snake_case in api notations (opnsense/plugins/pull/4767,4768,4776)
Cleanup: Use SimpleActionButton in general.volt (opnsense/plugins/pull/4779)
Cleanup: Change em into px, fix key/value display in formatter (opnsense/plugins/pull/4807)
Cleanup: Remove obsolete model_relation_domain formatter (opnsense/plugins/pull/4813)
2.0.1
@@ -19,18 +19,12 @@
<label>Domain</label>
<type>dropdown</type>
<help><![CDATA[Select a domain to handle.]]></help>
<grid_view>
<formatter>model_relation_domain</formatter>
</grid_view>
</field>
<field>
<id>handle.subdomain</id>
<label>Subdomain</label>
<type>dropdown</type>
<help><![CDATA[Select a subdomain to handle. Make sure to additionaly choose a wildcard domain as "Domain". Leave unset, if not using subdomains.]]></help>
<grid_view>
<formatter>model_relation_domain</formatter>
</grid_view>
</field>
<field>
<type>header</type>
@@ -21,7 +21,6 @@
<help><![CDATA[Select a wildcard domain for this subdomain.]]></help>
<grid_view>
<visible>false</visible>
<formatter>model_relation_domain</formatter>
</grid_view>
</field>
<field>
@@ -190,20 +190,6 @@
},
},
formatters: {
model_relation_domain: function (column, row) {
let result = (row[column.id] || "").trim();
if (column.id === "reverse") {
result = result.replace(" ", ":");
if (!row["subdomain"] && row["HandlePath"]) {
result += row["HandlePath"];
}
} else if (column.id === "subdomain") {
if (row["subdomain"] && row["HandlePath"]) {
result += row["HandlePath"];
}
}
return result;
},
from_domain: function (column, row) {
return (
(row["%DisableTls"] || "") +