feat: add app entry point, password toggle, and schedule modules

This commit is contained in:
2026-06-06 16:52:16 +02:00
parent 78b36452ae
commit b5fc2dfe4e
3 changed files with 50 additions and 0 deletions

13
static/schedule.ts Normal file
View File

@@ -0,0 +1,13 @@
import { onReady } from "./utils";
const scheduleTimezone = (): string => Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
const initScheduleLoader = (): void => {
onReady(() => {
const loader = document.querySelector<HTMLElement>("[data-schedule-loader]");
if (!loader) return;
loader.setAttribute("hx-vals", JSON.stringify({ timezone: scheduleTimezone() }));
});
};
initScheduleLoader();