refactor(web): show & hide people (#10933)

This commit is contained in:
Michel Heusschen 2024-07-08 03:33:59 +02:00 committed by GitHub
parent cb40db9555
commit e9683b326a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 312 additions and 260 deletions

View file

@ -0,0 +1,12 @@
import { faker } from '@faker-js/faker';
import type { PersonResponseDto } from '@immich/sdk';
import { Sync } from 'factory.ts';
export const personFactory = Sync.makeFactory<PersonResponseDto>({
birthDate: Sync.each(() => faker.date.past().toISOString()),
id: Sync.each(() => faker.string.uuid()),
isHidden: Sync.each(() => faker.datatype.boolean()),
name: Sync.each(() => faker.person.fullName()),
thumbnailPath: Sync.each(() => faker.system.filePath()),
updatedAt: Sync.each(() => faker.date.recent().toISOString()),
});