Skip to content

Commit bc55eb6

Browse files
kassensfacebook-github-bot
authored andcommitted
add missing copyright headers
Reviewed By: poteto Differential Revision: D25013210 fbshipit-source-id: df79e6501913c676f4068e9f81cc773072a5bd72
1 parent 29bec45 commit bc55eb6

File tree

5 files changed

+143
-111
lines changed

5 files changed

+143
-111
lines changed

compiler/crates/relay-schema/src/relay-extensions.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
#
3+
# This source code is licensed under the MIT license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
16
directive @relay_test_operation on QUERY | MUTATION | SUBSCRIPTION
27

38
directive @inline on FRAGMENT_DEFINITION

compiler/crates/schema/src/builtins.graphql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Copyright (c) Facebook, Inc. and its affiliates.
2+
#
3+
# This source code is licensed under the MIT license found in the
4+
# LICENSE file in the root directory of this source tree.
5+
16
scalar Int
27
scalar Float
38
scalar String

compiler/crates/schema/src/graphqlschema.fbs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
// graphqlschema.fbs
1+
/*
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
28
namespace graphqlschema;
39

410
enum FBConstValueKind : byte {

scripts/compile-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env bash
2+
# Copyright (c) Facebook, Inc. and its affiliates.
3+
#
4+
# This source code is licensed under the MIT license found in the
5+
# LICENSE file in the root directory of this source tree.
26

37
GITHUB_ROOT=$(dirname $(dirname $(realpath "$0")))
48

website/core/Code.js

Lines changed: 122 additions & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1+
/**
2+
* Copyright (c) Facebook, Inc. and its affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*
7+
* @format
8+
*/
9+
10+
'use strict';
11+
112
const React = require('react');
2-
const { Prism: SyntaxHighlighter } = require('react-syntax-highlighter');
13+
14+
const {Prism: SyntaxHighlighter} = require('react-syntax-highlighter');
315

416
const tag = '#aa0982';
517
const attribute = '#4876d6';
@@ -10,114 +22,114 @@ const meta = '#aaa';
1022
const other = '#c96765';
1123

1224
const theme = {
13-
'code[class*="language-"]': {
14-
whiteSpace: 'pre',
15-
color: plainText,
16-
},
17-
'pre[class*="language-"]': {
18-
whiteSpace: 'pre',
19-
margin: 0,
20-
},
21-
comment: {
22-
color: meta,
23-
},
24-
prolog: {
25-
color: meta,
26-
},
27-
doctype: {
28-
color: meta,
29-
},
30-
cdata: {
31-
color: meta,
32-
},
33-
punctuation: {
34-
color: punctuation,
35-
},
36-
property: {
37-
color: attribute,
38-
},
39-
tag: {
40-
color: tag,
41-
},
42-
boolean: {
43-
color: value,
44-
},
45-
number: {
46-
color: value,
47-
},
48-
constant: {
49-
color: value,
50-
},
51-
symbol: {
52-
color: value,
53-
},
54-
selector: {
55-
color: value,
56-
},
57-
'attr-name': {
58-
color: attribute,
59-
},
60-
string: {
61-
color: value,
62-
},
63-
char: {
64-
color: value,
65-
},
66-
builtin: {
67-
color: other,
68-
},
69-
operator: {
70-
color: other,
71-
},
72-
entity: {
73-
color: other,
74-
cursor: 'help',
75-
},
76-
url: {
77-
color: other,
78-
},
79-
'attr-value': {
80-
color: value,
81-
},
82-
keyword: {
83-
color: value,
84-
},
85-
regex: {
86-
color: other,
87-
},
88-
important: {
89-
color: other,
90-
fontWeight: 'bold',
91-
},
92-
bold: {
93-
fontWeight: 'bold',
94-
},
95-
italic: {
96-
fontStyle: 'italic',
97-
},
98-
inserted: {
99-
color: 'green',
100-
},
101-
deleted: {
102-
color: 'red',
103-
},
104-
'class-name': {
105-
color: attribute
106-
},
107-
'maybe-class-name': {
108-
color: attribute
109-
},
110-
parameter: {
111-
color: attribute
112-
}
113-
}
25+
'code[class*="language-"]': {
26+
whiteSpace: 'pre',
27+
color: plainText,
28+
},
29+
'pre[class*="language-"]': {
30+
whiteSpace: 'pre',
31+
margin: 0,
32+
},
33+
comment: {
34+
color: meta,
35+
},
36+
prolog: {
37+
color: meta,
38+
},
39+
doctype: {
40+
color: meta,
41+
},
42+
cdata: {
43+
color: meta,
44+
},
45+
punctuation: {
46+
color: punctuation,
47+
},
48+
property: {
49+
color: attribute,
50+
},
51+
tag: {
52+
color: tag,
53+
},
54+
boolean: {
55+
color: value,
56+
},
57+
number: {
58+
color: value,
59+
},
60+
constant: {
61+
color: value,
62+
},
63+
symbol: {
64+
color: value,
65+
},
66+
selector: {
67+
color: value,
68+
},
69+
'attr-name': {
70+
color: attribute,
71+
},
72+
string: {
73+
color: value,
74+
},
75+
char: {
76+
color: value,
77+
},
78+
builtin: {
79+
color: other,
80+
},
81+
operator: {
82+
color: other,
83+
},
84+
entity: {
85+
color: other,
86+
cursor: 'help',
87+
},
88+
url: {
89+
color: other,
90+
},
91+
'attr-value': {
92+
color: value,
93+
},
94+
keyword: {
95+
color: value,
96+
},
97+
regex: {
98+
color: other,
99+
},
100+
important: {
101+
color: other,
102+
fontWeight: 'bold',
103+
},
104+
bold: {
105+
fontWeight: 'bold',
106+
},
107+
italic: {
108+
fontStyle: 'italic',
109+
},
110+
inserted: {
111+
color: 'green',
112+
},
113+
deleted: {
114+
color: 'red',
115+
},
116+
'class-name': {
117+
color: attribute,
118+
},
119+
'maybe-class-name': {
120+
color: attribute,
121+
},
122+
parameter: {
123+
color: attribute,
124+
},
125+
};
114126

115-
const Code = ({ children }) => {
116-
return (
117-
<SyntaxHighlighter language="jsx" style={theme}>
118-
{children}
119-
</SyntaxHighlighter>
120-
);
121-
}
127+
const Code = ({children}) => {
128+
return (
129+
<SyntaxHighlighter language="jsx" style={theme}>
130+
{children}
131+
</SyntaxHighlighter>
132+
);
133+
};
122134

123-
module.exports = Code;
135+
module.exports = Code;

0 commit comments

Comments
 (0)