mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
Adding more filter options #287
This commit is contained in:
parent
d30c0f5292
commit
35875b8aad
@ -47,13 +47,11 @@ export class FilterService {
|
||||
renderType: FilterRenderType.enum,
|
||||
isArrayValue: false,
|
||||
},
|
||||
/* {
|
||||
name: $localize`Date`,
|
||||
mapFn: (m: PhotoDTO): number => m.metadata.creationDate,
|
||||
renderType: FilterRenderType.date
|
||||
},*/
|
||||
|
||||
|
||||
{
|
||||
name: $localize`Caption`,
|
||||
mapFn: (m: PhotoDTO): string => m.metadata.caption,
|
||||
renderType: FilterRenderType.enum
|
||||
},
|
||||
{
|
||||
name: $localize`Rating`,
|
||||
mapFn: (m: PhotoDTO): number => m.metadata.rating,
|
||||
@ -64,6 +62,11 @@ export class FilterService {
|
||||
mapFn: (m: PhotoDTO): string => m.metadata.cameraData?.model,
|
||||
renderType: FilterRenderType.enum
|
||||
},
|
||||
{
|
||||
name: $localize`Lens`,
|
||||
mapFn: (m: PhotoDTO): string => m.metadata.cameraData?.lens,
|
||||
renderType: FilterRenderType.enum
|
||||
},
|
||||
{
|
||||
name: $localize`City`,
|
||||
mapFn: (m: PhotoDTO): string => m.metadata.positionData?.city,
|
||||
@ -89,10 +92,10 @@ export class FilterService {
|
||||
filter: this.AVAILABLE_FILTERS[1],
|
||||
options: []
|
||||
}, {
|
||||
filter: this.AVAILABLE_FILTERS[5],
|
||||
filter: this.AVAILABLE_FILTERS[7],
|
||||
options: []
|
||||
}, {
|
||||
filter: this.AVAILABLE_FILTERS[3],
|
||||
filter: this.AVAILABLE_FILTERS[4],
|
||||
options: []
|
||||
}
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user