refactor: 重构部分代码

This commit is contained in:
digua
2026-01-04 23:07:15 +08:00
committed by digua
parent 070b49f2aa
commit c44b662b12
7 changed files with 84 additions and 436 deletions
+1 -11
View File
@@ -10,7 +10,6 @@ import chatlab from './chatlab'
import chatlabJsonl from './chatlab-jsonl'
import shuakamiQqExporter from './shuakami-qq-exporter'
import yccccccyEchotrace from './ycccccccy-echotrace'
import wechatDefault from './wechat-default'
import qqNativeTxt from './qq-native-txt'
import whatsappNativeTxt from './whatsapp-native-txt'
@@ -22,18 +21,9 @@ export const formats: FormatModule[] = [
chatlabJsonl, // 优先级 2 - ChatLab JSONL(流式格式,支持超大文件)
shuakamiQqExporter, // 优先级 10 - shuakami/qq-chat-exporter
yccccccyEchotrace, // 优先级 15 - ycccccccy/echotrace 微信导出
wechatDefault, // 优先级 20 - 微信数据库导出 JSON
whatsappNativeTxt, // 优先级 25 - WhatsApp 官方导出 TXT
qqNativeTxt, // 优先级 30 - QQ 官方导出 TXT
]
// 按名称导出,方便单独使用
export {
chatlab,
chatlabJsonl,
shuakamiQqExporter,
yccccccyEchotrace,
wechatDefault,
qqNativeTxt,
whatsappNativeTxt,
}
export { chatlab, chatlabJsonl, shuakamiQqExporter, yccccccyEchotrace, qqNativeTxt, whatsappNativeTxt }