chore: bump version to 1.2.20 & optimize ucode scripts

This commit is contained in:
Dushnilin
2026-07-21 23:35:25 +03:00
parent 662df112fd
commit 16b4c39693
12 changed files with 102 additions and 145 deletions
+6
View File
@@ -3,12 +3,18 @@ set -eo pipefail
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
SECTION_JS="$ROOT_DIR/luci-app-tachyon/htdocs/luci-static/resources/view/tachyon/section.js"
# Normalize SECTION_JS line endings to a temp file to prevent sed parsing failures on CRLF checkouts
SECTION_JS_LF="$(mktemp)"
tr -d '\r' < "$SECTION_JS" > "$SECTION_JS_LF"
SECTION_JS="$SECTION_JS_LF"
trap 'rm -f "$SECTION_JS_LF"' EXIT
fail() {
printf 'FAIL: %s\n' "$1" >&2
exit 1
}
wrapper_styles="$(sed -n '/^\.fkp-button-add-dynlist > \.add-item {$/,/^}$/p' "$SECTION_JS")"
button_styles="$(sed -n '/^\.fkp-button-add-dynlist > \.add-item > \.cbi-button-add {$/,/^}$/p' "$SECTION_JS")"
urltest_options="$(sed -n '/^function addUrlTestItemOptions(/,/^function priorityLevelSettingsForValidation(/p' "$SECTION_JS")"