update frontend to match new variant fields

This commit is contained in:
lightling 2024-10-16 18:05:51 -04:00
parent bdd7be61b0
commit 04adf08b5c
5 changed files with 27 additions and 44 deletions

View file

@ -21,6 +21,12 @@ export type GalleryEntrySharedProperties = {
* It contains a URL to the media that the entry represents.
*/
export type GalleryEntryWithoutVariants = {
alternativeText?: string
caption?: string
/**
* URL to the entry's thumbnail
*/
thumbnailUrl?: string
/**
* URL to the entry
*/

View file

@ -86,20 +86,11 @@ export type MediaEntry = {
* The title of the entry
*/
title: string
/**
* Information regarding the thumbnail
*/
thumbnail?: {
/**
* Sets the inline-styles for the thumbnail
*/
style: CSSStyleDeclaration
}
/**
* any content warnings that apply to the entry,
* which will be used to apply the `.warning` classname
* to the DOM of a tile
* and will be displayed with the tile
*/
warning?: string
warnings?: string
}