From b943d450e1fcc915ff50f3363e5d9fb15a1e3c20 Mon Sep 17 00:00:00 2001 From: Timothy Yung Date: Fri, 30 Sep 2022 00:49:39 -0700 Subject: [PATCH] Apply updated copyright to `*.js` files (#3352) --- .alexrc.js | 2 +- LICENSE | 2 +- plugins/remark-snackplayer/src/index.js | 8 ++++++++ plugins/remark-snackplayer/tests/index.js | 7 +++++++ sync-api-docs/extractDocsFromRN.js | 2 +- sync-api-docs/generateMarkdown.js | 2 +- sync-api-docs/magic.js | 2 +- sync-api-docs/methodFormatter.js | 2 +- sync-api-docs/preprocessGeneratedApiDocs.js | 2 +- sync-api-docs/propFormatter.js | 2 +- sync-api-docs/sync-api-docs.js | 2 +- sync-api-docs/utils.js | 2 +- website/core/DocsRating.js | 7 +++++++ website/core/PrismTheme.js | 7 +++++++ website/core/TableRowWithCodeBlock.js | 7 +++++++ website/core/TabsConstants.js | 7 +++++++ website/image-check.js | 2 +- website/snackPlayerInitializer.js | 2 +- website/src/pages/animations/_dissectionAnimation.js | 7 +++++++ website/src/pages/animations/_headerAnimation.js | 7 +++++++ website/src/pages/index.js | 7 +++++++ website/src/pages/showcase.js | 2 +- website/src/pages/versions.js | 2 +- website/src/theme/BlogSidebar/Desktop/index.js | 7 +++++++ website/src/theme/BlogSidebar/Mobile/index.js | 7 +++++++ website/src/theme/DocItemFooter/index.js | 2 +- website/src/theme/Icon/ExternalLink/index.js | 7 +++++++ .../src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js | 3 ++- 28 files changed, 102 insertions(+), 16 deletions(-) diff --git a/.alexrc.js b/.alexrc.js index 7b4df1dddea..d87dcaad46a 100644 --- a/.alexrc.js +++ b/.alexrc.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/LICENSE b/LICENSE index b96dcb0480a..1b277b98b67 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) Facebook, Inc. and its affiliates. +Copyright (c) Meta Platforms, Inc. and its affiliates. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/plugins/remark-snackplayer/src/index.js b/plugins/remark-snackplayer/src/index.js index f758496870c..f43679a1cad 100644 --- a/plugins/remark-snackplayer/src/index.js +++ b/plugins/remark-snackplayer/src/index.js @@ -1,4 +1,12 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + 'use strict'; + const visit = require('unist-util-visit-parents'); const u = require('unist-builder'); const dedent = require('dedent'); diff --git a/plugins/remark-snackplayer/tests/index.js b/plugins/remark-snackplayer/tests/index.js index 5ec9ffb7029..919973279ce 100644 --- a/plugins/remark-snackplayer/tests/index.js +++ b/plugins/remark-snackplayer/tests/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const path = require('path'); const fs = require('fs'); const test = require('tape'); diff --git a/sync-api-docs/extractDocsFromRN.js b/sync-api-docs/extractDocsFromRN.js index 6a1b7e20baf..652e597b180 100644 --- a/sync-api-docs/extractDocsFromRN.js +++ b/sync-api-docs/extractDocsFromRN.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/sync-api-docs/generateMarkdown.js b/sync-api-docs/generateMarkdown.js index 352a8bb1073..13948150ebf 100644 --- a/sync-api-docs/generateMarkdown.js +++ b/sync-api-docs/generateMarkdown.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/sync-api-docs/magic.js b/sync-api-docs/magic.js index 8a9fec95dc2..0e83310990d 100644 --- a/sync-api-docs/magic.js +++ b/sync-api-docs/magic.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/sync-api-docs/methodFormatter.js b/sync-api-docs/methodFormatter.js index 54c62d9db41..38a4bbf23d6 100644 --- a/sync-api-docs/methodFormatter.js +++ b/sync-api-docs/methodFormatter.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/sync-api-docs/preprocessGeneratedApiDocs.js b/sync-api-docs/preprocessGeneratedApiDocs.js index 46f52bba8e5..d189dbb1117 100644 --- a/sync-api-docs/preprocessGeneratedApiDocs.js +++ b/sync-api-docs/preprocessGeneratedApiDocs.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/sync-api-docs/propFormatter.js b/sync-api-docs/propFormatter.js index a954e4ca488..1768904d67a 100644 --- a/sync-api-docs/propFormatter.js +++ b/sync-api-docs/propFormatter.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/sync-api-docs/sync-api-docs.js b/sync-api-docs/sync-api-docs.js index e5d6db8e8f3..b404dabaa79 100644 --- a/sync-api-docs/sync-api-docs.js +++ b/sync-api-docs/sync-api-docs.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/sync-api-docs/utils.js b/sync-api-docs/utils.js index ea4433a7873..fa85897026f 100644 --- a/sync-api-docs/utils.js +++ b/sync-api-docs/utils.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/website/core/DocsRating.js b/website/core/DocsRating.js index b7555841081..de081edf94c 100644 --- a/website/core/DocsRating.js +++ b/website/core/DocsRating.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment'; import React, {useState} from 'react'; diff --git a/website/core/PrismTheme.js b/website/core/PrismTheme.js index 7f8c4e43d24..dda338c1ab0 100644 --- a/website/core/PrismTheme.js +++ b/website/core/PrismTheme.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + const theme = { plain: { color: '#FFFFFF', diff --git a/website/core/TableRowWithCodeBlock.js b/website/core/TableRowWithCodeBlock.js index c66eab9cd09..2989c55baa4 100644 --- a/website/core/TableRowWithCodeBlock.js +++ b/website/core/TableRowWithCodeBlock.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React, {useState} from 'react'; import CodeBlock from '@theme/CodeBlock'; diff --git a/website/core/TabsConstants.js b/website/core/TabsConstants.js index 9b16ebbd69c..545ce95f4f8 100644 --- a/website/core/TabsConstants.js +++ b/website/core/TabsConstants.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import ExecutionEnvironment from '@docusaurus/ExecutionEnvironment'; const isMacOS = ExecutionEnvironment.canUseDOM diff --git a/website/image-check.js b/website/image-check.js index d54b085cfde..bbfcbd8dce6 100644 --- a/website/image-check.js +++ b/website/image-check.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/website/snackPlayerInitializer.js b/website/snackPlayerInitializer.js index 45960786037..3fb9a38a7aa 100644 --- a/website/snackPlayerInitializer.js +++ b/website/snackPlayerInitializer.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/website/src/pages/animations/_dissectionAnimation.js b/website/src/pages/animations/_dissectionAnimation.js index ec523a82e88..b4cbcdea4d8 100644 --- a/website/src/pages/animations/_dissectionAnimation.js +++ b/website/src/pages/animations/_dissectionAnimation.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export function setupDissectionAnimation() { const section = document.querySelector('.NativeDevelopment'); const dissection = document.querySelector('.NativeDevelopment .dissection'); diff --git a/website/src/pages/animations/_headerAnimation.js b/website/src/pages/animations/_headerAnimation.js index c2626709779..f25ee6c2e9a 100644 --- a/website/src/pages/animations/_headerAnimation.js +++ b/website/src/pages/animations/_headerAnimation.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + export function setupHeaderAnimations() { const steps = ['full', 'mobile', 'desktop', 'laptop', 'mobile2', 'full2']; const intervals = [1250, 1500, 1500, 1500, 1500, 1250]; diff --git a/website/src/pages/index.js b/website/src/pages/index.js index 685dc3fdad6..89e801c20f9 100644 --- a/website/src/pages/index.js +++ b/website/src/pages/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React, {useEffect} from 'react'; import GitHubButton from 'react-github-btn'; diff --git a/website/src/pages/showcase.js b/website/src/pages/showcase.js index 2b66f83756f..8cd2f89a14a 100644 --- a/website/src/pages/showcase.js +++ b/website/src/pages/showcase.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/website/src/pages/versions.js b/website/src/pages/versions.js index 36a8117bfc4..3caf1635844 100644 --- a/website/src/pages/versions.js +++ b/website/src/pages/versions.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/website/src/theme/BlogSidebar/Desktop/index.js b/website/src/theme/BlogSidebar/Desktop/index.js index f76a217cf2d..a3ad8efe070 100644 --- a/website/src/theme/BlogSidebar/Desktop/index.js +++ b/website/src/theme/BlogSidebar/Desktop/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import clsx from 'clsx'; import Link from '@docusaurus/Link'; diff --git a/website/src/theme/BlogSidebar/Mobile/index.js b/website/src/theme/BlogSidebar/Mobile/index.js index e73cba408eb..13d1e60a656 100644 --- a/website/src/theme/BlogSidebar/Mobile/index.js +++ b/website/src/theme/BlogSidebar/Mobile/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import Link from '@docusaurus/Link'; import {NavbarSecondaryMenuFiller} from '@docusaurus/theme-common'; diff --git a/website/src/theme/DocItemFooter/index.js b/website/src/theme/DocItemFooter/index.js index 05e99f4b26d..650491dc280 100644 --- a/website/src/theme/DocItemFooter/index.js +++ b/website/src/theme/DocItemFooter/index.js @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/website/src/theme/Icon/ExternalLink/index.js b/website/src/theme/Icon/ExternalLink/index.js index d1e381488ab..ef89335e328 100644 --- a/website/src/theme/Icon/ExternalLink/index.js +++ b/website/src/theme/Icon/ExternalLink/index.js @@ -1,3 +1,10 @@ +/** + * Copyright (c) Meta Platforms, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + import React from 'react'; import styles from './styles.module.css'; diff --git a/website/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js b/website/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js index a5b95e90fc7..579364f5892 100644 --- a/website/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js +++ b/website/src/theme/NavbarItem/DocsVersionDropdownNavbarItem.js @@ -1,9 +1,10 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ + import React from 'react'; import DefaultNavbarItem from '@theme/NavbarItem/DefaultNavbarItem'; import DropdownNavbarItem from '@theme/NavbarItem/DropdownNavbarItem';