Merge branch 'main' into UMBE

This commit is contained in:
UMBENOMENA
2025-02-22 18:48:50 +01:00
committed by GitHub
227 changed files with 2153661 additions and 982 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { Buffer } from "buffer";
import { AufnahmeClient, ObjektClient, UploadedGebaeudeBild, VerbrauchsausweisWohnenClient } from "./Ausweis/types.js";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
import { openWindowWithPost } from "#lib/helpers/window.js";
export let ausweis: VerbrauchsausweisWohnenClient;

View File

@@ -2,8 +2,6 @@
import HelpLabel from "#components/labels/HelpLabel.svelte";
import Inputlabel from "#components/labels/InputLabel.svelte";
import { Enums } from "@ibcornelsen/database/client";
import { hotWaterProductionTypes } from "#modules/BedarfsausweisWohnen/HotWaterProductionTypes.js";
export let ausweis;

View File

@@ -6,7 +6,7 @@
import ImageGrid from "#components/ImageGrid.svelte";
import {
Enums,
} from "@ibcornelsen/database/client";
} from "#lib/client/prisma";
import {
AufnahmeClient,

View File

@@ -7,7 +7,7 @@
import { auditHeizungGebaeudeBaujahr } from "../Verbrauchsausweis/audits/HeizungGebaeudeBaujahr.js";
import { addNotification, deleteNotification } from "#components/Notifications/shared.js";
import TagInput from "../TagInput.svelte";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma.js";
import {
BedarfsausweisWohnenClient,
AufnahmeClient,

View File

@@ -5,14 +5,14 @@
import Overlay from "#components/Overlay.svelte";
import EmbeddedAuthFlowModule from "#modules/EmbeddedAuthFlowModule.svelte";
import { AusweisTyp, Enums } from "@ibcornelsen/database/client";
import { AusweisTyp, Enums } from "#lib/client/prisma.js";
import { openWindowWithPost } from "#lib/helpers/window.js";
import { PRICES } from "#lib/constants.js";
import { nachweisSpeichern } from "#client/lib/nachweisSpeichern.js";
export let ausweis: VerbrauchsausweisWohnenClient | VerbrauchsausweisGewerbeClient | BedarfsausweisWohnenClient | GEGNachweisWohnenClient;
export let bilder: UploadedGebaeudeBild[];
export let unterlagen: UnterlageClient[];
export let unterlagen: UnterlageClient[] = [];
export let user: BenutzerClient;
export let objekt: ObjektClient;
export let aufnahme: AufnahmeClient;
@@ -20,7 +20,7 @@
export let showWeiter: boolean = true;
let ausweistyp: AusweisTyp = Enums.AusweisTyp.Standard;
export let ausweistyp: AusweisTyp = Enums.AusweisTyp.Standard;
async function ausweisAbschicken() {
openWindowWithPost("/kundendaten", {

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import ImageGrid from "../ImageGrid.svelte";;
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
import { BedarfsausweisWohnenClient, ObjektClient, UploadedGebaeudeBild, VerbrauchsausweisGewerbeClient, VerbrauchsausweisWohnenClient } from "./types.js";
export let images: UploadedGebaeudeBild[] = [];

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import ImageGrid from "../ImageGrid.svelte";;
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
import { BedarfsausweisWohnenClient, ObjektClient, UploadedGebaeudeBild, VerbrauchsausweisGewerbeClient, VerbrauchsausweisWohnenClient } from "./types.js";
export let images: UploadedGebaeudeBild[] = [];

View File

@@ -4,7 +4,7 @@
import Inputlabel from "#components/labels/InputLabel.svelte";
import ZipSearch from "#components/PlzSuche.svelte";
import { Enums } from "@ibcornelsen/database/client"
import { Enums } from "#lib/client/prisma.js"
import { AufnahmeClient, ObjektClient } from "./types.js";
export let aufnahme: AufnahmeClient;

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import ImageGrid from "../ImageGrid.svelte";;
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
import { BedarfsausweisWohnenClient, ObjektClient, UploadedGebaeudeBild, VerbrauchsausweisGewerbeClient, VerbrauchsausweisWohnenClient } from "./types.js";
export let images: UploadedGebaeudeBild[] = [];

View File

@@ -9,7 +9,7 @@
VerbrauchsausweisWohnenClient,
} from "./types.js";
import ThickArrowUp from "radix-svelte-icons/src/lib/icons/ThickArrowUp.svelte";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
import { endEnergieVerbrauchVerbrauchsausweisGewerbe_2016 } from "#lib/Berechnungen/VerbrauchsausweisGewerbe/VerbrauchsausweisGewerbe_2016.js";
export let ausweis: VerbrauchsausweisWohnenClient | VerbrauchsausweisGewerbeClient | BedarfsausweisWohnenClient;

View File

@@ -62,8 +62,8 @@
fuelMap[fuel[0]].push(fuel[1]);
}
let month = moment(ausweis.startdatum).month();
let year = moment(ausweis.startdatum).year();
let month = availableDates[availableDates.length - 1].month;
let year = availableDates[availableDates.length - 1].year;
$: {
if (typeof month === "number" && typeof year === "number") {

View File

@@ -12,7 +12,7 @@ import {
VerbrauchsausweisGewerbe,
VerbrauchsausweisWohnen,
GEGNachweisWohnen,
} from "@ibcornelsen/database/client";
} from "#lib/client/prisma";
import { z, ZodSchema } from "zod";
export type OmitKeys<T, K extends keyof T> = Omit<T, K>;

View File

@@ -12,7 +12,7 @@
import { addNotification } from "#components/Notifications/shared.js";
import { CheckCircled, CrossCircled, Image } from "radix-svelte-icons";
import ChevronDown from "radix-svelte-icons/src/lib/icons/ChevronDown.svelte";
import { Event } from "@ibcornelsen/database/client";
import { Event } from "#lib/client/prisma.js";
import { api } from "astro-typesafe-api/client";
import Cookies from "js-cookie";
import { API_ACCESS_TOKEN_COOKIE_NAME } from "#lib/constants.js";
@@ -748,7 +748,7 @@
{#each bilder as image}
<div>
<h2 class="text-lg mb-4 font-bold">{image.kategorie}</h2>
<img src="/bilder/{image.uid}.webp">
<img src="/bilder/{image.uid}.jpg">
</div>
{/each}
{/if}

View File

@@ -13,7 +13,7 @@
import { api } from "astro-typesafe-api/client";
import Cookies from "js-cookie";
import { API_ACCESS_TOKEN_COOKIE_NAME } from "#lib/constants.js";
import { Enums, Objekt } from "@ibcornelsen/database/client";
import { Enums, Objekt } from "#lib/client/prisma";
export let ausweis: VerbrauchsausweisWohnenClient;
export let aufnahme: AufnahmeKomplettClient;

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { ObjektKomplettClient } from "#components/Ausweis/types.js";
import { Enums } from "@ibcornelsen/database/server";
import { Enums } from "#lib/client/prisma.js";
import moment from "moment";
import { File, OpenInNewWindow } from "radix-svelte-icons";
@@ -12,7 +12,7 @@
{@const bild = objekt.aufnahmen[0].bilder.find(bild => bild.kategorie === Enums.BilderKategorie.Gebaeude)}
{#if bild}
<img src="/bilder/{bild.uid}.webp" class="w-full max-h-72 object-cover rounded-t-lg" alt="Gebäude">
<img src="/bilder/{bild.uid}.jpg" class="w-full max-h-72 object-cover rounded-t-lg" alt="Gebäude">
{/if}
{/if}

View File

@@ -30,7 +30,7 @@
</button>
<a href="/" class="block md:hidden"
><img
src="/images/header/logo-big.svg"
src="/images/header/logo-IBC-big.svg"
class="w-24"
alt="IBCornelsen - Logo"
/></a
@@ -40,7 +40,7 @@
<aside class:hidden={!headerOpen} class="fixed left-0 top-16 w-full h-[calc(100%-4rem)] flex z-30 md:relative md:h-auto md:w-auto md:top-0 md:flex bg-base-200 border-r border-r-base-300 flex-col py-4">
<a href="/" class="px-8 hidden md:block"
><img
src="/images/header/logo-big.svg"
src="/images/header/logo-IBC-big.svg"
class="w-24"
alt="IBCornelsen - Logo"
/></a
@@ -83,16 +83,6 @@
Ausweise Prüfen
</a>
</li>
<li>
<a use:ripple={rippleOptions} class="button-tab" href="/dashboard/admin/pdf-designer">
PDF Designer
</a>
</li>
<li>
<a use:ripple={rippleOptions} class="button-tab" href="/dashboard/admin/pdf-viewer">
PDF Viewer
</a>
</li>
</ul>
</details></li>
{/if}

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import { Buffer } from "buffer";
import { AufnahmeClient, ObjektClient, UploadedGebaeudeBild, VerbrauchsausweisWohnenClient } from "./Ausweis/types.js";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
import { openWindowWithPost } from "#lib/helpers/window.js";
export let ausweis: VerbrauchsausweisWohnenClient;

View File

@@ -7,7 +7,7 @@
import { auditHeizungGebaeudeBaujahr } from "../Verbrauchsausweis/audits/HeizungGebaeudeBaujahr.js";
import { addNotification, deleteNotification } from "#components/Notifications/shared.js";
import TagInput from "../TagInput.svelte";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma.js";
import {
AufnahmeClient,
ObjektClient,

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import UploadImages from "./UploadImages.svelte";
import type { Enums } from "@ibcornelsen/database/client";
import type { Enums } from "#lib/client/prisma";
import { BedarfsausweisWohnenClient, BildClient, ObjektClient, UploadedGebaeudeBild, VerbrauchsausweisGewerbeClient, VerbrauchsausweisWohnenClient } from "./Ausweis/types.js";
import { RotateCounterClockwise, Trash, Upload } from "radix-svelte-icons";
@@ -15,7 +15,7 @@
async function rotateImage(image: UploadedGebaeudeBild): Promise<UploadedGebaeudeBild> {
return new Promise((resolve, reject) => {
let img = new Image();
img.src = image.data ? image.data : `/bilder/${image.uid}.webp`;
img.src = image.data ? image.data : `/bilder/${image.uid}.jpg`;
img.onload = () => {
let canvas = document.createElement("canvas");
let ctx = canvas.getContext("2d");
@@ -25,7 +25,7 @@
ctx?.rotate((-90 * Math.PI) / 180);
ctx?.drawImage(img, -img.width / 2, -img.height / 2);
const clone = Object.assign({}, image)
clone.data = canvas.toDataURL("image/webp");
clone.data = canvas.toDataURL("image/jpeg");
clone.update = true;
resolve(clone)
};
@@ -42,7 +42,7 @@
{#if image.kategorie == kategorie}
<div class="relative group">
<img
src="/bilder/{image.uid}.webp"
src="/bilder/{image.uid}.jpg"
alt={kategorie}
class="h-full max-h-96 w-full rounded-lg border-2 group-hover:contrast-50 object-cover transition-all"
/>

View File

@@ -1,5 +1,5 @@
<script lang="ts">
import type { Bezahlmethoden } from "@ibcornelsen/database/client";
import type { Bezahlmethoden } from "#lib/client/prisma";
export let name: string;
export let icon: string;

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import HelpLabel from "#components/labels/HelpLabel.svelte";
import type { Enums } from "@ibcornelsen/database/client";
import type { Enums } from "#lib/client/prisma";
export let max: number = 2;
export let min: number = 1;

View File

@@ -2,7 +2,7 @@
import { PRICES } from "#lib/constants";
export let bullets;
export let title;
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
bullets = [
["Prüfung durch Dipl.&nbsp;Ing.<br>Registrierung beim DiBt<br>rechtssicher nach&nbsp;GEG",true, true, true],

View File

@@ -2,7 +2,7 @@
import { PRICES } from "#lib/constants";
export let bullets;
export let title;
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
bullets = [
["Prüfung durch Dipl.&nbsp;Ing.<br>Registrierung beim DiBt<br>rechtssicher nach&nbsp;GEG",true, true, true],

View File

@@ -1,6 +1,6 @@
<script>
import { PRICES } from "#lib/constants";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
export let bullets;
export let title;

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { PRICES } from "#lib/constants.js";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
export let bullets;
export let title;

View File

@@ -1,6 +1,6 @@
<script>
import { PRICES } from "#lib/constants";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
</script>
<div class="mt-6 mb-6 m-auto w-[99%] relative">

View File

@@ -1,6 +1,6 @@
<script>
import { PRICES } from "#lib/constants";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
</script>
<div class="mt-6 mb-6 m-auto w-[99%] relative">

View File

@@ -4,7 +4,7 @@ import CardPriceiInfo from "#components/design/sidebars/cards/cardPriceiInfo.sve
import CardProduktSidebar from "#components/design/sidebars/cards/CardProduktSidebar.svelte";
import { PRICES } from "#lib/constants";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
---

View File

@@ -4,7 +4,7 @@ import CardPriceiInfo from "#components/design/sidebars/cards/cardPriceiInfo.sve
import CardProduktSidebar from "#components/design/sidebars/cards/CardProduktSidebar.svelte";
import { PRICES } from "#lib/constants";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
---
<div class="hidden 2xl:block">

View File

@@ -227,22 +227,22 @@
{#if innerWidth < 1023}
<li><a href="index">Verbrauchsausweis</a></li>
{/if}
<li><a href="/verbrauchsausweis/verbrauchsausweis-wohngebaeude">Verbrauchsausweis Wohngebäude</a></li>
<li><a href="/verbrauchsausweis/verbrauchsausweis-wohngebaeude/">Verbrauchsausweis Wohngebäude</a></li>
<li><a href="/energieausweis-erstellen/verbrauchsausweis-wohngebaeude/">Verbrauchsausweis online erstellen</a></li>
<li><a href="/verbrauchsausweis/haeufige-fragen-zum-verbrauchsausweis/">Häufige Fragen zum Verbrauchsausweis</a></li>
<li>
<a href="/verbrauchsausweis/statistiken-zum-verbrauchsausweis/">Statistiken zum Verbrauchsausweis Wohngebäude</a
>
</li>
<li><a href="index">Verbrauchsausweis Gewerbe</a></li>
<li><a href="/verbrauchsausweis/verbrauchsausweis-gewerbe/">Verbrauchsausweis Gewerbe</a></li>
<li>
<a href="index">Verbrauchsausweis Gewerbe online erstellen</a>
<a href="/energieausweis-erstellen/verbrauchsausweis-gewerbe/">Verbrauchsausweis Gewerbe online erstellen</a>
</li>
<li>
<a href="index">Häufige Fragen zum Verbrauchsausweis Gewerbe</a>
<a href="/verbrauchsausweis/haeufige-fragen-zum-verbrauchsausweis-gewerbe/">Häufige Fragen zum Verbrauchsausweis Gewerbe</a>
</li>
<li>
<a href="index">Statistiken zum Verbrauchsausweis Gewerbe</a>
<a href="/verbrauchsausweis/statistiken-zum-verbrauchsausweis-gewerbe/">Statistiken zum Verbrauchsausweis Gewerbe</a>
</li>
</ul>
</div>
@@ -262,20 +262,18 @@
>
<ul class="dropdown-content bedarfsausweis">
{#if innerWidth < 1023}
<li><a href="index">Bedarfsausweis</a></li>
<li><a href="/bedarfsausweis/">Bedarfsausweis</a></li>
{/if}
<li><a href="index">Bedarfsausweis Wohngebäude</a></li>
<li><a href="index">Bedarfsausweis online erstellen</a></li>
<li><a href="index">Häufige Fragen zum Bedarfsausweis</a></li>
<li><a href="/bedarfsausweis/bedarfsausweis-wohngebaeude/">Bedarfsausweis Wohngebäude</a></li>
<li><a href="/energieausweis-erstellen/bedarfsausweis-wohngebaeude/">Bedarfsausweis online erstellen</a></li>
<li><a href="/bedarfsausweis/haeufige-fragen-zum-bedarfsausweis/">Häufige Fragen zum Bedarfsausweis</a></li>
<li>
<a href="index">Statistiken zum Bedarfsausweis Wohngebäude</a>
<a href="/bedarfsausweis/statistiken-zum-bedarfsausweis/">Statistiken zum Bedarfsausweis Wohngebäude</a>
</li>
<li><a href="index">Bedarfsausweis Gewerbe</a></li>
<li><a href="index">Bedarfsausweis Gewerbe online erstellen</a></li>
<li><a href="/bedarfsausweis/bedarfsausweis-gewerbe/">Bedarfsausweis Gewerbe</a></li>
<li><a href="/angebot-anfragen/bedarfsausweis-gewerbe-anfragen">Bedarfsausweis Gewerbe anfragen</a></li>
<li>
<a href="index">Häufige Fragen zum Bedarfsausweis Gewerbe</a>
</li>
<li><a href="index">Statistiken zum Bedarfsausweis Gewerbe</a></li>
<a href="/bedarfsausweis/haeufige-fragen-zum-bedarfsausweis-gewerbe/">Häufige Fragen zum Bedarfsausweis Gewerbe</a>
</ul>
</div>
@@ -300,11 +298,11 @@
>
<ul class="dropdown-content energieausweis">
{#if innerWidth < 1023}
<li><a href="index">Energieausweis</a></li>
<li><a href="/energieausweis/">Energieausweis</a></li>
{/if}
<li><a href="index">Energieausweis Pflicht</a></li>
<li><a href="index">Energieausweis Kosten</a></li>
<li><a href="index">Energieausweis Haus</a></li>
<li><a href="/energieausweis/energieausweis-pflicht/">Energieausweis Pflicht</a></li>
<li><a href="/energieausweis/energieausweis-kosten/">Energieausweis Kosten</a></li>
<li><a href="/energieausweis/energieausweis-haus/">Energieausweis Haus</a></li>
</ul>
</div>

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { PRICES } from "#lib/constants.js";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
</script>
<div id ="cardBAGpromo"

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { PRICES } from "#lib/constants.js";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
</script>
<div id ="cardBApromo"

View File

@@ -1,6 +1,6 @@
<script>
import { PRICES } from "#lib/constants";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
</script>
<div id ="cardPriceinfo" class="box card hidden lg:block">

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { PRICES } from "#lib/constants.js";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
</script>
<div id ="cardVAGpromo"

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import { PRICES } from "#lib/constants.js";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
</script>

View File

@@ -2,7 +2,7 @@
import { fade } from "svelte/transition";
import WidgetCardTemplate from "#components/widgets/WidgetCardTemplate_IBC.svelte";
import { PRICES } from "#lib/constants.js";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
let gebaeudetyp: string = "bitte auswählen";
let anlass: string = "bitte auswählen";

View File

@@ -2,7 +2,7 @@
import { fade } from "svelte/transition";
import WidgetCardTemplate from "#components/widgets/immowelt/WidgetCardTemplate_immowelt.svelte";
import { PRICES } from "#lib/constants.js";
import { Enums } from "@ibcornelsen/database/client";
import { Enums } from "#lib/client/prisma";
let gebaeudetyp: string = "bitte auswählen";
let anlass: string = "bitte auswählen";