Closed simonw closed 3 years ago
For the first version of this I'll grab those exact files and serve them as-is.
Need to decide where to put notes on the licenses for them. Probably bundled in the static
folder.
They add up to over a MB!
7.2K fetch.min.js
39K graphiql.css
997K graphiql.min.js
92K react-dom.production.min.js
6.5K react.production.min.js
fetch.min.js
is covered by the MIT license: https://github.com/github/fetch/blob/master/LICENSE
graphiql.css
and graphiql.min.js
are MIT license: https://github.com/graphql/graphiql/blob/main/LICENSE
react-dom.production.min.js
and react.production.min.js
are MIT license: https://github.com/facebook/react/blob/master/LICENSE
It's currently loaded from a CDN:
https://github.com/simonw/datasette-graphql/blob/038834cba317c5a22d2441488c54d1d201d81798/datasette_graphql/templates/graphiql.html#L16-L20
Would be better to bundle it with the plugin, like with
datasette-leaflet
.