mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Introduce sample bundled extension example
- Use new sample bundled extension in open-lens for documentation purposes Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
027e57196a
commit
38eaac2550
10 files changed
+5196
No files matched your search
@@ -198,6 +198,7 @@
|
||||
"@k8slens/core": "^6.4.0-beta.13",
|
||||
"@k8slens/ensure-binaries": "^6.4.0-beta.13",
|
||||
"@k8slens/generate-tray-icons": "^6.4.0-beta.13",
|
||||
"@k8slens/sample-extension": "^6.4.0-beta.13",
|
||||
"@ogre-tools/fp": "^12.0.1",
|
||||
"@ogre-tools/injectable": "^12.0.1",
|
||||
"@ogre-tools/injectable-extension-for-auto-registration": "^12.0.1",
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
import { getInjectable } from "@ogre-tools/injectable";
|
||||
import { bundledExtensionInjectionToken } from "@k8slens/core/common";
|
||||
import manifest from "@k8slens/sample-extension/package.json";
|
||||
|
||||
const sampleBundledExtensionInjectable = getInjectable({
|
||||
id: "sample-bundled-extension",
|
||||
instantiate: () => ({
|
||||
manifest,
|
||||
main: async () => (await import("@k8slens/sample-extension/main")).default,
|
||||
renderer: async () => (await import("@k8slens/sample-extension/renderer")).default,
|
||||
}),
|
||||
injectionToken: bundledExtensionInjectionToken,
|
||||
});
|
||||
|
||||
export default sampleBundledExtensionInjectable;
|
||||
Reference in new issue
Block a user