diff --git a/frontend/app/gallery/gallery.component.ts b/frontend/app/gallery/gallery.component.ts index 8d4145c..b2a6b3e 100644 --- a/frontend/app/gallery/gallery.component.ts +++ b/frontend/app/gallery/gallery.component.ts @@ -3,7 +3,6 @@ import {AuthenticationService} from '../model/network/authentication.service'; import {ActivatedRoute, Params, Router} from '@angular/router'; import {GalleryService} from './gallery.service'; import {GalleryGridComponent} from './grid/grid.gallery.component'; -import {GallerySearchComponent} from './search/search.gallery.component'; import {SearchTypes} from '../../../common/entities/AutoCompleteItem'; import {Config} from '../../../common/config/public/Config'; import {DirectoryDTO} from '../../../common/entities/DirectoryDTO'; diff --git a/frontend/app/gallery/lightbox/lightbox.gallery.component.ts b/frontend/app/gallery/lightbox/lightbox.gallery.component.ts index 4a86d78..ce1c285 100644 --- a/frontend/app/gallery/lightbox/lightbox.gallery.component.ts +++ b/frontend/app/gallery/lightbox/lightbox.gallery.component.ts @@ -104,7 +104,7 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit { this.onNavigateTo(params[QueryParams.gallery.photo]); } else if (this.status === LightboxStates.Open) { this.delayedMediaShow = null; - this.hideLigthbox(); + this.hideLightbox(); } }); } @@ -391,7 +391,6 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit { this.showPhoto(this.gridPhotoQL.toArray().indexOf(selectedPhoto), false); } - //noinspection JSUnusedGlobalSymbols @HostListener('window:keydown', ['$event']) onKeyPress(e: KeyboardEvent) { if (this.status !== LightboxStates.Open) { @@ -454,7 +453,7 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit { {queryParams: this.queryService.getParams()}).catch(console.error); } - private hideLigthbox() { + private hideLightbox() { this.Zoom = 1; this.controllersVisible = false; this.status = LightboxStates.Closing; @@ -487,9 +486,9 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit { animatePhoto(from: Dimension, to: Dimension = from): AnimationPlayer { const elem = this._builder.build([ - style(Dimension.toString(from)), + style(Dimension.toString(from)), animate(300, - style(Dimension.toString(to))) + style(Dimension.toString(to))) ]) .create(this.mediaElement.elementRef.nativeElement); elem.play(); @@ -503,9 +502,9 @@ export class GalleryLightboxComponent implements OnDestroy, OnInit { height: this.getPhotoFrameHeight() }, to: Dimension = from): AnimationPlayer { const elem = this._builder.build([ - style(Dimension.toString(from)), + style(Dimension.toString(from)), animate(300, - style(Dimension.toString(to))) + style(Dimension.toString(to))) ]) .create(this.lightboxElement.nativeElement); elem.play(); diff --git a/frontend/app/gallery/lightbox/media/media.lightbox.gallery.component.html b/frontend/app/gallery/lightbox/media/media.lightbox.gallery.component.html index 16d3f65..0cee098 100644 --- a/frontend/app/gallery/lightbox/media/media.lightbox.gallery.component.html +++ b/frontend/app/gallery/lightbox/media/media.lightbox.gallery.component.html @@ -5,7 +5,7 @@ [style.transform]="ImageTransform" [src]="thumbnailSrc"/> - - diff --git a/frontend/app/gallery/map/lightbox/lightbox.map.gallery.component.ts b/frontend/app/gallery/map/lightbox/lightbox.map.gallery.component.ts index 45cb3e5..e78207c 100644 --- a/frontend/app/gallery/map/lightbox/lightbox.map.gallery.component.ts +++ b/frontend/app/gallery/map/lightbox/lightbox.map.gallery.component.ts @@ -220,7 +220,6 @@ export class GalleryMapLightboxComponent implements OnChanges, AfterViewInit { return window.innerHeight; } - //noinspection JSUnusedGlobalSymbols @HostListener('window:keydown', ['$event']) onKeyPress(e: KeyboardEvent) { if (this.visible !== true) {