@axinom/mosaic-service-common 0.9.0 → 0.10.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/plugins/graphiql-dark-mode-plugin-hook.d.ts +13 -0
- package/dist/plugins/graphiql-dark-mode-plugin-hook.d.ts.map +1 -0
- package/dist/plugins/graphiql-dark-mode-plugin-hook.js +222 -0
- package/dist/plugins/graphiql-dark-mode-plugin-hook.js.map +1 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +1 -0
- package/dist/plugins/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Based on:
|
|
3
|
+
*
|
|
4
|
+
* https://gist.github.com/bkeating/cfe0d5e72bd3f9f1f77e1a2ff2309972
|
|
5
|
+
*
|
|
6
|
+
* with some additions for the PostGraphiQL extension.
|
|
7
|
+
*/
|
|
8
|
+
import { PostGraphilePlugin } from 'postgraphile';
|
|
9
|
+
/**
|
|
10
|
+
* This plugin override changes the branding piece of graphiql.
|
|
11
|
+
*/
|
|
12
|
+
export declare const GraphiqlDarkModePluginHook: PostGraphilePlugin;
|
|
13
|
+
//# sourceMappingURL=graphiql-dark-mode-plugin-hook.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphiql-dark-mode-plugin-hook.d.ts","sourceRoot":"","sources":["../../src/plugins/graphiql-dark-mode-plugin-hook.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,kBAkNxC,CAAC"}
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Based on:
|
|
4
|
+
*
|
|
5
|
+
* https://gist.github.com/bkeating/cfe0d5e72bd3f9f1f77e1a2ff2309972
|
|
6
|
+
*
|
|
7
|
+
* with some additions for the PostGraphiQL extension.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.GraphiqlDarkModePluginHook = void 0;
|
|
11
|
+
/**
|
|
12
|
+
* This plugin override changes the branding piece of graphiql.
|
|
13
|
+
*/
|
|
14
|
+
exports.GraphiqlDarkModePluginHook = {
|
|
15
|
+
['postgraphile:graphiql:html'](html) {
|
|
16
|
+
return html.replace('</head>', `
|
|
17
|
+
<style>
|
|
18
|
+
/* GraphiQL One Dark Alt (Dark Mode) theme by Ben Keating[1]
|
|
19
|
+
* Colors taken from Atom's One Dark theme[2]. Add this file to the end of
|
|
20
|
+
* your <head> block[3] to override built-in default styling.
|
|
21
|
+
*
|
|
22
|
+
* [1]. https://twitter.com/flowpoke
|
|
23
|
+
* [2]. https://github.com/atom/atom/tree/master/packages/one-dark-ui
|
|
24
|
+
* [3]. e.g. \`.../site-packages/graphene_django/templates/graphene/graphiql.html\`
|
|
25
|
+
*/
|
|
26
|
+
.CodeMirror {
|
|
27
|
+
background: #282D34 !important;
|
|
28
|
+
}
|
|
29
|
+
.graphiql-container .doc-explorer-contents, .graphiql-container .history-contents {
|
|
30
|
+
background-color: #21262B !important;
|
|
31
|
+
border-top: 1px solid #181A1F !important;
|
|
32
|
+
}
|
|
33
|
+
.graphiql-container .toolbar-button {
|
|
34
|
+
background: #1c2125 !important;
|
|
35
|
+
box-shadow: none !important;
|
|
36
|
+
color: #5c626d !important;
|
|
37
|
+
border: 1px solid #181a1f !important;
|
|
38
|
+
}
|
|
39
|
+
.graphiql-container .result-window .CodeMirror-gutters {
|
|
40
|
+
background: #282D33 !important;
|
|
41
|
+
border: none !important;
|
|
42
|
+
}
|
|
43
|
+
.graphiql-container .resultWrap {
|
|
44
|
+
border-left: solid 1px #181a1f !important;
|
|
45
|
+
}
|
|
46
|
+
.graphiql-container .variable-editor-title {
|
|
47
|
+
background: #21262b !important;
|
|
48
|
+
border-bottom: 1px solid #181a1f !important;
|
|
49
|
+
border-top: 1px solid #181a1f !important;
|
|
50
|
+
color: #cacdd3 !important;
|
|
51
|
+
}
|
|
52
|
+
.graphiql-container .topBar {
|
|
53
|
+
background: #21262B !important;
|
|
54
|
+
border-color: #181A1F !important;
|
|
55
|
+
}
|
|
56
|
+
.graphiql-container .docExplorerHide {
|
|
57
|
+
color: #606671 !important;
|
|
58
|
+
}
|
|
59
|
+
.graphiql-container .doc-explorer-title, .graphiql-container .history-title, .doc-explorer-back {
|
|
60
|
+
color: #CACDD3 !important;
|
|
61
|
+
}
|
|
62
|
+
.graphiql-container .doc-explorer {
|
|
63
|
+
background: #21262b !important;
|
|
64
|
+
}
|
|
65
|
+
.graphiql-container .docExplorerWrap, .graphiql-container .historyPaneWrap {
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
.graphiql-container .docExplorerShow {
|
|
69
|
+
border-left: none;
|
|
70
|
+
}
|
|
71
|
+
.graphiql-container .docExplorerShow, .graphiql-container .historyShow {
|
|
72
|
+
background: #21262b !important;
|
|
73
|
+
border-bottom: 1px solid #181A1E !important;
|
|
74
|
+
color: #CACDD3 !important;
|
|
75
|
+
}
|
|
76
|
+
.graphiql-container .docExplorerShow:before, .graphiql-container .doc-explorer-back:before {
|
|
77
|
+
border-color: #CACDD3 !important;
|
|
78
|
+
}
|
|
79
|
+
.graphiql-container .search-box {
|
|
80
|
+
margin: auto auto 10px auto;
|
|
81
|
+
border: none;
|
|
82
|
+
}
|
|
83
|
+
.graphiql-container .search-box input {
|
|
84
|
+
background: #1E2127 !important;
|
|
85
|
+
padding-left: 28px;
|
|
86
|
+
}
|
|
87
|
+
.graphiql-container .search-box .search-box-clear,
|
|
88
|
+
.graphiql-container .search-box .search-box-clear:hover {
|
|
89
|
+
background: #1d2126 !important;
|
|
90
|
+
}
|
|
91
|
+
.graphiql-container .search-box:before {
|
|
92
|
+
color: #c1c4ca !important;
|
|
93
|
+
font-size: 21px;
|
|
94
|
+
left: 8px;
|
|
95
|
+
}
|
|
96
|
+
.graphiql-container, .graphiql-container button, .graphiql-container input {
|
|
97
|
+
color: #9299A7 !important;
|
|
98
|
+
}
|
|
99
|
+
.CodeMirror-gutters {
|
|
100
|
+
border: none !important;
|
|
101
|
+
background-color: #282d33 !important;
|
|
102
|
+
}
|
|
103
|
+
.graphiql-container .execute-button {
|
|
104
|
+
background: #21262b !important;
|
|
105
|
+
border: 1px solid rgb(91, 98, 107) !important;
|
|
106
|
+
box-shadow: none !important;
|
|
107
|
+
fill: #c9ccd2 !important;
|
|
108
|
+
}
|
|
109
|
+
.graphiql-container .history-contents p {
|
|
110
|
+
border: none;
|
|
111
|
+
}
|
|
112
|
+
.graphiql-container .historyPaneWrap {
|
|
113
|
+
background: #21262b !important;
|
|
114
|
+
}
|
|
115
|
+
.graphiql-container .execute-options > li.selected, .graphiql-container .toolbar-menu-items > li.hover, .graphiql-container .toolbar-menu-items > li:active, .graphiql-container .toolbar-menu-items > li:hover, .graphiql-container .toolbar-select-options > li.hover, .graphiql-container .toolbar-select-options > li:active, .graphiql-container .toolbar-select-options > li:hover, .graphiql-container .history-contents > p:hover, .graphiql-container .history-contents > p:active {
|
|
116
|
+
background: #383C41 !important;
|
|
117
|
+
}
|
|
118
|
+
.graphiql-container .doc-category-title {
|
|
119
|
+
border-bottom: 1px solid #181a1f !important;
|
|
120
|
+
color: #cacdd3 !important;
|
|
121
|
+
}
|
|
122
|
+
.graphiql-container .field-name {
|
|
123
|
+
color: #9CA3AC !important;
|
|
124
|
+
}
|
|
125
|
+
.graphiql-container .type-name {
|
|
126
|
+
color: #95be76 !important;
|
|
127
|
+
}
|
|
128
|
+
.cm-property {
|
|
129
|
+
color: #A5ACB8 !important;
|
|
130
|
+
}
|
|
131
|
+
.cm-string {
|
|
132
|
+
color: #97BE7B !important;
|
|
133
|
+
}
|
|
134
|
+
.cm-variable {
|
|
135
|
+
color: #a87f5b !important;
|
|
136
|
+
}
|
|
137
|
+
.cm-attribute {
|
|
138
|
+
color: #B58860 !important;
|
|
139
|
+
}
|
|
140
|
+
.cm-def {
|
|
141
|
+
color: #CC3932 !important;
|
|
142
|
+
}
|
|
143
|
+
.cm-keyword {
|
|
144
|
+
color: #7cf3ff !important;
|
|
145
|
+
}
|
|
146
|
+
.graphiql-container .keyword {
|
|
147
|
+
color: #9ea5b0 !important;
|
|
148
|
+
}
|
|
149
|
+
.graphiql-container .arg-name {
|
|
150
|
+
color: #b5875d !important;
|
|
151
|
+
}
|
|
152
|
+
.graphiql-container .doc-category-item {
|
|
153
|
+
color: #BC6069 !important;
|
|
154
|
+
}
|
|
155
|
+
a {
|
|
156
|
+
color: #7b9ad4 !important;
|
|
157
|
+
}
|
|
158
|
+
.CodeMirror-lint-tooltip {
|
|
159
|
+
background: #1a1e22 !important;
|
|
160
|
+
color: red !important;
|
|
161
|
+
}
|
|
162
|
+
.cm-atom {
|
|
163
|
+
color: #d27caf !important;
|
|
164
|
+
}
|
|
165
|
+
.CodeMirror-hints {
|
|
166
|
+
background: #21262a !important;
|
|
167
|
+
box-shadow: 0 16px 13px -10px rgba(0, 0, 0, 0.3) !important;
|
|
168
|
+
}
|
|
169
|
+
.CodeMirror-hint {
|
|
170
|
+
border-top: solid 1px #212629 !important;
|
|
171
|
+
color: #8ab16f !important;
|
|
172
|
+
}
|
|
173
|
+
.CodeMirror-hint-information {
|
|
174
|
+
border-top: solid 1px #181a1e !important;
|
|
175
|
+
}
|
|
176
|
+
li.CodeMirror-hint-active {
|
|
177
|
+
background-color: #262c2f !important;
|
|
178
|
+
border-top-color: #212629 !important;
|
|
179
|
+
color: #b8ff87 !important;
|
|
180
|
+
}
|
|
181
|
+
.CodeMirror-hint-information .content {
|
|
182
|
+
color: #a4abb7 !important;
|
|
183
|
+
}
|
|
184
|
+
.postgraphile-footer {
|
|
185
|
+
background: #21262B !important;
|
|
186
|
+
border-left: 1px solid #212629 !important;
|
|
187
|
+
border-top: 1px solid #212629 !important;
|
|
188
|
+
}
|
|
189
|
+
.doc-explorer-title-bar {
|
|
190
|
+
background: #21262b !important;
|
|
191
|
+
color: #CACDD3 !important;
|
|
192
|
+
}
|
|
193
|
+
select {
|
|
194
|
+
background: #212633 !important;
|
|
195
|
+
color: #d8dadf !important;
|
|
196
|
+
}
|
|
197
|
+
.graphiql-operation-title-bar input, .graphiql-explorer-graphql-arguments input {
|
|
198
|
+
background: #212633 !important;
|
|
199
|
+
color: #d8dadf !important;
|
|
200
|
+
}
|
|
201
|
+
.graphiql-container .footer:before {
|
|
202
|
+
background: #1C2123 !important;
|
|
203
|
+
}
|
|
204
|
+
.graphiql-container .footer {
|
|
205
|
+
border-left: 1px solid #181a1f !important;
|
|
206
|
+
border-top: 1px solid #181a1f !important;
|
|
207
|
+
}
|
|
208
|
+
.graphiql-container .doc-category code, .graphiql-container .doc-type-description code {
|
|
209
|
+
background: #383C41 !important;
|
|
210
|
+
}
|
|
211
|
+
.cm-ws {
|
|
212
|
+
color: #A5ACB8 !important;
|
|
213
|
+
}
|
|
214
|
+
.CodeMirror-cursor {
|
|
215
|
+
border-color: #638AEB !important;
|
|
216
|
+
}
|
|
217
|
+
</style>
|
|
218
|
+
</head>
|
|
219
|
+
`);
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
//# sourceMappingURL=graphiql-dark-mode-plugin-hook.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graphiql-dark-mode-plugin-hook.js","sourceRoot":"","sources":["../../src/plugins/graphiql-dark-mode-plugin-hook.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIH;;GAEG;AACU,QAAA,0BAA0B,GAAuB;IAC5D,CAAC,4BAA4B,CAAC,CAAC,IAAY;QACzC,OAAO,IAAI,CAAC,OAAO,CACjB,SAAS,EACT;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA2ME,CACH,CAAC;IACJ,CAAC;CACF,CAAC"}
|
package/dist/plugins/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './annotate-types-with-permissions.plugin';
|
|
2
2
|
export * from './generic-bulk-plugin-factory';
|
|
3
|
+
export * from './graphiql-dark-mode-plugin-hook';
|
|
3
4
|
export * from './operations-enum-generator-plugin-factory';
|
|
4
5
|
export * from './subscriptions-plugin.factory';
|
|
5
6
|
export * from './validation-directives.plugin';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC"}
|
package/dist/plugins/index.js
CHANGED
|
@@ -12,6 +12,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./annotate-types-with-permissions.plugin"), exports);
|
|
14
14
|
__exportStar(require("./generic-bulk-plugin-factory"), exports);
|
|
15
|
+
__exportStar(require("./graphiql-dark-mode-plugin-hook"), exports);
|
|
15
16
|
__exportStar(require("./operations-enum-generator-plugin-factory"), exports);
|
|
16
17
|
__exportStar(require("./subscriptions-plugin.factory"), exports);
|
|
17
18
|
__exportStar(require("./validation-directives.plugin"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2EAAyD;AACzD,gEAA8C;AAC9C,6EAA2D;AAC3D,iEAA+C;AAC/C,iEAA+C"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/plugins/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2EAAyD;AACzD,gEAA8C;AAC9C,mEAAiD;AACjD,6EAA2D;AAC3D,iEAA+C;AAC/C,iEAA+C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-service-common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-rc.0",
|
|
4
4
|
"description": "Common helpers and PostgreSQL-related functionality",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "18568fa7eda09204adf7811e84977e6897f55d04"
|
|
66
66
|
}
|