From 3ed07c67ee47ac47bb7665f25538bf6220c9fb85 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Fri, 22 Jul 2016 13:02:17 -0700 Subject: [PATCH] Removed Request.ContentType, added urlencoded editor, and added Copy to headers --- app/components/ContentTypeDropdown.js | 9 +-- app/components/RequestBodyEditor.js | 70 ++++++++++++++----- app/components/RequestPane.js | 12 ++-- ...esponseViewer.js => ResponseBodyViewer.js} | 0 app/components/ResponseHeadersViewer.js | 41 +++++++++++ app/components/ResponsePane.js | 26 ++----- app/components/base/CopyButton.js | 43 ++++++++++++ app/containers/App.js | 2 +- app/database/index.js | 26 ++++++- app/lib/contentTypes.js | 16 +++-- app/lib/export/curl.js | 7 -- app/lib/export/database.js | 40 +++++++---- app/lib/querystring.js | 51 +++++++++++--- 13 files changed, 256 insertions(+), 87 deletions(-) rename app/components/{ResponseViewer.js => ResponseBodyViewer.js} (100%) create mode 100644 app/components/ResponseHeadersViewer.js create mode 100644 app/components/base/CopyButton.js diff --git a/app/components/ContentTypeDropdown.js b/app/components/ContentTypeDropdown.js index 67db209a5..2e4cbb95a 100644 --- a/app/components/ContentTypeDropdown.js +++ b/app/components/ContentTypeDropdown.js @@ -3,16 +3,14 @@ import React, {PropTypes} from 'react'; import Dropdown from '../components/base/Dropdown'; import {CONTENT_TYPES, getContentTypeName} from '../lib/contentTypes'; -const ContentTypeDropdown = ({updateRequestContentType, activeContentType}) => { - const contentTypes = CONTENT_TYPES.filter(ct => ct !== activeContentType); - +const ContentTypeDropdown = ({updateRequestContentType}) => { return (