make fmt
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
237711f9e6
commit
dab8052b76
|
@ -76,7 +76,7 @@ class Viewer {
|
||||||
|
|
||||||
this.gallery = gallery;
|
this.gallery = gallery;
|
||||||
|
|
||||||
gallery.listen('beforeChange', function() {
|
gallery.listen("beforeChange", function() {
|
||||||
Event.publish("viewer.change", {gallery: gallery, item: gallery.currItem});
|
Event.publish("viewer.change", {gallery: gallery, item: gallery.currItem});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -85,13 +85,13 @@ class Photo extends RestModel {
|
||||||
|
|
||||||
getColor() {
|
getColor() {
|
||||||
switch (this.PhotoColor) {
|
switch (this.PhotoColor) {
|
||||||
case "brown":
|
case "brown":
|
||||||
case "black":
|
case "black":
|
||||||
case "white":
|
case "white":
|
||||||
case "grey":
|
case "grey":
|
||||||
return "grey lighten-2";
|
return "grey lighten-2";
|
||||||
default:
|
default:
|
||||||
return this.PhotoColor + " lighten-4";
|
return this.PhotoColor + " lighten-4";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -92,10 +92,10 @@ class Thumb extends Model {
|
||||||
if (!p.Files) return;
|
if (!p.Files) return;
|
||||||
|
|
||||||
p.Files.forEach((f) => {
|
p.Files.forEach((f) => {
|
||||||
if (f.FileType === "jpg") {
|
if (f.FileType === "jpg") {
|
||||||
result.push(this.fromFile(p, f));
|
result.push(this.fromFile(p, f));
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,8 @@ var QualityBlacklist = map[string]bool{
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
year2008 = time.Date(2008, 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)
|
year2012 = time.Date(2012, 1, 1, 0, 0, 0, 0, time.UTC)
|
||||||
)
|
)
|
||||||
|
|
||||||
// QualityScore returns a score based on photo properties like size and metadata.
|
// QualityScore returns a score based on photo properties like size and metadata.
|
||||||
|
|
Loading…
Reference in a new issue