mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-18 12:14:41 -05:00
Revert "Replace body and header placeholder functions with translations"
This reverts commit 2c85491ee0
.
This commit is contained in:
parent
2ca7a5b962
commit
9c5466890e
@ -315,8 +315,6 @@ export default {
|
|||||||
"Pick a RR-Type...": "Pick a RR-Type...",
|
"Pick a RR-Type...": "Pick a RR-Type...",
|
||||||
"Pick Accepted Status Codes...": "Pick Accepted Status Codes...",
|
"Pick Accepted Status Codes...": "Pick Accepted Status Codes...",
|
||||||
Default: "Default",
|
Default: "Default",
|
||||||
headersPlaceholder: "Example:\n{\n \"HeaderName\": \"HeaderValue\"\n}",
|
|
||||||
bodyPlaceholder: "Example:\n{\n \"key\": \"value\"\n}",
|
|
||||||
"HTTP Options": "HTTP Options",
|
"HTTP Options": "HTTP Options",
|
||||||
"Create Incident": "Create Incident",
|
"Create Incident": "Create Incident",
|
||||||
Title: "Title",
|
Title: "Title",
|
||||||
|
@ -257,13 +257,13 @@
|
|||||||
<!-- Body -->
|
<!-- Body -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="body" class="form-label">{{ $t("Body") }}</label>
|
<label for="body" class="form-label">{{ $t("Body") }}</label>
|
||||||
<textarea id="body" v-model="monitor.body" class="form-control" :placeholder="$t('bodyPlaceholder')"></textarea>
|
<textarea id="body" v-model="monitor.body" class="form-control" :placeholder="bodyPlaceholder"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Headers -->
|
<!-- Headers -->
|
||||||
<div class="my-3">
|
<div class="my-3">
|
||||||
<label for="headers" class="form-label">{{ $t("Headers") }}</label>
|
<label for="headers" class="form-label">{{ $t("Headers") }}</label>
|
||||||
<textarea id="headers" v-model="monitor.headers" class="form-control" :placeholder="$t('headersPlaceholder')"></textarea>
|
<textarea id="headers" v-model="monitor.headers" class="form-control" :placeholder="headersPlaceholder"></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- HTTP Basic Auth -->
|
<!-- HTTP Basic Auth -->
|
||||||
@ -352,6 +352,20 @@ export default {
|
|||||||
return this.$root.baseURL + "/api/push/" + this.monitor.pushToken + "?msg=OK&ping=";
|
return this.$root.baseURL + "/api/push/" + this.monitor.pushToken + "?msg=OK&ping=";
|
||||||
},
|
},
|
||||||
|
|
||||||
|
bodyPlaceholder() {
|
||||||
|
return `Example:
|
||||||
|
{
|
||||||
|
"key": "value"
|
||||||
|
}`;
|
||||||
|
},
|
||||||
|
|
||||||
|
headersPlaceholder() {
|
||||||
|
return `Example:
|
||||||
|
{
|
||||||
|
"HeaderName": "HeaderValue"
|
||||||
|
}`;
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user