Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to GraphiQL v2 #93

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion datasette_graphql/static/fetch_latest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
from pathlib import Path
import httpx


DIR = Path(__file__).parent

urls = (
"https://unpkg.com/react/umd/react.production.min.js",
"https://unpkg.com/react-dom/umd/react-dom.production.min.js",
Expand All @@ -16,7 +20,7 @@ def fetch(url):
# Insert version into filename
bits = filename.split(".min.")
version_filename = f".{version}.min.".join(bits)
open(version_filename, "w").write(content)
(DIR / version_filename).write_text(content)
print(version_filename)


Expand Down
12 changes: 0 additions & 12 deletions datasette_graphql/static/graphiql.1.5.1.min.css

This file was deleted.

11 changes: 0 additions & 11 deletions datasette_graphql/static/graphiql.1.5.1.min.js

This file was deleted.

337 changes: 337 additions & 0 deletions datasette_graphql/static/graphiql.2.4.2.min.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions datasette_graphql/static/graphiql.2.4.2.min.js

Large diffs are not rendered by default.

245 changes: 0 additions & 245 deletions datasette_graphql/static/react-dom.production.17.0.2.min.js

This file was deleted.

267 changes: 267 additions & 0 deletions datasette_graphql/static/react-dom.production.18.2.0.min.js

Large diffs are not rendered by default.

31 changes: 0 additions & 31 deletions datasette_graphql/static/react.production.17.0.2.min.js

This file was deleted.

Loading