From 04b371825e17afc2b4bbee5a9b4395659e6e48b0 Mon Sep 17 00:00:00 2001 From: polemius Date: Tue, 24 Sep 2019 22:16:09 +0200 Subject: [PATCH] chore: fix the typos in comments (#2679) --- packages/netlify-cms-backend-bitbucket/src/implementation.js | 2 +- packages/netlify-cms-core/src/actions/editorialWorkflow.js | 2 +- packages/netlify-cms-core/src/actions/entries.js | 2 +- packages/netlify-cms-core/src/actions/search.js | 2 +- packages/netlify-cms-core/src/backend.js | 2 +- packages/netlify-cms-core/src/constants/configSchema.js | 2 +- packages/netlify-cms-core/src/lib/__tests__/urlHelper.spec.js | 2 +- packages/netlify-cms-core/src/lib/urlHelper.js | 2 +- packages/netlify-cms-core/src/reducers/medias.js | 2 +- packages/netlify-cms-media-library-cloudinary/src/index.js | 2 +- packages/netlify-cms-media-library-uploadcare/src/index.js | 2 +- website/content/docs/nextjs.md | 2 +- website/src/components/docs-nav.js | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/packages/netlify-cms-backend-bitbucket/src/implementation.js b/packages/netlify-cms-backend-bitbucket/src/implementation.js index 6c28cacd..b85bda12 100644 --- a/packages/netlify-cms-backend-bitbucket/src/implementation.js +++ b/packages/netlify-cms-backend-bitbucket/src/implementation.js @@ -89,7 +89,7 @@ export default class BitbucketBackend { throw new Error('Your BitBucket user account does not have access to this repo.'); } - // Autorized user + // Authorized user return { ...user, token: state.token, refresh_token: state.refresh_token }; } diff --git a/packages/netlify-cms-core/src/actions/editorialWorkflow.js b/packages/netlify-cms-core/src/actions/editorialWorkflow.js index 01504477..cbb76bf5 100644 --- a/packages/netlify-cms-core/src/actions/editorialWorkflow.js +++ b/packages/netlify-cms-core/src/actions/editorialWorkflow.js @@ -13,7 +13,7 @@ import ValidationErrorTypes from 'Constants/validationErrorTypes'; const { notifSend } = notifActions; /* - * Contant Declarations + * Constant Declarations */ export const UNPUBLISHED_ENTRY_REQUEST = 'UNPUBLISHED_ENTRY_REQUEST'; export const UNPUBLISHED_ENTRY_SUCCESS = 'UNPUBLISHED_ENTRY_SUCCESS'; diff --git a/packages/netlify-cms-core/src/actions/entries.js b/packages/netlify-cms-core/src/actions/entries.js index 7bfc10d4..a7ac2d4f 100644 --- a/packages/netlify-cms-core/src/actions/entries.js +++ b/packages/netlify-cms-core/src/actions/entries.js @@ -14,7 +14,7 @@ import ValidationErrorTypes from 'Constants/validationErrorTypes'; const { notifSend } = notifActions; /* - * Contant Declarations + * Constant Declarations */ export const ENTRY_REQUEST = 'ENTRY_REQUEST'; export const ENTRY_SUCCESS = 'ENTRY_SUCCESS'; diff --git a/packages/netlify-cms-core/src/actions/search.js b/packages/netlify-cms-core/src/actions/search.js index 16c92dee..0a12f1d1 100644 --- a/packages/netlify-cms-core/src/actions/search.js +++ b/packages/netlify-cms-core/src/actions/search.js @@ -3,7 +3,7 @@ import { getIntegrationProvider } from 'Integrations'; import { selectIntegration } from 'Reducers'; /* - * Contant Declarations + * Constant Declarations */ export const SEARCH_ENTRIES_REQUEST = 'SEARCH_ENTRIES_REQUEST'; export const SEARCH_ENTRIES_SUCCESS = 'SEARCH_ENTRIES_SUCCESS'; diff --git a/packages/netlify-cms-core/src/backend.js b/packages/netlify-cms-core/src/backend.js index a11e6aff..c1a88c45 100644 --- a/packages/netlify-cms-core/src/backend.js +++ b/packages/netlify-cms-core/src/backend.js @@ -557,7 +557,7 @@ export class Backend { */ getDeploy(collection, slug, entry) { /** - * If `site_url` is undefiend or `show_preview_links` in the config is set to false, do nothing. + * If `site_url` is undefined or `show_preview_links` in the config is set to false, do nothing. */ const baseUrl = this.config.get('site_url'); diff --git a/packages/netlify-cms-core/src/constants/configSchema.js b/packages/netlify-cms-core/src/constants/configSchema.js index e8c8e8f0..838bf48a 100644 --- a/packages/netlify-cms-core/src/constants/configSchema.js +++ b/packages/netlify-cms-core/src/constants/configSchema.js @@ -24,7 +24,7 @@ const fieldsConfig = { /** * The schema had to be wrapped in a function to * fix a circular dependency problem for WebPack, - * where the imports get resolved asyncronously. + * where the imports get resolved asynchronously. */ const getConfigSchema = () => ({ type: 'object', diff --git a/packages/netlify-cms-core/src/lib/__tests__/urlHelper.spec.js b/packages/netlify-cms-core/src/lib/__tests__/urlHelper.spec.js index 9aeee36b..c6880554 100644 --- a/packages/netlify-cms-core/src/lib/__tests__/urlHelper.spec.js +++ b/packages/netlify-cms-core/src/lib/__tests__/urlHelper.spec.js @@ -69,7 +69,7 @@ describe('sanitizeSlug', () => { expect(() => sanitizeSlug('test', Map({ sanitize_replacement: 11232 }))).toThrowError( '`options.replacement` must be a string.', ); - // do not test undefined for this variant since a default is set in the cosntructor. + // do not test undefined for this variant since a default is set in the constructor. //expect(() => sanitizeSlug('test', { sanitize_replacement: undefined })).toThrowError("`options.replacement` must be a string."); expect(() => sanitizeSlug('test', Map({ sanitize_replacement: () => {} }))).toThrowError( '`options.replacement` must be a string.', diff --git a/packages/netlify-cms-core/src/lib/urlHelper.js b/packages/netlify-cms-core/src/lib/urlHelper.js index f1592af9..80e3f924 100644 --- a/packages/netlify-cms-core/src/lib/urlHelper.js +++ b/packages/netlify-cms-core/src/lib/urlHelper.js @@ -32,7 +32,7 @@ export function stripProtocol(urlString) { * ASCII chars should be kept the same way as in standard URIs (letters digits _ - . ~). * Non-ASCII chars (unless they are not in the allowed "ucschars" list) should be percent-encoded. * If the string is not encoded in Unicode, it should be converted to UTF-8 and normalized first, - * but JS stores strings as UTF-16/UCS-2 internally, so we should not normallize or re-encode. + * but JS stores strings as UTF-16/UCS-2 internally, so we should not normalize or re-encode. */ const uriChars = /[\w\-.~]/i; const ucsChars = /[\xA0-\u{D7FF}\u{F900}-\u{FDCF}\u{FDF0}-\u{FFEF}\u{10000}-\u{1FFFD}\u{20000}-\u{2FFFD}\u{30000}-\u{3FFFD}\u{40000}-\u{4FFFD}\u{50000}-\u{5FFFD}\u{60000}-\u{6FFFD}\u{70000}-\u{7FFFD}\u{80000}-\u{8FFFD}\u{90000}-\u{9FFFD}\u{A0000}-\u{AFFFD}\u{B0000}-\u{BFFFD}\u{C0000}-\u{CFFFD}\u{D0000}-\u{DFFFD}\u{E1000}-\u{EFFFD}]/u; diff --git a/packages/netlify-cms-core/src/reducers/medias.js b/packages/netlify-cms-core/src/reducers/medias.js index e830b1c2..c8cc0a7d 100644 --- a/packages/netlify-cms-core/src/reducers/medias.js +++ b/packages/netlify-cms-core/src/reducers/medias.js @@ -24,7 +24,7 @@ export const getAsset = (publicFolder, state, path) => { let proxy = state.get(path) || memoizedProxies[path]; if (proxy) { - // There is already an AssetProxy in memmory for this path. Use it. + // There is already an AssetProxy in memory for this path. Use it. return proxy; } diff --git a/packages/netlify-cms-media-library-cloudinary/src/index.js b/packages/netlify-cms-media-library-cloudinary/src/index.js index fdb76d14..2ed3c096 100644 --- a/packages/netlify-cms-media-library-cloudinary/src/index.js +++ b/packages/netlify-cms-media-library-cloudinary/src/index.js @@ -7,7 +7,7 @@ const defaultOptions = { output_filename_only: false, }; /** - * This configuration hash cannot be overriden, as the values here are required + * This configuration hash cannot be overridden, as the values here are required * for the integration to work properly. */ const enforcedConfig = { diff --git a/packages/netlify-cms-media-library-uploadcare/src/index.js b/packages/netlify-cms-media-library-uploadcare/src/index.js index 8904f57f..7ea2bda1 100644 --- a/packages/netlify-cms-media-library-uploadcare/src/index.js +++ b/packages/netlify-cms-media-library-uploadcare/src/index.js @@ -9,7 +9,7 @@ const USER_AGENT = 'NetlifyCMS-Uploadcare-MediaLibrary'; const CDN_BASE_URL = 'https://ucarecdn.com'; /** - * Default Uploadcare widget configuration, can be overriden via config.yml. + * Default Uploadcare widget configuration, can be overridden via config.yml. */ const defaultConfig = { previewStep: true, diff --git a/website/content/docs/nextjs.md b/website/content/docs/nextjs.md index 7c505ed2..3924d02c 100644 --- a/website/content/docs/nextjs.md +++ b/website/content/docs/nextjs.md @@ -20,7 +20,7 @@ npm init -y # Install required dependencies npm install --save react react-dom next -# Intall webpack loader for Markdown +# Install webpack loader for Markdown npm install --save-dev frontmatter-markdown-loader # Create folder for pages (default for NextJS), and add a index file diff --git a/website/src/components/docs-nav.js b/website/src/components/docs-nav.js index ba3ce3f6..b072cfe7 100644 --- a/website/src/components/docs-nav.js +++ b/website/src/components/docs-nav.js @@ -2,7 +2,7 @@ import React, { Component } from 'react'; import Link from 'gatsby-link'; /** - * Maually get table of contents since tableOfContents from markdown + * Manually get table of contents since tableOfContents from markdown * nodes have code added. * * https://github.com/gatsbyjs/gatsby/issues/5436