@@ -68,21 +68,21 @@ export interface Tab {
6868const loading = getLoadingMarkup ( )
6969
7070const 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>
8080`
8181
8282export function renderPlaygroundPage ( options : RenderPageOptions ) {
8383 const extendedOptions : any = {
8484 ...options ,
85- canSaveConfig : false
85+ canSaveConfig : false ,
8686 }
8787 // for compatibility
8888 if ( ( options as any ) . subscriptionsEndpoint ) {
@@ -94,7 +94,7 @@ export function renderPlaygroundPage(options: RenderPageOptions) {
9494 if ( ! extendedOptions . endpoint && ! extendedOptions . configString ) {
9595 /* tslint:disable-next-line */
9696 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.` ,
9898 )
9999 }
100100
@@ -105,10 +105,13 @@ export function renderPlaygroundPage(options: RenderPageOptions) {
105105 <meta charset=utf-8 />
106106 <meta name="viewport" content="user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, minimal-ui">
107107 <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">
108109 <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+ }
112115 </head>
113116 <body>
114117 <style type="text/css">
@@ -169,7 +172,7 @@ export function renderPlaygroundPage(options: RenderPageOptions) {
169172 GraphQLPlayground.init(root, ${ JSON . stringify (
170173 extendedOptions ,
171174 null ,
172- 2
175+ 2 ,
173176 ) } )
174177 })
175178 </script>
0 commit comments