@k8slens/extensions 5.3.1-git.2d279a6b99.0 → 5.3.1-git.2ee47a442a.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/catalog/catalog-entity.d.ts +51 -0
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -2
- package/dist/src/common/catalog-entities/web-link.d.ts +0 -2
- package/dist/src/common/hotbar-store.d.ts +16 -11
- package/dist/src/common/hotbar-store.injectable.d.ts +4 -0
- package/dist/src/common/hotbar-types.d.ts +5 -2
- package/dist/src/common/ipc/index.d.ts +1 -0
- package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +29 -28
- package/dist/src/common/vars.d.ts +1 -0
- package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-function-for-extension-api.d.ts +25 -0
- package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api.d.ts +24 -0
- package/dist/src/extensions/as-legacy-globals-for-extension-api/as-legacy-global-singleton-for-extension-api.d.ts +28 -0
- package/dist/src/{main/tray.d.ts → extensions/as-legacy-globals-for-extension-api/legacy-global-di-for-extension-api.d.ts} +3 -5
- package/dist/src/extensions/extension-api.js +187 -234
- package/dist/src/extensions/extension-loader/extension-loader.injectable.d.ts +2 -22
- package/dist/src/extensions/extensions.injectable.d.ts +2 -27
- package/dist/src/extensions/lens-main-extension.d.ts +2 -0
- package/dist/src/extensions/lens-renderer-extension.d.ts +8 -4
- package/dist/src/extensions/main-extensions.injectable.d.ts +5 -0
- package/dist/src/extensions/registries/base-registry.d.ts +1 -1
- package/dist/src/extensions/registries/entity-setting-registry.d.ts +1 -1
- package/dist/src/extensions/registries/index.d.ts +0 -4
- package/dist/src/extensions/renderer-api/components.d.ts +1 -1
- package/dist/src/extensions/renderer-extensions.injectable.d.ts +5 -0
- package/dist/src/main/menu/electron-menu-items.injectable.d.ts +2 -27
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.d.ts +2 -1
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.injectable.d.ts +2 -23
- package/dist/src/main/routes/port-forward-route.d.ts +0 -1
- package/dist/src/main/tray/tray-menu-items.injectable.d.ts +3 -0
- package/dist/src/main/tray/tray-menu-items.test.d.ts +1 -0
- package/dist/src/main/tray/tray.d.ts +27 -0
- package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
- package/dist/src/renderer/api/catalog-entity-registry.d.ts +4 -0
- package/dist/src/renderer/api/catalog-entity.d.ts +1 -5
- package/dist/src/{main/catalog-sources → renderer/api}/helpers/general-active-sync.d.ts +0 -0
- 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 +1 -2
- package/dist/src/renderer/components/+catalog/catalog-entity.store.d.ts +4 -4
- package/dist/src/renderer/components/+catalog/catalog.d.ts +5 -6
- package/dist/src/renderer/components/{command-palette/command-overlay.d.ts → +catalog/helpers.d.ts} +5 -7
- package/dist/src/renderer/components/+custom-resources/custom-resources.injectable.d.ts +23 -0
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/attempt-install/attempt-install.injectable.d.ts +2 -25
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/attempt-install/unpack-extension/unpack-extension.injectable.d.ts +2 -25
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/attempt-install-by-info/attempt-install-by-info.injectable.d.ts +2 -23
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/attempt-installs/attempt-installs.injectable.d.ts +2 -23
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.d.ts +3 -2
- package/dist/src/renderer/components/+extensions/confirm-uninstall-extension/confirm-uninstall-extension.injectable.d.ts +2 -24
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/disable-extension/disable-extension.injectable.d.ts +2 -24
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/enable-extension/enable-extension.injectable.d.ts +2 -24
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/get-base-registry-url/get-base-registry-url.injectable.d.ts +2 -3
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/install-from-input/install-from-input.injectable.d.ts +2 -23
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/install-from-select-file-dialog/install-from-select-file-dialog.injectable.d.ts +2 -23
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/install-on-drop/install-on-drop.injectable.d.ts +2 -23
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.d.ts +2 -1
- package/dist/src/renderer/components/+extensions/uninstall-extension/uninstall-extension.injectable.d.ts +2 -24
- package/dist/src/renderer/components/+extensions/user-extensions/user-extensions.injectable.d.ts +2 -27
- package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +2 -0
- package/dist/src/renderer/components/+network-services/service-port-component.d.ts +1 -0
- package/dist/src/renderer/components/+welcome/welcome-banner-items/welcome-banner-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/get-welcome-menu-items.d.ts +27 -0
- package/dist/src/renderer/components/+welcome/welcome-menu-items/welcome-menu-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/+welcome/welcome.d.ts +1 -3
- package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +1 -0
- package/dist/src/renderer/components/activate-entity-command/activate-entity-command.d.ts +1 -9
- package/dist/src/renderer/components/catalog-entities/weblink-add-command.d.ts +1 -11
- package/dist/src/renderer/components/checkbox/checkbox.d.ts +0 -1
- package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +2 -1
- package/dist/src/renderer/components/command-palette/command-container.d.ts +1 -7
- package/dist/src/renderer/components/command-palette/command-dialog.d.ts +1 -13
- package/dist/src/renderer/components/command-palette/command-overlay.injectable.d.ts +31 -0
- package/dist/src/renderer/components/command-palette/index.d.ts +1 -1
- package/dist/src/renderer/components/command-palette/registered-commands/internal-commands.injectable.d.ts +25 -0
- package/dist/src/renderer/components/command-palette/registered-commands/registered-commands.injectable.d.ts +25 -0
- package/dist/src/renderer/components/dock/terminal.d.ts +1 -1
- package/dist/src/renderer/components/hotbar/hotbar-add-command.d.ts +1 -6
- package/dist/src/renderer/components/hotbar/hotbar-menu.d.ts +1 -1
- package/dist/src/renderer/components/hotbar/hotbar-remove-command.d.ts +1 -9
- package/dist/src/renderer/components/hotbar/hotbar-rename-command.d.ts +1 -14
- package/dist/src/renderer/components/hotbar/hotbar-selector.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-switch-command.d.ts +1 -12
- package/dist/src/renderer/components/input/input.d.ts +1 -0
- package/dist/src/{extensions/registries/welcome-menu-registry.d.ts → renderer/components/input/validators/unique-hotbar-name.injectable.d.ts} +4 -8
- package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts +2 -23
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts +2 -6
- package/dist/src/renderer/components/kube-object-menu/dependencies/cluster.injectable.d.ts +2 -3
- package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts +2 -2
- package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +2 -2
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/get-kube-object-menu-items.d.ts +2 -5
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-items.injectable.d.ts +8 -23
- package/dist/src/renderer/components/kube-object-menu/dependencies/kube-object-menu-items/kube-object-menu-registry.injectable.d.ts +2 -2
- package/dist/src/renderer/components/layout/{topbar.d.ts → close-button.d.ts} +3 -3
- package/dist/src/renderer/components/layout/top-bar/top-bar-items/top-bar-items.injectable.d.ts +3 -0
- package/dist/src/renderer/components/layout/{__tests__/topbar-win-linux.test.d.ts → top-bar/top-bar-win-linux.test.d.ts} +0 -0
- package/dist/src/renderer/components/layout/top-bar/top-bar.d.ts +22 -0
- package/dist/src/renderer/components/layout/{__tests__/topbar.test.d.ts → top-bar/top-bar.test.d.ts} +0 -0
- 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/{+404/index.d.ts → switch/__tests__/switch.test.d.ts} +1 -1
- package/dist/src/renderer/components/switch/form-switcher.d.ts +3 -0
- package/dist/src/renderer/components/switch/index.d.ts +1 -0
- package/dist/src/{extensions/registries/topbar-registry.d.ts → renderer/components/switch/switch.d.ts} +4 -9
- package/dist/src/renderer/components/switch/switcher.d.ts +4 -1
- package/dist/src/renderer/{components/getDi.d.ts → getDi.d.ts} +1 -1
- package/dist/src/renderer/{components/+404/not-found.d.ts → getDiForUnitTesting.d.ts} +2 -4
- package/dist/src/renderer/initializers/catalog.d.ts +6 -1
- package/dist/src/renderer/initializers/index.d.ts +0 -2
- package/dist/src/renderer/navigation/helpers.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -4
- package/dist/src/renderer/port-forward/port-forward-notify.d.ts +1 -0
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +56 -6
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.d.ts +2 -1
- package/dist/src/renderer/protocol-handler/bind-protocol-add-route-handlers/bind-protocol-add-route-handlers.injectable.d.ts +2 -23
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts +2 -1
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.injectable.d.ts +2 -23
- package/dist/src/renderer/theme.store.d.ts +0 -1
- package/dist/src/{extensions/registries/welcome-banner-registry.d.ts → renderer/window/event-listener.injectable.d.ts} +5 -18
- package/package.json +1 -1
- package/dist/src/extensions/registries/command-registry.d.ts +0 -36
- package/dist/src/renderer/components/getDiForUnitTesting.d.ts +0 -22
- package/dist/src/renderer/components/hotbar/hotbar-display-label.d.ts +0 -22
- package/dist/src/renderer/initializers/command-registry.d.ts +0 -21
- package/dist/src/renderer/initializers/welcome-menu-registry.d.ts +0 -21
|
@@ -19,17 +19,4 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
export declare
|
|
23
|
-
hotbarId: string;
|
|
24
|
-
hotbarName: string;
|
|
25
|
-
constructor(props: {});
|
|
26
|
-
get options(): {
|
|
27
|
-
value: string;
|
|
28
|
-
label: string;
|
|
29
|
-
}[];
|
|
30
|
-
onSelect: (id: string) => void;
|
|
31
|
-
onSubmit: (name: string) => void;
|
|
32
|
-
renderHotbarList(): JSX.Element;
|
|
33
|
-
renderNameInput(): JSX.Element;
|
|
34
|
-
render(): JSX.Element;
|
|
35
|
-
}
|
|
22
|
+
export declare const HotbarRenameCommand: React.FC<{}>;
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import "./hotbar-selector.scss";
|
|
22
|
+
import React from "react";
|
|
22
23
|
import type { Hotbar } from "../../../common/hotbar-types";
|
|
23
|
-
interface
|
|
24
|
+
export interface HotbarSelectorProps {
|
|
24
25
|
hotbar: Hotbar;
|
|
25
26
|
}
|
|
26
|
-
export declare const HotbarSelector:
|
|
27
|
-
export {};
|
|
27
|
+
export declare const HotbarSelector: React.FC<HotbarSelectorProps>;
|
|
@@ -19,15 +19,4 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import React from "react";
|
|
22
|
-
export declare
|
|
23
|
-
private static addActionId;
|
|
24
|
-
private static removeActionId;
|
|
25
|
-
private static renameActionId;
|
|
26
|
-
constructor(props: {});
|
|
27
|
-
get options(): {
|
|
28
|
-
value: string;
|
|
29
|
-
label: string;
|
|
30
|
-
}[];
|
|
31
|
-
onChange(idOrAction: string): void;
|
|
32
|
-
render(): JSX.Element;
|
|
33
|
-
}
|
|
22
|
+
export declare const HotbarSwitchCommand: React.FC<{}>;
|
|
@@ -18,11 +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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
click: () => void | Promise<void>;
|
|
26
|
-
}
|
|
27
|
-
export declare class WelcomeMenuRegistry extends BaseRegistry<WelcomeMenuRegistration> {
|
|
28
|
-
}
|
|
21
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
import type { InputValidator } from "../input_validators";
|
|
23
|
+
declare const uniqueHotbarNameInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<InputValidator, unknown>, InputValidator, unknown>;
|
|
24
|
+
export default uniqueHotbarNameInjectable;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/api-manager.injectable.d.ts
CHANGED
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 { ApiManager } from "../../../../common/k8s-api/api-manager";
|
|
22
|
-
import type { Injectable } from "@ogre-tools/injectable";
|
|
23
|
-
declare const apiManagerInjectable: Injectable<ApiManager>;
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
declare const apiManagerInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("../../../../common/k8s-api/api-manager").ApiManager, unknown>, import("../../../../common/k8s-api/api-manager").ApiManager, unknown>;
|
|
24
3
|
export default apiManagerInjectable;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/cluster-name.injectable.d.ts
CHANGED
|
@@ -18,10 +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
|
-
|
|
22
|
-
|
|
23
|
-
interface Dependencies {
|
|
24
|
-
cluster: Cluster;
|
|
25
|
-
}
|
|
26
|
-
declare const clusterNameInjectable: Injectable<string | undefined, Dependencies>;
|
|
21
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
declare const clusterNameInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<string, unknown>, string, unknown>;
|
|
27
23
|
export default clusterNameInjectable;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
declare const clusterInjectable: Injectable<Cluster | null>;
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
declare const clusterInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("../../../../main/cluster").Cluster, unknown>, import("../../../../main/cluster").Cluster, unknown>;
|
|
4
3
|
export default clusterInjectable;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/edit-resource-tab.injectable.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
1
2
|
/**
|
|
2
3
|
* Copyright (c) 2021 OpenLens Authors
|
|
3
4
|
*
|
|
@@ -19,6 +20,5 @@
|
|
|
19
20
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
21
|
*/
|
|
21
22
|
import { editResourceTab } from "../../dock/edit-resource.store";
|
|
22
|
-
|
|
23
|
-
declare const editResourceTabInjectable: Injectable<typeof editResourceTab>;
|
|
23
|
+
declare const editResourceTabInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof editResourceTab, unknown>, typeof editResourceTab, unknown>;
|
|
24
24
|
export default editResourceTabInjectable;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
1
2
|
/**
|
|
2
3
|
* Copyright (c) 2021 OpenLens Authors
|
|
3
4
|
*
|
|
@@ -19,6 +20,5 @@
|
|
|
19
20
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
21
|
*/
|
|
21
22
|
import { hideDetails } from "../../kube-detail-params";
|
|
22
|
-
|
|
23
|
-
export declare const hideDetailsInjectable: Injectable<typeof hideDetails>;
|
|
23
|
+
declare const hideDetailsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof hideDetails, unknown>, typeof hideDetails, unknown>;
|
|
24
24
|
export default hideDetailsInjectable;
|
|
@@ -20,10 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import type { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
|
|
22
22
|
import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
|
|
23
|
-
export
|
|
23
|
+
export declare const getKubeObjectMenuItems: ({ kubeObjectMenuRegistry, kubeObject, }: {
|
|
24
24
|
kubeObjectMenuRegistry: KubeObjectMenuRegistry;
|
|
25
|
-
}
|
|
26
|
-
export interface InstantiationParameter {
|
|
27
25
|
kubeObject: KubeObject;
|
|
28
|
-
}
|
|
29
|
-
export declare const getKubeObjectMenuItems: ({ kubeObjectMenuRegistry }: Dependencies, { kubeObject }: InstantiationParameter) => import("react").ComponentType<any>[];
|
|
26
|
+
}) => import("react").ComponentType<any>[];
|
|
@@ -1,24 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 { InstantiationParameter, Dependencies, getKubeObjectMenuItems } from "./get-kube-object-menu-items";
|
|
23
|
-
declare const kubeObjectMenuItemsInjectable: Injectable<ReturnType<typeof getKubeObjectMenuItems>, Dependencies, InstantiationParameter>;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
3
|
+
import type { KubeObject } from "../../../../../common/k8s-api/kube-object";
|
|
4
|
+
declare const kubeObjectMenuItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("react").ComponentType<any>[], {
|
|
5
|
+
kubeObject: KubeObject;
|
|
6
|
+
}>, import("react").ComponentType<any>[], {
|
|
7
|
+
kubeObject: KubeObject;
|
|
8
|
+
}>;
|
|
24
9
|
export default kubeObjectMenuItemsInjectable;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
1
2
|
/**
|
|
2
3
|
* Copyright (c) 2021 OpenLens Authors
|
|
3
4
|
*
|
|
@@ -19,6 +20,5 @@
|
|
|
19
20
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
21
|
*/
|
|
21
22
|
import { KubeObjectMenuRegistry } from "../../../../../extensions/registries";
|
|
22
|
-
|
|
23
|
-
declare const kubeObjectMenuRegistryInjectable: Injectable<KubeObjectMenuRegistry>;
|
|
23
|
+
declare const kubeObjectMenuRegistryInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<KubeObjectMenuRegistry, unknown>, KubeObjectMenuRegistry, unknown>;
|
|
24
24
|
export default kubeObjectMenuRegistryInjectable;
|
|
@@ -18,8 +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
|
-
import
|
|
22
|
-
interface Props extends
|
|
21
|
+
import { HTMLAttributes } from "react";
|
|
22
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
23
23
|
}
|
|
24
|
-
export declare
|
|
24
|
+
export declare function CloseButton(props: Props): JSX.Element;
|
|
25
25
|
export {};
|
package/dist/src/renderer/components/layout/top-bar/top-bar-items/top-bar-items.injectable.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
declare const topBarItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("../top-bar-registration").TopBarRegistration[]>, unknown>, import("mobx").IComputedValue<import("../top-bar-registration").TopBarRegistration[]>, unknown>;
|
|
3
|
+
export default topBarItemsInjectable;
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
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 React from "react";
|
|
22
|
+
export declare const TopBar: React.FC<{}>;
|
package/dist/src/renderer/components/layout/{__tests__/topbar.test.d.ts → top-bar/top-bar.test.d.ts}
RENAMED
|
File without changes
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
import "./menu-actions.scss";
|
|
22
22
|
import React from "react";
|
|
23
23
|
import { IconProps } from "../icon";
|
|
24
|
-
import { MenuProps } from "
|
|
24
|
+
import { MenuProps } from "./menu";
|
|
25
25
|
export interface MenuActionsProps extends Partial<MenuProps> {
|
|
26
26
|
className?: string;
|
|
27
27
|
toolbar?: boolean;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
/// <reference types="lodash" />
|
|
22
22
|
import React from "react";
|
|
23
23
|
import { editor, Uri } from "monaco-editor";
|
|
24
|
-
import { MonacoTheme } from "./
|
|
24
|
+
import type { MonacoTheme } from "./monaco-themes";
|
|
25
25
|
export declare type MonacoEditorId = string;
|
|
26
26
|
export interface MonacoEditorProps {
|
|
27
27
|
id?: MonacoEditorId;
|
|
@@ -19,4 +19,7 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import { FormControlLabelProps } from "@material-ui/core/FormControlLabel";
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Use <Switch/> instead from "../switch.tsx".
|
|
24
|
+
*/
|
|
22
25
|
export declare function FormSwitch(props: FormControlLabelProps): JSX.Element;
|
|
@@ -18,14 +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
|
-
import
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Item: React.ComponentType;
|
|
25
|
-
}
|
|
26
|
-
export interface TopBarRegistration {
|
|
27
|
-
components: TopBarComponents;
|
|
28
|
-
}
|
|
29
|
-
export declare class TopBarRegistry extends BaseRegistry<TopBarRegistration> {
|
|
21
|
+
import { ChangeEvent, HTMLProps } from "react";
|
|
22
|
+
interface Props extends Omit<HTMLProps<HTMLInputElement>, "onChange"> {
|
|
23
|
+
onChange?: (checked: boolean, event: ChangeEvent<HTMLInputElement>) => void;
|
|
30
24
|
}
|
|
25
|
+
export declare function Switch({ children, disabled, onChange, ...props }: Props): JSX.Element;
|
|
31
26
|
export {};
|
|
@@ -26,5 +26,8 @@ interface Styles extends Partial<Record<SwitchClassKey, string>> {
|
|
|
26
26
|
interface Props extends SwitchProps {
|
|
27
27
|
classes: Styles;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
/**
|
|
30
|
+
* @deprecated Use <Switch/> instead from "../switch.tsx".
|
|
31
|
+
*/
|
|
32
|
+
export declare const Switcher: React.ComponentType<Pick<Props, "name" | "id" | "key" | "value" | "type" | "size" | "resource" | "style" | "dir" | "form" | "slot" | "title" | "color" | "className" | "prefix" | "defaultValue" | "hidden" | "ref" | "disabled" | "onDrag" | "onDoubleClick" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "icon" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "placeholder" | "readOnly" | "required" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "inputProps" | "action" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "thumb" | "focusVisible" | "switchBase">>;
|
|
30
33
|
export {};
|
|
@@ -19,4 +19,4 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
-
export declare
|
|
22
|
+
export declare function getDi(): import("@ogre-tools/injectable").ConfigurableDependencyInjectionContainer;
|
|
@@ -18,7 +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
|
|
23
|
-
render(): JSX.Element;
|
|
24
|
-
}
|
|
21
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
22
|
+
export declare const getDiForUnitTesting: () => import("@ogre-tools/injectable").ConfigurableDependencyInjectionContainer;
|
|
@@ -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 React from "react";
|
|
21
22
|
import "../../common/catalog-entities/kubernetes-cluster";
|
|
22
|
-
|
|
23
|
+
interface Dependencies {
|
|
24
|
+
openCommandDialog: (component: React.ReactElement) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function initCatalog({ openCommandDialog }: Dependencies): void;
|
|
27
|
+
export {};
|
|
@@ -20,13 +20,11 @@
|
|
|
20
20
|
*/
|
|
21
21
|
export * from "./catalog-entity-detail-registry";
|
|
22
22
|
export * from "./catalog";
|
|
23
|
-
export * from "./command-registry";
|
|
24
23
|
export * from "./entity-settings-registry";
|
|
25
24
|
export * from "./ipc";
|
|
26
25
|
export * from "./kube-object-detail-registry";
|
|
27
26
|
export * from "./kube-object-menu-registry";
|
|
28
27
|
export * from "./registries";
|
|
29
|
-
export * from "./welcome-menu-registry";
|
|
30
28
|
export * from "./workloads-overview-detail-registry";
|
|
31
29
|
export * from "./catalog-category-registry";
|
|
32
30
|
export * from "./status-bar-registry";
|
|
@@ -26,4 +26,4 @@ export declare function navigateWithoutHistoryChange(location: Partial<Location>
|
|
|
26
26
|
export declare function createPageParam<V = string>(init: PageParamInit<V>): PageParam<V>;
|
|
27
27
|
export declare function matchRoute<P>(route: string | string[] | RouteProps): import("react-router").match<P>;
|
|
28
28
|
export declare function isActiveRoute(route: string | string[] | RouteProps): boolean;
|
|
29
|
-
export declare function getMatchedClusterId(): string;
|
|
29
|
+
export declare function getMatchedClusterId(): string | undefined;
|
|
@@ -26,6 +26,7 @@ interface Props extends Partial<DialogProps> {
|
|
|
26
26
|
}
|
|
27
27
|
interface PortForwardDialogOpenOptions {
|
|
28
28
|
openInBrowser: boolean;
|
|
29
|
+
onClose: () => void;
|
|
29
30
|
}
|
|
30
31
|
export declare class PortForwardDialog extends Component<Props> {
|
|
31
32
|
currentPort: number;
|
|
@@ -36,7 +37,6 @@ export declare class PortForwardDialog extends Component<Props> {
|
|
|
36
37
|
get portForward(): ForwardedPort;
|
|
37
38
|
close: () => void;
|
|
38
39
|
onOpen: () => Promise<void>;
|
|
39
|
-
onClose: () => void;
|
|
40
40
|
changePort: (value: string) => void;
|
|
41
41
|
startPortForward: () => Promise<void>;
|
|
42
42
|
renderContents(): JSX.Element;
|
|
@@ -19,32 +19,32 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import type { ItemObject } from "../../common/item.store";
|
|
22
|
+
export declare type ForwardedPortStatus = "Active" | "Disabled";
|
|
22
23
|
export interface ForwardedPort {
|
|
23
|
-
clusterId?: string;
|
|
24
24
|
kind: string;
|
|
25
25
|
namespace: string;
|
|
26
26
|
name: string;
|
|
27
27
|
port: number;
|
|
28
28
|
forwardPort: number;
|
|
29
29
|
protocol?: string;
|
|
30
|
+
status?: ForwardedPortStatus;
|
|
30
31
|
}
|
|
31
32
|
export declare class PortForwardItem implements ItemObject {
|
|
32
|
-
clusterId: string;
|
|
33
33
|
kind: string;
|
|
34
34
|
namespace: string;
|
|
35
35
|
name: string;
|
|
36
36
|
port: number;
|
|
37
37
|
forwardPort: number;
|
|
38
38
|
protocol: string;
|
|
39
|
+
status: ForwardedPortStatus;
|
|
39
40
|
constructor(pf: ForwardedPort);
|
|
40
41
|
getName(): string;
|
|
41
42
|
getNs(): string;
|
|
42
|
-
get id(): number;
|
|
43
43
|
getId(): string;
|
|
44
44
|
getKind(): string;
|
|
45
45
|
getPort(): number;
|
|
46
46
|
getForwardPort(): number;
|
|
47
47
|
getProtocol(): string;
|
|
48
|
-
getStatus():
|
|
48
|
+
getStatus(): ForwardedPortStatus;
|
|
49
49
|
getSearchFields(): (string | number)[];
|
|
50
50
|
}
|
|
@@ -27,13 +27,63 @@ export declare class PortForwardStore extends ItemStore<PortForwardItem> {
|
|
|
27
27
|
private init;
|
|
28
28
|
watch(): import("../utils").ExtendableDisposer;
|
|
29
29
|
loadAll(): Promise<any>;
|
|
30
|
-
reset(): void;
|
|
31
30
|
removeSelectedItems(): Promise<void[]>;
|
|
32
31
|
getById(id: string): PortForwardItem;
|
|
33
32
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
/**
|
|
34
|
+
* start an existing port-forward
|
|
35
|
+
* @param portForward the port-forward to start. If the forwardPort field is 0 then an arbitrary port will be
|
|
36
|
+
* used
|
|
37
|
+
*
|
|
38
|
+
* @returns the port-forward with updated status ("Active" if successfully started, "Disabled" otherwise) and
|
|
39
|
+
* forwardPort
|
|
40
|
+
*
|
|
41
|
+
* @throws if the port-forward does not already exist in the store
|
|
42
|
+
*/
|
|
43
|
+
export declare const startPortForward: (portForward: ForwardedPort) => Promise<ForwardedPort>;
|
|
44
|
+
/**
|
|
45
|
+
* add a port-forward to the store and optionally start it
|
|
46
|
+
* @param portForward the port-forward to add. If the port-forward already exists in the store it will be
|
|
47
|
+
* returned with its current state. If the forwardPort field is 0 then an arbitrary port will be
|
|
48
|
+
* used. If the status field is "Active" or not present then an attempt is made to start the port-forward.
|
|
49
|
+
*
|
|
50
|
+
* @returns the port-forward with updated status ("Active" if successfully started, "Disabled" otherwise) and
|
|
51
|
+
* forwardPort
|
|
52
|
+
*/
|
|
53
|
+
export declare const addPortForward: (portForward: ForwardedPort) => Promise<ForwardedPort>;
|
|
54
|
+
/**
|
|
55
|
+
* get a port-forward from the store, with up-to-date status
|
|
56
|
+
* @param portForward the port-forward to get.
|
|
57
|
+
*
|
|
58
|
+
* @returns the port-forward with updated status ("Active" if running, "Disabled" if not) and
|
|
59
|
+
* forwardPort used.
|
|
60
|
+
*
|
|
61
|
+
* @throws if the port-forward does not exist in the store
|
|
62
|
+
*/
|
|
63
|
+
export declare function getPortForward(portForward: ForwardedPort): Promise<ForwardedPort>;
|
|
64
|
+
/**
|
|
65
|
+
* modifies a port-forward in the store, including the forwardPort and protocol
|
|
66
|
+
* @param portForward the port-forward to modify.
|
|
67
|
+
*
|
|
68
|
+
* @returns the port-forward after being modified.
|
|
69
|
+
*/
|
|
70
|
+
export declare const modifyPortForward: (portForward: ForwardedPort, desiredPort: number) => Promise<ForwardedPort>;
|
|
71
|
+
/**
|
|
72
|
+
* stop an existing port-forward. Its status is set to "Disabled" after successfully stopped.
|
|
73
|
+
* @param portForward the port-forward to stop.
|
|
74
|
+
*
|
|
75
|
+
* @throws if the port-forward could not be stopped. Its status is unchanged
|
|
76
|
+
*/
|
|
77
|
+
export declare const stopPortForward: (portForward: ForwardedPort) => Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* remove and stop an existing port-forward.
|
|
80
|
+
* @param portForward the port-forward to remove.
|
|
81
|
+
*/
|
|
82
|
+
export declare const removePortForward: (portForward: ForwardedPort) => Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* gets the list of port-forwards in the store
|
|
85
|
+
*
|
|
86
|
+
* @returns the port-forwards
|
|
87
|
+
*/
|
|
88
|
+
export declare function getPortForwards(): ForwardedPort[];
|
|
39
89
|
export declare const portForwardStore: PortForwardStore;
|
|
@@ -20,8 +20,9 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import type { LensProtocolRouterRenderer } from "../lens-protocol-router-renderer/lens-protocol-router-renderer";
|
|
22
22
|
import type { ExtensionInfo } from "../../components/+extensions/attempt-install-by-info/attempt-install-by-info";
|
|
23
|
-
|
|
23
|
+
interface Dependencies {
|
|
24
24
|
attemptInstallByInfo: (extensionInfo: ExtensionInfo) => Promise<void>;
|
|
25
25
|
lensProtocolRouterRenderer: LensProtocolRouterRenderer;
|
|
26
26
|
}
|
|
27
27
|
export declare const bindProtocolAddRouteHandlers: ({ attemptInstallByInfo, lensProtocolRouterRenderer }: Dependencies) => () => void;
|
|
28
|
+
export {};
|
|
@@ -1,24 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 "./bind-protocol-add-route-handlers";
|
|
23
|
-
declare const bindProtocolAddRouteHandlersInjectable: Injectable<() => void, Dependencies>;
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
declare const bindProtocolAddRouteHandlersInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<() => void, unknown>, () => void, unknown>;
|
|
24
3
|
export default bindProtocolAddRouteHandlersInjectable;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import * as proto from "../../../common/protocol-handler";
|
|
22
22
|
import type { ExtensionLoader } from "../../../extensions/extension-loader";
|
|
23
|
-
|
|
23
|
+
interface Dependencies {
|
|
24
24
|
extensionLoader: ExtensionLoader;
|
|
25
25
|
}
|
|
26
26
|
export declare class LensProtocolRouterRenderer extends proto.LensProtocolRouter {
|
|
@@ -31,3 +31,4 @@ export declare class LensProtocolRouterRenderer extends proto.LensProtocolRouter
|
|
|
31
31
|
*/
|
|
32
32
|
init(): void;
|
|
33
33
|
}
|
|
34
|
+
export {};
|