About.svelte 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <script lang="ts">
  2. import { getOllamaVersion } from '$lib/apis/ollama';
  3. import { WEBUI_NAME, WEB_UI_VERSION } from '$lib/constants';
  4. import { config, showChangelog } 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 flex space-x-2 items-center">
  17. <div>
  18. {WEBUI_NAME} Version
  19. </div>
  20. </div>
  21. <div class="flex w-full">
  22. <div class="flex-1 text-xs text-gray-700 dark:text-gray-200">
  23. v{WEB_UI_VERSION}
  24. <button
  25. class="mt-1 underline flex items-center space-x-1 text-xs text-gray-600 dark:text-gray-400"
  26. on:click={() => {
  27. showChangelog.set(true);
  28. }}
  29. >
  30. <div>See what's new</div>
  31. </button>
  32. </div>
  33. </div>
  34. </div>
  35. <hr class=" dark:border-gray-700" />
  36. <div>
  37. <div class=" mb-2.5 text-sm font-medium">Ollama Version</div>
  38. <div class="flex w-full">
  39. <div class="flex-1 text-xs text-gray-700 dark:text-gray-200">
  40. {ollamaVersion ?? 'N/A'}
  41. </div>
  42. </div>
  43. </div>
  44. <hr class=" dark:border-gray-700" />
  45. <div class="flex space-x-1">
  46. <a href="https://discord.gg/5rJgQTnV4s" target="_blank">
  47. <img
  48. alt="Discord"
  49. src="https://img.shields.io/badge/Discord-Open_WebUI-blue?logo=discord&logoColor=white"
  50. />
  51. </a>
  52. <a href="https://twitter.com/OpenWebUI" target="_blank">
  53. <img
  54. alt="X (formerly Twitter) Follow"
  55. src="https://img.shields.io/twitter/follow/OpenWebUI"
  56. />
  57. </a>
  58. <a href="https://github.com/open-webui/open-webui" target="_blank">
  59. <img
  60. alt="Github Repo"
  61. src="https://img.shields.io/github/stars/open-webui/open-webui?style=social&label=Star us on Github"
  62. />
  63. </a>
  64. </div>
  65. <div class="mt-2 text-xs text-gray-400 dark:text-gray-500">
  66. Created by <a
  67. class=" text-gray-500 dark:text-gray-300 font-medium"
  68. href="https://github.com/tjbck"
  69. target="_blank">Timothy J. Baek</a
  70. >
  71. </div>
  72. </div>
  73. </div>