mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 07:14:04 +00:00
fix(edit-monitor): no need to escape placeholder {} if not translated
This commit is contained in:
parent
176fa6b60d
commit
61627545a5
2 changed files with 3 additions and 11 deletions
|
@ -203,7 +203,5 @@ export default {
|
||||||
Headers: "Headers",
|
Headers: "Headers",
|
||||||
PushUrl: "Push URL",
|
PushUrl: "Push URL",
|
||||||
HeadersInvalidFormat: "The request headers is geen geldige JSON: ",
|
HeadersInvalidFormat: "The request headers is geen geldige JSON: ",
|
||||||
BodyInvalidFormat: "De request body is geen geldige JSON: ",
|
BodyInvalidFormat: "De request body is geen geldige JSON: "
|
||||||
BodyPlaceholder: "{\n\t\"id\": 124357,\n\t\"gebruikersnaam\": \"admin\",\n\t\"wachtwoord\": \"mijnAdminWachtwoord\"\n}",
|
|
||||||
HeadersPlaceholder: "{\n\t\"Authorization\": \"Bearer abc123\",\n\t\"Content-Type\": \"application/json\"\n}",
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -335,11 +335,11 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
bodyPlaceholder() {
|
bodyPlaceholder() {
|
||||||
return this.decodeHtml("{\n\t\"id\": 124357,\n\t\"username\": \"admin\",\n\t\"password\": \"myAdminPassword\"\n}");
|
return "{\n\t\"id\": 124357,\n\t\"username\": \"admin\",\n\t\"password\": \"myAdminPassword\"\n}";
|
||||||
},
|
},
|
||||||
|
|
||||||
headersPlaceholder() {
|
headersPlaceholder() {
|
||||||
return this.decodeHtml("{\n\t\"Authorization\": \"Bearer abc123\",\n\t\"Content-Type\": \"application/json\"\n}");
|
return "{\n\t\"Authorization\": \"Bearer abc123\",\n\t\"Content-Type\": \"application/json\"\n}";
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
@ -508,12 +508,6 @@ export default {
|
||||||
addedNotification(id) {
|
addedNotification(id) {
|
||||||
this.monitor.notificationIDList[id] = true;
|
this.monitor.notificationIDList[id] = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
decodeHtml(html) {
|
|
||||||
const txt = document.createElement("textarea");
|
|
||||||
txt.innerHTML = html;
|
|
||||||
return txt.value;
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in a new issue