feat(infra): add pihole rule to infra scope

This commit is contained in:
Nabil Derouiche
2026-06-25 22:15:46 +01:00
parent be63b30285
commit 314f8603aa
32 changed files with 507 additions and 589 deletions
+4 -4
View File
@@ -4,16 +4,16 @@
<div class="mb-6 flex items-center justify-between">
<div>
<h1 class="text-3xl font-bold text-white uppercase">{{ scope }} Scope Editor</h1>
<p class="text-gray-400 mt-2">Edit rules for the <span class="font-bold text-gray-200">{{ scope }}</span> scope (JSON format).</p>
<p class="dark:text-gray-400 text-gray-500 mt-2">Edit rules for the <span class="font-bold text-gray-200">{{ scope }}</span> scope (JSON format).</p>
</div>
<a href="/dashboard" class="text-gray-400 hover:text-white">&larr; Back to Dashboard</a>
<a href="/dashboard" class="dark:text-gray-400 text-gray-500 hover:text-white">&larr; Back to Dashboard</a>
</div>
<div class="bg-gray-800 rounded-lg shadow border border-gray-700 p-6">
<div class="dark:bg-gray-800 bg-gray-100 rounded-lg shadow border dark:border-gray-700 border-gray-200 p-6">
<div id="alert-box" class="hidden mb-4 p-4 rounded-md text-sm"></div>
<form id="editor-form" class="space-y-4">
<div>
<textarea id="json-editor" rows="20" class="w-full bg-gray-900 text-gray-100 font-mono text-sm p-4 rounded-md border border-gray-600 focus:border-nyora focus:ring-1 focus:ring-nyora transition"></textarea>
<textarea id="json-editor" rows="20" class="w-full dark:bg-gray-900 bg-white dark:text-gray-100 text-gray-900 font-mono text-sm p-4 rounded-md border border-gray-600 focus:border-nyora focus:ring-1 focus:ring-nyora transition"></textarea>
</div>
<div class="flex justify-end">
<button type="button" onclick="saveRules()" class="px-6 py-2 bg-nyora text-gray-900 font-medium rounded-md hover:bg-yellow-500 transition shadow-sm">Save Changes</button>