2023-12-26 07:14:06 +01:00
|
|
|
<script>
|
|
|
|
import { goto } from '$app/navigation';
|
|
|
|
import { config } from '$lib/stores';
|
|
|
|
import { onMount } from 'svelte';
|
|
|
|
|
|
|
|
let loaded = false;
|
|
|
|
|
|
|
|
onMount(async () => {
|
|
|
|
if ($config) {
|
|
|
|
await goto('/');
|
|
|
|
}
|
|
|
|
|
|
|
|
loaded = true;
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{#if loaded}
|
|
|
|
<div class="absolute w-full h-full flex z-50">
|
2023-12-26 12:28:30 +01:00
|
|
|
<div class="absolute rounded-xl w-full h-full backdrop-blur flex justify-center">
|
2023-12-26 07:14:06 +01:00
|
|
|
<div class="m-auto pb-44 flex flex-col justify-center">
|
|
|
|
<div class="max-w-md">
|
|
|
|
<div class="text-center text-2xl font-medium z-50">Ollama WebUI Backend Required</div>
|
|
|
|
|
|
|
|
<div class=" mt-4 text-center text-sm w-full">
|
2023-12-27 02:51:30 +01:00
|
|
|
Oops! You're using an unsupported method (frontend only). Please serve the WebUI from
|
|
|
|
the backend.
|
|
|
|
|
|
|
|
<br class=" " />
|
|
|
|
<br class=" " />
|
|
|
|
<a
|
|
|
|
class=" font-semibold underline"
|
|
|
|
href="https://github.com/ollama-webui/ollama-webui#how-to-install-"
|
|
|
|
target="_blank">See readme.md for instructions</a
|
|
|
|
>
|
|
|
|
or
|
|
|
|
<a class=" font-semibold underline" href="https://discord.gg/5rJgQTnV4s" target="_blank"
|
|
|
|
>join our Discord for help.</a
|
|
|
|
>
|
2023-12-26 07:14:06 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class=" mt-6 mx-auto relative group w-fit">
|
|
|
|
<button
|
|
|
|
class="relative z-20 flex px-5 py-2 rounded-full bg-gray-100 hover:bg-gray-200 transition font-medium text-sm"
|
2023-12-26 12:28:30 +01:00
|
|
|
on:click={() => {
|
|
|
|
location.href = '/';
|
|
|
|
}}
|
2023-12-26 07:14:06 +01:00
|
|
|
>
|
|
|
|
Check Again
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/if}
|