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;
|
||||
|
||||
gallery.listen('beforeChange', function() {
|
||||
gallery.listen("beforeChange", function() {
|
||||
Event.publish("viewer.change", {gallery: gallery, item: gallery.currItem});
|
||||
});
|
||||
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue