1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Go to file
Sebastian Malton 9563ead2e6
Fixing Singleton typing to correctly return child class (#1914)
- Add distinction between `getInstance` and `getInstanceOrCreate` since
  it is not always possible to create an instance (since you might not
  know the correct arguments)

- Remove all the `export const *Store = *Store.getInstance<*Store>();`
  calls as it defeats the purpose of `Singleton`. Plus with the typing
  changes the appropriate `*Store.getInstance()` is "short enough".

- Special case the two extension export facades to not need to use
  `getInstanceOrCreate`. Plus since they are just facades it is always
  possible to create them.

- Move some other types to be also `Singleton`'s: ExtensionLoader,
  ExtensionDiscovery, ThemeStore, LocalizationStore, ...

- Fixed dev-run always using the same port with electron inspect

- Update Store documentation with new recommendations about creating
  instances of singletons

- Fix all unit tests to create their dependent singletons

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-04-21 09:59:59 -04:00
__mocks__ enfore unix line endings and always ending files with line endings (#1997) 2021-01-21 08:09:41 -05:00
.dependabot add custom configuration for dependabot (#1973) 2021-02-04 13:16:06 -05:00
.github Don't bundle extension with eula on default build (#2542) 2021-04-20 09:35:37 -04:00
.vscode VSCode launch configurations for debugging (#2281) 2021-03-09 17:57:55 +02:00
build Make macOs app icon a bit smaller (#2094) 2021-02-08 20:02:05 +02:00
docs Fixing Singleton typing to correctly return child class (#1914) 2021-04-21 09:59:59 -04:00
extensions Bump ssri from 6.0.1 to 6.0.2 in /extensions/kube-object-event-status (#2559) 2021-04-20 09:57:36 -04:00
integration Fixing Singleton typing to correctly return child class (#1914) 2021-04-21 09:59:59 -04:00
jsonnet/lens Update jsonnet folder structure to default bundler format (#536) 2021-03-23 08:12:40 -04:00
mkdocs Documentation (MKDOCS) (#1230) 2020-11-05 16:38:56 +02:00
src Fixing Singleton typing to correctly return child class (#1914) 2021-04-21 09:59:59 -04:00
static Show openlens on splash (#2582) 2021-04-21 15:45:10 +03:00
templates/create-resource YAML Templates in Create Resource dock tab (#2327) 2021-04-15 08:19:54 -04:00
test-data add cluster icon migration code (#673) 2020-08-25 16:42:30 +03:00
troubleshooting Update jsonnet folder structure to default bundler format (#536) 2021-03-23 08:12:40 -04:00
types enfore unix line endings and always ending files with line endings (#1997) 2021-01-21 08:09:41 -05:00
.azure-pipelines-k8s-matrix.yml Test different kube versions (#1806) 2020-12-18 12:41:17 +02:00
.azure-pipelines.yml Don't bundle extension with eula on default build (#2542) 2021-04-20 09:35:37 -04:00
.bundled-extensions.json Don't bundle extension with eula on default build (#2542) 2021-04-20 09:35:37 -04:00
.eslintrc.js Fixing Singleton typing to correctly return child class (#1914) 2021-04-21 09:59:59 -04:00
.gitignore VSCode launch configurations for debugging (#2281) 2021-03-09 17:57:55 +02:00
.npmrc Add engine to strict node version in package.json (#144) 2020-03-23 16:31:28 +02:00
.yarnrc Electron 9.4.4 (#2472) 2021-04-12 09:48:57 +03:00
CODE_OF_CONDUCT.md Add contributing/development pages (#1480) 2020-11-23 11:37:30 +02:00
CONTRIBUTING.md Add contributing/development pages (#1480) 2020-11-23 11:37:30 +02:00
LICENSE Don't bundle extension with eula on default build (#2542) 2021-04-20 09:35:37 -04:00
Makefile Don't bundle extension with eula on default build (#2542) 2021-04-20 09:35:37 -04:00
mkdocs.yml Fix Extension Docs (#2377) 2021-04-19 11:46:07 -04:00
package.json Revert "Increase npm version to 7.9 (#2466)" (#2583) 2021-04-21 16:29:18 +03:00
README.md Don't bundle extension with eula on default build (#2542) 2021-04-20 09:35:37 -04:00
RELEASE_GUIDE.md Document release process (#532) 2020-06-30 15:22:20 +03:00
SECURITY.md Add security policy (#2387) 2021-03-25 17:19:45 +02:00
tsconfig.json set "allowJs" to false in tsconfig (#1377) 2020-11-16 10:43:22 -05:00
webpack.extensions.ts Fixing Singleton typing to correctly return child class (#1914) 2021-04-21 09:59:59 -04:00
webpack.main.ts Fixing Singleton typing to correctly return child class (#1914) 2021-04-21 09:59:59 -04:00
webpack.renderer.ts Don't bundle extension with eula on default build (#2542) 2021-04-20 09:35:37 -04:00
yarn.lock Revert "Increase npm version to 7.9 (#2466)" (#2583) 2021-04-21 16:29:18 +03:00

Lens Open Source Project (OpenLens)

Build Status Chat on Slack

The Repository

This repository ("OpenLens") is where Team Lens develops the Lens IDE product together with the community. It is backed by a number of Kubernetes and cloud native ecosystem pioneers. This source code is available to everyone under the MIT license.

Lens - The Kubernetes IDE

Lens - The Kubernetes IDE ("Lens IDE") is a distribution of the OpenLens repository with Team Lens specific customizations released under a traditional EULA.

Lens IDE provides the full situational awareness for everything that runs in Kubernetes. It's lowering the barrier of entry for people just getting started and radically improving productivity for people with more experience.

Lens IDE a standalone application for MacOS, Windows and Linux operating systems. You can download it free of charge for Windows, MacOS, and Linux from Lens IDE website.

Screenshot

Installation

See Getting Started page.

Development

See Development page.

Contributing

See Contributing page.