From 79581cdcf2fe3685ed0b391fddcd944ccb95f81f Mon Sep 17 00:00:00 2001 From: Moritz Utcke Date: Wed, 17 Jan 2024 12:33:05 +0700 Subject: [PATCH] DaisyUI Integriert --- package.json | 1 + src/components/Ausweis/Ausweisart.svelte | 9 +- .../Ausweis/BilderZusatzsysteme.svelte | 46 ++++++++-- src/components/Ausweis/Verbrauch.svelte | 1 + src/components/Footer.astro | 2 +- src/components/Label.svelte | 2 +- src/components/LoginDialog.svelte | 27 ++++++ src/components/SidebarLeft.astro | 8 +- src/components/TagInput.svelte | 7 +- src/components/UploadImages.svelte | 4 +- src/layouts/AusweisLayout.astro | 3 - src/layouts/UserLayout.astro | 61 +++++++++++-- .../VerbrauchsausweisWohnenModule.svelte | 89 +++++++++++-------- src/modules/EmbeddedLoginModule.svelte | 2 +- src/modules/UserModule.svelte | 22 +++++ src/pages/user/index.astro | 16 ++-- src/style/global.scss | 4 + tailwind.config.cjs | 32 ++++--- 18 files changed, 245 insertions(+), 91 deletions(-) create mode 100644 src/components/LoginDialog.svelte create mode 100644 src/modules/UserModule.svelte diff --git a/package.json b/package.json index 2e8044cf..40d5c763 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "bun-types": "^1.0.22", "cypress": "^13.6.2", "cypress-file-upload": "^5.0.8", + "daisyui": "^4.6.0", "eslint": "~8.15.0", "eslint-config-prettier": "8.1.0", "prettier": "^2.8.8", diff --git a/src/components/Ausweis/Ausweisart.svelte b/src/components/Ausweis/Ausweisart.svelte index 0481dace..7c14b068 100644 --- a/src/components/Ausweis/Ausweisart.svelte +++ b/src/components/Ausweis/Ausweisart.svelte @@ -3,7 +3,6 @@ import { auditHeizungGebaeudeBaujahr } from "../Verbrauchsausweis/audits/HeizungGebaeudeBaujahr"; import { addNotification, deleteNotification } from "@ibcornelsen/ui"; import TagInput from "../TagInput.svelte"; - import { writable } from "svelte/store"; import type { BedarfsausweisWohnen, VerbrauchsausweisGewerbe, @@ -14,8 +13,6 @@ export let gebaeude: GebaeudeClient; export let ausweis: VerbrauchsausweisWohnenClient | VerbrauchsausweisGewerbe | BedarfsausweisWohnen; - $: baujahrHeizung = writable(gebaeude.baujahr_heizung || []); - $: baujahr = writable(gebaeude.baujahr_gebaeude || []);
@@ -28,6 +25,7 @@ {name} diff --git a/src/layouts/UserLayout.astro b/src/layouts/UserLayout.astro index 60095c5e..384ebc9a 100644 --- a/src/layouts/UserLayout.astro +++ b/src/layouts/UserLayout.astro @@ -1,5 +1,13 @@ --- -import UserSidebarLeft from "../components/UserSidebarLeft.astro"; +import i18next from "i18next"; + +import "../style/global.scss"; +import "../../svelte-dialogs.config" +import Footer from "../components/Footer.astro"; +import Header from "../components/Header.astro"; +import SidebarLeft from "../components/SidebarLeft.astro"; +import SidebarRight from "../components/SidebarRight.astro"; +import { NotificationWrapper } from "@ibcornelsen/ui"; export interface Props { title: string; @@ -34,7 +42,7 @@ const schema = JSON.stringify({ --- - + @@ -81,12 +89,47 @@ const schema = JSON.stringify({ - -
- -
- -
+ +
+
+
+