Skip to content

Commit 79b3ef1

Browse files
committed
fix(deps): rm not needed graphql-playground dep
1 parent 772a04c commit 79b3ef1

File tree

4 files changed

+11
-159
lines changed

4 files changed

+11
-159
lines changed

packages/graphql-playground-electron/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
"extract-text-webpack-plugin": "3.0.2",
137137
"file-loader": "1.1.6",
138138
"fork-ts-checker-webpack-plugin": "0.3.0",
139-
"graphql-playground": "1.3.17",
140139
"graphql-playground-html": "1.5.2",
141140
"happypack": "4.0.1",
142141
"html-webpack-plugin": "2.30.1",

packages/graphql-playground-electron/src/renderer/components/App.tsx

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ interface State {
3535
shareUrl?: string
3636
loading: boolean
3737
session?: any
38-
platformToken?: string
3938
configString?: string
4039
configPath?: string
4140

@@ -72,12 +71,11 @@ export default class App extends React.Component<{}, State> {
7271

7372
constructor(props) {
7473
super(props)
75-
const { endpoint, platformToken } = this.getArgs()
74+
const { endpoint } = this.getArgs()
7675
this.state = {
7776
openTooltipTheme: false,
7877
theme: 'dark',
7978
endpoint,
80-
platformToken,
8179
loading: false,
8280
}
8381
;(global as any).a = this
@@ -95,7 +93,7 @@ export default class App extends React.Component<{}, State> {
9593
return {
9694
endpoint: args.endpoint,
9795
subscriptionsEndpoint: args['subscriptions-endpoint'],
98-
platformToken: args['platform-token'] || localStorage.platformToken,
96+
// platformToken: args['platform-token'] || localStorage.platformToken,
9997
env: args.env,
10098
}
10199
}
@@ -252,7 +250,7 @@ cd ${folderPath}; graphql playground`)
252250
let configString
253251
let folderName
254252
let configPath
255-
const platformToken = input.platformToken
253+
// const platformToken = input.platformToken
256254
let config
257255

258256
if (input.cwd) {
@@ -306,7 +304,7 @@ cd ${folderPath}; graphql playground`)
306304
env: input.env,
307305
endpoint,
308306
config,
309-
platformToken,
307+
// platformToken,
310308
}
311309

312310
this.setState(state)
@@ -505,7 +503,7 @@ cd ${folderPath}; graphql playground`)
505503
}
506504

507505
render() {
508-
const { theme, endpoint, platformToken, configString, config } = this.state
506+
const { theme, endpoint, configString, config } = this.state
509507

510508
return (
511509
<Provider store={store}>
@@ -547,7 +545,6 @@ cd ${folderPath}; graphql playground`)
547545
getRef={this.setRef}
548546
endpoint={endpoint}
549547
isElectron={true}
550-
platformToken={platformToken}
551548
configString={configString}
552549
config={config}
553550
onSaveConfig={this.saveConfig}

packages/graphql-playground-electron/src/renderer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react'
22
import * as ReactDOM from 'react-dom'
33
import App from './components/App'
4-
import 'graphql-playground/playground.css'
4+
import 'graphql-playground-react/playground.css'
55
import 'graphcool-styles/dist/styles.css'
66
import './index.css'
77

packages/graphql-playground-electron/yarn.lock

Lines changed: 5 additions & 149 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,6 @@
3434
version "0.11.7"
3535
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.11.7.tgz#da39a2f7c74e793e32e2bb7b3b68da1691532dd5"
3636

37-
"@types/graphql@^0.9.1":
38-
version "0.9.4"
39-
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.9.4.tgz#cdeb6bcbef9b6c584374b81aa7f48ecf3da404fa"
40-
4137
"@types/lodash@^4.14.85":
4238
version "4.14.92"
4339
resolved "https://registry.yarnpkg.com/@types/lodash/-/lodash-4.14.92.tgz#6e3cb0b71a1e12180a47a42a744e856c3ae99a57"
@@ -1783,7 +1779,7 @@ code-point-at@^1.0.0:
17831779
version "1.1.0"
17841780
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"
17851781

1786-
[email protected], codemirror-graphql@^0.6.11, codemirror-graphql@^0.6.12:
1782+
[email protected], codemirror-graphql@^0.6.11:
17871783
version "0.6.12"
17881784
resolved "https://registry.yarnpkg.com/codemirror-graphql/-/codemirror-graphql-0.6.12.tgz#91a273fe5188857524a30221d06e645b4ca41f00"
17891785
dependencies:
@@ -2129,7 +2125,7 @@ [email protected]:
21292125
postcss-value-parser "^3.3.0"
21302126
source-list-map "^2.0.0"
21312127

2132-
css-modules-loader-core@^1.0.1, css-modules-loader-core@^1.1.0:
2128+
css-modules-loader-core@^1.1.0:
21332129
version "1.1.0"
21342130
resolved "https://registry.yarnpkg.com/css-modules-loader-core/-/css-modules-loader-core-1.1.0.tgz#5908668294a1becd261ae0a4ce21b0b551f21d16"
21352131
dependencies:
@@ -3441,17 +3437,6 @@ [email protected]:
34413437
version "1.2.1"
34423438
resolved "https://registry.yarnpkg.com/graphcool-json-schema/-/graphcool-json-schema-1.2.1.tgz#6cefb6c8b50543615e6efa43bb54f9e3fbb281f3"
34433439

3444-
3445-
version "0.2.4"
3446-
resolved "https://registry.yarnpkg.com/graphcool-styles/-/graphcool-styles-0.2.4.tgz#c04aa8a440280e910e4c9cfa1ef97052d1060198"
3447-
dependencies:
3448-
html-webpack-plugin "^2.24.1"
3449-
interactive "^0.1.9"
3450-
isomorphic-fetch "^2.2.1"
3451-
object-assign "^4.1.0"
3452-
react-dom "^15.3.2"
3453-
webpack-dev-server "^1.16.2"
3454-
34553440
34563441
version "0.2.7"
34573442
resolved "https://registry.yarnpkg.com/graphcool-styles/-/graphcool-styles-0.2.7.tgz#60e0a561d45012c17617ecd0453486a1833af96c"
@@ -3679,50 +3664,6 @@ [email protected]:
36793664
webpack-bundle-analyzer "^2.9.2"
36803665
zen-observable "^0.7.1"
36813666

3682-
3683-
version "1.3.17"
3684-
resolved "https://registry.yarnpkg.com/graphql-playground/-/graphql-playground-1.3.17.tgz#1584bbcc948a7f9bac9399b9c269439da3086791"
3685-
dependencies:
3686-
calculate-size "^1.1.1"
3687-
classnames "^2.2.5"
3688-
codemirror "^5.27.4"
3689-
codemirror-graphql "^0.6.12"
3690-
cuid "^1.3.8"
3691-
graphcool-styles "0.2.4"
3692-
graphcool-tmp-ui "^0.0.11"
3693-
graphiql "^0.11.2"
3694-
graphql "^0.10.5"
3695-
isomorphic-fetch "^2.2.1"
3696-
js-yaml "^3.10.0"
3697-
json-stable-stringify "^1.0.1"
3698-
keycode "^2.1.9"
3699-
lodash "^4.17.4"
3700-
lodash.debounce "^4.0.8"
3701-
marked "^0.3.9"
3702-
polished "^1.9.0"
3703-
postcss-modules "^0.6.4"
3704-
prop-types "^15.6.0"
3705-
react "^16.2.0"
3706-
react-addons-shallow-compare "^15.6.2"
3707-
react-codemirror "^1.0.0"
3708-
react-copy-to-clipboard "^5.0.1"
3709-
react-dom "^16.2.0"
3710-
react-helmet "^5.2.0"
3711-
react-modal "^3.1.10"
3712-
react-redux "^5.0.6"
3713-
react-router-dom "^4.2.2"
3714-
react-transition-group "^1.1.3"
3715-
react-virtualized "^9.12.0"
3716-
redux "^3.7.2"
3717-
redux-localstorage rc
3718-
redux-localstorage-filter "^0.1.1"
3719-
rxjs "^5.0.3"
3720-
seamless-immutable "^7.0.1"
3721-
styled-components "^2.4.0"
3722-
styled-jsx-postcss "git+https://github.com/timsuchanek/styled-jsx-postcss#build3"
3723-
styled-theming "^2.2.0"
3724-
subscriptions-transport-ws "^0.8.1"
3725-
37263667
graphql-request@^1.4.0:
37273668
version "1.4.1"
37283669
resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-1.4.1.tgz#0772743cfac8dfdd4d69d36106a96c9bdd191ce8"
@@ -3735,24 +3676,6 @@ graphql-request@^1.5.0:
37353676
dependencies:
37363677
cross-fetch "1.1.1"
37373678

3738-
graphql-subscriptions@^0.4.4:
3739-
version "0.4.4"
3740-
resolved "https://registry.yarnpkg.com/graphql-subscriptions/-/graphql-subscriptions-0.4.4.tgz#39cff32d08dd3c990113864bab77154403727e9b"
3741-
dependencies:
3742-
"@types/graphql" "^0.9.1"
3743-
es6-promise "^4.0.5"
3744-
iterall "^1.1.1"
3745-
3746-
graphql-tag@^2.4.2:
3747-
version "2.6.1"
3748-
resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.6.1.tgz#4788d509f6e29607d947fc47a40c4e18f736d34a"
3749-
3750-
graphql@^0.10.5:
3751-
version "0.10.5"
3752-
resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.10.5.tgz#c9be17ca2bdfdbd134077ffd9bbaa48b8becd298"
3753-
dependencies:
3754-
iterall "^1.1.0"
3755-
37563679
graphql@^0.11.7:
37573680
version "0.11.7"
37583681
resolved "https://registry.yarnpkg.com/graphql/-/graphql-0.11.7.tgz#e5abaa9cb7b7cccb84e9f0836bf4370d268750c6"
@@ -4499,7 +4422,7 @@ [email protected]:
44994422
version "2.1.1"
45004423
resolved "https://registry.yarnpkg.com/items/-/items-2.1.1.tgz#8bd16d9c83b19529de5aea321acaada78364a198"
45014424

4502-
[email protected], iterall@^1.1.0, iterall@^1.1.1:
4425+
[email protected], iterall@^1.1.1:
45034426
version "1.1.3"
45044427
resolved "https://registry.yarnpkg.com/iterall/-/iterall-1.1.3.tgz#1cbbff96204056dde6656e2ed2e2226d0e6d72c9"
45054428

@@ -5984,15 +5907,6 @@ [email protected], postcss-modules-values@^1.3.0:
59845907
icss-replace-symbols "^1.1.0"
59855908
postcss "^6.0.1"
59865909

5987-
postcss-modules@^0.6.4:
5988-
version "0.6.4"
5989-
resolved "https://registry.yarnpkg.com/postcss-modules/-/postcss-modules-0.6.4.tgz#77a58bb77ba1b4392b270c0b59852fd75e89a8b4"
5990-
dependencies:
5991-
css-modules-loader-core "^1.0.1"
5992-
generic-names "^1.0.2"
5993-
postcss "^5.2.8"
5994-
string-hash "^1.1.1"
5995-
59965910
postcss-modules@^1.1.0:
59975911
version "1.1.0"
59985912
resolved "https://registry.yarnpkg.com/postcss-modules/-/postcss-modules-1.1.0.tgz#c9f94f76ff6addf7c35b842e69ed442118156bb0"
@@ -6200,7 +6114,7 @@ promise@^7.1.1:
62006114
dependencies:
62016115
asap "~2.0.3"
62026116

6203-
prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.6, prop-types@^15.5.7, prop-types@^15.5.8, prop-types@^15.6.0:
6117+
prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.7, prop-types@^15.5.8, prop-types@^15.6.0:
62046118
version "15.6.0"
62056119
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.6.0.tgz#ceaf083022fc46b4a35f69e13ef75aed0d639856"
62066120
dependencies:
@@ -6413,14 +6327,6 @@ react-modal@^1.6.5:
64136327
prop-types "^15.5.7"
64146328
react-dom-factories "^1.0.0"
64156329

6416-
react-modal@^3.1.10:
6417-
version "3.1.10"
6418-
resolved "https://registry.yarnpkg.com/react-modal/-/react-modal-3.1.10.tgz#8898b5cc4ebba78adbb8dea4c55a69818aa682cc"
6419-
dependencies:
6420-
exenv "^1.2.0"
6421-
prop-types "^15.5.10"
6422-
warning "^3.0.0"
6423-
64246330
react-modal@^3.1.11:
64256331
version "3.1.11"
64266332
resolved "https://registry.yarnpkg.com/react-modal/-/react-modal-3.1.11.tgz#95c8223fcee7013258ad2d149c38c9f870c89958"
@@ -6496,16 +6402,6 @@ react-transform-hmr@^1.0.3:
64966402
global "^4.3.0"
64976403
react-proxy "^1.1.7"
64986404

6499-
react-transition-group@^1.1.3:
6500-
version "1.2.1"
6501-
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-1.2.1.tgz#e11f72b257f921b213229a774df46612346c7ca6"
6502-
dependencies:
6503-
chain-function "^1.0.0"
6504-
dom-helpers "^3.2.0"
6505-
loose-envify "^1.3.1"
6506-
prop-types "^15.5.6"
6507-
warning "^3.0.0"
6508-
65096405
react-transition-group@^2.2.1:
65106406
version "2.2.1"
65116407
resolved "https://registry.yarnpkg.com/react-transition-group/-/react-transition-group-2.2.1.tgz#e9fb677b79e6455fd391b03823afe84849df4a10"
@@ -6911,7 +6807,7 @@ rx@^4.1.0:
69116807
version "4.1.0"
69126808
resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782"
69136809

6914-
rxjs@^5.0.3, rxjs@^5.4.2:
6810+
rxjs@^5.4.2:
69156811
version "5.5.6"
69166812
resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-5.5.6.tgz#e31fb96d6fd2ff1fd84bcea8ae9c02d007179c02"
69176813
dependencies:
@@ -7450,19 +7346,6 @@ [email protected]:
74507346
loader-utils "^1.1.0"
74517347
schema-utils "^0.4.3"
74527348

7453-
styled-components@^2.4.0:
7454-
version "2.4.0"
7455-
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-2.4.0.tgz#086d0fd483d54638837fca3ea546a030b94adf75"
7456-
dependencies:
7457-
buffer "^5.0.3"
7458-
css-to-react-native "^2.0.3"
7459-
fbjs "^0.8.9"
7460-
hoist-non-react-statics "^1.2.0"
7461-
is-plain-object "^2.0.1"
7462-
prop-types "^15.5.4"
7463-
stylis "^3.4.0"
7464-
supports-color "^3.2.3"
7465-
74667349
styled-components@^3.0.1:
74677350
version "3.1.4"
74687351
resolved "https://registry.yarnpkg.com/styled-components/-/styled-components-3.1.4.tgz#1bdc1409c9bacafee3510c573d23b73039b0d875"
@@ -7488,18 +7371,6 @@ styled-components@^3.0.1:
74887371
postcss-load-plugins "^2.2.0"
74897372
styled-jsx "^0.5.7"
74907373

7491-
"styled-jsx-postcss@git+https://github.com/timsuchanek/styled-jsx-postcss.git#build3":
7492-
version "0.2.0"
7493-
uid "677ee0fb7f9138047a00e03c8c3e44adbb33cf2a"
7494-
resolved "git+https://github.com/timsuchanek/styled-jsx-postcss.git#677ee0fb7f9138047a00e03c8c3e44adbb33cf2a"
7495-
dependencies:
7496-
babel-traverse "^6.21.0"
7497-
babylon "^6.14.1"
7498-
deasync "^0.1.9"
7499-
postcss "^5.2.8"
7500-
postcss-load-plugins "^2.2.0"
7501-
styled-jsx "^0.5.7"
7502-
75037374
[email protected], styled-jsx@^2.2.1:
75047375
version "2.2.1"
75057376
resolved "https://registry.yarnpkg.com/styled-jsx/-/styled-jsx-2.2.1.tgz#8b38b9e53e5d9767e392595ab1afdc8426b3ba5d"
@@ -7541,21 +7412,6 @@ stylis@^3.4.0:
75417412
version "3.4.7"
75427413
resolved "https://registry.yarnpkg.com/stylis/-/stylis-3.4.7.tgz#4fa57ef276d1ed20aafda4e1a97c35b5b87d59ce"
75437414

7544-
subscriptions-transport-ws@^0.8.1:
7545-
version "0.8.3"
7546-
resolved "https://registry.yarnpkg.com/subscriptions-transport-ws/-/subscriptions-transport-ws-0.8.3.tgz#d4b22db7f5951bd30e7c6f4dc4774d34ed9f1751"
7547-
dependencies:
7548-
backo2 "^1.0.2"
7549-
eventemitter3 "^2.0.3"
7550-
graphql-subscriptions "^0.4.4"
7551-
graphql-tag "^2.4.2"
7552-
iterall "^1.1.1"
7553-
lodash.assign "^4.2.0"
7554-
lodash.isobject "^3.0.2"
7555-
lodash.isstring "^4.0.1"
7556-
symbol-observable "^1.0.4"
7557-
ws "^3.0.0"
7558-
75597415
subscriptions-transport-ws@^0.9.5:
75607416
version "0.9.5"
75617417
resolved "https://registry.yarnpkg.com/subscriptions-transport-ws/-/subscriptions-transport-ws-0.9.5.tgz#faa9eb1230d5f2efe355368cd973b867e4483c53"

0 commit comments

Comments
 (0)