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

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