1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

updating packages

This commit is contained in:
Braun Patrik 2016-07-03 15:41:12 +02:00
parent 8b52b2a4e8
commit 83d1d52813
3 changed files with 24 additions and 22 deletions

View File

@ -43,7 +43,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
} }
ngOnChanges() { ngOnChanges() {
if (this.isAfterViewInit == false) { if (this.isAfterViewInit === false) {
return; return;
} }
this.sortPhotos(); this.sortPhotos();
@ -55,7 +55,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
@HostListener('window:resize') @HostListener('window:resize')
onResize() { onResize() {
if (this.isAfterViewInit == false) { if (this.isAfterViewInit === false) {
return; return;
} }
this.sortPhotos(); this.sortPhotos();
@ -113,7 +113,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
lastSameIndex = i; lastSameIndex = i;
lastRowId = this.photosToRender[i].rowId; lastRowId = this.photosToRender[i].rowId;
} }
if (this.photosToRender[i].equals(this.photos[i]) == false) { if (this.photosToRender[i].equals(this.photos[i]) === false) {
break; break;
} }
} }
@ -167,7 +167,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
* @returns {boolean} * @returns {boolean}
*/ */
private shouldRenderMore(offset:number = 0):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.scrollTop >= (document.body.clientHeight + offset - window.innerHeight) * 0.7
|| (document.body.clientHeight + offset) * 0.85 < window.innerHeight; || (document.body.clientHeight + offset) * 0.85 < window.innerHeight;
@ -177,7 +177,7 @@ export class GalleryGridComponent implements OnChanges,AfterViewInit {
onScroll() { onScroll() {
this.renderPhotos(); this.renderPhotos();
if (Config.Client.enableOnScrollThumbnailPrioritising == true) { if (Config.Client.enableOnScrollThumbnailPrioritising === true) {
this.gridPhotoQL.toArray().forEach((pc:GalleryPhotoComponent) => { this.gridPhotoQL.toArray().forEach((pc:GalleryPhotoComponent) => {
pc.onScroll(); pc.onScroll();
}); });

View File

@ -127,7 +127,7 @@ export class GalleryPhotoComponent implements IRenderable, OnInit, AfterViewInit
let isInView = this.isInView(); let isInView = this.isInView();
if (this.wasInView != isInView) { if (this.wasInView != isInView) {
this.wasInView = isInView; this.wasInView = isInView;
if (isInView == true) { if (isInView === true) {
if (this.gridPhoto.isReplacementThumbnailAvailable()) { if (this.gridPhoto.isReplacementThumbnailAvailable()) {
this.thumbnailTask.priority = ThumbnailLoadingPriority.medium; this.thumbnailTask.priority = ThumbnailLoadingPriority.medium;
} else { } else {

View File

@ -21,16 +21,18 @@
"url": "https://github.com/bpatrik/PiGallery2/issues" "url": "https://github.com/bpatrik/PiGallery2/issues"
}, },
"dependencies": { "dependencies": {
"@angular/common": "2.0.0-rc.3", "@angular/http": "2.0.0-rc.4",
"@angular/compiler": "2.0.0-rc.3", "@angular/common": "2.0.0-rc.4",
"@angular/core": "2.0.0-rc.3", "@angular/compiler": "2.0.0-rc.4",
"@angular/http": "2.0.0-rc.3", "@angular/core": "2.0.0-rc.4",
"@angular/platform-browser": "2.0.0-rc.3", "@angular/forms": "^0.2.0",
"@angular/platform-browser-dynamic": "2.0.0-rc.3", "@angular/platform-browser": "2.0.0-rc.4",
"@angular/platform-server": "2.0.0-rc.3", "@angular/platform-browser-dynamic": "2.0.0-rc.4",
"@angular/router": "2.0.0-rc.2", "@angular/platform-server": "2.0.0-rc.4",
"@angular/router": "3.0.0-beta.2",
"@angular/router-deprecated": "2.0.0-rc.2", "@angular/router-deprecated": "2.0.0-rc.2",
"body-parser": "^1.15.1", "body-parser": "^1.15.2",
"chai": "^3.5.0", "chai": "^3.5.0",
"compression-webpack-plugin": "^0.3.0", "compression-webpack-plugin": "^0.3.0",
"core-js": "^2.4.0", "core-js": "^2.4.0",
@ -42,9 +44,9 @@
"exports-loader": "^0.6.3", "exports-loader": "^0.6.3",
"expose-loader": "^0.7.1", "expose-loader": "^0.7.1",
"express": "^4.14.0", "express": "^4.14.0",
"express-session": "^1.13.0", "express-session": "^1.14.0",
"file-loader": "^0.8.5", "file-loader": "^0.8.5",
"html-webpack-plugin": "^2.21.0", "html-webpack-plugin": "^2.22.0",
"ie-shim": "^0.1.0", "ie-shim": "^0.1.0",
"imports-loader": "^0.6.5", "imports-loader": "^0.6.5",
"istanbul-instrumenter-loader": "^0.2.0", "istanbul-instrumenter-loader": "^0.2.0",
@ -56,7 +58,7 @@
"karma-coveralls": "^1.1.2", "karma-coveralls": "^1.1.2",
"karma-jasmine": "^1.0.2", "karma-jasmine": "^1.0.2",
"karma-mocha-reporter": "^2.0.4", "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-sourcemap-loader": "^0.3.7",
"karma-webpack": "1.7.0", "karma-webpack": "1.7.0",
"mime": "^1.3.4", "mime": "^1.3.4",
@ -76,11 +78,11 @@
"style-loader": "^0.13.0", "style-loader": "^0.13.0",
"ts-helpers": "1.1.1", "ts-helpers": "1.1.1",
"ts-loader": "^0.8.2", "ts-loader": "^0.8.2",
"tslint": "^3.11.0", "tslint": "^3.13.0",
"tslint-loader": "^2.1.3", "tslint-loader": "^2.1.5",
"typedoc": "^0.4.3", "typedoc": "^0.4.4",
"typescript": "^1.8.10", "typescript": "^1.8.10",
"typings": "^1.3.0", "typings": "^1.3.1",
"url-loader": "^0.5.7", "url-loader": "^0.5.7",
"webpack": "^1.13.1", "webpack": "^1.13.1",
"zone.js": "^0.6.12" "zone.js": "^0.6.12"