mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-07-21 16:44:02 +02:00
Merge branch 'master' into fix/mattermost-provider-no-service-names
This commit is contained in:
commit
d955f76ce7
6 changed files with 72 additions and 4 deletions
|
@ -34,12 +34,16 @@ class DnsMonitorType extends MonitorType {
|
||||||
switch (monitor.dns_resolve_type) {
|
switch (monitor.dns_resolve_type) {
|
||||||
case "A":
|
case "A":
|
||||||
case "AAAA":
|
case "AAAA":
|
||||||
case "TXT":
|
|
||||||
case "PTR":
|
case "PTR":
|
||||||
dnsMessage = `Records: ${dnsRes.join(" | ")}`;
|
dnsMessage = `Records: ${dnsRes.join(" | ")}`;
|
||||||
conditionsResult = dnsRes.some(record => handleConditions({ record }));
|
conditionsResult = dnsRes.some(record => handleConditions({ record }));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "TXT":
|
||||||
|
dnsMessage = `Records: ${dnsRes.join(" | ")}`;
|
||||||
|
conditionsResult = dnsRes.flat().some(record => handleConditions({ record }));
|
||||||
|
break;
|
||||||
|
|
||||||
case "CNAME":
|
case "CNAME":
|
||||||
dnsMessage = dnsRes[0];
|
dnsMessage = dnsRes[0];
|
||||||
conditionsResult = handleConditions({ record: dnsRes[0] });
|
conditionsResult = handleConditions({ record: dnsRes[0] });
|
||||||
|
|
|
@ -42,6 +42,9 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.modal = new Modal(this.$refs.modal);
|
this.modal = new Modal(this.$refs.modal);
|
||||||
},
|
},
|
||||||
|
beforeUnmount() {
|
||||||
|
this.cleanupModal();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* Show the confirm dialog
|
* Show the confirm dialog
|
||||||
|
@ -58,6 +61,19 @@ export default {
|
||||||
this.$emit("added", this.groupName);
|
this.$emit("added", this.groupName);
|
||||||
this.modal.hide();
|
this.modal.hide();
|
||||||
},
|
},
|
||||||
|
/**
|
||||||
|
* Clean up modal and restore scroll behavior
|
||||||
|
* @returns {void}
|
||||||
|
*/
|
||||||
|
cleanupModal() {
|
||||||
|
if (this.modal) {
|
||||||
|
try {
|
||||||
|
this.modal.hide();
|
||||||
|
} catch (e) {
|
||||||
|
console.warn("Modal hide failed:", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -235,6 +235,9 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.modal = new Modal(this.$refs.modal);
|
this.modal = new Modal(this.$refs.modal);
|
||||||
},
|
},
|
||||||
|
beforeUnmount() {
|
||||||
|
this.cleanupModal();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -339,6 +342,20 @@ export default {
|
||||||
});
|
});
|
||||||
} while (this.$root.notificationList.find(it => it.name === name));
|
} while (this.$root.notificationList.find(it => it.name === name));
|
||||||
return name;
|
return name;
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clean up modal and restore scroll behavior
|
||||||
|
* @returns {void}
|
||||||
|
*/
|
||||||
|
cleanupModal() {
|
||||||
|
if (this.modal) {
|
||||||
|
try {
|
||||||
|
this.modal.hide();
|
||||||
|
} catch (e) {
|
||||||
|
console.warn("Modal hide failed:", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -125,11 +125,12 @@ export default {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
this.modal = new Modal(this.$refs.modal);
|
this.modal = new Modal(this.$refs.modal);
|
||||||
},
|
},
|
||||||
|
beforeUnmount() {
|
||||||
|
this.cleanupModal();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* Show dialog to confirm deletion
|
* Show dialog to confirm deletion
|
||||||
|
@ -209,6 +210,20 @@ export default {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clean up modal and restore scroll behavior
|
||||||
|
* @returns {void}
|
||||||
|
*/
|
||||||
|
cleanupModal() {
|
||||||
|
if (this.modal) {
|
||||||
|
try {
|
||||||
|
this.modal.hide();
|
||||||
|
} catch (e) {
|
||||||
|
console.warn("Modal hide failed:", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -248,6 +248,9 @@ export default {
|
||||||
this.modal = new Modal(this.$refs.modal);
|
this.modal = new Modal(this.$refs.modal);
|
||||||
this.getExistingTags();
|
this.getExistingTags();
|
||||||
},
|
},
|
||||||
|
beforeUnmount() {
|
||||||
|
this.cleanupModal();
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
* Show the add tag dialog
|
* Show the add tag dialog
|
||||||
|
@ -459,6 +462,19 @@ export default {
|
||||||
this.newTags = [];
|
this.newTags = [];
|
||||||
this.deleteTags = [];
|
this.deleteTags = [];
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* Clean up modal and restore scroll behavior
|
||||||
|
* @returns {void}
|
||||||
|
*/
|
||||||
|
cleanupModal() {
|
||||||
|
if (this.modal) {
|
||||||
|
try {
|
||||||
|
this.modal.hide();
|
||||||
|
} catch (e) {
|
||||||
|
console.warn("Modal hide failed:", e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
{{ $t("matrixDesc1") }}
|
{{ $t("matrixDesc1") }}
|
||||||
</p>
|
</p>
|
||||||
<i18n-t tag="p" keypath="matrixDesc2" style="margin-top: 8px;">
|
<i18n-t tag="p" keypath="matrixDesc2" style="margin-top: 8px;">
|
||||||
<code>curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/r0/login"</code>.
|
<code>curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/v3/login"</code>.
|
||||||
</i18n-t>
|
</i18n-t>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
Loading…
Add table
Reference in a new issue