From 5f804b269db1b8e0f6d5bc44af0a2327e4482619 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sat, 7 Oct 2017 17:10:04 +0800 Subject: [PATCH] Standardize license across source files (#45) --- 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 ed11bc9e..6890e2cc 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 2e3634b0..f923c880 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 d35332ed..448044cd 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 bb1b1b36..3a36ee5a 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 e57ca597..59387770 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 4a34469f..3c0bfbd0 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 2c23b5e0..fefe8c33 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 667cce7a..2483d1b4 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 a3bc54a3..56d3477e 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 fa61a040..8c9e63fe 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 c18aad18..7566d2b7 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 fa65367a..9b8a382c 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 b8a4fd0c..bc195ef5 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 764e5380..e650e9f3 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 674a5c6f..1ed2dd2f 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 a20e5da1..627d1ec8 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 3a00b998..ef7fe180 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 0986758b..54f1a837 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 fa61a040..8c9e63fe 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 01422677..22944674 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 b4298439..e13c710e 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 cb4249a2..c6f2ed2e 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 f0048c12..b7974b7e 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 485cf8d3..e680d18f 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 523aa640..703a00f0 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 9a2ec3e9..a96d3f58 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 39d7e3f6..5554f540 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 8f094098..2688bf3a 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 4626d359..bdf6816e 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 97671948..9ee18bb5 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 0a08100c..bf5a9290 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 741765ba..5b376767 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 33ced643..1724e9c3 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 42c58083..01ffc0ec 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 a57f4da1..ea952d99 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 571fae87..38210430 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 752cb075..91345643 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 49e8c34d..3e658ec8 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 f289acfc..8fe4697e 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 69dedd2d..e7a62701 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 d73fd4d6..b2147aba 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 5dafe577..32b2cfdb 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 3909c183..ac81446b 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 88bac825..f1b4bbf6 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 5c1ffc3e..4abaf1d3 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 076b50aa..1ef5fbac 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 3bdfe44c..2ccfb588 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 d28e989b..604f854b 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 d370b35f..fd2dcfe1 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 16a252db..f21638c8 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';