Frontend: Format code
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
a0f94cd88e
commit
d05cbf6fde
3 changed files with 25 additions and 25 deletions
|
@ -119,7 +119,7 @@ class Config {
|
|||
}
|
||||
|
||||
settings() {
|
||||
return this.values.settings
|
||||
return this.values.settings;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue