Added series page and scene page section, no overview (yet).
This commit is contained in:
15
src/media.js
Normal file
15
src/media.js
Normal file
@@ -0,0 +1,15 @@
|
||||
export function curateMedia(media) {
|
||||
if (!media) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return {
|
||||
id: media.id,
|
||||
path: media.path,
|
||||
thumbnail: media.thumbnail,
|
||||
lazy: media.lazy,
|
||||
isS3: media.is_s3,
|
||||
width: media.width,
|
||||
height: media.height,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user