chore: streamline the URL used for resources like favicon.png

This commit is contained in:
guenhter
2025-07-09 09:14:51 +02:00
parent 0a3c448a52
commit 196af9eaf7
29 changed files with 66 additions and 42 deletions
+2 -1
View File
@@ -4,6 +4,7 @@
import { fade } from 'svelte/transition';
import DOMPurify from 'dompurify';
import { marked } from 'marked';
import { WEBUI_BASE_URL } from '$lib/constants';
const dispatch = createEventDispatcher();
@@ -60,7 +61,7 @@
<div class="flex md:hidden group w-fit md:items-center">
<a
class="text-gray-700 dark:text-white text-xs font-semibold underline"
href="/assets/files/whitepaper.pdf"
href="{WEBUI_BASE_URL}/assets/files/whitepaper.pdf"
target="_blank">Learn More</a
>
+5 -4
View File
@@ -1,11 +1,12 @@
<script lang="ts">
import { WEBUI_BASE_URL } from '$lib/constants';
import { onMount } from 'svelte';
export let imageUrls = [
'/assets/images/adam.jpg',
'/assets/images/galaxy.jpg',
'/assets/images/earth.jpg',
'/assets/images/space.jpg'
`${WEBUI_BASE_URL}/assets/images/adam.jpg`,
`${WEBUI_BASE_URL}/assets/images/galaxy.jpg`,
`${WEBUI_BASE_URL}/assets/images/earth.jpg`,
`${WEBUI_BASE_URL}/assets/images/space.jpg`
];
export let duration = 5000;
let selectedImageIdx = 0;