Commit Graph

80 Commits

Author SHA1 Message Date
Dimitri Mitropoulos
d53ef39c9b
use named exports for all (remaining) react components (#4050) 2021-09-27 15:47:22 +02:00
James Gatz
e7d44bf206
Update axios-request to respect the validateSSL app setting (#4042)
* Update axios-request to respect the validateSSL app setting

* Update types and formatting
2021-09-22 14:57:51 +02:00
Ramón Márquez
fa2429da67
Plugin API feature: added getInfo method to context.app (#3975) 2021-09-16 08:10:20 +12:00
Jason Blalock
8db87df17c
[Feature/Plugin API] Add clipboard wrapper methods to context app (#3977)
Co-authored-by: Jason Blalock <jasonblalock@users.noreply.github.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: Opender Singh <opender94@gmail.com>
2021-09-01 17:40:11 +00:00
Opender Singh
c8926d75ae
Don't resolve plugin prompt promise until modal has closed, to avoid a race condition (#3970)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-08-31 04:52:01 +00:00
Dimitri Mitropoulos
7f7b9f5614
renames base project to default project in code and copy (#3939)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-08-25 12:51:40 +12:00
Opender Singh
774a8dc792
Space -> Project rename & update code-references (#3928) 2021-08-20 11:12:36 -04:00
Opender Singh
afbbb0eaa3
Update mock implementation and move the segment event enum (#3913) 2021-08-12 22:35:43 +00:00
Opender Singh
5a50b19595
Introduce segment event enum (#3904)
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-08-12 19:37:33 +00:00
Opender Singh
63fd9bc3a5
Add segment metrics for plugin data context (#3903) 2021-08-12 03:04:48 +00:00
Opender Singh
f48cef02bd
Update some ESLint rules (#3883) 2021-08-08 05:08:56 +00:00
Opender Singh
7abde2a017
Ensure a base space always exists (+ fix gRPC sub-environments) (#3819) 2021-07-26 00:49:34 +00:00
Dimitri Mitropoulos
0178533e52
Feat/eslint import order (#3782) 2021-07-23 11:04:56 +12:00
Dimitri Mitropoulos
9c0f7660dc
Base Space export (#3479) 2021-06-30 15:33:02 +00:00
Dimitri Mitropoulos
cdd279e09a
Provides Space id to "export all" (#3455) 2021-06-14 15:18:35 +00:00
Opender Singh
d7b630f17b
Add formatting ESLint rules (#3425)
* add rules

* run lint:fix

* quick manual fix for lint errors

* indent fix

* add jsx prop multiline

Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-05-27 14:00:32 -04:00
Dimitri Mitropoulos
6e073c8a38
use same array-type rule, project-wide (#3395) 2021-05-19 08:32:18 +12:00
Dimitri Mitropoulos
5f4c19da35
[TypeScript] Phase 1 & 2 (#3370)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 18:35:00 +12:00
Ramón Márquez
7e745c6bf6
Plugin API: Add getHeaders method to context.response (#3289)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-04-20 13:50:02 +12:00
Opender Singh
eff9cda1b2
Use workspace scope enum everywhere appropriate (#3199) 2021-03-18 11:37:32 +13:00
Opender Singh
049964bb9b
Prompt for import as collection or document (#3130)
* feat: add prompt and update import logic

* feat: update usages and plugin api

* chore: WIP

* chore: convert to options

* chore: don't create workspace model until needed

* chore: add OR condition

* chore: add workspace name and don't change scope

* feat: prompt with appropriate name

* chore: rename

* chore: rename type

* chore: update signature

* chore: properly type the import functions

* feat: don't activate the workspace after importing

* chore: show loading on homepage

* fix: typo

* chore: fix tests and rename

* Update packages/insomnia-app/app/common/__tests__/import.test.js

Co-authored-by: David Marby <david@dmarby.se>

Co-authored-by: David Marby <david@dmarby.se>
2021-03-03 10:16:48 +13:00
Opender Singh
00084b65f9
Update workspace or api spec name as appropriate (#3122) 2021-03-02 10:32:32 +13:00
Opender Singh
b8f76deff9
Add plugin bundle to default config (#3092) 2021-02-26 10:10:21 +13:00
Opender Singh
26fb78ab99
Remove Core and Designer specific cases (#3034) 2021-02-03 12:19:22 +13:00
Opender Singh
99b75213e0
Add migration for workspace scope and apply defaults (#3031) 2021-02-02 16:02:17 +13:00
Julien Giovaresco
dfc89a3111
Allow prompt values to be clear + add actions to template tag plugin API (#2736)
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2020-12-01 12:15:17 +13: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
443d6df08d
Initial pass to combine eslint and prettier (#2166) 2020-05-15 10:54:07 +12: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
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
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
de2fc0ba42
Scope responses to active environment (#1905)
* Scope responses to active environment

* Update response history to support scoped envs
2020-01-22 14:23:19 -05:00
Gregory Schier
6200c9e8c7
Add workspace action plugins and expose context.data helpers (#1901) 2020-01-20 13:07:07 -05:00
Nilay Majorwar
ad278ea01a [Feature] Added request-specific followRedirects setting (#1737)
* Added request-specific follow redirect setting

* Added hint text to follow redirects setting
2019-10-31 12:02:03 -04:00
Gregory Schier
257685ca47 Ask user on import whether they want to use current workspace 2019-08-12 17:15:44 -04:00
Gregory Schier
52519a5737 Dialogs now show properly in plugins (Fixes #1520) 2019-05-23 18:02:52 -04:00
Gregory Schier
a83596299a
Fix Response Tag infinite recursion (#1502)
* Improvements to Response tag recursion and rendering (Fixes #1500)

* Add tests for response tag dependency sending
2019-05-15 16:01:36 -04:00
Gregory Schier
d8066bc558 Add ability for plugins to add folder actions (#774) 2019-05-04 16:34:52 -04:00
Gregory Schier
4b41c8c360 New render purpose for request/response hooks (Fixes #1341) 2019-05-03 10:53:18 -04:00
Gregory Schier
69a4abb268 Add setting to show more data in timeline (Closes #1262) 2019-04-27 01:55:04 -07:00
Gregory Schier
a7c2fd01fc
Ability to resend Response Tag's dependent request (#1470) 2019-04-26 21:34:15 -07:00
Gregory Schier
035f5fb075 Add setMethod method to request hook plugin API 2019-04-25 13:59:08 -07:00
Gregory Schier
7c18b629de Mask preview for masked prompt tag (Closes #1412) 2019-04-18 14:01:27 -07:00
Gregory Schier
c99ee30f46 Add setUrl to request plugin context 2019-04-18 11:39:08 -07:00
Gregory Schier
f6622a89ea Merge branch 'develop' of github.com:getinsomnia/insomnia into pull/1393 2019-04-18 11:37:27 -07:00
Gregory Schier
a33fb6b9fa Fix tests 2019-04-18 11:13:12 -07:00
Gregory Schier
300ede1ff9 Merge branch 'develop' of github.com:getinsomnia/insomnia into pull/1396 2019-04-18 10:23:15 -07:00
Gregory Schier
9208505bd9 Choose between YAML and JSON during export 2019-04-17 21:21:29 -07:00