* remove nunjucks usage from core themes
* adds package downloader script
* adds runtime validation for plugins still using nunjucks
* generateThemeCSS no longer needs to be async
* removes Nunjucks as valid type
* fix: edit cookie shows expires as an Invalid Date
* refactor: using date-fns for validation
* use datetime-local input and transform
* use defaultValue
Co-authored-by: tangweikun <tangweikun@corp.netease.com>
Co-authored-by: jackkav <jackkav@gmail.com>
* first pass
* simplify timeouts+intervals
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* use key to tidy up url bar
* fix lint error in hook
* fix type-check
* add border-right
* Update packages/insomnia/src/ui/css/components/request-url-bar.less
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
* use --hl
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
* editable
* wrapper debug
* method dropdown
* request actions dropdown
* response history dropdown
* wrapper home
* copy button
* auth dropdown
* env dropdown
* content type dropdown
* fix types
* second pass
* response csv viewer
* useCallback pass
* more useCallbacks
* wrapper unit test
* simplify pagelayout
* fix editable bug in unit test
* wrapper unit test useCallbacks
* some gentle tidying
* useCallback usage for async func
* switch to useInterval
* updates types for Editable, Highlight, et al.
* moves usage after declaration
* extracts FC for AuthDropdown items
* removes some prop drilling and extracts component
* adds mandaotry useCallback, rm unused props, types
* use named exports from react npm like rest of project
eventually, we will remove usages of `React` default export since it's a hack from half a decade ago that's no longer necessary now that jsx-transform is a thing.
* removes unnecessary useImperativeHandle (we learn somethin' every day)
* adds necessary useCallback, removes unnecessary useImparativeHandle, TS
* fixes types for useRef (turns out you don't need null in the generic)
* removes unused props
* fixes types from ref helpers
* fixes return from useCallback
* updates useCallback usages
* fixes bind
* fixes lint
for some reason, kept getting:
```
insomnia: /home/dimitri/src/github.com/Kong/insomnia/packages/insomnia/src/preload.js
insomnia: 0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
insomnia: The file does not match your project config: packages/insomnia/src/preload.js.
insomnia: The file must be included in at least one of the projects provided
```
* revert incomplete type change
* remove unnecessary useEffect
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
apply font-ligatures-variant style to all elements
Co-authored-by: Vincenzo De Petris <vincenzodepetris@gmail.it>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
* commit progress
* save changes
* add components and $schema
* add components and $schema
* adding a doc
* add typings
* fix unit tests
* fix unit tests
* add fix and verified with kong cli
* fix unit tests
* Improve types and parameter/body resolution
Co-authored-by: Mark Kim <marckong@users.noreply.github.com>
* fix circular "components" issue
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
Co-authored-by: Mark Kim <marckong@users.noreply.github.com>
* feat: make NumberSetting support step
* fix: correct request timeout help message
* make default step 1 for NumberInput
* Provide similar experience for other inputs with ms
Co-authored-by: tangweikun <tangweikun@corp.netease.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
In some cases, the notifications endpoint can return a 204 response with
no body. This commit fixes a regression where this causes a warning.
Note that there is no user facing impact.
* add hack
* adding the empty string check else where
* limiting the event scope
This merge will close the following draft PR for its spike work as well.
* Enable noImplicitAny.
* extracts PreviewMode
* Update packages/insomnia/src/network/certificate-url-parse.ts
* Add missing type.
* un-any-ifies some of the modal onDone callbacks
easy enough.
* few more onDone, but the async ones this time
* Get rid of jsonlint any.
* adds noImplicitAny support for insomnia-smoke-test
* fixes playwright type error
* avoid full @ts-ignore in playwright
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>