Jari Kolehmainen
ed036d1f99
Install in-tree extensions before others ( #1782 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-12-15 14:15:04 +02:00
Panu Horsmalahti
3300a99a78
Display error dialog if extensions couldn't be loaded ( #1752 )
...
* Display error dialog if extensions couldn't be loaded
* Reject npm install on failure using the process exit code
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-12-14 09:23:59 +02:00
Mario Sarcher and Mario Sarcher
e408b0c6d9
Export the pod-details-list component so that it can be used in Extensions ( #1746 )
...
Signed-off-by: Mario Sarcher <msarcher@mirantis.com >
Co-authored-by: Mario Sarcher <msarcher@mirantis.com >
2020-12-13 19:14:02 +02:00
Panu Horsmalahti
d961d8b159
Remove symlink on extension install and manual runtime uninstall ( #1718 )
...
* Remove broken symlink on extension install
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Remove broken symlink on manual uninstall during runtime
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-12-10 12:39:37 +02:00
Panu Horsmalahti
ec0a90343e
Remove broken symlink from node_modules on uninstall ( #1695 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-12-08 21:04:01 +02:00
Panu Horsmalahti
172b2a9c9f
Add check to extension file watch ( #1677 )
...
* Add check to extension file watch
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Fix tests
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Fix tests on Windows.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Add logging for Windows test debugging purposes.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
* Try to fix tests on Windows again.
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-12-08 17:30:47 +02:00
Jari Kolehmainen
8f27559053
Tag cluster & workspace as beta features in extension api ( #1589 )
...
* mark cluster & workspace as beta
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
* back to public
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-12-07 13:38:40 +02:00
Jari Kolehmainen
dbf49cc1b0
Mark conf as dev dependency in extension npm package ( #1665 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-12-07 09:12:59 +02:00
Panu Horsmalahti
ea98d68e08
Visualize extension loading ( #1635 )
...
* Visualize extension loading
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-12-04 16:51:28 +02:00
Panu Horsmalahti
432b00b8cc
Refactor ExtensionsStore ( #1620 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-12-03 11:43:33 +02:00
Lauri Nevala
57d6dfa4b0
Fix getExtensionPageUrl on Windows ( #1609 )
...
* Fix getExtensionPageUrl on Windows
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Use path.posix.join() instead
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Fix lint issues
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2020-12-02 13:09:47 +02:00
Panu Horsmalahti
7798dce61d
Enable installed extensions by default ( #1572 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-12-02 11:37:23 +02:00
Panu Horsmalahti
dcf253e7d5
Add eslint rule padding-line-between-statements ( #1593 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-12-02 09:55:52 +02:00
Sebastian Malton
99c3a00721
fix symlinking extensions into .k8slens/extensions folder ( #1579 )
...
* fix symlinking extensions into .k8slens/extensions folder
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-12-01 09:53:44 -05:00
Jari Kolehmainen
07e6df9fdc
Add extension-api facades to cluster & workspace stores ( #1546 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-30 09:36:35 +02:00
Sebastian Malton
7451869c25
add no-unused and react/recommended to eslint ( #1523 )
...
* add no-unused-vars and no-unused-imports
* added quotes: double, and remove ignore pattern
* move itif and describeif into utils
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-27 08:48:38 -05:00
Panu Horsmalahti
263d56b3c1
Disable Uninstall and Enable/Disable buttons while uninstalling. Add Notification for uninstall. ( #1539 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-27 10:23:12 +02:00
Jim Ehrismann
238756be72
cluster feature extension guide ( #1527 )
...
* added more sample extensions to overvew list, started clusterFeatures doc
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* cluster-feature extension guide
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* resolve merge conflict, plus address review comments, tweaks
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2020-11-26 08:55:27 -05:00
Panu Horsmalahti
ccd38b5cbe
Add extension uninstall ( #1524 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-26 10:45:47 +02:00
Panu Horsmalahti
4e02e086a9
Remove extension when folder is removed during runtime ( #1518 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-26 09:40:37 +02:00
Jim Ehrismann
73724b5a54
[BREAKING]: refine and document cluster feature api ( #1507 )
...
* refine and document cluster feature api
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
* lint fix
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com >
2020-11-25 16:40:25 +02:00
Sebastian Malton
c93ee4ea6d
[BREAKING]: remove deprecated routePath before GA ( #1505 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-25 12:03:57 +02:00
Roman
77ae31550a
Allow to install packed extensions from URL or local file ( #1456 )
...
* Option to install an extension from filesystem/url #1227 -- part 1 (UI)
Signed-off-by: Roman <ixrock@gmail.com >
* DropFileInput: common component to handle droped files (replaced also in add-cluster-page)
Signed-off-by: Roman <ixrock@gmail.com >
* fix: install via url-string on input.submit
Signed-off-by: Roman <ixrock@gmail.com >
* ui tweaks & minor fixes
Signed-off-by: Roman <ixrock@gmail.com >
* more ui/ux tweaks & fixes
Signed-off-by: Roman <ixrock@gmail.com >
* layout fixes
Signed-off-by: Roman <ixrock@gmail.com >
* component renaming: `copy-to-click` => `copy-to-clipboard` => `clipboard`
Signed-off-by: Roman <ixrock@gmail.com >
* reworks -- part 1
Signed-off-by: Roman <ixrock@gmail.com >
* fix downloading file, added common/utils/downloadFile
Signed-off-by: Roman <ixrock@gmail.com >
* confirm before install, unpack tar first steps
Signed-off-by: Roman <ixrock@gmail.com >
* installation flow, extracting .tgz
Signed-off-by: Roman <ixrock@gmail.com >
* clean up, fix lint issues
Signed-off-by: Roman <ixrock@gmail.com >
* update .azure-pipelines.yml
Signed-off-by: Roman <ixrock@gmail.com >
* fixes & refactoring
Signed-off-by: Roman <ixrock@gmail.com >
* fix lint harder :/
Signed-off-by: Roman <ixrock@gmail.com >
* fix validation
Signed-off-by: Roman <ixrock@gmail.com >
* fix validation harder
Signed-off-by: Roman <ixrock@gmail.com >
* responding to comments, fixed package validation
Signed-off-by: Roman <ixrock@gmail.com >
* common/utils/tar.ts: reject with Error-type
Signed-off-by: Roman <ixrock@gmail.com >
* fix: unit-tests
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-25 09:55:28 +02:00
Lauri Nevala
29ea0c8404
Resolve extension enabled status when loading it ( #1485 )
...
* Resolve extension enabled status when loading it
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Check if extension is enabled in store unless it is bundled
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Return false by default for isEnabled
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Refactor isEnabled assignment
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2020-11-25 09:09:26 +02:00
Sebastian Malton
ca49fb98d9
remove @observable.shallow from Lens(M|R)Extension ( #1504 )
...
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-24 12:41:57 -05:00
Sebastian Malton
4e6b8ee10e
Add designated folder for extensions ( #1245 )
...
* add store for mapping extension names to filesystem paths
- add extension mechinism for getting a folder to save files to
- add test to make sure that extensions are being loaded
- skip extension loading test
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-24 10:28:08 -05:00
Jari Kolehmainen
1be86b34f4
Add LensRendererExtension.isEnabledForCluster ( #1502 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-24 16:15:14 +02:00
Panu Horsmalahti
ff93760dc4
Enable object-shorthand rule ( #1500 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-24 13:16:35 +02:00
Panu Horsmalahti
c79cee0311
Watch for added/removed local extensions ( #1482 )
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-24 10:48:40 +02:00
Sebastian Malton
5005d34c2e
change BaseRegistry to only have one type parameter ( #1474 )
...
* change BaseRegistry to only have one type parameter
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-23 12:54:39 -05:00
Lauri Nevala
0a5e7a048d
Report enabled extensions ( #1451 )
...
* Report enabled extensions
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Add missing semicolons
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Refactoring
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
* Add missing semicolon
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2020-11-23 13:47:14 +02:00
Jari Kolehmainen
d7cba7d4d6
Allow extension cluster menus to have a parent ( #1452 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-19 21:39:53 +02:00
Panu Horsmalahti
460dfe4d2b
Use @typescript-eslint/semi.
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-19 18:12:52 +02:00
Panu Horsmalahti
1477bb8274
Enforce semicolons in eslint
...
Signed-off-by: Panu Horsmalahti <phorsmalahti@mirantis.com >
2020-11-19 16:35:04 +02:00
Sebastian Malton
0f3f5611ba
Make BaseStore abstract ( #1431 )
...
* make BaseStore abstract so that implementers are forced to decide how to store data
Signed-off-by: Sebastian Malton <sebastian@malton.name >
2020-11-19 09:24:41 -05:00
Jari Kolehmainen
d60eee20cc
fix extensionLoader error on dev environments where renderer might start early ( #1447 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-19 16:11:58 +02:00
Jari Kolehmainen
5aaacb21f9
Refactor ipc module ( #1225 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-19 11:48:13 +02:00
Roman
13dbdac2f2
PageRegistration / PageMenuRegistration fixes & more simplification ( #1386 )
...
* PageRegistration & PageMenuRegistration fixes & more simplification, fix #1383
Signed-off-by: Roman <ixrock@gmail.com >
* clean up test, deprecate page.routePath
Signed-off-by: Roman <ixrock@gmail.com >
* fix: proper `isActive` state matching for page-menu-target to page considering current document location
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-16 15:18:53 +02:00
Jari Kolehmainen
596e60a6f3
Generate extension-api .d.ts and .js files using tsc ( #1387 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-16 15:09:16 +02:00
Alex Andreev
d559d5e62a
Exporting active theme to extensions ( #1371 )
...
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com >
2020-11-16 12:10:35 +02:00
Jari Kolehmainen
55b6edfc2a
Fix PageRegistry.getByPageMenuTarget issue when package name has special chars ( #1380 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-14 10:16:40 +02:00
Jari Kolehmainen
0fb859a22a
Default PageRegistration.routePath to path based on id ( #1374 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-13 19:37:03 +02:00
Jari Kolehmainen and Roman
df0f080380
Simplify pages/menus/registry extension api internal implementation ( #1364 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
Co-authored-by: Roman <ixrock@gmail.com >
2020-11-13 17:04:39 +02:00
Roman and Jari Kolehmainen
faa1cef307
PageRegistration & BaseRegistry refactoring ( #1334 )
...
Signed-off-by: Roman <ixrock@gmail.com >
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-12 16:29:02 +02:00
Jari Kolehmainen
4222359bd6
Add LensRendererExtension.navigate ( #1345 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-12 10:30:57 +02:00
Jari Kolehmainen
deb4773b44
Allow to specify KubeObjectDetailRegistration priority ( #1335 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-12 09:16:22 +02:00
Roman
1f88c05e82
Refactoring: removed kube versioned api ( #1328 )
...
Signed-off-by: Roman <ixrock@gmail.com >
2020-11-12 08:39:50 +02:00
Jari Kolehmainen
00be4aa184
Remove windowManager from extension api ( #1323 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-11 21:55:49 +02:00
Jari Kolehmainen
6a908cb528
Expose kube object store types to extensions ( #1326 )
...
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com >
2020-11-11 16:12:31 +02:00
Lauri Nevala
bcbbe140b9
Expose registration and related component interfaces to extensions ( #1322 )
...
Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com >
2020-11-11 11:56:13 +02:00