diff --git a/src/lib/components/icons/Code.svelte b/src/lib/components/icons/Code.svelte new file mode 100644 index 000000000..824df1b40 --- /dev/null +++ b/src/lib/components/icons/Code.svelte @@ -0,0 +1,19 @@ + + + + + diff --git a/src/lib/components/icons/Settings.svelte b/src/lib/components/icons/Settings.svelte new file mode 100644 index 000000000..4e622cda8 --- /dev/null +++ b/src/lib/components/icons/Settings.svelte @@ -0,0 +1,20 @@ + + + + + + diff --git a/src/lib/components/icons/SignOut.svelte b/src/lib/components/icons/SignOut.svelte new file mode 100644 index 000000000..0307cddd3 --- /dev/null +++ b/src/lib/components/icons/SignOut.svelte @@ -0,0 +1,16 @@ + + + + + + diff --git a/src/lib/components/icons/UserGroup.svelte b/src/lib/components/icons/UserGroup.svelte new file mode 100644 index 000000000..b3e9d6ff1 --- /dev/null +++ b/src/lib/components/icons/UserGroup.svelte @@ -0,0 +1,19 @@ + + + + + diff --git a/src/lib/components/layout/Sidebar/UserMenu.svelte b/src/lib/components/layout/Sidebar/UserMenu.svelte index 6a363c93d..70e60f038 100644 --- a/src/lib/components/layout/Sidebar/UserMenu.svelte +++ b/src/lib/components/layout/Sidebar/UserMenu.svelte @@ -4,15 +4,19 @@ import { flyAndScale } from '$lib/utils/transitions'; import { goto } from '$app/navigation'; - import ArchiveBox from '$lib/components/icons/ArchiveBox.svelte'; import { showSettings, activeUserIds, USAGE_POOL, mobile, showSidebar, user } from '$lib/stores'; import { fade, slide } from 'svelte/transition'; import Tooltip from '$lib/components/common/Tooltip.svelte'; import { userSignOut } from '$lib/apis/auths'; + import ArchiveBox from '$lib/components/icons/ArchiveBox.svelte'; 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'; + import Settings from '$lib/components/icons/Settings.svelte'; + import Code from '$lib/components/icons/Code.svelte'; + import UserGroup from '$lib/components/icons/UserGroup.svelte'; + import SignOut from '$lib/components/icons/SignOut.svelte'; const i18n = getContext('i18n'); @@ -58,25 +62,7 @@ }} >
- - - - +
{$i18n.t('Settings')}
@@ -111,20 +97,7 @@ }} >
- - - +
{$i18n.t('Playground')}
@@ -141,20 +114,7 @@ }} >
- - - +
{$i18n.t('Admin Panel')}
@@ -165,10 +125,11 @@ { window.open('https://docs.openwebui.com', '_blank'); + show = false; }} > @@ -177,10 +138,11 @@ { window.open('https://github.com/open-webui/open-webui/releases', '_blank'); + show = false; }} > @@ -188,7 +150,7 @@ { showShortcuts = !showShortcuts; @@ -214,23 +176,7 @@ }} >
- - - - +
{$i18n.t('Sign Out')}