diff --git a/src/lib/components/chat/SettingsModal.svelte b/src/lib/components/chat/SettingsModal.svelte index f23b9bb77..1cbca5191 100644 --- a/src/lib/components/chat/SettingsModal.svelte +++ b/src/lib/components/chat/SettingsModal.svelte @@ -2,7 +2,7 @@ import sha256 from 'js-sha256'; import Modal from '../common/Modal.svelte'; - import { API_BASE_URL as BUILD_TIME_API_BASE_URL } from '$lib/constants'; + import { WEB_UI_VERSION, API_BASE_URL as BUILD_TIME_API_BASE_URL } from '$lib/constants'; import toast from 'svelte-french-toast'; export let show = false; @@ -212,7 +212,7 @@ -
+
Settings
- + +
- + +
- + +
diff --git a/src/lib/components/common/Modal.svelte b/src/lib/components/common/Modal.svelte index 5f9f30133..f6d6e99e2 100644 --- a/src/lib/components/common/Modal.svelte +++ b/src/lib/components/common/Modal.svelte @@ -28,7 +28,7 @@ }} >
{ e.stopPropagation(); diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte index 9d3014c74..4315e5dac 100644 --- a/src/lib/components/layout/Navbar.svelte +++ b/src/lib/components/layout/Navbar.svelte @@ -60,14 +60,16 @@
@@ -88,12 +90,16 @@
@@ -108,7 +114,7 @@ bind:this={navElement} class="h-screen {show ? '' - : '-translate-x-72'} w-72 fixed top-0 left-0 z-40 transition bg-gray-900 text-gray-200 shadow-2xl text-sm + : '-translate-x-72'} w-72 fixed top-0 left-0 z-40 transition bg-[#0a0a0a] text-gray-200 shadow-2xl text-sm " >
diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 5450a17a9..21c8fb764 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -8,6 +8,8 @@ export const API_BASE_URL = : `http://localhost:11434/api` : PUBLIC_API_BASE_URL; +export const WEB_UI_VERSION = 'v1.0.0-alpha.1'; + // Source: https://kit.svelte.dev/docs/modules#$env-static-public // This feature, akin to $env/static/private, exclusively incorporates environment variables // that are prefixed with config.kit.env.publicPrefix (usually set to PUBLIC_). diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 65eb2dd70..9b37640c3 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -113,7 +113,7 @@ code.style.borderTopLeftRadius = 0; let topBarDiv = document.createElement('div'); - topBarDiv.style.backgroundColor = '#343541'; + topBarDiv.style.backgroundColor = '#202123'; topBarDiv.style.overflowX = 'auto'; topBarDiv.style.display = 'flex'; topBarDiv.style.justifyContent = 'space-between'; @@ -795,71 +795,60 @@
-
-
-
- - -
- -
- -
-
-
+
+
-
+
{#if messages.length == 0} -
+
@@ -873,189 +862,222 @@
{:else} {#each messages as message, messageIdx} -
-
-
-
+
+
+
+
- {#if message.role != 'user' && message.content == ''} -
-
-
-
+
+
+ {message.role === 'user' ? 'You' : 'Ollama'} +
-
-
-
-
-
-
-
-
-
+ {#if message.role !== 'user' && message.content === ''} +
+
+
+
-
+
+
+
+
+
+
+
+
+
+ +
+
-
- {:else} -
- {#if message.role == 'user'} - {#if message?.edit === true} -
-