Fix falsche Style Datei wird reingeladen

This commit is contained in:
Moritz Utcke
2024-11-20 12:29:53 +11:00
parent 7779ff3e10
commit 3bdcf77cb0
6 changed files with 11 additions and 10 deletions

View File

@@ -1,9 +1,9 @@
---
import "../style/global.scss"
import "#style/global.css"
import "../../svelte-dialogs.config"
import Footer from '../components/Footer.astro';
import Header from '../components/Header.astro';
import SidebarLeft from '../components/SidebarLeft.astro';
import Footer from '#components/design/footer/Footer.astro';
import Header from '#components/design/header/Header.astro';
import SidebarLeft from '#components/design/sidebars/left/SidebarLeft.astro';
export interface Props {
title: string;

View File

@@ -1,7 +1,7 @@
---
import i18next from "i18next";
import "../style/global.scss";
import "#style/global.css";
import "../../svelte-dialogs.config"
import "svelte-ripple-action/ripple.css"
import ThemeController from "#components/ThemeController.svelte";
@@ -38,7 +38,7 @@ const schema = JSON.stringify({
},
});
const lightTheme = Astro.cookies.get("theme").value === "light";
const lightTheme = Astro.cookies.get("theme")?.value === "light";
---
<!DOCTYPE html>

View File

@@ -2,7 +2,7 @@
import i18next from "i18next";
import "../style/UMBE_global.css";
import "../style/global.scss";
import "#style/global.css";
import "../../svelte-dialogs.config"
import Footer from "../components/Footer.astro";
import Header from "../components/Header.astro";

View File

@@ -1,7 +1,7 @@
---
import i18next from "i18next";
import "../style/global.scss";
import "#style/global.css";
import "../../svelte-dialogs.config"
import "svelte-ripple-action/ripple.css"
import DashboardSidebar from "../components/Dashboard/DashboardSidebar.svelte"
@@ -50,7 +50,7 @@ const schema = JSON.stringify({
},
});
let lightTheme = Astro.cookies.get("theme").value === "light";
let lightTheme = Astro.cookies.get("theme")?.value === "light";
---
<!DOCTYPE html>

View File

@@ -2,7 +2,7 @@
import ThemeController from "../components/ThemeController.svelte";
import moment from "moment"
const lightTheme = Astro.cookies.get("theme").value === "light";
const lightTheme = Astro.cookies.get("theme")?.value === "light";
---
<!DOCTYPE html>

View File

@@ -27,6 +27,7 @@
"#modules/*": ["./src/modules/*"],
"#client/*": ["./src/client/*"],
"#server/*": ["./src/server/*"],
"#style/*": ["./src/style/*"],
"#footer/*": ["./src/components/design/footer/*"],
"#header/*": ["./src/components/design/header/*"],