import Alpine from "alpinejs"; import { Store } from "../utils/store.ts"; import { goto } from "../utils/tools.ts"; Alpine.data("settingsPageState", () => ({ async debugLogout() { await Store.reset(); goto("signup"); }, goto(newLocation: string) { goto(newLocation); }, })); Alpine.start();