Files
ChatLab/electron/main/parser/formats/index.ts
T
2025-12-01 23:18:27 +08:00

24 lines
623 B
TypeScript

/**
* 格式模块注册
* 导出所有支持的格式
*/
import type { FormatModule } from '../types'
// 导入所有格式模块
import chatlab from './chatlab'
import shuakamiQqExporterV4 from './shuakami-qq-exporter-v4'
import qqNativeTxt from './qq-native-txt'
/**
* 所有支持的格式模块(按优先级排序)
*/
export const formats: FormatModule[] = [
chatlab, // 优先级 1
shuakamiQqExporterV4, // 优先级 10 - shuakami/qq-chat-exporter V4
qqNativeTxt, // 优先级 30 - QQ 官方导出 TXT
]
// 按名称导出,方便单独使用
export { chatlab, shuakamiQqExporterV4, qqNativeTxt }