chore: streamline the URL used for resources like favicon.png
This commit is contained in:
@@ -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
|
||||
>
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user