chore: fix the typos in comments (#2679)

This commit is contained in:
polemius 2019-09-24 22:16:09 +02:00 committed by Shawn Erquhart
parent b4d19b7907
commit 04b371825e
13 changed files with 13 additions and 13 deletions

View File

@ -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 };
}

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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');

View File

@ -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',

View File

@ -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.',

View File

@ -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;

View File

@ -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;
}

View File

@ -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 = {

View File

@ -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,

View File

@ -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

View File

@ -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