Htmx callback plugin and htmx based report view

This commit is contained in:
2026-08-27 18:38:17 +02:00
parent c84cef8e55
commit 881943220b
7 changed files with 150 additions and 16 deletions
+7
View File
@@ -10,6 +10,10 @@ import sort from "@alpinejs/sort";
import Alpine from "alpinejs";
import { polyfillCountryFlagEmojis } from "country-flag-emoji-polyfill";
import htmx from "htmx.org";
import { getErrorCallbacksExt } from "#core:htmx/error-callback";
("#core:htmx/error-callback");
import { limitedChoices } from "#core:alpine/limited-choices";
import { expireOldStorage } from "#core:core/localstorage";
import { default as navbar } from "#core:core/navbar";
@@ -57,6 +61,9 @@ document.body.addEventListener(
},
);
const errorCallbackExt = getErrorCallbacksExt();
htmx.defineExtension(errorCallbackExt.name, errorCallbackExt.extension);
Object.assign(window, { htmx });
/**