diff --git a/public/images/dashboard/SymbolBilder.svg b/public/images/dashboard/SymbolBilder.svg new file mode 100644 index 00000000..25a1d8b6 --- /dev/null +++ b/public/images/dashboard/SymbolBilder.svg @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + diff --git a/public/images/dashboard/ausweis.jpg b/public/images/dashboard/ausweis.jpg new file mode 100644 index 00000000..3edaa53c Binary files /dev/null and b/public/images/dashboard/ausweis.jpg differ diff --git a/public/images/dashboard/ausweis.webp b/public/images/dashboard/ausweis.webp new file mode 100644 index 00000000..13e193e4 Binary files /dev/null and b/public/images/dashboard/ausweis.webp differ diff --git a/public/images/dashboard/ausweishaken.jpg b/public/images/dashboard/ausweishaken.jpg new file mode 100644 index 00000000..4462f1a2 Binary files /dev/null and b/public/images/dashboard/ausweishaken.jpg differ diff --git a/public/images/dashboard/ausweiskreuz.jpg b/public/images/dashboard/ausweiskreuz.jpg new file mode 100644 index 00000000..5764b3da Binary files /dev/null and b/public/images/dashboard/ausweiskreuz.jpg differ diff --git a/public/images/dashboard/bestellt.svg b/public/images/dashboard/bestellt.svg new file mode 100644 index 00000000..60d33b72 --- /dev/null +++ b/public/images/dashboard/bestellt.svg @@ -0,0 +1,20 @@ + + + + + + diff --git a/public/images/dashboard/datenblatt.jpg b/public/images/dashboard/datenblatt.jpg new file mode 100644 index 00000000..f73b8eee Binary files /dev/null and b/public/images/dashboard/datenblatt.jpg differ diff --git a/public/images/dashboard/datenblatt.webp b/public/images/dashboard/datenblatt.webp new file mode 100644 index 00000000..d46af874 Binary files /dev/null and b/public/images/dashboard/datenblatt.webp differ diff --git a/public/images/dashboard/datenblatthaken.jpg b/public/images/dashboard/datenblatthaken.jpg new file mode 100644 index 00000000..dec7e2e1 Binary files /dev/null and b/public/images/dashboard/datenblatthaken.jpg differ diff --git a/public/images/dashboard/datenblattkreuz.jpg b/public/images/dashboard/datenblattkreuz.jpg new file mode 100644 index 00000000..8157da6e Binary files /dev/null and b/public/images/dashboard/datenblattkreuz.jpg differ diff --git a/public/images/dashboard/erledigt.svg b/public/images/dashboard/erledigt.svg new file mode 100644 index 00000000..0a76aad8 --- /dev/null +++ b/public/images/dashboard/erledigt.svg @@ -0,0 +1,42 @@ + + + + + + + diff --git a/public/images/dashboard/gespeichert.svg b/public/images/dashboard/gespeichert.svg new file mode 100644 index 00000000..7e67cbdf --- /dev/null +++ b/public/images/dashboard/gespeichert.svg @@ -0,0 +1,20 @@ + + + + + + diff --git a/public/images/dashboard/kreishaken.png b/public/images/dashboard/kreishaken.png new file mode 100644 index 00000000..884d8119 Binary files /dev/null and b/public/images/dashboard/kreishaken.png differ diff --git a/public/images/dashboard/kreiskreuz.png b/public/images/dashboard/kreiskreuz.png new file mode 100644 index 00000000..4d44cb72 Binary files /dev/null and b/public/images/dashboard/kreiskreuz.png differ diff --git a/public/images/dashboard/paypal.png b/public/images/dashboard/paypal.png new file mode 100644 index 00000000..e34a4d5c Binary files /dev/null and b/public/images/dashboard/paypal.png differ diff --git a/public/images/dashboard/rechnung.png b/public/images/dashboard/rechnung.png new file mode 100644 index 00000000..8deb0448 Binary files /dev/null and b/public/images/dashboard/rechnung.png differ diff --git a/public/images/dashboard/sepa.png b/public/images/dashboard/sepa.png new file mode 100644 index 00000000..c7faae3a Binary files /dev/null and b/public/images/dashboard/sepa.png differ diff --git a/public/images/dashboard/sofort.png b/public/images/dashboard/sofort.png new file mode 100644 index 00000000..d8411848 Binary files /dev/null and b/public/images/dashboard/sofort.png differ diff --git a/public/images/dashboard/visa.webp b/public/images/dashboard/visa.webp new file mode 100644 index 00000000..014f14cc Binary files /dev/null and b/public/images/dashboard/visa.webp differ diff --git a/public/images/dashboard/zurueckGestellt.svg b/public/images/dashboard/zurueckGestellt.svg new file mode 100644 index 00000000..3b279a46 --- /dev/null +++ b/public/images/dashboard/zurueckGestellt.svg @@ -0,0 +1,38 @@ + + + + + + diff --git a/src/client/lib/validateAccessToken.ts b/src/client/lib/validateAccessToken.ts index 1f10b632..8232ee6b 100644 --- a/src/client/lib/validateAccessToken.ts +++ b/src/client/lib/validateAccessToken.ts @@ -11,7 +11,9 @@ export async function validateAccessTokenClient() { if (accessToken) { const { valid } = await client.v1.benutzer.validateAccessToken.query({accessToken}) - if (!valid) { + if (valid) { + return valid; + } else { Cookies.remove(API_ACCESS_TOKEN_COOKIE_NAME); } } diff --git a/src/components/Ausweis/Verbrauch.svelte b/src/components/Ausweis/Verbrauch.svelte index 5c970d7a..6094b236 100644 --- a/src/components/Ausweis/Verbrauch.svelte +++ b/src/components/Ausweis/Verbrauch.svelte @@ -42,6 +42,8 @@ $: { if (month && year) { ausweis.startdatum = moment(`${month}.01.${year}`).toDate(); + console.log(ausweis.startdatum); + } } diff --git a/src/components/AusweisPruefenBox.svelte b/src/components/AusweisPruefenBox.svelte index eb1749e2..9524cdce 100644 --- a/src/components/AusweisPruefenBox.svelte +++ b/src/components/AusweisPruefenBox.svelte @@ -1,30 +1,23 @@ -
-
-
- - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - {@html ausweis.gebaeude_aufnahme_allgemein.kontrolldatei - ? `` - : ""} - {@html !ausweis.gebaeude_aufnahme_allgemein.registriernummer - ? `` - : ""} - -
Status
{zurueckGestellt}
Status{zurueckGestellt} + +
+ {gebaeude_aufnahme_allgemein.adresse} {gebaeude_aufnahme_allgemein.plz} {gebaeude_aufnahme_allgemein.ort} +
+ {gebaeude_aufnahme_allgemein.gebaeudetyp}, Einheiten: {gebaeude_aufnahme_allgemein.einheiten} +
+ {ausweisArt} - {ausweis.uid.split("-")[0]} + {moment(gebaeude_aufnahme_allgemein.erstellungsdatum).format("DD.MM.YYYY")} +
+ +
+ Baujahr Gebäude / Baujahr Heizung +
+ {gebaeude_aufnahme_allgemein.baujahr_gebaeude.join(", ")} + {gebaeude_aufnahme_allgemein.baujahr_heizung.join(", ")} +
+
+ +
+ +
+ Wohnfläche in m² +
+ {gebaeude_aufnahme_allgemein.faktorKeller} x {gebaeude_aufnahme_allgemein.flaeche}m² Energetische Nutzfläche (Keller {gebaeude_aufnahme_allgemein.keller}) in m² +
+ {gebaeude_aufnahme_allgemein.flaeche} + {calculations?.energetische_nutzfläche} +
+
+ +
+ {tooltip4Z1} +
+ {tooltip4Z2} +
+ {table4Z1} + {table4Z2} +
+ +
+ {tooltip5Z1} +
+ {tooltip5Z2} +
+ {tooltip5Z3} +
+ {table5Z1} + {table5Z2} +
+
+ +
+ {tooltip6Z1} +
+ {tooltip6Z2} +
+ {table6Z1} + {table6Z2} +
+ +
+ {tooltip7Z1} +
+ {tooltip7Z2} +
+ {table7Z1} + {table7Z2} +
+ +
+ {tooltip8Z1} +
+ {tooltip8Z2} +
+ {table8Z1} + {table8Z2} +
+ +
+ {tooltip9Z1} +
+ {tooltip9Z2} +
+ {table9Z1} + {table9Z2} +
+ +
+ {tooltip10Z1} +
+ {tooltip10Z2} +
+ {table10Z1} + {table10Z2} +
+ +
+ {tooltip11Z1} +
+ {tooltip11Z2} +
+ {table11Z1} + {table11Z2} +
+ +
+ {tooltip12Z1} +
+ {tooltip12Z2} +
+ {table12Z1} + {table12Z2} +
+
+ +
+ {tooltip13Z1} +
+ {tooltip13Z2} +
+ {table13Z1} + {table13Z2} +
+
+ +
+ {tooltip14Z1} +
+ {tooltip14Z2} +
+ {table14Z1} + {table14Z2} +
+
+ +
+ {tooltip15Z1} +
+ {tooltip15Z2} +
+ {table15Z1} + {table15Z2} +
+
+ +
+ {tooltip16Z1} +
+ {tooltip16Z2} +
+ {table16Z1} + {table16Z2} +
+
+ Gebäudebilder +
+ Boxpruefung +
- - -
- {table1Z1}
{table1Z2} -
- {table2Z1}
{table2Z2} - -
- {table3Z1}
{table3Z2} - -
- {table4Z1}
{table4Z2} - -
- {table5Z1}
{table5Z2} - -
- {table6Z1}
{table6Z2} - -
- {table7Z1}
{table7Z2} - -
- {table8Z1}
{table8Z2} - -
- {table9Z1}
{table9Z2} - -
- {table10Z1}
{table10Z2} - -
- {table11Z1}
{table11Z2} - -
- {table12Z1}
{table12Z2} - -
- {table13Z1}
{table13Z2} - -
- {table14Z1}
{table14Z2} - -
- {table15Z1}
{table15Z2} - -
- {table16Z1}
{table16Z2} - -
- Gebäudebilder -
- Boxpruefung - -
EnergieausweisDatenblattF
-
-
-
+ {gebaeude_aufnahme_allgemein.prueftext} + + + Energieausweis + Datenblatt + + + + + + + F + {@html gebaeude_aufnahme_allgemein.kontrolldatei + ? `` + : ""} + {@html !gebaeude_aufnahme_allgemein.registriernummer + ? `` + : ""} + + + diff --git a/src/components/AusweisPruefenNotification.svelte b/src/components/AusweisPruefenNotification.svelte new file mode 100644 index 00000000..8b0c1735 --- /dev/null +++ b/src/components/AusweisPruefenNotification.svelte @@ -0,0 +1,44 @@ + + +
+
+

{@html notification.title}

+

+
+ {#if notification.dismissable} + + {/if} +
+ + \ No newline at end of file diff --git a/src/components/AusweisPruefenTooltip.svelte b/src/components/AusweisPruefenTooltip.svelte new file mode 100644 index 00000000..f7201b98 --- /dev/null +++ b/src/components/AusweisPruefenTooltip.svelte @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/src/components/Dashboard/DashboardSidebar.svelte b/src/components/Dashboard/DashboardSidebar.svelte index 57b2e1c1..1866d901 100644 --- a/src/components/Dashboard/DashboardSidebar.svelte +++ b/src/components/Dashboard/DashboardSidebar.svelte @@ -1,11 +1,9 @@