diff --git a/bun.lock b/bun.lock index 3da67b33..0daeee61 100644 --- a/bun.lock +++ b/bun.lock @@ -30,6 +30,7 @@ "js-interpolate": "^1.3.2", "jsonwebtoken": "^9.0.2", "jwt-decode": "^4.0.0", + "mime-types": "^2.1.35", "moment": "^2.30.1", "moment-timezone": "^0.5.46", "nodemailer": "^6.10.0", @@ -56,6 +57,7 @@ "@types/is-base64": "^1.1.3", "@types/js-cookie": "^3.0.6", "@types/jsonwebtoken": "^9.0.7", + "@types/mime-types": "^2.1.4", "@types/nodemailer": "^6.4.17", "@types/uuid": "^9.0.8", "@typescript-eslint/eslint-plugin": "^5.62.0", @@ -540,6 +542,8 @@ "@types/mime": ["@types/mime@1.3.5", "", {}, "sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w=="], + "@types/mime-types": ["@types/mime-types@2.1.4", "", {}, "sha512-lfU4b34HOri+kAY5UheuFMWPDOI+OPceBSHZKp69gEyTL/mmJ4cnU6Y/rlme3UL3GyOn6Y42hyIEw0/q8sWx5w=="], + "@types/ms": ["@types/ms@2.1.0", "", {}, "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA=="], "@types/nlcst": ["@types/nlcst@2.0.3", "", { "dependencies": { "@types/unist": "*" } }, "sha512-vSYNSDe6Ix3q+6Z7ri9lyWqgGhJTmzRjZRqyq15N0Z/1/UnVsno9G/N40NBijoYx2seFDIl0+B2mgAb9mezUCA=="], diff --git a/package.json b/package.json index 71398a1b..e8e4098b 100644 --- a/package.json +++ b/package.json @@ -44,6 +44,7 @@ "js-interpolate": "^1.3.2", "jsonwebtoken": "^9.0.2", "jwt-decode": "^4.0.0", + "mime-types": "^2.1.35", "moment": "^2.30.1", "moment-timezone": "^0.5.46", "nodemailer": "^6.10.0", @@ -70,6 +71,7 @@ "@types/is-base64": "^1.1.3", "@types/js-cookie": "^3.0.6", "@types/jsonwebtoken": "^9.0.7", + "@types/mime-types": "^2.1.4", "@types/nodemailer": "^6.4.17", "@types/uuid": "^9.0.8", "@typescript-eslint/eslint-plugin": "^5.62.0", diff --git a/src/astro-typesafe-api-caller.ts b/src/astro-typesafe-api-caller.ts index 1724bc14..f2a456e9 100644 --- a/src/astro-typesafe-api-caller.ts +++ b/src/astro-typesafe-api-caller.ts @@ -5,22 +5,26 @@ export const createCaller = createCallerFactory({ "postleitzahlen": await import("../src/pages/api/postleitzahlen.ts"), "aufnahme/[uid]": await import("../src/pages/api/aufnahme/[uid].ts"), "aufnahme": await import("../src/pages/api/aufnahme/index.ts"), + "admin/ausstellen": await import("../src/pages/api/admin/ausstellen.ts"), "auth/access-token": await import("../src/pages/api/auth/access-token.ts"), "auth/forgot-password": await import("../src/pages/api/auth/forgot-password.ts"), "auth/refresh-token": await import("../src/pages/api/auth/refresh-token.ts"), - "bilder/[uid]": await import("../src/pages/api/bilder/[uid].ts"), "bedarfsausweis-wohnen/[uid]": await import("../src/pages/api/bedarfsausweis-wohnen/[uid].ts"), "bedarfsausweis-wohnen": await import("../src/pages/api/bedarfsausweis-wohnen/index.ts"), + "geg-nachweis-verbrauchsausweis-wohnen/[uid]": await import("../src/pages/api/geg-nachweis-verbrauchsausweis-wohnen/[uid].ts"), + "geg-nachweis-verbrauchsausweis-wohnen": await import("../src/pages/api/geg-nachweis-verbrauchsausweis-wohnen/index.ts"), + "bilder/[uid]": await import("../src/pages/api/bilder/[uid].ts"), "objekt": await import("../src/pages/api/objekt/index.ts"), - "rechnung": await import("../src/pages/api/rechnung/index.ts"), "ticket": await import("../src/pages/api/ticket/index.ts"), + "rechnung": await import("../src/pages/api/rechnung/index.ts"), "user": await import("../src/pages/api/user/index.ts"), "user/self": await import("../src/pages/api/user/self.ts"), "verbrauchsausweis-gewerbe/[uid]": await import("../src/pages/api/verbrauchsausweis-gewerbe/[uid].ts"), "verbrauchsausweis-gewerbe": await import("../src/pages/api/verbrauchsausweis-gewerbe/index.ts"), + "webhooks/mollie": await import("../src/pages/api/webhooks/mollie.ts"), "verbrauchsausweis-wohnen/[uid]": await import("../src/pages/api/verbrauchsausweis-wohnen/[uid].ts"), "verbrauchsausweis-wohnen": await import("../src/pages/api/verbrauchsausweis-wohnen/index.ts"), - "webhooks/mollie": await import("../src/pages/api/webhooks/mollie.ts"), "objekt/[uid]/bilder": await import("../src/pages/api/objekt/[uid]/bilder.ts"), "objekt/[uid]": await import("../src/pages/api/objekt/[uid]/index.ts"), + "objekt/[uid]/unterlagen": await import("../src/pages/api/objekt/[uid]/unterlagen.ts"), }) \ No newline at end of file diff --git a/src/components/Ausweis/Ausweisart.svelte b/src/components/Ausweis/Ausweisart.svelte index 3426cde3..5fbd540d 100644 --- a/src/components/Ausweis/Ausweisart.svelte +++ b/src/components/Ausweis/Ausweisart.svelte @@ -72,7 +72,7 @@ xl:grid-cols-3 xl:gap-x-8 xl:gap-y-8 > - {#if ausweisart=="VerbrauchsausweisWohnen"} + {#if ausweisart==Enums.Ausweisart.VerbrauchsausweisWohnen || ausweisart === Enums.Ausweisart.GEGNachweisVerbrauchsausweisWohnen} @@ -84,7 +84,7 @@ xl:grid-cols-3 xl:gap-x-8 xl:gap-y-8 - {:else if ausweisart=="VerbrauchsausweisGewerbe"} + {:else if ausweisart==Enums.Ausweisart.VerbrauchsausweisGewerbe} @@ -200,7 +200,7 @@ xl:grid-cols-3 xl:gap-x-8 xl:gap-y-8 className={auditHeizungGebaeudeBaujahr(aufnahme) ? "linked" : ""} - bind:tags={aufnahme.baujahr_heizung} + bind:tags={aufnahme.baujahr_klima} />
diff --git a/src/components/Ausweis/Progressbar.svelte b/src/components/Ausweis/Progressbar.svelte index a9f3a740..14300518 100644 --- a/src/components/Ausweis/Progressbar.svelte +++ b/src/components/Ausweis/Progressbar.svelte @@ -1,45 +1,49 @@ - - -
- +
- -
-
+
+
- -
- -
-
1
-
Gebäudedaten
+
+ + {#each steps as step, i} +
+
{i + 1}
+
{step}
+
+ {/each}
-
-
2
-
Kundendaten
-
- -
-
3
-
Kaufbestätigung
-
- -
- - - \ No newline at end of file + :nth-child(1 of .phase) { + @apply justify-self-start; + } + + .phase:last-of-type { + @apply justify-self-end; + } + diff --git a/src/components/Ausweis/Verbrauch.svelte b/src/components/Ausweis/Verbrauch.svelte index 3a53f0ed..e3a70411 100644 --- a/src/components/Ausweis/Verbrauch.svelte +++ b/src/components/Ausweis/Verbrauch.svelte @@ -170,7 +170,7 @@ xl:grid-cols-3 xl:gap-x-8 xl:gap-y-8 {#each Array.from(availableDates.reduce((a, c) => { a.add(c.month); return a; - }, new Set())) as availableMonth} + }, new Set())) as availableMonth}