@webiny/app-graphql-playground 5.17.4 → 5.18.0-beta.3
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/package.json +11 -11
- package/plugins/Playground.js +1 -2
- package/plugins/Playground.styles.d.ts +1 -1
- package/plugins/Playground.styles.js +1 -2
- package/plugins/index.d.ts +2 -2
- package/plugins/index.js +1 -2
- package/plugins/settings.js +1 -2
- package/types.js +1 -2
- package/plugins/Playground.js.map +0 -1
- package/plugins/Playground.styles.js.map +0 -1
- package/plugins/index.js.map +0 -1
- package/plugins/settings.js.map +0 -1
- package/types.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webiny/app-graphql-playground",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.18.0-beta.3",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@emotion/core": "10.1.1",
|
|
13
13
|
"@emotion/styled": "10.0.27",
|
|
14
|
-
"@webiny/app": "5.
|
|
15
|
-
"@webiny/app-admin": "5.
|
|
16
|
-
"@webiny/app-i18n": "5.
|
|
17
|
-
"@webiny/app-security": "5.
|
|
18
|
-
"@webiny/plugins": "5.
|
|
19
|
-
"@webiny/react-router": "5.
|
|
20
|
-
"@webiny/ui": "5.
|
|
14
|
+
"@webiny/app": "5.18.0-beta.3",
|
|
15
|
+
"@webiny/app-admin": "5.18.0-beta.3",
|
|
16
|
+
"@webiny/app-i18n": "5.18.0-beta.3",
|
|
17
|
+
"@webiny/app-security": "5.18.0-beta.3",
|
|
18
|
+
"@webiny/plugins": "5.18.0-beta.3",
|
|
19
|
+
"@webiny/react-router": "5.18.0-beta.3",
|
|
20
|
+
"@webiny/ui": "5.18.0-beta.3",
|
|
21
21
|
"apollo-cache": "1.3.5",
|
|
22
22
|
"apollo-client": "2.6.10",
|
|
23
23
|
"apollo-link": "1.2.14",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@babel/preset-env": "^7.5.5",
|
|
38
38
|
"@babel/preset-react": "^7.0.0",
|
|
39
39
|
"@babel/preset-typescript": "^7.8.3",
|
|
40
|
-
"@webiny/cli": "^5.
|
|
41
|
-
"@webiny/project-utils": "^5.
|
|
40
|
+
"@webiny/cli": "^5.18.0-beta.3",
|
|
41
|
+
"@webiny/project-utils": "^5.18.0-beta.3",
|
|
42
42
|
"babel-plugin-emotion": "^9.2.8",
|
|
43
43
|
"babel-plugin-lodash": "^3.3.4",
|
|
44
44
|
"rimraf": "^3.0.2",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "9c86670476a62348ce391b091bf768e425ab6ee9"
|
|
71
71
|
}
|
package/plugins/Playground.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const PlaygroundContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "
|
|
2
|
+
export declare const PlaygroundContainer: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css">, object>;
|
|
3
3
|
export declare const playgroundDialog: {
|
|
4
4
|
".ReactModalPortal": {
|
|
5
5
|
"p, a, h1, h2, h3, h4, ul, pre, code": {
|
package/plugins/index.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ declare type GraphQLPlaygroundOptions = {
|
|
|
7
7
|
uri: string;
|
|
8
8
|
}): ApolloClient<any>;
|
|
9
9
|
};
|
|
10
|
-
declare const _default: (options: GraphQLPlaygroundOptions) => (
|
|
10
|
+
declare const _default: (options: GraphQLPlaygroundOptions) => (import("@webiny/plugins/types").Plugin<{
|
|
11
11
|
type: "graphql-playground-tab";
|
|
12
12
|
tab(params: {
|
|
13
13
|
locale: string;
|
|
14
14
|
identity: import("@webiny/app-security/types").SecurityIdentity;
|
|
15
15
|
}): import("../types").GraphQLPlaygroundTab;
|
|
16
|
-
}> | UIViewPlugin<NavigationView>)[];
|
|
16
|
+
}> | UIViewPlugin<NavigationView> | RoutePlugin)[];
|
|
17
17
|
export default _default;
|
package/plugins/index.js
CHANGED
package/plugins/settings.js
CHANGED
package/types.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=types.js.map
|
|
1
|
+
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/plugins/Playground.tsx"],"names":["React","Fragment","useEffect","useRef","useCallback","useState","ApolloLink","setContext","loadScript","Global","plugins","useI18N","useSecurity","CircularProgress","playgroundDialog","PlaygroundContainer","settings","withHeaders","link","headers","from","_","req","initScripts","Promise","resolve","window","GraphQLPlayground","Playground","createApolloClient","loading","setLoading","getCurrentLocale","identity","links","locale","tabs","byType","map","pl","tab","filter","Boolean","createApolloLink","endpoint","includes","process","env","REACT_APP_API_URL","Object","values","current","uri","then","init","document","getElementById"],"mappings":"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","sourcesContent":["import React, { Fragment, useEffect, useRef, useCallback, useState } from \"react\";\nimport { ApolloLink } from \"apollo-link\";\nimport { setContext } from \"apollo-link-context\";\nimport loadScript from \"load-script\";\nimport { Global } from \"@emotion/core\";\nimport { plugins } from \"@webiny/plugins\";\nimport { useI18N } from \"@webiny/app-i18n/hooks/useI18N\";\nimport { useSecurity } from \"@webiny/app-security\";\nimport { CircularProgress } from \"@webiny/ui/Progress\";\nimport { playgroundDialog, PlaygroundContainer } from \"./Playground.styles\";\nimport { settings } from \"./settings\";\n\nconst withHeaders = (link, headers) => {\n return ApolloLink.from([\n setContext(async (_, req) => {\n return {\n headers: {\n ...req.headers,\n ...headers\n }\n };\n }),\n link\n ]);\n};\n\nconst initScripts = () => {\n return new Promise((resolve: any) => {\n // @ts-ignore\n if (window.GraphQLPlayground) {\n return resolve();\n }\n\n return loadScript(\n \"https://cdn.jsdelivr.net/npm/@apollographql/graphql-playground-react@1.7.32/build/static/js/middleware.js\",\n resolve\n );\n });\n};\n\nconst Playground = ({ createApolloClient }) => {\n const [loading, setLoading] = useState(true);\n const { getCurrentLocale } = useI18N();\n const { identity } = useSecurity();\n const links = useRef({});\n\n const locale = getCurrentLocale(\"content\");\n\n const tabs = plugins\n .byType(\"graphql-playground-tab\")\n .map(pl => pl.tab({ locale, identity }))\n .filter(Boolean);\n\n const createApolloLink = useCallback(({ endpoint, headers }) => {\n // If the request endpoint is not know to us, return the first available\n if (!endpoint.includes(process.env.REACT_APP_API_URL)) {\n return { link: withHeaders(Object.values(links.current)[0], headers) };\n }\n\n if (!links.current[endpoint]) {\n links.current[endpoint] = createApolloClient({ uri: endpoint }).link;\n }\n\n return {\n link: withHeaders(links.current[endpoint], headers)\n };\n }, []);\n\n useEffect(() => {\n initScripts().then(() => {\n setLoading(false);\n });\n }, []);\n\n useEffect(() => {\n if (!loading) {\n // @ts-ignore\n window.GraphQLPlayground.init(document.getElementById(\"graphql-playground\"), {\n tabs,\n createApolloLink,\n settings\n });\n }\n }, [loading]);\n\n return (\n <Fragment>\n {loading ? (\n <CircularProgress label={\"Loading playground...\"} />\n ) : (\n <PlaygroundContainer id={\"graphql-playground\"} />\n )}\n <Global styles={playgroundDialog} />\n </Fragment>\n );\n};\n\nexport default Playground;\n"],"file":"Playground.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/plugins/Playground.styles.ts"],"names":["styled","sharedStyles","margin","padding","color","outline","border","fontFamily","code","PlaygroundContainer","marginTop","overflow","height","WebkitFontSmoothing","MozOsxFontSmoothing","lineHeight","letterSpacing","marginRight","playgroundDialog"],"mappings":";AAAA,OAAOA,MAAP,MAAmB,iBAAnB;AAEA,IAAMC,YAAY,GAAG;AACjB,yCAAuC;AACnCC,IAAAA,MAAM,EAAE,CAD2B;AAEnCC,IAAAA,OAAO,EAAE,CAF0B;AAGnCC,IAAAA,KAAK,EAAE;AAH4B,GADtB;AAMjB,kDAAgD;AAC5CC,IAAAA,OAAO,EAAE;AADmC,GAN/B;AASjB,2BAAyB;AACrBC,IAAAA,MAAM,EAAE;AADa,GATR;AAYjB,wBAAsB;AAClBC,IAAAA,UAAU,EAAE;AADM,GAZL;AAejBC,EAAAA,IAAI,EAAE;AACFD,IAAAA,UAAU,EAAE;AADV;AAfW,CAArB;AAoBA,OAAO,IAAME,mBAAmB,gBAAGT,MAAH,CAAU,KAAV;AAAA;AAAA;AAAA,GAAiB;AAC7CU,EAAAA,SAAS,EAAE,CAAC,CADiC;AAE7CC,EAAAA,QAAQ,EAAE,QAFmC;AAG7C;AACIC,IAAAA,MAAM,EAAE,oBADZ;AAEIV,IAAAA,MAAM,EAAE,CAFZ;AAGIC,IAAAA,OAAO,EAAE,CAHb;AAIII,IAAAA,UAAU,EAAE,yBAJhB;AAKIM,IAAAA,mBAAmB,EAAE,aALzB;AAMIC,IAAAA,mBAAmB,EAAE,WANzB;AAOIV,IAAAA,KAAK,EAAE,gBAPX;AAQIW,IAAAA,UAAU,EAAE,GARhB;AASIC,IAAAA,aAAa,EAAE,IATnB;AAUIC,IAAAA,WAAW,EAAE;AAVjB,KAWOhB,YAXP;AAH6C,CAAjB,CAAzB;AAkBP,OAAO,IAAMiB,gBAAgB,GAAG;AAC5B,uBAAqBjB;AADO,CAAzB","sourcesContent":["import styled from \"@emotion/styled\";\n\nconst sharedStyles = {\n \"p, a, h1, h2, h3, h4, ul, pre, code\": {\n margin: 0,\n padding: 0,\n color: \"inherit\"\n },\n \"a:active, a:focus, button:focus, input:focus\": {\n outline: \"none\"\n },\n \"input, button, submit\": {\n border: \"none\"\n },\n \"input, button, pre\": {\n fontFamily: \"'Open Sans', sans-serif\"\n },\n code: {\n fontFamily: \"Consolas, monospace\"\n }\n};\n\nexport const PlaygroundContainer = styled(\"div\")({\n marginTop: -3,\n overflow: \"hidden\",\n \".playground\": {\n height: \"calc(100vh - 64px)\",\n margin: 0,\n padding: 0,\n fontFamily: \"'Open Sans', sans-serif\",\n WebkitFontSmoothing: \"antialiased\",\n MozOsxFontSmoothing: \"grayscale\",\n color: \"rgba(0,0,0,.8)\",\n lineHeight: 1.5,\n letterSpacing: 0.53,\n marginRight: \"-1px !important\",\n ...sharedStyles\n }\n});\n\nexport const playgroundDialog = {\n \".ReactModalPortal\": sharedStyles\n};\n"],"file":"Playground.styles.js"}
|
package/plugins/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/plugins/index.tsx"],"names":["React","Helmet","Route","AdminLayout","Playground","placeholder","NavigationMenuElement","UIViewPlugin","NavigationView","options","view","getFooterElement","addMenuElement","label","icon","path","onClick","getNavigationHook","hideMenu","name","type","route","createApolloClient","tab","endpoint","process","env","REACT_APP_API_URL","headers","query"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,MAAP,MAAmB,cAAnB;AAEA,SAASC,KAAT,QAAsB,sBAAtB;AACA,SAASC,WAAT,QAA4B,0CAA5B;;AAGA,OAAOC,UAAP;AAEA;AACA,OAAOC,WAAP,MAAwB,oCAAxB;AACA,SAASC,qBAAT,QAAsC,qDAAtC;AACA,SAASC,YAAT,QAA6B,6BAA7B;AACA,SAASC,cAAT,QAA+B,2CAA/B;AAMA;AACA,gBAAe,UAACC,OAAD;AAAA,SAAuC,CAClD,IAAIF,YAAJ,CAAiCC,cAAjC,EAAiD,UAAAE,IAAI,EAAI;AACrDA,IAAAA,IAAI,CAACC,gBAAL,GAAwBC,cAAxB,CACI,IAAIN,qBAAJ,CAA0B,eAA1B,EAA2C;AACvCO,MAAAA,KAAK,EAAE,gBADgC;AAEvCC,MAAAA,IAAI,eAAE,oBAAC,QAAD,OAFiC;AAGvCC,MAAAA,IAAI,EAAE,iBAHiC;AAIvCC,MAAAA,OAAO,EAAE,mBAAM;AACXN,QAAAA,IAAI,CAACO,iBAAL,GAAyBC,QAAzB;AACH;AANsC,KAA3C,CADJ;AAUH,GAXD,CADkD,EAalD;AACIC,IAAAA,IAAI,EAAE,sBADV;AAEIC,IAAAA,IAAI,EAAE,OAFV;AAGIC,IAAAA,KAAK,eACD,oBAAC,KAAD;AACI,MAAA,KAAK,MADT;AAEI,MAAA,IAAI,EAAE,iBAFV;AAGI,MAAA,MAAM,EAAE;AAAA,4BACJ,oBAAC,WAAD,qBACI,oBAAC,MAAD,qBACI,oDADJ,CADJ,eAII,oBAAC,UAAD;AAAY,UAAA,kBAAkB,EAAEZ,OAAO,CAACa;AAAxC,UAJJ,CADI;AAAA;AAHZ;AAJR,GAbkD,EA+BlD;AACIF,IAAAA,IAAI,EAAE,wBADV;AAEIG,IAAAA,GAFJ,iBAEU;AACF,aAAO;AACHJ,QAAAA,IAAI,EAAE,UADH;AAEHK,QAAAA,QAAQ,EAAEC,OAAO,CAACC,GAAR,CAAYC,iBAAZ,GAAgC,UAFvC;AAGHC,QAAAA,OAAO,EAAE,EAHN;AAIHC,QAAAA,KAAK,EAAExB;AAJJ,OAAP;AAMH;AATL,GA/BkD,CAAvC;AAAA,CAAf","sourcesContent":["import React from \"react\";\nimport Helmet from \"react-helmet\";\nimport ApolloClient from \"apollo-client\";\nimport { Route } from \"@webiny/react-router\";\nimport { AdminLayout } from \"@webiny/app-admin/components/AdminLayout\";\nimport { RoutePlugin } from \"@webiny/app/types\";\nimport { ReactComponent as InfoIcon } from \"./graphql.svg\";\nimport Playground from \"./Playground\";\nimport { GraphQLPlaygroundTabPlugin } from \"../types\";\n// @ts-ignore\nimport placeholder from \"!!raw-loader!./placeholder.graphql\";\nimport { NavigationMenuElement } from \"@webiny/app-admin/ui/elements/NavigationMenuElement\";\nimport { UIViewPlugin } from \"@webiny/app-admin/ui/UIView\";\nimport { NavigationView } from \"@webiny/app-admin/ui/views/NavigationView\";\n\ntype GraphQLPlaygroundOptions = {\n createApolloClient(params: { uri: string }): ApolloClient<any>;\n};\n\n// @ts-ignore\nexport default (options: GraphQLPlaygroundOptions) => [\n new UIViewPlugin<NavigationView>(NavigationView, view => {\n view.getFooterElement().addMenuElement(\n new NavigationMenuElement(\"apiPlayground\", {\n label: \"API Playground\",\n icon: <InfoIcon />,\n path: \"/api-playground\",\n onClick: () => {\n view.getNavigationHook().hideMenu();\n }\n })\n );\n }),\n {\n name: \"route-api-playground\",\n type: \"route\",\n route: (\n <Route\n exact\n path={\"/api-playground\"}\n render={() => (\n <AdminLayout>\n <Helmet>\n <title>API Playground</title>\n </Helmet>\n <Playground createApolloClient={options.createApolloClient} />\n </AdminLayout>\n )}\n />\n )\n } as RoutePlugin,\n {\n type: \"graphql-playground-tab\",\n tab() {\n return {\n name: \"Main API\",\n endpoint: process.env.REACT_APP_API_URL + \"/graphql\",\n headers: {},\n query: placeholder\n };\n }\n } as GraphQLPlaygroundTabPlugin\n];\n"],"file":"index.js"}
|
package/plugins/settings.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/plugins/settings.ts"],"names":["settings"],"mappings":"AAAA,OAAO,IAAMA,QAAa,GAAG;AACzB,wBAAsB,MADG;AAEzB,6GAFyB;AAGzB,qBAAmB,EAHM;AAIzB,yBAAuB,IAJE;AAKzB,kBAAgB,MALS;AAMzB,yBAAuB,KANE;AAOzB,yBAAuB,EAPE;AAQzB,uBAAqB,CARI;AASzB,sBAAoB,KATK;AAUzB,yBAAuB,MAVE;AAWzB,4BAA0B,IAXD;AAYzB,2BAAyB,KAZA;AAazB,mCAAiC,aAbR;AAczB,6BAA2B,OAdF;AAezB,iCAA+B,IAfN;AAgBzB,qCAAmC;AAhBV,CAAtB","sourcesContent":["export const settings: any = {\n \"editor.cursorShape\": \"line\",\n \"editor.fontFamily\": `'Source Code Pro', 'Consolas', 'Inconsolata', 'Droid Sans Mono', 'Monaco', monospace`,\n \"editor.fontSize\": 14,\n \"editor.reuseHeaders\": true,\n \"editor.theme\": \"dark\",\n \"general.betaUpdates\": false,\n \"prettier.printWidth\": 80,\n \"prettier.tabWidth\": 2,\n \"prettier.useTabs\": false,\n \"request.credentials\": \"omit\",\n \"schema.disableComments\": true,\n \"schema.polling.enable\": false,\n \"schema.polling.endpointFilter\": \"*localhost*\",\n \"schema.polling.interval\": 2000000,\n \"tracing.hideTracingResponse\": true,\n \"queryPlan.hideQueryPlanResponse\": true\n};\n"],"file":"settings.js"}
|
package/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[],"file":"types.js"}
|