@k8slens/extensions 5.3.1-git.16a26724d9.0 → 5.3.1-git.181197fad8.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/k8s-api/kube-json-api.d.ts +1 -2
- package/dist/src/extensions/extension-api.js +6 -6
- package/dist/src/extensions/renderer-api/k8s-api.d.ts +1 -0
- package/dist/src/renderer/api/terminal-api.d.ts +0 -2
- package/dist/src/renderer/components/switch/switcher.d.ts +1 -1
- package/package.json +1 -1
|
@@ -20,7 +20,6 @@
|
|
|
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";
|
|
24
23
|
export interface KubeJsonApiListMetadata {
|
|
25
24
|
resourceVersion: string;
|
|
26
25
|
selfLink?: string;
|
|
@@ -64,6 +63,6 @@ export interface KubeJsonApiError extends JsonApiError {
|
|
|
64
63
|
};
|
|
65
64
|
}
|
|
66
65
|
export declare class KubeJsonApi extends JsonApi<KubeJsonApiData> {
|
|
67
|
-
static forCluster(
|
|
66
|
+
static forCluster(clusterId: string): KubeJsonApi;
|
|
68
67
|
protected parseError(error: KubeJsonApiError | any, res: Response): string[];
|
|
69
68
|
}
|
|
@@ -38352,7 +38352,7 @@ eval("class Node {\n\t/// value;\n\t/// next;\n\n\tconstructor(value) {\n\t\tthi
|
|
|
38352
38352
|
/*! exports provided: name, productName, description, homepage, version, main, copyright, license, author, scripts, config, engines, jest, build, dependencies, devDependencies, default */
|
|
38353
38353
|
/***/ (function(module) {
|
|
38354
38354
|
|
|
38355
|
-
eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"open-lens\\\",\\\"productName\\\":\\\"OpenLens\\\",\\\"description\\\":\\\"OpenLens - Open Source IDE for Kubernetes\\\",\\\"homepage\\\":\\\"https://github.com/lensapp/lens\\\",\\\"version\\\":\\\"5.3.0\\\",\\\"main\\\":\\\"static/build/main.js\\\",\\\"copyright\\\":\\\"© 2021 OpenLens Authors\\\",\\\"license\\\":\\\"MIT\\\",\\\"author\\\":{\\\"name\\\":\\\"OpenLens Authors\\\",\\\"email\\\":\\\"info@k8slens.dev\\\"},\\\"scripts\\\":{\\\"dev\\\":\\\"concurrently -i -k \\\\\\\"yarn run dev-run -C\\\\\\\" yarn:dev:*\\\",\\\"dev-build\\\":\\\"concurrently yarn:compile:*\\\",\\\"debug-build\\\":\\\"concurrently yarn:compile:main yarn:compile:extension-types\\\",\\\"dev-run\\\":\\\"nodemon --watch static/build/main.js --exec \\\\\\\"electron --remote-debugging-port=9223 --inspect .\\\\\\\"\\\",\\\"dev:main\\\":\\\"yarn run compile:main --watch\\\",\\\"dev:renderer\\\":\\\"yarn run webpack-dev-server --config webpack.renderer.ts\\\",\\\"dev:extension-types\\\":\\\"yarn run compile:extension-types --watch\\\",\\\"compile\\\":\\\"env NODE_ENV=production concurrently yarn:compile:*\\\",\\\"compile:main\\\":\\\"yarn run webpack --config webpack.main.ts\\\",\\\"compile:renderer\\\":\\\"yarn run webpack --config webpack.renderer.ts\\\",\\\"compile:extension-types\\\":\\\"yarn run webpack --config webpack.extensions.ts\\\",\\\"npm:fix-build-version\\\":\\\"yarn run ts-node build/set_build_version.ts\\\",\\\"npm:fix-package-version\\\":\\\"yarn run ts-node build/set_npm_version.ts\\\",\\\"build:linux\\\":\\\"yarn run compile && electron-builder --linux --dir\\\",\\\"build:mac\\\":\\\"yarn run compile && electron-builder --mac --dir\\\",\\\"build:win\\\":\\\"yarn run compile && electron-builder --win --dir\\\",\\\"integration\\\":\\\"jest --runInBand --detectOpenHandles --forceExit integration\\\",\\\"dist\\\":\\\"yarn run compile && electron-builder --publish onTag\\\",\\\"dist:dir\\\":\\\"yarn run dist --dir -c.compression=store -c.mac.identity=null\\\",\\\"download-bins\\\":\\\"concurrently yarn:download:*\\\",\\\"download:kubectl\\\":\\\"yarn run ts-node build/download_kubectl.ts\\\",\\\"download:helm\\\":\\\"yarn run ts-node build/download_helm.ts\\\",\\\"build:tray-icons\\\":\\\"yarn run ts-node build/build_tray_icon.ts\\\",\\\"build:theme-vars\\\":\\\"yarn run ts-node build/build_theme_vars.ts\\\",\\\"lint\\\":\\\"PROD=true yarn run eslint --ext js,ts,tsx --max-warnings=0 .\\\",\\\"lint:fix\\\":\\\"yarn run lint --fix\\\",\\\"mkdocs-serve-local\\\":\\\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -it -p 8000:8000 -v ${PWD}:/docs mkdocs-serve-local:latest\\\",\\\"verify-docs\\\":\\\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -v ${PWD}:/docs mkdocs-serve-local:latest build --strict\\\",\\\"typedocs-extensions-api\\\":\\\"yarn run typedoc src/extensions/extension-api.ts\\\",\\\"version-checkout\\\":\\\"cat package.json | jq '.version' -r | xargs printf \\\\\\\"release/v%s\\\\\\\" | xargs git checkout -b\\\",\\\"version-commit\\\":\\\"cat package.json | jq '.version' -r | xargs printf \\\\\\\"release v%s\\\\\\\" | git commit --no-edit -s -F -\\\",\\\"version\\\":\\\"yarn run version-checkout && git add package.json && yarn run version-commit\\\",\\\"postversion\\\":\\\"git push --set-upstream ${GIT_REMOTE:-origin} release/v$npm_package_version\\\"},\\\"config\\\":{\\\"bundledKubectlVersion\\\":\\\"1.21.2\\\",\\\"bundledHelmVersion\\\":\\\"3.6.3\\\",\\\"sentryDsn\\\":\\\"\\\"},\\\"engines\\\":{\\\"node\\\":\\\">=14 <15\\\"},\\\"jest\\\":{\\\"collectCoverage\\\":false,\\\"verbose\\\":true,\\\"transform\\\":{\\\"^.+\\\\\\\\.tsx?$\\\":\\\"ts-jest\\\"},\\\"moduleNameMapper\\\":{\\\"\\\\\\\\.(css|scss)$\\\":\\\"<rootDir>/__mocks__/styleMock.ts\\\",\\\"\\\\\\\\.(svg)$\\\":\\\"<rootDir>/__mocks__/imageMock.ts\\\",\\\"src/(.*)\\\":\\\"<rootDir>/__mocks__/windowMock.ts\\\"},\\\"modulePathIgnorePatterns\\\":[\\\"<rootDir>/dist\\\",\\\"<rootDir>/src/extensions/npm\\\"],\\\"setupFiles\\\":[\\\"<rootDir>/src/jest.setup.ts\\\",\\\"jest-canvas-mock\\\"],\\\"globals\\\":{\\\"ts-jest\\\":{\\\"isolatedModules\\\":true}}},\\\"build\\\":{\\\"generateUpdatesFilesForAllChannels\\\":true,\\\"files\\\":[\\\"static/build/main.js\\\"],\\\"afterSign\\\":\\\"build/notarize.js\\\",\\\"extraResources\\\":[{\\\"from\\\":\\\"locales/\\\",\\\"to\\\":\\\"locales/\\\",\\\"filter\\\":\\\"**/*.js\\\"},{\\\"from\\\":\\\"static/\\\",\\\"to\\\":\\\"static/\\\",\\\"filter\\\":\\\"!**/main.js\\\"},{\\\"from\\\":\\\"build/tray\\\",\\\"to\\\":\\\"static/icons\\\",\\\"filter\\\":\\\"*.png\\\"},{\\\"from\\\":\\\"extensions/\\\",\\\"to\\\":\\\"./extensions/\\\",\\\"filter\\\":[\\\"**/*.tgz\\\",\\\"**/package.json\\\",\\\"!**/node_modules\\\"]},{\\\"from\\\":\\\"templates/\\\",\\\"to\\\":\\\"./templates/\\\",\\\"filter\\\":\\\"**/*.yaml\\\"},\\\"LICENSE\\\"],\\\"linux\\\":{\\\"category\\\":\\\"Network\\\",\\\"artifactName\\\":\\\"${productName}-${version}.${arch}.${ext}\\\",\\\"target\\\":[\\\"deb\\\",\\\"rpm\\\",\\\"AppImage\\\"],\\\"extraResources\\\":[{\\\"from\\\":\\\"binaries/client/linux/${arch}/kubectl\\\",\\\"to\\\":\\\"./${arch}/kubectl\\\"},{\\\"from\\\":\\\"binaries/client/${arch}/helm3/helm3\\\",\\\"to\\\":\\\"./helm3/helm3\\\"}]},\\\"rpm\\\":{\\\"fpm\\\":[\\\"--rpm-rpmbuild-define=%define _build_id_links none\\\"]},\\\"mac\\\":{\\\"hardenedRuntime\\\":true,\\\"gatekeeperAssess\\\":false,\\\"entitlements\\\":\\\"build/entitlements.mac.plist\\\",\\\"entitlementsInherit\\\":\\\"build/entitlements.mac.plist\\\",\\\"extraResources\\\":[{\\\"from\\\":\\\"binaries/client/darwin/${arch}/kubectl\\\",\\\"to\\\":\\\"./${arch}/kubectl\\\"},{\\\"from\\\":\\\"binaries/client/${arch}/helm3/helm3\\\",\\\"to\\\":\\\"./helm3/helm3\\\"}]},\\\"win\\\":{\\\"target\\\":[\\\"nsis\\\"],\\\"extraResources\\\":[{\\\"from\\\":\\\"binaries/client/windows/x64/kubectl.exe\\\",\\\"to\\\":\\\"./x64/kubectl.exe\\\"},{\\\"from\\\":\\\"binaries/client/windows/ia32/kubectl.exe\\\",\\\"to\\\":\\\"./ia32/kubectl.exe\\\"},{\\\"from\\\":\\\"binaries/client/x64/helm3/helm3.exe\\\",\\\"to\\\":\\\"./helm3/helm3.exe\\\"}]},\\\"nsis\\\":{\\\"include\\\":\\\"build/installer.nsh\\\",\\\"oneClick\\\":false,\\\"allowElevation\\\":true,\\\"createStartMenuShortcut\\\":true,\\\"allowToChangeInstallationDirectory\\\":true},\\\"protocols\\\":{\\\"name\\\":\\\"Lens Protocol Handler\\\",\\\"schemes\\\":[\\\"lens\\\"],\\\"role\\\":\\\"Viewer\\\"}},\\\"dependencies\\\":{\\\"@electron/remote\\\":\\\"^1.2.2\\\",\\\"@hapi/call\\\":\\\"^8.0.1\\\",\\\"@hapi/subtext\\\":\\\"^7.0.3\\\",\\\"@kubernetes/client-node\\\":\\\"^0.16.1\\\",\\\"@sentry/electron\\\":\\\"^2.5.4\\\",\\\"@sentry/integrations\\\":\\\"^6.15.0\\\",\\\"@ogre-tools/injectable\\\":\\\"^1.3.0\\\",\\\"@ogre-tools/injectable-react\\\":\\\"^1.3.1\\\",\\\"abort-controller\\\":\\\"^3.0.0\\\",\\\"auto-bind\\\":\\\"^4.0.0\\\",\\\"autobind-decorator\\\":\\\"^2.4.0\\\",\\\"await-lock\\\":\\\"^2.1.0\\\",\\\"byline\\\":\\\"^5.0.0\\\",\\\"chokidar\\\":\\\"^3.4.3\\\",\\\"conf\\\":\\\"^7.1.2\\\",\\\"crypto-js\\\":\\\"^4.1.1\\\",\\\"electron-devtools-installer\\\":\\\"^3.2.0\\\",\\\"electron-updater\\\":\\\"^4.6.1\\\",\\\"electron-window-state\\\":\\\"^5.0.3\\\",\\\"filehound\\\":\\\"^1.17.5\\\",\\\"fs-extra\\\":\\\"^9.0.1\\\",\\\"glob-to-regexp\\\":\\\"^0.4.1\\\",\\\"got\\\":\\\"^11.8.2\\\",\\\"grapheme-splitter\\\":\\\"^1.0.4\\\",\\\"handlebars\\\":\\\"^4.7.7\\\",\\\"http-proxy\\\":\\\"^1.18.1\\\",\\\"immer\\\":\\\"^9.0.6\\\",\\\"joi\\\":\\\"^17.5.0\\\",\\\"js-yaml\\\":\\\"^4.1.0\\\",\\\"jsdom\\\":\\\"^16.7.0\\\",\\\"jsonpath\\\":\\\"^1.1.1\\\",\\\"lodash\\\":\\\"^4.17.15\\\",\\\"mac-ca\\\":\\\"^1.0.6\\\",\\\"marked\\\":\\\"^2.1.3\\\",\\\"md5-file\\\":\\\"^5.0.0\\\",\\\"mobx\\\":\\\"^6.3.7\\\",\\\"mobx-observable-history\\\":\\\"^2.0.3\\\",\\\"mobx-react\\\":\\\"^7.2.1\\\",\\\"mock-fs\\\":\\\"^4.14.0\\\",\\\"moment\\\":\\\"^2.29.1\\\",\\\"moment-timezone\\\":\\\"^0.5.34\\\",\\\"monaco-editor\\\":\\\"^0.29.1\\\",\\\"monaco-editor-webpack-plugin\\\":\\\"^5.0.0\\\",\\\"node-fetch\\\":\\\"lensapp/node-fetch#2.x\\\",\\\"node-pty\\\":\\\"^0.10.1\\\",\\\"npm\\\":\\\"^6.14.15\\\",\\\"p-limit\\\":\\\"^3.1.0\\\",\\\"path-to-regexp\\\":\\\"^6.2.0\\\",\\\"proper-lockfile\\\":\\\"^4.1.2\\\",\\\"react\\\":\\\"^17.0.2\\\",\\\"react-dom\\\":\\\"^17.0.2\\\",\\\"react-material-ui-carousel\\\":\\\"^2.3.8\\\",\\\"react-router\\\":\\\"^5.2.0\\\",\\\"react-virtualized-auto-sizer\\\":\\\"^1.0.6\\\",\\\"readable-stream\\\":\\\"^3.6.0\\\",\\\"request\\\":\\\"^2.88.2\\\",\\\"request-promise-native\\\":\\\"^1.0.9\\\",\\\"rfc6902\\\":\\\"^4.0.2\\\",\\\"semver\\\":\\\"^7.3.2\\\",\\\"shell-env\\\":\\\"^3.0.1\\\",\\\"spdy\\\":\\\"^4.0.2\\\",\\\"tar\\\":\\\"^6.1.11\\\",\\\"tcp-port-used\\\":\\\"^1.0.2\\\",\\\"tempy\\\":\\\"1.0.1\\\",\\\"url-parse\\\":\\\"^1.5.3\\\",\\\"uuid\\\":\\\"^8.3.2\\\",\\\"win-ca\\\":\\\"^3.4.5\\\",\\\"winston\\\":\\\"^3.3.3\\\",\\\"winston-console-format\\\":\\\"^1.0.8\\\",\\\"winston-transport-browserconsole\\\":\\\"^1.0.5\\\",\\\"ws\\\":\\\"^7.5.5\\\"},\\\"devDependencies\\\":{\\\"@async-fn/jest\\\":\\\"^1.5.0\\\",\\\"@material-ui/core\\\":\\\"^4.12.3\\\",\\\"@material-ui/icons\\\":\\\"^4.11.2\\\",\\\"@material-ui/lab\\\":\\\"^4.0.0-alpha.60\\\",\\\"@pmmmwh/react-refresh-webpack-plugin\\\":\\\"^0.4.3\\\",\\\"@sentry/types\\\":\\\"^6.14.1\\\",\\\"@testing-library/jest-dom\\\":\\\"^5.15.0\\\",\\\"@testing-library/react\\\":\\\"^11.2.7\\\",\\\"@testing-library/user-event\\\":\\\"^13.5.0\\\",\\\"@types/byline\\\":\\\"^4.2.33\\\",\\\"@types/chart.js\\\":\\\"^2.9.34\\\",\\\"@types/color\\\":\\\"^3.0.2\\\",\\\"@types/crypto-js\\\":\\\"^3.1.47\\\",\\\"@types/dompurify\\\":\\\"^2.3.1\\\",\\\"@types/electron-devtools-installer\\\":\\\"^2.2.0\\\",\\\"@types/fs-extra\\\":\\\"^9.0.13\\\",\\\"@types/glob-to-regexp\\\":\\\"^0.4.1\\\",\\\"@types/hoist-non-react-statics\\\":\\\"^3.3.1\\\",\\\"@types/html-webpack-plugin\\\":\\\"^3.2.6\\\",\\\"@types/http-proxy\\\":\\\"^1.17.7\\\",\\\"@types/jest\\\":\\\"^26.0.24\\\",\\\"@types/js-yaml\\\":\\\"^4.0.5\\\",\\\"@types/jsdom\\\":\\\"^16.2.13\\\",\\\"@types/jsonpath\\\":\\\"^0.2.0\\\",\\\"@types/lodash\\\":\\\"^4.14.177\\\",\\\"@types/marked\\\":\\\"^2.0.5\\\",\\\"@types/md5-file\\\":\\\"^4.0.2\\\",\\\"@types/mini-css-extract-plugin\\\":\\\"^0.9.1\\\",\\\"@types/mock-fs\\\":\\\"^4.13.1\\\",\\\"@types/node\\\":\\\"14.17.33\\\",\\\"@types/node-fetch\\\":\\\"^2.5.12\\\",\\\"@types/npm\\\":\\\"^2.0.32\\\",\\\"@types/progress-bar-webpack-plugin\\\":\\\"^2.1.2\\\",\\\"@types/proper-lockfile\\\":\\\"^4.1.2\\\",\\\"@types/randomcolor\\\":\\\"^0.5.6\\\",\\\"@types/react\\\":\\\"^17.0.34\\\",\\\"@types/react-beautiful-dnd\\\":\\\"^13.1.2\\\",\\\"@types/react-dom\\\":\\\"^17.0.11\\\",\\\"@types/react-router-dom\\\":\\\"^5.3.2\\\",\\\"@types/react-select\\\":\\\"3.1.2\\\",\\\"@types/react-table\\\":\\\"^7.7.8\\\",\\\"@types/react-virtualized-auto-sizer\\\":\\\"^1.0.1\\\",\\\"@types/react-window\\\":\\\"^1.8.5\\\",\\\"@types/readable-stream\\\":\\\"^2.3.12\\\",\\\"@types/request\\\":\\\"^2.48.7\\\",\\\"@types/request-promise-native\\\":\\\"^1.0.18\\\",\\\"@types/semver\\\":\\\"^7.3.9\\\",\\\"@types/sharp\\\":\\\"^0.29.4\\\",\\\"@types/spdy\\\":\\\"^3.4.5\\\",\\\"@types/tar\\\":\\\"^4.0.5\\\",\\\"@types/tcp-port-used\\\":\\\"^1.0.0\\\",\\\"@types/tempy\\\":\\\"^0.3.0\\\",\\\"@types/triple-beam\\\":\\\"^1.3.2\\\",\\\"@types/url-parse\\\":\\\"^1.4.5\\\",\\\"@types/uuid\\\":\\\"^8.3.3\\\",\\\"@types/webpack\\\":\\\"^4.41.32\\\",\\\"@types/webpack-dev-server\\\":\\\"^3.11.6\\\",\\\"@types/webpack-env\\\":\\\"^1.16.3\\\",\\\"@types/webpack-node-externals\\\":\\\"^1.7.1\\\",\\\"@typescript-eslint/eslint-plugin\\\":\\\"^4.33.0\\\",\\\"@typescript-eslint/parser\\\":\\\"^4.33.0\\\",\\\"ansi_up\\\":\\\"^5.1.0\\\",\\\"chart.js\\\":\\\"^2.9.4\\\",\\\"circular-dependency-plugin\\\":\\\"^5.2.2\\\",\\\"color\\\":\\\"^3.2.1\\\",\\\"concurrently\\\":\\\"^5.3.0\\\",\\\"css-loader\\\":\\\"^5.2.7\\\",\\\"deepdash\\\":\\\"^5.3.9\\\",\\\"dompurify\\\":\\\"^2.3.3\\\",\\\"electron\\\":\\\"^13.6.1\\\",\\\"electron-builder\\\":\\\"^22.14.5\\\",\\\"electron-notarize\\\":\\\"^0.3.0\\\",\\\"esbuild\\\":\\\"^0.13.15\\\",\\\"esbuild-loader\\\":\\\"^2.16.0\\\",\\\"eslint\\\":\\\"^7.32.0\\\",\\\"eslint-plugin-header\\\":\\\"^3.1.1\\\",\\\"eslint-plugin-react\\\":\\\"^7.27.1\\\",\\\"eslint-plugin-react-hooks\\\":\\\"^4.3.0\\\",\\\"eslint-plugin-unused-imports\\\":\\\"^1.1.5\\\",\\\"file-loader\\\":\\\"^6.2.0\\\",\\\"flex.box\\\":\\\"^3.4.4\\\",\\\"fork-ts-checker-webpack-plugin\\\":\\\"^5.2.1\\\",\\\"hoist-non-react-statics\\\":\\\"^3.3.2\\\",\\\"html-webpack-plugin\\\":\\\"^4.5.2\\\",\\\"include-media\\\":\\\"^1.4.9\\\",\\\"jest\\\":\\\"26.6.3\\\",\\\"jest-canvas-mock\\\":\\\"^2.3.1\\\",\\\"jest-fetch-mock\\\":\\\"^3.0.3\\\",\\\"jest-mock-extended\\\":\\\"^1.0.18\\\",\\\"make-plural\\\":\\\"^6.2.2\\\",\\\"mini-css-extract-plugin\\\":\\\"^1.6.2\\\",\\\"node-gyp\\\":\\\"7.1.2\\\",\\\"node-loader\\\":\\\"^1.0.3\\\",\\\"nodemon\\\":\\\"^2.0.14\\\",\\\"playwright\\\":\\\"^1.17.1\\\",\\\"postcss\\\":\\\"^8.3.11\\\",\\\"postcss-loader\\\":\\\"4.3.0\\\",\\\"postinstall-postinstall\\\":\\\"^2.1.0\\\",\\\"progress-bar-webpack-plugin\\\":\\\"^2.1.0\\\",\\\"randomcolor\\\":\\\"^0.6.2\\\",\\\"raw-loader\\\":\\\"^4.0.2\\\",\\\"react-beautiful-dnd\\\":\\\"^13.1.0\\\",\\\"react-refresh\\\":\\\"^0.9.0\\\",\\\"react-router-dom\\\":\\\"^5.3.0\\\",\\\"react-select\\\":\\\"3.2.0\\\",\\\"react-select-event\\\":\\\"^5.1.0\\\",\\\"react-table\\\":\\\"^7.7.0\\\",\\\"react-window\\\":\\\"^1.8.6\\\",\\\"sass\\\":\\\"^1.44.0\\\",\\\"sass-loader\\\":\\\"^8.0.2\\\",\\\"sharp\\\":\\\"^0.29.3\\\",\\\"style-loader\\\":\\\"^2.0.0\\\",\\\"tailwindcss\\\":\\\"^2.2.19\\\",\\\"ts-jest\\\":\\\"26.5.6\\\",\\\"ts-loader\\\":\\\"^7.0.5\\\",\\\"ts-node\\\":\\\"^10.4.0\\\",\\\"type-fest\\\":\\\"^1.0.2\\\",\\\"typed-emitter\\\":\\\"^1.4.0\\\",\\\"typedoc\\\":\\\"0.22.10\\\",\\\"typedoc-plugin-markdown\\\":\\\"^3.11.3\\\",\\\"typeface-roboto\\\":\\\"^1.1.13\\\",\\\"typescript\\\":\\\"^4.5.2\\\",\\\"typescript-plugin-css-modules\\\":\\\"^3.4.0\\\",\\\"url-loader\\\":\\\"^4.1.1\\\",\\\"webpack\\\":\\\"^4.46.0\\\",\\\"webpack-cli\\\":\\\"^3.3.12\\\",\\\"webpack-dev-server\\\":\\\"^3.11.3\\\",\\\"webpack-node-externals\\\":\\\"^1.7.2\\\",\\\"xterm\\\":\\\"^4.15.0\\\",\\\"xterm-addon-fit\\\":\\\"^0.5.0\\\"}}\");\n\n//# sourceURL=webpack:///./package.json?");
|
|
38355
|
+
eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"open-lens\\\",\\\"productName\\\":\\\"OpenLens\\\",\\\"description\\\":\\\"OpenLens - Open Source IDE for Kubernetes\\\",\\\"homepage\\\":\\\"https://github.com/lensapp/lens\\\",\\\"version\\\":\\\"5.3.0\\\",\\\"main\\\":\\\"static/build/main.js\\\",\\\"copyright\\\":\\\"© 2021 OpenLens Authors\\\",\\\"license\\\":\\\"MIT\\\",\\\"author\\\":{\\\"name\\\":\\\"OpenLens Authors\\\",\\\"email\\\":\\\"info@k8slens.dev\\\"},\\\"scripts\\\":{\\\"dev\\\":\\\"concurrently -i -k \\\\\\\"yarn run dev-run -C\\\\\\\" yarn:dev:*\\\",\\\"dev-build\\\":\\\"concurrently yarn:compile:*\\\",\\\"debug-build\\\":\\\"concurrently yarn:compile:main yarn:compile:extension-types\\\",\\\"dev-run\\\":\\\"nodemon --watch static/build/main.js --exec \\\\\\\"electron --remote-debugging-port=9223 --inspect .\\\\\\\"\\\",\\\"dev:main\\\":\\\"yarn run compile:main --watch\\\",\\\"dev:renderer\\\":\\\"yarn run webpack-dev-server --config webpack.renderer.ts\\\",\\\"dev:extension-types\\\":\\\"yarn run compile:extension-types --watch\\\",\\\"compile\\\":\\\"env NODE_ENV=production concurrently yarn:compile:*\\\",\\\"compile:main\\\":\\\"yarn run webpack --config webpack.main.ts\\\",\\\"compile:renderer\\\":\\\"yarn run webpack --config webpack.renderer.ts\\\",\\\"compile:extension-types\\\":\\\"yarn run webpack --config webpack.extensions.ts\\\",\\\"npm:fix-build-version\\\":\\\"yarn run ts-node build/set_build_version.ts\\\",\\\"npm:fix-package-version\\\":\\\"yarn run ts-node build/set_npm_version.ts\\\",\\\"build:linux\\\":\\\"yarn run compile && electron-builder --linux --dir\\\",\\\"build:mac\\\":\\\"yarn run compile && electron-builder --mac --dir\\\",\\\"build:win\\\":\\\"yarn run compile && electron-builder --win --dir\\\",\\\"integration\\\":\\\"jest --runInBand --detectOpenHandles --forceExit integration\\\",\\\"dist\\\":\\\"yarn run compile && electron-builder --publish onTag\\\",\\\"dist:dir\\\":\\\"yarn run dist --dir -c.compression=store -c.mac.identity=null\\\",\\\"download-bins\\\":\\\"concurrently yarn:download:*\\\",\\\"download:kubectl\\\":\\\"yarn run ts-node build/download_kubectl.ts\\\",\\\"download:helm\\\":\\\"yarn run ts-node build/download_helm.ts\\\",\\\"build:tray-icons\\\":\\\"yarn run ts-node build/build_tray_icon.ts\\\",\\\"build:theme-vars\\\":\\\"yarn run ts-node build/build_theme_vars.ts\\\",\\\"lint\\\":\\\"PROD=true yarn run eslint --ext js,ts,tsx --max-warnings=0 .\\\",\\\"lint:fix\\\":\\\"yarn run lint --fix\\\",\\\"mkdocs-serve-local\\\":\\\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -it -p 8000:8000 -v ${PWD}:/docs mkdocs-serve-local:latest\\\",\\\"verify-docs\\\":\\\"docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -v ${PWD}:/docs mkdocs-serve-local:latest build --strict\\\",\\\"typedocs-extensions-api\\\":\\\"yarn run typedoc src/extensions/extension-api.ts\\\",\\\"version-checkout\\\":\\\"cat package.json | jq '.version' -r | xargs printf \\\\\\\"release/v%s\\\\\\\" | xargs git checkout -b\\\",\\\"version-commit\\\":\\\"cat package.json | jq '.version' -r | xargs printf \\\\\\\"release v%s\\\\\\\" | git commit --no-edit -s -F -\\\",\\\"version\\\":\\\"yarn run version-checkout && git add package.json && yarn run version-commit\\\",\\\"postversion\\\":\\\"git push --set-upstream ${GIT_REMOTE:-origin} release/v$npm_package_version\\\"},\\\"config\\\":{\\\"bundledKubectlVersion\\\":\\\"1.21.2\\\",\\\"bundledHelmVersion\\\":\\\"3.6.3\\\",\\\"sentryDsn\\\":\\\"\\\"},\\\"engines\\\":{\\\"node\\\":\\\">=14 <15\\\"},\\\"jest\\\":{\\\"collectCoverage\\\":false,\\\"verbose\\\":true,\\\"transform\\\":{\\\"^.+\\\\\\\\.tsx?$\\\":\\\"ts-jest\\\"},\\\"moduleNameMapper\\\":{\\\"\\\\\\\\.(css|scss)$\\\":\\\"<rootDir>/__mocks__/styleMock.ts\\\",\\\"\\\\\\\\.(svg)$\\\":\\\"<rootDir>/__mocks__/imageMock.ts\\\",\\\"src/(.*)\\\":\\\"<rootDir>/__mocks__/windowMock.ts\\\"},\\\"modulePathIgnorePatterns\\\":[\\\"<rootDir>/dist\\\",\\\"<rootDir>/src/extensions/npm\\\"],\\\"setupFiles\\\":[\\\"<rootDir>/src/jest.setup.ts\\\",\\\"jest-canvas-mock\\\"],\\\"globals\\\":{\\\"ts-jest\\\":{\\\"isolatedModules\\\":true}}},\\\"build\\\":{\\\"generateUpdatesFilesForAllChannels\\\":true,\\\"files\\\":[\\\"static/build/main.js\\\"],\\\"afterSign\\\":\\\"build/notarize.js\\\",\\\"extraResources\\\":[{\\\"from\\\":\\\"locales/\\\",\\\"to\\\":\\\"locales/\\\",\\\"filter\\\":\\\"**/*.js\\\"},{\\\"from\\\":\\\"static/\\\",\\\"to\\\":\\\"static/\\\",\\\"filter\\\":\\\"!**/main.js\\\"},{\\\"from\\\":\\\"build/tray\\\",\\\"to\\\":\\\"static/icons\\\",\\\"filter\\\":\\\"*.png\\\"},{\\\"from\\\":\\\"extensions/\\\",\\\"to\\\":\\\"./extensions/\\\",\\\"filter\\\":[\\\"**/*.tgz\\\",\\\"**/package.json\\\",\\\"!**/node_modules\\\"]},{\\\"from\\\":\\\"templates/\\\",\\\"to\\\":\\\"./templates/\\\",\\\"filter\\\":\\\"**/*.yaml\\\"},\\\"LICENSE\\\"],\\\"linux\\\":{\\\"category\\\":\\\"Network\\\",\\\"artifactName\\\":\\\"${productName}-${version}.${arch}.${ext}\\\",\\\"target\\\":[\\\"deb\\\",\\\"rpm\\\",\\\"AppImage\\\"],\\\"extraResources\\\":[{\\\"from\\\":\\\"binaries/client/linux/${arch}/kubectl\\\",\\\"to\\\":\\\"./${arch}/kubectl\\\"},{\\\"from\\\":\\\"binaries/client/${arch}/helm3/helm3\\\",\\\"to\\\":\\\"./helm3/helm3\\\"}]},\\\"rpm\\\":{\\\"fpm\\\":[\\\"--rpm-rpmbuild-define=%define _build_id_links none\\\"]},\\\"mac\\\":{\\\"hardenedRuntime\\\":true,\\\"gatekeeperAssess\\\":false,\\\"entitlements\\\":\\\"build/entitlements.mac.plist\\\",\\\"entitlementsInherit\\\":\\\"build/entitlements.mac.plist\\\",\\\"extraResources\\\":[{\\\"from\\\":\\\"binaries/client/darwin/${arch}/kubectl\\\",\\\"to\\\":\\\"./${arch}/kubectl\\\"},{\\\"from\\\":\\\"binaries/client/${arch}/helm3/helm3\\\",\\\"to\\\":\\\"./helm3/helm3\\\"}]},\\\"win\\\":{\\\"target\\\":[\\\"nsis\\\"],\\\"extraResources\\\":[{\\\"from\\\":\\\"binaries/client/windows/x64/kubectl.exe\\\",\\\"to\\\":\\\"./x64/kubectl.exe\\\"},{\\\"from\\\":\\\"binaries/client/windows/ia32/kubectl.exe\\\",\\\"to\\\":\\\"./ia32/kubectl.exe\\\"},{\\\"from\\\":\\\"binaries/client/x64/helm3/helm3.exe\\\",\\\"to\\\":\\\"./helm3/helm3.exe\\\"}]},\\\"nsis\\\":{\\\"include\\\":\\\"build/installer.nsh\\\",\\\"oneClick\\\":false,\\\"allowElevation\\\":true,\\\"createStartMenuShortcut\\\":true,\\\"allowToChangeInstallationDirectory\\\":true},\\\"protocols\\\":{\\\"name\\\":\\\"Lens Protocol Handler\\\",\\\"schemes\\\":[\\\"lens\\\"],\\\"role\\\":\\\"Viewer\\\"}},\\\"dependencies\\\":{\\\"@electron/remote\\\":\\\"^1.2.2\\\",\\\"@hapi/call\\\":\\\"^8.0.1\\\",\\\"@hapi/subtext\\\":\\\"^7.0.3\\\",\\\"@kubernetes/client-node\\\":\\\"^0.16.1\\\",\\\"@ogre-tools/injectable\\\":\\\"^1.3.0\\\",\\\"@ogre-tools/injectable-react\\\":\\\"^1.3.1\\\",\\\"@sentry/electron\\\":\\\"^2.5.4\\\",\\\"@sentry/integrations\\\":\\\"^6.15.0\\\",\\\"abort-controller\\\":\\\"^3.0.0\\\",\\\"auto-bind\\\":\\\"^4.0.0\\\",\\\"autobind-decorator\\\":\\\"^2.4.0\\\",\\\"await-lock\\\":\\\"^2.1.0\\\",\\\"byline\\\":\\\"^5.0.0\\\",\\\"chokidar\\\":\\\"^3.4.3\\\",\\\"conf\\\":\\\"^7.1.2\\\",\\\"crypto-js\\\":\\\"^4.1.1\\\",\\\"electron-devtools-installer\\\":\\\"^3.2.0\\\",\\\"electron-updater\\\":\\\"^4.6.1\\\",\\\"electron-window-state\\\":\\\"^5.0.3\\\",\\\"filehound\\\":\\\"^1.17.5\\\",\\\"fs-extra\\\":\\\"^9.0.1\\\",\\\"glob-to-regexp\\\":\\\"^0.4.1\\\",\\\"got\\\":\\\"^11.8.2\\\",\\\"grapheme-splitter\\\":\\\"^1.0.4\\\",\\\"handlebars\\\":\\\"^4.7.7\\\",\\\"http-proxy\\\":\\\"^1.18.1\\\",\\\"immer\\\":\\\"^9.0.6\\\",\\\"joi\\\":\\\"^17.5.0\\\",\\\"js-yaml\\\":\\\"^4.1.0\\\",\\\"jsdom\\\":\\\"^16.7.0\\\",\\\"jsonpath\\\":\\\"^1.1.1\\\",\\\"lodash\\\":\\\"^4.17.15\\\",\\\"mac-ca\\\":\\\"^1.0.6\\\",\\\"marked\\\":\\\"^2.1.3\\\",\\\"md5-file\\\":\\\"^5.0.0\\\",\\\"mobx\\\":\\\"^6.3.7\\\",\\\"mobx-observable-history\\\":\\\"^2.0.3\\\",\\\"mobx-react\\\":\\\"^7.2.1\\\",\\\"mock-fs\\\":\\\"^5.1.2\\\",\\\"moment\\\":\\\"^2.29.1\\\",\\\"moment-timezone\\\":\\\"^0.5.34\\\",\\\"monaco-editor\\\":\\\"^0.29.1\\\",\\\"monaco-editor-webpack-plugin\\\":\\\"^5.0.0\\\",\\\"node-fetch\\\":\\\"lensapp/node-fetch#2.x\\\",\\\"node-pty\\\":\\\"^0.10.1\\\",\\\"npm\\\":\\\"^6.14.15\\\",\\\"p-limit\\\":\\\"^3.1.0\\\",\\\"path-to-regexp\\\":\\\"^6.2.0\\\",\\\"proper-lockfile\\\":\\\"^4.1.2\\\",\\\"react\\\":\\\"^17.0.2\\\",\\\"react-dom\\\":\\\"^17.0.2\\\",\\\"react-material-ui-carousel\\\":\\\"^2.3.8\\\",\\\"react-router\\\":\\\"^5.2.0\\\",\\\"react-virtualized-auto-sizer\\\":\\\"^1.0.6\\\",\\\"readable-stream\\\":\\\"^3.6.0\\\",\\\"request\\\":\\\"^2.88.2\\\",\\\"request-promise-native\\\":\\\"^1.0.9\\\",\\\"rfc6902\\\":\\\"^4.0.2\\\",\\\"semver\\\":\\\"^7.3.2\\\",\\\"shell-env\\\":\\\"^3.0.1\\\",\\\"spdy\\\":\\\"^4.0.2\\\",\\\"tar\\\":\\\"^6.1.11\\\",\\\"tcp-port-used\\\":\\\"^1.0.2\\\",\\\"tempy\\\":\\\"1.0.1\\\",\\\"url-parse\\\":\\\"^1.5.3\\\",\\\"uuid\\\":\\\"^8.3.2\\\",\\\"win-ca\\\":\\\"^3.4.5\\\",\\\"winston\\\":\\\"^3.3.3\\\",\\\"winston-console-format\\\":\\\"^1.0.8\\\",\\\"winston-transport-browserconsole\\\":\\\"^1.0.5\\\",\\\"ws\\\":\\\"^7.5.5\\\"},\\\"devDependencies\\\":{\\\"@async-fn/jest\\\":\\\"^1.5.0\\\",\\\"@material-ui/core\\\":\\\"^4.12.3\\\",\\\"@material-ui/icons\\\":\\\"^4.11.2\\\",\\\"@material-ui/lab\\\":\\\"^4.0.0-alpha.60\\\",\\\"@pmmmwh/react-refresh-webpack-plugin\\\":\\\"^0.4.3\\\",\\\"@sentry/types\\\":\\\"^6.14.1\\\",\\\"@testing-library/jest-dom\\\":\\\"^5.16.1\\\",\\\"@testing-library/react\\\":\\\"^11.2.7\\\",\\\"@testing-library/user-event\\\":\\\"^13.5.0\\\",\\\"@types/byline\\\":\\\"^4.2.33\\\",\\\"@types/chart.js\\\":\\\"^2.9.34\\\",\\\"@types/color\\\":\\\"^3.0.2\\\",\\\"@types/crypto-js\\\":\\\"^3.1.47\\\",\\\"@types/dompurify\\\":\\\"^2.3.1\\\",\\\"@types/electron-devtools-installer\\\":\\\"^2.2.0\\\",\\\"@types/fs-extra\\\":\\\"^9.0.13\\\",\\\"@types/glob-to-regexp\\\":\\\"^0.4.1\\\",\\\"@types/hoist-non-react-statics\\\":\\\"^3.3.1\\\",\\\"@types/html-webpack-plugin\\\":\\\"^3.2.6\\\",\\\"@types/http-proxy\\\":\\\"^1.17.7\\\",\\\"@types/jest\\\":\\\"^26.0.24\\\",\\\"@types/js-yaml\\\":\\\"^4.0.5\\\",\\\"@types/jsdom\\\":\\\"^16.2.13\\\",\\\"@types/jsonpath\\\":\\\"^0.2.0\\\",\\\"@types/lodash\\\":\\\"^4.14.177\\\",\\\"@types/marked\\\":\\\"^2.0.5\\\",\\\"@types/md5-file\\\":\\\"^4.0.2\\\",\\\"@types/mini-css-extract-plugin\\\":\\\"^0.9.1\\\",\\\"@types/mock-fs\\\":\\\"^4.13.1\\\",\\\"@types/node\\\":\\\"14.17.33\\\",\\\"@types/node-fetch\\\":\\\"^2.5.12\\\",\\\"@types/npm\\\":\\\"^2.0.32\\\",\\\"@types/progress-bar-webpack-plugin\\\":\\\"^2.1.2\\\",\\\"@types/proper-lockfile\\\":\\\"^4.1.2\\\",\\\"@types/randomcolor\\\":\\\"^0.5.6\\\",\\\"@types/react\\\":\\\"^17.0.34\\\",\\\"@types/react-beautiful-dnd\\\":\\\"^13.1.2\\\",\\\"@types/react-dom\\\":\\\"^17.0.11\\\",\\\"@types/react-router-dom\\\":\\\"^5.3.2\\\",\\\"@types/react-select\\\":\\\"3.1.2\\\",\\\"@types/react-table\\\":\\\"^7.7.8\\\",\\\"@types/react-virtualized-auto-sizer\\\":\\\"^1.0.1\\\",\\\"@types/react-window\\\":\\\"^1.8.5\\\",\\\"@types/readable-stream\\\":\\\"^2.3.12\\\",\\\"@types/request\\\":\\\"^2.48.7\\\",\\\"@types/request-promise-native\\\":\\\"^1.0.18\\\",\\\"@types/semver\\\":\\\"^7.3.9\\\",\\\"@types/sharp\\\":\\\"^0.29.4\\\",\\\"@types/spdy\\\":\\\"^3.4.5\\\",\\\"@types/tar\\\":\\\"^4.0.5\\\",\\\"@types/tcp-port-used\\\":\\\"^1.0.0\\\",\\\"@types/tempy\\\":\\\"^0.3.0\\\",\\\"@types/triple-beam\\\":\\\"^1.3.2\\\",\\\"@types/url-parse\\\":\\\"^1.4.5\\\",\\\"@types/uuid\\\":\\\"^8.3.3\\\",\\\"@types/webpack\\\":\\\"^4.41.32\\\",\\\"@types/webpack-dev-server\\\":\\\"^3.11.6\\\",\\\"@types/webpack-env\\\":\\\"^1.16.3\\\",\\\"@types/webpack-node-externals\\\":\\\"^1.7.1\\\",\\\"@typescript-eslint/eslint-plugin\\\":\\\"^4.33.0\\\",\\\"@typescript-eslint/parser\\\":\\\"^4.33.0\\\",\\\"ansi_up\\\":\\\"^5.1.0\\\",\\\"chart.js\\\":\\\"^2.9.4\\\",\\\"circular-dependency-plugin\\\":\\\"^5.2.2\\\",\\\"color\\\":\\\"^3.2.1\\\",\\\"concurrently\\\":\\\"^5.3.0\\\",\\\"css-loader\\\":\\\"^5.2.7\\\",\\\"deepdash\\\":\\\"^5.3.9\\\",\\\"dompurify\\\":\\\"^2.3.3\\\",\\\"electron\\\":\\\"^13.6.1\\\",\\\"electron-builder\\\":\\\"^22.14.5\\\",\\\"electron-notarize\\\":\\\"^0.3.0\\\",\\\"esbuild\\\":\\\"^0.13.15\\\",\\\"esbuild-loader\\\":\\\"^2.16.0\\\",\\\"eslint\\\":\\\"^7.32.0\\\",\\\"eslint-plugin-header\\\":\\\"^3.1.1\\\",\\\"eslint-plugin-react\\\":\\\"^7.27.1\\\",\\\"eslint-plugin-react-hooks\\\":\\\"^4.3.0\\\",\\\"eslint-plugin-unused-imports\\\":\\\"^1.1.5\\\",\\\"file-loader\\\":\\\"^6.2.0\\\",\\\"flex.box\\\":\\\"^3.4.4\\\",\\\"fork-ts-checker-webpack-plugin\\\":\\\"^5.2.1\\\",\\\"hoist-non-react-statics\\\":\\\"^3.3.2\\\",\\\"html-webpack-plugin\\\":\\\"^4.5.2\\\",\\\"include-media\\\":\\\"^1.4.9\\\",\\\"jest\\\":\\\"26.6.3\\\",\\\"jest-canvas-mock\\\":\\\"^2.3.1\\\",\\\"jest-fetch-mock\\\":\\\"^3.0.3\\\",\\\"jest-mock-extended\\\":\\\"^1.0.18\\\",\\\"make-plural\\\":\\\"^6.2.2\\\",\\\"mini-css-extract-plugin\\\":\\\"^1.6.2\\\",\\\"node-gyp\\\":\\\"7.1.2\\\",\\\"node-loader\\\":\\\"^1.0.3\\\",\\\"nodemon\\\":\\\"^2.0.14\\\",\\\"playwright\\\":\\\"^1.17.1\\\",\\\"postcss\\\":\\\"^8.3.11\\\",\\\"postcss-loader\\\":\\\"4.3.0\\\",\\\"postinstall-postinstall\\\":\\\"^2.1.0\\\",\\\"progress-bar-webpack-plugin\\\":\\\"^2.1.0\\\",\\\"randomcolor\\\":\\\"^0.6.2\\\",\\\"raw-loader\\\":\\\"^4.0.2\\\",\\\"react-beautiful-dnd\\\":\\\"^13.1.0\\\",\\\"react-refresh\\\":\\\"^0.9.0\\\",\\\"react-router-dom\\\":\\\"^5.3.0\\\",\\\"react-select\\\":\\\"3.2.0\\\",\\\"react-select-event\\\":\\\"^5.1.0\\\",\\\"react-table\\\":\\\"^7.7.0\\\",\\\"react-window\\\":\\\"^1.8.6\\\",\\\"sass\\\":\\\"^1.44.0\\\",\\\"sass-loader\\\":\\\"^8.0.2\\\",\\\"sharp\\\":\\\"^0.29.3\\\",\\\"style-loader\\\":\\\"^2.0.0\\\",\\\"tailwindcss\\\":\\\"^2.2.19\\\",\\\"ts-jest\\\":\\\"26.5.6\\\",\\\"ts-loader\\\":\\\"^7.0.5\\\",\\\"ts-node\\\":\\\"^10.4.0\\\",\\\"type-fest\\\":\\\"^1.0.2\\\",\\\"typed-emitter\\\":\\\"^1.4.0\\\",\\\"typedoc\\\":\\\"0.22.10\\\",\\\"typedoc-plugin-markdown\\\":\\\"^3.11.3\\\",\\\"typeface-roboto\\\":\\\"^1.1.13\\\",\\\"typescript\\\":\\\"^4.5.2\\\",\\\"typescript-plugin-css-modules\\\":\\\"^3.4.0\\\",\\\"url-loader\\\":\\\"^4.1.1\\\",\\\"webpack\\\":\\\"^4.46.0\\\",\\\"webpack-cli\\\":\\\"^3.3.12\\\",\\\"webpack-dev-server\\\":\\\"^3.11.3\\\",\\\"webpack-node-externals\\\":\\\"^1.7.2\\\",\\\"xterm\\\":\\\"^4.15.0\\\",\\\"xterm-addon-fit\\\":\\\"^0.5.0\\\"}}\");\n\n//# sourceURL=webpack:///./package.json?");
|
|
38356
38356
|
|
|
38357
38357
|
/***/ }),
|
|
38358
38358
|
|
|
@@ -39144,7 +39144,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
|
39144
39144
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
39145
39145
|
|
|
39146
39146
|
"use strict";
|
|
39147
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KubeJsonApi\", function() { return KubeJsonApi; });\n/* harmony import */ var _json_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./json-api */ \"./src/common/k8s-api/json-api.ts\");\n/* harmony import */ var _main_lens_proxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main/lens-proxy */ \"./src/main/lens-proxy.ts\");\n/* harmony import */ var _vars__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vars */ \"./src/common/vars.ts\");\n/**\n * Copyright (c) 2021 OpenLens Authors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n * the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n\n\nclass KubeJsonApi extends _json_api__WEBPACK_IMPORTED_MODULE_0__[\"JsonApi\"] {\n static forCluster(
|
|
39147
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KubeJsonApi\", function() { return KubeJsonApi; });\n/* harmony import */ var _json_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./json-api */ \"./src/common/k8s-api/json-api.ts\");\n/* harmony import */ var _main_lens_proxy__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../main/lens-proxy */ \"./src/main/lens-proxy.ts\");\n/* harmony import */ var _vars__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../vars */ \"./src/common/vars.ts\");\n/**\n * Copyright (c) 2021 OpenLens Authors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n * the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n\n\nclass KubeJsonApi extends _json_api__WEBPACK_IMPORTED_MODULE_0__[\"JsonApi\"] {\n static forCluster(clusterId) {\n const port = _main_lens_proxy__WEBPACK_IMPORTED_MODULE_1__[\"LensProxy\"].getInstance().port;\n return new this({\n serverAddress: `http://127.0.0.1:${port}`,\n apiBase: _vars__WEBPACK_IMPORTED_MODULE_2__[\"apiKubePrefix\"],\n debug: _vars__WEBPACK_IMPORTED_MODULE_2__[\"isDebugging\"],\n }, {\n headers: {\n \"Host\": `${clusterId}.localhost:${port}`,\n },\n });\n }\n parseError(error, res) {\n const { status, reason, message } = error;\n if (status && reason) {\n return [message || `${status}: ${reason}`];\n }\n return super.parseError(error, res);\n }\n}\n\n\n//# sourceURL=webpack:///./src/common/k8s-api/kube-json-api.ts?");
|
|
39148
39148
|
|
|
39149
39149
|
/***/ }),
|
|
39150
39150
|
|
|
@@ -40724,11 +40724,11 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _cat
|
|
|
40724
40724
|
/*!************************************************!*\
|
|
40725
40725
|
!*** ./src/extensions/renderer-api/k8s-api.ts ***!
|
|
40726
40726
|
\************************************************/
|
|
40727
|
-
/*! exports provided: isAllowedResource, ResourceStack, apiManager, KubeObjectStore, KubeApi, forCluster, forRemoteCluster, KubeObject, KubeStatus, Pod, podsApi, PodsApi, Node, nodesApi, NodesApi, Deployment, deploymentApi, DeploymentApi, DaemonSet, daemonSetApi, StatefulSet, statefulSetApi, Job, jobApi, CronJob, cronJobApi, ConfigMap, configMapApi, Secret, secretsApi, ReplicaSet, replicaSetApi, ResourceQuota, resourceQuotaApi, LimitRange, limitRangeApi, HorizontalPodAutoscaler, hpaApi, PodDisruptionBudget, pdbApi, Service, serviceApi, Endpoint, endpointApi, Ingress, ingressApi, IngressApi, NetworkPolicy, networkPolicyApi, PersistentVolume, persistentVolumeApi, PersistentVolumeClaim, pvcApi, PersistentVolumeClaimsApi, StorageClass, storageClassApi, Namespace, namespacesApi, KubeEvent, eventApi, ServiceAccount, serviceAccountsApi, Role, roleApi, RoleBinding, roleBindingApi, ClusterRole, clusterRoleApi, ClusterRoleBinding, clusterRoleBindingApi, CustomResourceDefinition, crdApi, KubeObjectStatusLevel */
|
|
40727
|
+
/*! exports provided: isAllowedResource, ResourceStack, apiManager, KubeObjectStore, KubeApi, forCluster, forRemoteCluster, KubeObject, KubeStatus, Pod, podsApi, PodsApi, Node, nodesApi, NodesApi, Deployment, deploymentApi, DeploymentApi, DaemonSet, daemonSetApi, StatefulSet, statefulSetApi, Job, jobApi, CronJob, cronJobApi, ConfigMap, configMapApi, Secret, secretsApi, ReplicaSet, replicaSetApi, ResourceQuota, resourceQuotaApi, LimitRange, limitRangeApi, HorizontalPodAutoscaler, hpaApi, PodDisruptionBudget, pdbApi, Service, serviceApi, Endpoint, endpointApi, Ingress, ingressApi, IngressApi, NetworkPolicy, networkPolicyApi, PersistentVolume, persistentVolumeApi, PersistentVolumeClaim, pvcApi, PersistentVolumeClaimsApi, StorageClass, storageClassApi, Namespace, namespacesApi, KubeEvent, eventApi, ServiceAccount, serviceAccountsApi, Role, roleApi, RoleBinding, roleBindingApi, ClusterRole, clusterRoleApi, ClusterRoleBinding, clusterRoleBindingApi, CustomResourceDefinition, crdApi, KubeObjectStatusLevel, KubeJsonApi */
|
|
40728
40728
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
40729
40729
|
|
|
40730
40730
|
"use strict";
|
|
40731
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _common_utils_allowed_resource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../common/utils/allowed-resource */ \"./src/common/utils/allowed-resource.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isAllowedResource\", function() { return _common_utils_allowed_resource__WEBPACK_IMPORTED_MODULE_0__[\"isAllowedResource\"]; });\n\n/* harmony import */ var _common_k8s_resource_stack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../common/k8s/resource-stack */ \"./src/common/k8s/resource-stack.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ResourceStack\", function() { return _common_k8s_resource_stack__WEBPACK_IMPORTED_MODULE_1__[\"ResourceStack\"]; });\n\n/* harmony import */ var _common_k8s_api_api_manager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/k8s-api/api-manager */ \"./src/common/k8s-api/api-manager.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"apiManager\", function() { return _common_k8s_api_api_manager__WEBPACK_IMPORTED_MODULE_2__[\"apiManager\"]; });\n\n/* harmony import */ var _common_k8s_api_kube_object_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/k8s-api/kube-object.store */ \"./src/common/k8s-api/kube-object.store.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeObjectStore\", function() { return _common_k8s_api_kube_object_store__WEBPACK_IMPORTED_MODULE_3__[\"KubeObjectStore\"]; });\n\n/* harmony import */ var _common_k8s_api_kube_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/k8s-api/kube-api */ \"./src/common/k8s-api/kube-api.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeApi\", function() { return _common_k8s_api_kube_api__WEBPACK_IMPORTED_MODULE_4__[\"KubeApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"forCluster\", function() { return _common_k8s_api_kube_api__WEBPACK_IMPORTED_MODULE_4__[\"forCluster\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"forRemoteCluster\", function() { return _common_k8s_api_kube_api__WEBPACK_IMPORTED_MODULE_4__[\"forRemoteCluster\"]; });\n\n/* harmony import */ var _common_k8s_api_kube_object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/k8s-api/kube-object */ \"./src/common/k8s-api/kube-object.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeObject\", function() { return _common_k8s_api_kube_object__WEBPACK_IMPORTED_MODULE_5__[\"KubeObject\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeStatus\", function() { return _common_k8s_api_kube_object__WEBPACK_IMPORTED_MODULE_5__[\"KubeStatus\"]; });\n\n/* harmony import */ var _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/k8s-api/endpoints */ \"./src/common/k8s-api/endpoints/index.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Pod\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Pod\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"podsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"podsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PodsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PodsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Node\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Node\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"nodesApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"nodesApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"NodesApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"NodesApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Deployment\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Deployment\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"deploymentApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"deploymentApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DeploymentApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"DeploymentApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DaemonSet\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"DaemonSet\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"daemonSetApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"daemonSetApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"StatefulSet\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"StatefulSet\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"statefulSetApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"statefulSetApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Job\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Job\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"jobApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"jobApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CronJob\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"CronJob\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"cronJobApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"cronJobApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ConfigMap\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ConfigMap\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"configMapApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"configMapApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Secret\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Secret\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"secretsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"secretsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ReplicaSet\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ReplicaSet\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"replicaSetApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"replicaSetApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ResourceQuota\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ResourceQuota\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"resourceQuotaApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"resourceQuotaApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LimitRange\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"LimitRange\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"limitRangeApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"limitRangeApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"HorizontalPodAutoscaler\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"HorizontalPodAutoscaler\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"hpaApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"hpaApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PodDisruptionBudget\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PodDisruptionBudget\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"pdbApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"pdbApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Service\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Service\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"serviceApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"serviceApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Endpoint\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Endpoint\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"endpointApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"endpointApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Ingress\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Ingress\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ingressApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ingressApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"IngressApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"IngressApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"NetworkPolicy\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"NetworkPolicy\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"networkPolicyApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"networkPolicyApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PersistentVolume\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PersistentVolume\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"persistentVolumeApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"persistentVolumeApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PersistentVolumeClaim\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PersistentVolumeClaim\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"pvcApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"pvcApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PersistentVolumeClaimsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PersistentVolumeClaimsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"StorageClass\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"StorageClass\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"storageClassApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"storageClassApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Namespace\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Namespace\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"namespacesApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"namespacesApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeEvent\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"KubeEvent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"eventApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"eventApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ServiceAccount\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ServiceAccount\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"serviceAccountsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"serviceAccountsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Role\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Role\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"roleApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"roleApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"RoleBinding\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"RoleBinding\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"roleBindingApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"roleBindingApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ClusterRole\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ClusterRole\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"clusterRoleApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"clusterRoleApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ClusterRoleBinding\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ClusterRoleBinding\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"clusterRoleBindingApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"clusterRoleBindingApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CustomResourceDefinition\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"CustomResourceDefinition\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"crdApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"crdApi\"]; });\n\n/* harmony import */ var _kube_object_status__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./kube-object-status */ \"./src/extensions/renderer-api/kube-object-status.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeObjectStatusLevel\", function() { return _kube_object_status__WEBPACK_IMPORTED_MODULE_7__[\"KubeObjectStatusLevel\"]; });\n\n/**\n * Copyright (c) 2021 OpenLens Authors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n * the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\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\n//# sourceURL=webpack:///./src/extensions/renderer-api/k8s-api.ts?");
|
|
40731
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _common_utils_allowed_resource__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../common/utils/allowed-resource */ \"./src/common/utils/allowed-resource.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"isAllowedResource\", function() { return _common_utils_allowed_resource__WEBPACK_IMPORTED_MODULE_0__[\"isAllowedResource\"]; });\n\n/* harmony import */ var _common_k8s_resource_stack__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../common/k8s/resource-stack */ \"./src/common/k8s/resource-stack.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ResourceStack\", function() { return _common_k8s_resource_stack__WEBPACK_IMPORTED_MODULE_1__[\"ResourceStack\"]; });\n\n/* harmony import */ var _common_k8s_api_api_manager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../common/k8s-api/api-manager */ \"./src/common/k8s-api/api-manager.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"apiManager\", function() { return _common_k8s_api_api_manager__WEBPACK_IMPORTED_MODULE_2__[\"apiManager\"]; });\n\n/* harmony import */ var _common_k8s_api_kube_object_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common/k8s-api/kube-object.store */ \"./src/common/k8s-api/kube-object.store.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeObjectStore\", function() { return _common_k8s_api_kube_object_store__WEBPACK_IMPORTED_MODULE_3__[\"KubeObjectStore\"]; });\n\n/* harmony import */ var _common_k8s_api_kube_api__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/k8s-api/kube-api */ \"./src/common/k8s-api/kube-api.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeApi\", function() { return _common_k8s_api_kube_api__WEBPACK_IMPORTED_MODULE_4__[\"KubeApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"forCluster\", function() { return _common_k8s_api_kube_api__WEBPACK_IMPORTED_MODULE_4__[\"forCluster\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"forRemoteCluster\", function() { return _common_k8s_api_kube_api__WEBPACK_IMPORTED_MODULE_4__[\"forRemoteCluster\"]; });\n\n/* harmony import */ var _common_k8s_api_kube_object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/k8s-api/kube-object */ \"./src/common/k8s-api/kube-object.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeObject\", function() { return _common_k8s_api_kube_object__WEBPACK_IMPORTED_MODULE_5__[\"KubeObject\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeStatus\", function() { return _common_k8s_api_kube_object__WEBPACK_IMPORTED_MODULE_5__[\"KubeStatus\"]; });\n\n/* harmony import */ var _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/k8s-api/endpoints */ \"./src/common/k8s-api/endpoints/index.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Pod\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Pod\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"podsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"podsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PodsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PodsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Node\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Node\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"nodesApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"nodesApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"NodesApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"NodesApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Deployment\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Deployment\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"deploymentApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"deploymentApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DeploymentApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"DeploymentApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"DaemonSet\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"DaemonSet\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"daemonSetApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"daemonSetApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"StatefulSet\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"StatefulSet\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"statefulSetApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"statefulSetApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Job\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Job\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"jobApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"jobApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CronJob\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"CronJob\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"cronJobApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"cronJobApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ConfigMap\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ConfigMap\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"configMapApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"configMapApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Secret\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Secret\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"secretsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"secretsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ReplicaSet\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ReplicaSet\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"replicaSetApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"replicaSetApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ResourceQuota\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ResourceQuota\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"resourceQuotaApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"resourceQuotaApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"LimitRange\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"LimitRange\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"limitRangeApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"limitRangeApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"HorizontalPodAutoscaler\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"HorizontalPodAutoscaler\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"hpaApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"hpaApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PodDisruptionBudget\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PodDisruptionBudget\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"pdbApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"pdbApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Service\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Service\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"serviceApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"serviceApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Endpoint\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Endpoint\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"endpointApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"endpointApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Ingress\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Ingress\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ingressApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ingressApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"IngressApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"IngressApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"NetworkPolicy\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"NetworkPolicy\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"networkPolicyApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"networkPolicyApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PersistentVolume\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PersistentVolume\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"persistentVolumeApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"persistentVolumeApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PersistentVolumeClaim\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PersistentVolumeClaim\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"pvcApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"pvcApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"PersistentVolumeClaimsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"PersistentVolumeClaimsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"StorageClass\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"StorageClass\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"storageClassApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"storageClassApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Namespace\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Namespace\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"namespacesApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"namespacesApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeEvent\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"KubeEvent\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"eventApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"eventApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ServiceAccount\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ServiceAccount\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"serviceAccountsApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"serviceAccountsApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"Role\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"Role\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"roleApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"roleApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"RoleBinding\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"RoleBinding\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"roleBindingApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"roleBindingApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ClusterRole\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ClusterRole\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"clusterRoleApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"clusterRoleApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"ClusterRoleBinding\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"ClusterRoleBinding\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"clusterRoleBindingApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"clusterRoleBindingApi\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"CustomResourceDefinition\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"CustomResourceDefinition\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"crdApi\", function() { return _common_k8s_api_endpoints__WEBPACK_IMPORTED_MODULE_6__[\"crdApi\"]; });\n\n/* harmony import */ var _kube_object_status__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./kube-object-status */ \"./src/extensions/renderer-api/kube-object-status.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeObjectStatusLevel\", function() { return _kube_object_status__WEBPACK_IMPORTED_MODULE_7__[\"KubeObjectStatusLevel\"]; });\n\n/* harmony import */ var _common_k8s_api_kube_json_api__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../common/k8s-api/kube-json-api */ \"./src/common/k8s-api/kube-json-api.ts\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"KubeJsonApi\", function() { return _common_k8s_api_kube_json_api__WEBPACK_IMPORTED_MODULE_8__[\"KubeJsonApi\"]; });\n\n/**\n * Copyright (c) 2021 OpenLens Authors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n * the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\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\n\n//# sourceURL=webpack:///./src/extensions/renderer-api/k8s-api.ts?");
|
|
40732
40732
|
|
|
40733
40733
|
/***/ }),
|
|
40734
40734
|
|
|
@@ -41316,7 +41316,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ext
|
|
|
41316
41316
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
41317
41317
|
|
|
41318
41318
|
"use strict";
|
|
41319
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TerminalChannels\", function() { return TerminalChannels; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TerminalApi\", function() { return TerminalApi; });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ \"./src/renderer/utils/index.ts\");\n/* harmony import */ var _websocket_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./websocket-api */ \"./src/renderer/api/websocket-api.ts\");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEqual */ \"./node_modules/lodash/isEqual.js\");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! url */ \"url\");\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mobx */ \"./node_modules/mobx/dist/mobx.esm.js\");\n/* harmony import */ var electron__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! electron */ \"electron\");\n/* harmony import */ var electron__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(electron__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _common_logger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/logger */ \"./src/common/logger.ts\");\n/* harmony import */ var v8__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! v8 */ \"v8\");\n/* harmony import */ var v8__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(v8__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__);\n/**\n * Copyright (c) 2021 OpenLens Authors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n * the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (undefined && undefined.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __rest = (undefined && undefined.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\n\n\n\n\n\n\n\n\n\nvar TerminalChannels;\n(function (TerminalChannels) {\n TerminalChannels[\"STDIN\"] = \"stdin\";\n TerminalChannels[\"STDOUT\"] = \"stdout\";\n TerminalChannels[\"CONNECTED\"] = \"connected\";\n TerminalChannels[\"RESIZE\"] = \"resize\";\n})(TerminalChannels || (TerminalChannels = {}));\nvar TerminalColor;\n(function (TerminalColor) {\n TerminalColor[\"RED\"] = \"\\u001B[31m\";\n TerminalColor[\"GREEN\"] = \"\\u001B[32m\";\n TerminalColor[\"YELLOW\"] = \"\\u001B[33m\";\n TerminalColor[\"BLUE\"] = \"\\u001B[34m\";\n TerminalColor[\"MAGENTA\"] = \"\\u001B[35m\";\n TerminalColor[\"CYAN\"] = \"\\u001B[36m\";\n TerminalColor[\"GRAY\"] = \"\\u001B[90m\";\n TerminalColor[\"LIGHT_GRAY\"] = \"\\u001B[37m\";\n TerminalColor[\"NO_COLOR\"] = \"\\u001B[0m\";\n})(TerminalColor || (TerminalColor = {}));\nclass TerminalApi extends _websocket_api__WEBPACK_IMPORTED_MODULE_1__[\"WebSocketApi\"] {\n constructor(query) {\n super({\n flushOnOpen: false,\n pingInterval: 30,\n });\n Object.defineProperty(this, \"query\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: query\n });\n Object.defineProperty(this, \"size\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"isReady\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: false\n });\n Object(mobx__WEBPACK_IMPORTED_MODULE_4__[\"makeObservable\"])(this);\n if (query.node) {\n query.type || (query.type = \"node\");\n }\n }\n async connect() {\n if (!this.socket) {\n /**\n * Only emit this message if we are not \"reconnecting\", so as to keep the\n * output display clean when the computer wakes from sleep\n */\n this.emitStatus(\"Connecting ...\");\n }\n const authTokenArray = await electron__WEBPACK_IMPORTED_MODULE_5__[\"ipcRenderer\"].invoke(\"cluster:shell-api\", Object(_utils__WEBPACK_IMPORTED_MODULE_0__[\"getHostedClusterId\"])(), this.query.id);\n if (!(authTokenArray instanceof Uint8Array)) {\n throw new TypeError(\"ShellApi token is not a Uint8Array\");\n }\n const { hostname, protocol, port } = location;\n const socketUrl = url__WEBPACK_IMPORTED_MODULE_3___default.a.format({\n protocol: protocol.includes(\"https\") ? \"wss\" : \"ws\",\n hostname,\n port,\n pathname: \"/api\",\n query: Object.assign(Object.assign({}, this.query), { shellToken: Buffer.from(authTokenArray).toString(\"base64\") }),\n slashes: true,\n });\n const onReady = Object(lodash__WEBPACK_IMPORTED_MODULE_8__[\"once\"])((data) => {\n this.isReady = true;\n this.emit(\"ready\");\n this.removeListener(\"data\", onReady);\n this.removeListener(\"connected\", onReady);\n this.flush();\n // data is undefined if the event that was handled is \"connected\"\n if (data === undefined) {\n /**\n * Output the last line, the makes sure that the terminal isn't completely\n * empty when the user refreshes.\n */\n this.emit(\"data\", window.localStorage.getItem(`${this.query.id}:last-data`));\n }\n });\n this.prependListener(\"data\", onReady);\n this.prependListener(\"connected\", onReady);\n super.connect(socketUrl);\n this.socket.binaryType = \"arraybuffer\";\n }\n destroy() {\n if (!this.socket)\n return;\n const controlCode = String.fromCharCode(4); // ctrl+d\n this.sendMessage({ type: TerminalChannels.STDIN, data: controlCode });\n setTimeout(() => super.destroy(), 2000);\n }\n reconnect() {\n super.reconnect();\n }\n sendMessage(message) {\n return this.send(Object(v8__WEBPACK_IMPORTED_MODULE_7__[\"serialize\"])(message));\n }\n sendTerminalSize(cols, rows) {\n const newSize = { width: cols, height: rows };\n if (!lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default()(this.size, newSize)) {\n this.sendMessage({\n type: TerminalChannels.RESIZE,\n data: newSize,\n });\n this.size = newSize;\n }\n }\n _onMessage(_a) {\n var { data } = _a, evt = __rest(_a, [\"data\"]);\n try {\n const message = Object(v8__WEBPACK_IMPORTED_MODULE_7__[\"deserialize\"])(new Uint8Array(data));\n switch (message.type) {\n case TerminalChannels.STDOUT:\n /**\n * save the last data for reconnections. User localStorage because we\n * don't want this data to survive if the app is closed\n */\n window.localStorage.setItem(`${this.query.id}:last-data`, message.data);\n super._onMessage(Object.assign({ data: message.data }, evt));\n break;\n case TerminalChannels.CONNECTED:\n this.emit(\"connected\");\n break;\n default:\n _common_logger__WEBPACK_IMPORTED_MODULE_6__[\"default\"].warn(`[TERMINAL-API]: unknown or unhandleable message type`, message);\n break;\n }\n }\n catch (error) {\n _common_logger__WEBPACK_IMPORTED_MODULE_6__[\"default\"].error(`[TERMINAL-API]: failed to handle message`, error);\n }\n }\n _onOpen(evt) {\n // Client should send terminal size in special channel 4,\n // But this size will be changed by terminal.fit()\n this.sendTerminalSize(120, 80);\n super._onOpen(evt);\n }\n _onClose(evt) {\n super._onClose(evt);\n this.isReady = false;\n }\n emitStatus(data, options = {}) {\n const { color, showTime } = options;\n const time = showTime ? `${(new Date()).toLocaleString()} ` : \"\";\n if (color) {\n data = `${color}${data}${TerminalColor.NO_COLOR}`;\n }\n this.emit(\"data\", `${time}${data}\\r\\n`);\n }\n emitError(error) {\n this.emitStatus(error, {\n color: TerminalColor.RED,\n });\n }\n}\n__decorate([\n mobx__WEBPACK_IMPORTED_MODULE_4__[\"observable\"],\n __metadata(\"design:type\", Object)\n], TerminalApi.prototype, \"isReady\", void 0);\n\n\n//# sourceURL=webpack:///./src/renderer/api/terminal-api.ts?");
|
|
41319
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TerminalChannels\", function() { return TerminalChannels; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TerminalApi\", function() { return TerminalApi; });\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils */ \"./src/renderer/utils/index.ts\");\n/* harmony import */ var _websocket_api__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./websocket-api */ \"./src/renderer/api/websocket-api.ts\");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/isEqual */ \"./node_modules/lodash/isEqual.js\");\n/* harmony import */ var lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isEqual__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! url */ \"url\");\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var mobx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! mobx */ \"./node_modules/mobx/dist/mobx.esm.js\");\n/* harmony import */ var electron__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! electron */ \"electron\");\n/* harmony import */ var electron__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(electron__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _common_logger__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../common/logger */ \"./src/common/logger.ts\");\n/* harmony import */ var v8__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! v8 */ \"v8\");\n/* harmony import */ var v8__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(v8__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_8__);\n/**\n * Copyright (c) 2021 OpenLens Authors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n * the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __metadata = (undefined && undefined.__metadata) || function (k, v) {\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\n};\nvar __rest = (undefined && undefined.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\n\n\n\n\n\n\n\n\n\nvar TerminalChannels;\n(function (TerminalChannels) {\n TerminalChannels[\"STDIN\"] = \"stdin\";\n TerminalChannels[\"STDOUT\"] = \"stdout\";\n TerminalChannels[\"CONNECTED\"] = \"connected\";\n TerminalChannels[\"RESIZE\"] = \"resize\";\n})(TerminalChannels || (TerminalChannels = {}));\nvar TerminalColor;\n(function (TerminalColor) {\n TerminalColor[\"RED\"] = \"\\u001B[31m\";\n TerminalColor[\"GREEN\"] = \"\\u001B[32m\";\n TerminalColor[\"YELLOW\"] = \"\\u001B[33m\";\n TerminalColor[\"BLUE\"] = \"\\u001B[34m\";\n TerminalColor[\"MAGENTA\"] = \"\\u001B[35m\";\n TerminalColor[\"CYAN\"] = \"\\u001B[36m\";\n TerminalColor[\"GRAY\"] = \"\\u001B[90m\";\n TerminalColor[\"LIGHT_GRAY\"] = \"\\u001B[37m\";\n TerminalColor[\"NO_COLOR\"] = \"\\u001B[0m\";\n})(TerminalColor || (TerminalColor = {}));\nclass TerminalApi extends _websocket_api__WEBPACK_IMPORTED_MODULE_1__[\"WebSocketApi\"] {\n constructor(query) {\n super({\n flushOnOpen: false,\n pingInterval: 30,\n });\n Object.defineProperty(this, \"query\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: query\n });\n Object.defineProperty(this, \"size\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"isReady\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: false\n });\n Object(mobx__WEBPACK_IMPORTED_MODULE_4__[\"makeObservable\"])(this);\n if (query.node) {\n query.type || (query.type = \"node\");\n }\n }\n async connect() {\n if (!this.socket) {\n /**\n * Only emit this message if we are not \"reconnecting\", so as to keep the\n * output display clean when the computer wakes from sleep\n */\n this.emitStatus(\"Connecting ...\");\n }\n const authTokenArray = await electron__WEBPACK_IMPORTED_MODULE_5__[\"ipcRenderer\"].invoke(\"cluster:shell-api\", Object(_utils__WEBPACK_IMPORTED_MODULE_0__[\"getHostedClusterId\"])(), this.query.id);\n if (!(authTokenArray instanceof Uint8Array)) {\n throw new TypeError(\"ShellApi token is not a Uint8Array\");\n }\n const { hostname, protocol, port } = location;\n const socketUrl = url__WEBPACK_IMPORTED_MODULE_3___default.a.format({\n protocol: protocol.includes(\"https\") ? \"wss\" : \"ws\",\n hostname,\n port,\n pathname: \"/api\",\n query: Object.assign(Object.assign({}, this.query), { shellToken: Buffer.from(authTokenArray).toString(\"base64\") }),\n slashes: true,\n });\n const onReady = Object(lodash__WEBPACK_IMPORTED_MODULE_8__[\"once\"])((data) => {\n this.isReady = true;\n this.emit(\"ready\");\n this.removeListener(\"data\", onReady);\n this.removeListener(\"connected\", onReady);\n this.flush();\n // data is undefined if the event that was handled is \"connected\"\n if (data === undefined) {\n /**\n * Output the last line, the makes sure that the terminal isn't completely\n * empty when the user refreshes.\n */\n this.emit(\"data\", window.localStorage.getItem(`${this.query.id}:last-data`));\n }\n });\n this.prependListener(\"data\", onReady);\n this.prependListener(\"connected\", onReady);\n super.connect(socketUrl);\n this.socket.binaryType = \"arraybuffer\";\n }\n sendMessage(message) {\n return this.send(Object(v8__WEBPACK_IMPORTED_MODULE_7__[\"serialize\"])(message));\n }\n sendTerminalSize(cols, rows) {\n const newSize = { width: cols, height: rows };\n if (!lodash_isEqual__WEBPACK_IMPORTED_MODULE_2___default()(this.size, newSize)) {\n this.sendMessage({\n type: TerminalChannels.RESIZE,\n data: newSize,\n });\n this.size = newSize;\n }\n }\n _onMessage(_a) {\n var { data } = _a, evt = __rest(_a, [\"data\"]);\n try {\n const message = Object(v8__WEBPACK_IMPORTED_MODULE_7__[\"deserialize\"])(new Uint8Array(data));\n switch (message.type) {\n case TerminalChannels.STDOUT:\n /**\n * save the last data for reconnections. User localStorage because we\n * don't want this data to survive if the app is closed\n */\n window.localStorage.setItem(`${this.query.id}:last-data`, message.data);\n super._onMessage(Object.assign({ data: message.data }, evt));\n break;\n case TerminalChannels.CONNECTED:\n this.emit(\"connected\");\n break;\n default:\n _common_logger__WEBPACK_IMPORTED_MODULE_6__[\"default\"].warn(`[TERMINAL-API]: unknown or unhandleable message type`, message);\n break;\n }\n }\n catch (error) {\n _common_logger__WEBPACK_IMPORTED_MODULE_6__[\"default\"].error(`[TERMINAL-API]: failed to handle message`, error);\n }\n }\n _onOpen(evt) {\n // Client should send terminal size in special channel 4,\n // But this size will be changed by terminal.fit()\n this.sendTerminalSize(120, 80);\n super._onOpen(evt);\n }\n _onClose(evt) {\n super._onClose(evt);\n this.isReady = false;\n }\n emitStatus(data, options = {}) {\n const { color, showTime } = options;\n const time = showTime ? `${(new Date()).toLocaleString()} ` : \"\";\n if (color) {\n data = `${color}${data}${TerminalColor.NO_COLOR}`;\n }\n this.emit(\"data\", `${time}${data}\\r\\n`);\n }\n emitError(error) {\n this.emitStatus(error, {\n color: TerminalColor.RED,\n });\n }\n}\n__decorate([\n mobx__WEBPACK_IMPORTED_MODULE_4__[\"observable\"],\n __metadata(\"design:type\", Object)\n], TerminalApi.prototype, \"isReady\", void 0);\n\n\n//# sourceURL=webpack:///./src/renderer/api/terminal-api.ts?");
|
|
41320
41320
|
|
|
41321
41321
|
/***/ }),
|
|
41322
41322
|
|
|
@@ -42815,7 +42815,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
|
42815
42815
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
42816
42816
|
|
|
42817
42817
|
"use strict";
|
|
42818
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SettingLayout\", function() { return SettingLayout; });\n/* harmony import */ var _setting_layout_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setting-layout.scss */ \"./src/renderer/components/layout/setting-layout.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx-react */ \"./node_modules/mobx-react/dist/mobxreact.esm.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils */ \"./src/renderer/utils/index.ts\");\n/* harmony import */ var _navigation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../navigation */ \"./src/renderer/navigation/index.ts\");\n/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ \"./src/renderer/components/icon/index.ts\");\n/**\n * Copyright (c) 2021 OpenLens Authors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n * the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __rest = (undefined && undefined.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\n\n\n\n\n\n\nconst defaultProps = {\n provideBackButtonNavigation: true,\n contentGaps: true,\n back: () => _navigation__WEBPACK_IMPORTED_MODULE_4__[\"navigation\"].goBack(),\n};\n/**\n * Layout for settings like pages with navigation\n */\nlet SettingLayout = class SettingLayout extends react__WEBPACK_IMPORTED_MODULE_1___default.a.Component {\n constructor() {\n super(...arguments);\n Object.defineProperty(this, \"onEscapeKey\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: (evt) => {\n if (!this.props.provideBackButtonNavigation) {\n return;\n }\n if (evt.code === \"Escape\") {\n evt.stopPropagation();\n this.props.back(evt);\n }\n }\n });\n }\n async componentDidMount() {\n var _a;\n const { hash } = window.location;\n if (hash) {\n (_a = document.querySelector(hash)) === null || _a === void 0 ? void 0 : _a.scrollIntoView();\n }\n window.addEventListener(\"keydown\", this.onEscapeKey);\n }\n componentWillUnmount() {\n window.removeEventListener(\"keydown\", this.onEscapeKey);\n }\n render() {\n const _a = this.props, { contentClass, provideBackButtonNavigation, contentGaps, navigation, children, back } = _a, elemProps = __rest(_a, [\"contentClass\", \"provideBackButtonNavigation\", \"contentGaps\", \"navigation\", \"children\", \"back\"]);\n const className = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"cssNames\"])(\"SettingLayout\", { showNavigation: navigation }, this.props.className);\n return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", Object.assign({}, elemProps, { className: className }),\n navigation && (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"nav\", { className: \"sidebarRegion\" },\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"sidebar\" }, navigation))),\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"contentRegion\", id: \"ScrollSpyRoot\" },\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"cssNames\"])(\"content\", contentClass, contentGaps && \"flex column gaps\") }, children),\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"toolsRegion\" }, this.props.provideBackButtonNavigation && (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"fixedTools\" },\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"closeBtn\", role: \"button\", \"aria-label\": \"Close\", onClick: back },\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_5__[\"Icon\"], { material: \"close\" })),\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"esc\", \"aria-hidden\": \"true\" }, \"ESC\")))))));\n }\n};\nObject.defineProperty(SettingLayout, \"defaultProps\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: defaultProps\n});\nSettingLayout = __decorate([\n mobx_react__WEBPACK_IMPORTED_MODULE_2__[\"observer\"]\n], SettingLayout);\n\n\n\n//# sourceURL=webpack:///./src/renderer/components/layout/setting-layout.tsx?");
|
|
42818
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SettingLayout\", function() { return SettingLayout; });\n/* harmony import */ var _setting_layout_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./setting-layout.scss */ \"./src/renderer/components/layout/setting-layout.scss\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var mobx_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! mobx-react */ \"./node_modules/mobx-react/dist/mobxreact.esm.js\");\n/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils */ \"./src/renderer/utils/index.ts\");\n/* harmony import */ var _navigation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../navigation */ \"./src/renderer/navigation/index.ts\");\n/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ \"./src/renderer/components/icon/index.ts\");\n/* harmony import */ var _common_routes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../common/routes */ \"./src/common/routes/index.ts\");\n/**\n * Copyright (c) 2021 OpenLens Authors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy of\n * this software and associated documentation files (the \"Software\"), to deal in\n * the Software without restriction, including without limitation the rights to\n * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n * the Software, and to permit persons to whom the Software is furnished to do so,\n * subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\nvar __rest = (undefined && undefined.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\n\n\n\n\n\n\n\nconst defaultProps = {\n provideBackButtonNavigation: true,\n contentGaps: true,\n back: () => {\n if (_navigation__WEBPACK_IMPORTED_MODULE_4__[\"navigation\"].length <= 1) {\n _navigation__WEBPACK_IMPORTED_MODULE_4__[\"navigation\"].push(Object(_common_routes__WEBPACK_IMPORTED_MODULE_6__[\"catalogURL\"])());\n }\n else {\n _navigation__WEBPACK_IMPORTED_MODULE_4__[\"navigation\"].goBack();\n }\n },\n};\n/**\n * Layout for settings like pages with navigation\n */\nlet SettingLayout = class SettingLayout extends react__WEBPACK_IMPORTED_MODULE_1___default.a.Component {\n constructor() {\n super(...arguments);\n Object.defineProperty(this, \"onEscapeKey\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: (evt) => {\n if (!this.props.provideBackButtonNavigation) {\n return;\n }\n if (evt.code === \"Escape\") {\n evt.stopPropagation();\n this.props.back(evt);\n }\n }\n });\n }\n async componentDidMount() {\n var _a;\n const { hash } = window.location;\n if (hash) {\n (_a = document.querySelector(hash)) === null || _a === void 0 ? void 0 : _a.scrollIntoView();\n }\n window.addEventListener(\"keydown\", this.onEscapeKey);\n }\n componentWillUnmount() {\n window.removeEventListener(\"keydown\", this.onEscapeKey);\n }\n render() {\n const _a = this.props, { contentClass, provideBackButtonNavigation, contentGaps, navigation, children, back } = _a, elemProps = __rest(_a, [\"contentClass\", \"provideBackButtonNavigation\", \"contentGaps\", \"navigation\", \"children\", \"back\"]);\n const className = Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"cssNames\"])(\"SettingLayout\", { showNavigation: navigation }, this.props.className);\n return (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", Object.assign({}, elemProps, { className: className }),\n navigation && (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"nav\", { className: \"sidebarRegion\" },\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"sidebar\" }, navigation))),\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"contentRegion\", id: \"ScrollSpyRoot\" },\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: Object(_utils__WEBPACK_IMPORTED_MODULE_3__[\"cssNames\"])(\"content\", contentClass, contentGaps && \"flex column gaps\") }, children),\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"toolsRegion\" }, this.props.provideBackButtonNavigation && (react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"fixedTools\" },\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"closeBtn\", role: \"button\", \"aria-label\": \"Close\", onClick: back },\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_5__[\"Icon\"], { material: \"close\" })),\n react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"div\", { className: \"esc\", \"aria-hidden\": \"true\" }, \"ESC\")))))));\n }\n};\nObject.defineProperty(SettingLayout, \"defaultProps\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: defaultProps\n});\nSettingLayout = __decorate([\n mobx_react__WEBPACK_IMPORTED_MODULE_2__[\"observer\"]\n], SettingLayout);\n\n\n\n//# sourceURL=webpack:///./src/renderer/components/layout/setting-layout.tsx?");
|
|
42819
42819
|
|
|
42820
42820
|
/***/ }),
|
|
42821
42821
|
|
|
@@ -54,6 +54,7 @@ export { ClusterRole, clusterRoleApi } from "../../common/k8s-api/endpoints";
|
|
|
54
54
|
export { ClusterRoleBinding, clusterRoleBindingApi } from "../../common/k8s-api/endpoints";
|
|
55
55
|
export { CustomResourceDefinition, crdApi } from "../../common/k8s-api/endpoints";
|
|
56
56
|
export { KubeObjectStatusLevel } from "./kube-object-status";
|
|
57
|
+
export { KubeJsonApi } from "../../common/k8s-api/kube-json-api";
|
|
57
58
|
export type { ILocalKubeApiConfig, IRemoteKubeApiConfig, IKubeApiCluster } from "../../common/k8s-api/kube-api";
|
|
58
59
|
export type { IPodContainer, IPodContainerStatus } from "../../common/k8s-api/endpoints";
|
|
59
60
|
export type { ISecretRef } from "../../common/k8s-api/endpoints";
|
|
@@ -69,8 +69,6 @@ export declare class TerminalApi extends WebSocketApi<TerminalEvents> {
|
|
|
69
69
|
isReady: boolean;
|
|
70
70
|
constructor(query: TerminalApiQuery);
|
|
71
71
|
connect(): Promise<void>;
|
|
72
|
-
destroy(): void;
|
|
73
|
-
reconnect(): void;
|
|
74
72
|
sendMessage(message: TerminalMessage): void;
|
|
75
73
|
sendTerminalSize(cols: number, rows: number): void;
|
|
76
74
|
protected _onMessage({ data, ...evt }: MessageEvent<ArrayBuffer>): void;
|
|
@@ -26,5 +26,5 @@ interface Styles extends Partial<Record<SwitchClassKey, string>> {
|
|
|
26
26
|
interface Props extends SwitchProps {
|
|
27
27
|
classes: Styles;
|
|
28
28
|
}
|
|
29
|
-
export declare const Switcher: React.ComponentType<Pick<Props, "name" | "key" | "id" | "value" | "type" | "size" | "resource" | "style" | "dir" | "form" | "slot" | "title" | "color" | "className" | "prefix" | "defaultValue" | "hidden" | "ref" | "disabled" | "onDrag" | "onDoubleClick" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "role" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoFocus" | "icon" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "readOnly" | "required" | "inputProps" | "action" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "
|
|
29
|
+
export declare const Switcher: React.ComponentType<Pick<Props, "name" | "key" | "id" | "value" | "type" | "size" | "resource" | "style" | "dir" | "form" | "slot" | "title" | "color" | "className" | "prefix" | "defaultValue" | "hidden" | "ref" | "disabled" | "onDrag" | "onDoubleClick" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClickCapture" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "role" | "defaultChecked" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "property" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "autoFocus" | "icon" | "checked" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "readOnly" | "required" | "inputProps" | "action" | "innerRef" | "checkedIcon" | "disableFocusRipple" | "edge" | "buttonRef" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "onFocusVisible" | "TouchRippleProps" | "inputRef"> & import("@material-ui/core/styles").StyledComponentProps<"track" | "checked" | "root" | "switchBase" | "thumb" | "focusVisible">>;
|
|
30
30
|
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@k8slens/extensions",
|
|
3
3
|
"productName": "OpenLens extensions",
|
|
4
4
|
"description": "OpenLens - Open Source Kubernetes IDE: extensions",
|
|
5
|
-
"version": "5.3.1-git.
|
|
5
|
+
"version": "5.3.1-git.181197fad8.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|