feat: chat folder

This commit is contained in:
chatbung
2025-02-19 13:30:34 +09:00
parent a5d2b4589c
commit e5e86a9c9b
4 changed files with 409 additions and 150 deletions

View File

@@ -32,7 +32,9 @@ export function createNewGroup(){
note: '',
name: 'Chat 1',
localLore: []
}], chatPage: 0,
}],
chatFolders: [],
chatPage: 0,
viewScreen: 'none',
globalLore: [],
characters: [],
@@ -585,6 +587,7 @@ export function createBlankChar():character{
name: 'Chat 1',
localLore: []
}],
chatFolders: [],
chatPage: 0,
emotionImages: [],
bias: [],

View File

@@ -958,6 +958,7 @@ export interface character{
desc:string
notes:string
chats:Chat[]
chatFolders: ChatFolder[]
chatPage: number
viewScreen: 'emotion'|'none'|'imggen'|'vn',
bias: [string, number][]
@@ -1096,6 +1097,7 @@ export interface groupChat{
image?:string
firstMessage:string
chats:Chat[]
chatFolders: ChatFolder[]
chatPage: number
name:string
viewScreen: 'single'|'multiple'|'none'|'emp',
@@ -1302,6 +1304,14 @@ export interface Chat{
bindedPersona?:string
fmIndex?:number
hypaV3Data?:SerializableHypaV3Data
folderId?:string
}
export interface ChatFolder{
id:string
name?:string
color?:number
folded:boolean
}
export interface Message{

View File

@@ -1015,4 +1015,7 @@ export const sortableOptions = {
delay: 300, // time in milliseconds to define when the sorting should start
delayOnTouchOnly: true,
filter: '.no-sort',
onMove: (event) => {
return event.related.className.indexOf('no-sort') === -1
}
} as const