fix: Correct spelling and grammatical errors across multiple files

This commit is contained in:
Simon Larsen
2025-06-26 15:16:07 +01:00
parent 5c464ae137
commit 4287632371
24 changed files with 54 additions and 54 deletions

View File

@@ -115,7 +115,7 @@
<dd class="font-mono text-xs text-zinc-400 ">Query</dd>
<dt class="sr-only">Description</dt>
<dd class="w-full flex-none [&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0">
<p>Here is an example of Equal To Query</p>
<p>Here is an example of an Equal To Query</p>
</dd>
</dl>
</li>
@@ -153,7 +153,7 @@
<dd class="font-mono text-xs text-zinc-400 ">Query</dd>
<dt class="sr-only">Description</dt>
<dd class="w-full flex-none [&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0">
<p>Here is an example of Not Equal To Query</p>
<p>Here is an example of a Not Equal To Query</p>
</dd>
</dl>
</li>
@@ -191,7 +191,7 @@
<dd class="font-mono text-xs text-zinc-400 ">Query</dd>
<dt class="sr-only">Description</dt>
<dd class="w-full flex-none [&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0">
<p>Here is an example of is null query</p>
<p>Here is an example of an is null query</p>
</dd>
</dl>
</li>
@@ -229,7 +229,7 @@
<dd class="font-mono text-xs text-zinc-400 ">Query</dd>
<dt class="sr-only">Description</dt>
<dd class="w-full flex-none [&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0">
<p>Here is an example of is not null query</p>
<p>Here is an example of an is not null query</p>
</dd>
</dl>
</li>
@@ -266,7 +266,7 @@
<dd class="font-mono text-xs text-zinc-400 ">Query</dd>
<dt class="sr-only">Description</dt>
<dd class="w-full flex-none [&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0">
<p>Here is an example of greater than query</p>
<p>Here is an example of a greater than query</p>
</dd>
</dl>
</li>
@@ -304,7 +304,7 @@
<dd class="font-mono text-xs text-zinc-400 ">Query</dd>
<dt class="sr-only">Description</dt>
<dd class="w-full flex-none [&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0">
<p>Here is an example of greater or equal than query</p>
<p>Here is an example of a greater than or equal query</p>
</dd>
</dl>
</li>
@@ -342,7 +342,7 @@
<dd class="font-mono text-xs text-zinc-400 ">Query</dd>
<dt class="sr-only">Description</dt>
<dd class="w-full flex-none [&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0">
<p>Here is an example of less than query</p>
<p>Here is an example of a less than query</p>
</dd>
</dl>
</li>
@@ -380,7 +380,7 @@
<dd class="font-mono text-xs text-zinc-400 ">Query</dd>
<dt class="sr-only">Description</dt>
<dd class="w-full flex-none [&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0">
<p>Here is an example of less or equal than query</p>
<p>Here is an example of a less than or equal query</p>
</dd>
</dl>
</li>

View File

@@ -13,7 +13,7 @@
</h2>
<div class="grid grid-cols-1 items-start gap-x-16 gap-y-10 xl:max-w-none xl:grid-cols-2">
<div class="[&amp;>:first-child]:mt-0 [&amp;>:last-child]:mb-0">
<p>In this example, we request the list fo monitors. As a result, we get a list of three monitors and can
<p>In this example, we request the list of monitors. As a result, we get a list of three monitors and can
tell by the <code class="inline-code">count</code> attribute that we have reached the end of the
result set</p>
<h2 id="example-using-cursors" class="scroll-mt-24">

View File

@@ -260,7 +260,7 @@ export default class GlobalConfig extends GlobalConfigModel {
nullable: true,
unique: false,
})
public twilioSecondaryPhoneNumbers?: string = undefined; // phone numbers seperated by comma
public twilioSecondaryPhoneNumbers?: string = undefined; // phone numbers separated by comma
@ColumnAccessControl({
create: [],

View File

@@ -457,5 +457,5 @@ export default class ProjectCallSMSConfig extends BaseModel {
nullable: true,
unique: false,
})
public twilioSecondaryPhoneNumbers?: string = undefined; // phone numbers seperated by comma
public twilioSecondaryPhoneNumbers?: string = undefined; // phone numbers separated by comma
}

View File

@@ -295,7 +295,7 @@ export default class ResellerPlan extends BaseModel {
canReadOnRelationQuery: true,
title: "Other Features",
description:
"Other Features of this Reseller Plan. This is shown on the dashboard. Its a comma seperated list of features",
"Other Features of this Reseller Plan. This is shown on the dashboard. Its a comma separated list of features",
})
@Column({
nullable: true,

View File

@@ -965,7 +965,7 @@ export default class TelemetryException extends DatabaseBaseModel {
})
@TableColumn({
title: "Occurances",
description: "Number of times this exception has occured",
description: "Number of times this exception has occurred",
isDefaultValueColumn: true,
required: true,
type: TableColumnType.Number,

View File

@@ -31,7 +31,7 @@ export default class ResellerPlanAPI extends BaseAPI<
super(ResellerPlan, ResellerPlanService);
// Reseller Plan Action API
// TODO: Reafactor this APi and make it partner specific.
// TODO: Refactor this API and make it partner specific.
this.router.post(
`${new this.entityType()
.getCrudApiPath()

View File

@@ -87,7 +87,7 @@ export class Service extends DatabaseService<Model> {
}
if (!alert.projectId) {
throw new BadDataException("Incient Project ID not found");
throw new BadDataException("Alert Project ID not found");
}
const ackAlertState: AlertState =
@@ -1240,7 +1240,7 @@ ${alertSeverity.name}
}
if (!alert.projectId) {
throw new BadDataException("Incient Project ID not found");
throw new BadDataException("Alert Project ID not found");
}
const resolvedAlertState: AlertState =

View File

@@ -103,7 +103,7 @@ export class Service extends DatabaseService<Model> {
}
if (!incident.projectId) {
throw new BadDataException("Incient Project ID not found");
throw new BadDataException("Incident Project ID not found");
}
const resolvedIncidentState: IncidentState =
@@ -149,7 +149,7 @@ export class Service extends DatabaseService<Model> {
}
if (!incident.projectId) {
throw new BadDataException("Incient Project ID not found");
throw new BadDataException("Incident Project ID not found");
}
const ackIncidentState: IncidentState =
@@ -1584,7 +1584,7 @@ ${incidentSeverity.name}
}
if (!incident.projectId) {
throw new BadDataException("Incient Project ID not found");
throw new BadDataException("Incident Project ID not found");
}
// get incident state timeline
@@ -1617,7 +1617,7 @@ ${incidentSeverity.name}
const firstIncidentStateTimeline: IncidentStateTimeline | undefined =
incidentStateTimelines[0];
// delete all the incident metrics with this incident id because its a refresh.
// delete all the incident metrics with this incident id because it's a refresh.
await MetricService.deleteBy({
query: {

View File

@@ -351,7 +351,7 @@ ${resourcesAffected ? `**Resources Affected:** ${resourcesAffected}` : ""}
});
if (!scheduledMaintenance) {
throw new BadDataException("Scheduled Maintennace Event not found");
throw new BadDataException("Scheduled Maintenance Event not found");
}
const startsAt: Date =
@@ -454,7 +454,7 @@ ${resourcesAffected ? `**Resources Affected:** ${resourcesAffected}` : ""}
logger.debug(`Notification date is in the past. Skipping.`);
}
// if this new date is less than the recurring date then set it to recuring date. We need to get the least date.
// if this new date is less than the recurring date then set it to recurring date. We need to get the least date.
if (recurringDate) {
if (
OneUptimeDate.isBefore(notificationDate, recurringDate) &&
@@ -482,7 +482,7 @@ ${resourcesAffected ? `**Resources Affected:** ${resourcesAffected}` : ""}
): Promise<OnCreate<Model>> {
if (!createBy.props.tenantId && !createBy.data.projectId) {
throw new BadDataException(
"ProjectId required to create scheduled maintenane.",
"ProjectId required to create scheduled maintenance.",
);
}
@@ -666,13 +666,13 @@ ${createdItem.description || "No description provided."}
new ScheduledMaintenanceStateTimeline();
timeline.projectId = createdItem.projectId!;
timeline.scheduledMaintenanceId = createdItem.id!;
timeline.isOwnerNotified = true; // ignore notifying owners because you already notify for Scheduled Event, you don't have to notify them for timeline event.
timeline.isOwnerNotified = true; // ignore notifying owners because you already notify for Scheduled Event, no need to notify them for timeline event.
timeline.shouldStatusPageSubscribersBeNotified = Boolean(
createdItem.shouldStatusPageSubscribersBeNotifiedOnEventCreated,
);
timeline.isStatusPageSubscribersNotified = Boolean(
createdItem.shouldStatusPageSubscribersBeNotifiedOnEventCreated,
); // ignore notifying subscribers because you already notify for Scheduled Event, you don't have to notify them for timeline event.
); // ignore notifying subscribers because you already notify for Scheduled Event, no need to notify them for timeline event.
timeline.scheduledMaintenanceStateId =
createdItem.currentScheduledMaintenanceStateId!;
@@ -1233,7 +1233,7 @@ ${labels
}
if (!scheduledMaintenance.projectId) {
throw new BadDataException("Incient Project ID not found");
throw new BadDataException("Incident Project ID not found");
}
const resolvedScheduledMaintenanceState: ScheduledMaintenanceState =
@@ -1308,7 +1308,7 @@ ${labels
}
if (!scheduledMaintenance.projectId) {
throw new BadDataException("Incient Project ID not found");
throw new BadDataException("Incident Project ID not found");
}
const ackScheduledMaintenanceState: ScheduledMaintenanceState =

View File

@@ -7,7 +7,7 @@ describe("MarkdownEditor with SpellCheck", () => {
test("should enable spell check by default", () => {
render(
<MarkdownEditor
initialValue="This is a test with speling errors"
initialValue="This is a test with spelling errors"
placeholder="Enter markdown here..."
/>,
);
@@ -21,7 +21,7 @@ describe("MarkdownEditor with SpellCheck", () => {
test("should disable spell check when disableSpellCheck is true", () => {
render(
<MarkdownEditor
initialValue="This is a test with speling errors"
initialValue="This is a test with spelling errors"
placeholder="Enter markdown here..."
disableSpellCheck={true}
/>,
@@ -36,7 +36,7 @@ describe("MarkdownEditor with SpellCheck", () => {
test("should handle spell check prop changes", () => {
const { rerender } = render(
<MarkdownEditor
initialValue="This is a test with speling errors"
initialValue="This is a test with spelling errors"
placeholder="Enter markdown here..."
disableSpellCheck={false}
/>,
@@ -49,7 +49,7 @@ describe("MarkdownEditor with SpellCheck", () => {
rerender(
<MarkdownEditor
initialValue="This is a test with speling errors"
initialValue="This is a test with spelling errors"
placeholder="Enter markdown here..."
disableSpellCheck={true}
/>,

View File

@@ -4,9 +4,9 @@ import NotificationRuleCondition from "./NotificationRuleCondition";
export default interface BaseNotificationRule {
_type: string;
// filters for notification rule
filterCondition: FilterCondition; // and OR or. Default is AND
filterCondition: FilterCondition; // AND or OR. Default is AND
filters: Array<NotificationRuleCondition>; // if this array is empty then it will be considered as all filters are matched.
shouldPostToExistingChannel: boolean;
existingChannelNames: string; // seperate by comma
existingChannelNames: string; // separate by comma
}

View File

@@ -111,7 +111,7 @@ const AlertsRoutes: React.LazyExoticComponent<
const ScheduledMaintenanceEventsRoutes: React.LazyExoticComponent<
React.FunctionComponent<PageComponentProps>
> = lazy(() => {
return import("./Routes/ScheduleMaintenaceEventsRoutes");
return import("./Routes/ScheduleMaintenanceEventsRoutes");
});
const SettingsRoutes: React.LazyExoticComponent<
React.FunctionComponent<PageComponentProps>

View File

@@ -5,7 +5,7 @@
# Pull base image nodejs image.
# Note: Alpine Images doesnt work with Playwright.
# Note: Alpine Images don't work with Playwright.
FROM public.ecr.aws/docker/library/node:21.6
RUN mkdir /tmp/npm && chmod 2777 /tmp/npm && chown 1000:1000 /tmp/npm && npm config set cache /tmp/npm --global

View File

@@ -1,7 +1,7 @@
# Important:
# This script will setup MicroK8s and install OneUptime on it.
# This is used to install OneUptime on a standalone VM
# This is usally used for CI/CD testing, and to update VM's on GCP, Azure and AWS.
# This is usually used for CI/CD testing, and to update VM's on GCP, Azure and AWS.
# If this is the first install, then helm wont be found.
if [[ ! $(which helm) ]]

View File

@@ -312,11 +312,11 @@ postgresql:
Please do the same for Redis and Clickhouse.
- [ ] Please make sure you have a backups enabled for your PVCs. This is outside the scope of this chart. Please refer to your cloud provider's documentation on how to enable backups for PVCs.
- [ ] Please make sure you have static passwords for your database passswords (for redis, clickhouse and postgres). You can refer to Bitnami documentation on how to set static passwords for these databases.
- [ ] Please make sure you have backups enabled for your PVCs. This is outside the scope of this chart. Please refer to your cloud provider's documentation on how to enable backups for PVCs.
- [ ] Please make sure you have static passwords for your database passwords (for redis, clickhouse and postgres). You can refer to Bitnami documentation on how to set static passwords for these databases.
- [ ] Please set `oneuptimeSecret` and `encryptionSecret` (or setup in `externalSecrets` section) to a long random string. You can use a password generator to generate these strings.
- [ ] Please set `probes.<key>.key` to a long random string. This is used to secure your probes.
- [ ] Please regularly update OneUptime. We release updates every day. We recommend you to update the software aleast once a week if you're running OneUptime production.
- [ ] Please regularly update OneUptime. We release updates every day. We recommend you to update the software at least once a week if you're running OneUptime production.
## Releases

View File

@@ -277,12 +277,12 @@ nodeSelector:
logLevel: INFO
# Enable cleanup cron jobs
# Please do not enable this in producton. This is only for development purposes.
# Please do not enable this in production. This is only for development purposes.
cronJobs:
cleanup:
enabled: false
e2e:
# Please do not enable this in producton. This is only for development purposes.
# Please do not enable this in production. This is only for development purposes.
enabled: false
isUserRegistered: false
registeredUserEmail:

View File

@@ -11,7 +11,7 @@ import Sleep from "Common/Types/Sleep";
import logger from "Common/Server/Utils/Logger";
import ping from "ping";
// TODO - make sure it work for the IPV6
// TODO - make sure it works for the IPV6
export interface PingResponse {
isOnline: boolean;
responseTimeInMS?: PositiveNumber | undefined;

View File

@@ -14,7 +14,7 @@ import logger from "Common/Server/Utils/Logger";
import net from "net";
import Register from "../../../Services/Register";
// TODO - make sure it work for the IPV6
// TODO - make sure it works for the IPV6
export interface PortMonitorResponse {
isOnline: boolean;
responseTimeInMS?: PositiveNumber | undefined;

View File

@@ -392,13 +392,13 @@ const Overview: FunctionComponent<PageComponentProps> = (
group._id?.toString() === resource.statusPageGroupId.toString()) ||
(!resource.statusPageGroupId && !group)
) {
// if its not a monitor or a monitor group, then continue. This should ideally not happen.
// if it's not a monitor or a monitor group, then continue. This should ideally not happen.
if (!resource.monitor && !resource.monitorGroupId) {
continue;
}
// if its a monitor
// if it's a monitor
if (resource.monitor) {
let currentStatus: MonitorStatus | undefined = monitorStatuses.find(
@@ -450,7 +450,7 @@ const Overview: FunctionComponent<PageComponentProps> = (
);
}
// if its a monitor group, then...
// if it's a monitor group, then...
if (resource.monitorGroupId) {
let currentStatus: MonitorStatus | undefined = monitorStatuses.find(

View File

@@ -118,7 +118,7 @@ RunCron(
const shouldNotifySubscriber: boolean =
StatusPageSubscriberService.shouldSendNotification({
subscriber: subscriber,
statusPageResources: [], // this is an announcement so we dont care about resources
statusPageResources: [], // this is an announcement so we don't care about resources
statusPage: statuspage,
eventType: StatusPageEventType.Announcement,
});

View File

@@ -34,11 +34,11 @@ RunCron(
});
for (const service of telemetryService) {
let dataRententionDays: number | undefined =
let dataRetentionDays: number | undefined =
service.retainTelemetryDataForDays;
if (!dataRententionDays) {
dataRententionDays = 15; // default to 15 days.
if (!dataRetentionDays) {
dataRetentionDays = 15; // default to 15 days.
}
if (!service.id) {
@@ -50,7 +50,7 @@ RunCron(
await LogService.deleteBy({
query: {
createdAt: QueryHelper.lessThan(
OneUptimeDate.getSomeDaysAgo(dataRententionDays),
OneUptimeDate.getSomeDaysAgo(dataRetentionDays),
),
serviceId: service.id!,
projectId: service.projectId,
@@ -65,7 +65,7 @@ RunCron(
await SpanService.deleteBy({
query: {
createdAt: QueryHelper.lessThan(
OneUptimeDate.getSomeDaysAgo(dataRententionDays),
OneUptimeDate.getSomeDaysAgo(dataRetentionDays),
),
serviceId: service.id!,
projectId: service.projectId,
@@ -75,7 +75,7 @@ RunCron(
},
});
// TOOD: delete metrics.
// TODO: delete metrics.
}
},
);

View File

@@ -169,7 +169,7 @@ export default tseslint.config(
"no-loop-func": "error",
"no-duplicate-imports": "error",
"no-promise-executor-return": "error",
"capitalized-comments": "off", // this is turned off because come commented code should not be capitalized.
"capitalized-comments": "off", // this is turned off because some commented code should not be capitalized.
"for-direction": "error",
"getter-return": "error",
"no-async-promise-executor": "error",