Add update-vendor.sh symlink support, unify install.sh vendor flow
- update-vendor.sh now creates webui/vendor symlinks (htm.js) - install.sh calls update-vendor.sh after package install - Add vendor/.empty and webui/vendor/.empty as directory placeholders in git
This commit is contained in:
@@ -39,6 +39,7 @@ from lib.firewall import (
|
||||
_normalize_target,
|
||||
_parse_active_zones,
|
||||
_parse_zone_output,
|
||||
fw_change_summary,
|
||||
)
|
||||
from lib.firewall import (
|
||||
save_backup as _save_backup,
|
||||
@@ -378,7 +379,15 @@ def patch_config(_request: Any, body: dict[str, Any] | None) -> dict[str, Any]:
|
||||
@registry.register(GET_FIREWALL_CONFIG_PENDING)
|
||||
def config_pending_handler(_request: Any, _body: Any) -> dict[str, Any]:
|
||||
fw = _get_fw_state()
|
||||
return fw.get("pending", {})
|
||||
pending = fw.get("pending", {})
|
||||
|
||||
changes = pending.get("pending", [])
|
||||
|
||||
summaries = [
|
||||
fw_change_summary(c.get("zone", "unknown"), c.get("type", "unknown"), c)
|
||||
for c in changes
|
||||
]
|
||||
return {**pending, "pending_summary": summaries}
|
||||
|
||||
|
||||
@registry.register(POST_FIREWALL_CONFIG_APPLY)
|
||||
|
||||
Reference in New Issue
Block a user