Skip to content

helphi/pages-graphql-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-playground on Github Pages

scripts

wget https://raw.githubusercontent.com/prisma/graphql-playground/master/packages/graphql-playground-html/withAnimation.html -O index.html
wget http://cdn.jsdelivr.net/npm/graphql-playground-react/build/static/css/index.css
wget http://cdn.jsdelivr.net/npm/graphql-playground-react/build/favicon.png
wget http://cdn.jsdelivr.net/npm/graphql-playground-react/build/static/js/middleware.js
sed -i "s#//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/css/index.css#index.css#g" index.html
sed -i "s#//cdn.jsdelivr.net/npm/graphql-playground-react/build/favicon.png#favicon.png#g" index.html
sed -i "s#//cdn.jsdelivr.net/npm/graphql-playground-react/build/static/js/middleware.js#middleware.js#g" index.html
sed -i 's#// you can add more options here#endpoint: window.location.search.substring(1) ? window.location.search.substring(1) : "https://api.github.com/graphql"#g' index.html

Releases

No releases published

Packages

No packages published

Languages