@@ -1,99 +1,126 @@
11<!DOCTYPE html>
22<html lang="en">
3+ <head>
4+ <meta charset="UTF-8" />
5+ <title>purescript-graphql-example - Example purescript graphql app</title>
6+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7+ <meta name="description" content="Example purescript graphql app" />
8+ <meta
9+ name="viewport"
10+ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
11+ />
12+ <link
13+ rel="stylesheet"
14+ href="//cdn.jsdelivr.net/npm/docsify-top-banner-plugin@latest/dist/style.css"
15+ />
16+ <link
17+ rel="stylesheet"
18+ href="https://unpkg.com/docsify/lib/themes/vue.css"
19+ />
20+ <link
21+ rel="stylesheet"
22+ href="https://cdn.jsdelivr.net/gh/tonsky/FiraCode@1.206/distr/fira_code.css"
23+ />
24+ <style>
25+ .constant {
26+ color: #00869c;
27+ }
328
4−<head>
5− <meta charset="UTF-8">
6− <title>purescript-graphql-example - Example purescript graphql app</title>
7− <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
8− <meta name="description" content="Example purescript graphql app">
9− <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
10− <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
11− <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/tonsky/FiraCode@1.206/distr/fira_code.css">
12− <style>
13− .constant {
14− color: #00869C;
15− }
29+ code {
30+ font-family: Fira Code, Roboto Mono, Monaco, courier, monospace !important;
31+ }
1632
17− code {
18− font-family: Fira Code, Roboto Mono, Monaco, courier, monospace !important;
19− }
20− </style>
21−</head>
22−
23−<body>
24− <div id="app"></div>
25− <script>
26− window.$docsify = {
27− name: 'PureScript GraphQL',
28− repo: 'https://github.com/hendrikniemann/purescript-graphql',
29− loadSidebar: true
30− }
31− </script>
32− <script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
33− <script>
34− Prism.languages.purescript = {
35− comment: /--.*|{-[\s\S]*?-}/,
36− char: {
37− pattern: /'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+))'/,
38− greedy: true
39− },
40− string: [
41− {
42− pattern: /"""[\s\S]*?"""/,
43− greedy: true
44− },
45− {
46− pattern: /"(?:[^\\"\r\n]|\\(?:[abfnrtv\\"]|\d+|x[0-9a-fA-F]+))*"/,
47− greedy: true
48− }
49− ],
50− import_statement: {
51− pattern: /^\s*import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+([A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,
52− inside: {
53− keyword: /\b(?:import|as)\b/
33+ #TOPBANNER {
34+ padding: 0.4rem;
35+ padding-left: 300px;
36+ }
37+ @media screen and (max-width: 768px) {
38+ #TOPBANNER {
39+ padding-left: 0.4rem;
5440 }
55− },
56− module_definition: {
57− pattern: /^\s*module\s+[A-Z]\w*(?:\.[A-Z]\w*)*\s+(?:\(\s*\w+\s*(?:\s*,\s*\w+)*\))?\s+where/m,
58− inside: {
59− keyword: /\b(?:module|where)\b/
60− }
61− },
62− keyword: /\b(?:case|else|if|in|infixl|infixr|let|of|then|type|newtype|data|where|class|instance|kind|forall)\b/,
63− number: /\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,
64− operator: /[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,
65− hvariable: /\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,
66− constant: /\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,
67− punctuation: /[{}[\]|(),.:]/
68− };
41+ }
42+ </style>
43+ </head>
6944
70− Prism.languages.graphql = {
71− 'comment': /#.*/,
72− 'string': {
73− pattern: /"(?:\\.|[^\\"\r\n])*"/,
74− greedy: true
75− },
76− 'number': /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
77− 'boolean': /\b(?:true|false)\b/,
78− 'variable': /\$[a-z_]\w*/i,
79− 'directive': {
80− pattern: /@[a-z_]\w*/i,
81− alias: 'function'
82− },
83− 'attr-name': /[a-z_]\w*(?=\s*:)/i,
84− 'keyword': [
85− {
86− pattern: /(fragment\s+(?!on)[a-z_]\w*\s+|\.{3}\s*)on\b/,
87− lookbehind: true
45+ <body>
46+ <div id="app"></div>
47+ <script>
48+ window.$docsify = {
49+ name: "PureScript GraphQL",
50+ repo: "https://github.com/hendrikniemann/purescript-graphql",
51+ loadSidebar: true,
52+ topBanner: {
53+ content: "Looking for v1 docs? [Legacy Documentation](/v1/)",
54+ position: "relative",
55+ zIndex: -1,
56+ },
57+ };
58+ </script>
59+ <script src="https://unpkg.com/docsify/lib/docsify.min.js"></script>
60+ <script src="https://cdn.jsdelivr.net/npm/docsify-top-banner-plugin@latest/dist/index.js"></script>
61+ <script>
62+ Prism.languages.purescript = {
63+ comment: /--.*|{-[\s\S]*?-}/,
64+ char: {
65+ pattern: /'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+))'/,
66+ greedy: true,
8867 },
89− /\b(?:query|fragment|mutation|type|enum|schema)\b/
90− ],
91− 'operator': /!|=|\.{3}/,
92− 'punctuation': /[!(){}\[\]:=,]/,
93− 'constant': /ID|String|Int|Float|Boolean/,
94− };
95− </script>
96− <script src="//unpkg.com/prismjs/components/prism-json.min.js"></script>
97−</body>
68+ string: [
69+ {
70+ pattern: /"""[\s\S]*?"""/,
71+ greedy: true,
72+ },
73+ {
74+ pattern: /"(?:[^\\"\r\n]|\\(?:[abfnrtv\\"]|\d+|x[0-9a-fA-F]+))*"/,
75+ greedy: true,
76+ },
77+ ],
78+ import_statement: {
79+ pattern: /^\s*import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+([A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,
80+ inside: {
81+ keyword: /\b(?:import|as)\b/,
82+ },
83+ },
84+ module_definition: {
85+ pattern: /^\s*module\s+[A-Z]\w*(?:\.[A-Z]\w*)*\s+(?:\(\s*\w+\s*(?:\s*,\s*\w+)*\))?\s+where/m,
86+ inside: {
87+ keyword: /\b(?:module|where)\b/,
88+ },
89+ },
90+ keyword: /\b(?:case|else|if|in|infixl|infixr|let|of|then|type|newtype|data|where|class|instance|kind|forall)\b/,
91+ number: /\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,
92+ operator: /[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,
93+ hvariable: /\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,
94+ constant: /\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,
95+ punctuation: /[{}[\]|(),.:]/,
96+ };
9897
98+ Prism.languages.graphql = {
99+ comment: /#.*/,
100+ string: {
101+ pattern: /"(?:\\.|[^\\"\r\n])*"/,
102+ greedy: true,
103+ },
104+ number: /(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,
105+ boolean: /\b(?:true|false)\b/,
106+ variable: /\$[a-z_]\w*/i,
107+ directive: {
108+ pattern: /@[a-z_]\w*/i,
109+ alias: "function",
110+ },
111+ "attr-name": /[a-z_]\w*(?=\s*:)/i,
112+ keyword: [
113+ {
114+ pattern: /(fragment\s+(?!on)[a-z_]\w*\s+|\.{3}\s*)on\b/,
115+ lookbehind: true,
116+ },
117+ /\b(?:query|fragment|mutation|type|enum|schema)\b/,
118+ ],
119+ operator: /!|=|\.{3}/,
120+ punctuation: /[!(){}\[\]:=,]/,
121+ constant: /ID|String|Int|Float|Boolean/,
122+ };
123+ </script>
124+ <script src="//unpkg.com/prismjs/components/prism-json.min.js"></script>
125+ </body>
99126</html>