About.svelte 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <script lang="ts">
  2. import { getOllamaVersion } from '$lib/apis/ollama';
  3. import { WEBUI_NAME, WEB_UI_VERSION } from '$lib/constants';
  4. import { config } from '$lib/stores';
  5. import { onMount } from 'svelte';
  6. let ollamaVersion = '';
  7. onMount(async () => {
  8. ollamaVersion = await getOllamaVersion(localStorage.token).catch((error) => {
  9. return '';
  10. });
  11. });
  12. </script>
  13. <div class="flex flex-col h-full justify-between space-y-3 text-sm mb-6">
  14. <div class=" space-y-3">
  15. <div>
  16. <div class=" mb-2.5 text-sm font-medium">{WEBUI_NAME} Version</div>
  17. <div class="flex w-full">
  18. <div class="flex-1 text-xs text-gray-700 dark:text-gray-200">
  19. {$config && $config.version ? $config.version : WEB_UI_VERSION}
  20. </div>
  21. </div>
  22. </div>
  23. <hr class=" dark:border-gray-700" />
  24. <div>
  25. <div class=" mb-2.5 text-sm font-medium">Ollama Version</div>
  26. <div class="flex w-full">
  27. <div class="flex-1 text-xs text-gray-700 dark:text-gray-200">
  28. {ollamaVersion ?? 'N/A'}
  29. </div>
  30. </div>
  31. </div>
  32. <hr class=" dark:border-gray-700" />
  33. <div class="flex space-x-1">
  34. <a href="https://discord.gg/5rJgQTnV4s" target="_blank">
  35. <img
  36. alt="Discord"
  37. src="https://img.shields.io/badge/Discord-Open_WebUI-blue?logo=discord&logoColor=white"
  38. />
  39. </a>
  40. <a href="https://github.com/ollama-webui/ollama-webui" target="_blank">
  41. <img
  42. alt="Github Repo"
  43. src="https://img.shields.io/github/stars/ollama-webui/ollama-webui?style=social&label=Star us on Github"
  44. />
  45. </a>
  46. </div>
  47. <div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
  48. Created by <a
  49. class=" text-gray-500 dark:text-gray-300 font-medium"
  50. href="https://github.com/tjbck"
  51. target="_blank">Timothy J. Baek</a
  52. >
  53. </div>
  54. </div>
  55. </div>