mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 10:48:26 +00:00
Change prettier option trailingComma from "none" to the new default "es5" (see https://prettier.io/docs/en/options.html#trailing-commas)
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -14,7 +14,7 @@ function escapeHtml(text) {
|
||||
"<": "<",
|
||||
">": ">",
|
||||
'"': """,
|
||||
"'": "'"
|
||||
"'": "'",
|
||||
};
|
||||
|
||||
if (text === null) return null;
|
||||
@@ -30,7 +30,7 @@ function unescapeHtml(text) {
|
||||
"<": "<",
|
||||
">": ">",
|
||||
""": '"',
|
||||
"'": "'"
|
||||
"'": "'",
|
||||
};
|
||||
|
||||
if (text === null) return null;
|
||||
@@ -72,7 +72,7 @@ function showAlert(type, icon, title, message) {
|
||||
type: "info",
|
||||
icon: "far fa-clock",
|
||||
title: title,
|
||||
message: message
|
||||
message: message,
|
||||
};
|
||||
info = $.notify(opts);
|
||||
break;
|
||||
@@ -81,7 +81,7 @@ function showAlert(type, icon, title, message) {
|
||||
type: "success",
|
||||
icon: icon,
|
||||
title: title,
|
||||
message: message
|
||||
message: message,
|
||||
};
|
||||
if (info) {
|
||||
info.update(opts);
|
||||
@@ -95,7 +95,7 @@ function showAlert(type, icon, title, message) {
|
||||
type: "warning",
|
||||
icon: "fas fa-exclamation-triangle",
|
||||
title: title,
|
||||
message: message
|
||||
message: message,
|
||||
};
|
||||
if (info) {
|
||||
info.update(opts);
|
||||
@@ -109,7 +109,7 @@ function showAlert(type, icon, title, message) {
|
||||
type: "danger",
|
||||
icon: "fas fa-times",
|
||||
title: " <strong>Error, something went wrong!</strong><br>",
|
||||
message: message
|
||||
message: message,
|
||||
};
|
||||
if (info) {
|
||||
info.update(opts);
|
||||
@@ -284,7 +284,7 @@ function addFromQueryLog(domain, list) {
|
||||
list: list,
|
||||
token: token,
|
||||
action: "replace_domain",
|
||||
comment: "Added from Query Log"
|
||||
comment: "Added from Query Log",
|
||||
},
|
||||
success: function (response) {
|
||||
alProcessing.hide();
|
||||
@@ -314,7 +314,7 @@ function addFromQueryLog(domain, list) {
|
||||
setTimeout(function () {
|
||||
alertModal.modal("hide");
|
||||
}, 8000);
|
||||
}
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
@@ -346,6 +346,6 @@ window.utils = (function () {
|
||||
getGraphType: getGraphType,
|
||||
validateMAC: validateMAC,
|
||||
validateHostname: validateHostname,
|
||||
addFromQueryLog: addFromQueryLog
|
||||
addFromQueryLog: addFromQueryLog,
|
||||
};
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user