Adding software file filter.

This commit is contained in:
Roland 2023-10-29 21:26:35 -06:00
parent f3faec9ce7
commit 38cddeff98
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
2 changed files with 3 additions and 0 deletions

View file

@ -1175,6 +1175,8 @@ export const filterToMimetypes = (filter) => {
return ['application/zip', 'application/zlib', 'application/x-bzip2', 'application/x-xz', 'application/x-bzip', 'application/x-bzip2', 'application/gzip', 'application/vnd.rar', 'application/x-tar', 'application/x-7z-compressed'];
} else if (filter === 'model') {
return ['application/x-openscad', 'model/stl', 'application/sla', 'model/obj'];
} else if (filter === 'software') {
return ['application/x-iso9660-image', 'application/x-executable', 'application/x-dosexec', 'application/x-bzip2', 'application/vnd.debian.binary-package', 'application/x-executable']
}
}

View file

@ -461,6 +461,7 @@ export function FilesSearchView({
{key: 'image', text: 'Image', value: 'image'},
{key: 'zip', text: 'ZIP', value: 'zip'},
{key: 'model', text: '3D Model', value: 'model'},
{key: 'software', text: 'Software', value: 'software'},
];
const {searchFiles, pages} = useSearchFiles(24, emptySearch, model);