mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 04:14:39 +03:00
Gallery cover url (#5182)
* Add default gallery image * Add gallery cover URL path * Use new cover URL in UI * Hide gallery preview scrubber when gallery has no images * Don't try to show lightbox for gallery without images * Ignore unrelated lint issue
This commit is contained in:
@@ -25,6 +25,9 @@ type ImageFinder interface {
|
||||
type ImageQueryer interface {
|
||||
Query(ctx context.Context, options ImageQueryOptions) (*ImageQueryResult, error)
|
||||
QueryCount(ctx context.Context, imageFilter *ImageFilterType, findFilter *FindFilterType) (int, error)
|
||||
}
|
||||
|
||||
type GalleryCoverFinder interface {
|
||||
CoverByGalleryID(ctx context.Context, galleryId int) (*Image, error)
|
||||
}
|
||||
|
||||
@@ -73,6 +76,8 @@ type ImageReader interface {
|
||||
TagIDLoader
|
||||
FileLoader
|
||||
|
||||
GalleryCoverFinder
|
||||
|
||||
All(ctx context.Context) ([]*Image, error)
|
||||
Size(ctx context.Context) (float64, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user