1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

2251 Commits

Author SHA1 Message Date
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-turso
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 Savolainen
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
Janne Savolainen
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
dependabot[bot]
7973f4bce2
Bump @types/webpack from 4.41.31 to 4.41.32 (#4499)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-03 14:33:05 -05:00
dependabot[bot]
9aadb721c9
Bump webpack-dev-server from 3.11.2 to 3.11.3 (#4498)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-03 12:49:52 -05:00
Sebastian Malton
7dfd4d586c
Fix error notifications not being displayed for CreateResource tab (#4502) 2021-12-03 12:49:42 -05:00
dependabot[bot]
4f291ad077
Bump moment-timezone from 0.5.33 to 0.5.34 (#4489)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-03 11:50:05 -05:00
dependabot[bot]
122f14f32b
Bump react-material-ui-carousel from 2.3.5 to 2.3.8 (#4491)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-03 11:49:57 -05:00
Alex Andreev
d73df7fe0d
Show active hotbar on bottom (#4476)
- Extends extension API to support choosing sides for bottom bar entries
2021-12-03 09:41:08 -05:00
dependabot[bot]
39955b623f
Bump sharp from 0.29.2 to 0.29.3 (#4495)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-03 08:59:25 -05:00
dependabot[bot]
8055ba261b
Bump @types/url-parse from 1.4.4 to 1.4.5 (#4494)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-12-03 08:59:18 -05:00
Jim Ehrismann
29c9c73a13
catch app.getPath() errors (#4492)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2021-12-02 20:52:03 -05:00
dependabot[bot]
ca549e0577
Bump @types/lodash from 4.14.176 to 4.14.177 (#4487)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 16:49:16 -05:00
dependabot[bot]
851ad0e36b
Bump @types/fs-extra from 9.0.1 to 9.0.13 (#4474)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 16:09:48 -05:00
dependabot[bot]
1c16b697ae
Bump joi from 17.4.2 to 17.5.0 (#4486)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-12-02 16:09:38 -05:00
dependabot[bot]
b350ea5900
Bump typedoc from 0.22.7 to 0.22.10 (#4444)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2021-12-02 15:38:17 -05:00
dependabot[bot]
020116516e
Bump @types/react-table from 7.7.7 to 7.7.8 (#4471)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 12:36:30 -05:00
dependabot[bot]
aa6db81321
Bump @types/readable-stream from 2.3.11 to 2.3.12 (#4428)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-12-02 12:36:10 -05:00
Sebastian Malton
1636be71d5
Don't emit build_id metadata on RPM builds (#4464) 2021-12-02 09:37:13 -05:00
Jim Ehrismann
f78d9c5fc2
add debug for locating startup issues (#4481) 2021-12-02 09:34:06 -05:00