From 5869b282c4cfa0bbaffb1dfea7d20f53202fffb6 Mon Sep 17 00:00:00 2001 From: Carl Mahnke Date: Wed, 28 May 2025 14:15:01 +0200 Subject: [PATCH 1/2] Fixing Kundendatenmodule Datenvorbelegen bei neuem Ausweis --- src/astro-typesafe-api-caller.ts | 6 +++--- src/pages/energieausweis-erstellen/bezahlung.astro | 2 +- src/pages/kundendaten.astro | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/astro-typesafe-api-caller.ts b/src/astro-typesafe-api-caller.ts index 93a299b8..a75e2803 100644 --- a/src/astro-typesafe-api-caller.ts +++ b/src/astro-typesafe-api-caller.ts @@ -17,10 +17,10 @@ export const createCaller = createCallerFactory({ "auth/access-token": await import("../src/pages/api/auth/access-token.ts"), "auth/passwort-vergessen": await import("../src/pages/api/auth/passwort-vergessen.ts"), "auth/refresh-token": await import("../src/pages/api/auth/refresh-token.ts"), - "bedarfsausweis-wohnen/[id]": await import("../src/pages/api/bedarfsausweis-wohnen/[id].ts"), - "bedarfsausweis-wohnen": await import("../src/pages/api/bedarfsausweis-wohnen/index.ts"), "bedarfsausweis-gewerbe/[id]": await import("../src/pages/api/bedarfsausweis-gewerbe/[id].ts"), "bedarfsausweis-gewerbe": await import("../src/pages/api/bedarfsausweis-gewerbe/index.ts"), + "bedarfsausweis-wohnen/[id]": await import("../src/pages/api/bedarfsausweis-wohnen/[id].ts"), + "bedarfsausweis-wohnen": await import("../src/pages/api/bedarfsausweis-wohnen/index.ts"), "bilder/[id]": await import("../src/pages/api/bilder/[id].ts"), "geg-nachweis-gewerbe/[id]": await import("../src/pages/api/geg-nachweis-gewerbe/[id].ts"), "geg-nachweis-gewerbe": await import("../src/pages/api/geg-nachweis-gewerbe/index.ts"), @@ -37,9 +37,9 @@ export const createCaller = createCallerFactory({ "verbrauchsausweis-gewerbe": await import("../src/pages/api/verbrauchsausweis-gewerbe/index.ts"), "verbrauchsausweis-wohnen/[id]": await import("../src/pages/api/verbrauchsausweis-wohnen/[id].ts"), "verbrauchsausweis-wohnen": await import("../src/pages/api/verbrauchsausweis-wohnen/index.ts"), - "webhooks/mollie": await import("../src/pages/api/webhooks/mollie.ts"), "aufnahme/[id]/bilder": await import("../src/pages/api/aufnahme/[id]/bilder.ts"), "aufnahme/[id]": await import("../src/pages/api/aufnahme/[id]/index.ts"), "aufnahme/[id]/unterlagen": await import("../src/pages/api/aufnahme/[id]/unterlagen.ts"), + "webhooks/mollie": await import("../src/pages/api/webhooks/mollie.ts"), "objekt/[id]": await import("../src/pages/api/objekt/[id]/index.ts"), }) \ No newline at end of file diff --git a/src/pages/energieausweis-erstellen/bezahlung.astro b/src/pages/energieausweis-erstellen/bezahlung.astro index fcbcd990..48fda87c 100644 --- a/src/pages/energieausweis-erstellen/bezahlung.astro +++ b/src/pages/energieausweis-erstellen/bezahlung.astro @@ -50,7 +50,7 @@ if (ausweis.rechnung.status === PaymentStatus.paid) { let impersonatedUser: Partial | null = null; if (user){ - if (user.id !== ausweis.benutzer_id){ + if (user.id !== ausweis.benutzer_id && ausweis.benutzer_id !== undefined){ impersonatedUser = await getOtherUser(Astro, ausweis.benutzer_id) || {} } } diff --git a/src/pages/kundendaten.astro b/src/pages/kundendaten.astro index 239b60e2..7b5a31b6 100644 --- a/src/pages/kundendaten.astro +++ b/src/pages/kundendaten.astro @@ -74,7 +74,7 @@ if (!params.has("ausweis") || !params.has("aufnahme") || !params.has("objekt") | let impersonatedUser: Partial | null = null; if (user){ - if (user.id !== ausweis.benutzer_id){ + if (user.id !== ausweis.benutzer_id && ausweis.benutzer_id !== undefined){ impersonatedUser = await getOtherUser(Astro, ausweis.benutzer_id) || {} } } From 36bcacd8a2d04ccdfd0d748447a16d692efc83fa Mon Sep 17 00:00:00 2001 From: Robert Jagtiani Date: Sun, 1 Jun 2025 23:27:07 +0200 Subject: [PATCH 2/2] Google Tag Manager --- src/layouts/AusweisLayoutDaten.astro | 12 ++ src/layouts/AusweisLayoutDatenImmowelt.astro | 157 ------------------ src/layouts/AusweisLayoutDatenImmowelt2.astro | 156 ----------------- src/layouts/AusweisLayoutDatenPartner.astro | 15 +- src/layouts/AusweisLayoutPruefung.astro | 12 ++ src/layouts/Layout.astro | 13 ++ 6 files changed, 50 insertions(+), 315 deletions(-) delete mode 100644 src/layouts/AusweisLayoutDatenImmowelt.astro delete mode 100644 src/layouts/AusweisLayoutDatenImmowelt2.astro diff --git a/src/layouts/AusweisLayoutDaten.astro b/src/layouts/AusweisLayoutDaten.astro index cf1a4523..db6f2fa2 100644 --- a/src/layouts/AusweisLayoutDaten.astro +++ b/src/layouts/AusweisLayoutDaten.astro @@ -102,6 +102,13 @@ const { title } = Astro.props; + + + @@ -147,6 +154,11 @@ const { title } = Astro.props; + + + +
- window.addEventListener("scroll", (event) => { - let scroll = window.scrollY; - - console.log(scroll); - if (scroll >= 400) { - document - .getElementById("skala") - ?.classList.add( - "2xl:fixed", - "2xl:py-4", - "2xl:top-0", - "2xl:z-20" - ); - document.getElementById("skala")?.classList.remove("w-full"); - - document.getElementById("skala").style.borderBottom = - "3px solid #e6e6e6"; - - document.getElementById("performance-box").style.maxWidth = - "688.5px"; - document.getElementById("progress-box").style.maxWidth = "688.5px"; - - document - .getElementById("formInput-1") - ?.classList.add("2xl:mt-[370px]"); - } else { - document - .getElementById("skala") - ?.classList.remove( - "2xl:fixed", - "2xl:py-4", - "2xl:top-0", - "2xl:z-20" - ); - document.getElementById("skala")?.classList.add("w-full"); - - document.getElementById("skala").style.borderBottom = "none"; - - document - .getElementById("formInput-1") - ?.classList.remove("2xl:mt-[370px]"); - } - }); - - - - - - - - - - - - - - - - - - - - - - - - {title || "Energieausweis online erstellen - Online Energieausweis"} - - - - -
- -
-
- -
-
- -