mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(web): shared link filters (#15948)
This commit is contained in:
parent
23014c263b
commit
c5360e78c5
22 changed files with 520 additions and 112 deletions
|
|
@ -21,6 +21,7 @@ class UserPreferencesResponseDto {
|
|||
required this.people,
|
||||
required this.purchase,
|
||||
required this.ratings,
|
||||
required this.sharedLinks,
|
||||
required this.tags,
|
||||
});
|
||||
|
||||
|
|
@ -40,6 +41,8 @@ class UserPreferencesResponseDto {
|
|||
|
||||
RatingsResponse ratings;
|
||||
|
||||
SharedLinksResponse sharedLinks;
|
||||
|
||||
TagsResponse tags;
|
||||
|
||||
@override
|
||||
|
|
@ -52,6 +55,7 @@ class UserPreferencesResponseDto {
|
|||
other.people == people &&
|
||||
other.purchase == purchase &&
|
||||
other.ratings == ratings &&
|
||||
other.sharedLinks == sharedLinks &&
|
||||
other.tags == tags;
|
||||
|
||||
@override
|
||||
|
|
@ -65,10 +69,11 @@ class UserPreferencesResponseDto {
|
|||
(people.hashCode) +
|
||||
(purchase.hashCode) +
|
||||
(ratings.hashCode) +
|
||||
(sharedLinks.hashCode) +
|
||||
(tags.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'UserPreferencesResponseDto[avatar=$avatar, download=$download, emailNotifications=$emailNotifications, folders=$folders, memories=$memories, people=$people, purchase=$purchase, ratings=$ratings, tags=$tags]';
|
||||
String toString() => 'UserPreferencesResponseDto[avatar=$avatar, download=$download, emailNotifications=$emailNotifications, folders=$folders, memories=$memories, people=$people, purchase=$purchase, ratings=$ratings, sharedLinks=$sharedLinks, tags=$tags]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
|
|
@ -80,6 +85,7 @@ class UserPreferencesResponseDto {
|
|||
json[r'people'] = this.people;
|
||||
json[r'purchase'] = this.purchase;
|
||||
json[r'ratings'] = this.ratings;
|
||||
json[r'sharedLinks'] = this.sharedLinks;
|
||||
json[r'tags'] = this.tags;
|
||||
return json;
|
||||
}
|
||||
|
|
@ -101,6 +107,7 @@ class UserPreferencesResponseDto {
|
|||
people: PeopleResponse.fromJson(json[r'people'])!,
|
||||
purchase: PurchaseResponse.fromJson(json[r'purchase'])!,
|
||||
ratings: RatingsResponse.fromJson(json[r'ratings'])!,
|
||||
sharedLinks: SharedLinksResponse.fromJson(json[r'sharedLinks'])!,
|
||||
tags: TagsResponse.fromJson(json[r'tags'])!,
|
||||
);
|
||||
}
|
||||
|
|
@ -157,6 +164,7 @@ class UserPreferencesResponseDto {
|
|||
'people',
|
||||
'purchase',
|
||||
'ratings',
|
||||
'sharedLinks',
|
||||
'tags',
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue