@k8slens/extensions 5.3.1-git.fa3708c879.0 → 5.3.4
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/catalog/catalog-entity.d.ts +0 -51
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +2 -1
- package/dist/src/common/ipc/index.d.ts +0 -1
- package/dist/src/common/ipc/update-available.ipc.d.ts +0 -2
- package/dist/src/common/k8s-api/api-manager.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/metrics.api.d.ts +0 -2
- package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +6 -6
- package/dist/src/common/k8s-api/endpoints/pods.api.d.ts +0 -2
- package/dist/src/common/k8s-api/kube-api.d.ts +1 -1
- package/dist/src/common/k8s-api/kube-json-api.d.ts +2 -1
- package/dist/src/common/protocol-handler/error.d.ts +3 -3
- package/dist/src/common/protocol-handler/router.d.ts +7 -13
- package/dist/src/common/user-store/preferences-helpers.d.ts +0 -14
- package/dist/src/common/user-store/user-store.d.ts +1 -2
- package/dist/src/common/utils/index.d.ts +0 -1
- package/dist/src/common/utils/readableStream.d.ts +2 -2
- package/dist/src/common/vars.d.ts +0 -1
- package/dist/src/extensions/extension-api.js +3039 -1683
- package/dist/src/extensions/extension-discovery.d.ts +1 -3
- package/dist/src/extensions/{extension-loader/extension-loader.d.ts → extension-loader.d.ts} +7 -15
- package/dist/src/extensions/lens-extension.d.ts +1 -2
- package/dist/src/extensions/lens-main-extension.d.ts +1 -3
- package/dist/src/extensions/lens-renderer-extension.d.ts +6 -12
- package/dist/src/extensions/registries/base-registry.d.ts +1 -1
- package/dist/src/extensions/registries/index.d.ts +4 -0
- package/dist/src/extensions/{getDiForUnitTesting.d.ts → registries/menu-registry.d.ts} +7 -2
- package/dist/src/extensions/registries/status-bar-registry.d.ts +0 -6
- package/dist/src/{renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts → extensions/registries/topbar-registry.d.ts} +9 -4
- package/dist/src/{renderer/components/+catalog/helpers.d.ts → extensions/registries/welcome-banner-registry.d.ts} +16 -4
- package/dist/src/{common/ipc/extension-loader.ipc.d.ts → extensions/registries/welcome-menu-registry.d.ts} +8 -1
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +0 -1
- package/dist/src/main/catalog-pusher.d.ts +1 -1
- package/dist/src/main/initializers/index.d.ts +1 -0
- package/dist/src/main/initializers/ipc.d.ts +1 -3
- package/dist/src/{extensions/extension-loader/index.d.ts → main/initializers/registries.d.ts} +1 -1
- package/dist/src/{common/ipc/catalog.d.ts → main/menu.d.ts} +6 -10
- package/dist/src/main/protocol-handler/index.d.ts +1 -1
- package/dist/src/main/protocol-handler/{lens-protocol-router-main/lens-protocol-router-main.d.ts → router.d.ts} +8 -14
- package/dist/src/main/{getDi.d.ts → tray.d.ts} +5 -2
- package/dist/src/main/window-manager.d.ts +0 -3
- package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
- package/dist/src/renderer/api/catalog-entity-registry.d.ts +0 -4
- package/dist/src/renderer/api/catalog-entity.d.ts +5 -1
- package/dist/src/renderer/api/terminal-api.d.ts +2 -0
- package/dist/src/renderer/bootstrap.d.ts +2 -5
- package/dist/src/renderer/cluster-frame.d.ts +1 -2
- package/dist/src/renderer/components/+catalog/catalog-entity-details.d.ts +3 -3
- package/dist/src/renderer/components/+catalog/catalog-entity-drawer-menu.d.ts +2 -1
- package/dist/src/renderer/components/+catalog/catalog-entity.store.d.ts +4 -4
- package/dist/src/renderer/components/+catalog/catalog.d.ts +6 -5
- package/dist/src/renderer/components/+extensions/extensions.d.ts +15 -1
- package/dist/src/renderer/components/+nodes/nodes.d.ts +1 -2
- package/dist/src/renderer/components/+preferences/preferences.d.ts +2 -0
- package/dist/src/renderer/components/+welcome/welcome.d.ts +3 -1
- package/dist/src/renderer/components/+workloads-overview/overview-workload-status.d.ts +7 -2
- package/dist/src/renderer/components/avatar/avatar.d.ts +8 -7
- package/dist/src/renderer/components/checkbox/checkbox.d.ts +1 -0
- package/dist/src/renderer/components/cluster-manager/bottom-bar.d.ts +1 -0
- package/dist/src/renderer/components/dialog/dialog.d.ts +0 -1
- package/dist/src/renderer/components/dock/install-chart.d.ts +1 -0
- package/dist/src/renderer/components/dock/terminal.d.ts +1 -1
- package/dist/src/renderer/components/drawer/drawer.d.ts +3 -14
- package/dist/src/renderer/components/hotbar/hotbar-entity-icon.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-icon.d.ts +10 -3
- package/dist/src/renderer/components/kube-object-menu/index.d.ts +1 -2
- package/dist/src/renderer/components/kube-object-menu/kube-object-menu.d.ts +13 -4
- package/dist/src/renderer/components/{avatar/__tests__/avatar.test.d.ts → layout/__tests__/topbar.test.d.ts} +0 -0
- package/dist/src/renderer/components/layout/close-button.d.ts +1 -0
- package/dist/src/renderer/components/layout/{top-bar/top-bar.d.ts → topbar.d.ts} +4 -1
- package/dist/src/renderer/components/menu/menu-actions.d.ts +1 -1
- package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
- package/dist/src/renderer/components/notifications/notifications.d.ts +3 -3
- package/dist/src/renderer/components/resizing-anchor/resizing-anchor.d.ts +1 -3
- package/dist/src/renderer/components/switch/form-switcher.d.ts +0 -3
- package/dist/src/renderer/components/switch/index.d.ts +0 -1
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -4
- package/dist/src/renderer/initializers/index.d.ts +1 -1
- package/dist/src/renderer/initializers/ipc.d.ts +1 -2
- package/dist/src/renderer/{components/kube-object-menu/kube-object-menu.test.d.ts → initializers/welcome-menu-registry.d.ts} +1 -1
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +1 -1
- package/dist/src/renderer/{components/+extensions/supported-extension-formats.d.ts → protocol-handler/app-handlers.d.ts} +1 -1
- package/dist/src/renderer/protocol-handler/index.d.ts +2 -2
- package/dist/src/renderer/protocol-handler/{lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts → router.d.ts} +1 -8
- package/dist/src/renderer/root-frame.d.ts +1 -3
- package/dist/src/renderer/theme.store.d.ts +1 -0
- package/package.json +1 -1
- package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +0 -4
- package/dist/src/extensions/extensions.injectable.d.ts +0 -3
- package/dist/src/extensions/main-extensions.injectable.d.ts +0 -5
- package/dist/src/extensions/renderer-extensions.injectable.d.ts +0 -5
- package/dist/src/main/getDiForUnitTesting.d.ts +0 -22
- package/dist/src/main/menu/electron-menu-items.injectable.d.ts +0 -3
- package/dist/src/main/menu/electron-menu-items.test.d.ts +0 -1
- package/dist/src/main/menu/menu.d.ts +0 -33
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +0 -4
- package/dist/src/main/tray/tray-menu-items.injectable.d.ts +0 -3
- package/dist/src/main/tray/tray-menu-items.test.d.ts +0 -1
- package/dist/src/main/tray/tray.d.ts +0 -27
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.d.ts +0 -32
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/attempt-install/create-temp-files-and-validate/create-temp-files-and-validate.d.ts +0 -11
- package/dist/src/renderer/components/+extensions/attempt-install/get-extension-dest-folder/get-extension-dest-folder.d.ts +0 -1
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +0 -28
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/attempt-install/validate-package/validate-package.d.ts +0 -22
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +0 -13
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +0 -6
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +0 -7
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +0 -27
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +0 -27
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +0 -23
- package/dist/src/renderer/components/+extensions/get-message-from-error/get-message-from-error.d.ts +0 -21
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +0 -29
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +0 -5
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +0 -5
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/read-file-notify/read-file-notify.d.ts +0 -2
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +0 -27
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+preferences/extension-settings.d.ts +0 -7
- package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-items.injectable.d.ts +0 -3
- package/dist/src/renderer/components/+welcome/welcome-menu-items/get-welcome-menu-items.d.ts +0 -27
- package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-items.injectable.d.ts +0 -3
- package/dist/src/renderer/components/avatar/index.d.ts +0 -21
- package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +0 -21
- package/dist/src/renderer/components/getDi.d.ts +0 -22
- package/dist/src/renderer/components/getDiForUnitTesting.d.ts +0 -22
- package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +0 -3
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts +0 -23
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +0 -3
- package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +0 -24
- package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +0 -24
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +0 -26
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +0 -9
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +0 -24
- package/dist/src/renderer/components/layout/top-bar/top-bar-items/top-bar-items.injectable.d.ts +0 -3
- package/dist/src/renderer/components/layout/top-bar/top-bar-win-linux.test.d.ts +0 -21
- package/dist/src/renderer/components/layout/top-bar/top-bar.test.d.ts +0 -21
- package/dist/src/renderer/components/switch/__tests__/switch.test.d.ts +0 -21
- package/dist/src/renderer/components/switch/switch.d.ts +0 -26
- package/dist/src/renderer/components/test-utils/renderFor.d.ts +0 -27
- package/dist/src/renderer/initializers/status-bar-registry.d.ts +0 -21
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts +0 -28
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +0 -3
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +0 -4
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
/// <reference types="node" />
|
|
22
22
|
import { EventEmitter } from "events";
|
|
23
23
|
import { Singleton } from "../common/utils";
|
|
24
|
-
import type { ExtensionLoader } from "./extension-loader";
|
|
25
24
|
import type { LensExtensionId, LensExtensionManifest } from "./lens-extension";
|
|
26
25
|
export interface InstalledExtension {
|
|
27
26
|
id: LensExtensionId;
|
|
@@ -50,7 +49,6 @@ interface LoadFromFolderOptions {
|
|
|
50
49
|
* - "remove": When extension is removed. The event is of type LensExtensionId
|
|
51
50
|
*/
|
|
52
51
|
export declare class ExtensionDiscovery extends Singleton {
|
|
53
|
-
protected extensionLoader: ExtensionLoader;
|
|
54
52
|
protected bundledFolderPath: string;
|
|
55
53
|
private loadStarted;
|
|
56
54
|
private extensions;
|
|
@@ -60,7 +58,7 @@ export declare class ExtensionDiscovery extends Singleton {
|
|
|
60
58
|
};
|
|
61
59
|
protected static readonly extensionDiscoveryChannel = "extension-discovery:main";
|
|
62
60
|
events: EventEmitter;
|
|
63
|
-
constructor(
|
|
61
|
+
constructor();
|
|
64
62
|
get localFolderPath(): string;
|
|
65
63
|
get packageJsonPath(): string;
|
|
66
64
|
get inTreeTargetPath(): string;
|
package/dist/src/extensions/{extension-loader/extension-loader.d.ts → extension-loader.d.ts}
RENAMED
|
@@ -18,15 +18,14 @@
|
|
|
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 { Disposer } from "
|
|
22
|
-
import type {
|
|
23
|
-
import type {
|
|
24
|
-
import type { LensExtension, LensExtensionConstructor, LensExtensionId } from "../lens-extension";
|
|
21
|
+
import { Disposer, Singleton } from "../common/utils";
|
|
22
|
+
import type { InstalledExtension } from "./extension-discovery";
|
|
23
|
+
import type { LensExtension, LensExtensionConstructor, LensExtensionId } from "./lens-extension";
|
|
25
24
|
export declare function extensionPackagesRoot(): string;
|
|
26
25
|
/**
|
|
27
26
|
* Loads installed extensions to the Lens application
|
|
28
27
|
*/
|
|
29
|
-
export declare class ExtensionLoader {
|
|
28
|
+
export declare class ExtensionLoader extends Singleton {
|
|
30
29
|
protected extensions: import("mobx").ObservableMap<string, InstalledExtension>;
|
|
31
30
|
protected instances: import("mobx").ObservableMap<string, LensExtension>;
|
|
32
31
|
/**
|
|
@@ -47,7 +46,6 @@ export declare class ExtensionLoader {
|
|
|
47
46
|
cancel(): void;
|
|
48
47
|
};
|
|
49
48
|
constructor();
|
|
50
|
-
get enabledExtensionInstances(): LensExtension[];
|
|
51
49
|
get userExtensions(): Map<LensExtensionId, InstalledExtension>;
|
|
52
50
|
/**
|
|
53
51
|
* Get the extension instance by its manifest name
|
|
@@ -76,15 +74,9 @@ export declare class ExtensionLoader {
|
|
|
76
74
|
broadcastExtensions(): void;
|
|
77
75
|
syncExtensions(extensions: [LensExtensionId, InstalledExtension][]): void;
|
|
78
76
|
loadOnMain(): void;
|
|
79
|
-
loadOnClusterManagerRenderer():
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}[];
|
|
83
|
-
loadOnClusterRenderer(entity: KubernetesCluster): void;
|
|
84
|
-
protected autoInitExtensions(register: (ext: LensExtension) => Promise<Disposer[]>): {
|
|
85
|
-
isBundled: boolean;
|
|
86
|
-
loaded: Promise<void>;
|
|
87
|
-
}[];
|
|
77
|
+
loadOnClusterManagerRenderer(): void;
|
|
78
|
+
loadOnClusterRenderer(): void;
|
|
79
|
+
protected autoInitExtensions(register: (ext: LensExtension) => Promise<Disposer[]>): import("mobx").IReactionDisposer;
|
|
88
80
|
protected requireExtension(extension: InstalledExtension): LensExtensionConstructor | null;
|
|
89
81
|
getExtension(extId: LensExtensionId): InstalledExtension;
|
|
90
82
|
getInstanceById<E extends LensExtension>(extId: LensExtensionId): E;
|
|
@@ -37,8 +37,7 @@ export declare class LensExtension {
|
|
|
37
37
|
readonly manifestPath: string;
|
|
38
38
|
readonly isBundled: boolean;
|
|
39
39
|
protocolHandlers: ProtocolHandlerRegistration[];
|
|
40
|
-
private
|
|
41
|
-
get isEnabled(): boolean;
|
|
40
|
+
private isEnabled;
|
|
42
41
|
[Disposers]: import("../common/utils").ExtendableDisposer;
|
|
43
42
|
constructor({ id, manifest, manifestPath, isBundled }: InstalledExtension);
|
|
44
43
|
get name(): string;
|
|
@@ -21,11 +21,9 @@
|
|
|
21
21
|
import { LensExtension } from "./lens-extension";
|
|
22
22
|
import type { CatalogEntity } from "../common/catalog";
|
|
23
23
|
import type { IObservableArray } from "mobx";
|
|
24
|
-
import type { MenuRegistration } from "
|
|
25
|
-
import type { TrayMenuRegistration } from "../main/tray/tray-menu-registration";
|
|
24
|
+
import type { MenuRegistration } from "./registries";
|
|
26
25
|
export declare class LensMainExtension extends LensExtension {
|
|
27
26
|
appMenus: MenuRegistration[];
|
|
28
|
-
trayMenus: TrayMenuRegistration[];
|
|
29
27
|
navigate(pageId?: string, params?: Record<string, any>, frameId?: number): Promise<void>;
|
|
30
28
|
addCatalogSource(id: string, source: IObservableArray<CatalogEntity>): void;
|
|
31
29
|
removeCatalogSource(id: string): void;
|
|
@@ -19,15 +19,12 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import type * as registries from "./registries";
|
|
22
|
+
import type { Cluster } from "../main/cluster";
|
|
22
23
|
import { LensExtension } from "./lens-extension";
|
|
23
24
|
import type { CatalogEntity } from "../common/catalog";
|
|
24
25
|
import type { Disposer } from "../common/utils";
|
|
25
26
|
import { EntityFilter } from "../renderer/api/catalog-entity-registry";
|
|
26
27
|
import { CategoryFilter } from "../renderer/api/catalog-category-registry";
|
|
27
|
-
import type { TopBarRegistration } from "../renderer/components/layout/top-bar/top-bar-registration";
|
|
28
|
-
import type { KubernetesCluster } from "../common/catalog-entities";
|
|
29
|
-
import type { WelcomeMenuRegistration } from "../renderer/components/+welcome/welcome-menu-items/welcome-menu-registration";
|
|
30
|
-
import type { WelcomeBannerRegistration } from "../renderer/components/+welcome/welcome-banner-items/welcome-banner-registration";
|
|
31
28
|
export declare class LensRendererExtension extends LensExtension {
|
|
32
29
|
globalPages: registries.PageRegistration[];
|
|
33
30
|
clusterPages: registries.PageRegistration[];
|
|
@@ -40,18 +37,15 @@ export declare class LensRendererExtension extends LensExtension {
|
|
|
40
37
|
kubeObjectMenuItems: registries.KubeObjectMenuRegistration[];
|
|
41
38
|
kubeWorkloadsOverviewItems: registries.WorkloadsOverviewDetailRegistration[];
|
|
42
39
|
commands: registries.CommandRegistration[];
|
|
43
|
-
welcomeMenus: WelcomeMenuRegistration[];
|
|
44
|
-
welcomeBanners: WelcomeBannerRegistration[];
|
|
40
|
+
welcomeMenus: registries.WelcomeMenuRegistration[];
|
|
41
|
+
welcomeBanners: registries.WelcomeBannerRegistration[];
|
|
45
42
|
catalogEntityDetailItems: registries.CatalogEntityDetailRegistration<CatalogEntity>[];
|
|
46
|
-
topBarItems: TopBarRegistration[];
|
|
43
|
+
topBarItems: registries.TopBarRegistration[];
|
|
47
44
|
navigate<P extends object>(pageId?: string, params?: P): Promise<void>;
|
|
48
45
|
/**
|
|
49
|
-
* Defines if extension is enabled for a given cluster.
|
|
50
|
-
* called when the extension is created within a cluster frame.
|
|
51
|
-
*
|
|
52
|
-
* The default implementation is to return `true`
|
|
46
|
+
* Defines if extension is enabled for a given cluster. Defaults to `true`.
|
|
53
47
|
*/
|
|
54
|
-
isEnabledForCluster(cluster:
|
|
48
|
+
isEnabledForCluster(cluster: Cluster): Promise<Boolean>;
|
|
55
49
|
/**
|
|
56
50
|
* Add a filtering function for the catalog entities. This will be removed if the extension is disabled.
|
|
57
51
|
* @param fn The function which should return a truthy value for those entities which should be kept.
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import { Singleton } from "../../common/utils";
|
|
22
|
-
import
|
|
22
|
+
import { LensExtension } from "../lens-extension";
|
|
23
23
|
export declare class BaseRegistry<T, I = T> extends Singleton {
|
|
24
24
|
private items;
|
|
25
25
|
constructor();
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
export * from "./page-registry";
|
|
22
22
|
export * from "./page-menu-registry";
|
|
23
|
+
export * from "./menu-registry";
|
|
23
24
|
export * from "./app-preference-registry";
|
|
24
25
|
export * from "./status-bar-registry";
|
|
25
26
|
export * from "./kube-object-detail-registry";
|
|
@@ -27,6 +28,9 @@ export * from "./kube-object-menu-registry";
|
|
|
27
28
|
export * from "./kube-object-status-registry";
|
|
28
29
|
export * from "./command-registry";
|
|
29
30
|
export * from "./entity-setting-registry";
|
|
31
|
+
export * from "./welcome-menu-registry";
|
|
32
|
+
export * from "./welcome-banner-registry";
|
|
30
33
|
export * from "./catalog-entity-detail-registry";
|
|
31
34
|
export * from "./workloads-overview-detail-registry";
|
|
35
|
+
export * from "./topbar-registry";
|
|
32
36
|
export * from "./protocol-handler";
|
|
@@ -18,5 +18,10 @@
|
|
|
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
|
-
|
|
21
|
+
import type { MenuItemConstructorOptions } from "electron";
|
|
22
|
+
import { BaseRegistry } from "./base-registry";
|
|
23
|
+
export interface MenuRegistration extends MenuItemConstructorOptions {
|
|
24
|
+
parentId: string;
|
|
25
|
+
}
|
|
26
|
+
export declare class MenuRegistry extends BaseRegistry<MenuRegistration> {
|
|
27
|
+
}
|
|
@@ -22,12 +22,6 @@ import type React from "react";
|
|
|
22
22
|
import { BaseRegistry } from "./base-registry";
|
|
23
23
|
interface StatusBarComponents {
|
|
24
24
|
Item?: React.ComponentType;
|
|
25
|
-
/**
|
|
26
|
-
* The side of the bottom bar to place this component.
|
|
27
|
-
*
|
|
28
|
-
* @default "right"
|
|
29
|
-
*/
|
|
30
|
-
position?: "left" | "right";
|
|
31
25
|
}
|
|
32
26
|
interface StatusBarRegistrationV2 {
|
|
33
27
|
components?: StatusBarComponents;
|
|
@@ -18,9 +18,14 @@
|
|
|
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
|
-
|
|
21
|
+
import type React from "react";
|
|
22
|
+
import { BaseRegistry } from "./base-registry";
|
|
23
|
+
interface TopBarComponents {
|
|
24
|
+
Item: React.ComponentType;
|
|
25
|
+
}
|
|
26
|
+
export interface TopBarRegistration {
|
|
27
|
+
components: TopBarComponents;
|
|
28
|
+
}
|
|
29
|
+
export declare class TopBarRegistry extends BaseRegistry<TopBarRegistration> {
|
|
24
30
|
}
|
|
25
|
-
export declare const getBaseRegistryUrl: ({ getRegistryUrlPreference }: Dependencies) => () => Promise<string>;
|
|
26
31
|
export {};
|
|
@@ -18,9 +18,21 @@
|
|
|
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
|
-
import
|
|
21
|
+
/// <reference types="react" />
|
|
22
|
+
import { BaseRegistry } from "./base-registry";
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* WelcomeBannerRegistration is for an extension to register
|
|
25
|
+
* Provide a Banner component to be renderered in the welcome screen.
|
|
25
26
|
*/
|
|
26
|
-
export
|
|
27
|
+
export interface WelcomeBannerRegistration {
|
|
28
|
+
/**
|
|
29
|
+
* The banner component to be shown on the welcome screen.
|
|
30
|
+
*/
|
|
31
|
+
Banner?: React.ComponentType;
|
|
32
|
+
/**
|
|
33
|
+
* The banner width in px.
|
|
34
|
+
*/
|
|
35
|
+
width?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare class WelcomeBannerRegistry extends BaseRegistry<WelcomeBannerRegistration> {
|
|
38
|
+
}
|
|
@@ -18,4 +18,11 @@
|
|
|
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
|
-
|
|
21
|
+
import { BaseRegistry } from "./base-registry";
|
|
22
|
+
export interface WelcomeMenuRegistration {
|
|
23
|
+
title: string | (() => string);
|
|
24
|
+
icon: string;
|
|
25
|
+
click: () => void | Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
export declare class WelcomeMenuRegistry extends BaseRegistry<WelcomeMenuRegistration> {
|
|
28
|
+
}
|
|
@@ -54,7 +54,6 @@ export { ClusterRole, clusterRoleApi } from "../../common/k8s-api/endpoints";
|
|
|
54
54
|
export { ClusterRoleBinding, clusterRoleBindingApi } from "../../common/k8s-api/endpoints";
|
|
55
55
|
export { CustomResourceDefinition, crdApi } from "../../common/k8s-api/endpoints";
|
|
56
56
|
export { KubeObjectStatusLevel } from "./kube-object-status";
|
|
57
|
-
export { KubeJsonApi } from "../../common/k8s-api/kube-json-api";
|
|
58
57
|
export type { ILocalKubeApiConfig, IRemoteKubeApiConfig, IKubeApiCluster } from "../../common/k8s-api/kube-api";
|
|
59
58
|
export type { IPodContainer, IPodContainerStatus } from "../../common/k8s-api/endpoints";
|
|
60
59
|
export type { ISecretRef } from "../../common/k8s-api/endpoints";
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import type { CatalogEntityRegistry } from "./catalog";
|
|
22
22
|
import "../common/catalog-entities/kubernetes-cluster";
|
|
23
|
-
export declare function pushCatalogToRenderer(catalog: CatalogEntityRegistry): import("
|
|
23
|
+
export declare function pushCatalogToRenderer(catalog: CatalogEntityRegistry): import("mobx").IReactionDisposer;
|
|
@@ -18,6 +18,7 @@
|
|
|
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 * from "./registries";
|
|
21
22
|
export * from "./metrics-providers";
|
|
22
23
|
export * from "./ipc";
|
|
23
24
|
export * from "./cluster-metadata-detectors";
|
|
@@ -18,6 +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
|
-
|
|
22
|
-
import type { IComputedValue } from "mobx";
|
|
23
|
-
export declare function initIpcMainHandlers(electronMenuItems: IComputedValue<MenuRegistration[]>): void;
|
|
21
|
+
export declare function initIpcMainHandlers(): void;
|
|
@@ -18,13 +18,9 @@
|
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
* This can be sent from renderer to main to initialize a broadcast of ITEMS
|
|
28
|
-
*/
|
|
29
|
-
INIT = "catalog:init"
|
|
30
|
-
}
|
|
21
|
+
import { BrowserWindow } from "electron";
|
|
22
|
+
import type { WindowManager } from "./window-manager";
|
|
23
|
+
export declare type MenuTopId = "mac" | "file" | "edit" | "view" | "help";
|
|
24
|
+
export declare function initMenu(windowManager: WindowManager): import("mobx").IReactionDisposer;
|
|
25
|
+
export declare function showAbout(browserWindow: BrowserWindow): void;
|
|
26
|
+
export declare function buildMenu(windowManager: WindowManager): void;
|
|
@@ -18,23 +18,18 @@
|
|
|
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 * as proto from "
|
|
21
|
+
import * as proto from "../../common/protocol-handler";
|
|
22
22
|
import URLParse from "url-parse";
|
|
23
|
-
import type { LensExtension } from "
|
|
24
|
-
import { RouteAttempt } from "
|
|
25
|
-
import type { ExtensionLoader } from "../../../extensions/extension-loader";
|
|
23
|
+
import type { LensExtension } from "../../extensions/lens-extension";
|
|
24
|
+
import { RouteAttempt } from "../../common/protocol-handler";
|
|
26
25
|
export interface FallbackHandler {
|
|
27
26
|
(name: string): Promise<boolean>;
|
|
28
27
|
}
|
|
29
|
-
interface Dependencies {
|
|
30
|
-
extensionLoader: ExtensionLoader;
|
|
31
|
-
}
|
|
32
28
|
export declare class LensProtocolRouterMain extends proto.LensProtocolRouter {
|
|
33
|
-
protected dependencies: Dependencies;
|
|
34
29
|
private missingExtensionHandlers;
|
|
35
30
|
rendererLoaded: boolean;
|
|
36
|
-
protected disposers: import("
|
|
37
|
-
constructor(
|
|
31
|
+
protected disposers: import("../../common/utils").ExtendableDisposer;
|
|
32
|
+
constructor();
|
|
38
33
|
cleanup(): void;
|
|
39
34
|
/**
|
|
40
35
|
* Find the most specific registered handler, if it exists, and invoke it.
|
|
@@ -44,9 +39,9 @@ export declare class LensProtocolRouterMain extends proto.LensProtocolRouter {
|
|
|
44
39
|
*/
|
|
45
40
|
route(rawUrl: string): Promise<void>;
|
|
46
41
|
protected _executeMissingExtensionHandlers(extensionName: string): Promise<boolean>;
|
|
47
|
-
protected _findMatchingExtensionByName(url: URLParse
|
|
48
|
-
protected _routeToInternal(url: URLParse
|
|
49
|
-
protected _routeToExtension(url: URLParse
|
|
42
|
+
protected _findMatchingExtensionByName(url: URLParse): Promise<LensExtension | string>;
|
|
43
|
+
protected _routeToInternal(url: URLParse): RouteAttempt;
|
|
44
|
+
protected _routeToExtension(url: URLParse): Promise<RouteAttempt>;
|
|
50
45
|
/**
|
|
51
46
|
* Add a function to the list which will be sequentially called if an extension
|
|
52
47
|
* is not found while routing to the extensions
|
|
@@ -54,4 +49,3 @@ export declare class LensProtocolRouterMain extends proto.LensProtocolRouter {
|
|
|
54
49
|
*/
|
|
55
50
|
addMissingExtensionHandler(handler: FallbackHandler): void;
|
|
56
51
|
}
|
|
57
|
-
export {};
|
|
@@ -18,5 +18,8 @@
|
|
|
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
|
-
|
|
21
|
+
import { Tray } from "electron";
|
|
22
|
+
import type { WindowManager } from "./window-manager";
|
|
23
|
+
export declare let tray: Tray;
|
|
24
|
+
export declare function getTrayIcon(): string;
|
|
25
|
+
export declare function initTray(windowManager: WindowManager): () => void;
|
|
@@ -23,9 +23,6 @@ import { BrowserWindow } from "electron";
|
|
|
23
23
|
import windowStateKeeper from "electron-window-state";
|
|
24
24
|
import { Singleton } from "../common/utils";
|
|
25
25
|
import { ClusterFrameInfo } from "../common/cluster-frames";
|
|
26
|
-
export declare const enum IpcMainWindowEvents {
|
|
27
|
-
OPEN_CONTEXT_MENU = "window:open-context-menu"
|
|
28
|
-
}
|
|
29
26
|
export interface SendToViewArgs {
|
|
30
27
|
channel: string;
|
|
31
28
|
frameInfo?: ClusterFrameInfo;
|
|
@@ -25,10 +25,6 @@ import { Disposer } from "../utils";
|
|
|
25
25
|
import { CatalogRunEvent } from "../../common/catalog/catalog-run-event";
|
|
26
26
|
export declare type EntityFilter = (entity: CatalogEntity) => any;
|
|
27
27
|
export declare type CatalogEntityOnBeforeRun = (event: CatalogRunEvent) => void | Promise<void>;
|
|
28
|
-
export declare const catalogEntityRunContext: {
|
|
29
|
-
navigate: (url: string) => void;
|
|
30
|
-
setCommandPaletteContext: (entity?: CatalogEntity) => void;
|
|
31
|
-
};
|
|
32
28
|
export declare class CatalogEntityRegistry {
|
|
33
29
|
private categoryRegistry;
|
|
34
30
|
protected activeEntityId: string | undefined;
|
|
@@ -18,6 +18,10 @@
|
|
|
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
|
-
|
|
21
|
+
import type { CatalogEntity } from "../../common/catalog";
|
|
22
22
|
export { CatalogCategory, CatalogEntity } from "../../common/catalog";
|
|
23
23
|
export type { CatalogEntityData, CatalogEntityKindData, CatalogEntityActionContext, CatalogEntityAddMenuContext, CatalogEntityAddMenu, CatalogEntityContextMenu, CatalogEntityContextMenuContext, } from "../../common/catalog";
|
|
24
|
+
export declare const catalogEntityRunContext: {
|
|
25
|
+
navigate: (url: string) => void;
|
|
26
|
+
setCommandPaletteContext: (entity?: CatalogEntity) => void;
|
|
27
|
+
};
|
|
@@ -69,6 +69,8 @@ export declare class TerminalApi extends WebSocketApi<TerminalEvents> {
|
|
|
69
69
|
isReady: boolean;
|
|
70
70
|
constructor(query: TerminalApiQuery);
|
|
71
71
|
connect(): Promise<void>;
|
|
72
|
+
destroy(): void;
|
|
73
|
+
reconnect(): void;
|
|
72
74
|
sendMessage(message: TerminalMessage): void;
|
|
73
75
|
sendTerminalSize(cols: number, rows: number): void;
|
|
74
76
|
protected _onMessage({ data, ...evt }: MessageEvent<ArrayBuffer>): void;
|
|
@@ -26,13 +26,10 @@ import * as ReactRouter from "react-router";
|
|
|
26
26
|
import * as ReactRouterDom from "react-router-dom";
|
|
27
27
|
import * as LensExtensionsCommonApi from "../extensions/common-api";
|
|
28
28
|
import * as LensExtensionsRendererApi from "../extensions/renderer-api";
|
|
29
|
-
import type { DependencyInjectionContainer } from "@ogre-tools/injectable";
|
|
30
|
-
import type { ExtensionLoader } from "../extensions/extension-loader";
|
|
31
|
-
import type { LensProtocolRouterRenderer } from "./protocol-handler";
|
|
32
29
|
declare type AppComponent = React.ComponentType & {
|
|
33
|
-
init(rootElem: HTMLElement
|
|
30
|
+
init(rootElem: HTMLElement): Promise<void>;
|
|
34
31
|
};
|
|
35
|
-
export declare function bootstrap(comp: () => Promise<AppComponent
|
|
32
|
+
export declare function bootstrap(comp: () => Promise<AppComponent>): Promise<void>;
|
|
36
33
|
/**
|
|
37
34
|
* Exports for virtual package "@k8slens/extensions" for renderer-process.
|
|
38
35
|
* All exporting names available in global runtime scope:
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
import type { ExtensionLoader } from "../extensions/extension-loader";
|
|
23
22
|
import { ClusterPageMenuRegistration } from "../extensions/registries";
|
|
24
23
|
import { TabLayoutRoute } from "./components/layout/tab-layout";
|
|
25
24
|
import type { ClusterId } from "../common/cluster-types";
|
|
@@ -28,7 +27,7 @@ export declare class ClusterFrame extends React.Component {
|
|
|
28
27
|
static readonly logPrefix = "[CLUSTER-FRAME]:";
|
|
29
28
|
static displayName: string;
|
|
30
29
|
constructor(props: {});
|
|
31
|
-
static init(rootElem: HTMLElement
|
|
30
|
+
static init(rootElem: HTMLElement): Promise<void>;
|
|
32
31
|
componentDidMount(): void;
|
|
33
32
|
startUrl: string;
|
|
34
33
|
getTabLayoutRoutes(menuItem: ClusterPageMenuRegistration): TabLayoutRoute[];
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { Component } from "react";
|
|
22
22
|
import type { CatalogCategory, CatalogEntity } from "../../../common/catalog";
|
|
23
|
+
import type { CatalogEntityItem } from "./catalog-entity-item";
|
|
23
24
|
interface Props<T extends CatalogEntity> {
|
|
24
|
-
|
|
25
|
+
item: CatalogEntityItem<T> | null | undefined;
|
|
25
26
|
hideDetails(): void;
|
|
26
|
-
onRun: () => void;
|
|
27
27
|
}
|
|
28
28
|
export declare class CatalogEntityDetails<T extends CatalogEntity> extends Component<Props<T>> {
|
|
29
29
|
categoryIcon(category: CatalogCategory): JSX.Element;
|
|
30
|
-
renderContent(
|
|
30
|
+
renderContent(item: CatalogEntityItem<T>): JSX.Element;
|
|
31
31
|
render(): JSX.Element;
|
|
32
32
|
}
|
|
33
33
|
export {};
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
import React from "react";
|
|
22
22
|
import { MenuActionsProps } from "../menu/menu-actions";
|
|
23
23
|
import type { CatalogEntity, CatalogEntityContextMenu } from "../../api/catalog-entity";
|
|
24
|
+
import type { CatalogEntityItem } from "./catalog-entity-item";
|
|
24
25
|
export interface CatalogEntityDrawerMenuProps<T extends CatalogEntity> extends MenuActionsProps {
|
|
25
|
-
|
|
26
|
+
item: CatalogEntityItem<T> | null | undefined;
|
|
26
27
|
}
|
|
27
28
|
export declare class CatalogEntityDrawerMenu<T extends CatalogEntity> extends React.Component<CatalogEntityDrawerMenuProps<T>> {
|
|
28
29
|
private contextMenu;
|
|
@@ -22,14 +22,14 @@ import { CatalogEntityRegistry } from "../../api/catalog-entity-registry";
|
|
|
22
22
|
import type { CatalogEntity } from "../../api/catalog-entity";
|
|
23
23
|
import { ItemStore } from "../../../common/item.store";
|
|
24
24
|
import { CatalogCategory } from "../../../common/catalog";
|
|
25
|
-
|
|
25
|
+
import { CatalogEntityItem } from "./catalog-entity-item";
|
|
26
|
+
export declare class CatalogEntityStore extends ItemStore<CatalogEntityItem<CatalogEntity>> {
|
|
26
27
|
private registry;
|
|
27
28
|
constructor(registry?: CatalogEntityRegistry);
|
|
28
29
|
activeCategory?: CatalogCategory;
|
|
29
30
|
selectedItemId?: string;
|
|
30
|
-
get entities(): CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec
|
|
31
|
-
get selectedItem(): CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec
|
|
31
|
+
get entities(): CatalogEntityItem<CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>>[];
|
|
32
|
+
get selectedItem(): CatalogEntityItem<CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>>;
|
|
32
33
|
watch(): import("../../../common/utils").ExtendableDisposer;
|
|
33
34
|
loadAll(): Promise<any>;
|
|
34
|
-
onRun(entity: CatalogEntity): void;
|
|
35
35
|
}
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
22
|
import { CatalogEntityStore } from "./catalog-entity.store";
|
|
23
|
+
import type { CatalogEntityItem } from "./catalog-entity-item";
|
|
23
24
|
import type { CatalogEntityContextMenu } from "../../api/catalog-entity";
|
|
24
25
|
import { CatalogEntity } from "../../../common/catalog";
|
|
25
26
|
import type { RouteComponentProps } from "react-router";
|
|
@@ -38,15 +39,15 @@ export declare class Catalog extends React.Component<Props> {
|
|
|
38
39
|
};
|
|
39
40
|
get routeActiveTab(): string;
|
|
40
41
|
componentDidMount(): Promise<void>;
|
|
41
|
-
addToHotbar(
|
|
42
|
-
removeFromHotbar(
|
|
43
|
-
onDetails: (
|
|
42
|
+
addToHotbar(item: CatalogEntityItem<CatalogEntity>): void;
|
|
43
|
+
removeFromHotbar(item: CatalogEntityItem<CatalogEntity>): void;
|
|
44
|
+
onDetails: (item: CatalogEntityItem<CatalogEntity>) => void;
|
|
44
45
|
onMenuItemClick(menuItem: CatalogEntityContextMenu): void;
|
|
45
46
|
get categories(): import("../../api/catalog-entity").CatalogCategory[];
|
|
46
47
|
onTabChange: (tabId: string | null) => void;
|
|
47
48
|
renderNavigation(): JSX.Element;
|
|
48
|
-
renderItemMenu: (
|
|
49
|
-
renderName(
|
|
49
|
+
renderItemMenu: (item: CatalogEntityItem<CatalogEntity>) => JSX.Element;
|
|
50
|
+
renderName(item: CatalogEntityItem<CatalogEntity>): JSX.Element;
|
|
50
51
|
renderList(): JSX.Element;
|
|
51
52
|
render(): JSX.Element;
|
|
52
53
|
}
|
|
@@ -20,4 +20,18 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import "./extensions.scss";
|
|
22
22
|
import React from "react";
|
|
23
|
-
|
|
23
|
+
interface ExtensionInfo {
|
|
24
|
+
name: string;
|
|
25
|
+
version?: string;
|
|
26
|
+
requireConfirmation?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function attemptInstallByInfo({ name, version, requireConfirmation }: ExtensionInfo): Promise<void>;
|
|
29
|
+
interface Props {
|
|
30
|
+
}
|
|
31
|
+
export declare class Extensions extends React.Component<Props> {
|
|
32
|
+
installPath: string;
|
|
33
|
+
constructor(props: Props);
|
|
34
|
+
componentDidMount(): void;
|
|
35
|
+
render(): JSX.Element;
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -32,10 +32,9 @@ 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;
|
|
36
35
|
renderCpuUsage(node: Node): JSX.Element;
|
|
37
36
|
renderMemoryUsage(node: Node): JSX.Element;
|
|
38
|
-
renderDiskUsage(node: Node):
|
|
37
|
+
renderDiskUsage(node: Node): any;
|
|
39
38
|
renderConditions(node: Node): JSX.Element[];
|
|
40
39
|
render(): JSX.Element;
|
|
41
40
|
}
|
|
@@ -20,9 +20,11 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import "./preferences.scss";
|
|
22
22
|
import React from "react";
|
|
23
|
+
import { RegisteredAppPreference } from "../../../extensions/registries/app-preference-registry";
|
|
23
24
|
export declare class Preferences extends React.Component {
|
|
24
25
|
historyLength: number | undefined;
|
|
25
26
|
constructor(props: {});
|
|
26
27
|
renderNavigation(): JSX.Element;
|
|
27
28
|
render(): JSX.Element;
|
|
28
29
|
}
|
|
30
|
+
export declare function ExtensionSettings({ title, id, components: { Hint, Input } }: RegisteredAppPreference): JSX.Element;
|