diff --git a/.crontab b/.crontab deleted file mode 100644 index 4f557ef4..00000000 --- a/.crontab +++ /dev/null @@ -1,3 +0,0 @@ -# Jeden Monat müssen wir die neuen Klimafaktoren vom DWD abholen, der Cronjob läuft immer am 28. für die höchste Wahrscheinlichkeit -# dass die Daten schon da sind, falls der DWD mal später dran ist... -0 12 28 * * bun ./src/cronjobs/update-dwd-klimafaktoren.ts diff --git a/.ssh/id_rsa b/.ssh/id_rsa deleted file mode 100644 index c75a481d..00000000 --- a/.ssh/id_rsa +++ /dev/null @@ -1,39 +0,0 @@ ------BEGIN OPENSSH PRIVATE KEY----- -b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn -NhAAAAAwEAAQAAAYEAzUGXt3GYcT3344iWGGGcgL0zDKhkrieikZ+yqzDpLuEzRwu3epuT -mvmHpT45awHyWr6pgOPpD7MGSDo13BVRAjCapYC23RL87E3ZRaH6aezVtV+tjl6vcCRtQx -4uQWOtGzV8Mi84ErBxt3xKo19ieyVoJnJig9W7oLbf46I0/3Jz31SRQokfoDc7TFHrtVE2 -1UZgxNuDfKMhMsBaZcPNP+Rbpcs7s8Bd3Q1PfrbA6bTGGa4DYAR5Hgm+z/FMcu1PSrAA4f -x+YxQrgNC4TNl8T3HSsGnnthNoQMCcl3LcAiy0C1JaWqXWGjYwawnfUdgB2nhb9i5t+yvb -T/UL1+obIhJRx9EaK4CScNraa0ZWmawl/NY6Dumvly8OpeUwMaynsZEFPEZVxdXFUHVRLR -74NGx23sq6qPYZuy5bFhbPJqIXsh2Pl6gvFE6HZcm5U6jgJOaHt98MSFIkILtWeab0cSmC -Aokt8XF+/ezu37mbEvNzCNZpFYG9d6MXuK5HOG0xAAAFqMTKAD/EygA/AAAAB3NzaC1yc2 -EAAAGBAM1Bl7dxmHE99+OIlhhhnIC9MwyoZK4nopGfsqsw6S7hM0cLt3qbk5r5h6U+OWsB -8lq+qYDj6Q+zBkg6NdwVUQIw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S6uEzuW6BWDwbQBJvmkPL8gG/AszZWJU9JBfiAHvaWM00A -QwzIv2+veCA2TcYIKhyiXg8r6fOQNLYkSYPpasycJy0nFknCC5Ma6XBgdzHm8QGSD4NfTZ -jbO+uK2z5ZzM+BUprj4Af3vOXqiDD66aZbKdcwzcTRLVy/rgAAAMEA8B/4ilNBG7Z/sYGB -zcBz52dkCG4tfsiY1dDYqEsDnLxF39giZj7Q0yLOHf52lt4GVEneCa5v8Q8jnN6zHZHt9A -C4P6DxtD/D28CGF3smMw6ai+W7fsl1OgEIYfSA9iKzh+sA3egSakiqKAk4H9soE9ZgERkx -cFuDljNGk+cekdzizpE2bmHfx4FscBcJxlZAeI35jSV5u6wzIkB2W13bq8nEI8VRu/n+PV -luxwuy6B5bUfuUDxL9W9Wr9P8t9mkHAAAAwQDa03teSRCRU/ymaua+sv3ysIDOUeSb09vf -8wX9xQpFq50CM99S3bGnwWk4A66JlK70rfWb3yoo5+Bmi22VRckQbhFhGBSWjnkKtAz5Mo -dXHOlcfPcXtxpOW4xwCsoNhnwaELt09b2BjkwWl5gdYUPHs2rIhSupK3otFN5j5GuVd6gf -bSuqavru4Xi5sySWyhKX2y+FkCDeNeOkIFeA12NNvoF4w+osLoz4GLdtydEhwSXUP9U+mr -lRqC1/Jc8qggcAAAAxbW9yaXR6QG1vcml0ei1BU1VTLVRVRi1HYW1pbmctQTE1LUZBNTA3 -TlYtRkE1MDdOVgEC ------END OPENSSH PRIVATE KEY----- diff --git a/.ssh/id_rsa.pub b/.ssh/id_rsa.pub deleted file mode 100644 index 4effaa2c..00000000 --- a/.ssh/id_rsa.pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDNQZe3cZhxPffjiJYYYZyAvTMMqGSuJ6KRn7KrMOku4TNHC7d6m5Oa+YelPjlrAfJavqmA4+kPswZIOjXcFVECMJqlgLbdEvzsTdlFofpp7NW1X62OXq9wJG1DHi5BY60bNXwyLzgSsHG3fEqjX2J7JWgmcmKD1bugtt/jojT/cnPfVJFCiR+gNztMUeu1UTbVRmDE24N8oyEywFplw80/5FulyzuzwF3dDU9+tsDptMYZrgNgBHkeCb7P8Uxy7U9KsADh/H5jFCuA0LhM2XxPcdKwaee2E2hAwJyXctwCLLQLUlpapdYaNjBrCd9R2AHaeFv2Lm37K9tP9QvX6hsiElHH0RorgJJw2tprRlaZrCX81joO6a+XLw6l5TAxrKexkQU8RlXF1cVQdVEtHvg0bHbeyrqo9hm7LlsWFs8moheyHY+XqC8UTodlyblTqOAk5oe33wxIUiQgu1Z5pvRxKYICiS3xcX797O7fuZsS83MI1mkVgb13oxe4rkc4bTE= moritz@moritz-ASUS-TUF-Gaming-A15-FA507NV-FA507NV diff --git a/Makefile b/Makefile index 0e296ebd..80f67115 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: dev online-energieausweis all prod backup run-database build-database install-dependencies wait-for-database prod database prisma-studio backup-database-cronjob +.PHONY: dev online-energieausweis all prod backup run-database build-database install-dependencies wait-for-database prod database prisma-studio backup-database-cronjob update-dwd-klimafaktoren-cron DB_CONTAINER_NAME := database DB_NAME := main @@ -57,7 +57,10 @@ all: mkdir -p ~/logs bun run dev 2>&1 | tee ~/logs/`date '+%d-%m-%Y_%H:%M:%S'`.log -prod: install-dependencies prisma-studio backup-database-cronjob +update-dwd-klimafaktoren-cron: + pm2 start bun --name "update-dwd-klimafaktoren-cron" --cron "0 12 28 * *" -- src/cronjobs/update-dwd-klimafaktoren.ts + +prod: install-dependencies prisma-studio backup-database-cronjob update-dwd-klimafaktoren-cron bun run build mkdir -p ~/logs mkdir -p ~/persistent/online-energieausweis diff --git a/src/components/design/header/AusweisHeaderPartner.astro b/src/components/design/header/AusweisHeaderPartner.astro new file mode 100644 index 00000000..ec9328f7 --- /dev/null +++ b/src/components/design/header/AusweisHeaderPartner.astro @@ -0,0 +1,209 @@ +--- +export interface Props { + tab: number; +} + +const { tab } = Astro.props; +const { params } = Astro; +const partner = params.partner; + +const pathname = Astro.url.pathname; +const isVA = pathname.includes("verbrauchsausweis-wohngebaeude"); +const isVAG = pathname.includes("verbrauchsausweis-gewerbe"); +const isBA = pathname.includes("bedarfsausweis-wohngebaeude"); +const isBAG = pathname.includes("bedarfsausweis-gewerbe-anfragen"); +const isGGW = pathname.includes("geg-nachweis-wohnen-anfragen"); +const isGGG = pathname.includes("geg-nachweis-gewerbe-anfragen"); +const isWEA = pathname.includes("welcher-ausweis"); + +const isWelt = pathname.includes("immowelt"); +const isNET = pathname.includes("immonet"); +--- + + + +
+ { + isVA ? ( +
+ Hier komfortabel und einfach online den{" "} + Verbrauchsausweis Wohngebäude bestellen +
+ ) : ( + "" + ) + } + { + isVAG ? ( +
+ Hier komfortabel und einfach online den{" "} + Verbrauchsausweis Gewerbe bestellen +
+ ) : ( + "" + ) + } + { + isBA ? ( +
+ Hier komfortabel und einfach online den{" "} + Bedarfsausweis Wohngebäude bestellen +
+ ) : ( + "" + ) + } + { + isBAG ? ( +
+ Hier komfortabel und einfach online den{" "} + Bedarfsausweis Gewerbe anfragen +
+ ) : ( + "" + ) + } + { + isGGW ? ( +
+ Hier komfortabel und einfach online den{" "} + GEG Nachweis Wohngebäude anfragen +
+ ) : ( + "" + ) + } + { + isGGG ? ( +
+ Hier komfortabel und einfach online den{" "} + GEG Nachweis Gewerbe anfragen +
+ ) : ( + "" + ) + } + { + isWEA ? ( +
+ Hier komfortabel und einfach online den richtigen Ausweis finden +
+ ) : ( + "" + ) + } +
+ + diff --git a/src/components/design/header/AusweisHeader_partner.astro b/src/components/design/header/AusweisHeader_partner.astro deleted file mode 100644 index b7eb35db..00000000 --- a/src/components/design/header/AusweisHeader_partner.astro +++ /dev/null @@ -1,114 +0,0 @@ ---- -import HeaderLogin from "#components/design/header/HeaderLogin.svelte"; -const { tabHover1 } = Astro.props; -const { tabHover2 } = Astro.props; -const { tabHover3 } = Astro.props; -const { tabHover4 } = Astro.props; -const { tabHover5 } = Astro.props; -const { tabHover6 } = Astro.props; -const { tabHover7 } = Astro.props; - - -const { params, url } = Astro; -const partner = params.partner; - -const url1 = new URL(Astro.request.url); - -const urlPath = url1.pathname; -const isVA = urlPath.includes("verbrauchsausweis-wohngebaeude"); -const isVAG = urlPath.includes("verbrauchsausweis-gewerbe"); -const isBA = urlPath.includes("bedarfsausweis-wohngebaeude"); -const isBAG = urlPath.includes("bedarfsausweis-gewerbe-anfragen"); -const isGGW = urlPath.includes("geg-nachweis-wohnen-anfragen"); -const isGGG = urlPath.includes("geg-nachweis-gewerbe-anfragen"); -const isWEA = urlPath.includes("welcher-ausweis"); - -const isWelt = urlPath.includes("immowelt"); -const isNET = urlPath.includes("immonet"); - ---- - - - -
- - - {isVA ?
Hier komfortabel und einfach online den Verbrauchsausweis Wohngebäude bestellen
: ""} - {isVAG ?
Hier komfortabel und einfach online den Verbrauchsausweis Gewerbe bestellen
: ""} - {isBA ?
Hier komfortabel und einfach online den Bedarfsausweis Wohngebäude bestellen
: ""} - {isBAG ?
Hier komfortabel und einfach online den Bedarfsausweis Gewerbe anfragen
: ""} - {isGGW ?
Hier komfortabel und einfach online den GEG Nachweis Wohngebäude anfragen
: ""} - {isGGG ?
Hier komfortabel und einfach online den GEG Nachweis Gewerbe anfragen
: ""} - {isWEA ?
Hier komfortabel und einfach online den richtigen Ausweis finden
: ""} - - -
- - \ No newline at end of file diff --git a/src/layouts/AusweisLayoutDatenImmowelt.astro b/src/layouts/AusweisLayoutDatenImmowelt.astro index 95fd7914..21c40d78 100644 --- a/src/layouts/AusweisLayoutDatenImmowelt.astro +++ b/src/layouts/AusweisLayoutDatenImmowelt.astro @@ -1,7 +1,7 @@ --- import "../style/global.css"; import "../style/formular.css"; -import "../../svelte-dialogs.config" +import "../../svelte-dialogs.config"; import Header from "#components/design/header/AusweisHeaderImmowelt.astro"; import Footer from "#components/design/footer/Footer.astro"; import { NotificationWrapper } from "@ibcornelsen/ui"; @@ -12,50 +12,53 @@ export interface Props { const { title } = Astro.props; --- + - @@ -79,7 +82,10 @@ console.log(scroll); content="✅ Jetzt Ihren Energieausweis online erstellen. Erhalten Sie Ihren online Energieausweis rechtssicher und nach aktueller GEG (vormals EnEV) vom Diplom Ingenieur geprüft." /> - + - {title || 'Energieausweis online erstellen - Online Energieausweis'} + {title || "Energieausweis online erstellen - Online Energieausweis"} -
- +
- - -
- -
- + 2xl:grid-cols-[minmax(1fr)] 2xl:gap-5 2xl:p-6" + > +
+ +
- +