fix: naming to lower camel case in current PR

This commit is contained in:
bangonicdd
2025-02-22 01:26:12 +09:00
parent 77a36f5a7f
commit 0f1d243935

View File

@@ -42,7 +42,7 @@
e.alwaysActive e.alwaysActive
) )
} }
function ActivateLocally(book: loreBook){ function activateLocally(book: loreBook){
const chat = getCurrentChat() const chat = getCurrentChat()
let childLore: loreBook | undefined let childLore: loreBook | undefined
@@ -69,7 +69,7 @@
chat.localLore.push(childLore) chat.localLore.push(childLore)
} }
} }
function DeactivateLocally(book: loreBook){ function deactivateLocally(book: loreBook){
if(!book.id) return if(!book.id) return
const chat = getCurrentChat() const chat = getCurrentChat()
const childLore = chat?.localLore?.find(e => e.id === book.id) const childLore = chat?.localLore?.find(e => e.id === book.id)
@@ -79,9 +79,9 @@
} }
function toggleLocalActive(check: boolean, book: loreBook){ function toggleLocalActive(check: boolean, book: loreBook){
if(check){ if(check){
ActivateLocally(book) activateLocally(book)
}else{ }else{
DeactivateLocally(book) deactivateLocally(book)
} }
} }
function getParentLoreName(book: loreBook){ function getParentLoreName(book: loreBook){
@@ -129,7 +129,7 @@
if(!open){ if(!open){
onClose() onClose()
} }
DeactivateLocally(value) deactivateLocally(value)
onRemove() onRemove()
} }
}}> }}>