mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 06:09:57 -05:00
Adding audio preview for audio files.
This commit is contained in:
parent
977f42529f
commit
272eef400c
2 changed files with 54 additions and 11 deletions
|
|
@ -643,6 +643,8 @@ export function FileIcon({file, disabled = true, size = 'huge', ...props}) {
|
|||
props['name'] = 'cube';
|
||||
} else if (mimetype.startsWith('application/x-dosexec') || mimetype.startsWith('application/x-msi')) {
|
||||
props['name'] = 'microsoft';
|
||||
} else if (mimetype.startsWith('audio/')) {
|
||||
props['name'] = 'file audio';
|
||||
} else if (mimetype.startsWith('application/octet-stream')) {
|
||||
if (lowerPath.endsWith('.stl')) {
|
||||
props['name'] = 'cube';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue