More eslint tweaks

This commit is contained in:
David Carley
2022-09-07 17:51:16 +00:00
parent 051e712b53
commit f91dc1d756
26 changed files with 312 additions and 301 deletions

View File

@@ -39,7 +39,7 @@ function uuid(length) {
return s;
}
window.onload = function () {
window.onload = function() {
if (typeof cookie_get("client-id") == "undefined") {
cookie_set("client-id", uuid(), 10000);
}
@@ -52,7 +52,7 @@ window.onload = function () {
Vue.component("console", require("./console"));
Vue.component("unit-value", require("./unit-value"));
Vue.filter("number", function (value) {
Vue.filter("number", function(value) {
if (isNaN(value)) {
return "NaN";
}
@@ -60,7 +60,7 @@ window.onload = function () {
return value.toLocaleString();
});
Vue.filter("percent", function (value, precision) {
Vue.filter("percent", function(value, precision) {
if (typeof value == "undefined") {
return "";
}
@@ -72,7 +72,7 @@ window.onload = function () {
return `${(value * 100.0).toFixed(precision)}%`;
});
Vue.filter("non_zero_percent", function (value, precision) {
Vue.filter("non_zero_percent", function(value, precision) {
if (!value) {
return "";
}
@@ -84,7 +84,7 @@ window.onload = function () {
return `${(value * 100.0).toFixed(precision)}%`;
});
Vue.filter("fixed", function (value, precision) {
Vue.filter("fixed", function(value, precision) {
if (typeof value == "undefined") {
return "0";
}
@@ -92,7 +92,7 @@ window.onload = function () {
return parseFloat(value).toFixed(precision);
});
Vue.filter("upper", function (value) {
Vue.filter("upper", function(value) {
if (typeof value == "undefined") {
return "";
}
@@ -100,7 +100,7 @@ window.onload = function () {
return value.toUpperCase();
});
Vue.filter("time", function (value, precision) {
Vue.filter("time", function(value, precision) {
if (isNaN(value)) {
return "";
}