Frontend: Format code

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-04-19 01:28:35 +02:00
parent a0f94cd88e
commit d05cbf6fde
3 changed files with 25 additions and 25 deletions

View file

@ -119,7 +119,7 @@ class Config {
}
settings() {
return this.values.settings
return this.values.settings;
}
}

View file

@ -36,15 +36,15 @@ class Model {
let val;
if (defaults.hasOwnProperty(key)) {
switch (typeof defaults[key]) {
case "bigint":
case "number":
val = parseFloat(this[key]);
break;
case "boolean":
val = !!this[key];
break;
default:
val = this[key];
case "bigint":
case "number":
val = parseFloat(this[key]);
break;
case "boolean":
val = !!this[key];
break;
default:
val = this[key];
}
} else {
val = this[key];

View file

@ -2,14 +2,14 @@ import RestModel from "model/rest";
import Api from "common/api";
import {DateTime} from "luxon";
const SrcAuto = ""
const SrcManual = "manual"
const SrcLocation = "location"
const SrcImage = "image"
const SrcExif = "exif"
const SrcXmp = "xmp"
const SrcYml = "yml"
const SrcJson = "json"
const SrcAuto = "";
const SrcManual = "manual";
const SrcLocation = "location";
const SrcImage = "image";
const SrcExif = "exif";
const SrcXmp = "xmp";
const SrcYml = "yml";
const SrcJson = "json";
class Photo extends RestModel {
getDefaults() {
@ -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";
}
}