Commit Graph

977 Commits

Author SHA1 Message Date
Huli
a36e22c294
Replace textarea with code editor for response raw viewer (#2475)
* Replace textarea with code editor

* Add raw-editor class and props to make style consistent

* Merge raw-editor style into general.less

Co-authored-by: Li Hu <li.hu@onedegree.hk>
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-08-05 07:17:20 +12:00
Mike Ellan
784357f089
Sidebar code mirror interactions (#2433)
* Lifting path clicked up to sidebar root

* Abstracting out path click to story (and app)

* Adding click to scroll, updating sidebar components

* Scroll fix for sidebar

* Cleaning up log

* PR feedback

* PR Feedback, fix schemas & request body rendering

* PR feedback & cleanup

* Prop value checking, selection positioning

* Pulling remote import

* Styled components into insomnia-app, obj destructuring, typing

* Refactoring item path mapping

* Abstracting the mapping of specs for position, bumping down styled components version.

* Directly passing ... rest args initial work

* Pulling logs, removing array concatenation

* Pulling click handler out of render method

* Rolling position mapping into scroll positining method

* Opening up type, could be number/string/array

* Update package-lock.json

* Grabbing height from window, typing API vars, checking path

* Creating scroll method dedicated to design mode

* Moving typing of spec related content to Props def.

* Type checking on sections, invalid section component
2020-08-03 13:57:12 -04:00
Opender Singh
e9fb34490a
Fix a bug with bulk query edit (#2479) 2020-08-03 22:13:08 +12:00
Huli
e3f9e3c1d4
Consistent export dropdown verbiage (#2476)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-08-03 17:32:51 +12:00
Opender Singh
b50a4bf623
Support config file for inso (#2420) 2020-07-29 11:47:36 +12:00
Gregory Schier
c5283ab14a
Pivot Release for Core Signing Cert change (macOS) (#2453)
* Upgrade Electron to 8, bump Node version, fix font-manager

* Specify nodeIntegration as true

* Get <webview> working again

* Get <webview> working again

* Electron 9.0

* Escape parens in plugin install exec path (newer Electron added them)

* Bump versions for first alpha

* Electron 9.1

* Convert all Electron APIs that switched from callback to Promise

* Fix send-and-download feature

* Remove user-agent override hack for OAuth 2 login window

* Bump alpha version

* Fix issue regarding chokidar

* Add package-lock.json

* Upgrade chokidar because @babel/cli uses an older incompatible version of fsevents

* Fix source maps

* Read .nvmrc in GitHub actions

* Address remaining PR feedback

* Use Designer release env for Core

* Bump version

* Add signing requirements for new cert (attempt #1)

* Fix config

* Fix release script

* Fix whitelist cert

* Try updating cert checksum again

* Remove darkModeSupport option

* Revert version bump
2020-07-28 14:11:14 -07:00
Gregory Schier
93c91ebdbe
Upgrade Electron (#2403)
* Upgrade Electron to 8, bump Node version, fix font-manager

* Specify nodeIntegration as true

* Get <webview> working again

* Get <webview> working again

* Electron 9.0

* Escape parens in plugin install exec path (newer Electron added them)

* Bump versions for first alpha

* Electron 9.1

* Convert all Electron APIs that switched from callback to Promise

* Fix send-and-download feature

* Remove user-agent override hack for OAuth 2 login window

* Bump alpha version

* Fix issue regarding chokidar

* Add package-lock.json

* Upgrade chokidar because @babel/cli uses an older incompatible version of fsevents

* Fix source maps

* Read .nvmrc in GitHub actions

* Address remaining PR feedback
2020-07-27 22:18:26 -07:00
Opender Singh
b29be4ac2b
Handle silent failures for git push operation (#2432) 2020-07-28 11:48:55 +12:00
Mike Ellan
886c4d75b5
Editor search selection contrast (#2441)
* Increase readability for search result based selections.

* Bumping up highlight
2020-07-24 16:17:45 -04:00
Opender Singh
e43348d48a lib@2.2.19 2020-07-24 13:00:52 +12:00
Mike Ellan
b7bc88a326
Design sidebar (#2328)
* updated lock file

* Rolling sidebar from SB into application

* Type fix on the method label output

* Update packages/insomnia-components/components/sidebar.js

Co-authored-by: Opender Singh <opender94@gmail.com>

* PR Feedback - Keys, useCallback Hook

* stubbing component breakout

* PR Feedback

- Breaking out most UI elements into components
- Filter component in place
- Various CSS tweaks

* Removing unused file

* Updating toggle

* Resuable sidebar section (#2359)

* Introduce resuable sidebar section
* Stop eslint complaining
* add react-use
* Lint fixes
* Make the storybook story less wide

* Component development

Abstracting out line level components i.e.
Section > Header > Filter > Panel > Items

Various code fixes

* Cleaning up section visibility state

* Reverting visibiilty state updater

* Adding paths on click for spec scrolling

* refreshing package-lock to resolve conflict

* PR feedback for sidebar components

* Update packages/insomnia-components/components/sidebar/sidebar-header.js

Co-authored-by: Opender Singh <opender94@gmail.com>

* Including lock

* Merge fix

* Component structuring, prop clean-up, css updates

* Cleaning up components, pr feedback, fixing styling

* array index reference clean-up/clarity

* Leveraging useToggle rather than manual useState toggling

* Cleaning up logs

* Hide info section if missing from spec.

* Update packages/insomnia-components/components/sidebar/sidebar-responses.js

Co-authored-by: Opender Singh <opender94@gmail.com>

* Update packages/insomnia-components/components/sidebar/sidebar-schemas.js

Co-authored-by: Opender Singh <opender94@gmail.com>

* Pull fragment

* Destructuring and filter cleanup

* Clearing filter value and DOM on section collapse

* Merge latest

* Merge conflict cleanup

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-07-22 09:13:06 -04:00
Opender Singh
5fb1caf941
Improve codemirror fold marker theme (#2406) 2020-07-14 15:24:55 +12:00
Jinay Jain
d52fc75ab9
Fix #2376: remove extra "to" in error (#2402) 2020-07-14 11:27:54 +12:00
Gregory Schier
938cb9ad54
Fix autocomplete and make the code a bit better (#2394) 2020-07-10 14:11:23 -07:00
Gregory Schier
5e8f1ee13e Bump versions 2020-07-10 14:07:50 -07:00
Mike Ellan
1e9767ad35
Revert "2377 paste issue fix (#2386)" (#2389)
This reverts commit 60cb5fb9dd.
2020-07-10 15:00:38 -04:00
Mike Ellan
fad1b671dc
Version bump (#2388)
* updated lock file

* Version bump
2020-07-10 14:43:18 -04:00
Mike Ellan
fb7cc34e8d
Revert "Support toggling of auto beautify in editor. (#2305)" (#2387)
This reverts commit 19b29023d5.
2020-07-10 14:36:07 -04:00
Mike Ellan
60cb5fb9dd
2377 paste issue fix (#2386)
* updated lock file

* Fix for C&P related CodeMirror and input value relay
2020-07-10 13:28:36 -04:00
Gregory Schier
4e56d2c26d
Release for 2020.3 (#2356)
* Bump verions

* Remove enableUnitTestingBeta setting (#2358)

* Bump versions
2020-07-09 14:59:22 -07:00
Opender Singh
0aa12f83df lib@2.2.15 2020-07-08 08:55:56 +12:00
Opender Singh
a35664d4dd
Stub console log during db initialization (#2351) 2020-07-07 10:59:56 +12:00
Gregory Schier
8d6e797465 Version bump 2020-07-02 12:43:00 -07:00
Erik Plaggenmars
19b29023d5
Support toggling of auto beautify in editor. (#2305)
* Updated code editor to support toggling of beautify in editor.

Added a button to toggle beautify. When toggled text is 'beautified' immediately and when text is pasted into the editor or when the editor is blurred.

Removed _prettify method because it is no longer used.

* Changed toggle of auto beautify to dropdown selection.

The toggle has been replaced by a dropdown selection, the text in the beautify button will change accordingly. In manual mode, the button can still be clicked.

* Updated label of the beautify button.

* Changed caret up to cog icon + minor change to button label

* Changed cog icon to wrench icon.

Co-authored-by: Mike Ellan <52717970+sonicyeti@users.noreply.github.com>
2020-07-02 10:57:58 -04:00
Opender Singh
1b5315fe55 lib@2.2.13 2020-07-02 11:39:48 +12:00
Opender Singh
8459c85780 bump app version for alpha 3 2020-07-02 11:31:22 +12:00
Opender Singh
9af2054ccf lib@2.2.12 2020-07-02 11:29:00 +12:00
Opender Singh
d91e6735a7 lib@2.2.11 2020-07-02 11:19:48 +12:00
Gregory Schier
eae0d8d433
Unit test improvements (#2337)
* Start working on insomnia-testing package to generate Mocha code

* Moved some things around

* Integration tests and ability to run multiple files

* Fix integration tests

* Rename runSuite to runMochaTests

* Add types for test results

* Fix lint errors

* Play with Chia assertions

* insomnia and chai globals, plus a bunch of improvements

* Stub chai and axios Flow types

* Ability to reference requests by ID

* Fix chai flow-typed location

* Address PR comments (small tweaks)

* Basic UI going

* Lots and lots and lots

* Pretty-much done with the unit test UI

* Minor CSS tweak

* Activity bar triple toggle and more

* Minor tweak

* Unit Test and Suite deletion

* Bump Designer version

* Fix eslint stuff

* Fix insomnia-testing tests

* Fix tests

* lib@2.2.9

* Remove tests tab from response pane

* Hook up Insomnia networking

* Fix linting

* Bump version for alpha

* Remove extra ActivityToggleSwitch

* Remove unused import

* Add test:pre-release script that excludes CLI tests

* Less repetition

* Clean some things up

* Tweaks after self-cr

* Undo request ID tag

* Swap out switch for new activity toggle component

* Extra check

* Remove dead code

* Delete dead test

* Oops, revert example code

* PR feedback

* Unit test UI tweaks

* More PR comment addresses

* Change test name
2020-07-01 15:57:42 -07:00
Gregory Schier
3883dc6feb
POC for Unit Test UI (#2315)
* Start working on insomnia-testing package to generate Mocha code

* Moved some things around

* Integration tests and ability to run multiple files

* Fix integration tests

* Rename runSuite to runMochaTests

* Add types for test results

* Fix lint errors

* Play with Chia assertions

* insomnia and chai globals, plus a bunch of improvements

* Stub chai and axios Flow types

* Ability to reference requests by ID

* Fix chai flow-typed location

* Address PR comments (small tweaks)

* Basic UI going

* Lots and lots and lots

* Pretty-much done with the unit test UI

* Minor CSS tweak

* Activity bar triple toggle and more

* Minor tweak

* Unit Test and Suite deletion

* Bump Designer version

* Fix eslint stuff

* Fix insomnia-testing tests

* Fix tests

* lib@2.2.9

* Remove tests tab from response pane

* Hook up Insomnia networking

* Fix linting

* Bump version for alpha

* Remove extra ActivityToggleSwitch

* Remove unused import

* Add test:pre-release script that excludes CLI tests

* Less repetition

* Clean some things up

* Tweaks after self-cr

* Undo request ID tag

* Swap out switch for new activity toggle component

* Extra check

* Remove dead code

* Delete dead test

* Oops, revert example code

* PR feedback

* More PR comment addresses
2020-07-01 14:17:14 -07:00
Gregory Schier
48348e04c1
Swap out switch for new activity toggle component (#2335)
* Swap out switch for new activity toggle component

* Extra check

* Remove some more theme stuff

* Some PR feedback
2020-06-30 16:54:56 -07:00
Gregory Schier
984d6051ab
Rename emptyValue to blankValue (#2336) 2020-06-30 16:52:56 -07:00
Gregory Schier
bab945a6a1
Alternate send request callback for app to use (#2334) 2020-06-30 15:40:15 -07:00
Gregory Schier
9440bfe098
Add support for snippets in autocomplete (#2333)
* Add support for snippets in autocomplete

* Add snippet styling

* Use correct font color
2020-06-30 15:37:06 -07:00
Gregory Schier
f2060da23e Fix for when request is null 2020-06-30 15:32:58 -07:00
Gregory Schier
b0d0dd9359 Merge branch 'develop' of github.com:Kong/insomnia into develop 2020-06-30 14:01:45 -07:00
Gregory Schier
05b2e7d345 Fix devtools hotkey 2020-06-30 14:00:58 -07:00
Jody Heavener
9f68e36eb4
Default to rendered request URL when name is not present (#2230)
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-07-01 08:53:01 +12:00
Gregory Schier
45861b6393
POC to get Insomnia networking available outside of app (#2329)
* Hacked insomnia lib package to get Insomnia's networking in tests

* Some small tweaks

* Got it mostly working

* Tweak

* Fix

* Fix pkg

* Fix some things

* Add comment

* Comment out log

* Some tweaks after doing a self code review

* Fix test

* Update app name for `insomnia-send-request`

* Update package-lock

* Update package-locks

* Fix tests

* Add gitignore

* Fix tests hopefully

* Fix accidental dep deletions

* Fix tests again

* Mock for all tests

* Update tests again

* Don't compile for Electron for tests

* Update release scripts to disable tests
2020-06-30 12:36:15 -07:00
Nicholas Raphael
d4c475fa57
Feature: Show Dev Tools with hotkeys (#2309)
* add key combinations for dev tools hotkey

* add Dev Tools accelerator to View menu remove from Develop menu

* remove changes from hotkey.js

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-29 11:48:53 -07:00
Gregory Schier
55be1de2bd lib@2.2.10 2020-06-29 10:51:46 -07:00
Gregory Schier
85f4bf31be Update packages from lib@2.2.9 publish 2020-06-25 15:50:39 -07:00
Opender Singh
2586ee5ad7
Bundling improvements for insomnia-components (#2297)
* Bundling improvements for insomnia-components

* Update

* Update
2020-06-17 07:46:13 +12:00
Sergey
f399c9e95f
Sort enviroment variables in the dropdown on edit (#2295) 2020-06-16 10:29:29 -07:00
Mike Ellan
a200e31e61
Adding copy support for preview input fields (#2296) 2020-06-15 16:21:44 -04:00
Opender Singh
65105da797
The One With Hooks (#2286)
* Add

* Update

* Remove extra peer dep

* Remove extra peer dep undo

* Undo stuff

* Convert two components (validation)

* Undo packed dep change

* Fix for react-dom alias to @hot-loader/react-dom (#2292)

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-06-13 16:56:15 +12:00
Sergey
723b31c731
Fix contrast ratio of lists and header3 (#2287) 2020-06-12 13:47:15 -07:00
Gregory Schier
6b4f009a67
Add fallback status messages for HTTP/2 (Closes #2273) (#2275) 2020-06-10 11:16:09 -07:00
Gregory Schier
53c21fba37
Add ability to specify HTTP version (#2276)
* Add ability to specify HTTP version (Closes #2245)

* Fix default HTTP version

* Format w/ Prettier
2020-06-10 11:15:56 -07:00
Gregory Schier
ec81568d43
Add Snapcraft release to Core and Designer (#2268)
* Try building snap package

* Custom snap workflow

* Fix names

* Put back node install

* Try moving env

* Add fontconfig lib

* Fix libfontconfig-dev

* Fix git tag priority

* Fix env

* Fix git ref

* Wow, fix ref again

* Remove Node 10 requirement

* Wow I'm silly

* Back to Node 10

* Ditch electron-builder Docker container

* Try apt-get witihout sudo

* Try snapcraft action

* Install snapcraft

* Log into snapcraft

* Install correct version of snapcraft

* Install snapcraft via snap

* Change Designer executable name

* Publish snap to stable

* Try snap store publish overrides

* Fix buildContext reference

* Delete debug release-snap workflow

* Remove electron-builder container

* Remove unnecessary env

* Add back node 10 version check

* Revert non-working snap channel override
2020-06-09 17:32:01 -07:00
Gregory Schier
7f4a5529e9
Fix usable of nested objects in environments (#2249) 2020-06-09 14:14:05 -07:00
Opender Singh
96defb1ec2 Bump versions to 2020.2.2 2020-06-09 13:28:45 +12:00
Opender Singh
62593e9282 lib@2.2.8 2020-06-09 13:27:38 +12:00
Gregory Schier
8d01d57363
Prevent linting from breaking code-editor persistence (#2267)
* Prevent linting from breaking code-editor persistence (Fixes #2234)

* Fix whitespace
2020-06-08 16:58:36 -07:00
Gregory Schier
edf874ce5c
Fix responses not being found if deleted active environment (#2265)
* Fix responses not being found (Closes #2237)

* Fix active envirnoment set

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-08 15:32:49 -07:00
Opender Singh
dfa981f6b5
Persist tab selection per document (#2231) 2020-06-06 13:37:58 +12:00
Nicholas Raphael
2b9edee71b
Display nicer error message given empty input when installing plugins (#2238)
* Fixes #2208: Displays nicer error message given empty input when installing plugins

* change error message on plugin install failure

* added detail error output and new installPluginErrMsg state variable

* fixed lint errors

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-06 13:11:33 +12:00
Opender Singh
43e8429b21
Rollback pending changes in git sync commit dialog (#2226) 2020-06-04 08:48:47 +12:00
Gregory Schier
803c604b42
Fix template tag enums not being quoted (Closes #2235) (#2239)
Co-authored-by: Opender Singh <opender94@gmail.com>
2020-06-03 10:58:50 -07:00
Opender Singh
393a363a25
Force a view refresh on changing branches (#2233) 2020-06-03 17:32:36 +12:00
Opender Singh
e219bebee3 Bump core version to 2020.2.1 2020-06-03 16:35:22 +12:00
Opender Singh
c0cc74d27c
Conditionally disable legacy sync for Insomnia Core (#2243) 2020-06-03 16:27:05 +12:00
Gregory Schier
819f4b9cf5 Bump versions for 2020.2 2020-05-29 13:59:00 -07:00
Gregory Schier
85b4ddceec Merge branch 'develop' of github.com:Kong/insomnia into develop 2020-05-29 13:58:21 -07:00
Gregory Schier
96e951821a Default the toast Gravatar email from app config 2020-05-29 13:58:09 -07:00
Opender Singh
fae26d65ac
Fix windows tests (#2227) 2020-05-29 10:45:37 +12:00
Gregory Schier
4d02e6af8a Merge branch 'develop' of github.com:Kong/insomnia into develop 2020-05-28 14:41:57 -07:00
Gregory Schier
2d74e15c54 Fix rimraf recursion on fsevent 2020-05-28 14:41:51 -07:00
Opender Singh
b850de4d6f Bump versions for beta release 2020-05-29 09:27:33 +12:00
Opender Singh
4cabc17bbd lib@2.2.7 2020-05-29 09:24:51 +12:00
Opender Singh
8e1730e6a4 Update to disturl 2020-05-29 07:50:13 +12:00
Gregory Schier
d003727838 Merge branch 'develop' of github.com:Kong/insomnia into develop 2020-05-28 12:36:04 -07:00
Gregory Schier
9ecd7d3c42 Update target in npmrc 2020-05-28 12:35:52 -07:00
Opender Singh
040641f5fc
Git sync commit on Windows always shows all objects as unversioned (#2215) 2020-05-29 06:44:17 +12:00
Opender Singh
bbc3103fe6
Don't create empty commit if no changes exist (#2217)
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-05-29 06:23:31 +12:00
Opender Singh
5cf2f59e46
Git clone fails on Windows. This fixes it. (#2194)
Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-05-29 06:13:13 +12:00
Gregory Schier
4387381fd1
Upgrade node-libcurl (#2223)
* deps: bump node-libcurl to latest prerelease version

* Add .npmrc, bump Electron to 3.1.13, remove electron-rebuild

* Minor tweaks

* package locks

* Bump version

* Switch to font-manager and fix fsevents rimraf

* Try generating npmrc inside build/

* Try uninstall of fsevents instead

* Bump

* Try npm env vars

* Extra .npmrc

* Try npm env vars in all CI

* Fix insomnia-cookies dependencies

* Fix typo

* Loosen nvmrc version

* Remove npm uninstalls

* Build outside of Docker

* Remove Docker, build all on GH Actions

* Bump Core version

* Disable Snapcraft for now

* Bump

* Disable snap for Designer too

* Update product name for Core

* Update test.yml

* Remove Travis file

* Make userData folder explicit and add Curl types

* Remove old Kong icon

* Remove curl.js adapter

* Revert productName

* Fix release date

* Try remove windows build tools from CI

* Add comment about Snap deploys

* Remove the pane border on Windows (no longer necessary)

Co-authored-by: Jonathan Cardoso Machado <me@jonathancardoso.com>
2020-05-28 10:09:51 -07:00
Vorashil
963cf7d2ad
Fix for warning not displaying when using an environment variable with '-' (#2212) 2020-05-25 10:12:31 +12:00
Gregory Schier
2800c9c9e7 lib@2.2.6 2020-05-20 20:15:22 -07:00
Gregory Schier
5252137f3c lib@2.2.5 2020-05-20 20:14:45 -07:00
Opender Singh
08534699e7
Fix GitLab sync (#2162)
* Down with hardcoded slugs

* Type the error modal

* Set username

* Update

* Update

* add username

* Revert .flowconfig

* Address comments

* Simplify

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-05-15 14:11:06 +12:00
Opender Singh
443d6df08d
Initial pass to combine eslint and prettier (#2166) 2020-05-15 10:54:07 +12:00
Opender Singh
29027c4d4a
Various k4k8s config gen bugs (#2136) 2020-05-15 08:27:43 +12:00
Mike Ellan
4f39486eb7
Storybook Sidebar Provisioning & WIP Implementation (#2125)
* Migrating dimensions, latest SVG, stubbing sidebar

* Revert "Migrating dimensions, latest SVG, stubbing sidebar"

This reverts commit 5014a68f52.

* Revert "Revert "Migrating dimensions, latest SVG, stubbing sidebar""

This reverts commit 28c130c8d8.

* Post merge bootstrap & build

* Linting

* Updating Story Heirarchy

* Migrating legacy tooltip component

* Reverting spacing integration into core dimensions

* Cleaning up comments, tweaking CSS var usage

* Removing static height

* Cleaning up static CSS values, re-organizing sliding panel, fixing search icon

* adding flow def for autobind in new SB instance

* PR feedback, removing new vars/updating markup

* Fixing lint > flow error on type
2020-05-14 14:00:29 -04:00
Opender Singh
200c354a3a
Handle empty security object in openapi3 (#2170) 2020-05-14 14:11:15 +12:00
Opender Singh
d6998ad684
Wrap SwaggerUI component with an error boundary that can invalidate (#2131) 2020-05-13 10:05:29 +12:00
Mike Ellan
75a129c038
Code block and render error coloring for dark/light themes (#2156) 2020-05-11 16:53:13 -04:00
Gregory Schier
97214012c6
Improve card filtering (#2134) 2020-05-07 12:32:48 -07:00
Gregory Schier
9554c4675f
Fix FileInputButton breaking when path is null (#2129) 2020-05-06 16:08:17 -07:00
Opender Singh
453745d3e2 Fix linting whitespace error 2020-05-06 17:00:31 +12:00
Rishabh Gupta
37959fc644
Show version release date (#2031) 2020-05-05 17:43:39 -07:00
Opender Singh
15d4789716
Move toggle-switch to insomnia-components, attach to themes (#2115) 2020-05-06 12:08:17 +12:00
Opender Singh
b75fe624fa
Bug in restoring code-folds (#2114) 2020-05-06 08:36:25 +12:00
Opender Singh
486f4b5881
Add plugin hub/npm hyperlink to plugin listing (#2109) 2020-05-03 15:46:02 +12:00
Gregory Schier
fde5cb078e
Add Ability to Generate Plugin for Dev (#2107) 2020-05-02 11:56:39 -07:00
Gregory Schier
a32181c4c7
Handle non-string types in filterHeaders() (#2099) 2020-05-02 11:19:18 -07:00
Gregory Schier
8276688758 lib@2.2.4 2020-05-01 20:40:27 -07:00
Gregory Schier
48916b9ed2 Update plugins and merge theme packages 2020-05-01 20:40:02 -07:00
Gregory Schier
43169da95b Add Designer install spinner 2020-04-29 13:54:00 -07:00
Gregory Schier
e96e663b2c Bump version and fix user agent 2020-04-29 13:05:54 -07:00
Opender Singh
da80f36703
Set filename of apiSpec using Workspace name during db repair (#2074)
* Set filename of workspace during db repair

* Remove unnecessary changes

* Update api-spec.js
2020-04-29 13:00:56 -07:00
Gregory Schier
58fed78d06
Flatten insomnia-libcurl package (#2081)
* Remove unnecessary insomnia-libcurl package to flatter installation dirs

* Remove empty test folder

* Fix inlc mock
2020-04-29 12:59:46 -07:00
sonicyeti
02c061229b
Suppress lint on init when spec empty or default value (#2077)
* Suppress lint on init when spec empty or default value
* Update packages/insomnia-app/app/ui/components/codemirror/code-editor.js
2020-04-29 15:37:18 -04:00
Gregory Schier
65d7fab79e lib@2.2.3 2020-04-29 11:15:38 -07:00
Gregory Schier
c0ca12ece9 Bump version 2020-04-29 11:15:24 -07:00
Gregory Schier
cc089ffa79 Use shorter insomnia-node-libcurl pkg 2020-04-29 11:15:05 -07:00
Gregory Schier
dc337cef64 Fix bad author name 2020-04-29 09:13:38 -07:00
Opender Singh
d6bb7a3896
Resolve recursive migration issue that comes up in a particular use case (#2071)
* Resolve recursive migration that comes up in a particular case

* Remove migration altogether
2020-04-28 19:48:25 -07:00
Gregory Schier
c7ba218049 Update GA IDs 2020-04-28 19:41:45 -07:00
Gregory Schier
8bd6b50073 Bump versions 2020-04-28 16:50:53 -07:00
Gregory Schier
751f8f5f21 Tweak some configs 2020-04-28 15:28:48 -07:00
Opender Singh
83ac9adaf2
Handle deletion of last document (#2069) 2020-04-29 10:11:22 +12:00
sonicyeti
d4d2a5fa14
re-rolling the style tweaks (#2068) 2020-04-28 16:38:31 -04:00
Gregory Schier
a733ccf51f
Fix bug regarding _ignoreNextInput logic (#2067)
* Fix force-prettify bug

* Revert default value on code-editor

* Add some comments
2020-04-28 13:14:33 -07:00
Opender Singh
fd1420ddc8
Add filename to apiSpec model and decouple from workspace name (#2063)
* Initial commit

* WIP

* Fix lint

* Fix tests

* Add test for workspace migration

* Rename title to use fileName instead of workspace name for designer

* Linting
2020-04-28 14:29:51 -04:00
Opender Singh
2faa58fa24
Control code-editor indenting by tab and shift-tab, instead of CodeMirror defaults (#2064) 2020-04-28 14:28:46 -04:00
Gregory Schier
bc80c3f93e Fix changelog base URL 2020-04-27 15:52:35 -07:00
Gregory Schier
b9226a3ee1 Bump version and hide ApiSpec from sync 2020-04-27 15:23:56 -07:00
Gregory Schier
7de8246ff8 lib@2.2.2 2020-04-27 15:02:35 -07:00
Opender Singh
0e7b96c868
Add Swagger UI required prop (#2062) 2020-04-28 08:58:40 +12:00
Gregory Schier
10d61796cc
Some tweaks before launch: (#2060)
* Some tweaks before launch:

- Set GA IDs
- Change git folder to `.insomnia`
- Set gravatar email on update notification

* Fix tests
2020-04-27 13:42:57 -07:00
Gregory Schier
03e5df6913 Bump versions 2020-04-27 09:53:24 -07:00
Gregory Schier
d1b7d55483 Travis improvements and upgrade Octokit 2020-04-26 14:29:51 -07:00
Gregory Schier
4cb8e34aef Rename some old things 2020-04-26 14:08:50 -07:00
Gregory Schier
a3253a1149 Set versions 2020-04-26 14:01:07 -07:00
Gregory Schier
c6a7c4d682 Initial designer merge 2020-04-26 13:33:39 -07:00
Yi Tang
28e7d928a8
Expose the request body for plugins (#2003)
* Expose more request body for plugins

Support the following api for plugins:

- get/set the content type of the request;
- get/add/set the form parameters of the reuqest body;
    adding file form item will be ignored if the mime type is not
    multipath form.
- get/set the uploaded filename of the request;
    setting uploading file name will be ignored if the mime type is not
    octet stream.

* Add some test cases

* Add simple request body api for plugins

* Mark (get|set)BodyText() as deprecated
2020-04-23 11:44:54 -07:00
Benjamin Leeds
b7d97a071b
fix: Escape key in editble field closing modals (#2039)
Bonus: Also fixed the issue where escaping saved the value.
2020-04-22 12:28:28 -07:00
Opender Singh
b4b6464f9e
Remove insomnia-components (#2043) 2020-04-22 12:23:54 -07:00
Opender Singh
c3d4d89193
Prevent migrations from running for database.duplicate (#2040) 2020-04-22 11:59:09 +12:00
Gregory Schier
cb715f9565 Remove all fsevents modules 2020-04-14 16:09:18 -07:00
Gregory Schier
7bc219422e
Update Babel and ESLint and fix all related errors (#2032)
* Update Babel and ESLint and fix all related errors

* Update babel-jest
2020-04-09 10:32:19 -07:00
Gregory Schier
a893ba8c88 Extra dialog parameters for plugins 2020-04-07 15:25:49 -07:00
Gregory Schier
3b9031ecc0 Ensure workspace always has valid name attribute 2020-04-07 15:00:04 -07:00
Gregory Schier
68b9221b80
New plugin API for showing custom UI inside a dialog (#2026)
* New dialog() method to show generic dialogs from Plugins

* Clarified deprecated api method

* Body now required in dialog()

* Made options arg optional too

* Fix tests
2020-04-06 14:31:03 -07:00
Gregory Schier
6424e11875 Remove About tab from settings and link to OSS license 2020-04-03 11:53:57 -07:00
Cameron Ross
54564bd0f4
Add subscription type to GraphQL schema explorer. (#2008) 2020-03-31 11:06:50 +13:00
Gregory Schier
daef7806c8 Move GraphQL default value into separate component 2020-03-18 12:46:45 -07:00
Opender Singh
b072745b6d
Introduce flow $Shape<T> to db models (#2002)
* Introduce flow <T> to db models

* Resolve errors discovered while fixing typing

* Revert change for response
2020-03-18 11:58:57 -07:00
eMerzh
51610ac6bc
Add support for default values in graphql fix #2000 (#2001) 2020-03-18 11:58:37 -07:00
Eric Reynolds
2f8b0b6602
Fixing a race condition when deleting the only workspace (#1997)
Co-authored-by: Eric Reynolds <eric.reynolds@konghq.com>
2020-03-13 22:12:41 -07:00
Alfonso Ruzafa
e0d20e5c2c
Allow checkbox input type in prompt dialog (#1980)
* allow checkboxes input fields in prompt dialog

* return booleans as strings from prompt

* align label with checkbox for boolean prompt

* set css classes based on html input type
2020-03-12 16:26:21 -07:00
Alfonso Ruzafa
39c73e17c5
mask template tag title popup when preview is disabled (#1995) 2020-03-12 16:00:11 -07:00
Gregory Schier
7aae21154a
Remove About tab from settings and link to OSS license (#1996) 2020-03-12 15:57:46 -07:00
Alfonso Ruzafa
34c5a79338
Add support for live display name for template tags (#1936)
* add support for live display names in template tags

* add setting to (de)activate live display names in template tags

* Revert "add setting to (de)activate live display names in template tags"

This reverts commit 8cd70b87b5.

* remove liveDisplayName from the Prompt plugin

* use liveDisplayName over 1st arg if it's an enum
2020-03-11 15:15:15 -07:00
Gregory Schier
23b4ac97bd
Add ability to generate theme plugin (#1988)
* Fix missing header name breaking sidebar render

* Global command to generate theme from JSON object

* Update packages/insomnia-app/app/ui/redux/modules/global.js

Co-Authored-By: Opender Singh <opender94@gmail.com>

Co-authored-by: Opender Singh <opender94@gmail.com>
2020-03-11 12:23:52 -07:00
Opender Singh
1aba4cb2cf
Nunjuck resolution in order of property definitions (#1863)
* Add breaking test

* Remove preferential ordering of tags over variables in nunjucks

* Remove preferential ordering of tags over variables in nunjucks

* simplify nunjucks sort

* Add breaking test for incorrect order

* Update json-order and consume

* Refine test with dataPropertyOrder

* Tests

* add note

* Add to test

* Missed the await
2020-03-09 11:20:22 -07:00
Bartek Bułat
64b6825e53
Add documentation for interfaces (#1984)
Add list of implementations to Interface documentation and list of
implemented interfaces to Object documentation.
2020-03-06 17:52:52 -08:00
Gregory Schier
9fe45a8ebb Bump version 2020-02-18 16:17:57 -05:00
Serpil Acar
e666961b4f
fix componentWillUnmount lifecycle method (#1951) 2020-02-18 12:44:08 -05:00