404 error in the _front.log + work in progress icon #556 🚑

This commit is contained in:
Jokob-sk
2024-02-09 20:50:55 +11:00
parent 3f75ead025
commit 169617bdd6
8 changed files with 35 additions and 14 deletions

View File

@@ -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) |

View File

@@ -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"

View File

@@ -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)

View File

@@ -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

View File

@@ -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(`
<a href="https://github.com/jokob-sk/Pi.Alert/issues" target="_blank">
<b class="pointer" title="${getString("Gen_Work_In_Progress")}">🦺</b>
</a>
`)
}
}
// -----------------------------------------------------------------------------
// Loading Spinner overlay
// -----------------------------------------------------------------------------
@@ -703,6 +720,7 @@ function hideSpinner()
cacheSettings()
cacheStrings()
initDeviceListAll_JSON()
workInProgress()
console.log("init pialert_common.js")

View File

@@ -209,8 +209,7 @@ if ($ENABLED_DARKMODE === True) {
<section class="sidebar">
<!-- Sidebar user panel (optional) -->
<div class="user-panel">
<a href="." class="logo">
<div class="user-panel"> <a href="." class="logo">
<img src="img/pialertLogoGray80.png" class="img-responsive" alt="Pi.Alert Logo"/>
</a>
</div>
@@ -246,13 +245,14 @@ if ($ENABLED_DARKMODE === True) {
</li>
<li class=" <?php if (in_array (basename($_SERVER['SCRIPT_NAME']), array('maintenance.php') ) ){ echo 'active'; } ?>">
<div class="new-version myhidden" id="version" data-build-time="<?php echo file_get_contents( "buildtimestamp.txt");?>">🆕</div>
<div class="info-icon-nav myhidden" id="version" data-build-time="<?php echo file_get_contents( "buildtimestamp.txt");?>">🆕</div>
<a href="maintenance.php"><i class="fa fa-wrench "></i> <span><?= lang('Navigation_Maintenance');?></span></a>
</li>
<li class=" <?php if (in_array (basename($_SERVER['SCRIPT_NAME']), array('settings.php') ) ){ echo 'active'; } ?>">
<a href="settings.php"><i class="fa fa-cog"></i> <span><?= lang('Navigation_Settings');?></span></a>
</li>
<li class=" <?php if (in_array (basename($_SERVER['SCRIPT_NAME']), array('flows.php') ) ){ echo 'active'; } ?>">
<li class=" <?php if (in_array (basename($_SERVER['SCRIPT_NAME']), array('workflows.php') ) ){ echo 'active'; } ?>">
<div class="info-icon-nav work-in-progress"> </div>
<a href="workflows.php"><i class="fa fa-shuffle"></i> <span><?= lang('Navigation_Workflows');?></span></a>
</li>
<li class=" <?php if (in_array (basename($_SERVER['SCRIPT_NAME']), array('systeminfo.php') ) ){ echo 'active'; } ?>">

View File

@@ -42,6 +42,7 @@
"Gen_ReadDocs" : "Read more in the docs.",
"Gen_DataUpdatedUITakesTime" : "OK - It may take a while for the UI to update if a scan is running.",
"Gen_LockedDB" : "ERROR - DB might be locked - Check F12 Dev tools -> Console or try later.",
"Gen_Work_In_Progress" : "Work in progress, good time to feedback on https://github.com/jokob-sk/Pi.Alert/issues",
"Login_Box" : "Enter your password",
"Login_Remember" : "Remember",
"Login_Remember_small" : "(valid for 7 days)",

View File

@@ -32,7 +32,7 @@
{
"function": "AppEvents_hist",
"type": "integer",
"default_value": 10000,
"default_value": 5000,
"options": [],
"localized": ["name", "description"],
"name": [