feat: module lorebook sort, import, export (#822)

# PR Checklist
- [ ] Have you checked if it works normally in all models? *Ignore this
if it doesn't use models.*
- [ ] Have you checked if it works normally in all web, local, and node
hosted versions? If it doesn't, have you blocked it in those versions?
- [x] Have you added type definitions?

# Description
This PR adds sorting, import, and export functionality to the Module
Lorebook list.

I focused on preserving the existing code structure as much as possible
while implementing these changes.

Thank you for your time and review!
This commit is contained in:
kwaroran
2025-04-28 15:42:40 +09:00
committed by GitHub
3 changed files with 80 additions and 13 deletions

View File

@@ -516,7 +516,7 @@ export async function importLoreBook(mode:'global'|'local'|'sglobal'){
}
}
interface CCLorebook{
export interface CCLorebook{
key:string[]
comment:string
content:string