Browse Source

Update copyright headers (#3086)

Added and updated copyright headers.

Added some missing Flow types.

Removed an invalid prop-types import.
main
Brian Vaughn 4 years ago
committed by GitHub
parent
commit
3e4f2687c6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      flow-typed/gatsby.js
  2. 4
      flow-typed/glamor.js
  3. 4
      flow-typed/hex2rgba.js
  4. 4
      flow-typed/react-helmet.js
  5. 4
      flow-typed/slugify.js
  6. 2
      gatsby-browser.js
  7. 2
      gatsby-config.js
  8. 2
      gatsby-node.js
  9. 2
      gatsby/createPages.js
  10. 2
      gatsby/onCreateNode.js
  11. 2
      gatsby/onCreatePage.js
  12. 2
      gatsby/onCreateWebpackConfig.js
  13. 4
      plugins/gatsby-remark-header-custom-ids/gatsby-client.js
  14. 4
      plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js
  15. 4
      plugins/gatsby-remark-header-custom-ids/index.js
  16. 4
      plugins/gatsby-remark-use-jsx/index.js
  17. 4
      plugins/gatsby-source-react-error-codes/gatsby-node.js
  18. 4
      plugins/gatsby-transformer-authors-yaml/gatsby-node.js
  19. 4
      plugins/gatsby-transformer-home-example-code/gatsby-node.js
  20. 4
      plugins/gatsby-transformer-versions-yaml/create-redirects.js
  21. 4
      plugins/gatsby-transformer-versions-yaml/gatsby-node.js
  22. 4
      scripts/generateHeadingIDs.js
  23. 2
      src/components/ButtonLink/ButtonLink.js
  24. 2
      src/components/ButtonLink/index.js
  25. 2
      src/components/CodeEditor/CodeEditor.js
  26. 2
      src/components/CodeEditor/index.js
  27. 23
      src/components/CodeExample/CodeExample.js
  28. 6
      src/components/CodeExample/index.js
  29. 2
      src/components/Container/Container.js
  30. 2
      src/components/Container/index.js
  31. 2
      src/components/ErrorDecoder/ErrorDecoder.js
  32. 2
      src/components/ErrorDecoder/index.js
  33. 2
      src/components/Flex/Flex.js
  34. 2
      src/components/Flex/index.js
  35. 2
      src/components/Header/Header.js
  36. 2
      src/components/Header/index.js
  37. 2
      src/components/Layout/Layout.js
  38. 2
      src/components/Layout/index.js
  39. 2
      src/components/LayoutFooter/ExternalFooterLink.js
  40. 2
      src/components/LayoutFooter/Footer.js
  41. 2
      src/components/LayoutFooter/FooterLink.js
  42. 2
      src/components/LayoutFooter/FooterNav.js
  43. 15
      src/components/LayoutFooter/SectionLinks.js
  44. 2
      src/components/LayoutFooter/index.js
  45. 2
      src/components/LayoutHeader/DocSearch.js
  46. 2
      src/components/LayoutHeader/Header.js
  47. 2
      src/components/LayoutHeader/HeaderLink.js
  48. 2
      src/components/LayoutHeader/SearchSvg.js
  49. 2
      src/components/LayoutHeader/index.js
  50. 2
      src/components/MarkdownHeader/MarkdownHeader.js
  51. 2
      src/components/MarkdownHeader/index.js
  52. 2
      src/components/MarkdownPage/MarkdownPage.js
  53. 2
      src/components/MarkdownPage/index.js
  54. 2
      src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js
  55. 2
      src/components/StickyResponsiveSidebar/index.js
  56. 2
      src/components/TitleAndMetaTags/TitleAndMetaTags.js
  57. 2
      src/components/TitleAndMetaTags/index.js
  58. 16
      src/html.js
  59. 2
      src/pages/404.js
  60. 2
      src/pages/acknowledgements.html.js
  61. 2
      src/pages/blog/all.html.js
  62. 2
      src/pages/docs/error-decoder.html.js
  63. 2
      src/pages/index.js
  64. 2
      src/pages/jsx-compiler.html.js
  65. 2
      src/pages/languages.js
  66. 2
      src/pages/versions.js
  67. 2
      src/prism-styles.js
  68. 2
      src/site-constants.js
  69. 2
      src/templates/blog.js
  70. 22
      src/templates/codepen-example.js
  71. 2
      src/templates/community.js
  72. 2
      src/templates/components/ChevronSvg/index.js
  73. 2
      src/templates/components/ExternalLinkSvg/index.js
  74. 2
      src/templates/components/MetaTitle/index.js
  75. 2
      src/templates/components/NavigationFooter/NavigationFooter.js
  76. 2
      src/templates/components/NavigationFooter/index.js
  77. 2
      src/templates/components/Sidebar/ScrollSyncSection.js
  78. 2
      src/templates/components/Sidebar/Section.js
  79. 2
      src/templates/components/Sidebar/Sidebar.js
  80. 2
      src/templates/components/Sidebar/index.js
  81. 2
      src/templates/docs.js
  82. 2
      src/templates/tutorial.js
  83. 2
      src/theme.js
  84. 2
      src/types.js
  85. 2
      src/utils/createCanonicalUrl.js
  86. 2
      src/utils/createLink.js
  87. 2
      src/utils/findSectionForPath.js
  88. 2
      src/utils/isItemActive.js
  89. 2
      src/utils/loadScript.js
  90. 2
      src/utils/patchDOMForGoogleTranslate.js
  91. 2
      src/utils/sectionList.js
  92. 2
      src/utils/slugify.js
  93. 2
      src/utils/toCommaSeparatedList.js
  94. 4
      static/js/jsfiddle-integration-babel.js
  95. 4
      static/js/jsfiddle-integration.js

4
flow-typed/gatsby.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
declare module 'gatsby' { declare module 'gatsby' {
declare module.exports: any; declare module.exports: any;
} }

4
flow-typed/glamor.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
declare module 'glamor' { declare module 'glamor' {
declare module.exports: { declare module.exports: {
css: { css: {

4
flow-typed/hex2rgba.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
declare module 'hex2rgba' { declare module 'hex2rgba' {
declare module.exports: (hex: string, alpha?: number) => string; declare module.exports: (hex: string, alpha?: number) => string;
} }

4
flow-typed/react-helmet.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
declare module 'react-helmet' { declare module 'react-helmet' {
declare module.exports: any; declare module.exports: any;
} }

4
flow-typed/slugify.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
declare module 'slugify' { declare module 'slugify' {
declare module.exports: any; declare module.exports: any;
} }

2
gatsby-browser.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
gatsby-config.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
gatsby-node.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
gatsby/createPages.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
gatsby/onCreateNode.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
gatsby/onCreatePage.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
gatsby/onCreateWebpackConfig.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

4
plugins/gatsby-remark-header-custom-ids/gatsby-client.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
let offsetY = 0; let offsetY = 0;
const getTargetOffset = hash => { const getTargetOffset = hash => {

4
plugins/gatsby-remark-header-custom-ids/gatsby-ssr.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
const React = require(`react`); const React = require(`react`);
const pluginDefaults = { const pluginDefaults = {

4
plugins/gatsby-remark-header-custom-ids/index.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
/*! /*!
* Based on 'gatsby-remark-autolink-headers' * Based on 'gatsby-remark-autolink-headers'
* Original Author: Kyle Mathews <mathews.kyle@gmail.com> * Original Author: Kyle Mathews <mathews.kyle@gmail.com>

4
plugins/gatsby-remark-use-jsx/index.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
const visit = require('unist-util-visit'); const visit = require('unist-util-visit');
// Always treat JS blocks as JSX. // Always treat JS blocks as JSX.

4
plugins/gatsby-source-react-error-codes/gatsby-node.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
const request = require('request-promise'); const request = require('request-promise');
const errorCodesUrl = const errorCodesUrl =

4
plugins/gatsby-transformer-authors-yaml/gatsby-node.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
const readFileSync = require('fs').readFileSync; const readFileSync = require('fs').readFileSync;
const resolve = require('path').resolve; const resolve = require('path').resolve;
const safeLoad = require('js-yaml').safeLoad; const safeLoad = require('js-yaml').safeLoad;

4
plugins/gatsby-transformer-home-example-code/gatsby-node.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
const crypto = require('crypto'); const crypto = require('crypto');
const path = require('path'); const path = require('path');

4
plugins/gatsby-transformer-versions-yaml/create-redirects.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
const {appendFile, exists, readFile, writeFile} = require('fs-extra'); const {appendFile, exists, readFile, writeFile} = require('fs-extra');
const HEADER_COMMENT = `## Created with gatsby-transformer-versions-yaml`; const HEADER_COMMENT = `## Created with gatsby-transformer-versions-yaml`;

4
plugins/gatsby-transformer-versions-yaml/gatsby-node.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
const readFileSync = require('fs').readFileSync; const readFileSync = require('fs').readFileSync;
const resolve = require('path').resolve; const resolve = require('path').resolve;
const safeLoad = require('js-yaml').safeLoad; const safeLoad = require('js-yaml').safeLoad;

4
scripts/generateHeadingIDs.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
const fs = require('fs'); const fs = require('fs');
const GithubSlugger = require('github-slugger'); const GithubSlugger = require('github-slugger');

2
src/components/ButtonLink/ButtonLink.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/ButtonLink/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/CodeEditor/CodeEditor.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/CodeEditor/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

23
src/components/CodeExample/CodeExample.js

@ -1,10 +1,23 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* @flow
*/
import React, {Component} from 'react'; import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {colors, media} from 'theme'; import {colors, media} from 'theme';
import CodeEditor from '../CodeEditor/CodeEditor'; import CodeEditor from '../CodeEditor/CodeEditor';
class CodeExample extends Component { type Props = {|
children: React$Node,
code: boolean,
containerNodeID: string,
id: string,
loaded: boolean,
|};
class CodeExample extends Component<Props> {
render() { render() {
const {children, code, id, containerNodeID, loaded} = this.props; const {children, code, id, containerNodeID, loaded} = this.props;
return ( return (
@ -68,10 +81,4 @@ class CodeExample extends Component {
} }
} }
CodeExample.propTypes = {
children: PropTypes.node,
code: PropTypes.string.isRequired,
loaded: PropTypes.bool.isRequired,
};
export default CodeExample; export default CodeExample;

6
src/components/CodeExample/index.js

@ -1,3 +1,9 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* @flow
*/
import CodeExample from './CodeExample'; import CodeExample from './CodeExample';
export default CodeExample; export default CodeExample;

2
src/components/Container/Container.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/Container/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/ErrorDecoder/ErrorDecoder.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/ErrorDecoder/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/Flex/Flex.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/Flex/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/Header/Header.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/Header/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/Layout/Layout.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/Layout/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/LayoutFooter/ExternalFooterLink.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/LayoutFooter/Footer.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/LayoutFooter/FooterLink.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/LayoutFooter/FooterNav.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

15
src/components/LayoutFooter/SectionLinks.js

@ -1,7 +1,22 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* @flow
*/
import React from 'react'; import React from 'react';
import ExternalFooterLink from './ExternalFooterLink'; import ExternalFooterLink from './ExternalFooterLink';
import FooterLink from './FooterLink'; import FooterLink from './FooterLink';
type Link = {|
title: string,
to: string,
|};
type Props = {|
links: Array<Link>,
|};
const SectionLinks = ({links}: Props) => const SectionLinks = ({links}: Props) =>
links.map(item => { links.map(item => {
if (item.external) { if (item.external) {

2
src/components/LayoutFooter/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/LayoutHeader/DocSearch.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/LayoutHeader/Header.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/LayoutHeader/HeaderLink.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/LayoutHeader/SearchSvg.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/LayoutHeader/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/MarkdownHeader/MarkdownHeader.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/MarkdownHeader/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/MarkdownPage/MarkdownPage.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/MarkdownPage/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/StickyResponsiveSidebar/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/components/TitleAndMetaTags/TitleAndMetaTags.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/components/TitleAndMetaTags/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

16
src/html.js

@ -1,10 +1,24 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* @flow
*/
import React from 'react'; import React from 'react';
const JS_NPM_URLS = [ const JS_NPM_URLS = [
'https://unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js', 'https://unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js',
]; ];
export default class HTML extends React.Component { type Props = {|
htmlAttributes: any,
headComponents: React$Node,
bodyAttributes: any,
body: string,
postBodyComponents: React$Node,
|};
export default class HTML extends React.Component<Props> {
render() { render() {
return ( return (
<html lang="en" {...this.props.htmlAttributes}> <html lang="en" {...this.props.htmlAttributes}>

2
src/pages/404.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/pages/acknowledgements.html.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/pages/blog/all.html.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/pages/docs/error-decoder.html.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/pages/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/pages/jsx-compiler.html.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/pages/languages.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/pages/versions.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/prism-styles.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/site-constants.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @providesModule site-constants * @providesModule site-constants
* @flow * @flow

2
src/templates/blog.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

22
src/templates/codepen-example.js

@ -1,8 +1,22 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* @flow
*/
import React, {Component} from 'react'; import React, {Component} from 'react';
import Container from 'components/Container'; import Container from 'components/Container';
import Layout from 'components/Layout'; import Layout from 'components/Layout';
import {colors} from 'theme'; import {colors} from 'theme';
type Props = {
location: Location,
pageContext: {|
action: string,
payload: string,
|},
};
// Copied over styles from ButtonLink for the submit btn // Copied over styles from ButtonLink for the submit btn
const primaryStyle = { const primaryStyle = {
backgroundColor: colors.brand, backgroundColor: colors.brand,
@ -22,9 +36,11 @@ const primaryStyle = {
fontSize: 16, fontSize: 16,
}; };
class CodepenExample extends Component { class CodepenExample extends Component<Props> {
_form: HTMLFormElement | null = null;
componentDidMount() { componentDidMount() {
this.codepenForm.submit(); ((this._form: any): HTMLFormElement).submit();
} }
render() { render() {
@ -38,7 +54,7 @@ class CodepenExample extends Component {
<form <form
style={{paddingBottom: '50px'}} style={{paddingBottom: '50px'}}
ref={form => { ref={form => {
this.codepenForm = form; this._form = form;
}} }}
action={action} action={action}
method="POST"> method="POST">

2
src/templates/community.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/templates/components/ChevronSvg/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/templates/components/ExternalLinkSvg/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/templates/components/MetaTitle/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/templates/components/NavigationFooter/NavigationFooter.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/templates/components/NavigationFooter/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/templates/components/Sidebar/ScrollSyncSection.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the CC-BY-4.0 license found * This source code is licensed under the CC-BY-4.0 license found
* in the LICENSE file in the root directory of this source tree. * in the LICENSE file in the root directory of this source tree.

2
src/templates/components/Sidebar/Section.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/templates/components/Sidebar/Sidebar.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/templates/components/Sidebar/index.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/templates/docs.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/templates/tutorial.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
*/ */

2
src/theme.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @providesModule theme * @providesModule theme
* @flow * @flow

2
src/types.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/utils/createCanonicalUrl.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/utils/createLink.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/utils/findSectionForPath.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/utils/isItemActive.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/utils/loadScript.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* This source code is licensed under the MIT license found in the * This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree. * LICENSE file in the root directory of this source tree.

2
src/utils/patchDOMForGoogleTranslate.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/utils/sectionList.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/utils/slugify.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

2
src/utils/toCommaSeparatedList.js

@ -1,5 +1,5 @@
/** /**
* Copyright (c) 2013-present, Facebook, Inc. * Copyright (c) Facebook, Inc. and its affiliates.
* *
* @emails react-core * @emails react-core
* @flow * @flow

4
static/js/jsfiddle-integration-babel.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
// Do not delete or move this file. // Do not delete or move this file.
// Many fiddles reference it so we have to keep it here. // Many fiddles reference it so we have to keep it here.
(function() { (function() {

4
static/js/jsfiddle-integration.js

@ -1,3 +1,7 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*/
// Do not delete or move this file. // Do not delete or move this file.
// Many fiddles reference it so we have to keep it here. // Many fiddles reference it so we have to keep it here.
(function() { (function() {

Loading…
Cancel
Save