Skip to content
This repository was archived by the owner on Feb 6, 2023. It is now read-only.

Commit 642aa11

Browse files
Claudio Procidafacebook-github-bot
authored andcommitted
Normalize copyright headers to BSD + patents grant and drop the year (#1964)
Summary: **Summary** This PR follows up work started by niveditc on #1860 and suspended because of limitations with tooling. Let's give it another try. - Remove all copyright years - Correct copyright headers under `website/` referencing the MIT license - Inline `All rights reserved.` on the same line of the copyright - Fixes copyright headers of examples incorrectly using headers for source files The PR also normalizes copyright headers to BSD with patents grant, as some files were later added with the newest MIT license applied to React and other OSS projects. We should discuss the switch to MIT for Draft.js as well. **Test Plan** Manual inspection of files + `yarn lint` Pull Request resolved: #1964 Differential Revision: D13562427 fbshipit-source-id: 6a15d29ff56a6340ee2a0f13f278b207f1761d28
1 parent fb7882b commit 642aa11

File tree

284 files changed

+840
-849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+840
-849
lines changed

.eslintrc.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/**
2-
* Copyright (c) 2013-present, Facebook, Inc.
3-
* All rights reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
43
*
54
* This source code is licensed under the BSD-style license found in the
65
* LICENSE file in the root directory of this source tree. An additional grant

examples/draft-0-10-0/color/color.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
2+
Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
33
44
This file provided by Facebook is for non-commercial testing and evaluation
55
purposes only. Facebook reserves all rights not expressly granted.

examples/draft-0-10-0/convertFromHTML/convert.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
2+
Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
33
44
This file provided by Facebook is for non-commercial testing and evaluation
55
purposes only. Facebook reserves all rights not expressly granted.

examples/draft-0-10-0/entity/entity.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
2+
Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
33
44
This file provided by Facebook is for non-commercial testing and evaluation
55
purposes only. Facebook reserves all rights not expressly granted.

examples/draft-0-10-0/iframe/iframe.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
2+
Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
33
44
This file provided by Facebook is for non-commercial testing and evaluation
55
purposes only. Facebook reserves all rights not expressly granted.

examples/draft-0-10-0/link/link.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
2+
Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
33
44
This file provided by Facebook is for non-commercial testing and evaluation
55
purposes only. Facebook reserves all rights not expressly granted.

examples/draft-0-10-0/media/media.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
2+
Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
33
44
This file provided by Facebook is for non-commercial testing and evaluation
55
purposes only. Facebook reserves all rights not expressly granted.

examples/draft-0-10-0/plaintext/plaintext.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
2+
Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
33
44
This file provided by Facebook is for non-commercial testing and evaluation
55
purposes only. Facebook reserves all rights not expressly granted.

examples/draft-0-10-0/playground/src/App.css

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
3+
*
4+
* This file provided by Facebook is for non-commercial testing and evaluation
5+
* purposes only. Facebook reserves all rights not expressly granted.
6+
*
7+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
10+
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
11+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
12+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13+
*/
14+
115
:root {
216
--nav-main-height: 50px;
317
--main-background: #f7f7f7;

examples/draft-0-10-0/playground/src/App.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
/**
2-
* Copyright 2004-present Facebook. All Rights Reserved.
2+
* Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
3+
*
4+
* This file provided by Facebook is for non-commercial testing and evaluation
5+
* purposes only. Facebook reserves all rights not expressly granted.
6+
*
7+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
8+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
10+
* FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
11+
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
12+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
313
*
414
* @flow
515
* @format

0 commit comments

Comments
 (0)