From 8e85abfda433c0e16b228dd51fb724d654bacc69 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Tue, 5 Mar 2024 09:34:13 +1100 Subject: [PATCH] =?UTF-8?q?Paho=20MQTT=20Version=20slection=20support=20+?= =?UTF-8?q?=20JS/CSS=20fixes=20#580=20=F0=9F=A9=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/css/pialert.css | 5 ++ front/js/pialert_common.js | 12 --- front/php/templates/header.php | 66 +++++++++++--- front/php/templates/language/en_us.json | 2 +- front/php/templates/language/es_es.json | 0 front/plugins/_publisher_mqtt/config.json | 17 +++- front/plugins/_publisher_mqtt/mqtt.py | 104 +++++++++++++--------- front/settings.php | 26 ++++-- front/systeminfo.php | 12 +-- 9 files changed, 163 insertions(+), 81 deletions(-) mode change 100644 => 100755 front/php/templates/language/es_es.json diff --git a/front/css/pialert.css b/front/css/pialert.css index 8cfd885f..746f0537 100755 --- a/front/css/pialert.css +++ b/front/css/pialert.css @@ -1055,6 +1055,11 @@ input[readonly] { } +.pia-top-left-logo +{ + height:50px; +} + /* ----------------------------------------------------------------------------- Donations ----------------------------------------------------------------------------- */ diff --git a/front/js/pialert_common.js b/front/js/pialert_common.js index d3251a33..2a6f2188 100755 --- a/front/js/pialert_common.js +++ b/front/js/pialert_common.js @@ -757,18 +757,7 @@ function getGuid() { // UI // ----------------------------------------------------------------------------- // ----------------------------------------------------------------------------- -// Generate work-in-progress icons -function workInProgress() { - if($(".work-in-progress").html().trim() == "") - { - $(".work-in-progress").append(` - - 🦺 - - `) - } -} // ----------------------------------------------------------------------------- // Loading Spinner overlay @@ -876,7 +865,6 @@ function executeOnce() { cacheSettings(); cacheStrings(); initDeviceListAll_JSON(); - workInProgress(); // Set the flag in sessionStorage to indicate that the code has been executed and save time when last time the page for initialized sessionStorage.setItem(sessionStorageKey, "true"); diff --git a/front/php/templates/header.php b/front/php/templates/header.php index 893fdf63..a4e4ef56 100755 --- a/front/php/templates/header.php +++ b/front/php/templates/header.php @@ -111,7 +111,7 @@ if ($ENABLED_DARKMODE === True) { - onLoad="show_pia_servertime();" > + onLoad="show_pia_servertime();" >
@@ -122,9 +122,14 @@ if ($ENABLED_DARKMODE === True) { @@ -183,7 +188,7 @@ if ($ENABLED_DARKMODE === True) { Pi.Alert Logo

- Raspberry Pi + Docker

@@ -208,12 +213,6 @@ if ($ENABLED_DARKMODE === True) {