From c4d8179d894b34c9166c37bb8bf0f951bec04d2f Mon Sep 17 00:00:00 2001 From: coliff Date: Tue, 21 May 2024 12:01:14 +0900 Subject: [PATCH] Typo fixes --- README.md | 2 +- api/src/compute/stages/group_buckets.ts | 2 +- capture/README.md | 2 +- results-astro/src/lib/sitemap/sitemap.ts | 4 ++-- results/node_src/create_pages.ts | 2 +- results/src/core/charts/hooks.ts | 2 +- results/src/core/charts/toolsRatiosLineChart/LineChart.tsx | 2 +- results/src/core/i18n/T.tsx | 2 +- shared/permissions/permissions.test.ts | 2 +- shared/permissions/permissions.ts | 2 +- shared/permissions/typings.ts | 2 +- surveyform/cypress/plugins/mail.js | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index a3ef6320d..b6c7e8049 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Devographics Monorepo -This is the codebase that runs the Devographics surveys, such as [State of JS](http://stateofjs.com/) and [State of CSS](https://stateofcss.com/). +This is the codebase that runs the Devographics surveys, such as [State of JS](https://stateofjs.com/) and [State of CSS](https://stateofcss.com/). ## Setup diff --git a/api/src/compute/stages/group_buckets.ts b/api/src/compute/stages/group_buckets.ts index e368f4c42..93cb52a34 100644 --- a/api/src/compute/stages/group_buckets.ts +++ b/api/src/compute/stages/group_buckets.ts @@ -31,7 +31,7 @@ export const combineFacetBuckets = ( const sameFacetBuckets = compact( selectedBuckets.map(b => b?.facetBuckets?.find(fb => fb.id === option.id)!) ) - // if the current/option we're considering doen't have any matching facet buckets + // if the current/option we're considering doesn't have any matching facet buckets // across all buckets, return undefined to get rid of it if (sameFacetBuckets.length === 0) { return diff --git a/capture/README.md b/capture/README.md index 2672f9d84..f1b65f248 100644 --- a/capture/README.md +++ b/capture/README.md @@ -71,7 +71,7 @@ The file `config/config.yml` should have the following structure: ```yaml # the base URL to use, can be either local or remote, baseUrl: http://localhost:9000 -# optionnaly if you want to use a local sitemap +# optionally if you want to use a local sitemap sitemap: './sitemap.yml' # configuration for mosaic generation mosaic: diff --git a/results-astro/src/lib/sitemap/sitemap.ts b/results-astro/src/lib/sitemap/sitemap.ts index 1171e6bc6..b9717e5bc 100644 --- a/results-astro/src/lib/sitemap/sitemap.ts +++ b/results-astro/src/lib/sitemap/sitemap.ts @@ -35,7 +35,7 @@ interface BaseBlockDefinition { /** * A processed sitemap section, to be used in the result app - * (@devographis/types only expose the raw sitemap type that can be used by other apps) + * (@devographics/types only expose the raw sitemap type that can be used by other apps) * * TODO: work in progress * It's actually the type of a raw sitemap @@ -78,7 +78,7 @@ export interface PageDefinition { } } filters: Array<{ - conditons: Array<{ + conditions: Array<{ fieldId: "string", sectionId: string, operator: "in", diff --git a/results/node_src/create_pages.ts b/results/node_src/create_pages.ts index 8be6d37f2..81518f942 100644 --- a/results/node_src/create_pages.ts +++ b/results/node_src/create_pages.ts @@ -227,7 +227,7 @@ export const createPagesSingleLoop = async ({ createPage(pageObject) } - // also redirect "naked" paths (whithout a locale) to en-US + // also redirect "naked" paths (without a locale) to en-US // TODO: this doesn't seem to work during development createRedirect({ fromPath: getLocalizedPath(page.path, null), diff --git a/results/src/core/charts/hooks.ts b/results/src/core/charts/hooks.ts index 38544d2de..8ef5d6a5f 100644 --- a/results/src/core/charts/hooks.ts +++ b/results/src/core/charts/hooks.ts @@ -32,7 +32,7 @@ const getMode = (units: Units, mode: Mode) => { } } -// get all of one type of unit for a buucket +// get all of one type of unit for a bucket // (count__1, count__2, etc. ) const getAllBucketUnits = (bucket: Bucket, unit: BucketUnits) => { const bucketWithAllOneUnits = pickBy(bucket, (value, key) => key.includes(unit)) diff --git a/results/src/core/charts/toolsRatiosLineChart/LineChart.tsx b/results/src/core/charts/toolsRatiosLineChart/LineChart.tsx index 6db7a72ba..686e98742 100644 --- a/results/src/core/charts/toolsRatiosLineChart/LineChart.tsx +++ b/results/src/core/charts/toolsRatiosLineChart/LineChart.tsx @@ -139,7 +139,7 @@ interface RankingChartProps { /* -Note: when displaying mulitple series via DynamicDataLoader +Note: when displaying multiple series via DynamicDataLoader we need to call processBlockData() again whenever the metric changes, which will not happen unless we call it from within the chart diff --git a/results/src/core/i18n/T.tsx b/results/src/core/i18n/T.tsx index c71231b43..67b84fce5 100644 --- a/results/src/core/i18n/T.tsx +++ b/results/src/core/i18n/T.tsx @@ -45,7 +45,7 @@ export const T = ({ if (override) { classNames.push('t-override') } else { - // FIXME: expects a fallabck value, not "isFallback boolean" + // FIXME: expects a fallback value, not "isFallback boolean" const tFullString = getString(k, { values }, isFallback) const tShortString = getString(`${k}.short`, { values }, isFallback) diff --git a/shared/permissions/permissions.test.ts b/shared/permissions/permissions.test.ts index 4c64dab6d..35b73b979 100644 --- a/shared/permissions/permissions.test.ts +++ b/shared/permissions/permissions.test.ts @@ -90,7 +90,7 @@ describe("vulcan:users/permissions", () => { expect(() => checkFields(null, Dummies, ["adminField"])).toThrow(); expect(checkFields(null, Dummies, ["guestField"])).toBe(true); }); - test("checkFields with document-based permissions do not throw for ambigous fields (those field need the document to be checked)", () => { + test("checkFields with document-based permissions do not throw for ambiguous fields (those field need the document to be checked)", () => { const res = checkFields(null, Dummies, [ "guestField", "ownerField", diff --git a/shared/permissions/permissions.ts b/shared/permissions/permissions.ts index 0a56d7072..d1f21d676 100644 --- a/shared/permissions/permissions.ts +++ b/shared/permissions/permissions.ts @@ -278,7 +278,7 @@ export const canFilterDocument = ( * Keep only fields readable by current user * * DOESN'T SUPPORT NESTING - * Use a second schema + cutom code for nesting + * Use a second schema + custom code for nesting * Remove restricted fields from a document * @param document * @param schema diff --git a/shared/permissions/typings.ts b/shared/permissions/typings.ts index eff0b18b2..27583a03a 100644 --- a/shared/permissions/typings.ts +++ b/shared/permissions/typings.ts @@ -58,7 +58,7 @@ export type PermissionChecker = ( export type PermissionDefinition = PermissionGroupString | PermissionChecker /** - * If a function is ommited, + * If a function is omitted, * only admin/server-side calls can read, set or update the value * */ diff --git a/surveyform/cypress/plugins/mail.js b/surveyform/cypress/plugins/mail.js index 808d6e769..9d29d81d9 100644 --- a/surveyform/cypress/plugins/mail.js +++ b/surveyform/cypress/plugins/mail.js @@ -14,7 +14,7 @@ module.exports = (on, config) => { mailServer.bind((addr, id, email) => { console.log("--- email ---"); console.log(addr, id, email); - // store the body for the email adress + // store the body for the email address lastEmail[email.headers.to] = email.html || email.body; }); console.log("mail server at port %d", port);