mirror of
https://github.com/ae-utbm/sith.git
synced 2026-10-04 09:54:16 +00:00
replace exportToHtml by Object.assign(window, { obj })
This commit is contained in:
1 parent
6cec2e74d0
commit
ce0ddcd184
5 files changed
+7
-21
No files matched your search
@@ -1,4 +1,3 @@
|
||||
import { exportToHtml } from "#core:utils/globals.ts";
|
||||
import { newsDeleteNews, newsFetchNewsDates, newsPublishNews } from "#openapi";
|
||||
|
||||
// This will be used in jinja templates,
|
||||
@@ -13,7 +12,8 @@ const AlertState = {
|
||||
// biome-ignore lint/style/useNamingConvention: this feels more like an enum
|
||||
DISPLAYED: 4, // When published at page generation
|
||||
};
|
||||
exportToHtml("AlertState", AlertState);
|
||||
// biome-ignore lint/style/useNamingConvention: it's an enum, PascalCase is better
|
||||
Object.assign(window, { AlertState });
|
||||
|
||||
document.addEventListener("alpine:init", () => {
|
||||
Alpine.data("moderationAlert", (newsId: number) => ({
|
||||
|
||||
Reference in new issue
Block a user