Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
OlzMonitoringParams | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
OlzMonitoring | |
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getHtml | |
0.00% |
0 / 12 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | namespace Olz\Apps\Monitoring\Components\OlzMonitoring; |
4 | |
5 | use Olz\Apps\Monitoring\Metadata; |
6 | use Olz\Components\Common\OlzComponent; |
7 | use Olz\Components\Page\OlzFooter\OlzFooter; |
8 | use Olz\Components\Page\OlzHeader\OlzHeader; |
9 | use Olz\Utils\HttpParams; |
10 | |
11 | /** @extends HttpParams<array{}> */ |
12 | class OlzMonitoringParams extends HttpParams { |
13 | } |
14 | |
15 | /** @extends OlzComponent<array<string, mixed>> */ |
16 | class OlzMonitoring extends OlzComponent { |
17 | public function getHtml(mixed $args): string { |
18 | $this->httpUtils()->validateGetParams(OlzMonitoringParams::class); |
19 | $code_href = $this->envUtils()->getCodeHref(); |
20 | |
21 | $out = OlzHeader::render([ |
22 | 'back_link' => "{$code_href}service/", |
23 | 'title' => "Monitoring", |
24 | 'norobots' => true, |
25 | ]); |
26 | |
27 | $out .= <<<'ZZZZZZZZZZ' |
28 | <style> |
29 | .menu-container { |
30 | max-width: none; |
31 | } |
32 | .site-container { |
33 | max-width: none; |
34 | } |
35 | </style> |
36 | ZZZZZZZZZZ; |
37 | |
38 | $out .= "<div class='content-full'><div id='react-root'>Lädt...</div></div>"; |
39 | |
40 | $metadata = new Metadata(); |
41 | $out .= $metadata->getJsCssImports(); |
42 | |
43 | $out .= OlzFooter::render(); |
44 | |
45 | return $out; |
46 | } |
47 | } |