mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
2cdd4761c8
* Add digest auth and response timeline * Some css fixes * Fixed Button * More auth methods, fixed URL regex, and fix gzip * Get rid of negotiate auth * Fix proxy * Fixed GA tracking * Some very small changes and fixes * Fix content type names * Even better auth switching and timeline syntax * Some auth tweaks * CSS tweaks * Reworked toasts * Fixed timer rounding quirk * Request settings and render errors * Fixed tests * Vertical dragging and stuff * Remove beta
40 lines
1.1 KiB
JavaScript
40 lines
1.1 KiB
JavaScript
import React, {PureComponent} from 'react';
|
|
import Hotkey from '../hotkey';
|
|
|
|
class Shortcuts extends PureComponent {
|
|
renderHotkey (name, char, shift, alt) {
|
|
return (
|
|
<tr>
|
|
<td>{name}</td>
|
|
<td className="text-right">
|
|
<code><Hotkey char={char} shift={shift} alt={alt}/></code>
|
|
</td>
|
|
</tr>
|
|
);
|
|
}
|
|
|
|
render () {
|
|
return (
|
|
<table className="table--fancy">
|
|
<tbody>
|
|
{this.renderHotkey('Switch Requests', 'P')}
|
|
{this.renderHotkey('Send Request', 'Enter')}
|
|
{this.renderHotkey('New Request', 'N')}
|
|
{this.renderHotkey('Duplicate Request', 'D')}
|
|
{this.renderHotkey('Show Cookie Manager', 'K')}
|
|
{this.renderHotkey('Show Environment Editor', 'E')}
|
|
{this.renderHotkey('Focus URL Bar', 'L')}
|
|
{this.renderHotkey('Toggle Sidebar', '\\')}
|
|
{this.renderHotkey('Show App Preferences', ',')}
|
|
{this.renderHotkey('Show Workspace Settings', ',', true)}
|
|
{this.renderHotkey('Show Request Settings', ',', true, true)}
|
|
</tbody>
|
|
</table>
|
|
);
|
|
}
|
|
}
|
|
|
|
Shortcuts.propTypes = {};
|
|
|
|
export default Shortcuts;
|