mirror of
https://github.com/hanzoai/simple-coredns-manager.git
synced 2026-10-30 19:55:29 +00:00
Full-featured web UI for managing CoreDNS Corefile and host files with diff preview, Docker-based reload, and master password authentication. Built for MWIT-LINK infrastructure DNS management. Co-authored-by: Hanzo Dev <[email protected]>
39 lines
1.7 KiB
HTML
39 lines
1.7 KiB
HTML
{{define "base"}}
|
|
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="dark">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>{{if .Title}}{{.Title}} — {{end}}CoreDNS Manager</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css" rel="stylesheet">
|
|
{{if .CSRFToken}}<meta name="csrf-token" content="{{.CSRFToken}}">{{end}}
|
|
<style>
|
|
.diff-add { background-color: rgba(40, 167, 69, 0.2); color: #75b798; }
|
|
.diff-del { background-color: rgba(220, 53, 69, 0.2); color: #ea868f; }
|
|
.diff-hunk { color: #6ea8fe; }
|
|
.diff-header { color: #adb5bd; }
|
|
pre.diff-block { font-size: 0.85rem; }
|
|
.editor-textarea { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; font-size: 0.85rem; tab-size: 4; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
{{if .Authenticated}}{{template "navbar" .}}{{end}}
|
|
<div class="container-fluid py-4" style="max-width: 1200px;">
|
|
{{template "flash" .}}
|
|
{{template "content" .}}
|
|
</div>
|
|
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://unpkg.com/[email protected]"></script>
|
|
<script>
|
|
document.body.addEventListener('htmx:configRequest', function(evt) {
|
|
var csrfToken = document.querySelector('meta[name="csrf-token"]');
|
|
if (csrfToken) {
|
|
evt.detail.headers['X-CSRF-Token'] = csrfToken.content;
|
|
}
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|
|
{{end}}
|