Skip to content

Commit 2bb2a1e

Browse files
committed
update electron app
1 parent 503463c commit 2bb2a1e

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

packages/graphql-playground-electron/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"homepage": "https://github.com/graphcool/graphql-playground",
55
"repository": "graphcool/graphql-playground",
66
"description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration)",
7-
"version": "1.5.0",
7+
"version": "1.5.1",
88
"author": {
99
"name": "Graphcool",
1010
"email": "[email protected]",
@@ -97,7 +97,7 @@
9797
"graphql-config": "^2.0.1",
9898
"graphql-config-extension-graphcool": "1.0.8",
9999
"graphql-config-extension-prisma": "0.0.9",
100-
"graphql-playground-react": "1.5.11",
100+
"graphql-playground-react": "1.5.12",
101101
"immutable": "4.0.0-rc.9",
102102
"js-yaml": "^3.10.0",
103103
"lodash.merge": "^4.6.0",

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as React from 'react'
22
import { remote, ipcRenderer, webFrame } from 'electron'
33
import * as cx from 'classnames'
44
import { Playground as IPlayground } from 'graphql-playground-react/lib/components/Playground'
5-
import { merge } from 'immutable'
5+
import { merge, set } from 'immutable'
66
import Playground, {
77
openSettingsTab,
88
selectNextTab,
@@ -621,6 +621,7 @@ class App extends React.Component<ReduxProps, State> {
621621

622622
private handleSelectItem = ({ type, ...item }) => {
623623
this.setState(item as any)
624+
this.props.selectAppHistoryItem(set(item, 'lastOpened', new Date()) as any)
624625
}
625626

626627
private setRef = ref => {

packages/graphql-playground-electron/webpack.config.build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ module.exports = {
8484
loader: 'file-loader',
8585
},
8686
{
87-
test: /(graphics|gifs|node_modules)\/.*\.(png|gif)$/,
87+
test: /.*\.(png|gif)$/,
8888
loader: 'file-loader',
8989
},
9090
],

packages/graphql-playground-electron/yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3707,9 +3707,9 @@ [email protected]:
37073707
dependencies:
37083708
graphql-config "2.0.0"
37093709

3710-
3711-
version "1.5.11"
3712-
resolved "https://registry.yarnpkg.com/graphql-playground-react/-/graphql-playground-react-1.5.11.tgz#80e4a8f34f3417ac4deb436b1ef98baa55767052"
3710+
3711+
version "1.5.12"
3712+
resolved "https://registry.yarnpkg.com/graphql-playground-react/-/graphql-playground-react-1.5.12.tgz#b60650d5a57a699bf542d84a364b81a711b0885d"
37133713
dependencies:
37143714
apollo-link "^1.0.7"
37153715
apollo-link-http "^1.3.2"

packages/graphql-playground-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "graphql-playground-react",
3-
"version": "1.5.11",
3+
"version": "1.5.12",
44
"main": "./lib/lib.js",
55
"typings": "./lib/lib.d.ts",
66
"description": "GraphQL IDE for better development workflows (GraphQL Subscriptions, interactive docs & collaboration).",

0 commit comments

Comments
 (0)