From cfb53c4a3f41f30ebcf53db4390df86847b9af55 Mon Sep 17 00:00:00 2001
From: Marcel
Date: Fri, 11 Apr 2025 13:28:55 +0200
Subject: [PATCH 1/3] Update url for Matrix Login to match Matrix Spec v1.13
(#5729)
Co-authored-by: Frank Elsinga
---
src/components/notifications/Matrix.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/notifications/Matrix.vue b/src/components/notifications/Matrix.vue
index a9fd63403..60d43cf17 100644
--- a/src/components/notifications/Matrix.vue
+++ b/src/components/notifications/Matrix.vue
@@ -18,7 +18,7 @@
{{ $t("matrixDesc1") }}
- curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/r0/login"
.
+ curl -XPOST -d '{"type": "m.login.password", "identifier": {"user": "botusername", "type": "m.id.user"}, "password": "passwordforuser"}' "https://home.server/_matrix/client/v3/login"
.
From bdf37c5a482b9fad1ef97589dd3d30a38fa6c965 Mon Sep 17 00:00:00 2001
From: lbriceno-tz <141683647+lbriceno-tz@users.noreply.github.com>
Date: Sat, 12 Apr 2025 05:15:28 -0500
Subject: [PATCH 2/3] fix: flat txt records before conditions check (#5768)
---
server/monitor-types/dns.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/server/monitor-types/dns.js b/server/monitor-types/dns.js
index 8b87932fe..5a47e4591 100644
--- a/server/monitor-types/dns.js
+++ b/server/monitor-types/dns.js
@@ -34,12 +34,16 @@ class DnsMonitorType extends MonitorType {
switch (monitor.dns_resolve_type) {
case "A":
case "AAAA":
- case "TXT":
case "PTR":
dnsMessage = `Records: ${dnsRes.join(" | ")}`;
conditionsResult = dnsRes.some(record => handleConditions({ record }));
break;
+ case "TXT":
+ dnsMessage = `Records: ${dnsRes.join(" | ")}`;
+ conditionsResult = dnsRes.flat().some(record => handleConditions({ record }));
+ break;
+
case "CNAME":
dnsMessage = dnsRes[0];
conditionsResult = handleConditions({ record: dnsRes[0] });
From f1baa02d7a339ca33c05e1ec4a44d766a69298be Mon Sep 17 00:00:00 2001
From: Mohit Nagaraj
Date: Sat, 12 Apr 2025 15:56:17 +0530
Subject: [PATCH 3/3] fix: remove modal when navigating back (#5165)
Co-authored-by: deepsource-io[bot] <42547082+deepsource-io[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Frank Elsinga
---
src/components/CreateGroupDialog.vue | 16 ++++++++++++++++
src/components/NotificationDialog.vue | 17 +++++++++++++++++
src/components/ProxyDialog.vue | 19 +++++++++++++++++--
src/components/TagsManager.vue | 16 ++++++++++++++++
4 files changed, 66 insertions(+), 2 deletions(-)
diff --git a/src/components/CreateGroupDialog.vue b/src/components/CreateGroupDialog.vue
index ba7fe6eb7..8bac1ccd0 100644
--- a/src/components/CreateGroupDialog.vue
+++ b/src/components/CreateGroupDialog.vue
@@ -42,6 +42,9 @@ export default {
mounted() {
this.modal = new Modal(this.$refs.modal);
},
+ beforeUnmount() {
+ this.cleanupModal();
+ },
methods: {
/**
* Show the confirm dialog
@@ -58,6 +61,19 @@ export default {
this.$emit("added", this.groupName);
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);
+ }
+ }
+ }
},
};
diff --git a/src/components/NotificationDialog.vue b/src/components/NotificationDialog.vue
index bed841fa5..56cae66c8 100644
--- a/src/components/NotificationDialog.vue
+++ b/src/components/NotificationDialog.vue
@@ -235,6 +235,9 @@ export default {
mounted() {
this.modal = new Modal(this.$refs.modal);
},
+ beforeUnmount() {
+ this.cleanupModal();
+ },
methods: {
/**
@@ -339,6 +342,20 @@ export default {
});
} while (this.$root.notificationList.find(it => it.name === 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);
+ }
+ }
}
},
};
diff --git a/src/components/ProxyDialog.vue b/src/components/ProxyDialog.vue
index fc92359b9..2f7ed7b61 100644
--- a/src/components/ProxyDialog.vue
+++ b/src/components/ProxyDialog.vue
@@ -125,11 +125,12 @@ export default {
}
};
},
-
mounted() {
this.modal = new Modal(this.$refs.modal);
},
-
+ beforeUnmount() {
+ this.cleanupModal();
+ },
methods: {
/**
* 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);
+ }
+ }
+ }
},
};
diff --git a/src/components/TagsManager.vue b/src/components/TagsManager.vue
index a8a96ccbb..aa8f93a83 100644
--- a/src/components/TagsManager.vue
+++ b/src/components/TagsManager.vue
@@ -248,6 +248,9 @@ export default {
this.modal = new Modal(this.$refs.modal);
this.getExistingTags();
},
+ beforeUnmount() {
+ this.cleanupModal();
+ },
methods: {
/**
* Show the add tag dialog
@@ -459,6 +462,19 @@ export default {
this.newTags = [];
this.deleteTags = [];
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);
+ }
+ }
}
},
};