Revert response headers tweak

This commit is contained in:
Gregory Schier 2016-07-27 13:17:57 -07:00
parent 3e63e533f3
commit ecbf3ef64a
3 changed files with 27 additions and 5 deletions

View File

@ -7,9 +7,30 @@ const ResponseHeadersViewer = ({headers}) => {
).join('\n');
return (
<pre className="scrollable wide tall selectable monospace pad">
{headersString}
</pre>
<div>
<table className="wide">
<thead>
<tr>
<th>Name</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{headers.map((h, i) => (
<tr className="selectable" key={i}>
<td>{h.name}</td>
<td>{h.value}</td>
</tr>
))}
</tbody>
</table>
<p className="pad-top">
<CopyButton
className="pull-right btn btn--super-compact btn--outlined"
content={headersString}
/>
</p>
</div>
)
};

View File

@ -11,7 +11,6 @@ import {getPreviewModeName} from '../lib/previewModes';
import {PREVIEW_MODE_SOURCE} from '../lib/previewModes';
import {REQUEST_TIME_TO_SHOW_COUNTER} from '../lib/constants';
import {MOD_SYM} from '../lib/constants';
import RequestSwitcherModal from './modals/RequestSwitcherModal';
class ResponsePane extends Component {
render () {
@ -147,7 +146,7 @@ class ResponsePane extends Component {
/>
)}
</TabPanel>
<TabPanel>
<TabPanel className="scrollable pad">
<ResponseHeadersViewer headers={response.headers}/>
</TabPanel>
</Tabs>

View File

@ -3,6 +3,7 @@
BUILD_DIR='./build'
say "Starting build"
echo "-- REMOVING DIST FOLDER --"
rm -r "$BUILD_DIR"
@ -26,3 +27,4 @@ cd "$BUILD_DIR"/
NODE_ENV=production npm install
echo "-- BUILD COMPLETE --"
say "Build complete"