@k8slens/extensions 5.3.0-git.0ae4dfbeab.0 → 5.3.0-git.0e5fc65806.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/base-store.d.ts +1 -0
- 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/ingress.api.d.ts +10 -7
- package/dist/src/common/k8s-api/endpoints/job.api.d.ts +0 -1
- package/dist/src/common/k8s-api/endpoints/pods.api.d.ts +28 -32
- 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/user-store/preferences-helpers.d.ts +2 -6
- package/dist/src/common/user-store/user-store.d.ts +2 -6
- package/dist/src/common/utils/base64.d.ts +12 -4
- package/dist/src/common/utils/index.d.ts +2 -2
- 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/extension-api.js +5738 -1558
- 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/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 +0 -1
- package/dist/src/main/extension-filesystem.d.ts +1 -0
- package/dist/src/main/kube-auth-proxy.d.ts +1 -8
- package/dist/src/main/lens-proxy.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 +94 -8
- package/dist/src/main/utils/shell-env.d.ts +1 -3
- 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/+catalog/catalog.d.ts +0 -1
- package/dist/src/{common/utils/makeCss.d.ts → renderer/components/+user-management/+cluster-role-bindings/__tests__/dialog.test.d.ts} +1 -9
- package/dist/src/renderer/components/+user-management/+cluster-role-bindings/dialog.d.ts +2 -3
- package/dist/src/renderer/components/+user-management/{select-options.d.ts → +role-bindings/__tests__/dialog.test.d.ts} +1 -7
- 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-pods/pod-details-affinities.d.ts +1 -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/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/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/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/{dock/monaco-model-manager.d.ts → monaco-editor/monaco-themes.d.ts} +8 -21
- package/dist/src/renderer/components/monaco-editor/monaco-validators.d.ts +9 -0
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- 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 -1
- package/dist/src/renderer/theme.store.d.ts +4 -15
- package/package.json +1 -1
|
@@ -32,6 +32,7 @@ export declare abstract class BaseStore<T> extends Singleton {
|
|
|
32
32
|
protected params: BaseStoreParams<T>;
|
|
33
33
|
protected storeConfig?: Config<T>;
|
|
34
34
|
protected syncDisposers: Disposer[];
|
|
35
|
+
readonly displayName: string;
|
|
35
36
|
protected constructor(params: BaseStoreParams<T>);
|
|
36
37
|
/**
|
|
37
38
|
* This must be called after the last child's constructor is finished (or just before it finishes)
|
|
@@ -20,19 +20,18 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { BaseStore } from "./base-store";
|
|
22
22
|
import { Cluster } from "../main/cluster";
|
|
23
|
-
import type { ClusterModel, ClusterId
|
|
23
|
+
import type { ClusterModel, ClusterId } from "./cluster-types";
|
|
24
24
|
export interface ClusterStoreModel {
|
|
25
25
|
clusters?: ClusterModel[];
|
|
26
26
|
}
|
|
27
27
|
export declare class ClusterStore extends BaseStore<ClusterStoreModel> {
|
|
28
|
-
|
|
28
|
+
readonly displayName = "ClusterStore";
|
|
29
29
|
clusters: import("mobx").ObservableMap<string, Cluster>;
|
|
30
30
|
protected disposer: import("./utils").ExtendableDisposer;
|
|
31
31
|
constructor();
|
|
32
32
|
loadInitialOnRenderer(): Promise<void>;
|
|
33
33
|
provideInitialFromMain(): void;
|
|
34
34
|
protected pushStateToViewsAutomatically(): void;
|
|
35
|
-
handleStateChange: (event: any, clusterId: string, state: ClusterState) => void;
|
|
36
35
|
registerIpcListener(): void;
|
|
37
36
|
unregisterIpcListener(): void;
|
|
38
37
|
pushState(): void;
|
|
@@ -105,6 +105,13 @@ export declare enum ClusterStatus {
|
|
|
105
105
|
AccessDenied = 1,
|
|
106
106
|
Offline = 0
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* The message format for the "cluster:<cluster-id>:connection-update" channels
|
|
110
|
+
*/
|
|
111
|
+
export interface KubeAuthUpdate {
|
|
112
|
+
message: string;
|
|
113
|
+
isError: boolean;
|
|
114
|
+
}
|
|
108
115
|
/**
|
|
109
116
|
* The OpenLens known static metadata keys
|
|
110
117
|
*/
|
|
@@ -152,7 +159,6 @@ export interface ClusterState {
|
|
|
152
159
|
disconnected: boolean;
|
|
153
160
|
accessible: boolean;
|
|
154
161
|
ready: boolean;
|
|
155
|
-
failureReason: string;
|
|
156
162
|
isAdmin: boolean;
|
|
157
163
|
allowedNamespaces: string[];
|
|
158
164
|
allowedResources: string[];
|
|
@@ -22,6 +22,7 @@ import { KubeObject } from "../kube-object";
|
|
|
22
22
|
import { IMetrics } from "./metrics.api";
|
|
23
23
|
import { KubeApi } from "../kube-api";
|
|
24
24
|
import type { KubeJsonApiData } from "../kube-json-api";
|
|
25
|
+
import type { RequireExactlyOne } from "type-fest";
|
|
25
26
|
export declare class IngressApi extends KubeApi<Ingress> {
|
|
26
27
|
}
|
|
27
28
|
export declare function getMetricsForIngress(ingress: string, namespace: string): Promise<IIngressMetrics>;
|
|
@@ -38,7 +39,7 @@ export interface ILoadBalancerIngress {
|
|
|
38
39
|
}
|
|
39
40
|
interface IExtensionsBackend {
|
|
40
41
|
serviceName: string;
|
|
41
|
-
servicePort: number;
|
|
42
|
+
servicePort: number | string;
|
|
42
43
|
}
|
|
43
44
|
interface INetworkingBackend {
|
|
44
45
|
service: IIngressService;
|
|
@@ -70,13 +71,18 @@ export interface Ingress {
|
|
|
70
71
|
};
|
|
71
72
|
}[];
|
|
72
73
|
backend?: IExtensionsBackend;
|
|
73
|
-
|
|
74
|
+
/**
|
|
75
|
+
* The default backend which is exactly on of:
|
|
76
|
+
* - service
|
|
77
|
+
* - resource
|
|
78
|
+
*/
|
|
79
|
+
defaultBackend?: RequireExactlyOne<INetworkingBackend & {
|
|
74
80
|
resource: {
|
|
75
81
|
apiGroup: string;
|
|
76
82
|
kind: string;
|
|
77
83
|
name: string;
|
|
78
84
|
};
|
|
79
|
-
}
|
|
85
|
+
}>;
|
|
80
86
|
};
|
|
81
87
|
status: {
|
|
82
88
|
loadBalancer: {
|
|
@@ -90,10 +96,7 @@ export declare class Ingress extends KubeObject {
|
|
|
90
96
|
static apiBase: string;
|
|
91
97
|
constructor(data: KubeJsonApiData);
|
|
92
98
|
getRoutes(): string[];
|
|
93
|
-
getServiceNamePort():
|
|
94
|
-
serviceName: string;
|
|
95
|
-
servicePort: string | number;
|
|
96
|
-
};
|
|
99
|
+
getServiceNamePort(): IExtensionsBackend;
|
|
97
100
|
getHosts(): string[];
|
|
98
101
|
getPorts(): string;
|
|
99
102
|
getLoadBalancers(): string[];
|
|
@@ -133,40 +133,36 @@ interface IContainerProbe {
|
|
|
133
133
|
successThreshold?: number;
|
|
134
134
|
failureThreshold?: number;
|
|
135
135
|
}
|
|
136
|
+
export interface ContainerStateRunning {
|
|
137
|
+
startedAt: string;
|
|
138
|
+
}
|
|
139
|
+
export interface ContainerStateWaiting {
|
|
140
|
+
reason: string;
|
|
141
|
+
message: string;
|
|
142
|
+
}
|
|
143
|
+
export interface ContainerStateTerminated {
|
|
144
|
+
startedAt: string;
|
|
145
|
+
finishedAt: string;
|
|
146
|
+
exitCode: number;
|
|
147
|
+
reason: string;
|
|
148
|
+
containerID?: string;
|
|
149
|
+
message?: string;
|
|
150
|
+
signal?: number;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* ContainerState holds a possible state of container. Only one of its members
|
|
154
|
+
* may be specified. If none of them is specified, the default one is
|
|
155
|
+
* `ContainerStateWaiting`.
|
|
156
|
+
*/
|
|
157
|
+
export interface ContainerState {
|
|
158
|
+
running?: ContainerStateRunning;
|
|
159
|
+
waiting?: ContainerStateWaiting;
|
|
160
|
+
terminated?: ContainerStateTerminated;
|
|
161
|
+
}
|
|
136
162
|
export interface IPodContainerStatus {
|
|
137
163
|
name: string;
|
|
138
|
-
state?:
|
|
139
|
-
|
|
140
|
-
running?: {
|
|
141
|
-
startedAt: string;
|
|
142
|
-
};
|
|
143
|
-
waiting?: {
|
|
144
|
-
reason: string;
|
|
145
|
-
message: string;
|
|
146
|
-
};
|
|
147
|
-
terminated?: {
|
|
148
|
-
startedAt: string;
|
|
149
|
-
finishedAt: string;
|
|
150
|
-
exitCode: number;
|
|
151
|
-
reason: string;
|
|
152
|
-
};
|
|
153
|
-
};
|
|
154
|
-
lastState?: {
|
|
155
|
-
[index: string]: object;
|
|
156
|
-
running?: {
|
|
157
|
-
startedAt: string;
|
|
158
|
-
};
|
|
159
|
-
waiting?: {
|
|
160
|
-
reason: string;
|
|
161
|
-
message: string;
|
|
162
|
-
};
|
|
163
|
-
terminated?: {
|
|
164
|
-
startedAt: string;
|
|
165
|
-
finishedAt: string;
|
|
166
|
-
exitCode: number;
|
|
167
|
-
reason: string;
|
|
168
|
-
};
|
|
169
|
-
};
|
|
164
|
+
state?: ContainerState;
|
|
165
|
+
lastState?: ContainerState;
|
|
170
166
|
ready: boolean;
|
|
171
167
|
restartCount: number;
|
|
172
168
|
image: string;
|
|
@@ -23,6 +23,7 @@ import type { IKubeWatchEvent } from "./kube-watch-api";
|
|
|
23
23
|
import { KubeJsonApi, KubeJsonApiData } from "./kube-json-api";
|
|
24
24
|
import type { RequestInit } from "node-fetch";
|
|
25
25
|
import AbortController from "abort-controller";
|
|
26
|
+
import type { Patch } from "rfc6902";
|
|
26
27
|
export interface IKubeApiOptions<T extends KubeObject> {
|
|
27
28
|
/**
|
|
28
29
|
* base api-path for listing all resources, e.g. "/api/v1/pods"
|
|
@@ -74,6 +75,7 @@ export interface ILocalKubeApiConfig {
|
|
|
74
75
|
uid: string;
|
|
75
76
|
};
|
|
76
77
|
}
|
|
78
|
+
export declare type PropagationPolicy = undefined | "Orphan" | "Foreground" | "Background";
|
|
77
79
|
/**
|
|
78
80
|
* @deprecated
|
|
79
81
|
*/
|
|
@@ -91,8 +93,8 @@ export interface IRemoteKubeApiConfig {
|
|
|
91
93
|
clientKeyData?: string;
|
|
92
94
|
};
|
|
93
95
|
}
|
|
94
|
-
export declare function forCluster<T extends KubeObject>(cluster: ILocalKubeApiConfig, kubeClass: KubeObjectConstructor<T>): KubeApi<T>;
|
|
95
|
-
export declare function forRemoteCluster<T extends KubeObject>(config: IRemoteKubeApiConfig, kubeClass: KubeObjectConstructor<T>):
|
|
96
|
+
export declare function forCluster<T extends KubeObject, Y extends KubeApi<T> = KubeApi<T>>(cluster: ILocalKubeApiConfig, kubeClass: KubeObjectConstructor<T>, apiClass?: new (apiOpts: IKubeApiOptions<T>) => Y): KubeApi<T>;
|
|
97
|
+
export declare function forRemoteCluster<T extends KubeObject, Y extends KubeApi<T> = KubeApi<T>>(config: IRemoteKubeApiConfig, kubeClass: KubeObjectConstructor<T>, apiClass?: new (apiOpts: IKubeApiOptions<T>) => Y): Y;
|
|
96
98
|
export declare function ensureObjectSelfLink(api: KubeApi<KubeObject>, object: KubeJsonApiData): void;
|
|
97
99
|
export declare type KubeApiWatchCallback = (data: IKubeWatchEvent<KubeJsonApiData>, error: any) => void;
|
|
98
100
|
export declare type KubeApiWatchOptions = {
|
|
@@ -101,7 +103,9 @@ export declare type KubeApiWatchOptions = {
|
|
|
101
103
|
abortController?: AbortController;
|
|
102
104
|
watchId?: string;
|
|
103
105
|
retry?: boolean;
|
|
106
|
+
timeout?: number;
|
|
104
107
|
};
|
|
108
|
+
export declare type KubeApiPatchType = "merge" | "json" | "strategic";
|
|
105
109
|
export declare class KubeApi<T extends KubeObject> {
|
|
106
110
|
protected options: IKubeApiOptions<T>;
|
|
107
111
|
readonly kind: string;
|
|
@@ -151,9 +155,14 @@ export declare class KubeApi<T extends KubeObject> {
|
|
|
151
155
|
name?: string;
|
|
152
156
|
namespace?: string;
|
|
153
157
|
}, data?: Partial<T>): Promise<T | null>;
|
|
154
|
-
|
|
158
|
+
patch({ name, namespace }?: {
|
|
155
159
|
name?: string;
|
|
156
160
|
namespace?: string;
|
|
161
|
+
}, data?: Partial<T> | Patch, strategy?: KubeApiPatchType): Promise<T | null>;
|
|
162
|
+
delete({ name, namespace, propagationPolicy }: {
|
|
163
|
+
name: string;
|
|
164
|
+
namespace?: string;
|
|
165
|
+
propagationPolicy?: PropagationPolicy;
|
|
157
166
|
}): Promise<KubeJsonApiData>;
|
|
158
167
|
getWatchUrl(namespace?: string, query?: IKubeApiQueryParams): string;
|
|
159
168
|
watch(opts?: KubeApiWatchOptions): () => void;
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { JsonApi, JsonApiData, JsonApiError } from "./json-api";
|
|
22
22
|
import type { Response } from "node-fetch";
|
|
23
|
+
import type { Cluster } from "../../main/cluster";
|
|
23
24
|
export interface KubeJsonApiListMetadata {
|
|
24
25
|
resourceVersion: string;
|
|
25
26
|
selfLink?: string;
|
|
@@ -63,5 +64,6 @@ export interface KubeJsonApiError extends JsonApiError {
|
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
export declare class KubeJsonApi extends JsonApi<KubeJsonApiData> {
|
|
67
|
+
static forCluster(cluster: Cluster): KubeJsonApi;
|
|
66
68
|
protected parseError(error: KubeJsonApiError | any, res: Response): string[];
|
|
67
69
|
}
|
|
@@ -104,7 +104,7 @@ export declare class KubeObject<Metadata extends KubeObjectMetadata = KubeObject
|
|
|
104
104
|
/**
|
|
105
105
|
* These must be RFC6902 compliant paths
|
|
106
106
|
*/
|
|
107
|
-
private static readonly
|
|
107
|
+
private static readonly nonEditablePathPrefixes;
|
|
108
108
|
private static readonly nonEditablePaths;
|
|
109
109
|
constructor(data: KubeJsonApiData);
|
|
110
110
|
get selfLink(): string;
|
|
@@ -128,6 +128,9 @@ export declare class KubeObject<Metadata extends KubeObjectMetadata = KubeObject
|
|
|
128
128
|
}[];
|
|
129
129
|
getSearchFields(): string[];
|
|
130
130
|
toPlainObject(): object;
|
|
131
|
+
/**
|
|
132
|
+
* @deprecated use KubeApi.patch instead
|
|
133
|
+
*/
|
|
131
134
|
patch(patch: Patch): Promise<KubeJsonApiData | null>;
|
|
132
135
|
/**
|
|
133
136
|
* Perform a full update (or more specifically a replace)
|
|
@@ -135,7 +138,12 @@ export declare class KubeObject<Metadata extends KubeObjectMetadata = KubeObject
|
|
|
135
138
|
* Note: this is brittle if `data` is not actually partial (but instead whole).
|
|
136
139
|
* As fields such as `resourceVersion` will probably out of date. This is a
|
|
137
140
|
* common race condition.
|
|
141
|
+
*
|
|
142
|
+
* @deprecated use KubeApi.update instead
|
|
138
143
|
*/
|
|
139
144
|
update(data: Partial<this>): Promise<KubeJsonApiData | null>;
|
|
145
|
+
/**
|
|
146
|
+
* @deprecated use KubeApi.delete instead
|
|
147
|
+
*/
|
|
140
148
|
delete(params?: JsonApiParams): Promise<KubeJsonApiData>;
|
|
141
149
|
}
|
|
@@ -30,6 +30,28 @@ export interface KubeObjectStoreLoadingParams<K extends KubeObject> {
|
|
|
30
30
|
namespaces: string[];
|
|
31
31
|
api?: KubeApi<K>;
|
|
32
32
|
reqInit?: RequestInit;
|
|
33
|
+
/**
|
|
34
|
+
* A function that is called when listing fails. If set then blocks errors
|
|
35
|
+
* being rejected with
|
|
36
|
+
*/
|
|
37
|
+
onLoadFailure?: (err: any) => void;
|
|
38
|
+
}
|
|
39
|
+
export interface KubeObjectStoreLoadAllParams {
|
|
40
|
+
namespaces?: string[];
|
|
41
|
+
merge?: boolean;
|
|
42
|
+
reqInit?: RequestInit;
|
|
43
|
+
/**
|
|
44
|
+
* A function that is called when listing fails. If set then blocks errors
|
|
45
|
+
* being rejected with
|
|
46
|
+
*/
|
|
47
|
+
onLoadFailure?: (err: any) => void;
|
|
48
|
+
}
|
|
49
|
+
export interface KubeObjectStoreSubscribeParams {
|
|
50
|
+
/**
|
|
51
|
+
* A function that is called when listing fails. If set then blocks errors
|
|
52
|
+
* being rejected with
|
|
53
|
+
*/
|
|
54
|
+
onLoadFailure?: (err: any) => void;
|
|
33
55
|
}
|
|
34
56
|
export declare abstract class KubeObjectStore<T extends KubeObject> extends ItemStore<T> {
|
|
35
57
|
static defaultContext: import("mobx").IObservableValue<ClusterContext>;
|
|
@@ -56,13 +78,9 @@ export declare abstract class KubeObjectStore<T extends KubeObject> extends Item
|
|
|
56
78
|
getByLabel(labels: string[] | {
|
|
57
79
|
[label: string]: string;
|
|
58
80
|
}): T[];
|
|
59
|
-
protected loadItems({ namespaces, api, reqInit }: KubeObjectStoreLoadingParams<T>): Promise<T[]>;
|
|
81
|
+
protected loadItems({ namespaces, api, reqInit, onLoadFailure }: KubeObjectStoreLoadingParams<T>): Promise<T[]>;
|
|
60
82
|
protected filterItemsOnLoad(items: T[]): T[];
|
|
61
|
-
loadAll(options?:
|
|
62
|
-
namespaces?: string[];
|
|
63
|
-
merge?: boolean;
|
|
64
|
-
reqInit?: RequestInit;
|
|
65
|
-
}): Promise<void | T[]>;
|
|
83
|
+
loadAll(options?: KubeObjectStoreLoadAllParams): Promise<void | T[]>;
|
|
66
84
|
reloadAll(opts?: {
|
|
67
85
|
force?: boolean;
|
|
68
86
|
namespaces?: string[];
|
|
@@ -99,7 +117,7 @@ export declare abstract class KubeObjectStore<T extends KubeObject> extends Item
|
|
|
99
117
|
removeSelectedItems(): Promise<void[]>;
|
|
100
118
|
protected eventsBuffer: import("mobx").IObservableArray<IKubeWatchEvent<KubeJsonApiData>>;
|
|
101
119
|
protected bindWatchEventsUpdater(delay?: number): void;
|
|
102
|
-
subscribe(): () => void;
|
|
120
|
+
subscribe(opts?: KubeObjectStoreSubscribeParams): () => void;
|
|
103
121
|
private watchNamespace;
|
|
104
122
|
protected updateFromEventsBuffer(): void;
|
|
105
123
|
}
|
|
@@ -28,11 +28,34 @@ export interface IKubeWatchEvent<T extends KubeJsonApiData> {
|
|
|
28
28
|
type: "ADDED" | "MODIFIED" | "DELETED" | "ERROR";
|
|
29
29
|
object?: T;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
interface KubeWatchPreloadOptions {
|
|
32
|
+
/**
|
|
33
|
+
* The namespaces to watch
|
|
34
|
+
* @default all-accessible
|
|
35
|
+
*/
|
|
32
36
|
namespaces?: string[];
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
/**
|
|
38
|
+
* Whether to skip loading if the store is already loaded
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
35
41
|
loadOnce?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* A function that is called when listing fails. If set then blocks errors
|
|
44
|
+
* being rejected with
|
|
45
|
+
*/
|
|
46
|
+
onLoadFailure?: (err: any) => void;
|
|
47
|
+
}
|
|
48
|
+
export interface KubeWatchSubscribeStoreOptions extends KubeWatchPreloadOptions {
|
|
49
|
+
/**
|
|
50
|
+
* Whether to subscribe only after loading all stores
|
|
51
|
+
* @default true
|
|
52
|
+
*/
|
|
53
|
+
waitUntilLoaded?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Whether to preload the stores before watching
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
preload?: boolean;
|
|
36
59
|
}
|
|
37
60
|
export interface IKubeWatchLog {
|
|
38
61
|
message: string | string[] | Error;
|
|
@@ -43,14 +66,12 @@ export declare class KubeWatchApi {
|
|
|
43
66
|
context: ClusterContext;
|
|
44
67
|
constructor();
|
|
45
68
|
isAllowedApi(api: KubeApi<KubeObject>): boolean;
|
|
46
|
-
preloadStores(stores: KubeObjectStore<KubeObject>[],
|
|
47
|
-
namespaces?: string[];
|
|
48
|
-
loadOnce?: boolean;
|
|
49
|
-
}): {
|
|
69
|
+
preloadStores(stores: KubeObjectStore<KubeObject>[], { loadOnce, namespaces, onLoadFailure }?: KubeWatchPreloadOptions): {
|
|
50
70
|
loading: Promise<PromiseSettledResult<any>[]>;
|
|
51
71
|
cancelLoading: () => void;
|
|
52
72
|
};
|
|
53
|
-
subscribeStores(stores: KubeObjectStore<KubeObject>[], opts?:
|
|
73
|
+
subscribeStores(stores: KubeObjectStore<KubeObject>[], opts?: KubeWatchSubscribeStoreOptions): Disposer;
|
|
54
74
|
protected log({ message, cssStyle, meta }: IKubeWatchLog): void;
|
|
55
75
|
}
|
|
56
76
|
export declare const kubeWatchApi: KubeWatchApi;
|
|
77
|
+
export {};
|
|
@@ -20,17 +20,13 @@
|
|
|
20
20
|
*/
|
|
21
21
|
/// <reference types="node" />
|
|
22
22
|
import { ObservableToggleSet } from "../utils";
|
|
23
|
-
import type {
|
|
23
|
+
import type { editor } from "monaco-editor";
|
|
24
24
|
export interface KubeconfigSyncEntry extends KubeconfigSyncValue {
|
|
25
25
|
filePath: string;
|
|
26
26
|
}
|
|
27
27
|
export interface KubeconfigSyncValue {
|
|
28
28
|
}
|
|
29
|
-
export
|
|
30
|
-
miniMap?: monaco.editor.IEditorMinimapOptions;
|
|
31
|
-
lineNumbers?: monaco.editor.LineNumbersType;
|
|
32
|
-
tabSize?: number;
|
|
33
|
-
}
|
|
29
|
+
export declare type EditorConfiguration = Pick<editor.IStandaloneEditorConstructionOptions, "minimap" | "tabSize" | "lineNumbers">;
|
|
34
30
|
export declare const defaultEditorConfig: EditorConfiguration;
|
|
35
31
|
interface PreferenceDescription<T, R = T> {
|
|
36
32
|
fromStore(val: T | undefined): R;
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { BaseStore } from "../base-store";
|
|
22
22
|
import { ObservableToggleSet } from "../../renderer/utils";
|
|
23
|
-
import { KubeconfigSyncValue, UserPreferencesModel
|
|
24
|
-
import type { monaco } from "react-monaco-editor";
|
|
23
|
+
import { EditorConfiguration, KubeconfigSyncValue, UserPreferencesModel } from "./preferences-helpers";
|
|
25
24
|
export interface UserStoreModel {
|
|
26
25
|
lastSeenAppVersion: string;
|
|
27
26
|
preferences: UserPreferencesModel;
|
|
28
27
|
}
|
|
29
28
|
export declare class UserStore extends BaseStore<UserStoreModel> {
|
|
29
|
+
readonly displayName = "UserStore";
|
|
30
30
|
constructor();
|
|
31
31
|
lastSeenAppVersion: string;
|
|
32
32
|
/**
|
|
@@ -69,10 +69,6 @@ export declare class UserStore extends BaseStore<UserStoreModel> {
|
|
|
69
69
|
get resolvedShell(): string | undefined;
|
|
70
70
|
get isAllowedToDowngrade(): boolean;
|
|
71
71
|
startMainReactions(): void;
|
|
72
|
-
getEditorOptions(): monaco.editor.IStandaloneEditorConstructionOptions;
|
|
73
|
-
setEditorLineNumbers(lineNumbers: monaco.editor.LineNumbersType): void;
|
|
74
|
-
setEditorTabSize(tabSize: number): void;
|
|
75
|
-
enableEditorMinimap(miniMap: boolean): void;
|
|
76
72
|
/**
|
|
77
73
|
* Checks if a column (by ID) for a table (by ID) is configured to be hidden
|
|
78
74
|
* @param tableId The ID of the table to be checked against
|
|
@@ -18,7 +18,15 @@
|
|
|
18
18
|
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Computes utf-8 from base64
|
|
23
|
+
* @param data A Base64 encoded string
|
|
24
|
+
* @returns The original utf-8 string
|
|
25
|
+
*/
|
|
26
|
+
export declare function decode(data: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* Computes base64 from utf-8
|
|
29
|
+
* @param data A normal string
|
|
30
|
+
* @returns A base64 encoded version
|
|
31
|
+
*/
|
|
32
|
+
export declare function encode(data: string): string;
|
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
export declare function noop<T extends any[]>(...args: T): void;
|
|
25
25
|
export * from "./app-version";
|
|
26
26
|
export * from "./autobind";
|
|
27
|
-
export * from "./base64";
|
|
28
27
|
export * from "./camelCase";
|
|
29
28
|
export * from "./cloneJson";
|
|
30
29
|
export * from "./cluster-id-url-parsing";
|
|
@@ -57,4 +56,5 @@ export * from "./types";
|
|
|
57
56
|
import * as iter from "./iter";
|
|
58
57
|
import * as array from "./array";
|
|
59
58
|
import * as tuple from "./tuple";
|
|
60
|
-
|
|
59
|
+
import * as base64 from "./base64";
|
|
60
|
+
export { iter, array, tuple, base64, };
|
|
@@ -33,6 +33,7 @@ export interface WeblinkStoreModel {
|
|
|
33
33
|
weblinks: WeblinkData[];
|
|
34
34
|
}
|
|
35
35
|
export declare class WeblinkStore extends BaseStore<WeblinkStoreModel> {
|
|
36
|
+
readonly displayName = "WeblinkStore";
|
|
36
37
|
weblinks: WeblinkData[];
|
|
37
38
|
constructor();
|
|
38
39
|
protected fromStore(data?: Partial<WeblinkStoreModel>): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[0],{
|
|
2
|
+
|
|
3
|
+
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js":
|
|
4
|
+
/*!**********************************************************************!*\
|
|
5
|
+
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js ***!
|
|
6
|
+
\**********************************************************************/
|
|
7
|
+
/*! exports provided: conf, language */
|
|
8
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"conf\", function() { return conf; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"language\", function() { return language; });\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nvar conf = {\n comments: {\n lineComment: '//',\n blockComment: ['/*', '*/']\n },\n brackets: [\n ['{', '}'],\n ['[', ']'],\n ['(', ')']\n ],\n autoClosingPairs: [\n { open: '[', close: ']' },\n { open: '{', close: '}' },\n { open: '(', close: ')' },\n { open: \"'\", close: \"'\", notIn: ['string', 'comment'] },\n { open: '\"', close: '\"', notIn: ['string'] }\n ],\n surroundingPairs: [\n { open: '{', close: '}' },\n { open: '[', close: ']' },\n { open: '(', close: ')' },\n { open: '\"', close: '\"' },\n { open: \"'\", close: \"'\" }\n ],\n folding: {\n markers: {\n start: new RegExp('^\\\\s*#pragma\\\\s+region\\\\b'),\n end: new RegExp('^\\\\s*#pragma\\\\s+endregion\\\\b')\n }\n }\n};\nvar language = {\n defaultToken: '',\n tokenPostfix: '.cpp',\n brackets: [\n { token: 'delimiter.curly', open: '{', close: '}' },\n { token: 'delimiter.parenthesis', open: '(', close: ')' },\n { token: 'delimiter.square', open: '[', close: ']' },\n { token: 'delimiter.angle', open: '<', close: '>' }\n ],\n keywords: [\n 'abstract',\n 'amp',\n 'array',\n 'auto',\n 'bool',\n 'break',\n 'case',\n 'catch',\n 'char',\n 'class',\n 'const',\n 'constexpr',\n 'const_cast',\n 'continue',\n 'cpu',\n 'decltype',\n 'default',\n 'delegate',\n 'delete',\n 'do',\n 'double',\n 'dynamic_cast',\n 'each',\n 'else',\n 'enum',\n 'event',\n 'explicit',\n 'export',\n 'extern',\n 'false',\n 'final',\n 'finally',\n 'float',\n 'for',\n 'friend',\n 'gcnew',\n 'generic',\n 'goto',\n 'if',\n 'in',\n 'initonly',\n 'inline',\n 'int',\n 'interface',\n 'interior_ptr',\n 'internal',\n 'literal',\n 'long',\n 'mutable',\n 'namespace',\n 'new',\n 'noexcept',\n 'nullptr',\n '__nullptr',\n 'operator',\n 'override',\n 'partial',\n 'pascal',\n 'pin_ptr',\n 'private',\n 'property',\n 'protected',\n 'public',\n 'ref',\n 'register',\n 'reinterpret_cast',\n 'restrict',\n 'return',\n 'safe_cast',\n 'sealed',\n 'short',\n 'signed',\n 'sizeof',\n 'static',\n 'static_assert',\n 'static_cast',\n 'struct',\n 'switch',\n 'template',\n 'this',\n 'thread_local',\n 'throw',\n 'tile_static',\n 'true',\n 'try',\n 'typedef',\n 'typeid',\n 'typename',\n 'union',\n 'unsigned',\n 'using',\n 'virtual',\n 'void',\n 'volatile',\n 'wchar_t',\n 'where',\n 'while',\n '_asm',\n '_based',\n '_cdecl',\n '_declspec',\n '_fastcall',\n '_if_exists',\n '_if_not_exists',\n '_inline',\n '_multiple_inheritance',\n '_pascal',\n '_single_inheritance',\n '_stdcall',\n '_virtual_inheritance',\n '_w64',\n '__abstract',\n '__alignof',\n '__asm',\n '__assume',\n '__based',\n '__box',\n '__builtin_alignof',\n '__cdecl',\n '__clrcall',\n '__declspec',\n '__delegate',\n '__event',\n '__except',\n '__fastcall',\n '__finally',\n '__forceinline',\n '__gc',\n '__hook',\n '__identifier',\n '__if_exists',\n '__if_not_exists',\n '__inline',\n '__int128',\n '__int16',\n '__int32',\n '__int64',\n '__int8',\n '__interface',\n '__leave',\n '__m128',\n '__m128d',\n '__m128i',\n '__m256',\n '__m256d',\n '__m256i',\n '__m64',\n '__multiple_inheritance',\n '__newslot',\n '__nogc',\n '__noop',\n '__nounwind',\n '__novtordisp',\n '__pascal',\n '__pin',\n '__pragma',\n '__property',\n '__ptr32',\n '__ptr64',\n '__raise',\n '__restrict',\n '__resume',\n '__sealed',\n '__single_inheritance',\n '__stdcall',\n '__super',\n '__thiscall',\n '__try',\n '__try_cast',\n '__typeof',\n '__unaligned',\n '__unhook',\n '__uuidof',\n '__value',\n '__virtual_inheritance',\n '__w64',\n '__wchar_t'\n ],\n operators: [\n '=',\n '>',\n '<',\n '!',\n '~',\n '?',\n ':',\n '==',\n '<=',\n '>=',\n '!=',\n '&&',\n '||',\n '++',\n '--',\n '+',\n '-',\n '*',\n '/',\n '&',\n '|',\n '^',\n '%',\n '<<',\n '>>',\n '>>>',\n '+=',\n '-=',\n '*=',\n '/=',\n '&=',\n '|=',\n '^=',\n '%=',\n '<<=',\n '>>=',\n '>>>='\n ],\n // we include these common regular expressions\n symbols: /[=><!~?:&|+\\-*\\/\\^%]+/,\n escapes: /\\\\(?:[abfnrtv\\\\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,\n integersuffix: /([uU](ll|LL|l|L)|(ll|LL|l|L)?[uU]?)/,\n floatsuffix: /[fFlL]?/,\n encoding: /u|u8|U|L/,\n // The main tokenizer for our languages\n tokenizer: {\n root: [\n // C++ 11 Raw String\n [/@encoding?R\\\"(?:([^ ()\\\\\\t]*))\\(/, { token: 'string.raw.begin', next: '@raw.$1' }],\n // identifiers and keywords\n [\n /[a-zA-Z_]\\w*/,\n {\n cases: {\n '@keywords': { token: 'keyword.$0' },\n '@default': 'identifier'\n }\n }\n ],\n // The preprocessor checks must be before whitespace as they check /^\\s*#/ which\n // otherwise fails to match later after other whitespace has been removed.\n // Inclusion\n [/^\\s*#\\s*include/, { token: 'keyword.directive.include', next: '@include' }],\n // Preprocessor directive\n [/^\\s*#\\s*\\w+/, 'keyword.directive'],\n // whitespace\n { include: '@whitespace' },\n // [[ attributes ]].\n [/\\[\\s*\\[/, { token: 'annotation', next: '@annotation' }],\n // delimiters and operators\n [/[{}()\\[\\]]/, '@brackets'],\n [/[<>](?!@symbols)/, '@brackets'],\n [\n /@symbols/,\n {\n cases: {\n '@operators': 'delimiter',\n '@default': ''\n }\n }\n ],\n // numbers\n [/\\d*\\d+[eE]([\\-+]?\\d+)?(@floatsuffix)/, 'number.float'],\n [/\\d*\\.\\d+([eE][\\-+]?\\d+)?(@floatsuffix)/, 'number.float'],\n [/0[xX][0-9a-fA-F']*[0-9a-fA-F](@integersuffix)/, 'number.hex'],\n [/0[0-7']*[0-7](@integersuffix)/, 'number.octal'],\n [/0[bB][0-1']*[0-1](@integersuffix)/, 'number.binary'],\n [/\\d[\\d']*\\d(@integersuffix)/, 'number'],\n [/\\d(@integersuffix)/, 'number'],\n // delimiter: after number because of .\\d floats\n [/[;,.]/, 'delimiter'],\n // strings\n [/\"([^\"\\\\]|\\\\.)*$/, 'string.invalid'],\n [/\"/, 'string', '@string'],\n // characters\n [/'[^\\\\']'/, 'string'],\n [/(')(@escapes)(')/, ['string', 'string.escape', 'string']],\n [/'/, 'string.invalid']\n ],\n whitespace: [\n [/[ \\t\\r\\n]+/, ''],\n [/\\/\\*\\*(?!\\/)/, 'comment.doc', '@doccomment'],\n [/\\/\\*/, 'comment', '@comment'],\n [/\\/\\/.*\\\\$/, 'comment', '@linecomment'],\n [/\\/\\/.*$/, 'comment']\n ],\n comment: [\n [/[^\\/*]+/, 'comment'],\n [/\\*\\//, 'comment', '@pop'],\n [/[\\/*]/, 'comment']\n ],\n //For use with continuous line comments\n linecomment: [\n [/.*[^\\\\]$/, 'comment', '@pop'],\n [/[^]+/, 'comment']\n ],\n //Identical copy of comment above, except for the addition of .doc\n doccomment: [\n [/[^\\/*]+/, 'comment.doc'],\n [/\\*\\//, 'comment.doc', '@pop'],\n [/[\\/*]/, 'comment.doc']\n ],\n string: [\n [/[^\\\\\"]+/, 'string'],\n [/@escapes/, 'string.escape'],\n [/\\\\./, 'string.escape.invalid'],\n [/\"/, 'string', '@pop']\n ],\n raw: [\n [\n /(.*)(\\))(?:([^ ()\\\\\\t\"]*))(\\\")/,\n {\n cases: {\n '$3==$S2': [\n 'string.raw',\n 'string.raw.end',\n 'string.raw.end',\n { token: 'string.raw.end', next: '@pop' }\n ],\n '@default': ['string.raw', 'string.raw', 'string.raw', 'string.raw']\n }\n }\n ],\n [/.*/, 'string.raw']\n ],\n annotation: [\n { include: '@whitespace' },\n [/using|alignas/, 'keyword'],\n [/[a-zA-Z0-9_]+/, 'annotation'],\n [/[,:]/, 'delimiter'],\n [/[()]/, '@brackets'],\n [/\\]\\s*\\]/, { token: 'annotation', next: '@pop' }]\n ],\n include: [\n [\n /(\\s*)(<)([^<>]*)(>)/,\n [\n '',\n 'keyword.directive.include.begin',\n 'string.include.identifier',\n { token: 'keyword.directive.include.end', next: '@pop' }\n ]\n ],\n [\n /(\\s*)(\")([^\"]*)(\")/,\n [\n '',\n 'keyword.directive.include.begin',\n 'string.include.identifier',\n { token: 'keyword.directive.include.end', next: '@pop' }\n ]\n ]\n ]\n }\n};\n\n\n//# sourceURL=webpack:///./node_modules/monaco-editor/esm/vs/basic-languages/cpp/cpp.js?");
|
|
12
|
+
|
|
13
|
+
/***/ })
|
|
14
|
+
|
|
15
|
+
}]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{
|
|
2
|
+
|
|
3
|
+
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.js":
|
|
4
|
+
/*!******************************************************************************************!*\
|
|
5
|
+
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.js ***!
|
|
6
|
+
\******************************************************************************************/
|
|
7
|
+
/*! exports provided: conf, language */
|
|
8
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"conf\", function() { return conf; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"language\", function() { return language; });\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nvar conf = {\n comments: {\n lineComment: '//',\n blockComment: ['/*', '*/']\n },\n brackets: [\n ['{', '}'],\n ['[', ']'],\n ['(', ')'],\n ['begin', 'end'],\n ['case', 'endcase'],\n ['casex', 'endcase'],\n ['casez', 'endcase'],\n ['checker', 'endchecker'],\n ['class', 'endclass'],\n ['clocking', 'endclocking'],\n ['config', 'endconfig'],\n ['function', 'endfunction'],\n ['generate', 'endgenerate'],\n ['group', 'endgroup'],\n ['interface', 'endinterface'],\n ['module', 'endmodule'],\n ['package', 'endpackage'],\n ['primitive', 'endprimitive'],\n ['program', 'endprogram'],\n ['property', 'endproperty'],\n ['specify', 'endspecify'],\n ['sequence', 'endsequence'],\n ['table', 'endtable'],\n ['task', 'endtask']\n ],\n autoClosingPairs: [\n { open: '[', close: ']' },\n { open: '{', close: '}' },\n { open: '(', close: ')' },\n { open: \"'\", close: \"'\", notIn: ['string', 'comment'] },\n { open: '\"', close: '\"', notIn: ['string'] }\n ],\n surroundingPairs: [\n { open: '{', close: '}' },\n { open: '[', close: ']' },\n { open: '(', close: ')' },\n { open: '\"', close: '\"' },\n { open: \"'\", close: \"'\" }\n ],\n folding: {\n offSide: false,\n markers: {\n start: new RegExp('^(?:\\\\s*|.*(?!\\\\/[\\\\/\\\\*])[^\\\\w])(?:begin|case(x|z)?|class|clocking|config|covergroup|function|generate|interface|module|package|primitive|property|program|sequence|specify|table|task)\\\\b'),\n end: new RegExp('^(?:\\\\s*|.*(?!\\\\/[\\\\/\\\\*])[^\\\\w])(?:end|endcase|endclass|endclocking|endconfig|endgroup|endfunction|endgenerate|endinterface|endmodule|endpackage|endprimitive|endproperty|endprogram|endsequence|endspecify|endtable|endtask)\\\\b')\n }\n }\n};\nvar language = {\n defaultToken: '',\n tokenPostfix: '.sv',\n brackets: [\n { token: 'delimiter.curly', open: '{', close: '}' },\n { token: 'delimiter.parenthesis', open: '(', close: ')' },\n { token: 'delimiter.square', open: '[', close: ']' },\n { token: 'delimiter.angle', open: '<', close: '>' }\n ],\n keywords: [\n 'accept_on',\n 'alias',\n 'always',\n 'always_comb',\n 'always_ff',\n 'always_latch',\n 'and',\n 'assert',\n 'assign',\n 'assume',\n 'automatic',\n 'before',\n 'begin',\n 'bind',\n 'bins',\n 'binsof',\n 'bit',\n 'break',\n 'buf',\n 'bufif0',\n 'bufif1',\n 'byte',\n 'case',\n 'casex',\n 'casez',\n 'cell',\n 'chandle',\n 'checker',\n 'class',\n 'clocking',\n 'cmos',\n 'config',\n 'const',\n 'constraint',\n 'context',\n 'continue',\n 'cover',\n 'covergroup',\n 'coverpoint',\n 'cross',\n 'deassign',\n 'default',\n 'defparam',\n 'design',\n 'disable',\n 'dist',\n 'do',\n 'edge',\n 'else',\n 'end',\n 'endcase',\n 'endchecker',\n 'endclass',\n 'endclocking',\n 'endconfig',\n 'endfunction',\n 'endgenerate',\n 'endgroup',\n 'endinterface',\n 'endmodule',\n 'endpackage',\n 'endprimitive',\n 'endprogram',\n 'endproperty',\n 'endspecify',\n 'endsequence',\n 'endtable',\n 'endtask',\n 'enum',\n 'event',\n 'eventually',\n 'expect',\n 'export',\n 'extends',\n 'extern',\n 'final',\n 'first_match',\n 'for',\n 'force',\n 'foreach',\n 'forever',\n 'fork',\n 'forkjoin',\n 'function',\n 'generate',\n 'genvar',\n 'global',\n 'highz0',\n 'highz1',\n 'if',\n 'iff',\n 'ifnone',\n 'ignore_bins',\n 'illegal_bins',\n 'implements',\n 'implies',\n 'import',\n 'incdir',\n 'include',\n 'initial',\n 'inout',\n 'input',\n 'inside',\n 'instance',\n 'int',\n 'integer',\n 'interconnect',\n 'interface',\n 'intersect',\n 'join',\n 'join_any',\n 'join_none',\n 'large',\n 'let',\n 'liblist',\n 'library',\n 'local',\n 'localparam',\n 'logic',\n 'longint',\n 'macromodule',\n 'matches',\n 'medium',\n 'modport',\n 'module',\n 'nand',\n 'negedge',\n 'nettype',\n 'new',\n 'nexttime',\n 'nmos',\n 'nor',\n 'noshowcancelled',\n 'not',\n 'notif0',\n 'notif1',\n 'null',\n 'or',\n 'output',\n 'package',\n 'packed',\n 'parameter',\n 'pmos',\n 'posedge',\n 'primitive',\n 'priority',\n 'program',\n 'property',\n 'protected',\n 'pull0',\n 'pull1',\n 'pulldown',\n 'pullup',\n 'pulsestyle_ondetect',\n 'pulsestyle_onevent',\n 'pure',\n 'rand',\n 'randc',\n 'randcase',\n 'randsequence',\n 'rcmos',\n 'real',\n 'realtime',\n 'ref',\n 'reg',\n 'reject_on',\n 'release',\n 'repeat',\n 'restrict',\n 'return',\n 'rnmos',\n 'rpmos',\n 'rtran',\n 'rtranif0',\n 'rtranif1',\n 's_always',\n 's_eventually',\n 's_nexttime',\n 's_until',\n 's_until_with',\n 'scalared',\n 'sequence',\n 'shortint',\n 'shortreal',\n 'showcancelled',\n 'signed',\n 'small',\n 'soft',\n 'solve',\n 'specify',\n 'specparam',\n 'static',\n 'string',\n 'strong',\n 'strong0',\n 'strong1',\n 'struct',\n 'super',\n 'supply0',\n 'supply1',\n 'sync_accept_on',\n 'sync_reject_on',\n 'table',\n 'tagged',\n 'task',\n 'this',\n 'throughout',\n 'time',\n 'timeprecision',\n 'timeunit',\n 'tran',\n 'tranif0',\n 'tranif1',\n 'tri',\n 'tri0',\n 'tri1',\n 'triand',\n 'trior',\n 'trireg',\n 'type',\n 'typedef',\n 'union',\n 'unique',\n 'unique0',\n 'unsigned',\n 'until',\n 'until_with',\n 'untyped',\n 'use',\n 'uwire',\n 'var',\n 'vectored',\n 'virtual',\n 'void',\n 'wait',\n 'wait_order',\n 'wand',\n 'weak',\n 'weak0',\n 'weak1',\n 'while',\n 'wildcard',\n 'wire',\n 'with',\n 'within',\n 'wor',\n 'xnor',\n 'xor'\n ],\n builtin_gates: [\n 'and',\n 'nand',\n 'nor',\n 'or',\n 'xor',\n 'xnor',\n 'buf',\n 'not',\n 'bufif0',\n 'bufif1',\n 'notif1',\n 'notif0',\n 'cmos',\n 'nmos',\n 'pmos',\n 'rcmos',\n 'rnmos',\n 'rpmos',\n 'tran',\n 'tranif1',\n 'tranif0',\n 'rtran',\n 'rtranif1',\n 'rtranif0'\n ],\n operators: [\n // assignment operators\n '=',\n '+=',\n '-=',\n '*=',\n '/=',\n '%=',\n '&=',\n '|=',\n '^=',\n '<<=',\n '>>+',\n '<<<=',\n '>>>=',\n // conditional expression\n '?',\n ':',\n // Unary operators\n '+',\n '-',\n '!',\n '~',\n '&',\n '~&',\n '|',\n '~|',\n '^',\n '~^',\n '^~',\n //binary operators\n '+',\n '-',\n '*',\n '/',\n '%',\n '==',\n '!=',\n '===',\n '!==',\n '==?',\n '!=?',\n '&&',\n '||',\n '**',\n '<',\n '<=',\n '>',\n '>=',\n '&',\n '|',\n '^',\n '>>',\n '<<',\n '>>>',\n '<<<',\n // increment or decrement operator\n '++',\n '--',\n //binary logical operator\n '->',\n '<->',\n // binary set membership operator\n 'inside',\n // binary distrubution operator\n 'dist',\n '::',\n '+:',\n '-:',\n '*>',\n '&&&',\n '|->',\n '|=>',\n '#=#'\n ],\n // we include these common regular expressions\n symbols: /[=><!~?:&|+\\-*\\/\\^%#]+/,\n escapes: /%%|\\\\(?:[antvf\\\\\"']|x[0-9A-Fa-f]{1,2}|[0-7]{1,3})/,\n identifier: /(?:[a-zA-Z_][a-zA-Z0-9_$\\.]*|\\\\\\S+ )/,\n systemcall: /[$][a-zA-Z0-9_]+/,\n timeunits: /s|ms|us|ns|ps|fs/,\n // The main tokenizer for our languages\n tokenizer: {\n root: [\n // module instances\n [\n /^(\\s*)(@identifier)/,\n [\n '',\n {\n cases: {\n '@builtin_gates': {\n token: 'keyword.$2',\n next: '@module_instance'\n },\n table: {\n token: 'keyword.$2',\n next: '@table'\n },\n '@keywords': { token: 'keyword.$2' },\n '@default': {\n token: 'identifier',\n next: '@module_instance'\n }\n }\n }\n ]\n ],\n // include statements\n [/^\\s*`include/, { token: 'keyword.directive.include', next: '@include' }],\n // Preprocessor directives\n [/^\\s*`\\s*\\w+/, 'keyword'],\n // identifiers and keywords\n { include: '@identifier_or_keyword' },\n // whitespace and comments\n { include: '@whitespace' },\n // (* attributes *).\n [/\\(\\*.*\\*\\)/, 'annotation'],\n // Systemcall\n [/@systemcall/, 'variable.predefined'],\n // delimiters and operators\n [/[{}()\\[\\]]/, '@brackets'],\n [/[<>](?!@symbols)/, '@brackets'],\n [\n /@symbols/,\n {\n cases: {\n '@operators': 'delimiter',\n '@default': ''\n }\n }\n ],\n // numbers\n { include: '@numbers' },\n // delimiter: after number because of .\\d floats\n [/[;,.]/, 'delimiter'],\n // strings\n { include: '@strings' }\n ],\n identifier_or_keyword: [\n [\n /@identifier/,\n {\n cases: {\n '@keywords': { token: 'keyword.$0' },\n '@default': 'identifier'\n }\n }\n ]\n ],\n numbers: [\n [/\\d+?[\\d_]*(?:\\.[\\d_]+)?[eE][\\-+]?\\d+/, 'number.float'],\n [/\\d+?[\\d_]*\\.[\\d_]+(?:\\s*@timeunits)?/, 'number.float'],\n [/(?:\\d+?[\\d_]*\\s*)?'[sS]?[dD]\\s*[0-9xXzZ?]+?[0-9xXzZ?_]*/, 'number'],\n [/(?:\\d+?[\\d_]*\\s*)?'[sS]?[bB]\\s*[0-1xXzZ?]+?[0-1xXzZ?_]*/, 'number.binary'],\n [/(?:\\d+?[\\d_]*\\s*)?'[sS]?[oO]\\s*[0-7xXzZ?]+?[0-7xXzZ?_]*/, 'number.octal'],\n [/(?:\\d+?[\\d_]*\\s*)?'[sS]?[hH]\\s*[0-9a-fA-FxXzZ?]+?[0-9a-fA-FxXzZ?_]*/, 'number.hex'],\n [/1step/, 'number'],\n [/[\\dxXzZ]+?[\\dxXzZ_]*(?:\\s*@timeunits)?/, 'number'],\n [/'[01xXzZ]+/, 'number']\n ],\n module_instance: [\n { include: '@whitespace' },\n [/(#?)(\\()/, ['', { token: '@brackets', next: '@port_connection' }]],\n [/@identifier\\s*[;={}\\[\\],]/, { token: '@rematch', next: '@pop' }],\n [/@symbols|[;={}\\[\\],]/, { token: '@rematch', next: '@pop' }],\n [/@identifier/, 'type'],\n [/;/, 'delimiter', '@pop']\n ],\n port_connection: [\n { include: '@identifier_or_keyword' },\n { include: '@whitespace' },\n [/@systemcall/, 'variable.predefined'],\n { include: '@numbers' },\n { include: '@strings' },\n [/[,]/, 'delimiter'],\n [/\\(/, '@brackets', '@port_connection'],\n [/\\)/, '@brackets', '@pop']\n ],\n whitespace: [\n [/[ \\t\\r\\n]+/, ''],\n [/\\/\\*/, 'comment', '@comment'],\n [/\\/\\/.*$/, 'comment']\n ],\n comment: [\n [/[^\\/*]+/, 'comment'],\n [/\\*\\//, 'comment', '@pop'],\n [/[\\/*]/, 'comment']\n ],\n strings: [\n [/\"([^\"\\\\]|\\\\.)*$/, 'string.invalid'],\n [/\"/, 'string', '@string']\n ],\n string: [\n [/[^\\\\\"]+/, 'string'],\n [/@escapes/, 'string.escape'],\n [/\\\\./, 'string.escape.invalid'],\n [/\"/, 'string', '@pop']\n ],\n include: [\n [\n /(\\s*)(\")([\\w*\\/*]*)(.\\w*)(\")/,\n [\n '',\n 'string.include.identifier',\n 'string.include.identifier',\n 'string.include.identifier',\n { token: 'string.include.identifier', next: '@pop' }\n ]\n ],\n [\n /(\\s*)(<)([\\w*\\/*]*)(.\\w*)(>)/,\n [\n '',\n 'string.include.identifier',\n 'string.include.identifier',\n 'string.include.identifier',\n { token: 'string.include.identifier', next: '@pop' }\n ]\n ]\n ],\n table: [\n { include: '@whitespace' },\n [/[()]/, '@brackets'],\n [/[:;]/, 'delimiter'],\n [/[01\\-*?xXbBrRfFpPnN]/, 'variable.predefined'],\n ['endtable', 'keyword.endtable', '@pop']\n ]\n }\n};\n\n\n//# sourceURL=webpack:///./node_modules/monaco-editor/esm/vs/basic-languages/systemverilog/systemverilog.js?");
|
|
12
|
+
|
|
13
|
+
/***/ })
|
|
14
|
+
|
|
15
|
+
}]);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[10],{
|
|
2
|
+
|
|
3
|
+
/***/ "./node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.js":
|
|
4
|
+
/*!**********************************************************************!*\
|
|
5
|
+
!*** ./node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.js ***!
|
|
6
|
+
\**********************************************************************/
|
|
7
|
+
/*! exports provided: conf, language */
|
|
8
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"conf\", function() { return conf; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"language\", function() { return language; });\n/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nvar conf = {\n comments: {\n lineComment: 'REM'\n },\n brackets: [\n ['{', '}'],\n ['[', ']'],\n ['(', ')']\n ],\n autoClosingPairs: [\n { open: '{', close: '}' },\n { open: '[', close: ']' },\n { open: '(', close: ')' },\n { open: '\"', close: '\"' }\n ],\n surroundingPairs: [\n { open: '[', close: ']' },\n { open: '(', close: ')' },\n { open: '\"', close: '\"' }\n ],\n folding: {\n markers: {\n start: new RegExp('^\\\\s*(::\\\\s*|REM\\\\s+)#region'),\n end: new RegExp('^\\\\s*(::\\\\s*|REM\\\\s+)#endregion')\n }\n }\n};\nvar language = {\n defaultToken: '',\n ignoreCase: true,\n tokenPostfix: '.bat',\n brackets: [\n { token: 'delimiter.bracket', open: '{', close: '}' },\n { token: 'delimiter.parenthesis', open: '(', close: ')' },\n { token: 'delimiter.square', open: '[', close: ']' }\n ],\n keywords: /call|defined|echo|errorlevel|exist|for|goto|if|pause|set|shift|start|title|not|pushd|popd/,\n // we include these common regular expressions\n symbols: /[=><!~?&|+\\-*\\/\\^;\\.,]+/,\n escapes: /\\\\(?:[abfnrtv\\\\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,\n // The main tokenizer for our languages\n tokenizer: {\n root: [\n [/^(\\s*)(rem(?:\\s.*|))$/, ['', 'comment']],\n [/(\\@?)(@keywords)(?!\\w)/, [{ token: 'keyword' }, { token: 'keyword.$2' }]],\n // whitespace\n [/[ \\t\\r\\n]+/, ''],\n // blocks\n [/setlocal(?!\\w)/, 'keyword.tag-setlocal'],\n [/endlocal(?!\\w)/, 'keyword.tag-setlocal'],\n // words\n [/[a-zA-Z_]\\w*/, ''],\n // labels\n [/:\\w*/, 'metatag'],\n // variables\n [/%[^%]+%/, 'variable'],\n [/%%[\\w]+(?!\\w)/, 'variable'],\n // punctuations\n [/[{}()\\[\\]]/, '@brackets'],\n [/@symbols/, 'delimiter'],\n // numbers\n [/\\d*\\.\\d+([eE][\\-+]?\\d+)?/, 'number.float'],\n [/0[xX][0-9a-fA-F_]*[0-9a-fA-F]/, 'number.hex'],\n [/\\d+/, 'number'],\n // punctuation: after number because of .\\d floats\n [/[;,.]/, 'delimiter'],\n // strings:\n [/\"/, 'string', '@string.\"'],\n [/'/, 'string', \"@string.'\"]\n ],\n string: [\n [\n /[^\\\\\"'%]+/,\n {\n cases: {\n '@eos': { token: 'string', next: '@popall' },\n '@default': 'string'\n }\n }\n ],\n [/@escapes/, 'string.escape'],\n [/\\\\./, 'string.escape.invalid'],\n [/%[\\w ]+%/, 'variable'],\n [/%%[\\w]+(?!\\w)/, 'variable'],\n [\n /[\"']/,\n {\n cases: {\n '$#==$S2': { token: 'string', next: '@pop' },\n '@default': 'string'\n }\n }\n ],\n [/$/, 'string', '@popall']\n ]\n }\n};\n\n\n//# sourceURL=webpack:///./node_modules/monaco-editor/esm/vs/basic-languages/bat/bat.js?");
|
|
12
|
+
|
|
13
|
+
/***/ })
|
|
14
|
+
|
|
15
|
+
}]);
|