@@ -68,21 +68,21 @@ export interface Tab {
68
68
const loading = getLoadingMarkup ( )
69
69
70
70
const getCdnMarkup = ( { version, cdnUrl = '//cdn.jsdelivr.net/npm' } ) => `
71
- <link rel="stylesheet" href="${ cdnUrl } /graphql-playground-react${ version
72
- ? `@${ version } `
73
- : '' } /build/static/css/index.css" />
74
- <link rel="shortcut icon" href="${ cdnUrl } /graphql-playground-react${ version
75
- ? `@${ version } `
76
- : '' } /build/favicon.png" />
77
- <script src="${ cdnUrl } /graphql-playground-react${ version
78
- ? `@${ version } `
79
- : '' } /build/static/js/middleware.js"></script>
71
+ <link rel="stylesheet" href="${ cdnUrl } /graphql-playground-react${
72
+ version ? `@${ version } ` : ''
73
+ } /build/static/css/index.css" />
74
+ <link rel="shortcut icon" href="${ cdnUrl } /graphql-playground-react${
75
+ version ? `@${ version } ` : ''
76
+ } /build/favicon.png" />
77
+ <script src="${ cdnUrl } /graphql-playground-react${
78
+ version ? `@${ version } ` : ''
79
+ } /build/static/js/middleware.js"></script>
80
80
`
81
81
82
82
export function renderPlaygroundPage ( options : RenderPageOptions ) {
83
83
const extendedOptions : any = {
84
84
...options ,
85
- canSaveConfig : false
85
+ canSaveConfig : false ,
86
86
}
87
87
// for compatibility
88
88
if ( ( options as any ) . subscriptionsEndpoint ) {
@@ -94,7 +94,7 @@ export function renderPlaygroundPage(options: RenderPageOptions) {
94
94
if ( ! extendedOptions . endpoint && ! extendedOptions . configString ) {
95
95
/* tslint:disable-next-line */
96
96
console . warn (
97
- `WARNING: You didn't provide an endpoint and don't have a .graphqlconfig. Make sure you have at least one of them.`
97
+ `WARNING: You didn't provide an endpoint and don't have a .graphqlconfig. Make sure you have at least one of them.` ,
98
98
)
99
99
}
100
100
@@ -105,10 +105,13 @@ export function renderPlaygroundPage(options: RenderPageOptions) {
105
105
<meta charset=utf-8 />
106
106
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui">
107
107
<link rel="shortcut icon" href="https://graphcool-playground.netlify.com/favicon.png">
108
+ <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700|Source+Code+Pro:400,700" rel="stylesheet">
108
109
<title>${ extendedOptions . title || 'GraphQL Playground' } </title>
109
- ${ extendedOptions . env === 'react' || extendedOptions . env === 'electron'
110
- ? ''
111
- : getCdnMarkup ( extendedOptions ) }
110
+ ${
111
+ extendedOptions . env === 'react' || extendedOptions . env === 'electron'
112
+ ? ''
113
+ : getCdnMarkup ( extendedOptions )
114
+ }
112
115
</head>
113
116
<body>
114
117
<style type="text/css">
@@ -169,7 +172,7 @@ export function renderPlaygroundPage(options: RenderPageOptions) {
169
172
GraphQLPlayground.init(root, ${ JSON . stringify (
170
173
extendedOptions ,
171
174
null ,
172
- 2
175
+ 2 ,
173
176
) } )
174
177
})
175
178
</script>
0 commit comments