Commit Graph

136 Commits

Author SHA1 Message Date
Dimitri Mitropoulos
177d6adf38
Insomnia Config, controlled settings (#4031)
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-10-14 10:59:45 -04:00
Dimitri Mitropoulos
04a52f4867
INS-975 workaround: add immer directly (#4054)
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
2021-09-29 17:58:34 +00:00
Dimitri Mitropoulos
422d5a809c
adds markdown linting (#3931) 2021-08-27 15:44:01 +12:00
Dimitri Mitropoulos
407432aa02
adds eslint-config-helpers (#3912) 2021-08-12 18:01:54 -04:00
Dimitri Mitropoulos
0178533e52
Feat/eslint import order (#3782) 2021-07-23 11:04:56 +12:00
Dimitri Mitropoulos
a060562697
Fixes clean scripts (#3400)
* removes (unused and unwanted) husky scripts

might as well, it's only taking up space for nothing in our node_modules

* adds `lerna run clean` to main clean script

we didn't have `clean` scripts in the packages before, but now that we do, it makes sense to.... hahah... _use them_.

Note that it's important that we run the package scripts first, because otherwise after the rimraf (which is now at the end) there's no `lerna` left to call.

* adds missing clean script to insomnia-components

although it looks like there are other changes at first glance, there shouldn't be any behavioral differences now except the fact that build will always generate SVGs (which, was an oversight/bug that it wasn't before).  We need this to occur so that when we clean it removes the things that were built, and when we build it replaces those same things.

* adds a postclean script to insomnia-app like every other package

I'll be honest, I'm not entirely sure what the reason is for having `postclean` scripts in every package with (mostly) `rimraf dist` (i.e. instead of just including that in the main clean script at the end), but that's clearly the convention - so for now I'm just following it

* removes references to old build artifact location

well, except for the .gitignore.  I guess I could remove it from the .gitignore, commit it, commit deleting it, which would clear it from everyone's projects... but I'll just leave it there for a bit in the .gitignore.  hopefully people either start fresh or run `clean` from the root every once in a while, which will clean this up.

After a few weeks or months we can remove these two references (in the package.json.clean and .gitignore) altogether if we feel like it.

* removes unused reference in config to build artifact

I searched high and low for every place I could find that consumes this file and none of them seem to use this field anyway.  And even if they did, it's wrong.  In fact, it's been wrong for a while I'd guess because (relative to the root, if that's what it was intended to mean).

As far as I can tell this was added c6a7c4d682 (diff-6918d2464ad7fb0f3e985d8587ce0c4218eeba6c6dea60c58642251f4db99ecb)

So I even checked out that commit and looked at all usages of that file at that time and it was, there too, unused (so far as I can tell).  Appears to be a case of wishful thinking that it'd be useful for something, not sure.
2021-05-19 09:56:10 -04:00
Dimitri Mitropoulos
d9677611f5
enables react-redux devtools (#3373)
* add react and redux devtools

* convert to try-catch

* updates package-lock.json

Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-05-12 08:22:40 -04:00
dependabot[bot]
c442f58f4e
chore(deps): bump handlebars from 4.7.6 to 4.7.7 (#3361)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.7.6 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.7.6...v4.7.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
2021-05-12 08:04:54 -04: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
Opender Singh
f27cd5f630
Support template tags with gRPC (#2926) 2020-12-18 00:38:21 +13:00
dependabot[bot]
dd2017d8b8
Bump ini from 1.3.5 to 1.3.8 (#2940) 2020-12-15 05:22:01 +00:00
Opender Singh
deaded4674
Add e2e Core tests to PR workflow (#2536)
Co-authored-by: David Marby <david@dmarby.se>
2020-08-25 08:40:40 +12:00
Opender Singh
fc934698ed
Fix webpack file watching, remove styled-components from insomnia-components bundle (#2497)
* Reinstall webpack...

* Reinstall webpack...

* set styled-components as an external

* Remove script
2020-08-11 07:12:53 +12:00
Opender Singh
cb991ba956
Revert "Fix app reloading and insomnia-components in watch mode" (#2496)
This reverts commit 971134fae2.
2020-08-07 08:49:45 +12:00
Opender Singh
971134fae2
Fix app reloading and insomnia-components in watch mode (#2493)
* Fix fsevents

* Add node_env for netlify
2020-08-07 08:48:49 +12:00
Opender Singh
65b4838646
Honor variable defaults from servers declaration during OpenAPI3 import (#2151) 2020-08-07 08:13:00 +12:00
Mike Ellan
784357f089
Sidebar code mirror interactions (#2433)
* Lifting path clicked up to sidebar root

* Abstracting out path click to story (and app)

* Adding click to scroll, updating sidebar components

* Scroll fix for sidebar

* Cleaning up log

* PR feedback

* PR Feedback, fix schemas & request body rendering

* PR feedback & cleanup

* Prop value checking, selection positioning

* Pulling remote import

* Styled components into insomnia-app, obj destructuring, typing

* Refactoring item path mapping

* Abstracting the mapping of specs for position, bumping down styled components version.

* Directly passing ... rest args initial work

* Pulling logs, removing array concatenation

* Pulling click handler out of render method

* Rolling position mapping into scroll positining method

* Opening up type, could be number/string/array

* Update package-lock.json

* Grabbing height from window, typing API vars, checking path

* Creating scroll method dedicated to design mode

* Moving typing of spec related content to Props def.

* Type checking on sections, invalid section component
2020-08-03 13:57:12 -04: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
1d10a42851
Upgrade husky and eslint (#2306)
* hopefully

* Update

* Update

* Fix

* Update
2020-06-19 05:48:09 +12:00
Opender Singh
65105da797
The One With Hooks (#2286)
* Add

* Update

* Remove extra peer dep

* Remove extra peer dep undo

* Undo stuff

* Convert two components (validation)

* Undo packed dep change

* Fix for react-dom alias to @hot-loader/react-dom (#2292)

Co-authored-by: Gregory Schier <gschier1990@gmail.com>
2020-06-13 16:56:15 +12:00
Gregory Schier
4387381fd1
Upgrade node-libcurl (#2223)
* deps: bump node-libcurl to latest prerelease version

* Add .npmrc, bump Electron to 3.1.13, remove electron-rebuild

* Minor tweaks

* package locks

* Bump version

* Switch to font-manager and fix fsevents rimraf

* Try generating npmrc inside build/

* Try uninstall of fsevents instead

* Bump

* Try npm env vars

* Extra .npmrc

* Try npm env vars in all CI

* Fix insomnia-cookies dependencies

* Fix typo

* Loosen nvmrc version

* Remove npm uninstalls

* Build outside of Docker

* Remove Docker, build all on GH Actions

* Bump Core version

* Disable Snapcraft for now

* Bump

* Disable snap for Designer too

* Update product name for Core

* Update test.yml

* Remove Travis file

* Make userData folder explicit and add Curl types

* Remove old Kong icon

* Remove curl.js adapter

* Revert productName

* Fix release date

* Try remove windows build tools from CI

* Add comment about Snap deploys

* Remove the pane border on Windows (no longer necessary)

Co-authored-by: Jonathan Cardoso Machado <me@jonathancardoso.com>
2020-05-28 10:09:51 -07:00
Opender Singh
443d6df08d
Initial pass to combine eslint and prettier (#2166) 2020-05-15 10:54:07 +12:00
Opender Singh
70e66e9abf
Usage documentation for bundled plugins (#2120)
* Add ingress document and name docs

* Add usage readme

* Add documentation to each kong plugin

* DOCS

* DOCS
2020-05-13 09:22:55 +12:00
Rishabh Gupta
37959fc644
Show version release date (#2031) 2020-05-05 17:43:39 -07:00
Opender Singh
15d4789716
Move toggle-switch to insomnia-components, attach to themes (#2115) 2020-05-06 12:08:17 +12:00
Opender Singh
486f4b5881
Add plugin hub/npm hyperlink to plugin listing (#2109) 2020-05-03 15:46:02 +12:00
Gregory Schier
cc089ffa79 Use shorter insomnia-node-libcurl pkg 2020-04-29 11:15:05 -07:00
Opender Singh
0e7b96c868
Add Swagger UI required prop (#2062) 2020-04-28 08:58:40 +12:00
Gregory Schier
c6a7c4d682 Initial designer merge 2020-04-26 13:33:39 -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
c20166fc27 Move change-case dependency to proper place 2020-04-07 11:00:57 -07:00
Pocket7878
9f05035e49
feature: Generate Variable Name from SecuritySchemas name parameter. (#1978) 2020-04-03 16:50:50 -07:00
Opender Singh
b072745b6d
Introduce flow $Shape<T> to db models (#2002)
* Introduce flow <T> to db models

* Resolve errors discovered while fixing typing

* Revert change for response
2020-03-18 11:58:57 -07:00
Opender Singh
1aba4cb2cf
Nunjuck resolution in order of property definitions (#1863)
* Add breaking test

* Remove preferential ordering of tags over variables in nunjucks

* Remove preferential ordering of tags over variables in nunjucks

* simplify nunjucks sort

* Add breaking test for incorrect order

* Update json-order and consume

* Refine test with dataPropertyOrder

* Tests

* add note

* Add to test

* Missed the await
2020-03-09 11:20:22 -07:00
Gregory Schier
9166b028e7 Add notice-table callback for visibility toggle 2020-01-06 13:50:31 -05:00
Gregory Schier
5a92964db6
New insomnia-ui package with initial <NoticeTable/> component (#1869)
* Add insomnia-ui package with NoticeTable component and a few other examples

* Tweak icon placement and add insomnia-ui to insomnia-app package

* Add click handling and some extra styles to <NoticeTable/>

* New SvgIcon component and style tweaks

* Fix dependencies

* Fix button border

* Fix flow lint

* SvgIcon stories and lots of style updates

* Fix auto-formatting issue
2020-01-06 13:33:47 -05:00
Opender Singh
f920ba17f2 Update codemirror (#1861) 2019-12-20 15:03:44 -05:00
Gregory Schier
dbd7cbe059 Fix Flow error 2019-12-12 16:06:21 -05:00
Gregory Schier
e932d7e388 Prompt for name when duplicating requests and folders 2019-12-11 12:48:56 -05:00
Gregory Schier
b270333503 Add tooltip delays on response history dropdown 2019-12-03 13:28:12 -05:00
Gregory Schier
18d011b810 package-lock 2019-11-27 11:03:26 -05:00
Gregory Schier
42e198bf75
Add Storybook with basic components (#1807)
* Gruvbox theme

* Added Storybook for all components that don't fail in browser
2019-11-26 12:22:21 -05:00
Gregory Schier
869dffbf36 Upgrade electron-rebuild 2019-11-22 11:04:22 -05:00
kliques
58eb3eaeb7 feature: clipboard feature (#1776)
- add import from clipboard
2019-11-22 10:46:54 -05:00
Gregory Schier
1b102e20c3 Don't publish snapcraft during build 2019-10-17 14:30:22 -04:00
Gregory Schier
773eefc059
Initial try at creating GitHub actions (#1646)
* Initial try at creating GitHub actions

* Fix Git checkout

* Just Mac for now

* Add Windows back

* Try change run for WIndows

* Configure msvs

* Try again

* Try again

* Try downgrading windows

* Change msvs version

* Separate Windows steps

* Try adding Ubuntu

* Linux packages

* SUdo?

* Try something else

* Make test more robust
2019-08-21 23:59:06 -07:00
Gregory Schier
d3d788eb06 Fix zprint-clj version 2019-08-02 15:37:25 -04:00
Gregory Schier
8fda24ae47 Small sidebar refactor and moved ESLint to top level 2019-08-02 15:01:01 -04:00
Gregory Schier
bb5eaaa871
GraphQL Docs Explorer (#1616)
* Implement a GraphQLExplorer for visually browsing schemas

* Fix some type stuff and theme

* Adjust GraphQL explorer colors for fields to match Codemirror

* Explorer state not modified when showing docs from dropdown

* A few more small tweaks and fixes
2019-07-31 11:05:43 -04:00
dependabot[bot]
465f7247f6 Bump lodash from 4.17.11 to 4.17.14 (#1599)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.14.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.14)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-15 16:18:25 -07:00