Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 14 |
|
0.00% |
0 / 3 |
CRAP | |
0.00% |
0 / 1 |
OlzMonitoringParams | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
OlzMonitoring | |
0.00% |
0 / 14 |
|
0.00% |
0 / 3 |
12 | |
0.00% |
0 / 1 |
getSearchTitle | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
getSearchResults | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
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\OlzRootComponent; |
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 OlzRootComponent<array<string, mixed>> */ |
16 | class OlzMonitoring extends OlzRootComponent { |
17 | public function getSearchTitle(): string { |
18 | return 'TODO'; |
19 | } |
20 | |
21 | public function getSearchResults(array $terms): array { |
22 | return []; |
23 | } |
24 | |
25 | public function getHtml(mixed $args): string { |
26 | $this->httpUtils()->validateGetParams(OlzMonitoringParams::class); |
27 | $code_href = $this->envUtils()->getCodeHref(); |
28 | |
29 | $out = OlzHeader::render([ |
30 | 'back_link' => "{$code_href}service/", |
31 | 'title' => "Monitoring", |
32 | 'norobots' => true, |
33 | ]); |
34 | |
35 | $out .= <<<'ZZZZZZZZZZ' |
36 | <style> |
37 | .menu-container { |
38 | max-width: none; |
39 | } |
40 | .site-container { |
41 | max-width: none; |
42 | } |
43 | </style> |
44 | ZZZZZZZZZZ; |
45 | |
46 | $out .= "<div class='content-full'><div id='react-root'>Lädt...</div></div>"; |
47 | |
48 | $metadata = new Metadata(); |
49 | $out .= $metadata->getJsCssImports(); |
50 | |
51 | $out .= OlzFooter::render(); |
52 | |
53 | return $out; |
54 | } |
55 | } |