mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Adding .scad file type.
This commit is contained in:
parent
6de268909b
commit
5fb476f205
1 changed files with 2 additions and 8 deletions
|
|
@ -607,13 +607,7 @@ export function mimetypeColor(mimetype) {
|
|||
}
|
||||
|
||||
export function isZipMimetype(mimetype) {
|
||||
return mimetype.startsWith('application/zip')
|
||||
|| mimetype.startsWith('application/zlib')
|
||||
|| mimetype.startsWith('application/x-7z-compressed')
|
||||
|| mimetype.startsWith('application/x-bzip2')
|
||||
|| mimetype.startsWith('application/x-xz')
|
||||
|| mimetype.startsWith('application/gzip')
|
||||
|| mimetype.startsWith('application/x-rar');
|
||||
return mimetype.startsWith('application/zip') || mimetype.startsWith('application/zlib') || mimetype.startsWith('application/x-7z-compressed') || mimetype.startsWith('application/x-bzip2') || mimetype.startsWith('application/x-xz') || mimetype.startsWith('application/gzip') || mimetype.startsWith('application/x-rar');
|
||||
}
|
||||
|
||||
export function FileIcon({file, disabled = true, size = 'huge', ...props}) {
|
||||
|
|
@ -645,7 +639,7 @@ export function FileIcon({file, disabled = true, size = 'huge', ...props}) {
|
|||
props['name'] = 'closed captioning';
|
||||
} else if (mimetype.startsWith('application/octet-stream') && lowerPath.endsWith('.dmg')) {
|
||||
props['name'] = 'apple';
|
||||
} else if (mimetype.startsWith('application/octet-stream') && (lowerPath.endsWith('.stl') || lowerPath.endsWith('.blend'))) {
|
||||
} else if (mimetype.startsWith('application/x-openscad') || (mimetype.startsWith('application/octet-stream') && (lowerPath.endsWith('.stl') || lowerPath.endsWith('.blend')))) {
|
||||
props['name'] = 'cube';
|
||||
} else if (mimetype.startsWith('application/x-dosexec') || mimetype.startsWith('application/x-msi')) {
|
||||
props['name'] = 'microsoft';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue