About.svelte 2.24 KB
Newer Older
Timothy J. Baek's avatar
Timothy J. Baek committed
1
2
<script lang="ts">
	import { getOllamaVersion } from '$lib/apis/ollama';
3
4
	import { WEBUI_VERSION } from '$lib/constants';
	import { WEBUI_NAME, config, showChangelog } from '$lib/stores';
Timothy J. Baek's avatar
Timothy J. Baek committed
5
6
7
8
9
10
11
12
13
14
15
16
17
	import { onMount } from 'svelte';

	let ollamaVersion = '';
	onMount(async () => {
		ollamaVersion = await getOllamaVersion(localStorage.token).catch((error) => {
			return '';
		});
	});
</script>

<div class="flex flex-col h-full justify-between space-y-3 text-sm mb-6">
	<div class=" space-y-3">
		<div>
18
19
			<div class=" mb-2.5 text-sm font-medium flex space-x-2 items-center">
				<div>
20
					{$WEBUI_NAME} Version
21
22
				</div>
			</div>
Timothy J. Baek's avatar
Timothy J. Baek committed
23
			<div class="flex w-full">
Timothy J. Baek's avatar
Timothy J. Baek committed
24
25
				<div class="flex-1 text-xs text-gray-700 dark:text-gray-200 flex space-x-1.5 items-center">
					<div>
26
						v{WEBUI_VERSION}
Timothy J. Baek's avatar
Timothy J. Baek committed
27
					</div>
28
29

					<button
Timothy J. Baek's avatar
Timothy J. Baek committed
30
						class=" underline flex items-center space-x-1 text-xs text-gray-500 dark:text-gray-500"
31
32
33
34
35
36
						on:click={() => {
							showChangelog.set(true);
						}}
					>
						<div>See what's new</div>
					</button>
Timothy J. Baek's avatar
Timothy J. Baek committed
37
38
39
40
				</div>
			</div>
		</div>

41
42
		{#if ollamaVersion}
			<hr class=" dark:border-gray-700" />
Timothy J. Baek's avatar
Timothy J. Baek committed
43

44
45
46
47
48
49
			<div>
				<div class=" mb-2.5 text-sm font-medium">Ollama Version</div>
				<div class="flex w-full">
					<div class="flex-1 text-xs text-gray-700 dark:text-gray-200">
						{ollamaVersion ?? 'N/A'}
					</div>
Timothy J. Baek's avatar
Timothy J. Baek committed
50
51
				</div>
			</div>
52
		{/if}
Timothy J. Baek's avatar
Timothy J. Baek committed
53
54
55
56
57
58
59

		<hr class=" dark:border-gray-700" />

		<div class="flex space-x-1">
			<a href="https://discord.gg/5rJgQTnV4s" target="_blank">
				<img
					alt="Discord"
Timothy J. Baek's avatar
Timothy J. Baek committed
60
					src="https://img.shields.io/badge/Discord-Open_WebUI-blue?logo=discord&logoColor=white"
Timothy J. Baek's avatar
Timothy J. Baek committed
61
62
63
				/>
			</a>

Timothy J. Baek's avatar
Timothy J. Baek committed
64
65
66
67
68
69
70
			<a href="https://twitter.com/OpenWebUI" target="_blank">
				<img
					alt="X (formerly Twitter) Follow"
					src="https://img.shields.io/twitter/follow/OpenWebUI"
				/>
			</a>

Timothy J. Baek's avatar
rename  
Timothy J. Baek committed
71
			<a href="https://github.com/open-webui/open-webui" target="_blank">
Timothy J. Baek's avatar
Timothy J. Baek committed
72
73
				<img
					alt="Github Repo"
Timothy J. Baek's avatar
rename  
Timothy J. Baek committed
74
					src="https://img.shields.io/github/stars/open-webui/open-webui?style=social&label=Star us on Github"
Timothy J. Baek's avatar
Timothy J. Baek committed
75
76
77
78
79
80
81
82
83
84
85
86
87
				/>
			</a>
		</div>

		<div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
			Created by <a
				class=" text-gray-500 dark:text-gray-300 font-medium"
				href="https://github.com/tjbck"
				target="_blank">Timothy J. Baek</a
			>
		</div>
	</div>
</div>