mirror of
https://github.com/ae-utbm/sith.git
synced 2026-05-22 08:50:17 +00:00
22 lines
577 B
TypeScript
22 lines
577 B
TypeScript
import sort from "@alpinejs/sort";
|
|
import { Alpine } from "alpinejs";
|
|
import { limitedChoices } from "#core:alpine/limited-choices";
|
|
import {
|
|
type NotificationPlugin,
|
|
notificationsPlugin as notifications,
|
|
} from "#core:utils/notifications";
|
|
|
|
declare module "alpinejs" {
|
|
interface Magics<T> {
|
|
$notifications: NotificationPlugin;
|
|
}
|
|
}
|
|
|
|
Alpine.plugin([sort, limitedChoices, notifications]);
|
|
// biome-ignore lint/style/useNamingConvention: it's how it's named
|
|
Object.assign(window, { Alpine });
|
|
|
|
window.addEventListener("DOMContentLoaded", () => {
|
|
Alpine.start();
|
|
});
|