From 9fe5e0b8f65f532c2198f53aa56a7cab1c4bf891 Mon Sep 17 00:00:00 2001 From: Moritz Utcke Date: Thu, 14 Nov 2024 15:05:25 +1100 Subject: [PATCH] Notification Wrapper auf Lokale Version gesetzt anstatt @ibcornelsen/ui, Config upgedated und Ansichtsausweis repariert. --- astro.config.mjs | 3 +++ src/components/Dashboard/DashboardAusweis.svelte | 8 ++++---- src/components/Notifications/Notification.svelte | 2 +- src/components/Notifications/NotificationWrapper.svelte | 2 +- src/components/Notifications/RawNotification.svelte | 2 +- src/components/Notifications/index.ts | 9 +++++++++ .../Ausweise/VerbrauchsausweisWohnenModule.svelte | 2 +- src/pages/pdf/ansichtsausweis.astro | 2 +- src/pages/pdf/datenblatt.astro | 2 +- tsconfig.json | 2 +- 10 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 src/components/Notifications/index.ts diff --git a/astro.config.mjs b/astro.config.mjs index 8dd067e0..97ddeaa7 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -21,6 +21,9 @@ export default defineConfig({ "#": fileURLToPath(new URL("./src", import.meta.url)) } }, + ssr: { + noExternal: ["@pdfme/generator", "@pdfme/common", "@pdfme/schemas"] + }, build: { commonjsOptions: { transformMixedEsModules: false diff --git a/src/components/Dashboard/DashboardAusweis.svelte b/src/components/Dashboard/DashboardAusweis.svelte index d62040b8..aa6572e6 100644 --- a/src/components/Dashboard/DashboardAusweis.svelte +++ b/src/components/Dashboard/DashboardAusweis.svelte @@ -1,7 +1,7 @@ diff --git a/src/components/Notifications/NotificationWrapper.svelte b/src/components/Notifications/NotificationWrapper.svelte index fda211bc..3ced2ee1 100644 --- a/src/components/Notifications/NotificationWrapper.svelte +++ b/src/components/Notifications/NotificationWrapper.svelte @@ -2,7 +2,7 @@ import Notification from "./Notification.svelte"; import RawNotificationWrapper from "./RawNotificationWrapper.svelte"; - import { notifications } from "./shared"; + import { notifications } from "./shared.js"; diff --git a/src/components/Notifications/RawNotification.svelte b/src/components/Notifications/RawNotification.svelte index f156b583..7f24c7de 100644 --- a/src/components/Notifications/RawNotification.svelte +++ b/src/components/Notifications/RawNotification.svelte @@ -1,5 +1,5 @@