From 0542f0b55678c1b91bd0287ed29e7fb3bf190077 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 14 Jul 2019 19:31:34 +0200 Subject: [PATCH] refactoring lightbox --- backend/model/sql/PersonManager.ts | 2 +- frontend/app/app.module.ts | 2 + .../ui/duplicates/duplicates.component.html | 2 +- .../controls.lightbox.gallery.component.css | 242 ++++++++ .../controls.lightbox.gallery.component.html | 125 ++++ .../controls.lightbox.gallery.component.ts | 343 +++++++++++ .../lightbox/{ => controls}/inputrange.css | 0 .../lightbox/lightbox.gallery.component.html | 133 +---- .../lightbox/lightbox.gallery.component.ts | 543 ++++-------------- 9 files changed, 855 insertions(+), 537 deletions(-) create mode 100644 frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.css create mode 100644 frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.html create mode 100644 frontend/app/ui/gallery/lightbox/controls/controls.lightbox.gallery.component.ts rename frontend/app/ui/gallery/lightbox/{ => controls}/inputrange.css (100%) diff --git a/backend/model/sql/PersonManager.ts b/backend/model/sql/PersonManager.ts index d515445c..f80356c5 100644 --- a/backend/model/sql/PersonManager.ts +++ b/backend/model/sql/PersonManager.ts @@ -54,8 +54,8 @@ export class PersonManager implements IPersonManager { this.samplePhotos[name] = media; } - return this.samplePhotos[name]; + return this.samplePhotos[name]; } async loadAll(): Promise { diff --git a/frontend/app/app.module.ts b/frontend/app/app.module.ts index 3c9e7c7a..5b3fc5a8 100644 --- a/frontend/app/app.module.ts +++ b/frontend/app/app.module.ts @@ -79,6 +79,7 @@ import {FacesService} from './ui/faces/faces.service'; import {FaceComponent} from './ui/faces/face/face.component'; import {VersionService} from './model/version.service'; import { DirectoriesComponent } from './ui/gallery/directories/directories.component'; +import {ControlsLightboxComponent} from './ui/gallery/lightbox/controls/controls.lightbox.gallery.component'; @Injectable() @@ -162,6 +163,7 @@ export function translationsFactory(locale: string) { GalleryPhotoComponent, AdminComponent, InfoPanelLightboxComponent, + ControlsLightboxComponent, RandomQueryBuilderGalleryComponent, // Face FaceComponent, diff --git a/frontend/app/ui/duplicates/duplicates.component.html b/frontend/app/ui/duplicates/duplicates.component.html index c9dcd8e3..9ed2047a 100644 --- a/frontend/app/ui/duplicates/duplicates.component.html +++ b/frontend/app/ui/duplicates/duplicates.component.html @@ -2,7 +2,7 @@
-