优化 简化统一代码
This commit is contained in:
1 parent
1d206fe179
commit
59abbf30d9
11 files changed
+332
-401
No files matched your search
@@ -645,18 +645,6 @@ async function generatePlaceholderThumbnail(outputPath, type, label) {
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取文件类型对应的图标(Unicode)
|
||||
*/
|
||||
function getIconForType(type) {
|
||||
const icons = {
|
||||
video: '🎬',
|
||||
document: '📄',
|
||||
special: '🎨'
|
||||
};
|
||||
return icons[type] || '📁';
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
isImageFile,
|
||||
getFileType,
|
||||
|
||||
Reference in new issue
Block a user