Resolved conflicts in Your First Extension after rebasing from master
Reworked extensions/README.md
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Reworked the content in your-first-extension.md
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Reworked beginning of extension-anatomy.md
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Reworked the writing in extensions/get-started/anatomy.md
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Reworked beginning of wrapping-up.md
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Squashed 3 commits
Reworked writing in wrapping-up.md
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Reworked content throughout Extension Development > Getting Started and squashed commits
Removed extensions/capabilities/README.md and extensions/testing-and-publishing/bundling.md from mkdocs.yml nav
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Added extensions/get-started/overview.md to mkdocs.yml nav, reworked writing in extensions/get-started/wrapping-up.md and extensions/get-started/overview.md, changed links that pointed to extensions/capabilities/overview.md to go to extensions/capabilities/common-capabilities.md instead
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Changed all titles throughout docs, including in body, to title case
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Reworked bullets in extensions/get-started/anatomy.md
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Intergrated Windows instructions into your-first-extension.md, made minor edits throughout extensions/get-started and fixed a couple titles in mkdocs.yml nav
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
Changed Extension Development > Get Started to Getting Started in mkdocs.yml
Signed-off-by: Paul Williams <pawilliams@mirantis.com>
* add retry cap to handleStaticFile to prevent an infitite loop
* 'yarn -> yarn run' for node_module dependencies
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Remove Makefile from all intree extensions
- Makefiles are not really common (rightly so) in JS projects and script
entries in the package.json are good enough and what they're there
for.
- Move to using yarn for installing dependencies and running scripts as
that is what we mostly use for the rest of the project.
- Move from using make syntax to a dedicated script for building and
testing extensions.
- add jest as extension devDep, go back to using makefile foreach syntax
- add correct exit code
- add yarn check call to install-deps
- add yarn invokation to find deps
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Fix rendering of boolean values in CRDs
- add optional special casing for boolean values in DrawerItems and
TableRows since React (imo annoying fashion) does not render boolean
values by default.
- add a spinner on the sidebar for when the CRD menu is expeanded but
the entries have not been loaded yet.
- Add ability to double click a Badge to expand, also make it so that
Badges highligh all text on first click.
Signed-off-by: Sebastian Malton <sebastian@malton.name>
* Add mechanism for users to specify namespaces that are accessible to them. This is generally useful for when the user doesn't have permission to list the namespaces.
- Add new component "EditableList" which provides a simple way to
display a list of items that can be added too.
- Add the ClusterAccessibleNamespaces to the GeneralClusterSettings
- style editable list list of lists, switch to using <>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <smalton@mirantis.com>
* Add webpack-dev-server (for hot module replacement) to serve statics, add HardSourceWebpackPlugin to improve re-compiling speed
* Serve statics using webpack-dev-server instead of lens-proxy, redirect request of Lens.html/Lens.js to webpack-dev-server
* Add react-refresh-webpack-plugin and its dep for hot-reload
* Add hot-reload plugin, and make proxy redirects requests to webpackdevserver
* Add hard-source webpack plugin to main process
* Remove parameter 'path' of handleStaticFile
* Upgarde webpack to v4 latest stable
* Fix build error: plugins shouldnt be null
Signed-off-by: Hung-Han (Henry) Chen <1474479+chenhunghan@users.noreply.github.com>
* fix: create extension instance only when enabled
Signed-off-by: Roman <ixrock@gmail.com>
* mark extension.isEnabled with private modifier
Signed-off-by: Roman <ixrock@gmail.com>
* try-catch errors for extension.disable()
Signed-off-by: Roman <ixrock@gmail.com>
* fixes & refactoring
Signed-off-by: Roman <ixrock@gmail.com>
* make ext.isBundled non optional
Signed-off-by: Roman <ixrock@gmail.com>