{ dispatch('change', state); }} > fade(e, { duration: 100 })} > { show = false; await showSettings.set(true); if ($mobile) { await tick(); showSidebar.set(false); } }} >
{$i18n.t('Settings')}
{ show = false; dispatch('show', 'archived-chat'); if ($mobile) { await tick(); showSidebar.set(false); } }} >
{$i18n.t('Archived Chats')}
{#if role === 'admin'} { show = false; if ($mobile) { await tick(); showSidebar.set(false); } }} >
{$i18n.t('Playground')}
{ show = false; if ($mobile) { await tick(); showSidebar.set(false); } }} >
{$i18n.t('Admin Panel')}
{/if} {#if help}
{#if $user?.role === 'admin'} { show = false; }} href="https://docs.openwebui.com" >
{$i18n.t('Documentation')}
{ show = false; }} href="https://github.com/open-webui/" >
{$i18n.t('Releases')}
{/if} { show = false; showShortcuts.set(!$showShortcuts); if ($mobile) { await tick(); showSidebar.set(false); } }} >
{$i18n.t('Keyboard shortcuts')}
{/if}
{ const res = await userSignOut(); user.set(null); localStorage.removeItem('token'); location.href = res?.redirect_url ?? '/auth'; show = false; }} >
{$i18n.t('Sign Out')}
{#if usage} {#if usage?.user_ids?.length > 0}
0 ? `${$i18n.t('Running')}: ${usage.model_ids.join(', ')} ✨` : ''} >
{ getUsageInfo(); }} >
{$i18n.t('Active Users')}: {usage?.user_ids?.length}
{/if} {/if}