mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-03-30 23:03:03 -07:00
FE: initCheck moved into systeminfo
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -40,7 +40,7 @@ There are several ways to check if the GraphQL server is running.
|
|||||||
|
|
||||||
### Init Check
|
### Init Check
|
||||||
|
|
||||||
You can navigate to Maintenance -> Init Check to see if `isGraphQLServerRunning` is ticked:
|
You can navigate to System Info -> Init Check to see if `isGraphQLServerRunning` is ticked:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 135 KiB After Width: | Height: | Size: 68 KiB |
@@ -22,7 +22,7 @@ function lockDatabase(delay=20) {
|
|||||||
clearInterval(countdownInterval);
|
clearInterval(countdownInterval);
|
||||||
console.log('Countdown finished');
|
console.log('Countdown finished');
|
||||||
}
|
}
|
||||||
}, 1000);
|
}, 5000);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ const requiredFiles = [
|
|||||||
if (allOk) {
|
if (allOk) {
|
||||||
checkInternalStatusAfterFiles();
|
checkInternalStatusAfterFiles();
|
||||||
} else {
|
} else {
|
||||||
setTimeout(checkAppInitializedJson, 1000);
|
setTimeout(checkAppInitializedJson, 5000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,7 +113,7 @@ const requiredFiles = [
|
|||||||
$('#check-status').show();
|
$('#check-status').show();
|
||||||
$('#check-status-plc').hide();
|
$('#check-status-plc').hide();
|
||||||
} else {
|
} else {
|
||||||
setTimeout(checkInternalStatusAfterFiles, 1000);
|
setTimeout(checkInternalStatusAfterFiles, 5000);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,12 +140,6 @@ $db->close();
|
|||||||
<?= lang('Device_MultiEdit');?>
|
<?= lang('Device_MultiEdit');?>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a id="tab_initCheck_id" href="#tab_initCheck" data-toggle="tab">
|
|
||||||
<i class="fa-solid fa-check"></i>
|
|
||||||
<?= lang('Maintenance_InitCheck');?>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
</ul>
|
||||||
<div class="tab-content spinnerTarget">
|
<div class="tab-content spinnerTarget">
|
||||||
<div class="tab-pane active" id="tab_DBTools">
|
<div class="tab-pane active" id="tab_DBTools">
|
||||||
@@ -280,20 +274,6 @@ $db->close();
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- ---------------------------Init check -------------------------------------------- -->
|
|
||||||
<div class="tab-pane" id="tab_initCheck">
|
|
||||||
<div class="db_info_table">
|
|
||||||
<div class="box box-solid">
|
|
||||||
|
|
||||||
<?php
|
|
||||||
require 'initCheck.php';
|
|
||||||
?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ------------------------------------------------------------------------------ -->
|
<!-- ------------------------------------------------------------------------------ -->
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -374,10 +374,6 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="maintenance.php#tab_multiEdit" onclick="initializeTabs()"> <?= lang("Device_MultiEdit");?> </a>
|
<a href="maintenance.php#tab_multiEdit" onclick="initializeTabs()"> <?= lang("Device_MultiEdit");?> </a>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<a href="maintenance.php#tab_initCheck" onclick="initializeTabs()"> <?= lang("Maintenance_InitCheck");?> </a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
@@ -453,6 +449,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="systeminfo.php#panStorage" onclick="setCache('activeSysinfoTab','tabStorage');initializeTabs()"><?= lang('Systeminfo_Storage');?></a>
|
<a href="systeminfo.php#panStorage" onclick="setCache('activeSysinfoTab','tabStorage');initializeTabs()"><?= lang('Systeminfo_Storage');?></a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="systeminfo.php#panInitCheck" onclick="setCache('activeSysinfoTab','tabInitCheck');initializeTabs()"> <?= lang("Maintenance_InitCheck");?> </a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,15 @@
|
|||||||
<?= lang('Systeminfo_Storage');?>
|
<?= lang('Systeminfo_Storage');?>
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a id="tabInitCheck" href="#panInitCheck" data-toggle="tab">
|
||||||
|
<i class="fa fa-check"></i>
|
||||||
|
<span class="dev-detail-tab-name">
|
||||||
|
<?= lang('Maintenance_InitCheck');?>
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<div class="tab-content spinnerTarget" style="min-height: 430px;">
|
<div class="tab-content spinnerTarget" style="min-height: 430px;">
|
||||||
@@ -70,6 +78,9 @@
|
|||||||
<div class="tab-pane fade table-responsive" data-php-file="systeminfoStorage.php" id="panStorage">
|
<div class="tab-pane fade table-responsive" data-php-file="systeminfoStorage.php" id="panStorage">
|
||||||
<!-- PLACEHOLDER -->
|
<!-- PLACEHOLDER -->
|
||||||
</div>
|
</div>
|
||||||
|
<div class="tab-pane fade table-responsive" data-php-file="systeminfoInitCheck.php" id="panInitCheck">
|
||||||
|
<!-- PLACEHOLDER -->
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.tab-content -->
|
<!-- /.tab-content -->
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
6
front/initCheck.php → front/systeminfoInitCheck.php
Executable file → Normal file
6
front/initCheck.php → front/systeminfoInitCheck.php
Executable file → Normal file
@@ -1,7 +1,10 @@
|
|||||||
<?php
|
<?php
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
// check if authenticated
|
// check if authenticated
|
||||||
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/templates/security.php';
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/templates/security.php';
|
||||||
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/server/db.php';
|
||||||
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/templates/language/lang.php';
|
||||||
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/templates/globals.php';
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
@@ -48,5 +51,6 @@
|
|||||||
|
|
||||||
$(document).ready(() => {
|
$(document).ready(() => {
|
||||||
checkAppInitializedJsonInit();
|
checkAppInitializedJsonInit();
|
||||||
|
hideSpinner();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user