From 1ea63221719d1e29cead4bdd55541628b2389efb Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sat, 7 Oct 2017 13:20:25 +0800 Subject: [PATCH] Standardize license across source files --- gatsby-node.js | 2 +- src/components/CodeEditor/CodeEditor.js | 2 +- src/components/CodeEditor/index.js | 2 +- src/components/Container/index.js | 2 +- src/components/ErrorDecoder/ErrorDecoder.js | 2 +- src/components/ErrorDecoder/index.js | 2 +- src/components/Flex/Flex.js | 2 +- src/components/Flex/index.js | 2 +- src/components/Header/Header.js | 2 +- src/components/Header/index.js | 2 +- src/components/LayoutFooter/ExternalFooterLink.js | 2 +- src/components/LayoutFooter/Footer.js | 2 +- src/components/LayoutFooter/FooterLink.js | 2 +- src/components/LayoutFooter/FooterNav.js | 2 +- src/components/LayoutFooter/index.js | 2 +- src/components/LayoutHeader/Header.js | 2 +- src/components/LayoutHeader/HeaderLink.js | 2 +- src/components/LayoutHeader/SearchSvg.js | 2 +- src/components/LayoutHeader/index.js | 2 +- src/components/MarkdownHeader/MarkdownHeader.js | 2 +- src/components/MarkdownHeader/index.js | 2 +- src/components/MarkdownPage/MarkdownPage.js | 2 +- src/components/MarkdownPage/index.js | 2 +- .../StickyResponsiveSidebar/StickyResponsiveSidebar.js | 2 +- src/components/StickyResponsiveSidebar/index.js | 2 +- src/components/TitleAndMetaTags/TitleAndMetaTags.js | 2 +- src/components/TitleAndMetaTags/index.js | 2 +- src/layouts/index.js | 2 +- src/pages/acknowledgements.html.js | 2 +- src/pages/docs/error-decoder.html.js | 2 +- src/templates/blog.js | 2 +- src/templates/community.js | 2 +- src/templates/components/ButtonLink/ButtonLink.js | 2 +- src/templates/components/ButtonLink/index.js | 2 +- src/templates/components/ChevronSvg/index.js | 2 +- src/templates/components/ExternalLinkSvg/index.js | 2 +- src/templates/components/MetaTitle/index.js | 2 +- .../components/NavigationFooter/NavigationFooter.js | 2 +- src/templates/components/NavigationFooter/index.js | 2 +- src/templates/components/Sidebar/index.js | 2 +- src/templates/docs.js | 2 +- src/templates/home.js | 2 +- src/templates/tutorial.js | 2 +- src/utils/createLink.js | 10 ++++------ src/utils/findSectionForPath.js | 2 +- src/utils/isItemActive.js | 2 +- src/utils/mountCodeExample.js | 2 +- src/utils/sectionList.js | 10 ++++------ src/utils/slugify.js | 2 +- src/utils/toCommaSeparatedList.js | 2 +- 50 files changed, 56 insertions(+), 60 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index ed11bc9e657..6890e2cc4df 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/CodeEditor/CodeEditor.js b/src/components/CodeEditor/CodeEditor.js index 2e3634b0617..f923c880a40 100644 --- a/src/components/CodeEditor/CodeEditor.js +++ b/src/components/CodeEditor/CodeEditor.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/CodeEditor/index.js b/src/components/CodeEditor/index.js index d35332ed023..448044cd6ec 100644 --- a/src/components/CodeEditor/index.js +++ b/src/components/CodeEditor/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/Container/index.js b/src/components/Container/index.js index bb1b1b36405..3a36ee5a73c 100644 --- a/src/components/Container/index.js +++ b/src/components/Container/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/ErrorDecoder/ErrorDecoder.js b/src/components/ErrorDecoder/ErrorDecoder.js index e57ca597a9b..5938777076a 100644 --- a/src/components/ErrorDecoder/ErrorDecoder.js +++ b/src/components/ErrorDecoder/ErrorDecoder.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/ErrorDecoder/index.js b/src/components/ErrorDecoder/index.js index 4a34469fc02..3c0bfbd0faf 100644 --- a/src/components/ErrorDecoder/index.js +++ b/src/components/ErrorDecoder/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/Flex/Flex.js b/src/components/Flex/Flex.js index 2c23b5e0118..fefe8c3310d 100644 --- a/src/components/Flex/Flex.js +++ b/src/components/Flex/Flex.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/Flex/index.js b/src/components/Flex/index.js index 667cce7a71e..2483d1b4d32 100644 --- a/src/components/Flex/index.js +++ b/src/components/Flex/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/Header/Header.js b/src/components/Header/Header.js index a3bc54a3956..56d3477e1db 100644 --- a/src/components/Header/Header.js +++ b/src/components/Header/Header.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/Header/index.js b/src/components/Header/index.js index fa61a040769..8c9e63fec9b 100644 --- a/src/components/Header/index.js +++ b/src/components/Header/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/LayoutFooter/ExternalFooterLink.js b/src/components/LayoutFooter/ExternalFooterLink.js index c18aad1805f..7566d2b70ca 100644 --- a/src/components/LayoutFooter/ExternalFooterLink.js +++ b/src/components/LayoutFooter/ExternalFooterLink.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/LayoutFooter/Footer.js b/src/components/LayoutFooter/Footer.js index fa65367a107..9b8a382cb00 100644 --- a/src/components/LayoutFooter/Footer.js +++ b/src/components/LayoutFooter/Footer.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/LayoutFooter/FooterLink.js b/src/components/LayoutFooter/FooterLink.js index b8a4fd0c959..bc195ef5749 100644 --- a/src/components/LayoutFooter/FooterLink.js +++ b/src/components/LayoutFooter/FooterLink.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/LayoutFooter/FooterNav.js b/src/components/LayoutFooter/FooterNav.js index 764e53805f0..e650e9f3430 100644 --- a/src/components/LayoutFooter/FooterNav.js +++ b/src/components/LayoutFooter/FooterNav.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/LayoutFooter/index.js b/src/components/LayoutFooter/index.js index 674a5c6f6a4..1ed2dd2fd1e 100644 --- a/src/components/LayoutFooter/index.js +++ b/src/components/LayoutFooter/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/LayoutHeader/Header.js b/src/components/LayoutHeader/Header.js index a20e5da1259..627d1ec8fa8 100644 --- a/src/components/LayoutHeader/Header.js +++ b/src/components/LayoutHeader/Header.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/LayoutHeader/HeaderLink.js b/src/components/LayoutHeader/HeaderLink.js index 3a00b9984b8..ef7fe18092a 100644 --- a/src/components/LayoutHeader/HeaderLink.js +++ b/src/components/LayoutHeader/HeaderLink.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/LayoutHeader/SearchSvg.js b/src/components/LayoutHeader/SearchSvg.js index 0986758b977..54f1a837388 100644 --- a/src/components/LayoutHeader/SearchSvg.js +++ b/src/components/LayoutHeader/SearchSvg.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/LayoutHeader/index.js b/src/components/LayoutHeader/index.js index fa61a040769..8c9e63fec9b 100644 --- a/src/components/LayoutHeader/index.js +++ b/src/components/LayoutHeader/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/MarkdownHeader/MarkdownHeader.js b/src/components/MarkdownHeader/MarkdownHeader.js index 01422677889..22944674d0f 100644 --- a/src/components/MarkdownHeader/MarkdownHeader.js +++ b/src/components/MarkdownHeader/MarkdownHeader.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/MarkdownHeader/index.js b/src/components/MarkdownHeader/index.js index b4298439819..e13c710efb8 100644 --- a/src/components/MarkdownHeader/index.js +++ b/src/components/MarkdownHeader/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/MarkdownPage/MarkdownPage.js b/src/components/MarkdownPage/MarkdownPage.js index cb4249a2768..c6f2ed2ecd7 100644 --- a/src/components/MarkdownPage/MarkdownPage.js +++ b/src/components/MarkdownPage/MarkdownPage.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/MarkdownPage/index.js b/src/components/MarkdownPage/index.js index f0048c12082..b7974b7e0c5 100644 --- a/src/components/MarkdownPage/index.js +++ b/src/components/MarkdownPage/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js b/src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js index 485cf8d3f1e..e680d18fedf 100644 --- a/src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js +++ b/src/components/StickyResponsiveSidebar/StickyResponsiveSidebar.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/StickyResponsiveSidebar/index.js b/src/components/StickyResponsiveSidebar/index.js index 523aa6402de..703a00f084c 100644 --- a/src/components/StickyResponsiveSidebar/index.js +++ b/src/components/StickyResponsiveSidebar/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/TitleAndMetaTags/TitleAndMetaTags.js b/src/components/TitleAndMetaTags/TitleAndMetaTags.js index 9a2ec3e9678..a96d3f584e1 100644 --- a/src/components/TitleAndMetaTags/TitleAndMetaTags.js +++ b/src/components/TitleAndMetaTags/TitleAndMetaTags.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/components/TitleAndMetaTags/index.js b/src/components/TitleAndMetaTags/index.js index 39d7e3f60c0..5554f5401ae 100644 --- a/src/components/TitleAndMetaTags/index.js +++ b/src/components/TitleAndMetaTags/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/layouts/index.js b/src/layouts/index.js index 8f09409853f..2688bf3a7e5 100644 --- a/src/layouts/index.js +++ b/src/layouts/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/pages/acknowledgements.html.js b/src/pages/acknowledgements.html.js index 4626d3597a8..bdf6816e5c7 100644 --- a/src/pages/acknowledgements.html.js +++ b/src/pages/acknowledgements.html.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/pages/docs/error-decoder.html.js b/src/pages/docs/error-decoder.html.js index 976719488be..9ee18bb58af 100644 --- a/src/pages/docs/error-decoder.html.js +++ b/src/pages/docs/error-decoder.html.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/blog.js b/src/templates/blog.js index 0a08100c317..bf5a9290efc 100644 --- a/src/templates/blog.js +++ b/src/templates/blog.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/community.js b/src/templates/community.js index 741765ba50a..5b37676769f 100644 --- a/src/templates/community.js +++ b/src/templates/community.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/components/ButtonLink/ButtonLink.js b/src/templates/components/ButtonLink/ButtonLink.js index 33ced643cea..1724e9c303b 100644 --- a/src/templates/components/ButtonLink/ButtonLink.js +++ b/src/templates/components/ButtonLink/ButtonLink.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/components/ButtonLink/index.js b/src/templates/components/ButtonLink/index.js index 42c58083aca..01ffc0ec890 100644 --- a/src/templates/components/ButtonLink/index.js +++ b/src/templates/components/ButtonLink/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/components/ChevronSvg/index.js b/src/templates/components/ChevronSvg/index.js index a57f4da1ad3..ea952d993ce 100644 --- a/src/templates/components/ChevronSvg/index.js +++ b/src/templates/components/ChevronSvg/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/components/ExternalLinkSvg/index.js b/src/templates/components/ExternalLinkSvg/index.js index 571fae870a6..38210430e22 100644 --- a/src/templates/components/ExternalLinkSvg/index.js +++ b/src/templates/components/ExternalLinkSvg/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/components/MetaTitle/index.js b/src/templates/components/MetaTitle/index.js index 752cb0758e1..913456433e0 100644 --- a/src/templates/components/MetaTitle/index.js +++ b/src/templates/components/MetaTitle/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/components/NavigationFooter/NavigationFooter.js b/src/templates/components/NavigationFooter/NavigationFooter.js index 49e8c34d155..3e658ec8222 100644 --- a/src/templates/components/NavigationFooter/NavigationFooter.js +++ b/src/templates/components/NavigationFooter/NavigationFooter.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/components/NavigationFooter/index.js b/src/templates/components/NavigationFooter/index.js index f289acfcd60..8fe4697ec7c 100644 --- a/src/templates/components/NavigationFooter/index.js +++ b/src/templates/components/NavigationFooter/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/components/Sidebar/index.js b/src/templates/components/Sidebar/index.js index 69dedd2d569..e7a62701621 100644 --- a/src/templates/components/Sidebar/index.js +++ b/src/templates/components/Sidebar/index.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/docs.js b/src/templates/docs.js index d73fd4d6c60..b2147aba333 100644 --- a/src/templates/docs.js +++ b/src/templates/docs.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/home.js b/src/templates/home.js index 5dafe57741f..32b2cfdbe96 100644 --- a/src/templates/home.js +++ b/src/templates/home.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/templates/tutorial.js b/src/templates/tutorial.js index 3909c183d39..ac81446b76c 100644 --- a/src/templates/tutorial.js +++ b/src/templates/tutorial.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/utils/createLink.js b/src/utils/createLink.js index 88bac825133..f1b4bbf66eb 100644 --- a/src/utils/createLink.js +++ b/src/utils/createLink.js @@ -1,13 +1,11 @@ /** - * Copyright 2015-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * 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. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/utils/findSectionForPath.js b/src/utils/findSectionForPath.js index 5c1ffc3e465..4abaf1d3c3d 100644 --- a/src/utils/findSectionForPath.js +++ b/src/utils/findSectionForPath.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/utils/isItemActive.js b/src/utils/isItemActive.js index 076b50aaa7a..1ef5fbac457 100644 --- a/src/utils/isItemActive.js +++ b/src/utils/isItemActive.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/utils/mountCodeExample.js b/src/utils/mountCodeExample.js index 3bdfe44cacc..2ccfb5889b1 100644 --- a/src/utils/mountCodeExample.js +++ b/src/utils/mountCodeExample.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/utils/sectionList.js b/src/utils/sectionList.js index d28e989b45c..604f854ba5a 100644 --- a/src/utils/sectionList.js +++ b/src/utils/sectionList.js @@ -1,13 +1,11 @@ /** - * Copyright 2015-present, Facebook, Inc. - * All rights reserved. + * Copyright (c) 2013-present, Facebook, Inc. * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. + * 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. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/utils/slugify.js b/src/utils/slugify.js index d370b35f592..fd2dcfe1e88 100644 --- a/src/utils/slugify.js +++ b/src/utils/slugify.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict'; diff --git a/src/utils/toCommaSeparatedList.js b/src/utils/toCommaSeparatedList.js index 16a252db0e2..f21638c8ba9 100644 --- a/src/utils/toCommaSeparatedList.js +++ b/src/utils/toCommaSeparatedList.js @@ -5,7 +5,7 @@ * in the LICENSE file in the root directory of this source tree. * * @emails react-core -*/ + */ 'use strict';