mirror of
https://github.com/open-webui/computer.git
synced 2026-11-22 21:50:43 -05:00
refac
This commit is contained in:
1 parent
dd75513a4d
commit
3e12e3932f
3 files changed
+37
-11
No files matched your search
@@ -72,6 +72,12 @@
|
||||
<path
|
||||
d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.8214 2.48697 15.5291 3.33782 17L2.5 21.5L7 20.6622C8.47087 21.513 10.1786 22 12 22Z"
|
||||
/>
|
||||
{:else if name === 'chat-plus'}
|
||||
<path d="M9 12H15" />
|
||||
<path d="M12 9V15" />
|
||||
<path
|
||||
d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.8214 2.48697 15.5291 3.33782 17L2.5 21.5L7 20.6622C8.47087 21.513 10.1786 22 12 22Z"
|
||||
/>
|
||||
{:else if name === 'info'}
|
||||
<path
|
||||
d="M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z"
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
import { getSkills, type SkillInfo } from '$lib/apis/skills';
|
||||
import Spinner from '../common/Spinner.svelte';
|
||||
import Icon from '../Icon.svelte';
|
||||
import { tooltip } from '$lib/tooltip';
|
||||
import { toast } from 'svelte-sonner';
|
||||
import { t } from '$lib/i18n';
|
||||
|
||||
@@ -1422,6 +1423,11 @@
|
||||
});
|
||||
}
|
||||
|
||||
function handleNewChatCommand() {
|
||||
if (onopenchat) return onopenchat();
|
||||
openChatTab();
|
||||
}
|
||||
|
||||
function shouldUseTts() {
|
||||
return (
|
||||
$ttsEnabled &&
|
||||
@@ -1740,7 +1746,7 @@
|
||||
>
|
||||
{#if !isLanding}
|
||||
<div
|
||||
class="relative z-30 -mb-12 flex h-7 shrink-0 items-center gap-2 px-3 dark:border-white/6"
|
||||
class="relative z-30 -mb-12 flex h-7 shrink-0 items-center gap-2 pl-3 pr-2 dark:border-white/6"
|
||||
style="border-color: color-mix(in oklab, var(--app-fg) 8%, transparent);"
|
||||
>
|
||||
<div
|
||||
@@ -1753,16 +1759,29 @@
|
||||
>
|
||||
{displayChatTitle}
|
||||
</div>
|
||||
<button
|
||||
bind:this={statusButtonEl}
|
||||
type="button"
|
||||
class="relative flex size-6 shrink-0 items-center justify-center rounded-lg transition-colors duration-75 {statusButtonClass}"
|
||||
aria-label={statusTitle}
|
||||
title={statusTitle}
|
||||
onclick={handleStatusCommand}
|
||||
>
|
||||
<Icon name="list" size={13} />
|
||||
</button>
|
||||
<div class="flex shrink-0 items-center gap-0.5">
|
||||
<button
|
||||
type="button"
|
||||
class="relative flex size-6 shrink-0 items-center justify-center rounded-lg transition-colors duration-75 {statusButtonClass}"
|
||||
aria-label={$t('bar.newChat')}
|
||||
title={$t('bar.newChat')}
|
||||
use:tooltip={$t('bar.newChat')}
|
||||
onclick={handleNewChatCommand}
|
||||
>
|
||||
<Icon name="chat-plus" size={14} />
|
||||
</button>
|
||||
<button
|
||||
bind:this={statusButtonEl}
|
||||
type="button"
|
||||
class="relative flex size-6 shrink-0 items-center justify-center rounded-lg transition-colors duration-75 {statusButtonClass}"
|
||||
aria-label={statusTitle}
|
||||
title={statusTitle}
|
||||
use:tooltip={statusTitle}
|
||||
onclick={handleStatusCommand}
|
||||
>
|
||||
<Icon name="list" size={13} />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -1430,6 +1430,7 @@
|
||||
: tab.path}
|
||||
tabId={tab.id}
|
||||
active={tab.id === group.activeTabId}
|
||||
onopenchat={(chatId) => openChatTab(chatId, group.id)}
|
||||
/>
|
||||
</div>
|
||||
{/each}
|
||||
|
||||
Reference in new issue
Block a user