mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-06 05:09:09 +08:00
feat(constant): add Godot scene files(.tscn) (#8362)
* feat(constant): add Godot scene files(.tscn) * fix(AttachmentPreview): consolidate file extension checks
This commit is contained in:
parent
8c58060716
commit
8bf84b26f3
@ -348,7 +348,8 @@ const textExtsByCategory = new Map([
|
|||||||
'.x3d', // X3D文件
|
'.x3d', // X3D文件
|
||||||
'.gltf', // glTF JSON
|
'.gltf', // glTF JSON
|
||||||
'.prefab', // Unity预制体 (YAML格式)
|
'.prefab', // Unity预制体 (YAML格式)
|
||||||
'.meta' // Unity元数据文件 (YAML格式)
|
'.meta', // Unity元数据文件 (YAML格式)
|
||||||
|
'.tscn' // Godot场景文件
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
|
|||||||
@ -61,7 +61,7 @@ export const getFileIcon = (type?: string) => {
|
|||||||
return <FileZipFilled />
|
return <FileZipFilled />
|
||||||
}
|
}
|
||||||
|
|
||||||
if (['.txt', '.json', '.log', '.yml', '.yaml', '.xml', '.csv'].includes(ext)) {
|
if (['.txt', '.json', '.log', '.yml', '.yaml', '.xml', '.csv', '.tscn', '.gd'].includes(ext)) {
|
||||||
return <FileTextFilled />
|
return <FileTextFilled />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user