mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-26 14:09:45 -08:00
Delinting
This commit is contained in:
parent
23736549f9
commit
0dcb7aed21
|
@ -87,9 +87,9 @@ class Monitor extends BeanModel {
|
|||
* for HTTP "basic" auth, as per RFC-7617
|
||||
* @returns {string}
|
||||
*/
|
||||
encodeB64(user, pass) {
|
||||
encodeB64(user, pass) {
|
||||
return btoa(user + ":" + pass);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Parse to boolean
|
||||
|
@ -157,7 +157,7 @@ class Monitor extends BeanModel {
|
|||
if (this.basicauth_user) {
|
||||
basicauthHeader = {
|
||||
"Authorization": "Basic " + this.encodeB64(this.basicauth_user, this.basicauth_pass)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
const options = {
|
||||
|
|
|
@ -266,7 +266,7 @@
|
|||
<textarea id="headers" v-model="monitor.headers" class="form-control" :placeholder="headersPlaceholder"></textarea>
|
||||
</div>
|
||||
|
||||
<!-- HTTP Basic Auth -->
|
||||
<!-- HTTP Basic Auth -->
|
||||
<h4 class="mt-5 mb-2">{{ $t("HTTP Basic Auth") }}</h4>
|
||||
<div class="my-3">
|
||||
<label for="basicauth" class="form-label">{{ $t("Username") }}</label>
|
||||
|
@ -496,7 +496,6 @@ export default {
|
|||
this.monitor.headers = JSON.stringify(JSON.parse(this.monitor.headers), null, 4);
|
||||
}
|
||||
|
||||
|
||||
if (this.isAdd) {
|
||||
this.$root.add(this.monitor, async (res) => {
|
||||
|
||||
|
|
Loading…
Reference in a new issue