diff --git a/src/astro-typesafe-api-caller.ts b/src/astro-typesafe-api-caller.ts index c1e5a9e7..7f353fd2 100644 --- a/src/astro-typesafe-api-caller.ts +++ b/src/astro-typesafe-api-caller.ts @@ -5,7 +5,6 @@ export const createCaller = createCallerFactory({ "klimafaktoren": await import("../src/pages/api/klimafaktoren.ts"), "postleitzahlen": await import("../src/pages/api/postleitzahlen.ts"), "unterlage": await import("../src/pages/api/unterlage.ts"), - "aufnahme": await import("../src/pages/api/aufnahme/index.ts"), "admin/ausstellen": await import("../src/pages/api/admin/ausstellen.ts"), "admin/bedarfsausweis-ausstellen": await import("../src/pages/api/admin/bedarfsausweis-ausstellen.ts"), "admin/bestellbestaetigung": await import("../src/pages/api/admin/bestellbestaetigung.ts"), @@ -14,6 +13,7 @@ export const createCaller = createCallerFactory({ "admin/registriernummer": await import("../src/pages/api/admin/registriernummer.ts"), "admin/stornieren": await import("../src/pages/api/admin/stornieren.ts"), "ausweise": await import("../src/pages/api/ausweise/index.ts"), + "aufnahme": await import("../src/pages/api/aufnahme/index.ts"), "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"), @@ -31,14 +31,15 @@ export const createCaller = createCallerFactory({ "rechnung/anfordern": await import("../src/pages/api/rechnung/anfordern.ts"), "rechnung": await import("../src/pages/api/rechnung/index.ts"), "ticket": await import("../src/pages/api/ticket/index.ts"), + "user": await import("../src/pages/api/user/index.ts"), "user/self": await import("../src/pages/api/user/self.ts"), - "verbrauchsausweis-gewerbe/[id]": await import("../src/pages/api/verbrauchsausweis-gewerbe/[id].ts"), - "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"), + "verbrauchsausweis-gewerbe/[id]": await import("../src/pages/api/verbrauchsausweis-gewerbe/[id].ts"), + "verbrauchsausweis-gewerbe": await import("../src/pages/api/verbrauchsausweis-gewerbe/index.ts"), "webhooks/mollie": await import("../src/pages/api/webhooks/mollie.ts"), - "objekt/[id]": await import("../src/pages/api/objekt/[id]/index.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"), + "objekt/[id]": await import("../src/pages/api/objekt/[id]/index.ts"), }) \ No newline at end of file diff --git a/src/components/Overlay.svelte b/src/components/Overlay.svelte index 36d94f46..fae15d93 100644 --- a/src/components/Overlay.svelte +++ b/src/components/Overlay.svelte @@ -2,6 +2,7 @@ export let hidden: boolean = true; export let closeable: boolean = true; import { disableBodyScroll, enableBodyScroll } from 'body-scroll-lock'; + import { Cross1 } from 'radix-svelte-icons'; $: if (globalThis.window) { if (hidden) { @@ -12,13 +13,11 @@ } -
{ - hidden = closeable ? true : hidden; -}}> +
{#if closeable} - + }}> {/if}
\ No newline at end of file diff --git a/src/modules/EmbeddedAuthFlowModule.svelte b/src/modules/EmbeddedAuthFlowModule.svelte index 4c26db3f..7637e0d4 100644 --- a/src/modules/EmbeddedAuthFlowModule.svelte +++ b/src/modules/EmbeddedAuthFlowModule.svelte @@ -6,11 +6,10 @@ export let onLogin: (response: Awaited>) => any; export let email: string = ""; export let password: string = ""; + export let route: "login" | "signup" = "login" - let route: "login" | "signup" = "login" - - const navigate = (target: typeof route) => { - route = target + const navigate = (target: string) => { + route = target as typeof route; } const loginData = { diff --git a/src/modules/KaufabschlussModule.svelte b/src/modules/KaufabschlussModule.svelte deleted file mode 100644 index 1f31a71a..00000000 --- a/src/modules/KaufabschlussModule.svelte +++ /dev/null @@ -1,384 +0,0 @@ - - -
-
-

Ansprechpartner

-
-
- -
- -
- -
-
- - -
- - -
- - -
- - -
-
-
- -
- - -
- - -
- - -
-
-
- -

Rechnungsadresse

-
-
-
- - -
- - -
- - -
-
-
- -
- - -
- - - - - -
- - -
-
-
- -
- - -
- - -
- - -
-
-
- -

Versandadresse

-
-
- - -
-
- -
- - -
- - -
- - -
-
-
- -
- - -
- - - - - -
- - -
-
-
- -

Bezahlmethode

-
- - - - - -
-
- -
-

Zusammenfassung

-
- -
-
-
- Netto - {Math.round(priceTotal * 0.81 * 100) / 100}€ -
-
- 19% MwSt - {Math.round(priceTotal * 0.19 * 100) / 100}}€ -
-
-
- Gesamt - {Math.round(priceTotal)}€ -
-

Mit dem Klick auf "Bestellung Bestätigen" akzeptieren sie unsere AGB und Datenschutzbestimmungen. Sie werden zu ihrem ausgewählten Bezahlprovider weitergeleitet, nach Bezahlung werden sie automatisch zu unserem Portal zurückgeleitet.

- -
-
-
-
diff --git a/src/modules/KundendatenModule.svelte b/src/modules/KundendatenModule.svelte index 40444d5c..bdb9c830 100644 --- a/src/modules/KundendatenModule.svelte +++ b/src/modules/KundendatenModule.svelte @@ -1215,7 +1215,7 @@ sm:grid-cols-[min-content_min-content_min-content] sm:justify-self-end sm:mt-8"
- +
diff --git a/src/pages/kaufabschluss.astro b/src/pages/kaufabschluss.astro deleted file mode 100644 index 524b1dab..00000000 --- a/src/pages/kaufabschluss.astro +++ /dev/null @@ -1,31 +0,0 @@ ---- - -import KaufabschlussModule from "#modules/KaufabschlussModule.svelte"; -import AusweisLayout from "#layouts/AusweisLayoutPruefung.astro"; -import { Enums } from "#lib/client/prisma"; -import { createCaller } from "src/astro-typesafe-api-caller"; - -// Man sollte nur auf diese Seite kommen, wenn ein Ausweis bereits vorliegt und in der Datenbank abgespeichert wurde. -const uid = Astro.url.searchParams.get("uid"); - -if (!uid) { - return Astro.redirect("/404"); -} - -const caller = createCaller(Astro); - -const ausweis = await caller.v1.verbrauchsausweisWohnen.get({ - uid -}) - -const user = await caller.v1.benutzer.self(); - -if (!ausweis || !user) { - return Astro.redirect("/404"); -} ---- - - - - -