align file types in SearchServices with full list of supported types
This commit is contained in:
parent
e260a05f42
commit
1397f63ceb
1 changed files with 12 additions and 8 deletions
|
|
@ -34,6 +34,7 @@ type Q =
|
|||
{ op: 'or', qs: Q[] } |
|
||||
{ op: 'not', q: Q };
|
||||
|
||||
// Sync with consts.ts and const.ts
|
||||
const fileTypes = {
|
||||
image: [
|
||||
'image/webp',
|
||||
|
|
@ -42,12 +43,20 @@ const fileTypes = {
|
|||
'image/avif',
|
||||
'image/apng',
|
||||
'image/gif',
|
||||
'image/bmp',
|
||||
'image/tiff',
|
||||
'image/x-icon',
|
||||
],
|
||||
video: [
|
||||
'video/mp4',
|
||||
'video/webm',
|
||||
'video/mpeg',
|
||||
'video/x-m4v',
|
||||
'video/ogg',
|
||||
'video/quicktime',
|
||||
'video/3gpp',
|
||||
'video/3gpp2',
|
||||
'video/x-matroska',
|
||||
],
|
||||
audio: [
|
||||
'audio/mpeg',
|
||||
|
|
@ -58,14 +67,9 @@ const fileTypes = {
|
|||
'audio/opus',
|
||||
'audio/ogg',
|
||||
'audio/x-m4a',
|
||||
'audio/mod',
|
||||
'audio/s3m',
|
||||
'audio/xm',
|
||||
'audio/it',
|
||||
'audio/x-mod',
|
||||
'audio/x-s3m',
|
||||
'audio/x-xm',
|
||||
'audio/x-it',
|
||||
'audio/mp4',
|
||||
'audio/x-flac',
|
||||
'audio/vnd.wave',
|
||||
],
|
||||
// Keep in sync with frontend-shared/js/const.ts
|
||||
module: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue