About.svelte 2.2 KB

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