* Move all app.on('ready') calls in one place
* Move the spellchecking logic in electron-helpers
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
* Use forwardRef for the Pane components
* Update packages/insomnia-app/app/ui/containers/app.tsx
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
* Disable spellchecking and prevent fething translations from Chromium's CDN
* Update packages/insomnia-app/app/main/window-utils.ts
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
* don't unnecessarily disable spellcheck
since, after all, it doesn't download in Mac and upcoming versions of Windows. it's not like we have a thing against spellchecking - the ticket is to disable a dictionary download.
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
* Allow autocomplete to be registered
* On shortcut update refresh pane to enable shortcuts to register correctly
* Improve types and add explanation about keyname order
* bind code-editor to hotkeyregistry via redux so that it updates keymaps on change
* remove force refresh via key and convert to named export
* send hotkeyregistry in environment autocomplete options
* use autocomplete delay from settings
* Use Pick<T>
Co-authored-by: Timothy Lim <tim.lim@intercom.io>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
* Refactor to keep in state info about large & huge response
This commit adds 2 properties in the ResponseViewer state:
* largeResponse which will be true when a response body weight more that LARGE_RESPONSE_MB
* hugeResponse which will be true when a response body weight more that HUGE_RESPONSE_MB
* Prevent select-all during response focus hotkey handler on large response
* Add a CopyButton in raw & source response viewer
* Revert "Add a CopyButton in raw & source response viewer"
This reverts commit e094be21
* Add a Copy raw response action in Preview dropdown
This action allows the user to copy the raw response directly in the clipboard.
It is a useful shortcut to copy huge response where select-all might freeze the application.
* fix import
* Fix build
* remove empty line
Co-authored-by: Opender Singh <opender.singh@konghq.com>
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* adds (now available) electron types
* MenuItemConstructorOptions.selector module augmentation
* updates note on allowRendererProcessReuse with more up-to-date info
* separates and formats comments that were intended to be separate
if you check out the commit where these were created, for some reason the comment for the `loadURL` line was put under the line of interest, and over time the space between the comment blocks was removed - making it look like the last line of the comment is related to the same thing (it, apparently, is not).
* use createRef for ResponseWebView