"""admin.werkstatt-76.de: the dashboard (MicroPython under PyScript). Mount, then resume the shared session or show sign-in.""" from js import document from framework import mount from w76kit import account from dashboard import App, load_counts mount("#app", App) try: document.getElementById("splash").remove() except Exception: pass island = document.querySelector("[data-island]") if island: island.setAttribute("data-ready", "true") account.on_signed_in(load_counts) await account.boot() # noqa: F704 - PyScript runs this module with top-level await