"dockerfile/rocm5.1.1-pytorch1.10.0.dockerfile" did not exist on "a4950a707e616acd1b4aafd406d82ac59c3cd3eb"
+page.svelte 1.45 KB
Newer Older
1
2
<script>
	import { goto } from '$app/navigation';
3
	import { WEBUI_NAME, config } from '$lib/stores';
4
	import { onMount } from 'svelte';
5
6
7
8
9
10
11
12
13
14
15
16
17
18

	let loaded = false;

	onMount(async () => {
		if ($config) {
			await goto('/');
		}

		loaded = true;
	});
</script>

{#if loaded}
	<div class="absolute w-full h-full flex z-50">
19
		<div class="absolute rounded-xl w-full h-full backdrop-blur flex justify-center">
20
21
			<div class="m-auto pb-44 flex flex-col justify-center">
				<div class="max-w-md">
22
					<div class="text-center text-2xl font-medium z-50">{$WEBUI_NAME} Backend Required</div>
23
24

					<div class=" mt-4 text-center text-sm w-full">
25
26
						Oops! You're using an unsupported method (frontend only). Please serve the WebUI from
						the backend.
27
28
29
30
31

						<br class=" " />
						<br class=" " />
						<a
							class=" font-semibold underline"
Timothy J. Baek's avatar
rename  
Timothy J. Baek committed
32
							href="https://github.com/open-webui/open-webui#how-to-install-"
33
							target="_blank">See readme.md for instructions</a
34
						>
35
						or
36
						<a class=" font-semibold underline" href="https://discord.gg/5rJgQTnV4s" target="_blank"
37
							>join our Discord for help.</a
38
						>
39
40
41
42
43
					</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"
44
45
46
							on:click={() => {
								location.href = '/';
							}}
47
						>
48
							Check Again
49
50
51
52
53
54
55
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
{/if}