aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/graphql/graphiql/graphiql.templ')
-rw-r--r--pkg/api/graphql/graphiql/graphiql.templ35
1 files changed, 0 insertions, 35 deletions
diff --git a/pkg/api/graphql/graphiql/graphiql.templ b/pkg/api/graphql/graphiql/graphiql.templ
deleted file mode 100644
index e84226e..0000000
--- a/pkg/api/graphql/graphiql/graphiql.templ
+++ /dev/null
@@ -1,35 +0,0 @@
-package graphiql
-
-import (
- "net/http"
- "soko/pkg/config"
-)
-
-templ show() {
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <title>GraphiQL - Gentoo Packages</title>
- <meta charset="utf-8"/>
- <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
- <meta name="theme-color" content="#54487a"/>
- <meta name="description" content="Gentoo Packages GraphiQL GraphQL API Explorer"/>
- <link rel="icon" href="https://packages.gentoo.org/favicon.ico" type="image/x-icon"/>
- <script crossorigin src="https://unpkg.com/react@16/umd/react.development.js"></script>
- <script crossorigin src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
- <link rel="stylesheet" href="https://unpkg.com/graphiql/graphiql.min.css"/>
- </head>
- <body>
- <div id="graphiql">
- Loading...
- </div>
- <script src="https://unpkg.com/graphiql@0.17.5/graphiql.min.js" type="application/javascript"></script>
- @templ.Raw(`<script>window.graphqlEndpoint = '` + config.GraphiqlEndpoint() + `';</script>`)
- <script src="/assets/graphiql.js" type="application/javascript"></script>
- </body>
- </html>
-}
-
-func Show(w http.ResponseWriter, r *http.Request) {
- show().Render(r.Context(), w)
-}