Skip to content

Commit

Permalink
v0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
skevy committed Feb 15, 2016
1 parent 18400ad commit dbc866e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 13 deletions.
17 changes: 12 additions & 5 deletions app/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,30 @@
.clearfix { display: block; }
/* close commented backslash hack */

html {
height: 100%;
}
body {
min-height: 100%;
}

body {
font-family: helvetica, arial, sans-serif;
display: flex;
}

#react-root {
width: 100%;
height: 100%;
display: flex;
flex: 1;
}

.ReactModal__Overlay {
z-index: 10000000;
}

.wrapper {
width: 100%;
height: 100%;
display: flex;
flex: 1;
flex-direction: column;
}

Expand Down Expand Up @@ -125,6 +132,7 @@ body {
}

.endpoint-box input {
flex: 1;
width: 100%;
}

Expand All @@ -150,4 +158,3 @@ body {
font-weight: bold;
font-size: 20px;
}

1 change: 0 additions & 1 deletion app/components/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import GraphiQL from 'graphiql/dist';
import Modal from 'react-modal/lib/index';

Modal.setAppElement(document.getElementById('react-root'));
Modal.injectCSS();

import HTTPHeaderEditor from './HTTPHeaderEditor';

Expand Down
10 changes: 6 additions & 4 deletions app/components/HTTPHeaderEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import React from 'react';
export default class HTTPHeaderEditor extends React.Component {
constructor(props) {
super(props);

this.state = {
headers: props.headers || [],
addingHeader: false
Expand Down Expand Up @@ -86,9 +86,11 @@ export default class HTTPHeaderEditor extends React.Component {
<a href="javascript:;" onClick={this.addHeader}>+ Add Header</a>
<table className="pure-table pure-table-striped" style={styles.table}>
<thead>
<th>Key</th>
<th>Value</th>
<th></th>
<tr>
<th>Key</th>
<th>Value</th>
<th></th>
</tr>
</thead>
<tbody>
{this.state.headers.map((header, i) => (
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "graphiql-app",
"version": "0.1.0",
"version": "0.3.2",
"description": "A light, Electron-based wrapper around GraphiQL. WIP",
"main": "main.js",
"scripts": {
Expand All @@ -20,8 +20,8 @@
"url": "https://github.com/skevy/graphiql-app/issues"
},
"dependencies": {
"graphiql": "^0.4.5",
"graphql": "^0.4.14",
"graphiql": "^0.5.0",
"graphql": "^0.4.17",
"isomorphic-fetch": "^2.1.1",
"lodash": "^3.10.1",
"mousetrap": "^1.5.3",
Expand Down

0 comments on commit dbc866e

Please sign in to comment.