Commit Graph
3768 Commits
Author SHA1 Message Date
Sebastian Malton 8f194b87c3 Add getBaseRegistryUrl dep to attemptInstallByInfoInjectable (#4590) 2021-12-17 11:53:00 -05:00
Sebastian Malton 43c16d6203 Fix <Extensions> not building (#4588) 2021-12-17 11:01:34 -05:00
Sebastian Malton e9d99d8485 Replace all uses of promiseExec with promiseExecFile (#4514) 2021-12-17 10:29:09 -05:00
Sebastian Malton 78678bdf2f Add support for customizing the extension install registry URL (#4503) 2021-12-17 10:28:59 -05:00
Janne Savolainen a711499bb6 Update ogre-tools for improved types of withInjectables (#4587) 2021-12-17 10:28:26 -05:00
Juho Heikka 96309814dc Add ability from extension to add preferences to application preferences (#4579) 2021-12-17 08:30:05 -05:00
Sebastian Malton bde0a9ef91 Change isEnabledForCluster to use KubernetesCluster instead of Cluster (#4584) 2021-12-17 08:28:47 -05:00
Janne Savolainen 3418c0acfe Merge pull request #4527 from jansav/make-menu-registry-obsolete
Remove MenuRegistry in favour of dependency injection
2021-12-16 15:11:30 +02:00
Janne Savolainen c0a0127d2d Merge pull request #4557 from lensapp/remove-weird-whitespace
Remove all 'NonBreakingSpace' characters from the repo
2021-12-16 08:38:55 +02:00
Janne Savolainen f56f3be79b Merge pull request #4569 from lensapp/issue-4567
Fix crash with InstallChart
2021-12-16 08:27:20 +02:00
Janne Savolainen 8337dfd21b Fix test that was accidentally broken
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-16 07:14:16 +02:00
Janne Savolainen 250b301655 Revert code style change
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-16 07:14:16 +02:00
Janne Savolainen a2486da0eb Fix linting
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-16 07:14:15 +02:00
Janne Savolainen 2189679a30 Merge remote-tracking branch 'upstream/master' into make-menu-registry-obsolete
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-15 16:14:08 +02:00
Sebastian Malton e32c33fc18 Add lint rule
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-15 08:41:28 -05:00
Janne Savolainen 9f7515db0e Revert "Introduce a way to start replacing usages of Singleton base-class with no changes required on use places"
This reverts commit 34a47f5f

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-15 15:37:37 +02:00
Janne Savolainen c92c8f8a11 Replace global state usages of ExtensionLoader with DI
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-15 15:37:36 +02:00
Janne Savolainen 0b172de741 Adapt to change in DI to minimize boilerplate
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-15 15:13:43 +02:00
Sebastian Malton f6193718ff Fix crash on NetworkPolicy when matchLabels is missing (#4500) 2021-12-14 14:10:27 -05:00
Alex Andreev 637f26ae1e Custom title controls on Windows (#4528)
* Add context menu in topbar

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding windows title buttons

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding win sandwitch icon

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Hide windows controls behind the flags

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Adding tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix topbar layout

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Using topbar as draggable area

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix sandwich icon

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Mark no-draggable areas

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove ipcMainOn window calls

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix tests

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Explicitly hide main window menu

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix tests more

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Restore linux native view

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Not removing menu in linux

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Showing custom window buttons in Linux

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Remove frame on linux and windows

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Move open context menu event handler to initializers

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Set x, y context menu position explicitly

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-12-14 19:01:57 +02:00
Sebastian Malton 1e22cffcd8 Fix extension engine range not working for some ^ ranges (#4554) 2021-12-14 11:57:34 -05:00
Sebastian Malton d775d53078 Fix not being able to clear set cluster icon (#4555) 2021-12-14 11:38:31 -05:00
Sebastian Malton a454b29971 Fix crash with InstallChart
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-14 09:15:15 -05:00
Sebastian Malton 56e72b3a74 Fix ERR_UNSAFE_PORT from LensProxy (#4558)
* Fix ERR_UNSAFE_PORT from LensProxy

- Use the current list of ports from chromium as it is much easier to
  just reject using one of those instead of trying to handle the
  ERR_UNSAFE_PORT laod error from a BrowserWindow.on("did-fail-load")

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move all port handling into LensProxy

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* don't use so many exceptions

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-14 12:38:35 +02:00
dependabot[bot] f61563c99f Bump postcss from 8.3.11 to 8.4.5 (#4560)
Bumps [postcss](https://github.com/postcss/postcss) from 8.3.11 to 8.4.5.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/8.3.11...8.4.5)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-14 07:32:39 +02:00
Sebastian Malton 1d1a85f9ea Use electron.clipboard for all clipboard uses (#4535) 2021-12-13 10:45:24 -05:00
Sebastian Malton c0e0408c9b Remove all 'NonBreakingSpace' characters from the repo
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-10 13:06:33 -05:00
Sebastian Malton 41e7664fe2 Add some gh and jq help to the release guide (#4549) 2021-12-10 09:07:57 -05:00
Sebastian Malton 181197fad8 Remove unnecesarry TerminalApi.destroy and TerminalApi.reconnect overloads (#4538) 2021-12-10 09:07:18 -05:00
Sebastian Malton 747ef8daee Special case goBack to navigate to catalog if no where to go back to (#4544) 2021-12-10 09:07:07 -05:00
Sebastian Malton 6284bd1eb4 Fix crash in ClusterStatus (#4533) 2021-12-09 16:03:18 -05:00
Sebastian Malton b665a2efe7 Fix freeze after closing terminal on windows (#4536) 2021-12-09 15:52:27 -05:00
Sebastian Malton 541c00cf24 Add tooltip for cluster name in sidebar (#4534) 2021-12-09 08:40:06 -05:00
Iku-tursoandJanne Savolainen f3d45ea78b Fix hangup on application start by auto-registering more injectables
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-09 14:35:29 +02:00
Alex Andreev 3dd6b432c9 Export KubeJsonApi to extensions (#4496)
* Export KubeJsonApi to extensions

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Make forCluster() to consume clusterId as arg

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix lint

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
2021-12-09 15:11:34 +03:00
Sebastian Malton 25f4a1f3ba Upgrade mock-fs to v5 (#4537)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-12-09 14:35:49 +03:00
Janne Savolainen b4a1c2af9f Make ExtensionLoader injectable to avoid confusion when instance should be created
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-09 08:14:15 +02:00
Janne Savolainen 34a47f5f44 Introduce a way to start replacing usages of Singleton base-class with no changes required on use places
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-09 08:09:49 +02:00
Janne Savolainen f9cf08b4a8 Make sure that extensions have been initialized before exposing them as enabled extensions
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-09 07:41:43 +02:00
dependabot[bot] 889a4d5080 Bump @testing-library/jest-dom from 5.15.0 to 5.16.1 (#4516)
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.15.0 to 5.16.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v5.15.0...v5.16.1)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-08 15:55:14 +03:00
Janne Savolainen 41837e86bb Remove forgotten console.log used for debug
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-08 14:17:15 +02:00
Janne Savolainen 717b62d2e6 Remove obsolete code
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
2021-12-08 13:10:50 +02:00
Janne SavolainenandMikko Aspiala 67c24cac9a Switch to getting menu items by observing change in extensions instead local state
Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
2021-12-08 13:10:50 +02:00
Mario Sarcher 16a26724d9 Fixes a typo in kubeconfig sync "add"-button label (#4522)
Signed-off-by: Mario Sarcher <mario@sarcher.de>
2021-12-08 08:12:29 +01:00
dependabot[bot] 7965649521 Bump @types/js-yaml from 4.0.4 to 4.0.5 (#4509)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 18:25:15 -05:00
dependabot[bot] 09a4595877 Bump playwright from 1.15.2 to 1.17.1 (#4508)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 18:24:54 -05:00
dependabot[bot] 2622692a26 Bump sass from 1.43.4 to 1.44.0 (#4507)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 14:05:09 -05:00
dependabot[bot] 0fb820994c Bump xterm from 4.14.1 to 4.15.0 (#4510)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-06 14:04:12 -05:00
7ed50f83fc Add breadcrumbs to removal of kube objects, but also discuss about general improvements (#4282)
Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi>
Co-authored-by: Janne Savolainen <janne.savolainen@houston-inc.com>
Co-authored-by: Mikko Aspiala <mikko.aspiala@houston-inc.com>
2021-12-06 13:05:05 -05:00
Sebastian Malton 304941d397 Fix IngressApi being registered with a wrong new apiBase (#4485) 2021-12-03 15:19:01 -05:00