fix and update

This commit is contained in:
lendry
2026-06-29 12:17:25 +03:00
parent 923a028cdd
commit 75ccbe5fc4
39 changed files with 1619 additions and 63 deletions

View File

@@ -31,7 +31,7 @@ const EXTENSION_TO_MIME: Record<string, string> = {
rar: 'application/vnd.rar',
'7z': 'application/x-7z-compressed',
json: 'application/json',
xml: 'application/xml'
apk: 'application/vnd.android.package-archive'
};
const MIME_ALIASES: Record<string, string> = {
@@ -110,6 +110,7 @@ export function fileIconLabel(fileName?: string, mimeType?: string) {
if (['xls', 'xlsx', 'csv'].includes(extension)) return 'XLS';
if (['ppt', 'pptx'].includes(extension)) return 'PPT';
if (['zip', 'rar', '7z'].includes(extension)) return 'ZIP';
if (extension === 'apk') return 'APK';
if (extension) return extension.toUpperCase().slice(0, 4);
return 'FILE';
}