chore: fix the typos in comments (#2679)
This commit is contained in:
parent
b4d19b7907
commit
04b371825e
@ -89,7 +89,7 @@ export default class BitbucketBackend {
|
|||||||
throw new Error('Your BitBucket user account does not have access to this repo.');
|
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 };
|
return { ...user, token: state.token, refresh_token: state.refresh_token };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ import ValidationErrorTypes from 'Constants/validationErrorTypes';
|
|||||||
const { notifSend } = notifActions;
|
const { notifSend } = notifActions;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Contant Declarations
|
* Constant Declarations
|
||||||
*/
|
*/
|
||||||
export const UNPUBLISHED_ENTRY_REQUEST = 'UNPUBLISHED_ENTRY_REQUEST';
|
export const UNPUBLISHED_ENTRY_REQUEST = 'UNPUBLISHED_ENTRY_REQUEST';
|
||||||
export const UNPUBLISHED_ENTRY_SUCCESS = 'UNPUBLISHED_ENTRY_SUCCESS';
|
export const UNPUBLISHED_ENTRY_SUCCESS = 'UNPUBLISHED_ENTRY_SUCCESS';
|
||||||
|
@ -14,7 +14,7 @@ import ValidationErrorTypes from 'Constants/validationErrorTypes';
|
|||||||
const { notifSend } = notifActions;
|
const { notifSend } = notifActions;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Contant Declarations
|
* Constant Declarations
|
||||||
*/
|
*/
|
||||||
export const ENTRY_REQUEST = 'ENTRY_REQUEST';
|
export const ENTRY_REQUEST = 'ENTRY_REQUEST';
|
||||||
export const ENTRY_SUCCESS = 'ENTRY_SUCCESS';
|
export const ENTRY_SUCCESS = 'ENTRY_SUCCESS';
|
||||||
|
@ -3,7 +3,7 @@ import { getIntegrationProvider } from 'Integrations';
|
|||||||
import { selectIntegration } from 'Reducers';
|
import { selectIntegration } from 'Reducers';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Contant Declarations
|
* Constant Declarations
|
||||||
*/
|
*/
|
||||||
export const SEARCH_ENTRIES_REQUEST = 'SEARCH_ENTRIES_REQUEST';
|
export const SEARCH_ENTRIES_REQUEST = 'SEARCH_ENTRIES_REQUEST';
|
||||||
export const SEARCH_ENTRIES_SUCCESS = 'SEARCH_ENTRIES_SUCCESS';
|
export const SEARCH_ENTRIES_SUCCESS = 'SEARCH_ENTRIES_SUCCESS';
|
||||||
|
@ -557,7 +557,7 @@ export class Backend {
|
|||||||
*/
|
*/
|
||||||
getDeploy(collection, slug, entry) {
|
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');
|
const baseUrl = this.config.get('site_url');
|
||||||
|
@ -24,7 +24,7 @@ const fieldsConfig = {
|
|||||||
/**
|
/**
|
||||||
* The schema had to be wrapped in a function to
|
* The schema had to be wrapped in a function to
|
||||||
* fix a circular dependency problem for WebPack,
|
* fix a circular dependency problem for WebPack,
|
||||||
* where the imports get resolved asyncronously.
|
* where the imports get resolved asynchronously.
|
||||||
*/
|
*/
|
||||||
const getConfigSchema = () => ({
|
const getConfigSchema = () => ({
|
||||||
type: 'object',
|
type: 'object',
|
||||||
|
@ -69,7 +69,7 @@ describe('sanitizeSlug', () => {
|
|||||||
expect(() => sanitizeSlug('test', Map({ sanitize_replacement: 11232 }))).toThrowError(
|
expect(() => sanitizeSlug('test', Map({ sanitize_replacement: 11232 }))).toThrowError(
|
||||||
'`options.replacement` must be a string.',
|
'`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', { sanitize_replacement: undefined })).toThrowError("`options.replacement` must be a string.");
|
||||||
expect(() => sanitizeSlug('test', Map({ sanitize_replacement: () => {} }))).toThrowError(
|
expect(() => sanitizeSlug('test', Map({ sanitize_replacement: () => {} }))).toThrowError(
|
||||||
'`options.replacement` must be a string.',
|
'`options.replacement` must be a string.',
|
||||||
|
@ -32,7 +32,7 @@ export function stripProtocol(urlString) {
|
|||||||
* ASCII chars should be kept the same way as in standard URIs (letters digits _ - . ~).
|
* 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.
|
* 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,
|
* 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 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;
|
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;
|
||||||
|
@ -24,7 +24,7 @@ export const getAsset = (publicFolder, state, path) => {
|
|||||||
|
|
||||||
let proxy = state.get(path) || memoizedProxies[path];
|
let proxy = state.get(path) || memoizedProxies[path];
|
||||||
if (proxy) {
|
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;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ const defaultOptions = {
|
|||||||
output_filename_only: false,
|
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.
|
* for the integration to work properly.
|
||||||
*/
|
*/
|
||||||
const enforcedConfig = {
|
const enforcedConfig = {
|
||||||
|
@ -9,7 +9,7 @@ const USER_AGENT = 'NetlifyCMS-Uploadcare-MediaLibrary';
|
|||||||
const CDN_BASE_URL = 'https://ucarecdn.com';
|
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 = {
|
const defaultConfig = {
|
||||||
previewStep: true,
|
previewStep: true,
|
||||||
|
@ -20,7 +20,7 @@ npm init -y
|
|||||||
# Install required dependencies
|
# Install required dependencies
|
||||||
npm install --save react react-dom next
|
npm install --save react react-dom next
|
||||||
|
|
||||||
# Intall webpack loader for Markdown
|
# Install webpack loader for Markdown
|
||||||
npm install --save-dev frontmatter-markdown-loader
|
npm install --save-dev frontmatter-markdown-loader
|
||||||
|
|
||||||
# Create folder for pages (default for NextJS), and add a index file
|
# Create folder for pages (default for NextJS), and add a index file
|
||||||
|
@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
|||||||
import Link from 'gatsby-link';
|
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.
|
* nodes have code added.
|
||||||
*
|
*
|
||||||
* https://github.com/gatsbyjs/gatsby/issues/5436
|
* https://github.com/gatsbyjs/gatsby/issues/5436
|
||||||
|
Loading…
x
Reference in New Issue
Block a user