{ user.set(await getSessionUser(localStorage.token)); }} /> { dispatch('change', state); }} > fade(e, { duration: 100 })} > {#if profile}
profile
{$user.name}
{#if $user?.is_active ?? true}
{$i18n.t('Active')} {:else}
{$i18n.t('Away')} {/if}
{#if $user?.status_emoji || $user?.status_message}
{:else}
{/if}
{/if} { 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/open-webui/releases" >
{$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 showActiveUsers && usage} {#if usage?.user_count}
0 ? `${$i18n.t('Running')}: ${usage.model_ids.join(', ')} ✨` : ''} >
{ getUsageInfo(); }} >
{$i18n.t('Active Users')}: {usage?.user_count}
{/if} {/if}