Fix svelte 4 components to fit into requirements
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
export let img:string|Promise<string> = ''
|
||||
export let idx = -1
|
||||
export let rerollIcon = false
|
||||
export let MessageGenerationInfo:MessageGenerationInfo|null = null
|
||||
export let messageGenerationInfo:MessageGenerationInfo|null = null
|
||||
export let onReroll = () => {}
|
||||
export let unReroll = () => {}
|
||||
export let character:simpleCharacterArgument|string|null = null
|
||||
@@ -264,20 +264,20 @@
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
{#if MessageGenerationInfo && $DataBase.requestInfoInsideChat}
|
||||
{#if messageGenerationInfo && $DataBase.requestInfoInsideChat}
|
||||
<div>
|
||||
<button class="text-sm p-1 text-textcolor2 border-darkborderc float-end mr-2 my-2
|
||||
hover:ring-darkbutton hover:ring rounded-md hover:text-textcolor transition-all flex justify-center items-center"
|
||||
on:click={() => {
|
||||
alertRequestData({
|
||||
genInfo: MessageGenerationInfo,
|
||||
genInfo: messageGenerationInfo,
|
||||
idx: idx,
|
||||
})
|
||||
}}
|
||||
>
|
||||
<BotIcon size={20} />
|
||||
<span class="ml-1">
|
||||
{capitalize(getModelShortName(MessageGenerationInfo.model))}
|
||||
{capitalize(getModelShortName(messageGenerationInfo.model))}
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -566,7 +566,7 @@
|
||||
isLastMemory={$CurrentChat.lastMemory === (chat.chatId ?? 'none') && $CurrentShowMemoryLimit}
|
||||
character={$CurrentSimpleCharacter}
|
||||
largePortrait={$CurrentCharacter.largePortrait}
|
||||
MessageGenerationInfo={chat.generationInfo}
|
||||
messageGenerationInfo={chat.generationInfo}
|
||||
/>
|
||||
{:else}
|
||||
<Chat
|
||||
@@ -580,7 +580,7 @@
|
||||
isLastMemory={$CurrentChat.lastMemory === (chat.chatId ?? 'none') && $CurrentShowMemoryLimit}
|
||||
character={chat.saying}
|
||||
largePortrait={findCharacterbyId(chat.saying).largePortrait}
|
||||
MessageGenerationInfo={chat.generationInfo}
|
||||
messageGenerationInfo={chat.generationInfo}
|
||||
/>
|
||||
{/if}
|
||||
{:else}
|
||||
@@ -592,7 +592,7 @@
|
||||
img={$ConnectionOpenStore ? '' : getCharImage($CurrentUserIcon, 'css')}
|
||||
isLastMemory={$CurrentChat.lastMemory === (chat.chatId ?? 'none') && $CurrentShowMemoryLimit}
|
||||
largePortrait={$UserIconProtrait}
|
||||
MessageGenerationInfo={chat.generationInfo}
|
||||
messageGenerationInfo={chat.generationInfo}
|
||||
/>
|
||||
{/if}
|
||||
{/each}
|
||||
|
||||
Reference in New Issue
Block a user