@k8slens/extensions 5.3.0-git.b7ff8c37cb.0 → 5.3.0-git.bc34045a4f.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/__mocks__/electron.ts +2 -2
- package/dist/src/{renderer/components/+user-management/select-options.d.ts → common/__tests__/base-store.test.d.ts} +1 -7
- package/dist/src/common/__tests__/system-ca.test.d.ts +1 -0
- package/dist/src/common/base-store.d.ts +3 -2
- package/dist/src/common/cluster-store.d.ts +2 -3
- package/dist/src/common/cluster-types.d.ts +7 -1
- package/dist/src/common/hotbar-store.d.ts +1 -0
- package/dist/src/common/k8s-api/endpoints/cluster-role-binding.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/cluster-role.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/cluster.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/configmap.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/cron-job.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/daemon-set.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/deployment.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/endpoint.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/events.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/hpa.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/ingress.api.d.ts +11 -8
- package/dist/src/common/k8s-api/endpoints/job.api.d.ts +1 -2
- package/dist/src/common/k8s-api/endpoints/limit-range.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/namespaces.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/network-policy.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/nodes.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/persistent-volume-claims.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/persistent-volume.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/pod-metrics.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/poddisruptionbudget.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/pods.api.d.ts +29 -33
- package/dist/src/common/k8s-api/endpoints/podsecuritypolicy.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/replica-set.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/resource-quota.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/role-binding.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/role.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/secret.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/selfsubjectrulesreviews.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/service-accounts.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/service.api.d.ts +2 -2
- package/dist/src/common/k8s-api/endpoints/stateful-set.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/storage-class.api.d.ts +1 -1
- package/dist/src/common/k8s-api/index.d.ts +1 -1
- package/dist/src/common/k8s-api/kube-api.d.ts +12 -3
- package/dist/src/common/k8s-api/kube-json-api.d.ts +2 -0
- package/dist/src/common/k8s-api/kube-object.d.ts +9 -1
- package/dist/src/common/k8s-api/kube-object.store.d.ts +25 -7
- package/dist/src/common/k8s-api/kube-watch-api.d.ts +29 -8
- package/dist/src/common/system-ca.d.ts +20 -1
- package/dist/src/common/user-store/preferences-helpers.d.ts +2 -6
- package/dist/src/common/user-store/user-store.d.ts +3 -7
- package/dist/src/common/utils/base64.d.ts +12 -4
- package/dist/src/common/utils/index.d.ts +2 -2
- package/dist/src/common/utils/paths.d.ts +1 -0
- package/dist/src/{main → common/utils}/promise-exec.d.ts +0 -0
- package/dist/src/common/weblink-store.d.ts +1 -0
- package/dist/src/extensions/0.extension-api.js +15 -0
- package/dist/src/extensions/1.extension-api.js +15 -0
- package/dist/src/extensions/10.extension-api.js +15 -0
- package/dist/src/extensions/11.extension-api.js +15 -0
- package/dist/src/extensions/12.extension-api.js +15 -0
- package/dist/src/extensions/13.extension-api.js +15 -0
- package/dist/src/extensions/14.extension-api.js +15 -0
- package/dist/src/extensions/15.extension-api.js +15 -0
- package/dist/src/extensions/16.extension-api.js +15 -0
- package/dist/src/extensions/17.extension-api.js +15 -0
- package/dist/src/extensions/18.extension-api.js +15 -0
- package/dist/src/extensions/19.extension-api.js +15 -0
- package/dist/src/extensions/2.extension-api.js +543 -0
- package/dist/src/extensions/20.extension-api.js +15 -0
- package/dist/src/extensions/21.extension-api.js +15 -0
- package/dist/src/extensions/22.extension-api.js +15 -0
- package/dist/src/extensions/23.extension-api.js +15 -0
- package/dist/src/extensions/24.extension-api.js +15 -0
- package/dist/src/extensions/25.extension-api.js +15 -0
- package/dist/src/extensions/26.extension-api.js +15 -0
- package/dist/src/extensions/27.extension-api.js +15 -0
- package/dist/src/extensions/28.extension-api.js +15 -0
- package/dist/src/extensions/29.extension-api.js +15 -0
- package/dist/src/extensions/3.extension-api.js +423 -0
- package/dist/src/extensions/30.extension-api.js +15 -0
- package/dist/src/extensions/31.extension-api.js +15 -0
- package/dist/src/extensions/32.extension-api.js +15 -0
- package/dist/src/extensions/33.extension-api.js +15 -0
- package/dist/src/extensions/34.extension-api.js +15 -0
- package/dist/src/extensions/35.extension-api.js +15 -0
- package/dist/src/extensions/36.extension-api.js +15 -0
- package/dist/src/extensions/37.extension-api.js +15 -0
- package/dist/src/extensions/38.extension-api.js +15 -0
- package/dist/src/extensions/39.extension-api.js +15 -0
- package/dist/src/extensions/4.extension-api.js +363 -0
- package/dist/src/extensions/40.extension-api.js +15 -0
- package/dist/src/extensions/41.extension-api.js +15 -0
- package/dist/src/extensions/42.extension-api.js +15 -0
- package/dist/src/extensions/43.extension-api.js +15 -0
- package/dist/src/extensions/44.extension-api.js +15 -0
- package/dist/src/extensions/45.extension-api.js +15 -0
- package/dist/src/extensions/46.extension-api.js +15 -0
- package/dist/src/extensions/47.extension-api.js +15 -0
- package/dist/src/extensions/48.extension-api.js +15 -0
- package/dist/src/extensions/49.extension-api.js +15 -0
- package/dist/src/extensions/5.extension-api.js +51 -0
- package/dist/src/extensions/50.extension-api.js +15 -0
- package/dist/src/extensions/51.extension-api.js +15 -0
- package/dist/src/extensions/52.extension-api.js +15 -0
- package/dist/src/extensions/53.extension-api.js +15 -0
- package/dist/src/extensions/54.extension-api.js +15 -0
- package/dist/src/extensions/55.extension-api.js +15 -0
- package/dist/src/extensions/56.extension-api.js +15 -0
- package/dist/src/extensions/57.extension-api.js +15 -0
- package/dist/src/extensions/58.extension-api.js +15 -0
- package/dist/src/extensions/59.extension-api.js +15 -0
- package/dist/src/extensions/6.extension-api.js +27 -0
- package/dist/src/extensions/60.extension-api.js +15 -0
- package/dist/src/extensions/61.extension-api.js +15 -0
- package/dist/src/extensions/62.extension-api.js +15 -0
- package/dist/src/extensions/63.extension-api.js +15 -0
- package/dist/src/extensions/64.extension-api.js +15 -0
- package/dist/src/extensions/65.extension-api.js +15 -0
- package/dist/src/extensions/66.extension-api.js +15 -0
- package/dist/src/extensions/67.extension-api.js +15 -0
- package/dist/src/extensions/68.extension-api.js +15 -0
- package/dist/src/extensions/69.extension-api.js +15 -0
- package/dist/src/extensions/7.extension-api.js +15 -0
- package/dist/src/extensions/70.extension-api.js +15 -0
- package/dist/src/extensions/71.extension-api.js +15 -0
- package/dist/src/extensions/72.extension-api.js +15 -0
- package/dist/src/extensions/73.extension-api.js +15 -0
- package/dist/src/extensions/74.extension-api.js +15 -0
- package/dist/src/extensions/75.extension-api.js +15 -0
- package/dist/src/extensions/76.extension-api.js +15 -0
- package/dist/src/extensions/77.extension-api.js +15 -0
- package/dist/src/extensions/78.extension-api.js +15 -0
- package/dist/src/extensions/79.extension-api.js +15 -0
- package/dist/src/extensions/8.extension-api.js +15 -0
- package/dist/src/extensions/9.extension-api.js +15 -0
- package/dist/src/extensions/common-api/app.d.ts +2 -0
- package/dist/src/extensions/common-api/index.d.ts +1 -1
- package/dist/src/{common/utils/makeCss.d.ts → extensions/common-api/user-preferences.d.ts} +2 -7
- package/dist/src/extensions/extension-api.js +5872 -1680
- package/dist/src/extensions/extension-store.d.ts +1 -0
- package/dist/src/extensions/extensions-store.d.ts +1 -0
- package/dist/src/extensions/main-api/k8s-api.d.ts +1 -1
- package/dist/src/extensions/registries/workloads-overview-detail-registry.d.ts +6 -3
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -1
- package/dist/src/main/catalog/catalog-entity-registry.d.ts +2 -2
- package/dist/src/main/cluster-manager.d.ts +2 -0
- package/dist/src/main/cluster.d.ts +5 -10
- package/dist/src/main/context-handler.d.ts +8 -5
- package/dist/src/main/extension-filesystem.d.ts +1 -0
- package/dist/src/main/index.d.ts +0 -1
- package/dist/src/main/kube-auth-proxy.d.ts +1 -8
- package/dist/src/main/kubectl.d.ts +1 -1
- package/dist/src/main/lens-proxy.d.ts +1 -1
- package/dist/src/main/prometheus/helm.d.ts +1 -1
- package/dist/src/main/prometheus/lens.d.ts +1 -1
- package/dist/src/main/prometheus/operator.d.ts +1 -1
- package/dist/src/main/prometheus/provider-registry.d.ts +2 -1
- package/dist/src/main/prometheus/stacklight.d.ts +1 -1
- package/dist/src/main/proxy-functions/kube-api-request.d.ts +1 -1
- package/dist/src/main/proxy-functions/shell-api-request.d.ts +14 -0
- package/dist/src/main/proxy-functions/types.d.ts +2 -0
- package/dist/src/main/shell-session/node-shell-session.d.ts +4 -4
- package/dist/src/main/shell-session/shell-session.d.ts +95 -8
- package/dist/src/main/utils/shell-env.d.ts +1 -3
- package/dist/src/migrations/user-store/index.d.ts +1 -1
- package/dist/src/preload.d.ts +1 -1
- package/dist/src/renderer/api/terminal-api.d.ts +33 -20
- package/dist/src/renderer/api/websocket-api.d.ts +55 -32
- package/dist/src/renderer/bootstrap.d.ts +1 -1
- package/dist/src/renderer/{components/app.d.ts → cluster-frame.d.ts} +6 -4
- package/dist/src/renderer/components/+add-cluster/add-cluster.d.ts +0 -1
- package/dist/src/renderer/components/+apps-helm-charts/helm-chart-details.d.ts +3 -3
- package/dist/src/renderer/components/+apps-releases/release-menu.d.ts +3 -3
- package/dist/src/renderer/components/+catalog/catalog-add-button.d.ts +7 -1
- package/dist/src/renderer/components/+catalog/catalog.d.ts +0 -1
- package/dist/src/renderer/components/+namespaces/namespace-select-filter.d.ts +3 -0
- package/dist/src/renderer/components/+namespaces/namespace.store.d.ts +55 -2
- package/dist/src/renderer/components/+user-management/+cluster-role-bindings/__tests__/dialog.test.d.ts +21 -0
- package/dist/src/renderer/components/+user-management/+cluster-role-bindings/dialog.d.ts +2 -3
- package/dist/src/renderer/components/+user-management/+role-bindings/__tests__/dialog.test.d.ts +21 -0
- package/dist/src/renderer/components/+user-management/+role-bindings/dialog.d.ts +2 -3
- package/dist/src/renderer/components/+workloads-daemonsets/daemonsets.d.ts +0 -1
- package/dist/src/renderer/components/+workloads-deployments/deployment-scale-dialog.d.ts +1 -0
- package/dist/src/renderer/components/+workloads-overview/overview.d.ts +3 -0
- package/dist/src/renderer/components/+workloads-pods/pod-details-affinities.d.ts +1 -2
- package/dist/src/renderer/components/+workloads-replicasets/replicaset-scale-dialog.d.ts +1 -0
- package/dist/src/renderer/components/+workloads-statefulsets/statefulset-scale-dialog.d.ts +1 -0
- package/dist/src/renderer/components/animate/animate.d.ts +3 -2
- package/dist/src/renderer/components/badge/badge.d.ts +1 -0
- package/dist/src/renderer/components/cluster-manager/cluster-status.d.ts +6 -7
- package/dist/src/renderer/components/cluster-manager/lens-views.d.ts +12 -8
- package/dist/src/renderer/components/cluster-settings/components/__tests__/cluster-local-terminal-settings.test.d.ts +21 -0
- package/dist/src/renderer/components/cluster-settings/components/{cluster-home-dir-setting.d.ts → cluster-local-terminal-settings.d.ts} +1 -12
- package/dist/src/renderer/components/cluster-settings/components/index.d.ts +1 -1
- package/dist/src/renderer/components/dialog/dialog.d.ts +1 -0
- package/dist/src/renderer/components/dock/create-resource.d.ts +2 -2
- package/dist/src/renderer/components/dock/dock.store.d.ts +20 -2
- package/dist/src/renderer/components/dock/edit-resource.d.ts +3 -3
- package/dist/src/renderer/components/dock/editor-panel.d.ts +11 -17
- package/dist/src/renderer/components/dock/install-chart.d.ts +6 -5
- package/dist/src/renderer/components/dock/terminal-window.d.ts +2 -3
- package/dist/src/renderer/components/dock/terminal.d.ts +7 -11
- package/dist/src/renderer/components/dock/upgrade-chart.d.ts +2 -1
- package/dist/src/renderer/components/drawer/drawer.d.ts +1 -0
- package/dist/src/renderer/components/item-object-list/item-list-layout.d.ts +6 -0
- package/dist/src/renderer/components/kube-object-list-layout/kube-object-list-layout.d.ts +4 -0
- package/dist/src/renderer/components/kubeconfig-dialog/kubeconfig-dialog.d.ts +0 -1
- package/dist/src/renderer/components/layout/__tests__/sidebar-cluster.test.d.ts +21 -0
- package/dist/src/renderer/components/layout/sidebar-cluster.d.ts +24 -0
- package/dist/src/renderer/components/layout/sidebar.d.ts +2 -5
- package/dist/src/renderer/components/list/list.d.ts +1 -1
- package/dist/src/renderer/components/menu/menu.d.ts +1 -0
- package/dist/src/renderer/components/monaco-editor/index.d.ts +23 -0
- package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +93 -0
- package/dist/src/renderer/components/monaco-editor/monaco-themes.d.ts +29 -0
- package/dist/src/renderer/components/monaco-editor/monaco-validators.d.ts +9 -0
- package/dist/src/renderer/components/table/table-cell.d.ts +1 -0
- package/dist/src/renderer/initializers/kube-object-detail-registry.d.ts +1 -1
- package/dist/src/renderer/port-forward/index.d.ts +1 -0
- package/dist/src/renderer/port-forward/port-forward-notify.d.ts +21 -0
- package/dist/src/renderer/{lens-app.d.ts → root-frame.d.ts} +4 -2
- package/dist/src/renderer/theme.store.d.ts +4 -15
- package/package.json +1 -1
- package/dist/src/renderer/components/dock/monaco-model-manager.d.ts +0 -42
|
@@ -18,52 +18,75 @@
|
|
|
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
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
import type TypedEventEmitter from "typed-emitter";
|
|
22
|
+
interface WebsocketApiParams {
|
|
23
|
+
/**
|
|
24
|
+
* Flush pending commands on open socket
|
|
25
|
+
*
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
25
28
|
flushOnOpen?: boolean;
|
|
26
|
-
|
|
27
|
-
|
|
29
|
+
/**
|
|
30
|
+
* In case of an error, wait this many seconds before reconnecting.
|
|
31
|
+
*
|
|
32
|
+
* If falsy, don't reconnect
|
|
33
|
+
*
|
|
34
|
+
* @default 10
|
|
35
|
+
*/
|
|
36
|
+
reconnectDelay?: number;
|
|
37
|
+
/**
|
|
38
|
+
* The message for pinging the websocket
|
|
39
|
+
*
|
|
40
|
+
* @default "PING"
|
|
41
|
+
*/
|
|
42
|
+
pingMessage?: string | ArrayBufferLike | Blob | ArrayBufferView;
|
|
43
|
+
/**
|
|
44
|
+
* If set to a number > 0, then the API will ping the socket on that interval.
|
|
45
|
+
*
|
|
46
|
+
* @unit seconds
|
|
47
|
+
*/
|
|
48
|
+
pingInterval?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Whether to show logs in the console
|
|
51
|
+
*
|
|
52
|
+
* @default isDevelopment
|
|
53
|
+
*/
|
|
28
54
|
logging?: boolean;
|
|
29
55
|
}
|
|
30
|
-
interface IMessage {
|
|
31
|
-
id: string;
|
|
32
|
-
data: string;
|
|
33
|
-
}
|
|
34
56
|
export declare enum WebSocketApiState {
|
|
35
|
-
PENDING =
|
|
36
|
-
OPEN =
|
|
37
|
-
CONNECTING =
|
|
38
|
-
RECONNECTING =
|
|
39
|
-
CLOSED =
|
|
57
|
+
PENDING = "pending",
|
|
58
|
+
OPEN = "open",
|
|
59
|
+
CONNECTING = "connecting",
|
|
60
|
+
RECONNECTING = "reconnecting",
|
|
61
|
+
CLOSED = "closed"
|
|
62
|
+
}
|
|
63
|
+
export interface WebSocketEvents {
|
|
64
|
+
open: () => void;
|
|
65
|
+
data: (message: string) => void;
|
|
66
|
+
close: () => void;
|
|
40
67
|
}
|
|
41
|
-
|
|
42
|
-
|
|
68
|
+
declare type Defaulted<Params, DefaultParams extends keyof Params> = Required<Pick<Params, DefaultParams>> & Omit<Params, DefaultParams>;
|
|
69
|
+
declare const WebSocketApi_base: new <T>() => TypedEventEmitter<T>;
|
|
70
|
+
export declare class WebSocketApi<Events extends WebSocketEvents> extends WebSocketApi_base<Events> {
|
|
43
71
|
protected socket: WebSocket;
|
|
44
|
-
protected pendingCommands:
|
|
45
|
-
protected reconnectTimer
|
|
46
|
-
protected pingTimer
|
|
47
|
-
protected
|
|
72
|
+
protected pendingCommands: (string | ArrayBufferLike | Blob | ArrayBufferView)[];
|
|
73
|
+
protected reconnectTimer?: any;
|
|
74
|
+
protected pingTimer?: any;
|
|
75
|
+
protected params: Defaulted<WebsocketApiParams, keyof typeof WebSocketApi["defaultParams"]>;
|
|
48
76
|
readyState: WebSocketApiState;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
onClose: EventEmitter<[]>;
|
|
52
|
-
static defaultParams: Partial<IParams>;
|
|
53
|
-
constructor(params: IParams);
|
|
77
|
+
private static defaultParams;
|
|
78
|
+
constructor(params: WebsocketApiParams);
|
|
54
79
|
get isConnected(): boolean;
|
|
55
80
|
get isOnline(): boolean;
|
|
56
|
-
|
|
57
|
-
connect(url?: string): void;
|
|
81
|
+
connect(url: string): void;
|
|
58
82
|
ping(): void;
|
|
59
83
|
reconnect(): void;
|
|
60
84
|
destroy(): void;
|
|
61
|
-
|
|
62
|
-
send(command: string): void;
|
|
85
|
+
clearAllListeners(): void;
|
|
86
|
+
send(command: string | ArrayBufferLike | Blob | ArrayBufferView): void;
|
|
63
87
|
protected flush(): void;
|
|
64
|
-
protected parseMessage(data: string): string;
|
|
65
88
|
protected _onOpen(evt: Event): void;
|
|
66
|
-
protected _onMessage(
|
|
89
|
+
protected _onMessage({ data }: MessageEvent): void;
|
|
67
90
|
protected _onError(evt: Event): void;
|
|
68
91
|
protected _onClose(evt: CloseEvent): void;
|
|
69
92
|
protected writeLog(...data: any[]): void;
|
|
@@ -27,7 +27,7 @@ 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
29
|
declare type AppComponent = React.ComponentType & {
|
|
30
|
-
init
|
|
30
|
+
init(rootElem: HTMLElement): Promise<void>;
|
|
31
31
|
};
|
|
32
32
|
export declare function bootstrap(comp: () => Promise<AppComponent>): Promise<void>;
|
|
33
33
|
/**
|
|
@@ -19,11 +19,13 @@
|
|
|
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 { ClusterPageMenuRegistration } from "
|
|
23
|
-
import { TabLayoutRoute } from "./layout/tab-layout";
|
|
24
|
-
import type { ClusterId } from "
|
|
25
|
-
export declare class
|
|
22
|
+
import { ClusterPageMenuRegistration } from "../extensions/registries";
|
|
23
|
+
import { TabLayoutRoute } from "./components/layout/tab-layout";
|
|
24
|
+
import type { ClusterId } from "../common/cluster-types";
|
|
25
|
+
export declare class ClusterFrame extends React.Component {
|
|
26
26
|
static clusterId: ClusterId;
|
|
27
|
+
static readonly logPrefix = "[CLUSTER-FRAME]:";
|
|
28
|
+
static displayName: string;
|
|
27
29
|
constructor(props: {});
|
|
28
30
|
static init(rootElem: HTMLElement): Promise<void>;
|
|
29
31
|
componentDidMount(): void;
|
|
@@ -19,7 +19,6 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="lodash" />
|
|
22
|
-
import "./add-cluster.scss";
|
|
23
22
|
import type { KubeConfig } from "@kubernetes/client-node";
|
|
24
23
|
import React from "react";
|
|
25
24
|
interface Option {
|
|
@@ -28,9 +28,9 @@ interface Props {
|
|
|
28
28
|
}
|
|
29
29
|
export declare class HelmChartDetails extends Component<Props> {
|
|
30
30
|
chartVersions: HelmChart[];
|
|
31
|
-
selectedChart
|
|
32
|
-
readme
|
|
33
|
-
error
|
|
31
|
+
selectedChart?: HelmChart;
|
|
32
|
+
readme?: string;
|
|
33
|
+
error?: string;
|
|
34
34
|
private abortController?;
|
|
35
35
|
constructor(props: Props);
|
|
36
36
|
componentWillUnmount(): void;
|
|
@@ -26,9 +26,9 @@ interface Props extends MenuActionsProps {
|
|
|
26
26
|
hideDetails?(): void;
|
|
27
27
|
}
|
|
28
28
|
export declare class HelmReleaseMenu extends React.Component<Props> {
|
|
29
|
-
remove()
|
|
30
|
-
upgrade()
|
|
31
|
-
rollback()
|
|
29
|
+
remove: () => Promise<void>;
|
|
30
|
+
upgrade: () => void;
|
|
31
|
+
rollback: () => void;
|
|
32
32
|
renderContent(): JSX.Element;
|
|
33
33
|
render(): JSX.Element;
|
|
34
34
|
}
|
|
@@ -26,11 +26,17 @@ export declare type CatalogAddButtonProps = {
|
|
|
26
26
|
};
|
|
27
27
|
export declare class CatalogAddButton extends React.Component<CatalogAddButtonProps> {
|
|
28
28
|
protected isOpen: boolean;
|
|
29
|
-
|
|
29
|
+
menuItems: Map<string, CatalogEntityAddMenu[]>;
|
|
30
30
|
constructor(props: CatalogAddButtonProps);
|
|
31
31
|
componentDidMount(): void;
|
|
32
|
+
componentDidUpdate(prevProps: CatalogAddButtonProps): void;
|
|
33
|
+
get categories(): CatalogCategory[];
|
|
34
|
+
updateMenuItems(): void;
|
|
35
|
+
updateCategoryItems: (category: CatalogCategory) => void;
|
|
36
|
+
getCategoryFilteredItems: (category: CatalogCategory) => CatalogEntityAddMenu[];
|
|
32
37
|
onOpen(): void;
|
|
33
38
|
onClose(): void;
|
|
34
39
|
onButtonClick(): void;
|
|
40
|
+
get items(): CatalogEntityAddMenu[];
|
|
35
41
|
render(): JSX.Element;
|
|
36
42
|
}
|
|
@@ -48,7 +48,6 @@ export declare class Catalog extends React.Component<Props> {
|
|
|
48
48
|
renderNavigation(): JSX.Element;
|
|
49
49
|
renderItemMenu: (item: CatalogEntityItem<CatalogEntity>) => JSX.Element;
|
|
50
50
|
renderName(item: CatalogEntityItem<CatalogEntity>): JSX.Element;
|
|
51
|
-
renderIcon(item: CatalogEntityItem<CatalogEntity>): JSX.Element;
|
|
52
51
|
renderList(): JSX.Element;
|
|
53
52
|
render(): JSX.Element;
|
|
54
53
|
}
|
|
@@ -24,6 +24,9 @@ import type { SelectOption, SelectProps } from "../select";
|
|
|
24
24
|
export declare class NamespaceSelectFilter extends React.Component<SelectProps> {
|
|
25
25
|
static isMultiSelection: import("mobx").IObservableValue<boolean>;
|
|
26
26
|
static isMenuOpen: import("mobx").IObservableValue<boolean>;
|
|
27
|
+
/**
|
|
28
|
+
* Only updated on every open
|
|
29
|
+
*/
|
|
27
30
|
private selected;
|
|
28
31
|
private didToggle;
|
|
29
32
|
constructor(props: SelectProps);
|
|
@@ -30,18 +30,71 @@ export declare class NamespaceStore extends KubeObjectStore<Namespace> {
|
|
|
30
30
|
onContextChange(callback: (namespaces: string[]) => void, opts?: IReactionOptions): IReactionDisposer;
|
|
31
31
|
private autoLoadAllowedNamespaces;
|
|
32
32
|
private get initialNamespaces();
|
|
33
|
-
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
* The current value (list of namespaces names) in the storage layer
|
|
36
|
+
*/
|
|
37
|
+
private get selectedNamespaces();
|
|
34
38
|
get allowedNamespaces(): string[];
|
|
39
|
+
/**
|
|
40
|
+
* The list of selected namespace names (for filtering)
|
|
41
|
+
*/
|
|
35
42
|
get contextNamespaces(): string[];
|
|
43
|
+
/**
|
|
44
|
+
* The set of select namespace names (for filtering)
|
|
45
|
+
*/
|
|
46
|
+
get selectedNames(): Set<string>;
|
|
47
|
+
/**
|
|
48
|
+
* Is true when the the set of namespace names selected is implicitly all
|
|
49
|
+
*
|
|
50
|
+
* Namely, this will be true if the user has deselected all namespaces from
|
|
51
|
+
* the filter or if the user has clicked the "All Namespaces" option
|
|
52
|
+
*/
|
|
53
|
+
get areAllSelectedImplicitly(): boolean;
|
|
36
54
|
subscribe(): typeof noop;
|
|
37
55
|
protected loadItems(params: KubeObjectStoreLoadingParams<Namespace>): Promise<Namespace[]>;
|
|
38
56
|
selectNamespaces(namespace: string | string[]): void;
|
|
39
57
|
clearSelected(namespaces?: string | string[]): void;
|
|
58
|
+
/**
|
|
59
|
+
* Checks if namespace names are selected for filtering
|
|
60
|
+
* @param namespaces One or several names of namespaces to check if they are selected
|
|
61
|
+
* @returns `true` if all the provided names are selected
|
|
62
|
+
*/
|
|
40
63
|
hasContext(namespaces: string | string[]): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Is `true` if all available namespaces are selected, otherwise `false`
|
|
66
|
+
*/
|
|
41
67
|
get hasAllContexts(): boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Acts like `toggleSingle` but can work on several at a time
|
|
70
|
+
* @param namespaces One or many names of namespaces to select
|
|
71
|
+
*/
|
|
42
72
|
toggleContext(namespaces: string | string[]): void;
|
|
73
|
+
/**
|
|
74
|
+
* Toggles the selection state of `namespace`. Namely, if it was previously
|
|
75
|
+
* specifically or implicitly selected then after this call it will be
|
|
76
|
+
* explicitly deselected.
|
|
77
|
+
* @param namespace The name of a namespace
|
|
78
|
+
*/
|
|
43
79
|
toggleSingle(namespace: string): void;
|
|
44
|
-
|
|
80
|
+
/**
|
|
81
|
+
* Makes the given namespace the sole selected namespace
|
|
82
|
+
*/
|
|
83
|
+
selectSingle(namespace: string): void;
|
|
84
|
+
/**
|
|
85
|
+
* Selects all available namespaces.
|
|
86
|
+
*
|
|
87
|
+
* Note: If new namespaces appear in the future those will be selected too
|
|
88
|
+
*/
|
|
89
|
+
selectAll(): void;
|
|
90
|
+
/**
|
|
91
|
+
* This function selects all namespaces implicitly.
|
|
92
|
+
*
|
|
93
|
+
* NOTE: does not toggle any namespaces
|
|
94
|
+
* @param selectAll NOT USED
|
|
95
|
+
* @deprecated Use `NamespaceStore.selectAll` instead.
|
|
96
|
+
*/
|
|
97
|
+
toggleAll(selectAll?: boolean): void;
|
|
45
98
|
remove(item: Namespace): Promise<void>;
|
|
46
99
|
}
|
|
47
100
|
export declare const namespaceStore: NamespaceStore;
|
|
@@ -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 {};
|
|
@@ -23,7 +23,6 @@ import React from "react";
|
|
|
23
23
|
import { ClusterRole, ClusterRoleBinding, ClusterRoleBindingSubject, ServiceAccount } from "../../../../common/k8s-api/endpoints";
|
|
24
24
|
import { DialogProps } from "../../dialog";
|
|
25
25
|
import { SelectOption } from "../../select";
|
|
26
|
-
import { ServiceAccountOption } from "../select-options";
|
|
27
26
|
import { ObservableHashSet } from "../../../utils";
|
|
28
27
|
interface Props extends Partial<DialogProps> {
|
|
29
28
|
}
|
|
@@ -46,8 +45,8 @@ export declare class ClusterRoleBindingDialog extends React.Component<Props> {
|
|
|
46
45
|
selectedGroups: import("mobx").ObservableSet<string>;
|
|
47
46
|
get selectedBindings(): ClusterRoleBindingSubject[];
|
|
48
47
|
get clusterRoleRefoptions(): SelectOption<ClusterRole>[];
|
|
49
|
-
get serviceAccountOptions():
|
|
50
|
-
get selectedServiceAccountOptions():
|
|
48
|
+
get serviceAccountOptions(): SelectOption<ServiceAccount>[];
|
|
49
|
+
get selectedServiceAccountOptions(): SelectOption<ServiceAccount>[];
|
|
51
50
|
onOpen: () => void;
|
|
52
51
|
reset: () => void;
|
|
53
52
|
createBindings: () => Promise<void>;
|
package/dist/src/renderer/components/+user-management/+role-bindings/__tests__/dialog.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 {};
|
|
@@ -23,7 +23,6 @@ import React from "react";
|
|
|
23
23
|
import { ClusterRole, Role, RoleBinding, RoleBindingSubject, ServiceAccount } from "../../../../common/k8s-api/endpoints";
|
|
24
24
|
import { DialogProps } from "../../dialog";
|
|
25
25
|
import { SelectOption } from "../../select";
|
|
26
|
-
import { ServiceAccountOption } from "../select-options";
|
|
27
26
|
import { ObservableHashSet } from "../../../utils";
|
|
28
27
|
interface Props extends Partial<DialogProps> {
|
|
29
28
|
}
|
|
@@ -46,8 +45,8 @@ export declare class RoleBindingDialog extends React.Component<Props> {
|
|
|
46
45
|
selectedGroups: import("mobx").ObservableSet<string>;
|
|
47
46
|
get selectedBindings(): RoleBindingSubject[];
|
|
48
47
|
get roleRefOptions(): SelectOption<Role | ClusterRole>[];
|
|
49
|
-
get serviceAccountOptions():
|
|
50
|
-
get selectedServiceAccountOptions():
|
|
48
|
+
get serviceAccountOptions(): SelectOption<ServiceAccount>[];
|
|
49
|
+
get selectedServiceAccountOptions(): SelectOption<ServiceAccount>[];
|
|
51
50
|
onOpen: () => void;
|
|
52
51
|
reset: () => void;
|
|
53
52
|
createBindings: () => Promise<void>;
|
|
@@ -27,7 +27,6 @@ interface Props extends RouteComponentProps<DaemonSetsRouteParams> {
|
|
|
27
27
|
}
|
|
28
28
|
export declare class DaemonSets extends React.Component<Props> {
|
|
29
29
|
getPodsLength(daemonSet: DaemonSet): number;
|
|
30
|
-
renderNodeSelector(daemonSet: DaemonSet): JSX.Element[];
|
|
31
30
|
render(): JSX.Element;
|
|
32
31
|
}
|
|
33
32
|
export {};
|
|
@@ -42,6 +42,7 @@ export declare class DeploymentScaleDialog extends Component<Props> {
|
|
|
42
42
|
onClose: () => void;
|
|
43
43
|
onChange: (evt: React.ChangeEvent, value: number) => void;
|
|
44
44
|
scale: () => Promise<void>;
|
|
45
|
+
private readonly scaleMin;
|
|
45
46
|
desiredReplicasUp: () => void;
|
|
46
47
|
desiredReplicasDown: () => void;
|
|
47
48
|
renderContents(): JSX.Element;
|
|
@@ -25,7 +25,10 @@ import type { WorkloadsOverviewRouteParams } from "../../../common/routes";
|
|
|
25
25
|
interface Props extends RouteComponentProps<WorkloadsOverviewRouteParams> {
|
|
26
26
|
}
|
|
27
27
|
export declare class WorkloadsOverview extends React.Component<Props> {
|
|
28
|
+
loadErrors: string[];
|
|
29
|
+
constructor(props: Props);
|
|
28
30
|
componentDidMount(): void;
|
|
31
|
+
renderLoadErrors(): JSX.Element;
|
|
29
32
|
render(): JSX.Element;
|
|
30
33
|
}
|
|
31
34
|
export {};
|
|
@@ -18,9 +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 "./pod-details-affinities.scss";
|
|
22
21
|
import React from "react";
|
|
23
|
-
import type {
|
|
22
|
+
import type { DaemonSet, Deployment, Job, Pod, ReplicaSet, StatefulSet } from "../../../common/k8s-api/endpoints";
|
|
24
23
|
interface Props {
|
|
25
24
|
workload: Pod | Deployment | DaemonSet | StatefulSet | ReplicaSet | Job;
|
|
26
25
|
}
|
|
@@ -42,6 +42,7 @@ export declare class ReplicaSetScaleDialog extends Component<Props> {
|
|
|
42
42
|
onChange: (evt: React.ChangeEvent, value: number) => void;
|
|
43
43
|
get scaleMax(): number;
|
|
44
44
|
scale: () => Promise<void>;
|
|
45
|
+
private readonly scaleMin;
|
|
45
46
|
desiredReplicasUp: () => void;
|
|
46
47
|
desiredReplicasDown: () => void;
|
|
47
48
|
renderContents(): JSX.Element;
|
|
@@ -42,6 +42,7 @@ export declare class StatefulSetScaleDialog extends Component<Props> {
|
|
|
42
42
|
onChange: (evt: React.ChangeEvent, value: number) => void;
|
|
43
43
|
get scaleMax(): number;
|
|
44
44
|
scale: () => Promise<void>;
|
|
45
|
+
private readonly scaleMin;
|
|
45
46
|
desiredReplicasUp: () => void;
|
|
46
47
|
desiredReplicasDown: () => void;
|
|
47
48
|
renderContents(): JSX.Element;
|
|
@@ -26,9 +26,10 @@ export interface AnimateProps {
|
|
|
26
26
|
enter?: boolean;
|
|
27
27
|
onEnter?: () => void;
|
|
28
28
|
onLeave?: () => void;
|
|
29
|
+
enterDuration?: number;
|
|
30
|
+
leaveDuration?: number;
|
|
29
31
|
}
|
|
30
32
|
export declare class Animate extends React.Component<AnimateProps> {
|
|
31
|
-
static VISIBILITY_DELAY_MS: number;
|
|
32
33
|
static defaultProps: AnimateProps;
|
|
33
34
|
isVisible: boolean;
|
|
34
35
|
statusClassName: {
|
|
@@ -40,7 +41,7 @@ export declare class Animate extends React.Component<AnimateProps> {
|
|
|
40
41
|
componentDidMount(): void;
|
|
41
42
|
enter(): void;
|
|
42
43
|
leave(): void;
|
|
44
|
+
resetAfterLeaveDuration(): void;
|
|
43
45
|
reset(): void;
|
|
44
|
-
onTransitionEnd(evt: React.TransitionEvent): void;
|
|
45
46
|
render(): React.ReactElement<React.HTMLAttributes<any>, string | React.JSXElementConstructor<any>>;
|
|
46
47
|
}
|
|
@@ -26,6 +26,7 @@ export interface BadgeProps extends React.HTMLAttributes<any>, TooltipDecoratorP
|
|
|
26
26
|
label?: React.ReactNode;
|
|
27
27
|
expandable?: boolean;
|
|
28
28
|
disabled?: boolean;
|
|
29
|
+
scrollable?: boolean;
|
|
29
30
|
}
|
|
30
31
|
export declare class Badge extends React.Component<BadgeProps> {
|
|
31
32
|
static defaultProps: Partial<BadgeProps>;
|
|
@@ -21,24 +21,23 @@
|
|
|
21
21
|
import React from "react";
|
|
22
22
|
import type { Cluster } from "../../../main/cluster";
|
|
23
23
|
import { IClassName } from "../../utils";
|
|
24
|
-
import type {
|
|
25
|
-
import type { ClusterId } from "../../../common/cluster-types";
|
|
24
|
+
import type { ClusterId, KubeAuthUpdate } from "../../../common/cluster-types";
|
|
26
25
|
interface Props {
|
|
27
26
|
className?: IClassName;
|
|
28
27
|
clusterId: ClusterId;
|
|
29
28
|
}
|
|
30
29
|
export declare class ClusterStatus extends React.Component<Props> {
|
|
31
|
-
authOutput:
|
|
30
|
+
authOutput: KubeAuthUpdate[];
|
|
32
31
|
isReconnecting: boolean;
|
|
33
32
|
constructor(props: Props);
|
|
34
33
|
get cluster(): Cluster;
|
|
35
34
|
get hasErrors(): boolean;
|
|
36
|
-
componentDidMount():
|
|
37
|
-
componentWillUnmount(): void;
|
|
38
|
-
activateCluster: (force?: boolean) => Promise<void>;
|
|
35
|
+
componentDidMount(): void;
|
|
39
36
|
reconnect: () => Promise<void>;
|
|
40
37
|
manageProxySettings: () => void;
|
|
41
|
-
|
|
38
|
+
renderAuthenticationOutput(): JSX.Element;
|
|
39
|
+
renderStatusIcon(): JSX.Element;
|
|
40
|
+
renderReconnectionHelp(): JSX.Element;
|
|
42
41
|
render(): JSX.Element;
|
|
43
42
|
}
|
|
44
43
|
export {};
|
|
@@ -19,13 +19,17 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
import type { ClusterId } from "../../../common/cluster-types";
|
|
22
|
+
import { Singleton } from "../../utils";
|
|
22
23
|
export interface LensView {
|
|
23
|
-
isLoaded
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
isLoaded: boolean;
|
|
25
|
+
frame: HTMLIFrameElement;
|
|
26
|
+
}
|
|
27
|
+
export declare class ClusterFrameHandler extends Singleton {
|
|
28
|
+
private views;
|
|
29
|
+
constructor();
|
|
30
|
+
hasLoadedView(clusterId: string): boolean;
|
|
31
|
+
initView(clusterId: ClusterId): void;
|
|
32
|
+
private prevVisibleClusterChange?;
|
|
33
|
+
setVisibleCluster(clusterId: ClusterId | null): void;
|
|
34
|
+
clearVisibleCluster(): void;
|
|
26
35
|
}
|
|
27
|
-
export declare const lensViews: import("mobx").ObservableMap<string, LensView>;
|
|
28
|
-
export declare function hasLoadedView(clusterId: ClusterId): boolean;
|
|
29
|
-
export declare function initView(clusterId: ClusterId): Promise<void>;
|
|
30
|
-
export declare function autoCleanOnRemove(clusterId: ClusterId, iframe: HTMLIFrameElement): Promise<void>;
|
|
31
|
-
export declare function refreshViews(visibleClusterId?: string): void;
|
|
@@ -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,20 +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 React from "react";
|
|
22
21
|
import type { Cluster } from "../../../../main/cluster";
|
|
23
22
|
interface Props {
|
|
24
23
|
cluster: Cluster;
|
|
25
24
|
}
|
|
26
|
-
export declare
|
|
27
|
-
directory: string;
|
|
28
|
-
defaultNamespace: string;
|
|
29
|
-
constructor(props: Props);
|
|
30
|
-
componentDidMount(): Promise<void>;
|
|
31
|
-
saveCWD: () => void;
|
|
32
|
-
onChangeTerminalCWD: (value: string) => void;
|
|
33
|
-
saveDefaultNamespace: () => void;
|
|
34
|
-
onChangeDefaultNamespace: (value: string) => void;
|
|
35
|
-
render(): JSX.Element;
|
|
36
|
-
}
|
|
25
|
+
export declare const ClusterLocalTerminalSetting: ({ cluster }: Props) => JSX.Element;
|
|
37
26
|
export {};
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
export * from "./cluster-accessible-namespaces";
|
|
22
|
-
export * from "./cluster-
|
|
22
|
+
export * from "./cluster-local-terminal-settings";
|
|
23
23
|
export * from "./cluster-kubeconfig";
|
|
24
24
|
export * from "./cluster-metrics-setting";
|
|
25
25
|
export * from "./cluster-name-setting";
|
|
@@ -36,6 +36,7 @@ interface DialogState {
|
|
|
36
36
|
}
|
|
37
37
|
export declare class Dialog extends React.PureComponent<DialogProps, DialogState> {
|
|
38
38
|
private contentElem;
|
|
39
|
+
ref: React.RefObject<HTMLDivElement>;
|
|
39
40
|
static defaultProps: DialogProps;
|
|
40
41
|
closeOnNavigate: import("mobx").IReactionDisposer;
|
|
41
42
|
state: DialogState;
|
|
@@ -23,7 +23,6 @@ import React from "react";
|
|
|
23
23
|
import { GroupSelectOption, SelectOption } from "../select";
|
|
24
24
|
import type { DockTab } from "./dock.store";
|
|
25
25
|
interface Props {
|
|
26
|
-
className?: string;
|
|
27
26
|
tab: DockTab;
|
|
28
27
|
}
|
|
29
28
|
export declare class CreateResource extends React.Component<Props> {
|
|
@@ -37,7 +36,8 @@ export declare class CreateResource extends React.Component<Props> {
|
|
|
37
36
|
get tabId(): string;
|
|
38
37
|
get data(): string;
|
|
39
38
|
get currentTemplate(): SelectOption<any>;
|
|
40
|
-
onChange: (value: string
|
|
39
|
+
onChange: (value: string) => void;
|
|
40
|
+
onError: (error: Error | string) => void;
|
|
41
41
|
onSelectTemplate: (item: SelectOption) => void;
|
|
42
42
|
create: () => Promise<undefined>;
|
|
43
43
|
renderControls(): JSX.Element;
|
|
@@ -73,6 +73,24 @@ export interface DockStorageState {
|
|
|
73
73
|
selectedTabId?: TabId;
|
|
74
74
|
isOpen?: boolean;
|
|
75
75
|
}
|
|
76
|
+
export interface DockTabChangeEvent {
|
|
77
|
+
tab: DockTab;
|
|
78
|
+
tabId: TabId;
|
|
79
|
+
prevTab?: DockTab;
|
|
80
|
+
}
|
|
81
|
+
export interface DockTabChangeEventOptions extends IReactionOptions {
|
|
82
|
+
/**
|
|
83
|
+
* filter: by dockStore.selectedTab.kind == tabKind
|
|
84
|
+
*/
|
|
85
|
+
tabKind?: TabKind;
|
|
86
|
+
/**
|
|
87
|
+
* filter: dock and selected tab should be visible (default: true)
|
|
88
|
+
*/
|
|
89
|
+
dockIsVisible?: boolean;
|
|
90
|
+
}
|
|
91
|
+
export interface DockTabCloseEvent {
|
|
92
|
+
tabId: TabId;
|
|
93
|
+
}
|
|
76
94
|
export declare class DockStore implements DockStorageState {
|
|
77
95
|
constructor();
|
|
78
96
|
readonly minHeight = 100;
|
|
@@ -94,9 +112,9 @@ export declare class DockStore implements DockStorageState {
|
|
|
94
112
|
get maxHeight(): number;
|
|
95
113
|
protected adjustHeight(): void;
|
|
96
114
|
onResize(callback: () => void, options?: IReactionOptions): import("mobx").IReactionDisposer;
|
|
97
|
-
|
|
115
|
+
onTabClose(callback: (evt: DockTabCloseEvent) => void, options?: IReactionOptions): import("mobx").IReactionDisposer;
|
|
116
|
+
onTabChange(callback: (evt: DockTabChangeEvent) => void, options?: DockTabChangeEventOptions): import("mobx").IReactionDisposer;
|
|
98
117
|
hasTabs(): boolean;
|
|
99
|
-
usesMonacoEditor(tab: DockTab): boolean;
|
|
100
118
|
open(fullSize?: boolean): void;
|
|
101
119
|
close(): void;
|
|
102
120
|
toggle(): void;
|