Commit Graph

437 Commits

Author SHA1 Message Date
Gregory Schier
9208505bd9 Choose between YAML and JSON during export 2019-04-17 21:21:29 -07:00
Gregory Schier
272c2d4004 package-lock 2019-04-17 20:52:05 -07:00
Behrooz Shabani
86860e455b making exports git friendly (#1409)
As YAML supports multi line content, each line of requests' body will
appear in separate line when exported. Hence, making the exports git
friendly.
2019-04-17 20:50:23 -07:00
Dario Nieuwenhuis
6b24456835 Add support for extracting id_token from oauth2 implicit flow redirect. (#1408) 2019-04-17 18:14:40 -07:00
Gregory Schier
0a616fba6b
Version Control (beta) (#1439)
* VCS proof of concept underway!

* Stuff

* Some things

* Replace deprecated Electron makeSingleInstance

* Rename `window` variables so not to be confused with window object

* Don't unnecessarily update request when URL does not change

* Regenerate package-lock

* Fix tests + ESLint

* Publish

 - insomnia-app@1.0.49
 - insomnia-cookies@0.0.12
 - insomnia-httpsnippet@1.16.18
 - insomnia-importers@2.0.13
 - insomnia-libcurl@0.0.23
 - insomnia-prettify@0.1.7
 - insomnia-url@0.1.6
 - insomnia-xpath@1.0.9
 - insomnia-plugin-base64@1.0.6
 - insomnia-plugin-cookie-jar@1.0.8
 - insomnia-plugin-core-themes@1.0.5
 - insomnia-plugin-default-headers@1.1.9
 - insomnia-plugin-file@1.0.7
 - insomnia-plugin-hash@1.0.7
 - insomnia-plugin-jsonpath@1.0.12
 - insomnia-plugin-now@1.0.11
 - insomnia-plugin-os@1.0.13
 - insomnia-plugin-prompt@1.1.9
 - insomnia-plugin-request@1.0.18
 - insomnia-plugin-response@1.0.16
 - insomnia-plugin-uuid@1.0.10

* Broken but w/e

* Some tweaks

* Big refactor. Create local snapshots and push done

* POC merging and a lot of improvements

* Lots of work done on initial UI/UX

* Fix old tests

* Atomic writes and size-based batches

* Update StageEntry definition once again to be better

* Factor out GraphQL query logic

* Merge algorithm, history modal, other minor things

* Fix test

* Merge, checkout, revert w/ user changes now work

* Force UI to refresh when switching branches changes active request

* Rough draft pull() and some cleanup

* E2EE stuff and some refactoring

* Add ability to share project with team and fixed tests

* VCS now created in root component and better remote project handling

* Remove unused definition

* Publish

 - insomnia-account@0.0.2
 - insomnia-app@1.1.1
 - insomnia-cookies@0.0.14
 - insomnia-httpsnippet@1.16.20
 - insomnia-importers@2.0.15
 - insomnia-libcurl@0.0.25
 - insomnia-prettify@0.1.9
 - insomnia-sync@0.0.2
 - insomnia-url@0.1.8
 - insomnia-xpath@1.0.11
 - insomnia-plugin-base64@1.0.8
 - insomnia-plugin-cookie-jar@1.0.10
 - insomnia-plugin-core-themes@1.0.7
 - insomnia-plugin-file@1.0.9
 - insomnia-plugin-hash@1.0.9
 - insomnia-plugin-jsonpath@1.0.14
 - insomnia-plugin-now@1.0.13
 - insomnia-plugin-os@1.0.15
 - insomnia-plugin-prompt@1.1.11
 - insomnia-plugin-request@1.0.20
 - insomnia-plugin-response@1.0.18
 - insomnia-plugin-uuid@1.0.12

* Move some deps around

* Fix Flow errors

* Update package.json

* Fix eslint errors

* Fix tests

* Update deps

* bootstrap insomnia-sync

* TRy fixing appveyor

* Try something else

* Bump lerna

* try powershell

*  Try again

* Fix imports

* Fixed errors

* sync types refactor

* Show remote projects in workspace dropdown

* Improved pulling of non-local workspaces

* Loading indicators and some tweaks

* Clean up sync staging modal

* Some sync improvements:

- No longer store stage
- Upgrade Electron
- Sync UI/UX improvements

* Fix snyc tests

* Upgraded deps and hot loader tweaks (it's broken for some reason)

* Fix tests

* Branches dialog, network refactoring, some tweaks

* Fixed merging when other branch is empty

* A bunch of small fixes from real testing

* Fixed pull merge logic

* Fix tests

* Some bug fixes

* A few small tweaks

* Conflict resolution and other improvements

* Fix tests

* Add revert changes

* Deal with duplicate projects per workspace

* Some tweaks and accessibility improvements

* Tooltip accessibility

* Fix API endpoint

* Fix tests

* Remove jest dep from insomnia-importers
2019-04-17 17:50:03 -07:00
Joshua May
67db01dd5e OpenAPI v3 importer (#1430)
* Added swagger3 placeholder asset

* Added jest as project dependency, tests are running

* Empty test, but it's green now

* swagger3 -> openapi3

* Updated swagger-parser, tests still green

* Refactor: extract unthrowableParseJson to utils

* All of the parsers should be running, duh

* Oh, duh, that's how we update major versions in npm

* Our first openapi3 test is green

* Two green tests

* Three green tests

* Snapshotting a (mostly) green tree, minus some necessary change from swagger2

* Green tests!
2019-04-17 17:16:03 -07:00
senoctar
aee70d8545 Fix issue #1202. Lenient error handling for Yarn output. Check if out… (#1425)
* Fix issue #1202. Lenient error handling for Yarn output. Check if output is OK even if exit error code is non-zero.

* Add comments for electron exit code workaround.
2019-04-13 17:39:30 -04:00
Ernest Rekel
fab8b56ab0 Prevent modal closing for vim editor by stopping event propagation (#1429) 2019-04-13 17:38:51 -04:00
Ricky Chandra
bb8b48adc3 New data models for hotkeys and store the key bindings in settings (#1314)
* New data models for hotkeys and store the key bindings in settings

* Merge win and linux key bindings, remove generic key combinations, and add documents
2019-03-12 12:38:30 -04:00
Ángel Paredes
7fe101ba9b Fetch JS snippet (#1343)
* Add test for fetch snippet

* Add fetch snippet

* Fix jQuery doc comment
2019-03-11 18:20:38 -04:00
Sertaç Özercan
086f338182 add darkModeSupport (#1366) 2019-03-11 17:54:32 -04:00
Ryan Plessner
d22e05ac34 Add ability to optionally use Hawk payload validation. (#1339)
* Add ability to optionally use Hawk payload validation.

* Simplify signature of 'getAuthHeader'
2019-03-11 17:52:48 -04:00
Gregory Schier
6b8bb2515c Add optional ID for database buffering (for nested buffering) 2019-03-08 22:55:39 -05:00
Gregory Schier
6309d51b14 Fix Timeline selection weirdness and remove GraphQL debouncing 2019-02-28 12:33:29 -05:00
Gregory Schier
9d3e2f4424 Remove logs 2019-02-20 15:17:43 -05:00
Gregory Schier
0383aba6d3 Better GraphQL editor performance 2019-02-20 15:16:31 -05:00
Gregory Schier
70190b3dec Merge remote-tracking branch 'origin/develop' into develop 2019-02-20 13:12:02 -05:00
Gregory Schier
3aff970195 Add RPM build 2019-02-20 13:11:40 -05:00
Rafael Renan Pacheco
8112f5d625 Fetch new access and refresh tokens when refresh fails (#1338)
* Fetch new access and refresh tokens when refresh fails

* Fix typo
2019-01-21 11:38:44 -05:00
Ricky Chandra
c77094600d Add clear active workspace's all responses (#1317) 2019-01-21 11:29:30 -05:00
Rafael Renan Pacheco
921a5d2b3c Option to configure autocomplete popup delay (#1323)
- Fixes #1032
2019-01-09 18:13:24 -05:00
Gregory Schier
6d9a9e0acd Fix OAuth 1.0 auth not updating 2018-12-19 22:56:03 -05:00
Gregory Schier
ccf0abe02d Bump version 2018-12-15 20:39:31 -05:00
Gregory Schier
19ab14e142 A bit better send button handling 2018-12-15 20:37:40 -05:00
Gregory Schier
5adf101d83 Don't send requests twice (Fixes #1307) 2018-12-15 20:34:42 -05:00
Gregory Schier
efdb30a8a5 Publish
- insomnia-app@1.1.0
 - insomnia-cookies@0.0.13
 - insomnia-httpsnippet@1.16.19
 - insomnia-importers@2.0.14
 - insomnia-libcurl@0.0.24
 - insomnia-prettify@0.1.8
 - insomnia-url@0.1.7
 - insomnia-xpath@1.0.10
 - insomnia-plugin-base64@1.0.7
 - insomnia-plugin-cookie-jar@1.0.9
 - insomnia-plugin-core-themes@1.0.6
 - insomnia-plugin-file@1.0.8
 - insomnia-plugin-hash@1.0.8
 - insomnia-plugin-jsonpath@1.0.13
 - insomnia-plugin-now@1.0.12
 - insomnia-plugin-os@1.0.14
 - insomnia-plugin-prompt@1.1.10
 - insomnia-plugin-request@1.0.19
 - insomnia-plugin-response@1.0.17
 - insomnia-plugin-uuid@1.0.11
2018-12-15 11:51:48 -05:00
Gregory Schier
dba7e614e5 Publish
- insomnia-app@1.0.49
 - insomnia-cookies@0.0.12
 - insomnia-httpsnippet@1.16.18
 - insomnia-importers@2.0.13
 - insomnia-libcurl@0.0.23
 - insomnia-prettify@0.1.7
 - insomnia-url@0.1.6
 - insomnia-xpath@1.0.9
 - insomnia-plugin-base64@1.0.6
 - insomnia-plugin-cookie-jar@1.0.8
 - insomnia-plugin-core-themes@1.0.5
 - insomnia-plugin-file@1.0.7
 - insomnia-plugin-hash@1.0.7
 - insomnia-plugin-jsonpath@1.0.12
 - insomnia-plugin-now@1.0.11
 - insomnia-plugin-os@1.0.13
 - insomnia-plugin-prompt@1.1.9
 - insomnia-plugin-request@1.0.18
 - insomnia-plugin-response@1.0.16
 - insomnia-plugin-uuid@1.0.10
2018-12-15 11:51:21 -05:00
Gregory Schier
08ef6a80ed Bump version 2018-12-15 11:35:58 -05:00
Gregory Schier
776b3bd31e Small tweak 2018-12-15 00:18:19 -05:00
Gregory Schier
10a550cdb3 More dropdown positioning work 2018-12-15 00:01:16 -05:00
Gregory Schier
2006025ffe
Explicitly pass request when saving in React components (#1306)
* Started work on it

* Finish refactoring I think
2018-12-14 18:10:57 -05:00
Gregory Schier
eee0bfe023 Fix tests 2018-12-14 13:34:48 -05:00
Gregory Schier
5825327c27 Ensure TIMEOUT_MS is positive (Fixes #1264) 2018-12-14 13:26:10 -05:00
Gregory Schier
d755a7ca01 Merge remote-tracking branch 'origin/develop' into develop 2018-12-14 13:07:09 -05:00
Gregory Schier
91a2d2dc93 Don't webpack insomnia-httpsnippet (Fixes #1304) 2018-12-14 13:06:49 -05:00
Ricky Chandra
48716d98c4 Refresh CodeMirror editor when focused, and remove duplicate listener (#1294)
* Refresh CodeMirror editor when focused, and remove duplicate listener

* Call refresh() instead of focus() to refresh CodeMirror
2018-12-13 17:46:58 -05:00
Gregory Schier
88b0bb784f Add trailing commas to ESLint + Prettier 2018-12-12 12:36:11 -05:00
Gregory Schier
64a5e44528 Fix CodeMirror lint gutter not displaying (Closes #1279) 2018-12-12 11:27:22 -05:00
Gregory Schier
bd48e3ede1 Upgrade GraphQL dependencies (Might Fix #1261) 2018-12-12 11:02:54 -05:00
Gregory Schier
76f8d416a0 Publish
- insomnia-app@1.0.48
 - insomnia-importers@2.0.12
 - insomnia-plugin-request@1.0.17
2018-12-12 10:37:29 -05:00
tostringtheory
e0881c64aa Highlight focused keyboard tab (#1299) (#1300)
* Apply styling to keyboard focused tabs

* Add tab-index to tabs so only their contents are focusable
2018-12-12 10:35:44 -05:00
Timothy Lim
7bdd40892d Fix undefined id causing improper import (#1302)
Fix undefined id causing improper import
2018-12-12 10:29:10 -05:00
Gregory Schier
931f01c447 Merge branch 'develop' of github.com:getinsomnia/insomnia into develop 2018-12-11 18:44:58 -05:00
Gregory Schier
5ebc53fa13 Adjusted top-level deps 2018-12-11 18:44:34 -05:00
tostringtheory
19bd9c142c Related to #1220 - keyboard bindings/mnemonics (#1221)
* Add constant for platform specific mnemonic for menu shortcuts.

Modify top level menu elements with the shortcuts.

* Add global hotkey to show keyboard shortcuts

* Apply updates to mnemonics in menu bar allowing for alt-shortcuts

* Mod to color a :focus tab, for visibility when tabbing through controls

* Revert tabs style changes, focus F1 functionality for non-mac devices
2018-12-11 18:11:54 -05:00
Gregory Schier
959d2750f4 Refresh CodeMirror after GraphQL prettify (Fixes #896) 2018-12-11 17:47:28 -05:00
Gregory Schier
6f355bc7ba More reliable dropdown positioning (Fixes #1113) 2018-12-11 17:04:28 -05:00
Ricky Chandra
2b971aed1e Display all request groups names in tag editor drop down (#1293) 2018-12-10 12:18:38 -05:00
Ricky Chandra
f88d961748 Add clean deleted responses task on startup, and add tests (#1292)
* Add clean deleted responses task on startup, and add tests

* Bump version

* Add hookDatabaseInit() call to perform ops on DB startup

* Refactor clean responses function to fetch all from db instead of batching, move the call to db init hook, and refactor tests to use spyOn
2018-12-04 22:26:18 -05:00
Gregory Schier
8eb494dfe8 Add hookDatabaseInit() call to perform ops on DB startup 2018-12-03 13:43:43 -05:00