1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/common/SupportedFormats.ts

30 lines
567 B
TypeScript
Raw Normal View History

2019-12-10 00:19:28 +08:00
export const SupportedFormats = {
Photos: [
'gif',
'jpeg', 'jpg', 'jpe',
'png',
'webp',
'svg'
],
Videos: [
'mp4',
'webm',
'ogv',
'ogg',
'avi'
],
MetaFiles: [
'gpx'
],
WithDots: {
Photos: <string[]>[],
Videos: <string[]>[],
MetaFiles: <string[]>[],
}
};
SupportedFormats.WithDots.Photos = SupportedFormats.Photos.map(f => '.' + f);
SupportedFormats.WithDots.Videos = SupportedFormats.Videos.map(f => '.' + f);
SupportedFormats.WithDots.MetaFiles = SupportedFormats.MetaFiles.map(f => '.' + f);