[fix] formating problems
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"package": {
|
"package": {
|
||||||
"productName": "RisuAI",
|
"productName": "RisuAI",
|
||||||
"version": "1.16.3"
|
"version": "1.16.4"
|
||||||
},
|
},
|
||||||
"tauri": {
|
"tauri": {
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
|
|||||||
@@ -99,7 +99,7 @@
|
|||||||
}
|
}
|
||||||
if(msgDisplay === replacePlaceholders(message, name)){
|
if(msgDisplay === replacePlaceholders(message, name)){
|
||||||
translating = true
|
translating = true
|
||||||
msgDisplay = (await translate(message, false))
|
msgDisplay = (await translate(replacePlaceholders(message, name), false))
|
||||||
translating = false
|
translating = false
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|||||||
@@ -105,25 +105,27 @@
|
|||||||
|
|
||||||
const unsub = DataBase.subscribe((v) => {
|
const unsub = DataBase.subscribe((v) => {
|
||||||
database = v
|
database = v
|
||||||
const cha = v.characters[$selectedCharID]
|
const cha = (v.characters[$selectedCharID])
|
||||||
if(!cha){
|
if(!cha){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if((!currentChar) || (!isEqual(currentChar.data, cha))){
|
if((!currentChar) || (!isEqual(currentChar.data, cha))){
|
||||||
|
console.log("updated")
|
||||||
if(cha.type === 'character'){
|
if(cha.type === 'character'){
|
||||||
currentChar = {
|
currentChar = {
|
||||||
type: 'character',
|
type: 'character',
|
||||||
data: (cha)
|
data: cloneDeep(cha)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
currentChar = {
|
currentChar = {
|
||||||
type: 'group',
|
type: 'group',
|
||||||
data: (cha)
|
data: cloneDeep(cha)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
emos = currentChar.data.emotionImages
|
emos = currentChar.data.emotionImages
|
||||||
|
currentChar = currentChar
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
@@ -179,7 +181,6 @@
|
|||||||
<span class="text-neutral-200">{language.authorNote} <Help key="chatNote"/></span>
|
<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>
|
<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>
|
<span class="text-gray-400 mb-6 text-sm">{tokens.localNote} {language.tokens}</span>
|
||||||
|
|
||||||
{:else}
|
{: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}>
|
<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>
|
<span class="text-neutral-200">{language.character}</span>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { cloneDeep } from 'lodash';
|
|||||||
|
|
||||||
export const DataBase = writable({} as any as Database)
|
export const DataBase = writable({} as any as Database)
|
||||||
export const loadedStore = writable(false)
|
export const loadedStore = writable(false)
|
||||||
export let appVer = '1.16.3'
|
export let appVer = '1.16.4'
|
||||||
|
|
||||||
|
|
||||||
export function setDatabase(data:Database){
|
export function setDatabase(data:Database){
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
{"version":"1.16.3"}
|
{"version":"1.16.4"}
|
||||||
Reference in New Issue
Block a user