fix: app.js deferred in head (fixes requireAuth undefined), extract app.css
This commit is contained in:
parent
e36c239000
commit
87c924d8d0
|
|
@ -0,0 +1,4 @@
|
||||||
|
body {
|
||||||
|
font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;
|
||||||
|
background: #0a0a0a;
|
||||||
|
}
|
||||||
|
|
@ -15,6 +15,7 @@ const dashDir = resolve(import.meta.dir, "../dashboard");
|
||||||
|
|
||||||
export const dashboard = new Elysia()
|
export const dashboard = new Elysia()
|
||||||
.get("/dashboard/app.js", () => Bun.file(`${dashDir}/app.js`))
|
.get("/dashboard/app.js", () => Bun.file(`${dashDir}/app.js`))
|
||||||
|
.get("/dashboard/app.css", () => Bun.file(`${dashDir}/app.css`))
|
||||||
.get("/dashboard/query-builder.js",() => Bun.file(`${dashDir}/query-builder.js`))
|
.get("/dashboard/query-builder.js",() => Bun.file(`${dashDir}/query-builder.js`))
|
||||||
|
|
||||||
// Auth / login page (static — no nav needed)
|
// Auth / login page (static — no nav needed)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
||||||
<script src="/dashboard/app.js"></script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,7 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>PingQL<%= it.title ? ` — ${it.title}` : '' %></title>
|
<title>PingQL<%= it.title ? ` — ${it.title}` : '' %></title>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<script src="https://cdn.tailwindcss.com"></script>
|
||||||
<style>
|
<link rel="stylesheet" href="/dashboard/app.css">
|
||||||
body { font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace; background: #0a0a0a; }
|
<script src="/dashboard/app.js" defer></script>
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body class="bg-[#0a0a0a] text-gray-100 min-h-screen">
|
<body class="bg-[#0a0a0a] text-gray-100 min-h-screen">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue