This commit is contained in:
Timothy Jaeryang Baek committed 2026-09-03 20:22:32 -04:00
1 parent ca26632a2a
commit f677fdbf50
59 files changed
+285 -217

No files matched your search

@@ -35,7 +35,7 @@
import AccessButton from '$lib/components/common/AccessButton.svelte';
import { extractInputVariables } from '$lib/utils';
const i18n = getContext('i18n');
const i18n: any = getContext('i18n');
export let onSubmit: Function;
export let onBack: null | Function = null;
@@ -622,13 +622,13 @@
{#if info.meta.profile_image_url}
<img
src={info.meta.profile_image_url}
alt="model profile"
alt={$i18n.t('model profile')}
class="size-full object-cover"
/>
{:else}
<img
src="{WEBUI_BASE_URL}/static/favicon.png"
alt="model profile"
alt={$i18n.t('model profile')}
class="size-full object-cover"
/>
{/if}
@@ -1,5 +1,5 @@
<script lang="ts">
import { createEventDispatcher, tick } from 'svelte';
import { createEventDispatcher, getContext, tick } from 'svelte';
type Voice = {
id: string;
@@ -17,6 +17,8 @@
export let className = 'w-full';
export let selectedIds: string[] | null = null;
const i18n: any = getContext('i18n');
const dispatch = createEventDispatcher<{
select: Voice;
enableall: Voice[];
@@ -153,7 +155,9 @@
enableVoices();
}}
>
<span class="truncate">Enable all ({matchedVoices.length})</span>
<span class="truncate"
>{$i18n.t('Enable all ({{count}})', { count: matchedVoices.length })}</span
>
</button>
{/if}
{/if}
@@ -1,5 +1,5 @@
<script lang="ts">
import { createEventDispatcher, tick } from 'svelte';
import { createEventDispatcher, getContext, tick } from 'svelte';
import Dropdown from '$lib/components/common/Dropdown.svelte';
import Search from '$lib/components/icons/Search.svelte';
import TTSVoiceInput from './TTSVoiceInput.svelte';
@@ -22,6 +22,8 @@
export let selectedIds: string[] | null = null;
export let variant: 'inline' | 'dropdown' = 'inline';
const i18n: any = getContext('i18n');
const dispatch = createEventDispatcher<{
select: Item;
enableall: Item[];
@@ -101,7 +103,9 @@
class="h-[1.6875rem] w-full rounded-xl px-2 text-left text-[0.8125rem] text-gray-700 transition-colors hover:bg-gray-50/40 hover:text-gray-900 dark:text-gray-200 dark:hover:bg-gray-800/40 dark:hover:text-gray-100"
on:click={enableItems}
>
<span class="truncate">Enable all ({matchedItems.length})</span>
<span class="truncate"
>{$i18n.t('Enable all ({{count}})', { count: matchedItems.length })}</span
>
</button>
{/if}