diff --git a/web_interface/static/v3/app.js b/web_interface/static/v3/app.js index e5f0d36a..dd17fc7d 100644 --- a/web_interface/static/v3/app.js +++ b/web_interface/static/v3/app.js @@ -1,4 +1,4 @@ -/* global showNotification, updateSystemStats, updateDisplayPreview, htmx */ +/* global showNotification, updateSystemStats, updateDisplayPreview, htmx, debugLog */ // LED Matrix v3 JavaScript // Additional helpers for HTMX and Alpine.js integration diff --git a/web_interface/static/v3/js/app-early.js b/web_interface/static/v3/js/app-early.js index 91ded445..0da92f21 100644 --- a/web_interface/static/v3/js/app-early.js +++ b/web_interface/static/v3/js/app-early.js @@ -1,3 +1,4 @@ +/* global debugLog */ // Early helpers and the app() stub (must run before Alpine init) // Extracted from templates/v3/base.html so browsers cache it as a static asset. // Helper function to get installed plugins with fallback diff --git a/web_interface/static/v3/js/app-shell.js b/web_interface/static/v3/js/app-shell.js index c366b16b..6c18b888 100644 --- a/web_interface/static/v3/js/app-shell.js +++ b/web_interface/static/v3/js/app-shell.js @@ -1,3 +1,4 @@ +/* global debugLog */ // SSE wiring + full Alpine app() implementation and tab logic // Extracted from templates/v3/base.html so browsers cache it as a static asset. // Assign to window so reconnectSSE() in app.js can reach them. @@ -1480,9 +1481,9 @@ unescapedValue = value .replace(/"/g, '"') .replace(/'/g, "'") - .replace(/&/g, '&') .replace(/</g, '<') - .replace(/>/g, '>'); + .replace(/>/g, '>') + .replace(/&/g, '&'); } // Try to parse as JSON @@ -2253,9 +2254,9 @@ unescapedValue = value .replace(/"/g, '"') .replace(/'/g, "'") - .replace(/&/g, '&') .replace(/</g, '<') - .replace(/>/g, '>'); + .replace(/>/g, '>') + .replace(/&/g, '&'); } try { diff --git a/web_interface/static/v3/js/custom-feeds-helpers.js b/web_interface/static/v3/js/custom-feeds-helpers.js index 0ce98f15..36cced87 100644 --- a/web_interface/static/v3/js/custom-feeds-helpers.js +++ b/web_interface/static/v3/js/custom-feeds-helpers.js @@ -1,3 +1,4 @@ +/* global debugLog */ // Custom feeds table helper functions // Extracted from templates/v3/base.html so browsers cache it as a static asset. function addCustomFeedRow(fieldId, fullKey, maxItems, pluginId) { diff --git a/web_interface/static/v3/js/htmx-config.js b/web_interface/static/v3/js/htmx-config.js index 9c38eda4..2de0f79d 100644 --- a/web_interface/static/v3/js/htmx-config.js +++ b/web_interface/static/v3/js/htmx-config.js @@ -1,3 +1,4 @@ +/* global debugLog */ // HTMX swap/script-execution configuration and section toggle helpers // Extracted from templates/v3/base.html so browsers cache it as a static asset. // Configure HTMX to evaluate scripts in swapped content and fix insertBefore errors diff --git a/web_interface/static/v3/plugins_manager.js b/web_interface/static/v3/plugins_manager.js index b8d3a24a..9b740c81 100644 --- a/web_interface/static/v3/plugins_manager.js +++ b/web_interface/static/v3/plugins_manager.js @@ -1,3 +1,4 @@ +/* global debugLog */ // ─── LocalStorage Safety Wrappers ──────────────────────────────────────────── // Handles environments where localStorage is unavailable or restricted (private browsing, etc.) const safeLocalStorage = { diff --git a/web_interface/templates/v3/base.html b/web_interface/templates/v3/base.html index 72c23d55..27c4577e 100644 --- a/web_interface/templates/v3/base.html +++ b/web_interface/templates/v3/base.html @@ -3,7 +3,7 @@ - LED Matrix Control Panel - v3 + LED Matrix Control Panel