[fix] formating problems (#102)

This commit is contained in:
kwaroran
2023-05-24 19:46:26 +09:00
committed by GitHub
5 changed files with 9 additions and 8 deletions

View File

@@ -8,7 +8,7 @@
},
"package": {
"productName": "RisuAI",
"version": "1.16.3"
"version": "1.16.4"
},
"tauri": {
"allowlist": {

View File

@@ -99,7 +99,7 @@
}
if(msgDisplay === replacePlaceholders(message, name)){
translating = true
msgDisplay = (await translate(message, false))
msgDisplay = (await translate(replacePlaceholders(message, name), false))
translating = false
}
else{

View File

@@ -105,25 +105,27 @@
const unsub = DataBase.subscribe((v) => {
database = v
const cha = v.characters[$selectedCharID]
const cha = (v.characters[$selectedCharID])
if(!cha){
return
}
if((!currentChar) || (!isEqual(currentChar.data, cha))){
console.log("updated")
if(cha.type === 'character'){
currentChar = {
type: 'character',
data: (cha)
data: cloneDeep(cha)
}
}
else{
currentChar = {
type: 'group',
data: (cha)
data: cloneDeep(cha)
}
}
}
emos = currentChar.data.emotionImages
currentChar = currentChar
})
@@ -179,7 +181,6 @@
<span class="text-neutral-200">{language.authorNote} <Help key="chatNote"/></span>
<textarea class="bg-transparent input-text mt-2 mb-2 text-gray-200 resize-none h-20 focus:bg-selected text-xs" autocomplete="off" bind:value={currentChar.data.chats[currentChar.data.chatPage].note}></textarea>
<span class="text-gray-400 mb-6 text-sm">{tokens.localNote} {language.tokens}</span>
{:else}
<input class="text-neutral-200 mt-2 mb-4 p-2 bg-transparent input-text text-xl focus:bg-selected" placeholder="Group Name" bind:value={currentChar.data.name}>
<span class="text-neutral-200">{language.character}</span>

View File

@@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash';
export const DataBase = writable({} as any as Database)
export const loadedStore = writable(false)
export let appVer = '1.16.3'
export let appVer = '1.16.4'
export function setDatabase(data:Database){

View File

@@ -1 +1 @@
{"version":"1.16.3"}
{"version":"1.16.4"}