vendor Tailwind CSS, embed all static assets in binary
All checks were successful
check / check (push) Successful in 45s
All checks were successful
check / check (push) Successful in 45s
Remove CDN dependency (cdn.tailwindcss.com) and replace with a pre-built, minified Tailwind CSS file embedded in the Go binary via go:embed. Changes: - Add static/static.go with go:embed for css/ directory - Add static/css/tailwind.min.css (9KB, contains only classes used by the dashboard template) - Remove <script src="https://cdn.tailwindcss.com"> and inline tailwind.config from dashboard.html - Replace with <link rel="stylesheet" href="/s/css/tailwind.min.css"> - Mount /s/ route for embedded static file serving (go-chi) - Add /.well-known/healthcheck endpoint per GO_HTTP_SERVER conventions Zero external HTTP requests from the browser. All assets served from the binary itself. Closes #82
This commit is contained in:
@@ -5,23 +5,7 @@
|
||||
<meta http-equiv="refresh" content="30" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>dnswatcher</title>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<script>
|
||||
tailwind.config = {
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
surface: {
|
||||
950: "#0c1222",
|
||||
900: "#111827",
|
||||
800: "#1a2332",
|
||||
700: "#243044",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<link rel="stylesheet" href="/s/css/tailwind.min.css" />
|
||||
</head>
|
||||
<body
|
||||
class="bg-surface-950 text-slate-300 font-mono text-sm min-h-screen antialiased"
|
||||
|
||||
Reference in New Issue
Block a user