mirror of
https://github.com/ae-utbm/sith.git
synced 2026-05-22 17:00:19 +00:00
Merge pull request #1385 from ae-utbm/localstorage
Automatic localstorage cleaning
This commit is contained in:
@@ -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) => ({
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<title>{% trans %}Slideshow{% endtrans %}</title>
|
||||
<link rel="shortcut icon" href="{{ static('core/img/favicon.ico') }}">
|
||||
<link href="{{ static('css/slideshow.scss') }}" rel="stylesheet" type="text/css" />
|
||||
<script type="module" src="{{ static('bundled/alpine-index.ts') }}"></script>
|
||||
<script type="module" src="{{ static('bundled/base-bundle-index.ts') }}"></script>
|
||||
<script type="module" src="{{ static('bundled/com/slideshow-index.ts') }}"></script>
|
||||
</head>
|
||||
<body x-data="slideshow([
|
||||
|
||||
Reference in New Issue
Block a user