Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-04-25 14:55:26 +02:00
parent 237711f9e6
commit dab8052b76
4 changed files with 13 additions and 13 deletions

View file

@ -76,7 +76,7 @@ class Viewer {
this.gallery = gallery;
gallery.listen('beforeChange', function() {
gallery.listen("beforeChange", function() {
Event.publish("viewer.change", {gallery: gallery, item: gallery.currItem});
});

View file

@ -85,13 +85,13 @@ class Photo extends RestModel {
getColor() {
switch (this.PhotoColor) {
case "brown":
case "black":
case "white":
case "grey":
return "grey lighten-2";
default:
return this.PhotoColor + " lighten-4";
case "brown":
case "black":
case "white":
case "grey":
return "grey lighten-2";
default:
return this.PhotoColor + " lighten-4";
}
}

View file

@ -92,10 +92,10 @@ class Thumb extends Model {
if (!p.Files) return;
p.Files.forEach((f) => {
if (f.FileType === "jpg") {
result.push(this.fromFile(p, f));
}
if (f.FileType === "jpg") {
result.push(this.fromFile(p, f));
}
}
);
});

View file

@ -14,8 +14,8 @@ var QualityBlacklist = map[string]bool{
}
var (
year2008 = time.Date(2008, 1,1,0,0,0,0, time.UTC)
year2012 = time.Date(2012, 1,1,0,0,0,0, time.UTC)
year2008 = time.Date(2008, 1, 1, 0, 0, 0, 0, time.UTC)
year2012 = time.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC)
)
// QualityScore returns a score based on photo properties like size and metadata.