mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-05-27 17:30:23 +08:00
feat: 新增指定格式导入
This commit is contained in:
@@ -226,7 +226,9 @@ export const chatApi = {
|
||||
/**
|
||||
* 获取支持的格式列表
|
||||
*/
|
||||
getSupportedFormats: (): Promise<Array<{ name: string; platform: string }>> => {
|
||||
getSupportedFormats: (): Promise<
|
||||
Array<{ id: string; name: string; platform: string; extensions: string[] }>
|
||||
> => {
|
||||
return ipcRenderer.invoke('chat:getSupportedFormats')
|
||||
},
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -135,7 +135,7 @@ interface ChatApi {
|
||||
) => Promise<Array<{ type: MessageType; count: number }>>
|
||||
getTimeRange: (sessionId: string) => Promise<{ start: number; end: number } | null>
|
||||
getDbDirectory: () => Promise<string | null>
|
||||
getSupportedFormats: () => Promise<Array<{ name: string; platform: string }>>
|
||||
getSupportedFormats: () => Promise<Array<{ id: string; name: string; platform: string; extensions: string[] }>>
|
||||
onImportProgress: (callback: (progress: ImportProgress) => void) => () => void
|
||||
getCatchphraseAnalysis: (sessionId: string, filter?: TimeFilter) => Promise<CatchphraseAnalysis>
|
||||
getMentionAnalysis: (sessionId: string, filter?: TimeFilter) => Promise<MentionAnalysis>
|
||||
|
||||
Reference in New Issue
Block a user