package opium-graphql

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file asset.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
(* Generated by: ocaml-crunch
   Creation date: Sun, 18 May 2025 01:30:46 GMT *)

module Internal = struct
  let d_3c68ec4f0c0d6949e77c7cfb7f142900 = "<!--\n *  Copyright (c) 2019 GraphQL Contributors\n *  All rights reserved.\n *\n *  This source code is licensed under the license found in the\n *  LICENSE file in the root directory of this source tree.\n-->\n<!DOCTYPE html>\n<html>\n\n<head>\n  <style>\n    body {\n      height: 100%;\n      margin: 0;\n      width: 100%;\n      overflow: hidden;\n    }\n\n    #graphiql {\n      height: 100vh;\n    }\n  </style>\n\n  <!--\n      This GraphiQL example depends on Promise and fetch, which are available in\n      modern browsers, but can be \"polyfilled\" for older browsers.\n      GraphiQL itself depends on React DOM.\n      If you do not want to rely on a CDN, you can host these files locally or\n      include them directly in your favored resource bunder.\n    -->\n  <script crossorigin src=\"https://unpkg.com/react@16/umd/react.development.js\"></script>\n  <script crossorigin src=\"https://unpkg.com/react-dom@16/umd/react-dom.development.js\"></script>\n\n  <!--\n      These two files can be found in the npm module, however you may wish to\n      copy them directly into your environment, or perhaps include them in your\n      favored resource bundler.\n     -->\n  <link rel=\"stylesheet\" href=\"https://unpkg.com/graphiql/graphiql.min.css\" />\n</head>\n\n<body>\n  <div id=\"graphiql\">Loading...</div>\n  <script src=\"https://unpkg.com/graphiql/graphiql.min.js\" type=\"application/javascript\"></script>\n  <script>\n    function graphQLFetcher(graphQLParams) {\n      return fetch(\n        '%%GRAPHQL_API%%',\n        {\n          method: 'post',\n          headers: {\n            Accept: 'application/json',\n            'Content-Type': 'application/json',\n          },\n          body: JSON.stringify(graphQLParams),\n          credentials: 'omit',\n        },\n      ).then(function (response) {\n        return response.json().catch(function () {\n          return response.text();\n        });\n      });\n    }\n\n    ReactDOM.render(\n      React.createElement(GraphiQL, {\n        fetcher: graphQLFetcher,\n        defaultVariableEditorOpen: true,\n      }),\n      document.getElementById('graphiql'),\n    );\n  </script>\n</body>\n\n</html>"

  let file_chunks = function
    | "graphiql.html" | "/graphiql.html" -> Some [ d_3c68ec4f0c0d6949e77c7cfb7f142900; ]
    | _ -> None

  let file_list = [ "graphiql.html"; ]
end

let file_list = Internal.file_list

let read name =
  match Internal.file_chunks name with
  | None -> None
  | Some c -> Some (String.concat "" c)

let hash = function
  | "graphiql.html" | "/graphiql.html" -> Some "3c68ec4f0c0d6949e77c7cfb7f142900"
  | _ -> None

let size = function
  | "graphiql.html" | "/graphiql.html" -> Some 2093
  | _ -> None
OCaml

Innovation. Community. Security.