This commit is contained in:
Dennis Eichhorn 2024-01-02 23:34:18 +00:00
parent 6acc57391f
commit b7980455cc
9 changed files with 16 additions and 13 deletions

View File

@ -62,7 +62,7 @@
"fields": { "fields": {
"monitoring_request_id": { "monitoring_request_id": {
"name": "monitoring_request_id", "name": "monitoring_request_id",
"type": "INT", "type": "BIGINT",
"null": false, "null": false,
"primary": true, "primary": true,
"autoincrement": true "autoincrement": true

View File

@ -33,7 +33,7 @@ use phpOMS\Views\View;
final class BackendController extends Controller final class BackendController extends Controller
{ {
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -56,7 +56,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -143,7 +143,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -166,7 +166,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -189,7 +189,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
@ -210,7 +210,7 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour. * Routing end-point for application behavior.
* *
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response

View File

@ -92,7 +92,7 @@ class Controller extends ModuleAbstract
return; return;
} }
$stat = new ImpressionStat($request); $stat = new ImpressionStat($request);
$stat->end = new \DateTime('now'); $stat->end = new \DateTime('now');
// This is not run through the createModel() function on purpose // This is not run through the createModel() function on purpose

View File

@ -17,7 +17,7 @@ namespace Modules\Monitoring\Models;
use phpOMS\Stdlib\Base\Enum; use phpOMS\Stdlib\Base\Enum;
/** /**
* Permision state enum. * Permission category enum.
* *
* @package Modules\Monitoring\Models * @package Modules\Monitoring\Models
* @license OMS License 2.0 * @license OMS License 2.0

View File

@ -67,11 +67,15 @@ echo $this->data['nav']->render(); ?>
<tbody> <tbody>
<tr><td><?= $this->printHtml('pdftotext'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('pdftotext', '-v')[0] ?? '')); ?> <tr><td><?= $this->printHtml('pdftotext'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('pdftotext', '-v')[0] ?? '')); ?>
<tr><td><?= $this->printHtml('pdftoppm'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('pdftoppm', '-v')[0] ?? '')); ?> <tr><td><?= $this->printHtml('pdftoppm'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('pdftoppm', '-v')[0] ?? '')); ?>
<tr><td><?= $this->printHtml('wkhtmltoimage'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('wkhtmltoimage', '--version')[0] ?? '')); ?>
<tr><td><?= $this->printHtml('wget'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('wget', '--version')[0] ?? '')); ?>
<tr><td><?= $this->printHtml('tesseract'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('tesseract', '-v')[0] ?? '')); ?> <tr><td><?= $this->printHtml('tesseract'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('tesseract', '-v')[0] ?? '')); ?>
<tr><td><?= $this->printHtml('apache2'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('apache2', '-v')[0] ?? '')); ?> <tr><td><?= $this->printHtml('apache2'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('apache2', '-v')[0] ?? '')); ?>
<tr><td><?= $this->printHtml('mysql'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('mysql', '--version')[0] ?? '')); ?> <tr><td><?= $this->printHtml('mysql'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('mysql', '--version')[0] ?? '')); ?>
<tr><td><?= $this->printHtml('postgresql'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('psql', '--version')[0] ?? '')); ?> <tr><td><?= $this->printHtml('postgresql'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('psql', '--version')[0] ?? '')); ?>
<tr><td><?= $this->printHtml('sqlsrv'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('sqlsrv', '--version')[0] ?? '')); ?> <tr><td><?= $this->printHtml('sqlsrv'); ?><td><?= $this->printHtml((string) (SystemUtils::runProc('sqlsrv', '--version')[0] ?? '')); ?>
<tr><td><?= $this->printHtml('sqlite3'); ?><td><?= $this->printHtml(\substr((string) (SystemUtils::runProc('sqlite3', '--version')[0] ?? ''), 0, 40)); ?>
<tr><td><?= $this->printHtml('sqlite'); ?><td><?= $this->printHtml(\substr((string) (SystemUtils::runProc('sqlite', '--version')[0] ?? ''), 0, 40)); ?>
</table> </table>
</div> </div>
</section> </section>

View File

@ -82,7 +82,7 @@ echo $this->data['nav']->render(); ?>
</div> </div>
<div class="form-group"> <div class="form-group">
<label><i class="g-icon">edit</i> <?= $this->getHtml('Version'); ?></label> <label><i class="g-icon">stylus</i> <?= $this->getHtml('Version'); ?></label>
<label><?= $this->printHtml($log[4] ?? ''); ?></label> <label><?= $this->printHtml($log[4] ?? ''); ?></label>
</div> </div>

View File

@ -26,7 +26,7 @@ echo $this->data['nav']->render(); ?>
<div class="portlet"> <div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Modules'); ?><i class="g-icon download btn end-xs">download</i></div> <div class="portlet-head"><?= $this->getHtml('Modules'); ?><i class="g-icon download btn end-xs">download</i></div>
<div class="slider"> <div class="slider">
<table class="default"> <table class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Timestamp'); ?> <td><?= $this->getHtml('Timestamp'); ?>

View File

@ -67,7 +67,7 @@ echo $this->data['nav']->render(); ?>
<div class="portlet"> <div class="portlet">
<div class="portlet-head"><?= $this->getHtml('Inspection'); ?><i class="g-icon download btn end-xs">download</i></div> <div class="portlet-head"><?= $this->getHtml('Inspection'); ?><i class="g-icon download btn end-xs">download</i></div>
<div class="slider"> <div class="slider">
<table id="fileList" class="default"> <table id="fileList" class="default sticky">
<thead> <thead>
<tr> <tr>
<td><?= $this->getHtml('Status'); ?> <td><?= $this->getHtml('Status'); ?>

View File

@ -14,7 +14,6 @@
"name": "Jingga", "name": "Jingga",
"website": "jingga.app" "website": "jingga.app"
}, },
"description": "The administration module.",
"directory": "Monitoring", "directory": "Monitoring",
"dependencies": { "dependencies": {
"Admin": "1.0.0" "Admin": "1.0.0"