mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
36 lines
1.1 KiB
JavaScript
36 lines
1.1 KiB
JavaScript
import React from 'react'
|
|
import Editor from '../components/Editor'
|
|
|
|
const RequestPane = (props) => (
|
|
<section id="request" className="pane col grid-v">
|
|
<header className="header header-no-padding">
|
|
<div className="form-control url-input">
|
|
<div className="grid">
|
|
<button className="btn bg-super-light method-dropdown">
|
|
POST <i className="fa fa-caret-down"></i>
|
|
</button>
|
|
<input type="text" placeholder="https://google.com"/>
|
|
<button className="btn bg-super-light send-request-button">
|
|
<i className="fa fa-repeat txt-xl"></i>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div className="bg-dark pane-tabs">
|
|
{['Query Params', 'Body', 'Headers', 'Basic Auth'].map((name => {
|
|
return <button key={name} className="btn bg-dark">
|
|
{name}
|
|
</button>
|
|
}))}
|
|
</div>
|
|
<Editor value={localStorage['json']}
|
|
onChange={(v) => {localStorage['json'] = v;}}
|
|
options={{mode: 'application/json', lineNumbers: true}}
|
|
></Editor>
|
|
</section>
|
|
);
|
|
|
|
RequestPane.propTypes = {};
|
|
|
|
export default RequestPane;
|