mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 13:40:55 +00:00
refac: styling
This commit is contained in:
parent
74a3900ad0
commit
dc322084bb
@ -3,7 +3,7 @@
|
|||||||
import toast from 'svelte-french-toast';
|
import toast from 'svelte-french-toast';
|
||||||
|
|
||||||
import { createModel, deleteModel, pullModel } from '$lib/apis/ollama';
|
import { createModel, deleteModel, pullModel } from '$lib/apis/ollama';
|
||||||
import { WEBUI_API_BASE_URL } from '$lib/constants';
|
import { WEBUI_API_BASE_URL, WEBUI_NAME } from '$lib/constants';
|
||||||
import { models, user } from '$lib/stores';
|
import { models, user } from '$lib/stores';
|
||||||
import { splitStream } from '$lib/utils';
|
import { splitStream } from '$lib/utils';
|
||||||
|
|
||||||
@ -59,7 +59,7 @@
|
|||||||
} else {
|
} else {
|
||||||
toast.success(`Model '${modelName}' has been successfully downloaded.`);
|
toast.success(`Model '${modelName}' has been successfully downloaded.`);
|
||||||
|
|
||||||
const notification = new Notification(`Ollama`, {
|
const notification = new Notification(WEBUI_NAME, {
|
||||||
body: `Model '${modelName}' has been successfully downloaded.`,
|
body: `Model '${modelName}' has been successfully downloaded.`,
|
||||||
icon: '/favicon.png'
|
icon: '/favicon.png'
|
||||||
});
|
});
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<script>
|
<script>
|
||||||
import { goto } from '$app/navigation';
|
import { goto } from '$app/navigation';
|
||||||
|
import { WEBUI_NAME } from '$lib/constants';
|
||||||
import { config } from '$lib/stores';
|
import { config } from '$lib/stores';
|
||||||
import { onMount } from 'svelte';
|
import { onMount } from 'svelte';
|
||||||
|
|
||||||
@ -19,7 +20,7 @@
|
|||||||
<div class="absolute rounded-xl w-full h-full backdrop-blur flex justify-center">
|
<div class="absolute rounded-xl w-full h-full backdrop-blur flex justify-center">
|
||||||
<div class="m-auto pb-44 flex flex-col justify-center">
|
<div class="m-auto pb-44 flex flex-col justify-center">
|
||||||
<div class="max-w-md">
|
<div class="max-w-md">
|
||||||
<div class="text-center text-2xl font-medium z-50">Ollama WebUI Backend Required</div>
|
<div class="text-center text-2xl font-medium z-50">{WEBUI_NAME} Backend Required</div>
|
||||||
|
|
||||||
<div class=" mt-4 text-center text-sm w-full">
|
<div class=" mt-4 text-center text-sm w-full">
|
||||||
Oops! You're using an unsupported method (frontend only). Please serve the WebUI from
|
Oops! You're using an unsupported method (frontend only). Please serve the WebUI from
|
||||||
|
Loading…
Reference in New Issue
Block a user