mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
fixes: formatting and security issues
Co-authored-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
fb059f5e91
commit
93c51504f9
3 changed files with 7 additions and 6 deletions
|
@ -14,11 +14,11 @@ class Pushdeer extends NotificationProvider {
|
||||||
|
|
||||||
let title;
|
let title;
|
||||||
if (valid && heartbeatJSON.status == UP) {
|
if (valid && heartbeatJSON.status == UP) {
|
||||||
title = "## UptimeKuma: " + monitorJSON.name + " up";
|
title = "## Uptime Kuma: " + monitorJSON.name + " up";
|
||||||
} else if (valid && heartbeatJSON.status == DOWN) {
|
} else if (valid && heartbeatJSON.status == DOWN) {
|
||||||
title = "## UptimeKuma: " + monitorJSON.name + " down";
|
title = "## Uptime Kuma: " + monitorJSON.name + " down";
|
||||||
} else {
|
} else {
|
||||||
title = "## UptimeKuma Message";
|
title = "## Uptime Kuma Message";
|
||||||
}
|
}
|
||||||
|
|
||||||
let data = {
|
let data = {
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="pushdeer-key" class="form-label">Pushdeer Key</label>
|
<label for="pushdeer-key" class="form-label">{{ $t("Pushdeer Key") }}</label>
|
||||||
<HiddenInput id="pushdeer-key" v-model="$parent.notification.pushdeerKey" :required="true" autocomplete="one-time-code" placeholder="PDUxxxx"></HiddenInput>
|
<HiddenInput id="pushdeer-key" v-model="$parent.notification.pushdeerKey" :required="true" autocomplete="one-time-code" placeholder="PDUxxxx"></HiddenInput>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<i18n-t tag="p" keypath="More info on:" style="margin-top: 8px;">
|
<i18n-t tag="p" keypath="More info on:" style="margin-top: 8px;">
|
||||||
<a href="http://www.pushdeer.com/" target="_blank">http://www.pushdeer.com/</a>
|
<a href="http://www.pushdeer.com/" rel="noopener noreferrer" target="_blank">http://www.pushdeer.com/</a>
|
||||||
</i18n-t>
|
</i18n-t>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -16,4 +16,4 @@ export default {
|
||||||
HiddenInput,
|
HiddenInput,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -451,4 +451,5 @@ export default {
|
||||||
onebotPrivateMessage: "Private",
|
onebotPrivateMessage: "Private",
|
||||||
onebotUserOrGroupId: "Group/User ID",
|
onebotUserOrGroupId: "Group/User ID",
|
||||||
onebotSafetyTips: "For safety, must set access token",
|
onebotSafetyTips: "For safety, must set access token",
|
||||||
|
"Pushdeer Key": "Pushdeer Key",
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue