selection

This commit is contained in:
Niki Wix Skaarup 2025-04-05 21:25:58 +02:00
parent 224bdb02bc
commit cc453863e3
Signed by: nikiskaarup
GPG key ID: FC2F1B116F6E788C
3 changed files with 5 additions and 5 deletions

View file

@ -62,7 +62,7 @@
<div class="py-2 text-xs text-gray-400/50">{entry.id}</div> <div class="py-2 text-xs text-gray-400/50">{entry.id}</div>
<a <a
href={entry.href} href={entry.href}
class="block px-2 py-1 text-gray-200 capitalize transition-colors selection:bg-pink-600 selection:text-gray-200 hover:text-pink-600 hover:underline" class="block px-2 py-1 text-gray-200 capitalize transition-colors hover:text-pink-600 hover:underline"
target="_blank" target="_blank"
referrerpolicy="no-referrer">{entry.name}</a referrerpolicy="no-referrer">{entry.name}</a
> >

View file

@ -13,7 +13,7 @@
</head> </head>
<body <body
class="min-h-dvh bg-gray-950 bg-cover bg-fixed bg-center bg-no-repeat font-mono text-pretty text-gray-100" class="min-h-dvh bg-gray-950 bg-cover bg-fixed bg-center bg-no-repeat font-mono text-pretty text-gray-100 selection:bg-pink-600 selection:text-gray-200"
> >
<div class="contents"></div> <div class="contents"></div>
</body> </body>

View file

@ -37,9 +37,8 @@ Bun.serve({
if (!isLoggedIn(req)) return unauthorizedResp(); if (!isLoggedIn(req)) return unauthorizedResp();
const data = await ptApi.query(); const data = await ptApi.query();
return new Response(JSON.stringify(data), { const body = JSON.stringify(data);
headers: { 'Content-Type': 'application/json', 'Cache-Control': 'max-age=30' }, return new Response(body, { headers: { 'Content-Type': 'application/json' } });
});
}, },
}, },
'/auth/logout': { '/auth/logout': {
@ -97,6 +96,7 @@ Bun.serve({
}, },
}, },
development, development,
reusePort: true,
// async fetch(req, server) { // async fetch(req, server) {
// return new Response("Not found", { status: 404 }); // return new Response("Not found", { status: 404 });
// }, // },