mirror of
https://github.com/ae-utbm/sith.git
synced 2026-08-28 08:09:16 +00:00
Htmx callback plugin and htmx based report view
This commit is contained in:
@@ -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 });
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user