diff options
author | pacien | 2020-04-28 00:14:31 +0200 |
---|---|---|
committer | pacien | 2020-04-28 00:14:31 +0200 |
commit | 579df471dee7b6fe0be8a9ad8e2fa2362c9bf6cd (patch) | |
tree | 2aa8eb98a95f79fcbfac72f46cd229d9464ab77f /compiler/src/Resource.hs | |
parent | bda84785d3d04c0d1d471a1cf9c38363541b64a8 (diff) | |
download | ldgallery-579df471dee7b6fe0be8a9ad8e2fa2362c9bf6cd.tar.gz |
compiler: add picture size to index
This is needed for the picture viewer fancy loading phase.
Diffstat (limited to 'compiler/src/Resource.hs')
-rw-r--r-- | compiler/src/Resource.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/src/Resource.hs b/compiler/src/Resource.hs index b2a6bbf..e134468 100644 --- a/compiler/src/Resource.hs +++ b/compiler/src/Resource.hs | |||
@@ -72,7 +72,9 @@ instance ToJSON Resource where | |||
72 | 72 | ||
73 | data GalleryItemProps = | 73 | data GalleryItemProps = |
74 | Directory { items :: [GalleryItem] } | 74 | Directory { items :: [GalleryItem] } |
75 | | Picture { resource :: Resource } | 75 | | Picture |
76 | { resource :: Resource | ||
77 | , resolution :: Resolution } | ||
76 | | Other { resource :: Resource } | 78 | | Other { resource :: Resource } |
77 | deriving (Generic, Show) | 79 | deriving (Generic, Show) |
78 | 80 | ||