diff --git a/src/lib/components/channel/Navbar.svelte b/src/lib/components/channel/Navbar.svelte
index 7c2bc1839..31f94fb48 100644
--- a/src/lib/components/channel/Navbar.svelte
+++ b/src/lib/components/channel/Navbar.svelte
@@ -57,8 +57,9 @@
{#if $user !== undefined}
{
if (e.detail === 'archived-chat') {
showArchivedChats.set(true);
diff --git a/src/lib/components/chat/Navbar.svelte b/src/lib/components/chat/Navbar.svelte
index 4687dd983..12cab4d6e 100644
--- a/src/lib/components/chat/Navbar.svelte
+++ b/src/lib/components/chat/Navbar.svelte
@@ -154,8 +154,9 @@
{#if $user !== undefined && $user !== null}
{
if (e.detail === 'archived-chat') {
showArchivedChats.set(true);
diff --git a/src/lib/components/layout/Help.svelte b/src/lib/components/layout/Help.svelte
deleted file mode 100644
index 0fe0a53b9..000000000
--- a/src/lib/components/layout/Help.svelte
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
diff --git a/src/lib/components/layout/Navbar.svelte b/src/lib/components/layout/Navbar.svelte
index b92d5fcf3..586dbcaf1 100644
--- a/src/lib/components/layout/Navbar.svelte
+++ b/src/lib/components/layout/Navbar.svelte
@@ -166,8 +166,9 @@
{#if $user !== undefined}
{
if (e.detail === 'archived-chat') {
showArchivedChats.set(true);
diff --git a/src/lib/components/layout/Sidebar/UserMenu.svelte b/src/lib/components/layout/Sidebar/UserMenu.svelte
index 0993c784d..e816b43e5 100644
--- a/src/lib/components/layout/Sidebar/UserMenu.svelte
+++ b/src/lib/components/layout/Sidebar/UserMenu.svelte
@@ -9,16 +9,25 @@
import { fade, slide } from 'svelte/transition';
import Tooltip from '$lib/components/common/Tooltip.svelte';
import { userSignOut } from '$lib/apis/auths';
+ import QuestionMarkCircle from '$lib/components/icons/QuestionMarkCircle.svelte';
+ import Map from '$lib/components/icons/Map.svelte';
+ import Keyboard from '$lib/components/icons/Keyboard.svelte';
+ import ShortcutsModal from '$lib/components/chat/ShortcutsModal.svelte';
const i18n = getContext('i18n');
export let show = false;
export let role = '';
+ export let help = false;
export let className = 'max-w-[240px]';
+ let showShortcuts = false;
+
const dispatch = createEventDispatcher();
+
+
{
@@ -32,13 +41,13 @@
fade(e, { duration: 100 })}
>
{
await showSettings.set(true);
show = false;
@@ -73,7 +82,7 @@
{
dispatch('show', 'archived-chat');
show = false;
@@ -91,7 +100,7 @@
{#if role === 'admin'}
{
show = false;
@@ -121,7 +130,7 @@
{
show = false;
@@ -151,10 +160,50 @@
{/if}
-
+ {#if help}
+
+
+
+ {
+ window.open('https://docs.openwebui.com', '_blank');
+ }}
+ >
+
+ {$i18n.t('Documentation')}
+
+
+
+
+
+ {
+ showShortcuts = !showShortcuts;
+ show = false;
+ }}
+ >
+
+ {$i18n.t('Keyboard shortcuts')}
+
+ {/if}
+
+
{
const res = await userSignOut();
user.set(null);
@@ -187,14 +236,14 @@
{#if $activeUserIds?.length > 0}
-
+
0
? `${$i18n.t('Running')}: ${$USAGE_POOL.join(', ')} ✨`
: ''}
>
-
+
{/if}
-
diff --git a/src/routes/(app)/+page.svelte b/src/routes/(app)/+page.svelte
index 08026e7aa..dcc0d4547 100644
--- a/src/routes/(app)/+page.svelte
+++ b/src/routes/(app)/+page.svelte
@@ -1,7 +1,5 @@
-
diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte
index 2cc68782e..53a2b61f5 100644
--- a/src/routes/(app)/c/[id]/+page.svelte
+++ b/src/routes/(app)/c/[id]/+page.svelte
@@ -2,8 +2,6 @@
import { page } from '$app/stores';
import Chat from '$lib/components/chat/Chat.svelte';
- import Help from '$lib/components/layout/Help.svelte';
-
diff --git a/src/routes/(app)/notes/+layout.svelte b/src/routes/(app)/notes/+layout.svelte
index 84267b6ae..ed121d3d2 100644
--- a/src/routes/(app)/notes/+layout.svelte
+++ b/src/routes/(app)/notes/+layout.svelte
@@ -68,8 +68,9 @@
{#if $user !== undefined && $user !== null}
{
if (e.detail === 'archived-chat') {
showArchivedChats.set(true);