From 87c924d8d014cec1536f1a78b7d5280f942d9d0d Mon Sep 17 00:00:00 2001 From: M1 Date: Mon, 16 Mar 2026 15:16:59 +0400 Subject: [PATCH] fix: app.js deferred in head (fixes requireAuth undefined), extract app.css --- apps/web/src/dashboard/app.css | 4 ++++ apps/web/src/routes/dashboard.ts | 1 + apps/web/src/views/partials/foot.ejs | 1 - apps/web/src/views/partials/head.ejs | 5 ++--- 4 files changed, 7 insertions(+), 4 deletions(-) create mode 100644 apps/web/src/dashboard/app.css diff --git a/apps/web/src/dashboard/app.css b/apps/web/src/dashboard/app.css new file mode 100644 index 0000000..d163c92 --- /dev/null +++ b/apps/web/src/dashboard/app.css @@ -0,0 +1,4 @@ +body { + font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace; + background: #0a0a0a; +} diff --git a/apps/web/src/routes/dashboard.ts b/apps/web/src/routes/dashboard.ts index 9747546..ef349a5 100644 --- a/apps/web/src/routes/dashboard.ts +++ b/apps/web/src/routes/dashboard.ts @@ -15,6 +15,7 @@ const dashDir = resolve(import.meta.dir, "../dashboard"); export const dashboard = new Elysia() .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`)) // Auth / login page (static — no nav needed) diff --git a/apps/web/src/views/partials/foot.ejs b/apps/web/src/views/partials/foot.ejs index b5a9857..308b1d0 100644 --- a/apps/web/src/views/partials/foot.ejs +++ b/apps/web/src/views/partials/foot.ejs @@ -1,3 +1,2 @@ - diff --git a/apps/web/src/views/partials/head.ejs b/apps/web/src/views/partials/head.ejs index 8431094..4052768 100644 --- a/apps/web/src/views/partials/head.ejs +++ b/apps/web/src/views/partials/head.ejs @@ -5,8 +5,7 @@ PingQL<%= it.title ? ` — ${it.title}` : '' %> - + +