优化 简化统一代码

This commit is contained in:
Chen committed 2025-12-03 02:00:07 +08:00
1 parent 1d206fe179
commit 59abbf30d9
11 files changed
+332 -401

No files matched your search

-12
View File
@@ -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,