From 169617bdd6be1f74e40e078acb11f8f49cf858e5 Mon Sep 17 00:00:00 2001 From: Jokob-sk Date: Fri, 9 Feb 2024 20:50:55 +1100 Subject: [PATCH] =?UTF-8?q?404=20error=20in=20the=20=5Ffront.log=20+=20wor?= =?UTF-8?q?k=20in=20progress=20icon=20=20#556=20=F0=9F=9A=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- dockerfiles/start.sh | 9 +++++++-- docs/README.md | 1 + front/css/pialert.css | 8 ++------ front/js/pialert_common.js | 18 ++++++++++++++++++ front/php/templates/header.php | 8 ++++---- front/php/templates/language/en_us.json | 1 + front/plugins/workflows/config.json | 2 +- 8 files changed, 35 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index eda23562..8e3b55c7 100755 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Get visibility of what's going on on your WIFI/LAN network. Scan for devices, po | Features | Details | |-------------|-------------| | 🔍 | The app scans your network for, **New devices**, **New connections** (re-connections), **Disconnections**, **"Always Connected" devices down**, Devices **IP changes** and **Internet IP address changes**. Discovery & scan methods include: **arp-scan**. **Pi-hole - DB import**, **Pi-hole - DHCP leases import**, **Generic DHCP leases import**. **UNIFI controller import**, **SNMP-enabled router import**. Check the [Plugins](https://github.com/jokob-sk/Pi.Alert/tree/main/front/plugins#readme) docs for more info on individual scans. | -|📧 | Send notifications to more than 80+ services, including Telegram via [Apprise](https://hub.docker.com/r/caronc/apprise), or use [Pushsafer](https://www.pushsafer.com/), or [NTFY](https://ntfy.sh/). | +|📧 | Send notifications to more than 80+ services, including Telegram via [Apprise](https://hub.docker.com/r/caronc/apprise), or use [Pushsafer](https://www.pushsafer.com/), [Pushover](https://www.pushover.net/), or [NTFY](https://ntfy.sh/). | |🧩 | Feed your data and device changes into [Home Assistant](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/HOME_ASSISTANT.md), read [API endpoints](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/API.md), or use [Webhooks](https://github.com/jokob-sk/Pi.Alert/blob/main/docs/WEBHOOK_N8N.md) to setup custom automation flows. | |➕ | Build your own scanners with the [Plugin system](https://github.com/jokob-sk/Pi.Alert/tree/main/front/plugins#readme) | diff --git a/dockerfiles/start.sh b/dockerfiles/start.sh index 2129eb35..6757ecf4 100755 --- a/dockerfiles/start.sh +++ b/dockerfiles/start.sh @@ -92,8 +92,13 @@ else fi fi -# Create an empty execution_queue.log file -echo '' > $INSTALL_DIR/pialert/front/log/execution_queue.log +# Create an empty log files + +# Create the execution_queue.log file if it doesn't exist +touch "$INSTALL_DIR/pialert/front/log/execution_queue.log" +# Create the pialert_front.log file if it doesn't exist +touch "$INSTALL_DIR/pialert/front/log/pialert_front.log" + # Fixing file permissions echo "[INSTALL] Fixing file permissions" diff --git a/docs/README.md b/docs/README.md index 8ffc8742..e4643380 100755 --- a/docs/README.md +++ b/docs/README.md @@ -36,6 +36,7 @@ There is also an in-app Help / FAQ section that should be answering frequently a #### 🐛 Debugging help & tips - [Debugging tips](/docs/DEBUG_TIPS.md) +- [Debugging UI not showing](/docs/WEB_UI_PORT_DEBUG.md) - [Invalid JSON errors debug help](/docs/DEBUG_INVALID_JSON.md) - [Troubleshooting Plugins](/docs/DEBUG_PLUGINS.md) diff --git a/front/css/pialert.css b/front/css/pialert.css index 1268b6b7..a7d4bb69 100755 --- a/front/css/pialert.css +++ b/front/css/pialert.css @@ -797,12 +797,8 @@ input[readonly] { min-width: 18px; } -.drp-edit -{ - cursor: pointer; -} -.new-version +.info-icon-nav { top: -6px; position: absolute; @@ -813,7 +809,7 @@ input[readonly] { .pointer { - cursor:pointer; + cursor: pointer; } .drag diff --git a/front/js/pialert_common.js b/front/js/pialert_common.js index 4428e795..cba4b4dd 100755 --- a/front/js/pialert_common.js +++ b/front/js/pialert_common.js @@ -664,6 +664,23 @@ function getGuid() { ); } +// ----------------------------------------------------------------------------- +// UI +// ----------------------------------------------------------------------------- +// ----------------------------------------------------------------------------- +// Genrate work-in-progress icons +function workInProgress() { + console.log() + if($(".work-in-progress").html().trim() == "") + { + $(".work-in-progress").append(` + + 🦺 + + `) + } +} + // ----------------------------------------------------------------------------- // Loading Spinner overlay // ----------------------------------------------------------------------------- @@ -703,6 +720,7 @@ function hideSpinner() cacheSettings() cacheStrings() initDeviceListAll_JSON() +workInProgress() console.log("init pialert_common.js") diff --git a/front/php/templates/header.php b/front/php/templates/header.php index bf45cb21..b64bbab8 100755 --- a/front/php/templates/header.php +++ b/front/php/templates/header.php @@ -209,8 +209,7 @@ if ($ENABLED_DARKMODE === True) {