Htmx callback plugin and htmx based report view

This commit is contained in:
2026-09-01 00:01:03 +02:00
parent 71ba949cb5
commit 2832e76a31
7 changed files with 141 additions and 16 deletions
+4
View File
@@ -18,6 +18,7 @@ import { polyfillCountryFlagEmojis } from "country-flag-emoji-polyfill";
import { limitedChoices } from "#core:alpine/limited-choices";
import { expireOldStorage } from "#core:core/localstorage";
import { default as navbar } from "#core:core/navbar";
import { getErrorCallbacksExt } from "#core:htmx/error-callback";
import {
type NotificationPlugin,
notificationsPlugin as notifications,
@@ -62,6 +63,9 @@ document.body.addEventListener(
},
);
const errorCallbackExt = getErrorCallbacksExt();
htmx.registerExtension(errorCallbackExt.name, errorCallbackExt.extension);
Object.assign(window, { htmx });
/**