From: PhiTux Date: Tue, 7 Jan 2025 17:17:24 +0000 (+0100) Subject: several (css) fixes and minar updates X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=35f17301f85ef4eb14400516ccc92f02792a1dd5;p=DailyTxT.git several (css) fixes and minar updates --- diff --git a/frontend/jsconfig.json b/frontend/jsconfig.json new file mode 100644 index 0000000..81ff977 --- /dev/null +++ b/frontend/jsconfig.json @@ -0,0 +1,3 @@ +{ + "extends": "./.svelte-kit/tsconfig.json" +} diff --git a/frontend/src/lib/settingsStore.js b/frontend/src/lib/settingsStore.js new file mode 100644 index 0000000..4386938 --- /dev/null +++ b/frontend/src/lib/settingsStore.js @@ -0,0 +1,3 @@ +import {writable} from 'svelte/store'; + +export const readingMode = writable(true); \ No newline at end of file diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 5f98abb..642d5e0 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -6,8 +6,18 @@ import { onMount } from 'svelte'; import '../scss/styles.scss'; import * as bootstrap from 'bootstrap'; + import Fa from 'svelte-fa'; + import { readingMode } from '$lib/settingsStore.js'; + import { page } from '$app/state'; - export let data; + import { + faRightFromBracket, + faGlasses, + faPencil, + faSliders + } from '@fortawesome/free-solid-svg-icons'; + + let { children } = $props(); let inDuration = 150; let outDuration = 150; @@ -39,41 +49,65 @@ dataSpyList.forEach((dataSpyEl) => { bootstrap.ScrollSpy.getInstance(dataSpyEl).refresh(); }); - }, 100); + }, 200); }); });
- {#key data.pathname} + {#key page.data}
- + {@render children()}
{/key}
diff --git a/frontend/src/routes/Datepicker.svelte b/frontend/src/routes/Datepicker.svelte index 522fd0b..f48645b 100644 --- a/frontend/src/routes/Datepicker.svelte +++ b/frontend/src/routes/Datepicker.svelte @@ -165,7 +165,7 @@
-
+
-
- +
+
diff --git a/frontend/src/routes/test/+page.svelte b/frontend/src/routes/test/+page.svelte new file mode 100644 index 0000000..9f16758 --- /dev/null +++ b/frontend/src/routes/test/+page.svelte @@ -0,0 +1,62 @@ +
+
+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+
+
+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+

huhu

+
+