Notification Wrapper auf Lokale Version gesetzt anstatt @ibcornelsen/ui,
Config upgedated und Ansichtsausweis repariert.
This commit is contained in:
@@ -21,6 +21,9 @@ export default defineConfig({
|
|||||||
"#": fileURLToPath(new URL("./src", import.meta.url))
|
"#": fileURLToPath(new URL("./src", import.meta.url))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
ssr: {
|
||||||
|
noExternal: ["@pdfme/generator", "@pdfme/common", "@pdfme/schemas"]
|
||||||
|
},
|
||||||
build: {
|
build: {
|
||||||
commonjsOptions: {
|
commonjsOptions: {
|
||||||
transformMixedEsModules: false
|
transformMixedEsModules: false
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {
|
import {
|
||||||
VerbrauchsausweisWohnenClient,
|
VerbrauchsausweisWohnenClient,
|
||||||
} from "#components/Ausweis/types";
|
} from "#components/Ausweis/types.js";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import { dialogs } from "svelte-dialogs";
|
import { dialogs } from "svelte-dialogs";
|
||||||
import {
|
import {
|
||||||
@@ -11,8 +11,8 @@
|
|||||||
Pencil2,
|
Pencil2,
|
||||||
QuestionMarkCircled,
|
QuestionMarkCircled,
|
||||||
} from "radix-svelte-icons";
|
} from "radix-svelte-icons";
|
||||||
import { endEnergieVerbrauchVerbrauchsausweis_2016 } from "#lib/Berechnungen/VerbrauchsausweisWohnen/VerbrauchsausweisWohnen_2016";
|
import { endEnergieVerbrauchVerbrauchsausweis_2016 } from "#lib/Berechnungen/VerbrauchsausweisWohnen/VerbrauchsausweisWohnen_2016.js";
|
||||||
import { client } from "src/trpc";
|
import { client } from "src/trpc.js";
|
||||||
|
|
||||||
export let ausweis: VerbrauchsausweisWohnenClient;
|
export let ausweis: VerbrauchsausweisWohnenClient;
|
||||||
export let progress: number;
|
export let progress: number;
|
||||||
@@ -167,7 +167,7 @@
|
|||||||
{/await}
|
{/await}
|
||||||
<div class="card-actions justify-end mt-8">
|
<div class="card-actions justify-end mt-8">
|
||||||
<a class="btn btn-primary" href="/energieausweis-erstellen/verbrauchsausweis-wohnen?uid={ausweis.uid}">Bearbeiten</a>
|
<a class="btn btn-primary" href="/energieausweis-erstellen/verbrauchsausweis-wohnen?uid={ausweis.uid}">Bearbeiten</a>
|
||||||
<a class="btn btn-ghost" title="PDF Herunterladen" target="_blank" href="/pdf/ansichtsausweis?ausweis_uid={ausweis.uid}">
|
<a class="btn btn-ghost" title="PDF Herunterladen" target="_blank" href="/pdf/ansichtsausweis?uid={ausweis.uid}">
|
||||||
<Download size={22} />
|
<Download size={22} />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import RawNotification from "./RawNotification.svelte";
|
import RawNotification from "./RawNotification.svelte";
|
||||||
import { Notification } from "./shared";
|
import { Notification } from "./shared.js";
|
||||||
|
|
||||||
export let notification: Notification & { uid: string };
|
export let notification: Notification & { uid: string };
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import Notification from "./Notification.svelte";
|
import Notification from "./Notification.svelte";
|
||||||
import RawNotificationWrapper from "./RawNotificationWrapper.svelte";
|
import RawNotificationWrapper from "./RawNotificationWrapper.svelte";
|
||||||
|
|
||||||
import { notifications } from "./shared";
|
import { notifications } from "./shared.js";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<RawNotificationWrapper>
|
<RawNotificationWrapper>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Notification, deleteNotification } from "./shared";
|
import { Notification, deleteNotification } from "./shared.js";
|
||||||
import { fly } from "svelte/transition";
|
import { fly } from "svelte/transition";
|
||||||
|
|
||||||
export let notification: Partial<Notification> & { uid: string };
|
export let notification: Partial<Notification> & { uid: string };
|
||||||
|
|||||||
9
src/components/Notifications/index.ts
Normal file
9
src/components/Notifications/index.ts
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import Notification from "./Notification.svelte";
|
||||||
|
export { Notification };
|
||||||
|
import NotificationWrapper from "./NotificationWrapper.svelte";
|
||||||
|
export { NotificationWrapper };
|
||||||
|
import RawNotificationWrapper from "./RawNotificationWrapper.svelte";
|
||||||
|
export { RawNotificationWrapper };
|
||||||
|
import RawNotification from "./RawNotification.svelte";
|
||||||
|
export { RawNotification };
|
||||||
|
export * from "./shared.js";
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
import ZipSearch from "#components/PlzSuche.svelte";
|
import ZipSearch from "#components/PlzSuche.svelte";
|
||||||
import moment from "moment";
|
import moment from "moment";
|
||||||
import BilderZusatzsysteme from "#components/Ausweis/BilderZusatzsysteme.svelte";
|
import BilderZusatzsysteme from "#components/Ausweis/BilderZusatzsysteme.svelte";
|
||||||
import { RawNotificationWrapper, RawNotification, notifications } from "@ibcornelsen/ui";
|
import { RawNotificationWrapper, RawNotification, notifications } from "#components/Notifications/index.js";
|
||||||
import { auditHeizungGebaeudeBaujahr } from "#components/Verbrauchsausweis/audits/HeizungGebaeudeBaujahr.js";
|
import { auditHeizungGebaeudeBaujahr } from "#components/Verbrauchsausweis/audits/HeizungGebaeudeBaujahr.js";
|
||||||
import { auditHeizungJuengerDreiJahre } from "#components/Verbrauchsausweis/audits/HeizungJuengerDreiJahre.js";
|
import { auditHeizungJuengerDreiJahre } from "#components/Verbrauchsausweis/audits/HeizungJuengerDreiJahre.js";
|
||||||
import { auditZeitraumAktuell } from "#components/Verbrauchsausweis/audits/ZeitraumAktuell.js";
|
import { auditZeitraumAktuell } from "#components/Verbrauchsausweis/audits/ZeitraumAktuell.js";
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ if (base64) {
|
|||||||
const json = buffer.toString("utf-8");
|
const json = buffer.toString("utf-8");
|
||||||
ausweis = JSON.parse(json) as VerbrauchsausweisWohnenClient;
|
ausweis = JSON.parse(json) as VerbrauchsausweisWohnenClient;
|
||||||
} else {
|
} else {
|
||||||
const uidAusweis = Astro.url.searchParams.get("ausweis_uid");
|
const uidAusweis = Astro.url.searchParams.get("uid");
|
||||||
|
|
||||||
if (!uidAusweis) {
|
if (!uidAusweis) {
|
||||||
return Astro.redirect("/404");
|
return Astro.redirect("/404");
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ if (base64) {
|
|||||||
const json = buffer.toString("utf-8");
|
const json = buffer.toString("utf-8");
|
||||||
ausweis = JSON.parse(json) as VerbrauchsausweisWohnenClient;
|
ausweis = JSON.parse(json) as VerbrauchsausweisWohnenClient;
|
||||||
} else {
|
} else {
|
||||||
const uidAusweis = Astro.url.searchParams.get("ausweis_uid");
|
const uidAusweis = Astro.url.searchParams.get("uid");
|
||||||
|
|
||||||
if (!uidAusweis) {
|
if (!uidAusweis) {
|
||||||
return Astro.redirect("/404");
|
return Astro.redirect("/404");
|
||||||
|
|||||||
@@ -28,6 +28,6 @@
|
|||||||
"#client/*": ["./src/client/*"],
|
"#client/*": ["./src/client/*"],
|
||||||
"#server/*": ["./src/server/*"],
|
"#server/*": ["./src/server/*"],
|
||||||
},
|
},
|
||||||
"types": ["cypress", "cypress-file-upload", "bun-types"]
|
"types": ["cypress", "cypress-file-upload", "bun-types", "svelte"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user