chore: streamline the URL used for resources like favicon.png
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
import AccessControl from '$lib/components/workspace/common/AccessControl.svelte';
|
||||
import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte';
|
||||
import XMark from '$lib/components/icons/XMark.svelte';
|
||||
import { WEBUI_BASE_URL } from '$lib/constants';
|
||||
|
||||
export let show = false;
|
||||
export let edit = false;
|
||||
@@ -36,7 +37,7 @@
|
||||
}
|
||||
};
|
||||
|
||||
let profileImageUrl = '/favicon.png';
|
||||
let profileImageUrl = `${WEBUI_BASE_URL}/favicon.png`;
|
||||
let description = '';
|
||||
|
||||
let selectedModelId = '';
|
||||
@@ -92,7 +93,7 @@
|
||||
|
||||
name = '';
|
||||
id = '';
|
||||
profileImageUrl = '/favicon.png';
|
||||
profileImageUrl = `${WEBUI_BASE_URL}/favicon.png`;
|
||||
description = '';
|
||||
modelIds = [];
|
||||
selectedModelId = '';
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
import EllipsisHorizontal from '$lib/components/icons/EllipsisHorizontal.svelte';
|
||||
import EyeSlash from '$lib/components/icons/EyeSlash.svelte';
|
||||
import Eye from '$lib/components/icons/Eye.svelte';
|
||||
import { WEBUI_BASE_URL } from '$lib/constants';
|
||||
|
||||
let shiftKey = false;
|
||||
|
||||
@@ -332,7 +333,7 @@
|
||||
: 'opacity-50 dark:opacity-50'} "
|
||||
>
|
||||
<img
|
||||
src={model?.meta?.profile_image_url ?? '/static/favicon.png'}
|
||||
src={model?.meta?.profile_image_url ?? `${WEBUI_BASE_URL}/static/favicon.png`}
|
||||
alt="modelfile profile"
|
||||
class=" rounded-full w-full h-auto object-cover"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user