mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
30 lines
567 B
TypeScript
30 lines
567 B
TypeScript
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);
|
|
|