mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-08-07 09:14:58 +00:00
fix: correct 12 spelling errors across codebase (#7654)
Signed-off-by: jannikbx <manmut@proton.me>
This commit is contained in:
@@ -3,5 +3,5 @@ exports.up = function (knex) {
|
|||||||
};
|
};
|
||||||
exports.down = function (knex) {
|
exports.down = function (knex) {
|
||||||
// changing the json_path_operator back to null for all "==" is not possible anymore
|
// 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
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
// Udpate status_page table to generalize analytics fields
|
// Update status_page table to generalize analytics fields
|
||||||
exports.up = function (knex) {
|
exports.up = function (knex) {
|
||||||
return knex.schema
|
return knex.schema
|
||||||
.alterTable("status_page", function (table) {
|
.alterTable("status_page", function (table) {
|
||||||
@@ -7,7 +7,7 @@ exports.up = function (knex) {
|
|||||||
table.enu("analytics_type", ["google", "umami", "plausible", "matomo"]).defaultTo(null);
|
table.enu("analytics_type", ["google", "umami", "plausible", "matomo"]).defaultTo(null);
|
||||||
})
|
})
|
||||||
.then(() => {
|
.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({
|
knex("status_page").whereNotNull("analytics_id").update({
|
||||||
analytics_type: "google",
|
analytics_type: "google",
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -619,7 +619,7 @@ h5.settings-subheading::after {
|
|||||||
/* required class */
|
/* required class */
|
||||||
.code-editor,
|
.code-editor,
|
||||||
.css-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;
|
border-radius: 1rem;
|
||||||
padding: 10px 5px;
|
padding: 10px 5px;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
v-model="$parent.notification.pushChannel"
|
v-model="$parent.notification.pushChannel"
|
||||||
type="text"
|
type="text"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
patttern="[A-Za-z0-9-]+"
|
pattern="[A-Za-z0-9-]+"
|
||||||
/>
|
/>
|
||||||
<div class="form-text">
|
<div class="form-text">
|
||||||
{{ $t("Alphanumerical string and hyphens only") }}
|
{{ $t("Alphanumerical string and hyphens only") }}
|
||||||
|
|||||||
@@ -660,7 +660,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clear the hearbeat list
|
* Clear the heartbeat list
|
||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
clearData() {
|
clearData() {
|
||||||
|
|||||||
@@ -806,7 +806,7 @@ export default {
|
|||||||
* @returns {void}
|
* @returns {void}
|
||||||
*/
|
*/
|
||||||
submit() {
|
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) {
|
if (!this.hasMonitors && this.hasStatusPages) {
|
||||||
this.$refs.confirmNoMonitors.show();
|
this.$refs.confirmNoMonitors.show();
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -3550,11 +3550,11 @@ message HealthCheckResponse {
|
|||||||
},
|
},
|
||||||
|
|
||||||
// Filter result by active state, weight and alphabetical
|
// 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() {
|
sortedGroupMonitorList() {
|
||||||
let result = Object.values(this.$root.monitorList);
|
let result = Object.values(this.$root.monitorList);
|
||||||
|
|
||||||
// Only groups, not itself, not a decendant
|
// Only groups, not itself, not a descendant
|
||||||
result = result.filter(
|
result = result.filter(
|
||||||
(monitor) =>
|
(monitor) =>
|
||||||
monitor.type === "group" &&
|
monitor.type === "group" &&
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ describe("Check Translations", () => {
|
|||||||
it("should not have missing translation keys", async () => {
|
it("should not have missing translation keys", async () => {
|
||||||
const enTranslations = JSON.parse(await fs.readFile("src/lang/en.json", "utf-8"));
|
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 ^^
|
/// this check is just to save on maintainer energy to explain this on every review ^^
|
||||||
const translationRegex = /\$t\(['"](?<key1>.*?)['"]\s*[,)]|i18n-t[^>]*\s+keypath="(?<key2>[^"]+)"/dg;
|
const translationRegex = /\$t\(['"](?<key1>.*?)['"]\s*[,)]|i18n-t[^>]*\s+keypath="(?<key2>[^"]+)"/dg;
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const net = require("node:net");
|
|||||||
const http = require("node:http");
|
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
|
* @returns {Promise<{server: net.Server, port: number}>} Promise that resolves to the created server and its port
|
||||||
*/
|
*/
|
||||||
function nonCompliantWS() {
|
function nonCompliantWS() {
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ test.describe("Status Page", () => {
|
|||||||
const updateCountdown = Number(
|
const updateCountdown = Number(
|
||||||
(await page.getByTestId("update-countdown-text").textContent()).match(/(\d+):(\d+)/)[2]
|
(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);
|
expect(updateCountdown).toBeLessThanOrEqual(refreshInterval);
|
||||||
|
|
||||||
await expect(page.locator("body")).toHaveClass(theme);
|
await expect(page.locator("body")).toHaveClass(theme);
|
||||||
|
|||||||
Reference in New Issue
Block a user