diff --git a/apps/web/src/dashboard/favicon.svg b/apps/web/src/dashboard/favicon.svg new file mode 100644 index 0000000..fba6aff --- /dev/null +++ b/apps/web/src/dashboard/favicon.svg @@ -0,0 +1,8 @@ + + + P + Q + + + + diff --git a/apps/web/src/routes/dashboard.ts b/apps/web/src/routes/dashboard.ts index 720b9a6..3f0237b 100644 --- a/apps/web/src/routes/dashboard.ts +++ b/apps/web/src/routes/dashboard.ts @@ -163,9 +163,12 @@ const dashDir = resolve(import.meta.dir, "../dashboard"); export const dashboard = new Elysia() .get("/", () => html("landing", {})) - .get("/dashboard/app.js", () => new Response(Bun.file(`${dashDir}/app.js`), { headers: { "cache-control": "public, max-age=31536000, immutable" } })) - .get("/dashboard/app.css", () => new Response(Bun.file(`${dashDir}/app.css`), { headers: { "cache-control": "public, max-age=31536000, immutable" } })) - .get("/dashboard/tailwind.css", () => new Response(Bun.file(`${dashDir}/tailwind.css`), { headers: { "cache-control": "public, max-age=31536000, immutable" } })) + // Shared assets + .get("/favicon.svg", () => new Response(Bun.file(`${dashDir}/favicon.svg`), { headers: { "content-type": "image/svg+xml", "cache-control": "public, max-age=86400" } })) + .get("/assets/tailwind.css", () => new Response(Bun.file(`${dashDir}/tailwind.css`), { headers: { "cache-control": "public, max-age=31536000, immutable" } })) + .get("/assets/app.css", () => new Response(Bun.file(`${dashDir}/app.css`), { headers: { "cache-control": "public, max-age=31536000, immutable" } })) + .get("/assets/app.js", () => new Response(Bun.file(`${dashDir}/app.js`), { headers: { "cache-control": "public, max-age=31536000, immutable" } })) + // Dashboard-only assets .get("/dashboard/query-builder.js", () => new Response(Bun.file(`${dashDir}/query-builder.js`), { headers: { "cache-control": "public, max-age=31536000, immutable" } })) // Login page diff --git a/apps/web/src/views/docs.ejs b/apps/web/src/views/docs.ejs index 40b3324..0a08c06 100644 --- a/apps/web/src/views/docs.ejs +++ b/apps/web/src/views/docs.ejs @@ -4,7 +4,7 @@ PingQL — Documentation - +