diff --git a/src/lang/en.ts b/src/lang/en.ts index 5bb95c46..6947c95e 100644 --- a/src/lang/en.ts +++ b/src/lang/en.ts @@ -670,4 +670,11 @@ export const languageEnglish = { helpBlock: "Help", hideChatIcon: "Hide Icon UI", loadInternalBackup: "Load Internal Backup", + createCopy: "Create a Copy", + bindPersona: "Bind Persona", + chatOptions: "Chat Options", + doYouWantToBindCurrentPersona: "Do you want to bind the current persona to this chat?", + doYouWantToUnbindCurrentPersona: "Do you want to unbind the persona from this chat?", + personaBindedSuccess: "Persona is successfully binded", + personaUnbindedSuccess: "Persona is successfully unbinded", } \ No newline at end of file diff --git a/src/lib/ChatScreens/DefaultChatScreen.svelte b/src/lib/ChatScreens/DefaultChatScreen.svelte index 1e4207d9..b006f717 100644 --- a/src/lib/ChatScreens/DefaultChatScreen.svelte +++ b/src/lib/ChatScreens/DefaultChatScreen.svelte @@ -2,7 +2,7 @@ import Suggestion from './Suggestion.svelte'; import AdvancedChatEditor from './AdvancedChatEditor.svelte'; import { CameraIcon, DatabaseIcon, DicesIcon, GlobeIcon, ImagePlusIcon, LanguagesIcon, Laugh, MenuIcon, MicOffIcon, PackageIcon, Plus, RefreshCcwIcon, ReplyIcon, Send, StepForwardIcon } from "lucide-svelte"; - import { CurrentCharacter, CurrentChat, CurrentUsername, selectedCharID, CurrentUserIcon, CurrentShowMemoryLimit,CurrentSimpleCharacter, PlaygroundStore } from "../../ts/stores"; + import { CurrentCharacter, CurrentChat, CurrentUsername, selectedCharID, CurrentUserIcon, CurrentShowMemoryLimit,CurrentSimpleCharacter, PlaygroundStore, UserIconProtrait } from "../../ts/stores"; import Chat from "./Chat.svelte"; import { DataBase, type Message, type character, type groupChat } from "../../ts/storage/database"; import { getCharImage } from "../../ts/characters"; @@ -587,7 +587,7 @@ message={chat.data} img={getCharImage($CurrentUserIcon, 'css')} isLastMemory={$CurrentChat.lastMemory === (chat.chatId ?? 'none') && $CurrentShowMemoryLimit} - largePortrait={$DataBase.personas[$DataBase.selectedPersona].largePortrait} + largePortrait={$UserIconProtrait} MessageGenerationInfo={chat.generationInfo} /> {/if} diff --git a/src/lib/Others/AlertComp.svelte b/src/lib/Others/AlertComp.svelte index 021599ad..c6eae299 100644 --- a/src/lib/Others/AlertComp.svelte +++ b/src/lib/Others/AlertComp.svelte @@ -83,7 +83,7 @@
You should accept RisuRealm's { openURL('https://sv.risuai.xyz/hub/tos') }}>Terms of Service to continue
- {:else if $alertStore.type !== 'select' && $alertStore.type !== 'requestdata' && $alertStore.type !== 'addchar' && $alertStore.type !== 'hypaV2'} + {:else if $alertStore.type !== 'select' && $alertStore.type !== 'requestdata' && $alertStore.type !== 'addchar' && $alertStore.type !== 'hypaV2' && $alertStore.type !== 'chatOptions'} {$alertStore.msg} {#if $alertStore.submsg} {$alertStore.submsg} @@ -368,6 +368,48 @@ + {:else if $alertStore.type === 'chatOptions'} +
+

+ {language.chatOptions} +

+ + + +
{/if} diff --git a/src/lib/Setting/Pages/PersonaSettings.svelte b/src/lib/Setting/Pages/PersonaSettings.svelte index 6153af97..53b74173 100644 --- a/src/lib/Setting/Pages/PersonaSettings.svelte +++ b/src/lib/Setting/Pages/PersonaSettings.svelte @@ -9,7 +9,6 @@ import { getCharImage } from "src/ts/characters"; import { changeUserPersona, exportUserPersona, importUserPersona, saveUserPersona, selectUserImg } from "src/ts/persona"; import { DataBase, setDatabase } from "src/ts/storage/database"; - import { CurrentUserIcon } from "src/ts/stores"; import { get } from "svelte/store"; @@ -68,10 +67,10 @@