sfdsf
All checks were successful
Deploy / deploy-staging (push) Successful in 5s
Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-04-23 00:40:05 +02:00
parent 39bddf39e2
commit 0c90aa0b88
10 changed files with 240 additions and 204 deletions

View File

@@ -9,12 +9,6 @@ $hasConfig = !empty($instances);
<?= module_shell_header('pihole', [
'title' => 'Pi-hole Dashboard',
'description' => 'Status, Blockings, Usage und Steuerung fuer beide Instanzen.',
'tabs' => [
['label' => 'Dashboard', 'href' => '/module/pihole', 'active' => true],
['label' => 'Instanzen', 'href' => '/module/pihole/instances'],
['label' => 'Listen', 'href' => '/module/pihole/lists'],
['label' => 'Queries', 'href' => '/module/pihole/queries'],
],
]) ?>
<div class="card pihole-page" data-pihole-page="dashboard">

View File

@@ -135,12 +135,6 @@ if ($primaryId === '') {
<?= module_shell_header('pihole', [
'title' => 'Pi-hole Instanzen',
'description' => 'Pi-hole Instanzen hinzufuegen, bearbeiten und loeschen.',
'tabs' => [
['label' => 'Dashboard', 'href' => '/module/pihole'],
['label' => 'Instanzen', 'href' => '/module/pihole/instances', 'active' => true],
['label' => 'Listen', 'href' => '/module/pihole/lists'],
['label' => 'Queries', 'href' => '/module/pihole/queries'],
],
]) ?>
<div class="card">
<div style="display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;">

View File

@@ -6,11 +6,11 @@ $assets->addScript('/module/pihole/asset?file=pihole.js', 'footer', true);
$instances = module_fn('pihole', 'instances');
$hasConfig = !empty($instances);
?>
<?= module_shell_header('pihole', [
'title' => 'Listen & Domains',
'description' => 'Top-Domains, Listen-Updates und neue Eintraege auf der Primaer-Instanz.',
]) ?>
<div class="card pihole-page" data-pihole-page="lists">
<div class="pill">Pi-hole</div>
<h1 style="margin-top:.75rem;">Listen &amp; Domains</h1>
<p class="muted">Top-Domains, Listen-Updates und neue Eintraege (Primaer-Instanz).</p>
<?php if (!$hasConfig): ?>
<div class="card" style="margin-top:1rem; border-color:var(--accent);">
<strong>Keine Instanzen konfiguriert</strong>
@@ -84,3 +84,4 @@ $hasConfig = !empty($instances);
</div>
<?php endif; ?>
</div>
<?= module_shell_footer() ?>

View File

@@ -6,11 +6,11 @@ $assets->addScript('/module/pihole/asset?file=pihole.js', 'footer', true);
$instances = module_fn('pihole', 'instances');
$hasConfig = !empty($instances);
?>
<?= module_shell_header('pihole', [
'title' => 'Zugriffe & Blockings',
'description' => 'Aktuelle Blockings, Top Clients und Status pro Instanz.',
]) ?>
<div class="card pihole-page" data-pihole-page="queries">
<div class="pill">Pi-hole</div>
<h1 style="margin-top:.75rem;">Zugriffe &amp; Blockings</h1>
<p class="muted">Aktuelle Blockings, Top Clients und Status pro Instanz.</p>
<?php if (!$hasConfig): ?>
<div class="card" style="margin-top:1rem; border-color:var(--accent);">
<strong>Keine Instanzen konfiguriert</strong>
@@ -36,3 +36,4 @@ $hasConfig = !empty($instances);
</div>
<?php endif; ?>
</div>
<?= module_shell_footer() ?>