You've already forked immich
mirror of
https://github.com/immich-app/immich.git
synced 2025-08-09 23:17:29 +02:00
fix(server, web): people page (#7319)
* fix: people page * fix: use locale * fix: e2e * fix: remove useless w-full * fix: don't count people without thumbnail * fix: es6 template string Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com>
This commit is contained in:
1
mobile/openapi/doc/PeopleResponseDto.md
generated
1
mobile/openapi/doc/PeopleResponseDto.md
generated
@@ -8,6 +8,7 @@ import 'package:openapi/api.dart';
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**hidden** | **int** | |
|
||||
**people** | [**List<PersonResponseDto>**](PersonResponseDto.md) | | [default to const []]
|
||||
**total** | **int** | |
|
||||
|
||||
|
10
mobile/openapi/lib/model/people_response_dto.dart
generated
10
mobile/openapi/lib/model/people_response_dto.dart
generated
@@ -13,30 +13,36 @@ part of openapi.api;
|
||||
class PeopleResponseDto {
|
||||
/// Returns a new [PeopleResponseDto] instance.
|
||||
PeopleResponseDto({
|
||||
required this.hidden,
|
||||
this.people = const [],
|
||||
required this.total,
|
||||
});
|
||||
|
||||
int hidden;
|
||||
|
||||
List<PersonResponseDto> people;
|
||||
|
||||
int total;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) => identical(this, other) || other is PeopleResponseDto &&
|
||||
other.hidden == hidden &&
|
||||
_deepEquality.equals(other.people, people) &&
|
||||
other.total == total;
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
// ignore: unnecessary_parenthesis
|
||||
(hidden.hashCode) +
|
||||
(people.hashCode) +
|
||||
(total.hashCode);
|
||||
|
||||
@override
|
||||
String toString() => 'PeopleResponseDto[people=$people, total=$total]';
|
||||
String toString() => 'PeopleResponseDto[hidden=$hidden, people=$people, total=$total]';
|
||||
|
||||
Map<String, dynamic> toJson() {
|
||||
final json = <String, dynamic>{};
|
||||
json[r'hidden'] = this.hidden;
|
||||
json[r'people'] = this.people;
|
||||
json[r'total'] = this.total;
|
||||
return json;
|
||||
@@ -50,6 +56,7 @@ class PeopleResponseDto {
|
||||
final json = value.cast<String, dynamic>();
|
||||
|
||||
return PeopleResponseDto(
|
||||
hidden: mapValueOfType<int>(json, r'hidden')!,
|
||||
people: PersonResponseDto.listFromJson(json[r'people']),
|
||||
total: mapValueOfType<int>(json, r'total')!,
|
||||
);
|
||||
@@ -99,6 +106,7 @@ class PeopleResponseDto {
|
||||
|
||||
/// The list of required keys that must be present in a JSON.
|
||||
static const requiredKeys = <String>{
|
||||
'hidden',
|
||||
'people',
|
||||
'total',
|
||||
};
|
||||
|
@@ -16,6 +16,11 @@ void main() {
|
||||
// final instance = PeopleResponseDto();
|
||||
|
||||
group('test PeopleResponseDto', () {
|
||||
// int hidden
|
||||
test('to test the property `hidden`', () async {
|
||||
// TODO
|
||||
});
|
||||
|
||||
// List<PersonResponseDto> people (default value: const [])
|
||||
test('to test the property `people`', () async {
|
||||
// TODO
|
||||
|
Reference in New Issue
Block a user