File tree Expand file tree Collapse file tree 5 files changed +143
-111
lines changed Expand file tree Collapse file tree 5 files changed +143
-111
lines changed Original file line number Diff line number Diff line change
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
+
1
6
directive @relay_test_operation on QUERY | MUTATION | SUBSCRIPTION
2
7
3
8
directive @inline on FRAGMENT_DEFINITION
Original file line number Diff line number Diff line change
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
+
1
6
scalar Int
2
7
scalar Float
3
8
scalar String
Original file line number Diff line number Diff line change 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
+
2
8
namespace graphqlschema;
3
9
4
10
enum FBConstValueKind : byte {
Original file line number Diff line number Diff line change 1
1
#! /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.
2
6
3
7
GITHUB_ROOT=$( dirname $( dirname $( realpath " $0 " ) ) )
4
8
Original file line number Diff line number Diff line change
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
+
1
12
const React = require ( 'react' ) ;
2
- const { Prism : SyntaxHighlighter } = require ( 'react-syntax-highlighter' ) ;
13
+
14
+ const { Prism : SyntaxHighlighter } = require ( 'react-syntax-highlighter' ) ;
3
15
4
16
const tag = '#aa0982' ;
5
17
const attribute = '#4876d6' ;
@@ -10,114 +22,114 @@ const meta = '#aaa';
10
22
const other = '#c96765' ;
11
23
12
24
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
+ } ;
114
126
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
+ } ;
122
134
123
- module . exports = Code ;
135
+ module . exports = Code ;
You can’t perform that action at this time.
0 commit comments