diff --git a/db/knex_migrations/2024-10-31-0000-fix-snmp-monitor.js b/db/knex_migrations/2024-10-31-0000-fix-snmp-monitor.js index 0a605d38f..7b070ace9 100644 --- a/db/knex_migrations/2024-10-31-0000-fix-snmp-monitor.js +++ b/db/knex_migrations/2024-10-31-0000-fix-snmp-monitor.js @@ -3,5 +3,5 @@ exports.up = function (knex) { }; exports.down = function (knex) { // changing the json_path_operator back to null for all "==" is not possible anymore - // we have lost the context which fields have been set explicitely in >= v2.0 and which would need to be reverted + // we have lost the context which fields have been set explicitly in >= v2.0 and which would need to be reverted }; diff --git a/db/knex_migrations/2025-02-17-2142-generalize-analytics.js b/db/knex_migrations/2025-02-17-2142-generalize-analytics.js index 3a8713235..e172eb8d7 100644 --- a/db/knex_migrations/2025-02-17-2142-generalize-analytics.js +++ b/db/knex_migrations/2025-02-17-2142-generalize-analytics.js @@ -1,4 +1,4 @@ -// Udpate status_page table to generalize analytics fields +// Update status_page table to generalize analytics fields exports.up = function (knex) { return knex.schema .alterTable("status_page", function (table) { @@ -7,7 +7,7 @@ exports.up = function (knex) { table.enu("analytics_type", ["google", "umami", "plausible", "matomo"]).defaultTo(null); }) .then(() => { - // After a succesful migration, add google as default for previous pages + // After a successful migration, add google as default for previous pages knex("status_page").whereNotNull("analytics_id").update({ analytics_type: "google", }); diff --git a/src/assets/app.scss b/src/assets/app.scss index 5f2b06c20..37fc4504a 100644 --- a/src/assets/app.scss +++ b/src/assets/app.scss @@ -619,7 +619,7 @@ h5.settings-subheading::after { /* required class */ .code-editor, .css-editor { - /* we dont use `language-` classes anymore so thats why we need to add background and text color manually */ + /* we dont use `language-` classes anymore so that's why we need to add background and text color manually */ border-radius: 1rem; padding: 10px 5px; diff --git a/src/components/notifications/TechulusPush.vue b/src/components/notifications/TechulusPush.vue index d3a80111f..ca7e3cd47 100644 --- a/src/components/notifications/TechulusPush.vue +++ b/src/components/notifications/TechulusPush.vue @@ -21,7 +21,7 @@ v-model="$parent.notification.pushChannel" type="text" class="form-control" - patttern="[A-Za-z0-9-]+" + pattern="[A-Za-z0-9-]+" />
{{ $t("Alphanumerical string and hyphens only") }} diff --git a/src/mixins/socket.js b/src/mixins/socket.js index 00574af3b..fc81d64f8 100644 --- a/src/mixins/socket.js +++ b/src/mixins/socket.js @@ -660,7 +660,7 @@ export default { }, /** - * Clear the hearbeat list + * Clear the heartbeat list * @returns {void} */ clearData() { diff --git a/src/pages/EditMaintenance.vue b/src/pages/EditMaintenance.vue index f41f29923..4376d6c79 100644 --- a/src/pages/EditMaintenance.vue +++ b/src/pages/EditMaintenance.vue @@ -806,7 +806,7 @@ export default { * @returns {void} */ submit() { - // While unusual, not requiring montiors can allow showing on status pages if a "currently unmonitored" service goes down + // While unusual, not requiring monitors can allow showing on status pages if a "currently unmonitored" service goes down if (!this.hasMonitors && this.hasStatusPages) { this.$refs.confirmNoMonitors.show(); return; diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 8afd09bfa..935860ad1 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -3550,11 +3550,11 @@ message HealthCheckResponse { }, // Filter result by active state, weight and alphabetical - // Only return groups which arent't itself and one of its decendants + // Only return groups which arent't itself and one of its descendants sortedGroupMonitorList() { let result = Object.values(this.$root.monitorList); - // Only groups, not itself, not a decendant + // Only groups, not itself, not a descendant result = result.filter( (monitor) => monitor.type === "group" && diff --git a/test/backend-test/check-translations.test.js b/test/backend-test/check-translations.test.js index 6b60a5fd6..d5920e2be 100644 --- a/test/backend-test/check-translations.test.js +++ b/test/backend-test/check-translations.test.js @@ -61,7 +61,7 @@ describe("Check Translations", () => { it("should not have missing translation keys", async () => { const enTranslations = JSON.parse(await fs.readFile("src/lang/en.json", "utf-8")); - // this is a resonably crude check, you can get around this trivially + // this is a reasonably crude check, you can get around this trivially /// this check is just to save on maintainer energy to explain this on every review ^^ const translationRegex = /\$t\(['"](?.*?)['"]\s*[,)]|i18n-t[^>]*\s+keypath="(?[^"]+)"/dg; diff --git a/test/backend-test/monitors/test-websocket.js b/test/backend-test/monitors/test-websocket.js index 5ae6b340e..759d07f87 100644 --- a/test/backend-test/monitors/test-websocket.js +++ b/test/backend-test/monitors/test-websocket.js @@ -7,7 +7,7 @@ const net = require("node:net"); const http = require("node:http"); /** - * Simulates non compliant WS Server, doesnt send Sec-WebSocket-Accept header + * Simulates non compliant WS Server, doesn't send Sec-WebSocket-Accept header * @returns {Promise<{server: net.Server, port: number}>} Promise that resolves to the created server and its port */ function nonCompliantWS() { diff --git a/test/e2e/specs/status-page.spec.js b/test/e2e/specs/status-page.spec.js index 60de8ef1a..aa750dd3c 100644 --- a/test/e2e/specs/status-page.spec.js +++ b/test/e2e/specs/status-page.spec.js @@ -129,7 +129,7 @@ test.describe("Status Page", () => { const updateCountdown = Number( (await page.getByTestId("update-countdown-text").textContent()).match(/(\d+):(\d+)/)[2] ); - expect(updateCountdown).toBeGreaterThanOrEqual(refreshInterval - 10); // cant be certain when the timer will start, so ensure it's within expected range + expect(updateCountdown).toBeGreaterThanOrEqual(refreshInterval - 10); // can't be certain when the timer will start, so ensure it's within expected range expect(updateCountdown).toBeLessThanOrEqual(refreshInterval); await expect(page.locator("body")).toHaveClass(theme);