cleanup project

This commit is contained in:
2025-10-14 12:02:14 +02:00
parent 63929c2dce
commit 2e1157616f
68 changed files with 1377 additions and 10425 deletions

17
assets/toolbar.ts Normal file
View File

@@ -0,0 +1,17 @@
import { defineToolbarApp } from "astro/toolbar";
export default defineToolbarApp({
init(_canvas, app, server) {
let pending = false;
// const button = document.querySelector("astro-dev-toolbar")?.shadowRoot.querySelector("button[data-app-id='astro-pocketbase-continue']");
app.onToggled(({ state }) => {
if (!state) return;
app.toggleNotification({ level: "error", state: true });
if (pending) return;
pending = true;
server.send("astro-pocketbase-continue:refresh", undefined);
});
},
});