feat(plugins) introduce new plugin properties for kong-bundle (#2206)

Introduces new `package.json` properties for upcoming plugin hub updates to `insomnia-plugin-kong-bundle`.

- Add `$.insomnia.displayName` for plugin display name on UI & GUIs
- Add `$.insomnia.bundle` boolean flag denotes bundle status to show individual plugins on hub
- Add `$.insomnia.applications` object to be used for install buttons and checks
- Add `$.insomnia.images.icon` property for plugin icon
- Add `$.insomnia.images.cover` property for plugin cover image
This commit is contained in:
Nijiko Yonskai 2020-05-20 19:52:15 -07:00 committed by GitHub
parent 08534699e7
commit 13470345fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 110 additions and 2 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 204 KiB

View File

@ -0,0 +1,6 @@
<svg width="48" height="48" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.805 32.556L16.9203 33.6758L18.9181 36.7967L18.7103 38.2414H27.1849L27.7705 36.7967L24.3646 32.556H17.805Z" fill="#499DC8"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.4391 13.5635L19.3748 18.9281L34.3261 36.6198L33.8992 38.2414H40.7568L42.0001 32.4867L25.9996 13.5581L22.4391 13.5635Z" fill="#53B39B"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M28.7912 6L24.4731 9.52889L23.0178 12.2145H26.6322L32.8402 19.599L36.5317 16.5693V14.6443L35.248 12.8443L36.1957 11.8594L28.7912 6Z" fill="#5BBF6D"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M13.3442 24.4793H11.3241L6 31.2406V38.2414H11.712L12.7189 36.929L17.1273 31.2232H23.4995L25.4618 28.2183L18.5509 20.016L13.3442 24.4793Z" fill="#57BACA"/>
</svg>

After

Width:  |  Height:  |  Size: 872 B

View File

@ -4,11 +4,20 @@
"main": "index.js",
"insomnia": {
"name": "kong-bundle",
"description": "Bundle of all Kong plugins"
"displayName": "Kong Plugin Bundle",
"description": "Bundle of all Kong functionality",
"bundle": true,
"applications": {
"designer": "*"
},
"images": {
"icon": "icon.svg",
"cover": "cover.svg"
}
},
"dependencies": {
"insomnia-plugin-kong-declarative-config": "^2.2.4",
"insomnia-plugin-kong-kubernetes-config": "^2.2.4",
"insomnia-plugin-kong-portal": "^2.2.4"
}
}
}