@k8slens/extensions 5.3.1-git.8ff7c03993.0 → 5.3.1-git.9284741df5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/common/cluster-types.d.ts +5 -1
- package/dist/src/{extensions/registries/menu-registry.d.ts → common/ipc/catalog.d.ts} +9 -6
- package/dist/src/{renderer/utils/copyToClipboard.d.ts → common/ipc/extension-loader.ipc.d.ts} +1 -7
- package/dist/src/common/ipc/index.d.ts +1 -0
- package/dist/src/common/ipc/update-available.ipc.d.ts +2 -0
- package/dist/src/common/k8s-api/cluster-context.d.ts +1 -0
- package/dist/src/common/k8s-api/endpoints/daemon-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/deployment.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/job.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/network-policy.api.d.ts +72 -32
- package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +6 -6
- package/dist/src/common/k8s-api/endpoints/persistent-volume-claims.api.d.ts +3 -16
- package/dist/src/common/k8s-api/endpoints/poddisruptionbudget.api.d.ts +2 -6
- package/dist/src/common/k8s-api/endpoints/replica-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/endpoints/stateful-set.api.d.ts +2 -5
- package/dist/src/common/k8s-api/kube-api-parse.d.ts +2 -2
- package/dist/src/common/k8s-api/kube-api.d.ts +58 -30
- package/dist/src/common/k8s-api/kube-json-api.d.ts +1 -2
- package/dist/src/common/k8s-api/kube-object.d.ts +25 -2
- package/dist/src/common/k8s-api/kube-object.store.d.ts +11 -7
- package/dist/src/common/k8s-api/kube-watch-api.d.ts +7 -30
- package/dist/src/common/protocol-handler/error.d.ts +3 -3
- package/dist/src/common/protocol-handler/router.d.ts +13 -7
- package/dist/src/common/user-store/preferences-helpers.d.ts +14 -0
- package/dist/src/common/user-store/user-store.d.ts +2 -1
- package/dist/src/common/utils/index.d.ts +1 -0
- package/dist/src/common/utils/promise-exec.d.ts +1 -2
- package/dist/src/common/utils/readableStream.d.ts +2 -2
- package/dist/src/extensions/extension-api.js +199 -105
- package/dist/src/extensions/extension-compatibility.d.ts +3 -1
- package/dist/src/extensions/extension-discovery.d.ts +3 -1
- package/dist/src/extensions/{extension-loader.d.ts → extension-loader/extension-loader.d.ts} +15 -7
- package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +24 -0
- package/dist/src/{main/initializers/registries.d.ts → extensions/extension-loader/index.d.ts} +1 -1
- package/dist/src/extensions/extensions.injectable.d.ts +28 -0
- package/dist/src/extensions/getDiForUnitTesting.d.ts +22 -0
- package/dist/src/extensions/lens-extension.d.ts +2 -1
- package/dist/src/extensions/lens-main-extension.d.ts +1 -1
- package/dist/src/extensions/lens-renderer-extension.d.ts +6 -3
- package/dist/src/extensions/registries/index.d.ts +0 -1
- package/dist/src/extensions/registries/status-bar-registry.d.ts +6 -0
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -0
- package/dist/src/main/catalog-pusher.d.ts +1 -1
- package/dist/src/main/cluster-manager.d.ts +1 -1
- package/dist/src/main/cluster.d.ts +3 -7
- package/dist/src/main/context-handler.d.ts +8 -1
- package/dist/src/main/getDi.d.ts +22 -0
- package/dist/src/main/getDiForUnitTesting.d.ts +22 -0
- package/dist/src/main/helm/helm-release-manager.d.ts +9 -10
- package/dist/src/main/helm/helm-repo-manager.d.ts +2 -2
- package/dist/src/main/helm/helm-service.d.ts +2 -2
- package/dist/src/main/initializers/index.d.ts +0 -1
- package/dist/src/main/initializers/ipc.d.ts +3 -1
- package/dist/src/main/kube-auth-proxy.d.ts +5 -7
- package/dist/src/main/kubeconfig-manager.d.ts +16 -4
- package/dist/src/main/lens-proxy.d.ts +8 -1
- package/dist/src/main/menu/electron-menu-items.injectable.d.ts +28 -0
- package/dist/src/main/menu/electron-menu-items.test.d.ts +1 -0
- package/dist/src/main/menu/menu.d.ts +33 -0
- package/dist/src/main/protocol-handler/index.d.ts +1 -1
- package/dist/src/main/protocol-handler/{router.d.ts → lens-protocol-router-main/lens-protocol-router-main.d.ts} +13 -8
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +25 -0
- package/dist/src/main/window-manager.d.ts +3 -0
- package/dist/src/renderer/api/terminal-api.d.ts +0 -2
- package/dist/src/renderer/bootstrap.d.ts +3 -1
- package/dist/src/renderer/cluster-frame.d.ts +2 -1
- package/dist/src/renderer/components/+events/kube-event-details.d.ts +1 -1
- package/dist/src/renderer/components/{clipboard/clipboard.d.ts → +extensions/attempt-install/attempt-install.d.ts} +10 -16
- package/dist/src/{main/menu.d.ts → renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts} +6 -6
- package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +11 -0
- package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +1 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +27 -0
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +22 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +12 -0
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +5 -0
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +6 -0
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/extensions.d.ts +1 -15
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +21 -0
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +28 -0
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +4 -0
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +4 -0
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +24 -0
- package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +2 -0
- package/dist/src/renderer/{protocol-handler/app-handlers.d.ts → components/+extensions/supported-extension-formats.d.ts} +1 -1
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +26 -0
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +25 -0
- package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +28 -0
- package/dist/src/renderer/components/+namespaces/namespace-details.d.ts +0 -1
- package/dist/src/renderer/components/+namespaces/namespace-select.d.ts +0 -1
- package/dist/src/renderer/components/+namespaces/namespace.store.d.ts +1 -1
- package/dist/src/renderer/components/+network-ingresses/ingress-details.d.ts +1 -1
- package/dist/src/renderer/components/+network-policies/__tests__/network-policy-details.test.d.ts +21 -0
- package/dist/src/renderer/components/+network-policies/network-policy-details.d.ts +8 -4
- package/dist/src/renderer/components/+nodes/node-details.d.ts +1 -2
- package/dist/src/renderer/components/+nodes/nodes.d.ts +2 -1
- package/dist/src/renderer/components/+preferences/extension-settings.d.ts +7 -0
- package/dist/src/renderer/components/+preferences/preferences.d.ts +0 -2
- package/dist/src/renderer/components/+storage-classes/storage-class-details.d.ts +1 -1
- package/dist/src/renderer/components/+storage-volume-claims/volume-claim-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-cronjobs/cronjob-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-daemonsets/daemonset-details.d.ts +0 -1
- package/dist/src/renderer/components/+workloads-deployments/deployment-details.d.ts +0 -1
- package/dist/src/renderer/components/+workloads-jobs/job-details.d.ts +1 -1
- package/dist/src/renderer/components/+workloads-overview/overview.d.ts +2 -0
- package/dist/src/renderer/components/+workloads-replicasets/replicaset-details.d.ts +1 -2
- package/dist/src/renderer/components/+workloads-statefulsets/statefulset-details.d.ts +0 -1
- package/dist/src/renderer/components/avatar/__tests__/avatar.test.d.ts +21 -0
- package/dist/src/renderer/components/avatar/avatar.d.ts +7 -8
- package/dist/src/renderer/components/{clipboard → avatar}/index.d.ts +1 -1
- package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +21 -0
- package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +0 -1
- package/dist/src/renderer/components/context.d.ts +8 -1
- package/dist/src/renderer/components/dialog/dialog.d.ts +1 -0
- package/dist/src/renderer/components/dock/install-chart.d.ts +0 -1
- package/dist/src/renderer/components/drawer/drawer.d.ts +14 -3
- package/dist/src/renderer/components/getDi.d.ts +2 -2
- package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-icon.d.ts +3 -10
- package/dist/src/renderer/components/kube-object-list-layout/kube-object-list-layout.d.ts +2 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts +27 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +4 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +29 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +24 -0
- package/dist/src/renderer/components/kube-object-menu/index.d.ts +2 -1
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +4 -13
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.test.d.ts +21 -0
- package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
- package/dist/src/renderer/components/layout/__tests__/topbar-win-linux.test.d.ts +21 -0
- package/dist/src/renderer/components/resizing-anchor/resizing-anchor.d.ts +3 -1
- package/dist/src/renderer/components/test-utils/renderFor.d.ts +27 -0
- package/dist/src/renderer/initializers/index.d.ts +1 -0
- package/dist/src/renderer/initializers/ipc.d.ts +2 -1
- package/dist/src/renderer/initializers/status-bar-registry.d.ts +21 -0
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts +27 -0
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +24 -0
- package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
- package/dist/src/renderer/protocol-handler/{router.d.ts → lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts} +7 -1
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +25 -0
- package/dist/src/renderer/root-frame.d.ts +3 -1
- package/dist/src/renderer/utils/index.d.ts +0 -1
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import type { Dependencies } from "./install-from-input";
|
|
23
|
+
declare const installFromInputInjectable: Injectable<(input: string) => Promise<void>, Dependencies>;
|
|
24
|
+
export default installFromInputInjectable;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import { Dependencies } from "./install-from-select-file-dialog";
|
|
23
|
+
declare const installFromSelectFileDialogInjectable: Injectable<() => Promise<void>, Dependencies>;
|
|
24
|
+
export default installFromSelectFileDialogInjectable;
|
package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import { Dependencies } from "./install-on-drop";
|
|
23
|
+
declare const installOnDropInjectable: Injectable<(files: File[]) => Promise<void>, Dependencies>;
|
|
24
|
+
export default installOnDropInjectable;
|
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
export declare
|
|
21
|
+
export declare const supportedExtensionFormats: string[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { ExtensionLoader } from "../../../../extensions/extension-loader";
|
|
22
|
+
import { LensExtensionId } from "../../../../extensions/lens-extension";
|
|
23
|
+
export interface Dependencies {
|
|
24
|
+
extensionLoader: ExtensionLoader;
|
|
25
|
+
}
|
|
26
|
+
export declare const uninstallExtension: ({ extensionLoader }: Dependencies) => (extensionId: LensExtensionId) => Promise<boolean>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import type { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import type { LensExtensionId } from "../../../../extensions/lens-extension";
|
|
23
|
+
import { Dependencies } from "./uninstall-extension";
|
|
24
|
+
declare const uninstallExtensionInjectable: Injectable<(extensionId: LensExtensionId) => Promise<boolean>, Dependencies>;
|
|
25
|
+
export default uninstallExtensionInjectable;
|
package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import { Injectable } from "@ogre-tools/injectable";
|
|
22
|
+
import { IComputedValue } from "mobx";
|
|
23
|
+
import type { InstalledExtension } from "../../../../extensions/extension-discovery";
|
|
24
|
+
import type { ExtensionLoader } from "../../../../extensions/extension-loader";
|
|
25
|
+
declare const userExtensionsInjectable: Injectable<IComputedValue<InstalledExtension[]>, {
|
|
26
|
+
extensionLoader: ExtensionLoader;
|
|
27
|
+
}>;
|
|
28
|
+
export default userExtensionsInjectable;
|
|
@@ -27,7 +27,6 @@ interface Props extends KubeObjectDetailsProps<Namespace> {
|
|
|
27
27
|
export declare class NamespaceDetails extends React.Component<Props> {
|
|
28
28
|
metrics: IPodMetrics;
|
|
29
29
|
constructor(props: Props);
|
|
30
|
-
clean: import("mobx").IReactionDisposer;
|
|
31
30
|
componentDidMount(): void;
|
|
32
31
|
get quotas(): import("../../../common/k8s-api/endpoints").ResourceQuota[];
|
|
33
32
|
get limitranges(): import("../../../common/k8s-api/endpoints").LimitRange[];
|
|
@@ -30,7 +30,6 @@ interface Props extends SelectProps {
|
|
|
30
30
|
export declare class NamespaceSelect extends React.Component<Props> {
|
|
31
31
|
static defaultProps: object;
|
|
32
32
|
constructor(props: Props);
|
|
33
|
-
componentDidMount(): void;
|
|
34
33
|
get options(): SelectOption[];
|
|
35
34
|
formatOptionLabel: (option: SelectOption) => {};
|
|
36
35
|
render(): JSX.Element;
|
|
@@ -54,7 +54,7 @@ export declare class NamespaceStore extends KubeObjectStore<Namespace> {
|
|
|
54
54
|
*/
|
|
55
55
|
get areAllSelectedImplicitly(): boolean;
|
|
56
56
|
subscribe(): typeof noop;
|
|
57
|
-
protected loadItems(params: KubeObjectStoreLoadingParams
|
|
57
|
+
protected loadItems(params: KubeObjectStoreLoadingParams): Promise<Namespace[]>;
|
|
58
58
|
selectNamespaces(namespace: string | string[]): void;
|
|
59
59
|
clearSelected(namespaces?: string | string[]): void;
|
|
60
60
|
/**
|
|
@@ -28,7 +28,7 @@ interface Props extends KubeObjectDetailsProps<Ingress> {
|
|
|
28
28
|
export declare class IngressDetails extends React.Component<Props> {
|
|
29
29
|
metrics: IIngressMetrics;
|
|
30
30
|
constructor(props: Props);
|
|
31
|
-
|
|
31
|
+
componentDidMount(): void;
|
|
32
32
|
loadMetrics(): Promise<void>;
|
|
33
33
|
renderPaths(ingress: Ingress): JSX.Element[];
|
|
34
34
|
renderIngressPoints(ingressPoints: ILoadBalancerIngress[]): JSX.Element;
|
package/dist/src/renderer/components/+network-policies/__tests__/network-policy-details.test.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
export {};
|
|
@@ -18,15 +18,19 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import "./network-policy-details.scss";
|
|
22
21
|
import React from "react";
|
|
23
|
-
import {
|
|
22
|
+
import { IPolicyIpBlock, NetworkPolicy, NetworkPolicyPeer, NetworkPolicyPort } from "../../../common/k8s-api/endpoints/network-policy.api";
|
|
24
23
|
import type { KubeObjectDetailsProps } from "../kube-object-details";
|
|
24
|
+
import type { LabelMatchExpression, LabelSelector } from "../../../common/k8s-api/kube-object";
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<NetworkPolicy> {
|
|
26
26
|
}
|
|
27
27
|
export declare class NetworkPolicyDetails extends React.Component<Props> {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
renderIPolicyIpBlock(ipBlock: IPolicyIpBlock | undefined): JSX.Element;
|
|
29
|
+
renderMatchLabels(matchLabels: Record<string, string | undefined> | undefined): JSX.Element[];
|
|
30
|
+
renderMatchExpressions(matchExpressions: LabelMatchExpression[] | undefined): JSX.Element[];
|
|
31
|
+
renderIPolicySelector(name: string, selector: LabelSelector | undefined): JSX.Element;
|
|
32
|
+
renderNetworkPolicyPeers(name: string, peers: NetworkPolicyPeer[] | undefined): JSX.Element;
|
|
33
|
+
renderNetworkPolicyPorts(ports: NetworkPolicyPort[] | undefined): JSX.Element;
|
|
30
34
|
render(): JSX.Element;
|
|
31
35
|
}
|
|
32
36
|
export {};
|
|
@@ -27,8 +27,7 @@ interface Props extends KubeObjectDetailsProps<Node> {
|
|
|
27
27
|
export declare class NodeDetails extends React.Component<Props> {
|
|
28
28
|
metrics: Partial<IClusterMetrics>;
|
|
29
29
|
constructor(props: Props);
|
|
30
|
-
|
|
31
|
-
componentDidMount(): Promise<void>;
|
|
30
|
+
componentDidMount(): void;
|
|
32
31
|
loadMetrics(): Promise<void>;
|
|
33
32
|
render(): JSX.Element;
|
|
34
33
|
}
|
|
@@ -32,9 +32,10 @@ export declare class Nodes extends React.Component<Props> {
|
|
|
32
32
|
componentDidMount(): Promise<void>;
|
|
33
33
|
componentWillUnmount(): void;
|
|
34
34
|
getLastMetricValues(node: Node, metricNames: string[]): number[];
|
|
35
|
+
private renderUsage;
|
|
35
36
|
renderCpuUsage(node: Node): JSX.Element;
|
|
36
37
|
renderMemoryUsage(node: Node): JSX.Element;
|
|
37
|
-
renderDiskUsage(node: Node):
|
|
38
|
+
renderDiskUsage(node: Node): JSX.Element;
|
|
38
39
|
renderConditions(node: Node): JSX.Element[];
|
|
39
40
|
render(): JSX.Element;
|
|
40
41
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RegisteredAppPreference } from "../../../extensions/registries/app-preference-registry";
|
|
2
|
+
interface ExtensionSettingsProps {
|
|
3
|
+
setting: RegisteredAppPreference;
|
|
4
|
+
size: "small" | "normal";
|
|
5
|
+
}
|
|
6
|
+
export declare function ExtensionSettings({ setting, size }: ExtensionSettingsProps): JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -20,11 +20,9 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import "./preferences.scss";
|
|
22
22
|
import React from "react";
|
|
23
|
-
import { RegisteredAppPreference } from "../../../extensions/registries/app-preference-registry";
|
|
24
23
|
export declare class Preferences extends React.Component {
|
|
25
24
|
historyLength: number | undefined;
|
|
26
25
|
constructor(props: {});
|
|
27
26
|
renderNavigation(): JSX.Element;
|
|
28
27
|
render(): JSX.Element;
|
|
29
28
|
}
|
|
30
|
-
export declare function ExtensionSettings({ title, id, components: { Hint, Input } }: RegisteredAppPreference): JSX.Element;
|
|
@@ -25,7 +25,7 @@ import { StorageClass } from "../../../common/k8s-api/endpoints";
|
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<StorageClass> {
|
|
26
26
|
}
|
|
27
27
|
export declare class StorageClassDetails extends React.Component<Props> {
|
|
28
|
-
componentDidMount():
|
|
28
|
+
componentDidMount(): void;
|
|
29
29
|
render(): JSX.Element;
|
|
30
30
|
}
|
|
31
31
|
export {};
|
|
@@ -27,7 +27,7 @@ interface Props extends KubeObjectDetailsProps<PersistentVolumeClaim> {
|
|
|
27
27
|
export declare class PersistentVolumeClaimDetails extends React.Component<Props> {
|
|
28
28
|
metrics: IPvcMetrics;
|
|
29
29
|
constructor(props: Props);
|
|
30
|
-
|
|
30
|
+
componentDidMount(): void;
|
|
31
31
|
loadMetrics(): Promise<void>;
|
|
32
32
|
render(): JSX.Element;
|
|
33
33
|
}
|
|
@@ -25,7 +25,7 @@ import { CronJob } from "../../../common/k8s-api/endpoints";
|
|
|
25
25
|
interface Props extends KubeObjectDetailsProps<CronJob> {
|
|
26
26
|
}
|
|
27
27
|
export declare class CronJobDetails extends React.Component<Props> {
|
|
28
|
-
componentDidMount():
|
|
28
|
+
componentDidMount(): void;
|
|
29
29
|
render(): JSX.Element;
|
|
30
30
|
}
|
|
31
31
|
export {};
|
|
@@ -27,7 +27,6 @@ interface Props extends KubeObjectDetailsProps<DaemonSet> {
|
|
|
27
27
|
export declare class DaemonSetDetails extends React.Component<Props> {
|
|
28
28
|
metrics: IPodMetrics;
|
|
29
29
|
constructor(props: Props);
|
|
30
|
-
clean: import("mobx").IReactionDisposer;
|
|
31
30
|
componentDidMount(): void;
|
|
32
31
|
loadMetrics(): Promise<void>;
|
|
33
32
|
render(): JSX.Element;
|
|
@@ -27,7 +27,6 @@ interface Props extends KubeObjectDetailsProps<Deployment> {
|
|
|
27
27
|
export declare class DeploymentDetails extends React.Component<Props> {
|
|
28
28
|
metrics: IPodMetrics;
|
|
29
29
|
constructor(props: Props);
|
|
30
|
-
clean: import("mobx").IReactionDisposer;
|
|
31
30
|
componentDidMount(): void;
|
|
32
31
|
loadMetrics(): Promise<void>;
|
|
33
32
|
render(): JSX.Element;
|
|
@@ -27,7 +27,7 @@ interface Props extends KubeObjectDetailsProps<Job> {
|
|
|
27
27
|
export declare class JobDetails extends React.Component<Props> {
|
|
28
28
|
metrics: IPodMetrics;
|
|
29
29
|
constructor(props: Props);
|
|
30
|
-
componentDidMount():
|
|
30
|
+
componentDidMount(): void;
|
|
31
31
|
loadMetrics(): Promise<void>;
|
|
32
32
|
render(): JSX.Element;
|
|
33
33
|
}
|
|
@@ -22,9 +22,11 @@ import "./overview.scss";
|
|
|
22
22
|
import React from "react";
|
|
23
23
|
import type { RouteComponentProps } from "react-router";
|
|
24
24
|
import type { WorkloadsOverviewRouteParams } from "../../../common/routes";
|
|
25
|
+
import type { ClusterContext } from "../../../common/k8s-api/cluster-context";
|
|
25
26
|
interface Props extends RouteComponentProps<WorkloadsOverviewRouteParams> {
|
|
26
27
|
}
|
|
27
28
|
export declare class WorkloadsOverview extends React.Component<Props> {
|
|
29
|
+
static clusterContext: ClusterContext;
|
|
28
30
|
loadErrors: string[];
|
|
29
31
|
constructor(props: Props);
|
|
30
32
|
componentDidMount(): void;
|
|
@@ -27,8 +27,7 @@ interface Props extends KubeObjectDetailsProps<ReplicaSet> {
|
|
|
27
27
|
export declare class ReplicaSetDetails extends React.Component<Props> {
|
|
28
28
|
metrics: IPodMetrics;
|
|
29
29
|
constructor(props: Props);
|
|
30
|
-
|
|
31
|
-
componentDidMount(): Promise<void>;
|
|
30
|
+
componentDidMount(): void;
|
|
32
31
|
loadMetrics(): Promise<void>;
|
|
33
32
|
render(): JSX.Element;
|
|
34
33
|
}
|
|
@@ -27,7 +27,6 @@ interface Props extends KubeObjectDetailsProps<StatefulSet> {
|
|
|
27
27
|
export declare class StatefulSetDetails extends React.Component<Props> {
|
|
28
28
|
metrics: IPodMetrics;
|
|
29
29
|
constructor(props: Props);
|
|
30
|
-
clean: import("mobx").IReactionDisposer;
|
|
31
30
|
componentDidMount(): void;
|
|
32
31
|
loadMetrics(): Promise<void>;
|
|
33
32
|
render(): JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
import "@testing-library/jest-dom/extend-expect";
|
|
@@ -18,16 +18,15 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import {
|
|
22
|
-
|
|
23
|
-
interface Props extends DOMAttributes<HTMLElement>, Partial<AvatarTypeMap> {
|
|
21
|
+
import { HTMLAttributes, ImgHTMLAttributes } from "react";
|
|
22
|
+
export interface AvatarProps extends HTMLAttributes<HTMLElement> {
|
|
24
23
|
title: string;
|
|
25
24
|
colorHash?: string;
|
|
26
|
-
|
|
27
|
-
height?: number;
|
|
25
|
+
size?: number;
|
|
28
26
|
src?: string;
|
|
29
|
-
className?: string;
|
|
30
27
|
background?: string;
|
|
28
|
+
variant?: "circle" | "rounded" | "square";
|
|
29
|
+
imgProps?: ImgHTMLAttributes<HTMLImageElement>;
|
|
30
|
+
disabled?: boolean;
|
|
31
31
|
}
|
|
32
|
-
export declare function Avatar(props:
|
|
33
|
-
export {};
|
|
32
|
+
export declare function Avatar(props: AvatarProps): JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2021 OpenLens Authors
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
5
|
+
* this software and associated documentation files (the "Software"), to deal in
|
|
6
|
+
* the Software without restriction, including without limitation the rights to
|
|
7
|
+
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
8
|
+
* the Software, and to permit persons to whom the Software is furnished to do so,
|
|
9
|
+
* subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
* copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
16
|
+
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
17
|
+
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
18
|
+
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
|
+
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
|
+
*/
|
|
21
|
+
export declare const ActiveHotbarName: () => JSX.Element;
|
|
@@ -18,7 +18,6 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import "./bottom-bar.scss";
|
|
22
21
|
import React from "react";
|
|
23
22
|
import { StatusBarRegistration } from "../../../extensions/registries";
|
|
24
23
|
export declare class BottomBar extends React.Component {
|
|
@@ -18,5 +18,12 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
+
import type { Cluster } from "../../main/cluster";
|
|
21
22
|
import type { ClusterContext } from "../../common/k8s-api/cluster-context";
|
|
22
|
-
export declare
|
|
23
|
+
export declare class FrameContext implements ClusterContext {
|
|
24
|
+
cluster: Cluster;
|
|
25
|
+
constructor(cluster: Cluster);
|
|
26
|
+
get allNamespaces(): string[];
|
|
27
|
+
get contextNamespaces(): string[];
|
|
28
|
+
get hasSelectedAll(): boolean;
|
|
29
|
+
}
|
|
@@ -21,31 +21,42 @@
|
|
|
21
21
|
import "./drawer.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import { AnimateName } from "../animate";
|
|
24
|
+
export declare type DrawerPosition = "top" | "left" | "right" | "bottom";
|
|
24
25
|
export interface DrawerProps {
|
|
25
26
|
open: boolean;
|
|
26
27
|
title: React.ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* The width or heigh (depending on `position`) of the Drawer.
|
|
30
|
+
*
|
|
31
|
+
* If not set then the Drawer will be resizable.
|
|
32
|
+
*/
|
|
27
33
|
size?: string;
|
|
28
34
|
usePortal?: boolean;
|
|
29
35
|
className?: string | object;
|
|
30
36
|
contentClass?: string | object;
|
|
31
|
-
position?:
|
|
37
|
+
position?: DrawerPosition;
|
|
32
38
|
animation?: AnimateName;
|
|
33
39
|
onClose?: () => void;
|
|
34
40
|
toolbar?: React.ReactNode;
|
|
35
41
|
}
|
|
36
42
|
interface State {
|
|
37
43
|
isCopied: boolean;
|
|
44
|
+
width: number;
|
|
38
45
|
}
|
|
39
|
-
export declare class Drawer extends React.Component<DrawerProps> {
|
|
46
|
+
export declare class Drawer extends React.Component<DrawerProps, State> {
|
|
40
47
|
static defaultProps: object;
|
|
41
48
|
private mouseDownTarget;
|
|
42
49
|
private contentElem;
|
|
43
50
|
private scrollElem;
|
|
44
51
|
private scrollPos;
|
|
45
52
|
private stopListenLocation;
|
|
46
|
-
state:
|
|
53
|
+
state: {
|
|
54
|
+
isCopied: boolean;
|
|
55
|
+
width: number;
|
|
56
|
+
};
|
|
47
57
|
componentDidMount(): void;
|
|
48
58
|
componentWillUnmount(): void;
|
|
59
|
+
resizeWidth: (width: number) => void;
|
|
49
60
|
fixUpTripleClick: (ev: MouseEvent) => void;
|
|
50
61
|
saveScrollPos: () => void;
|
|
51
62
|
restoreScrollPos: () => void;
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
export declare const getDi: () => ConfigurableDependencyInjectionContainer;
|
|
21
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
export declare const getDi: () => import("@ogre-tools/injectable").ConfigurableDependencyInjectionContainer;
|
|
@@ -18,13 +18,12 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
import React, {
|
|
21
|
+
import React, { HTMLAttributes } from "react";
|
|
22
22
|
import type { CatalogEntity } from "../../../common/catalog";
|
|
23
23
|
import { IClassName } from "../../utils";
|
|
24
|
-
interface Props extends
|
|
24
|
+
interface Props extends HTMLAttributes<HTMLElement> {
|
|
25
25
|
entity: CatalogEntity;
|
|
26
26
|
index: number;
|
|
27
|
-
className?: IClassName;
|
|
28
27
|
errorClass?: IClassName;
|
|
29
28
|
add: (item: CatalogEntity, index: number) => void;
|
|
30
29
|
remove: (uid: string) => void;
|
|
@@ -36,6 +35,7 @@ export declare class HotbarEntityIcon extends React.Component<Props> {
|
|
|
36
35
|
get kindIcon(): JSX.Element;
|
|
37
36
|
get ledIcon(): JSX.Element;
|
|
38
37
|
isActive(item: CatalogEntity): boolean;
|
|
38
|
+
onMenuOpen(): Promise<void>;
|
|
39
39
|
render(): JSX.Element;
|
|
40
40
|
}
|
|
41
41
|
export {};
|