Skip to content

Commit

Permalink
add missing copyright headers
Browse files Browse the repository at this point in the history
Reviewed By: poteto

Differential Revision: D25013210

fbshipit-source-id: df79e6501913c676f4068e9f81cc773072a5bd72
  • Loading branch information
kassens authored and facebook-github-bot committed Nov 17, 2020
1 parent 29bec45 commit bc55eb6
Show file tree
Hide file tree
Showing 5 changed files with 143 additions and 111 deletions.
5 changes: 5 additions & 0 deletions compiler/crates/relay-schema/src/relay-extensions.graphql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Facebook, 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.

directive @relay_test_operation on QUERY | MUTATION | SUBSCRIPTION

directive @inline on FRAGMENT_DEFINITION
Expand Down
5 changes: 5 additions & 0 deletions compiler/crates/schema/src/builtins.graphql
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# Copyright (c) Facebook, 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.

scalar Int
scalar Float
scalar String
Expand Down
8 changes: 7 additions & 1 deletion compiler/crates/schema/src/graphqlschema.fbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// graphqlschema.fbs
/*
* Copyright (c) Facebook, 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.
*/

namespace graphqlschema;

enum FBConstValueKind : byte {
Expand Down
4 changes: 4 additions & 0 deletions scripts/compile-tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env bash
# Copyright (c) Facebook, 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.

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

Expand Down
232 changes: 122 additions & 110 deletions website/core/Code.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
/**
* Copyright (c) Facebook, 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.
*
* @format
*/

'use strict';

const React = require('react');
const { Prism: SyntaxHighlighter } = require('react-syntax-highlighter');

const {Prism: SyntaxHighlighter} = require('react-syntax-highlighter');

const tag = '#aa0982';
const attribute = '#4876d6';
Expand All @@ -10,114 +22,114 @@ const meta = '#aaa';
const other = '#c96765';

const theme = {
'code[class*="language-"]': {
whiteSpace: 'pre',
color: plainText,
},
'pre[class*="language-"]': {
whiteSpace: 'pre',
margin: 0,
},
comment: {
color: meta,
},
prolog: {
color: meta,
},
doctype: {
color: meta,
},
cdata: {
color: meta,
},
punctuation: {
color: punctuation,
},
property: {
color: attribute,
},
tag: {
color: tag,
},
boolean: {
color: value,
},
number: {
color: value,
},
constant: {
color: value,
},
symbol: {
color: value,
},
selector: {
color: value,
},
'attr-name': {
color: attribute,
},
string: {
color: value,
},
char: {
color: value,
},
builtin: {
color: other,
},
operator: {
color: other,
},
entity: {
color: other,
cursor: 'help',
},
url: {
color: other,
},
'attr-value': {
color: value,
},
keyword: {
color: value,
},
regex: {
color: other,
},
important: {
color: other,
fontWeight: 'bold',
},
bold: {
fontWeight: 'bold',
},
italic: {
fontStyle: 'italic',
},
inserted: {
color: 'green',
},
deleted: {
color: 'red',
},
'class-name': {
color: attribute
},
'maybe-class-name': {
color: attribute
},
parameter: {
color: attribute
}
}
'code[class*="language-"]': {
whiteSpace: 'pre',
color: plainText,
},
'pre[class*="language-"]': {
whiteSpace: 'pre',
margin: 0,
},
comment: {
color: meta,
},
prolog: {
color: meta,
},
doctype: {
color: meta,
},
cdata: {
color: meta,
},
punctuation: {
color: punctuation,
},
property: {
color: attribute,
},
tag: {
color: tag,
},
boolean: {
color: value,
},
number: {
color: value,
},
constant: {
color: value,
},
symbol: {
color: value,
},
selector: {
color: value,
},
'attr-name': {
color: attribute,
},
string: {
color: value,
},
char: {
color: value,
},
builtin: {
color: other,
},
operator: {
color: other,
},
entity: {
color: other,
cursor: 'help',
},
url: {
color: other,
},
'attr-value': {
color: value,
},
keyword: {
color: value,
},
regex: {
color: other,
},
important: {
color: other,
fontWeight: 'bold',
},
bold: {
fontWeight: 'bold',
},
italic: {
fontStyle: 'italic',
},
inserted: {
color: 'green',
},
deleted: {
color: 'red',
},
'class-name': {
color: attribute,
},
'maybe-class-name': {
color: attribute,
},
parameter: {
color: attribute,
},
};

const Code = ({ children }) => {
return (
<SyntaxHighlighter language="jsx" style={theme}>
{children}
</SyntaxHighlighter>
);
}
const Code = ({children}) => {
return (
<SyntaxHighlighter language="jsx" style={theme}>
{children}
</SyntaxHighlighter>
);
};

module.exports = Code;
module.exports = Code;

0 comments on commit bc55eb6

Please sign in to comment.