* 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>
* Make Button onClick prop more typeable
Swaps the order of the arguments so that the optional arg is second.
* Review fixes.
* removes some implicit any's
* NoticeTable to FC
might as well, at this point. we're trying to do these as we can as they present themselves
* fixes margin for collapse icon (broken before this PR)
and removes an unnecessary type parameter
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
* can make grpc request
* can create GraphQL request
* remove hotkey logic
* remove new request modal
* match new hotkey to old quick request
* add request shortcuts to folder context menu
* merge both old hotkeys to new one
* added requestType to segment
* fix feedback
* fix requestType is event
* default to HTTP request
* add gitlab oauth provider and ui
* add gitlab remaining
* add graphql field in query
* add gitlab oauth provider and ui
* add gitlab remaining
* add graphql field in query
* add some changes for testing
* add gitlab oauth provider and ui
* add gitlab remaining
* add graphql field in query
* add some changes for testing
* add some changes
* modify test
* try to refresh the token on git auth failure
* use localStorage to retrieve the session token
* simplify e2e tests for gitlab
* read the gitlab config from the api
* refresh the token if unauthorised
* use the rest api to fetch the user's data
* add loading state for config and handle 4xx errors in the ui
Co-authored-by: jackkav <jackkav@gmail.com>
* improve config fetching
* fix(e2e): add mock route for config
* Fix fetching gitlab config from the API
* add src as dep to avatar component hook
Co-authored-by: Mark Kim <yowmark613@gmail.com>
Co-authored-by: jackkav <jackkav@gmail.com>
Co-authored-by: David Marby <david@dmarby.se>