diff --git a/server/model/monitor.js b/server/model/monitor.js index 1667b83a8..80cff6f97 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -1573,7 +1573,7 @@ class Monitor extends BeanModel { } /** - * Unlinks all children of the the group monitor + * Unlinks all children of the group monitor * @param {number} groupID ID of group to remove children of * @returns {Promise} */ diff --git a/server/uptime-calculator.js b/server/uptime-calculator.js index 7b5326748..3735a79a3 100644 --- a/server/uptime-calculator.js +++ b/server/uptime-calculator.js @@ -513,7 +513,7 @@ class UptimeCalculator { /** * Flat status to UP or DOWN - * @param {number} status the status which schould be turned into a flat status + * @param {number} status the status which should be turned into a flat status * @returns {UP|DOWN|PENDING} The flat status * @throws {Error} Invalid status */ @@ -594,7 +594,7 @@ class UptimeCalculator { totalPing += data.avgPing * data.up; } - // Set key to the pervious time period + // Set key to the previous time period switch (type) { case "day": key -= 86400; @@ -721,7 +721,7 @@ class UptimeCalculator { result.push(data); } - // Set key to the pervious time period + // Set key to the previous time period switch (type) { case "day": key -= 86400; diff --git a/src/mixins/socket.js b/src/mixins/socket.js index 0a8001a4d..c3845d34b 100644 --- a/src/mixins/socket.js +++ b/src/mixins/socket.js @@ -323,7 +323,7 @@ export default { }, /** - * Show success or error toast dependant on response status code + * Show success or error toast dependent on response status code * @param {object} res Response object * @returns {void} */ diff --git a/src/pages/Details.vue b/src/pages/Details.vue index 8582b82c2..231870efd 100644 --- a/src/pages/Details.vue +++ b/src/pages/Details.vue @@ -550,7 +550,7 @@ export default { /** * Return the correct title for the ping stat * @param {boolean} average Is the statistic an average? - * @returns {string} Title formatted dependant on monitor type + * @returns {string} Title formatted dependent on monitor type */ pingTitle(average = false) { let translationPrefix = "";