mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-25 02:04:15 +02:00
updating packages
This commit is contained in:
parent
8b52b2a4e8
commit
83d1d52813
@ -43,7 +43,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
|
||||
}
|
||||
|
||||
ngOnChanges() {
|
||||
if (this.isAfterViewInit == false) {
|
||||
if (this.isAfterViewInit === false) {
|
||||
return;
|
||||
}
|
||||
this.sortPhotos();
|
||||
@ -55,7 +55,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
|
||||
|
||||
@HostListener('window:resize')
|
||||
onResize() {
|
||||
if (this.isAfterViewInit == false) {
|
||||
if (this.isAfterViewInit === false) {
|
||||
return;
|
||||
}
|
||||
this.sortPhotos();
|
||||
@ -113,7 +113,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
|
||||
lastSameIndex = i;
|
||||
lastRowId = this.photosToRender[i].rowId;
|
||||
}
|
||||
if (this.photosToRender[i].equals(this.photos[i]) == false) {
|
||||
if (this.photosToRender[i].equals(this.photos[i]) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -167,7 +167,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
private shouldRenderMore(offset:number = 0):boolean {
|
||||
return Config.Client.enableOnScrollRendering == false ||
|
||||
return Config.Client.enableOnScrollRendering === false ||
|
||||
document.body.scrollTop >= (document.body.clientHeight + offset - window.innerHeight) * 0.7
|
||||
|| (document.body.clientHeight + offset) * 0.85 < window.innerHeight;
|
||||
|
||||
@ -177,7 +177,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
|
||||
onScroll() {
|
||||
this.renderPhotos();
|
||||
|
||||
if (Config.Client.enableOnScrollThumbnailPrioritising == true) {
|
||||
if (Config.Client.enableOnScrollThumbnailPrioritising === true) {
|
||||
this.gridPhotoQL.toArray().forEach((pc:GalleryPhotoComponent) => {
|
||||
pc.onScroll();
|
||||
});
|
||||
|
@ -127,7 +127,7 @@ export class GalleryPhotoComponent implements IRenderable, OnInit, AfterViewInit
|
||||
let isInView = this.isInView();
|
||||
if (this.wasInView != isInView) {
|
||||
this.wasInView = isInView;
|
||||
if (isInView == true) {
|
||||
if (isInView === true) {
|
||||
if (this.gridPhoto.isReplacementThumbnailAvailable()) {
|
||||
this.thumbnailTask.priority = ThumbnailLoadingPriority.medium;
|
||||
} else {
|
||||
|
34
package.json
34
package.json
@ -21,16 +21,18 @@
|
||||
"url": "https://github.com/bpatrik/PiGallery2/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@angular/common": "2.0.0-rc.3",
|
||||
"@angular/compiler": "2.0.0-rc.3",
|
||||
"@angular/core": "2.0.0-rc.3",
|
||||
"@angular/http": "2.0.0-rc.3",
|
||||
"@angular/platform-browser": "2.0.0-rc.3",
|
||||
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||
"@angular/platform-server": "2.0.0-rc.3",
|
||||
"@angular/router": "2.0.0-rc.2",
|
||||
"@angular/http": "2.0.0-rc.4",
|
||||
"@angular/common": "2.0.0-rc.4",
|
||||
"@angular/compiler": "2.0.0-rc.4",
|
||||
"@angular/core": "2.0.0-rc.4",
|
||||
"@angular/forms": "^0.2.0",
|
||||
"@angular/platform-browser": "2.0.0-rc.4",
|
||||
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
|
||||
"@angular/platform-server": "2.0.0-rc.4",
|
||||
"@angular/router": "3.0.0-beta.2",
|
||||
|
||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||
"body-parser": "^1.15.1",
|
||||
"body-parser": "^1.15.2",
|
||||
"chai": "^3.5.0",
|
||||
"compression-webpack-plugin": "^0.3.0",
|
||||
"core-js": "^2.4.0",
|
||||
@ -42,9 +44,9 @@
|
||||
"exports-loader": "^0.6.3",
|
||||
"expose-loader": "^0.7.1",
|
||||
"express": "^4.14.0",
|
||||
"express-session": "^1.13.0",
|
||||
"express-session": "^1.14.0",
|
||||
"file-loader": "^0.8.5",
|
||||
"html-webpack-plugin": "^2.21.0",
|
||||
"html-webpack-plugin": "^2.22.0",
|
||||
"ie-shim": "^0.1.0",
|
||||
"imports-loader": "^0.6.5",
|
||||
"istanbul-instrumenter-loader": "^0.2.0",
|
||||
@ -56,7 +58,7 @@
|
||||
"karma-coveralls": "^1.1.2",
|
||||
"karma-jasmine": "^1.0.2",
|
||||
"karma-mocha-reporter": "^2.0.4",
|
||||
"karma-phantomjs-launcher": "^1.0.0",
|
||||
"karma-phantomjs-launcher": "^1.0.1",
|
||||
"karma-sourcemap-loader": "^0.3.7",
|
||||
"karma-webpack": "1.7.0",
|
||||
"mime": "^1.3.4",
|
||||
@ -76,11 +78,11 @@
|
||||
"style-loader": "^0.13.0",
|
||||
"ts-helpers": "1.1.1",
|
||||
"ts-loader": "^0.8.2",
|
||||
"tslint": "^3.11.0",
|
||||
"tslint-loader": "^2.1.3",
|
||||
"typedoc": "^0.4.3",
|
||||
"tslint": "^3.13.0",
|
||||
"tslint-loader": "^2.1.5",
|
||||
"typedoc": "^0.4.4",
|
||||
"typescript": "^1.8.10",
|
||||
"typings": "^1.3.0",
|
||||
"typings": "^1.3.1",
|
||||
"url-loader": "^0.5.7",
|
||||
"webpack": "^1.13.1",
|
||||
"zone.js": "^0.6.12"
|
||||
|
Loading…
Reference in New Issue
Block a user