mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
fixing directory preview image
This commit is contained in:
parent
c98429a133
commit
25d145b849
3
.gitignore
vendored
3
.gitignore
vendored
@ -12,6 +12,8 @@ common/**/*.js.map
|
|||||||
test/coverage
|
test/coverage
|
||||||
test/backend/**/*.js
|
test/backend/**/*.js
|
||||||
test/backend/**/*.js.map
|
test/backend/**/*.js.map
|
||||||
|
test/common/**/*.js
|
||||||
|
test/common/**/*.js.map
|
||||||
test/e2e/**/*.js
|
test/e2e/**/*.js
|
||||||
test/e2e/**/*.js.map
|
test/e2e/**/*.js.map
|
||||||
demo/TEMP/
|
demo/TEMP/
|
||||||
@ -20,3 +22,4 @@ users.db
|
|||||||
sqlite.db
|
sqlite.db
|
||||||
dist/
|
dist/
|
||||||
release/
|
release/
|
||||||
|
out-tsc/
|
||||||
|
@ -162,8 +162,6 @@ export class AuthenticationMWs {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(sharing);
|
|
||||||
|
|
||||||
if (Config.Client.Sharing.passwordProtected === true && (sharing.password)) {
|
if (Config.Client.Sharing.passwordProtected === true && (sharing.password)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<div class="photo-container"
|
<div class="photo-container"
|
||||||
[style.width.px]="calcSize()"
|
[style.width.px]="calcSize()"
|
||||||
[style.height.px]="calcSize()">
|
[style.height.px]="calcSize()">
|
||||||
<div [class]="'photo ' + (SamplePhoto ? 'photo-orientation-'+SamplePhoto.metadata.orientation : '')"
|
<div [ngClass]="'photo ' + (SamplePhoto ? 'photo-orientation-'+SamplePhoto.metadata.orientation : '')"
|
||||||
*ngIf="thumbnail && thumbnail.Available"
|
*ngIf="thumbnail && thumbnail.Available"
|
||||||
[style.background-image]="getSanitizedThUrl()"></div>
|
[style.background-image]="getSanitizedThUrl()"></div>
|
||||||
|
|
||||||
|
@ -37,8 +37,11 @@ export class GalleryDirectoryComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getSanitizedThUrl() {
|
getSanitizedThUrl() {
|
||||||
return this._sanitizer.bypassSecurityTrustStyle('url(' + encodeURI(this.thumbnail.Src).replace(/\(/g, '%28')
|
return this._sanitizer.bypassSecurityTrustStyle('url(' +
|
||||||
.replace(/\)/g, '%29') + ')');
|
encodeURI(this.thumbnail.Src)
|
||||||
|
.replace(/\(/g, '%28')
|
||||||
|
.replace(/'/g, '%27')
|
||||||
|
.replace(/\)/g, '%29') + ')');
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: implement scroll
|
// TODO: implement scroll
|
||||||
|
Loading…
Reference in New Issue
Block a user