2020-03-15 10:52:02 +03:00
|
|
|
{
|
2021-04-20 16:35:37 +03:00
|
|
|
"name": "open-lens",
|
|
|
|
"productName": "OpenLens",
|
|
|
|
"description": "OpenLens - Open Source IDE for Kubernetes",
|
2021-05-31 21:22:52 +03:00
|
|
|
"homepage": "https://github.com/lensapp/lens",
|
2021-06-24 22:40:33 +03:00
|
|
|
"version": "5.0.0-beta.11",
|
2020-08-20 08:53:07 +03:00
|
|
|
"main": "static/build/main.js",
|
2021-04-22 07:13:29 +03:00
|
|
|
"copyright": "© 2021 OpenLens Authors",
|
2020-06-30 14:35:16 +03:00
|
|
|
"license": "MIT",
|
2020-03-15 10:52:02 +03:00
|
|
|
"author": {
|
2021-04-20 16:35:37 +03:00
|
|
|
"name": "OpenLens Authors"
|
2020-03-15 10:52:02 +03:00
|
|
|
},
|
2020-06-30 14:35:16 +03:00
|
|
|
"scripts": {
|
2021-04-22 15:12:01 +03:00
|
|
|
"dev": "concurrently -i -k \"yarn run dev-run -C\" yarn:dev:*",
|
2020-10-08 11:52:45 +03:00
|
|
|
"dev-build": "concurrently yarn:compile:*",
|
2021-03-09 18:57:55 +03:00
|
|
|
"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 .\"",
|
2020-11-13 23:45:57 +03:00
|
|
|
"dev:main": "yarn run compile:main --watch",
|
|
|
|
"dev:renderer": "yarn run webpack-dev-server --config webpack.renderer.ts",
|
2021-04-09 09:11:58 +03:00
|
|
|
"dev:extension-types": "yarn run compile:extension-types --watch",
|
2020-08-20 08:53:07 +03:00
|
|
|
"compile": "env NODE_ENV=production concurrently yarn:compile:*",
|
2020-11-13 23:45:57 +03:00
|
|
|
"compile:main": "yarn run webpack --config webpack.main.ts",
|
|
|
|
"compile:renderer": "yarn run webpack --config webpack.renderer.ts",
|
2020-11-26 11:12:53 +03:00
|
|
|
"compile:extension-types": "yarn run webpack --config webpack.extensions.ts",
|
2021-04-26 16:42:59 +03:00
|
|
|
"npm:fix-build-version": "yarn run ts-node build/set_build_version.ts",
|
2020-11-13 23:45:57 +03:00
|
|
|
"npm:fix-package-version": "yarn run ts-node build/set_npm_version.ts",
|
2021-04-20 16:35:37 +03:00
|
|
|
"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",
|
2021-02-02 13:34:13 +03:00
|
|
|
"integration": "jest --runInBand integration",
|
2020-11-13 23:45:57 +03:00
|
|
|
"dist": "yarn run compile && electron-builder --publish onTag",
|
|
|
|
"dist:win": "yarn run compile && electron-builder --publish onTag --x64 --ia32",
|
|
|
|
"dist:dir": "yarn run dist --dir -c.compression=store -c.mac.identity=null",
|
2020-06-30 14:35:16 +03:00
|
|
|
"postinstall": "patch-package",
|
|
|
|
"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",
|
2020-10-27 16:25:29 +03:00
|
|
|
"build:tray-icons": "yarn run ts-node build/build_tray_icon.ts",
|
2021-03-30 17:14:05 +03:00
|
|
|
"lint": "yarn run eslint --ext js,ts,tsx --max-warnings=0 .",
|
2020-11-19 17:34:59 +03:00
|
|
|
"lint:fix": "yarn run lint --fix",
|
2020-11-11 10:02:26 +03:00
|
|
|
"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",
|
2021-06-16 17:51:36 +03:00
|
|
|
"verify-docs": "docker build -t mkdocs-serve-local:latest mkdocs/ && docker run --rm -v ${PWD}:/docs mkdocs-serve-local:latest build --strict",
|
2021-06-07 16:51:43 +03:00
|
|
|
"typedocs-extensions-api": "yarn run typedoc src/extensions/extension-api.ts",
|
2021-04-29 18:05:13 +03:00
|
|
|
"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",
|
2021-05-12 15:03:45 +03:00
|
|
|
"postversion": "git push --set-upstream ${GIT_REMOTE:-origin} release/v$npm_package_version"
|
2020-06-30 14:35:16 +03:00
|
|
|
},
|
2020-03-15 10:52:02 +03:00
|
|
|
"config": {
|
2021-01-27 21:09:11 +03:00
|
|
|
"bundledKubectlVersion": "1.18.15",
|
2021-04-26 17:01:39 +03:00
|
|
|
"bundledHelmVersion": "3.5.4"
|
2020-03-15 10:52:02 +03:00
|
|
|
},
|
2020-03-23 17:31:28 +03:00
|
|
|
"engines": {
|
2020-11-25 10:55:28 +03:00
|
|
|
"node": ">=12 <13"
|
2020-03-23 17:31:28 +03:00
|
|
|
},
|
2020-06-30 14:35:16 +03:00
|
|
|
"jest": {
|
|
|
|
"collectCoverage": false,
|
|
|
|
"verbose": true,
|
|
|
|
"transform": {
|
|
|
|
"^.+\\.tsx?$": "ts-jest"
|
2020-08-20 08:53:07 +03:00
|
|
|
},
|
|
|
|
"moduleNameMapper": {
|
2020-11-03 15:30:36 +03:00
|
|
|
"\\.(css|scss)$": "<rootDir>/__mocks__/styleMock.ts",
|
2020-12-28 15:18:03 +03:00
|
|
|
"\\.(svg)$": "<rootDir>/__mocks__/imageMock.ts",
|
2020-11-03 15:30:36 +03:00
|
|
|
"^@lingui/macro$": "<rootDir>/__mocks__/@linguiMacro.ts"
|
2020-09-09 13:00:25 +03:00
|
|
|
},
|
2020-09-29 07:37:25 +03:00
|
|
|
"modulePathIgnorePatterns": [
|
2020-11-16 16:09:16 +03:00
|
|
|
"<rootDir>/dist",
|
|
|
|
"<rootDir>/src/extensions/npm"
|
2020-11-03 15:30:36 +03:00
|
|
|
],
|
|
|
|
"setupFiles": [
|
2020-12-28 15:18:03 +03:00
|
|
|
"<rootDir>/src/jest.setup.ts",
|
|
|
|
"jest-canvas-mock"
|
2020-09-29 07:37:25 +03:00
|
|
|
]
|
2020-06-30 14:35:16 +03:00
|
|
|
},
|
2020-03-15 10:52:02 +03:00
|
|
|
"build": {
|
2021-04-12 17:49:32 +03:00
|
|
|
"generateUpdatesFilesForAllChannels": true,
|
2020-09-30 11:34:35 +03:00
|
|
|
"files": [
|
|
|
|
"static/build/main.js"
|
|
|
|
],
|
2020-03-15 10:52:02 +03:00
|
|
|
"afterSign": "build/notarize.js",
|
|
|
|
"extraResources": [
|
2020-06-30 14:35:16 +03:00
|
|
|
{
|
|
|
|
"from": "locales/",
|
|
|
|
"to": "locales/",
|
|
|
|
"filter": "**/*.js"
|
|
|
|
},
|
2020-03-15 10:52:02 +03:00
|
|
|
{
|
|
|
|
"from": "static/",
|
|
|
|
"to": "static/",
|
2020-08-20 08:53:07 +03:00
|
|
|
"filter": "!**/main.js"
|
2020-03-15 10:52:02 +03:00
|
|
|
},
|
2020-10-27 16:25:29 +03:00
|
|
|
{
|
|
|
|
"from": "build/tray",
|
|
|
|
"to": "static/icons",
|
|
|
|
"filter": "*.png"
|
|
|
|
},
|
2020-09-09 13:00:25 +03:00
|
|
|
{
|
2020-09-29 16:45:42 +03:00
|
|
|
"from": "extensions/",
|
2020-09-09 13:00:25 +03:00
|
|
|
"to": "./extensions/",
|
2020-09-29 16:45:42 +03:00
|
|
|
"filter": [
|
2021-05-19 09:40:09 +03:00
|
|
|
"**/*.tgz",
|
|
|
|
"**/package.json",
|
2020-09-29 16:45:42 +03:00
|
|
|
"!**/node_modules"
|
|
|
|
]
|
2020-09-09 13:00:25 +03:00
|
|
|
},
|
2021-05-03 19:58:18 +03:00
|
|
|
{
|
|
|
|
"from": "templates/",
|
|
|
|
"to": "./templates/",
|
|
|
|
"filter": "**/*.yaml"
|
|
|
|
},
|
2020-03-15 10:52:02 +03:00
|
|
|
"LICENSE"
|
|
|
|
],
|
|
|
|
"linux": {
|
|
|
|
"category": "Network",
|
2021-02-01 17:51:27 +03:00
|
|
|
"artifactName": "${productName}-${version}.${arch}.${ext}",
|
2020-03-15 10:52:02 +03:00
|
|
|
"target": [
|
2021-02-01 17:51:27 +03:00
|
|
|
"deb",
|
|
|
|
"rpm",
|
2020-03-15 10:52:02 +03:00
|
|
|
"AppImage"
|
|
|
|
],
|
|
|
|
"extraResources": [
|
|
|
|
{
|
|
|
|
"from": "binaries/client/linux/x64/kubectl",
|
|
|
|
"to": "./x64/kubectl"
|
2020-04-06 18:18:18 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "binaries/client/helm3/helm3",
|
|
|
|
"to": "./helm3/helm3"
|
2020-03-15 10:52:02 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"mac": {
|
|
|
|
"hardenedRuntime": true,
|
|
|
|
"gatekeeperAssess": false,
|
|
|
|
"entitlements": "build/entitlements.mac.plist",
|
|
|
|
"entitlementsInherit": "build/entitlements.mac.plist",
|
|
|
|
"extraResources": [
|
|
|
|
{
|
|
|
|
"from": "binaries/client/darwin/x64/kubectl",
|
|
|
|
"to": "./x64/kubectl"
|
2020-04-06 18:18:18 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "binaries/client/helm3/helm3",
|
|
|
|
"to": "./helm3/helm3"
|
2020-03-15 10:52:02 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"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"
|
2020-04-06 18:18:18 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"from": "binaries/client/helm3/helm3.exe",
|
|
|
|
"to": "./helm3/helm3.exe"
|
2020-03-15 10:52:02 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2020-09-16 21:44:08 +03:00
|
|
|
"nsis": {
|
2021-02-02 16:09:32 +03:00
|
|
|
"include": "build/installer.nsh",
|
|
|
|
"oneClick": false,
|
2021-02-03 19:24:12 +03:00
|
|
|
"allowToChangeInstallationDirectory": true
|
2020-09-16 21:44:08 +03:00
|
|
|
},
|
2021-02-25 17:32:40 +03:00
|
|
|
"protocols": {
|
|
|
|
"name": "Lens Protocol Handler",
|
|
|
|
"schemes": [
|
|
|
|
"lens"
|
|
|
|
],
|
|
|
|
"role": "Viewer"
|
|
|
|
}
|
2020-03-15 10:52:02 +03:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2021-06-04 15:57:05 +03:00
|
|
|
"@hapi/call": "^8.0.1",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@hapi/subtext": "^7.0.3",
|
2021-06-08 14:40:53 +03:00
|
|
|
"@kubernetes/client-node": "^0.14.3",
|
2021-02-25 17:32:40 +03:00
|
|
|
"abort-controller": "^3.0.0",
|
2021-05-27 13:24:55 +03:00
|
|
|
"array-move": "^3.0.1",
|
Mobx-6 migration (#2718)
* mobx-6 migration -- part 1
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6 migration -- part 2 (npx mobx-undecorate --keepDecorators)
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6 migration -- part 3 (more fixes)
Signed-off-by: Roman <ixrock@gmail.com>
* unwrap possible observables from IPC-messaging
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6 migration -- remove @autobind as class-decorator
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6: replacing @autobind() as method-decorator to @boundMethod
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6: use toJS()-wrapper since monkey-patching require(mobx).toJS doesn't work
Signed-off-by: Roman <ixrock@gmail.com>
* removed `@observable static`
Signed-off-by: Roman <ixrock@gmail.com>
* use {useDefineForClassFields: true} in tsconfig.json
Signed-off-by: Roman <ixrock@gmail.com>
* remove ExtendedObservableMap
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix: removed makeObservable(this) from "terminal-tab.tsx"
Signed-off-by: Roman <ixrock@gmail.com>
* storage-helper refactoring
Signed-off-by: Roman <ixrock@gmail.com>
* normalize usages of #observable-value.toJSON() / attempt to catch the wind
Signed-off-by: Roman <ixrock@gmail.com>
* refactoring, more possible branch fixes + lint
Signed-off-by: Roman <ixrock@gmail.com>
* debugging cluster-view error -- part 1
Signed-off-by: Roman <ixrock@gmail.com>
* fix: refreshing cluster-view on ready
Signed-off-by: Roman <ixrock@gmail.com>
* fix: various app-crashes related to KubeObject.spec.* access from "undefined"
fix: config-map-details crash
Signed-off-by: Roman <ixrock@gmail.com>
* fix: namespace-store refactoring / saving selected-namespaces to external json-file
Signed-off-by: Roman <ixrock@gmail.com>
* fix: don't cache mobx.when(() => this.someObservable) cause might not work as expected due later call of makeObservable(this) in constructor
Signed-off-by: Roman <ixrock@gmail.com>
* fix: app-crash on editing k8s resource
Signed-off-by: Roman <ixrock@gmail.com>
* fix: restore "all namespaces" on page reload
Signed-off-by: Roman <ixrock@gmail.com>
* - fix: persist table-sort params and cluster-view's sidebar state to lens-local-storage
- new-feature: auto-open main-window's devtools in development-mode (yes/no/ugly?)
Signed-off-by: Roman <ixrock@gmail.com>
* fix: crd definition details -> crashing with <AceEditor mode="json"> (added missing mode-file in ace-editor.tsx)
Signed-off-by: Roman <ixrock@gmail.com>
* fix: crd definitions -> groups selector couldn't deselect last selected option
Signed-off-by: Roman <ixrock@gmail.com>
* refactoring: extensions-api exports clarification for "@k8slens/extensions"
Signed-off-by: Roman <ixrock@gmail.com>
* fix: various app-crashes related to kube-events (events page, some details page, overview, etc.)
Signed-off-by: Roman <ixrock@gmail.com>
* Reverted "use {useDefineForClassFields: true} in tsconfig.json" (various app-crash fixes)
This flag seems to be not possible to use with class-inheritance in some cases.
Example / demo:
`KubeObject` class has initial type definitions for the fields like: "metadata", "kind", etc.
and constructor() has Object.assign(this, data);
Meanwhile child class, e.g. KubeEvent inherited from KubeObject and has it's own extra type definitions for underlying resource, e.g. "involvedObject", "source", etc.
So calling super(data) doesn't work as expected for child class as it's own type definitions overwrites data from parent's constructor with `undefined` at later point.
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge lint-fixes
Signed-off-by: Roman <ixrock@gmail.com>
* catalog.tsx / catalog-entities.store.ts refactoring & fixes
Signed-off-by: Roman <ixrock@gmail.com>
* fix: Catalog -> Browse all tab
Signed-off-by: Roman <ixrock@gmail.com>
* fix: CommandPalette doesn't appear from global menu by click/hotkey
Signed-off-by: Roman <ixrock@gmail.com>
* - Merging interfaces & classses to avoid overwriting fields from parent's super(data)-call with Object.assign(this, data). Otherwise use "declare" keyword at class field definition.
- Revamping {useDefineForClassFields: true} to avoid issues with non-observable class fields in some cases (from previous commit):
```
@observer
export class CommandContainer extends React.Component<CommandContainerProps> {
// without some defined initial value "commandComponent" is non-observable for some reasons
// when tsconfig.ts has {useDefineForClassFields:false}
@observable.ref commandComponent: React.ReactNode = null;
constructor(props: CommandContainerProps) {
super(props);
makeObservable(this);
}
```
Signed-off-by: Roman <ixrock@gmail.com>
* update KubeObject class type definition
Signed-off-by: Roman <ixrock@gmail.com>
* clean up / responding to comments
Signed-off-by: Roman <ixrock@gmail.com>
* fix: app-crash when navigating to catalog from active cluster-view, refactoring `catalog-entity-store`
Signed-off-by: Roman <ixrock@gmail.com>
* catalog-pusher clean up, replaced .observe_() to external observe() helper from "mobx"
Signed-off-by: Roman <ixrock@gmail.com>
* fix: catalog's items stale/non-observable (after connection to the cluster status still "disconnected"), lint-fixes
Signed-off-by: Roman <ixrock@gmail.com>
* fix: Catalog is empty after closing main-window and re-opening app from Tray
Signed-off-by: Roman <ixrock@gmail.com>
* fix: HotBar's icon context menu items non-observable (no "disconnect cluster", etc.)
Signed-off-by: Roman <ixrock@gmail.com>
* lint-fix/license check
Signed-off-by: Roman <ixrock@gmail.com>
* fix: redirect to catalog when disconnecting active cluster
Signed-off-by: Roman <ixrock@gmail.com>
* fix: refresh visibility of active cluster-view on switching from hotbar/catalog
Signed-off-by: Roman <ixrock@gmail.com>
* updated package.json for built-in extensions to use "*" version for packages served from main app
Signed-off-by: Roman <ixrock@gmail.com>
* - added missing makeObservable(this) to metrics-settings.tsx
- updated package-lock.json for built-in extensions
- lint fixes
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge clean up fix, updated package-lock.json for built-in extensions after `make clean-extensions && make build-extensions`
Signed-off-by: Roman <ixrock@gmail.com>
* fix unit-tests
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge fixes
Signed-off-by: Roman <ixrock@gmail.com>
* make lint happy
Signed-off-by: Roman <ixrock@gmail.com>
* reverted some changes, removed auto-opening devtools in dev-mode
Signed-off-by: Roman <ixrock@gmail.com>
* merge fixes
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge conflict fixes:
- proper handling and navigating into catalog's active category via URL-builder
Signed-off-by: Roman <ixrock@gmail.com>
* reverting splitted params for catalog's page route to "/catalog/:group?/:kind?"
Signed-off-by: Roman <ixrock@gmail.com>
* clean-up: remove app's injecting dependencies from `extensions/kube-object-event-status/package.json`
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge fix: added missing makeObservable(this) for extensions.tsx
Signed-off-by: Roman <ixrock@gmail.com>
* fix: catalog entity context menu stale/unobservable
Signed-off-by: Roman <ixrock@gmail.com>
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-25 10:24:31 +03:00
|
|
|
"auto-bind": "^4.0.0",
|
|
|
|
"autobind-decorator": "^2.4.0",
|
2020-11-24 11:48:40 +03:00
|
|
|
"await-lock": "^2.1.0",
|
2021-02-09 16:31:15 +03:00
|
|
|
"byline": "^5.0.0",
|
2020-08-20 08:53:07 +03:00
|
|
|
"chalk": "^4.1.0",
|
2020-11-24 11:48:40 +03:00
|
|
|
"chokidar": "^3.4.3",
|
2020-10-12 10:20:08 +03:00
|
|
|
"command-exists": "1.2.9",
|
2020-08-20 08:53:07 +03:00
|
|
|
"conf": "^7.0.1",
|
2020-06-30 14:35:16 +03:00
|
|
|
"crypto-js": "^4.0.0",
|
2021-06-10 16:46:46 +03:00
|
|
|
"electron-devtools-installer": "^3.2.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"electron-updater": "^4.3.1",
|
2020-03-15 10:52:02 +03:00
|
|
|
"electron-window-state": "^5.0.3",
|
2021-04-15 15:19:54 +03:00
|
|
|
"filehound": "^1.17.4",
|
2020-03-15 10:52:02 +03:00
|
|
|
"filenamify": "^4.1.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"fs-extra": "^9.0.1",
|
2021-04-26 08:58:51 +03:00
|
|
|
"grapheme-splitter": "^1.0.4",
|
2021-05-11 11:39:05 +03:00
|
|
|
"handlebars": "^4.7.7",
|
2020-06-30 14:35:16 +03:00
|
|
|
"http-proxy": "^1.18.1",
|
2021-03-18 15:36:34 +03:00
|
|
|
"immer": "^8.0.1",
|
2021-06-07 15:14:43 +03:00
|
|
|
"joi": "^17.4.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"js-yaml": "^3.14.0",
|
2020-10-27 16:25:29 +03:00
|
|
|
"jsdom": "^16.4.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"jsonpath": "^1.0.2",
|
|
|
|
"lodash": "^4.17.15",
|
2020-03-15 10:52:02 +03:00
|
|
|
"mac-ca": "^1.0.4",
|
2021-04-15 17:17:14 +03:00
|
|
|
"marked": "^2.0.3",
|
2020-06-30 14:35:16 +03:00
|
|
|
"md5-file": "^5.0.0",
|
Mobx-6 migration (#2718)
* mobx-6 migration -- part 1
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6 migration -- part 2 (npx mobx-undecorate --keepDecorators)
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6 migration -- part 3 (more fixes)
Signed-off-by: Roman <ixrock@gmail.com>
* unwrap possible observables from IPC-messaging
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6 migration -- remove @autobind as class-decorator
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6: replacing @autobind() as method-decorator to @boundMethod
Signed-off-by: Roman <ixrock@gmail.com>
* mobx-6: use toJS()-wrapper since monkey-patching require(mobx).toJS doesn't work
Signed-off-by: Roman <ixrock@gmail.com>
* removed `@observable static`
Signed-off-by: Roman <ixrock@gmail.com>
* use {useDefineForClassFields: true} in tsconfig.json
Signed-off-by: Roman <ixrock@gmail.com>
* remove ExtendedObservableMap
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
* fix: removed makeObservable(this) from "terminal-tab.tsx"
Signed-off-by: Roman <ixrock@gmail.com>
* storage-helper refactoring
Signed-off-by: Roman <ixrock@gmail.com>
* normalize usages of #observable-value.toJSON() / attempt to catch the wind
Signed-off-by: Roman <ixrock@gmail.com>
* refactoring, more possible branch fixes + lint
Signed-off-by: Roman <ixrock@gmail.com>
* debugging cluster-view error -- part 1
Signed-off-by: Roman <ixrock@gmail.com>
* fix: refreshing cluster-view on ready
Signed-off-by: Roman <ixrock@gmail.com>
* fix: various app-crashes related to KubeObject.spec.* access from "undefined"
fix: config-map-details crash
Signed-off-by: Roman <ixrock@gmail.com>
* fix: namespace-store refactoring / saving selected-namespaces to external json-file
Signed-off-by: Roman <ixrock@gmail.com>
* fix: don't cache mobx.when(() => this.someObservable) cause might not work as expected due later call of makeObservable(this) in constructor
Signed-off-by: Roman <ixrock@gmail.com>
* fix: app-crash on editing k8s resource
Signed-off-by: Roman <ixrock@gmail.com>
* fix: restore "all namespaces" on page reload
Signed-off-by: Roman <ixrock@gmail.com>
* - fix: persist table-sort params and cluster-view's sidebar state to lens-local-storage
- new-feature: auto-open main-window's devtools in development-mode (yes/no/ugly?)
Signed-off-by: Roman <ixrock@gmail.com>
* fix: crd definition details -> crashing with <AceEditor mode="json"> (added missing mode-file in ace-editor.tsx)
Signed-off-by: Roman <ixrock@gmail.com>
* fix: crd definitions -> groups selector couldn't deselect last selected option
Signed-off-by: Roman <ixrock@gmail.com>
* refactoring: extensions-api exports clarification for "@k8slens/extensions"
Signed-off-by: Roman <ixrock@gmail.com>
* fix: various app-crashes related to kube-events (events page, some details page, overview, etc.)
Signed-off-by: Roman <ixrock@gmail.com>
* Reverted "use {useDefineForClassFields: true} in tsconfig.json" (various app-crash fixes)
This flag seems to be not possible to use with class-inheritance in some cases.
Example / demo:
`KubeObject` class has initial type definitions for the fields like: "metadata", "kind", etc.
and constructor() has Object.assign(this, data);
Meanwhile child class, e.g. KubeEvent inherited from KubeObject and has it's own extra type definitions for underlying resource, e.g. "involvedObject", "source", etc.
So calling super(data) doesn't work as expected for child class as it's own type definitions overwrites data from parent's constructor with `undefined` at later point.
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge lint-fixes
Signed-off-by: Roman <ixrock@gmail.com>
* catalog.tsx / catalog-entities.store.ts refactoring & fixes
Signed-off-by: Roman <ixrock@gmail.com>
* fix: Catalog -> Browse all tab
Signed-off-by: Roman <ixrock@gmail.com>
* fix: CommandPalette doesn't appear from global menu by click/hotkey
Signed-off-by: Roman <ixrock@gmail.com>
* - Merging interfaces & classses to avoid overwriting fields from parent's super(data)-call with Object.assign(this, data). Otherwise use "declare" keyword at class field definition.
- Revamping {useDefineForClassFields: true} to avoid issues with non-observable class fields in some cases (from previous commit):
```
@observer
export class CommandContainer extends React.Component<CommandContainerProps> {
// without some defined initial value "commandComponent" is non-observable for some reasons
// when tsconfig.ts has {useDefineForClassFields:false}
@observable.ref commandComponent: React.ReactNode = null;
constructor(props: CommandContainerProps) {
super(props);
makeObservable(this);
}
```
Signed-off-by: Roman <ixrock@gmail.com>
* update KubeObject class type definition
Signed-off-by: Roman <ixrock@gmail.com>
* clean up / responding to comments
Signed-off-by: Roman <ixrock@gmail.com>
* fix: app-crash when navigating to catalog from active cluster-view, refactoring `catalog-entity-store`
Signed-off-by: Roman <ixrock@gmail.com>
* catalog-pusher clean up, replaced .observe_() to external observe() helper from "mobx"
Signed-off-by: Roman <ixrock@gmail.com>
* fix: catalog's items stale/non-observable (after connection to the cluster status still "disconnected"), lint-fixes
Signed-off-by: Roman <ixrock@gmail.com>
* fix: Catalog is empty after closing main-window and re-opening app from Tray
Signed-off-by: Roman <ixrock@gmail.com>
* fix: HotBar's icon context menu items non-observable (no "disconnect cluster", etc.)
Signed-off-by: Roman <ixrock@gmail.com>
* lint-fix/license check
Signed-off-by: Roman <ixrock@gmail.com>
* fix: redirect to catalog when disconnecting active cluster
Signed-off-by: Roman <ixrock@gmail.com>
* fix: refresh visibility of active cluster-view on switching from hotbar/catalog
Signed-off-by: Roman <ixrock@gmail.com>
* updated package.json for built-in extensions to use "*" version for packages served from main app
Signed-off-by: Roman <ixrock@gmail.com>
* - added missing makeObservable(this) to metrics-settings.tsx
- updated package-lock.json for built-in extensions
- lint fixes
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge clean up fix, updated package-lock.json for built-in extensions after `make clean-extensions && make build-extensions`
Signed-off-by: Roman <ixrock@gmail.com>
* fix unit-tests
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge fixes
Signed-off-by: Roman <ixrock@gmail.com>
* make lint happy
Signed-off-by: Roman <ixrock@gmail.com>
* reverted some changes, removed auto-opening devtools in dev-mode
Signed-off-by: Roman <ixrock@gmail.com>
* merge fixes
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge conflict fixes:
- proper handling and navigating into catalog's active category via URL-builder
Signed-off-by: Roman <ixrock@gmail.com>
* reverting splitted params for catalog's page route to "/catalog/:group?/:kind?"
Signed-off-by: Roman <ixrock@gmail.com>
* clean-up: remove app's injecting dependencies from `extensions/kube-object-event-status/package.json`
Signed-off-by: Roman <ixrock@gmail.com>
* master-merge fix: added missing makeObservable(this) for extensions.tsx
Signed-off-by: Roman <ixrock@gmail.com>
* fix: catalog entity context menu stale/unobservable
Signed-off-by: Roman <ixrock@gmail.com>
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-05-25 10:24:31 +03:00
|
|
|
"mobx": "^6.3.0",
|
|
|
|
"mobx-observable-history": "^2.0.1",
|
|
|
|
"mobx-react": "^7.1.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"mock-fs": "^4.12.0",
|
2021-06-07 15:14:00 +03:00
|
|
|
"moment": "^2.29.1",
|
2021-04-20 16:26:52 +03:00
|
|
|
"moment-timezone": "^0.5.33",
|
2020-03-15 10:52:02 +03:00
|
|
|
"node-pty": "^0.9.0",
|
2021-04-21 16:29:18 +03:00
|
|
|
"npm": "^6.14.8",
|
2020-06-30 14:35:16 +03:00
|
|
|
"openid-client": "^3.15.2",
|
2020-12-22 17:09:52 +03:00
|
|
|
"p-limit": "^3.1.0",
|
2020-08-20 08:53:07 +03:00
|
|
|
"path-to-regexp": "^6.1.0",
|
2021-06-18 21:57:35 +03:00
|
|
|
"proper-lockfile": "^4.1.2",
|
2020-12-22 16:29:25 +03:00
|
|
|
"react": "^17.0.1",
|
|
|
|
"react-dom": "^17.0.1",
|
|
|
|
"react-router": "^5.2.0",
|
2021-06-16 16:05:24 +03:00
|
|
|
"react-virtualized-auto-sizer": "^1.0.5",
|
2021-02-12 17:37:41 +03:00
|
|
|
"readable-stream": "^3.6.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"request": "^2.88.2",
|
2021-06-09 06:49:16 +03:00
|
|
|
"request-promise-native": "^1.0.9",
|
2020-06-30 14:35:16 +03:00
|
|
|
"semver": "^7.3.2",
|
2020-08-20 08:53:07 +03:00
|
|
|
"serializr": "^2.0.3",
|
2021-01-20 14:17:16 +03:00
|
|
|
"shell-env": "^3.0.1",
|
2020-09-16 20:54:36 +03:00
|
|
|
"spdy": "^4.0.2",
|
2020-11-25 10:55:28 +03:00
|
|
|
"tar": "^6.0.5",
|
2020-03-15 10:52:02 +03:00
|
|
|
"tcp-port-used": "^1.0.1",
|
2020-06-30 14:35:16 +03:00
|
|
|
"tempy": "^0.5.0",
|
2021-05-11 16:49:33 +03:00
|
|
|
"url-parse": "^1.5.1",
|
2021-01-08 18:06:29 +03:00
|
|
|
"uuid": "^8.3.2",
|
2020-06-30 14:35:16 +03:00
|
|
|
"win-ca": "^3.2.0",
|
2020-03-15 10:52:02 +03:00
|
|
|
"winston": "^3.2.1",
|
2020-08-20 08:53:07 +03:00
|
|
|
"winston-transport-browserconsole": "^1.0.5",
|
2021-05-31 16:51:19 +03:00
|
|
|
"ws": "^7.4.6"
|
2020-03-15 10:52:02 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2020-08-20 08:53:07 +03:00
|
|
|
"@emeraldpay/hashicon-react": "^0.4.0",
|
2021-05-23 15:15:42 +03:00
|
|
|
"@material-ui/core": "^4.11.4",
|
2021-04-30 16:48:20 +03:00
|
|
|
"@material-ui/icons": "^4.11.2",
|
2021-03-15 15:57:19 +03:00
|
|
|
"@material-ui/lab": "^4.0.0-alpha.57",
|
2020-11-09 16:04:41 +03:00
|
|
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
|
2021-06-09 15:23:42 +03:00
|
|
|
"@testing-library/jest-dom": "^5.13.0",
|
2021-04-08 16:58:07 +03:00
|
|
|
"@testing-library/react": "^11.2.6",
|
2021-02-09 16:31:15 +03:00
|
|
|
"@types/byline": "^4.2.32",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/chart.js": "^2.9.21",
|
|
|
|
"@types/circular-dependency-plugin": "^5.0.1",
|
|
|
|
"@types/color": "^3.0.1",
|
2020-10-05 16:39:58 +03:00
|
|
|
"@types/crypto-js": "^3.1.47",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/dompurify": "^2.0.2",
|
2020-11-24 13:45:12 +03:00
|
|
|
"@types/electron-devtools-installer": "^2.2.0",
|
2020-10-05 16:39:58 +03:00
|
|
|
"@types/electron-window-state": "^2.0.34",
|
|
|
|
"@types/fs-extra": "^9.0.1",
|
2021-01-18 16:03:22 +03:00
|
|
|
"@types/hapi": "^18.0.5",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/hoist-non-react-statics": "^3.3.1",
|
|
|
|
"@types/html-webpack-plugin": "^3.2.3",
|
2021-04-22 15:08:48 +03:00
|
|
|
"@types/http-proxy": "^1.17.5",
|
2021-04-30 16:48:20 +03:00
|
|
|
"@types/jest": "^26.0.22",
|
2020-10-05 16:39:58 +03:00
|
|
|
"@types/js-yaml": "^3.12.4",
|
2020-12-22 16:29:25 +03:00
|
|
|
"@types/jsdom": "^16.2.4",
|
2020-10-05 16:39:58 +03:00
|
|
|
"@types/jsonpath": "^0.2.0",
|
|
|
|
"@types/lodash": "^4.14.155",
|
2021-06-03 17:18:58 +03:00
|
|
|
"@types/marked": "^2.0.3",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/md5-file": "^4.0.2",
|
|
|
|
"@types/mini-css-extract-plugin": "^0.9.1",
|
2020-10-05 16:39:58 +03:00
|
|
|
"@types/mock-fs": "^4.10.0",
|
|
|
|
"@types/module-alias": "^2.0.0",
|
2021-06-07 15:14:43 +03:00
|
|
|
"@types/node": "12.20",
|
2020-10-05 16:39:58 +03:00
|
|
|
"@types/npm": "^2.0.31",
|
2020-09-08 15:44:34 +03:00
|
|
|
"@types/progress-bar-webpack-plugin": "^2.1.0",
|
2020-10-05 16:39:58 +03:00
|
|
|
"@types/proper-lockfile": "^4.1.1",
|
2021-04-23 17:25:04 +03:00
|
|
|
"@types/randomcolor": "^0.5.5",
|
2020-12-22 16:29:25 +03:00
|
|
|
"@types/react": "^17.0.0",
|
2020-10-05 16:39:58 +03:00
|
|
|
"@types/react-beautiful-dnd": "^13.0.0",
|
2021-06-07 15:15:54 +03:00
|
|
|
"@types/react-dom": "^17.0.6",
|
2020-12-22 16:29:25 +03:00
|
|
|
"@types/react-router-dom": "^5.1.6",
|
2021-06-02 21:15:30 +03:00
|
|
|
"@types/react-select": "3.1.2",
|
2021-05-23 15:15:42 +03:00
|
|
|
"@types/react-table": "^7.7.0",
|
2021-06-16 16:05:24 +03:00
|
|
|
"@types/react-virtualized-auto-sizer": "^1.0.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/react-window": "^1.8.2",
|
2021-02-12 17:37:41 +03:00
|
|
|
"@types/readable-stream": "^2.3.9",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/request": "^2.48.5",
|
|
|
|
"@types/request-promise-native": "^1.0.17",
|
|
|
|
"@types/semver": "^7.2.0",
|
2021-06-08 14:41:25 +03:00
|
|
|
"@types/sharp": "^0.28.3",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/shelljs": "^0.8.8",
|
2020-09-16 20:54:36 +03:00
|
|
|
"@types/spdy": "^3.4.4",
|
2020-12-22 16:29:25 +03:00
|
|
|
"@types/tar": "^4.0.4",
|
2020-03-15 10:52:02 +03:00
|
|
|
"@types/tcp-port-used": "^1.0.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/tempy": "^0.3.0",
|
2021-02-25 17:32:40 +03:00
|
|
|
"@types/url-parse": "^1.4.3",
|
2021-01-08 18:06:29 +03:00
|
|
|
"@types/uuid": "^8.3.0",
|
2020-06-09 13:18:24 +03:00
|
|
|
"@types/webdriverio": "^4.13.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/webpack": "^4.41.17",
|
2020-11-09 16:04:41 +03:00
|
|
|
"@types/webpack-dev-server": "^3.11.1",
|
2020-06-30 14:35:16 +03:00
|
|
|
"@types/webpack-env": "^1.15.2",
|
|
|
|
"@types/webpack-node-externals": "^1.7.1",
|
2021-02-02 18:42:31 +03:00
|
|
|
"@typescript-eslint/eslint-plugin": "^4.14.2",
|
2020-09-01 16:27:39 +03:00
|
|
|
"@typescript-eslint/parser": "^4.0.0",
|
2021-04-08 16:58:45 +03:00
|
|
|
"ace-builds": "^1.4.12",
|
2021-04-08 20:43:01 +03:00
|
|
|
"ansi_up": "^5.0.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"chart.js": "^2.9.3",
|
2021-01-07 22:13:59 +03:00
|
|
|
"circular-dependency-plugin": "^5.2.2",
|
2020-06-30 14:35:16 +03:00
|
|
|
"color": "^3.1.2",
|
|
|
|
"concurrently": "^5.2.0",
|
2021-06-09 16:54:34 +03:00
|
|
|
"css-loader": "^5.2.6",
|
2021-03-15 15:57:19 +03:00
|
|
|
"deepdash": "^5.3.5",
|
2020-06-30 14:35:16 +03:00
|
|
|
"dompurify": "^2.0.11",
|
2021-04-12 09:48:57 +03:00
|
|
|
"electron": "^9.4.4",
|
2021-04-12 17:31:54 +03:00
|
|
|
"electron-builder": "^22.10.5",
|
2020-06-30 14:35:16 +03:00
|
|
|
"electron-notarize": "^0.3.0",
|
2020-09-01 16:27:39 +03:00
|
|
|
"eslint": "^7.7.0",
|
2021-05-17 16:43:53 +03:00
|
|
|
"eslint-plugin-header": "^3.1.1",
|
2021-06-23 12:19:24 +03:00
|
|
|
"eslint-plugin-react": "^7.24.0",
|
2021-05-20 19:01:01 +03:00
|
|
|
"eslint-plugin-react-hooks": "^4.2.0",
|
2020-11-30 21:00:13 +03:00
|
|
|
"eslint-plugin-unused-imports": "^1.0.1",
|
2021-05-31 16:50:49 +03:00
|
|
|
"file-loader": "^6.2.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"flex.box": "^3.4.4",
|
|
|
|
"fork-ts-checker-webpack-plugin": "^5.0.0",
|
|
|
|
"hoist-non-react-statics": "^3.3.2",
|
|
|
|
"html-webpack-plugin": "^4.3.0",
|
|
|
|
"identity-obj-proxy": "^3.0.0",
|
|
|
|
"include-media": "^1.4.9",
|
|
|
|
"jest": "^26.0.1",
|
2020-12-28 15:18:03 +03:00
|
|
|
"jest-canvas-mock": "^2.3.0",
|
2020-11-03 15:30:36 +03:00
|
|
|
"jest-fetch-mock": "^3.0.3",
|
2020-10-09 18:25:20 +03:00
|
|
|
"jest-mock-extended": "^1.0.10",
|
2021-01-25 21:36:35 +03:00
|
|
|
"make-plural": "^6.2.2",
|
2021-06-02 14:54:37 +03:00
|
|
|
"mini-css-extract-plugin": "^1.6.0",
|
2021-06-07 15:16:34 +03:00
|
|
|
"node-loader": "^1.0.3",
|
2020-06-30 14:35:16 +03:00
|
|
|
"node-sass": "^4.14.1",
|
|
|
|
"nodemon": "^2.0.4",
|
2021-02-25 17:32:40 +03:00
|
|
|
"open": "^7.3.1",
|
2020-06-30 14:35:16 +03:00
|
|
|
"patch-package": "^6.2.2",
|
2021-05-23 15:15:42 +03:00
|
|
|
"postcss": "^8.2.14",
|
|
|
|
"postcss-loader": "~3.0.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"postinstall-postinstall": "^2.1.0",
|
2020-09-08 15:44:34 +03:00
|
|
|
"progress-bar-webpack-plugin": "^2.1.0",
|
2021-04-23 17:25:04 +03:00
|
|
|
"randomcolor": "^0.6.2",
|
2020-06-30 14:35:16 +03:00
|
|
|
"raw-loader": "^4.0.1",
|
2021-04-23 15:04:28 +03:00
|
|
|
"react-beautiful-dnd": "^13.1.0",
|
2020-11-09 16:04:41 +03:00
|
|
|
"react-refresh": "^0.9.0",
|
2020-10-05 16:39:58 +03:00
|
|
|
"react-router-dom": "^5.2.0",
|
2021-06-02 21:15:30 +03:00
|
|
|
"react-select": "3.1.1",
|
2021-01-27 17:20:02 +03:00
|
|
|
"react-select-event": "^5.1.0",
|
2021-05-23 15:15:42 +03:00
|
|
|
"react-table": "^7.7.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"react-window": "^1.8.5",
|
|
|
|
"sass-loader": "^8.0.2",
|
2020-10-27 16:25:29 +03:00
|
|
|
"sharp": "^0.26.1",
|
2020-08-20 08:53:07 +03:00
|
|
|
"spectron": "11.0.0",
|
2021-06-04 15:51:58 +03:00
|
|
|
"style-loader": "^2.0.0",
|
2021-05-23 15:15:42 +03:00
|
|
|
"tailwindcss": "^2.1.2",
|
2021-04-30 16:48:20 +03:00
|
|
|
"ts-jest": "26.3.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"ts-loader": "^7.0.5",
|
|
|
|
"ts-node": "^8.10.2",
|
2021-04-23 15:45:20 +03:00
|
|
|
"type-fest": "^1.0.2",
|
2021-05-31 08:09:57 +03:00
|
|
|
"typed-emitter": "^1.3.1",
|
2021-06-07 16:51:43 +03:00
|
|
|
"typedoc": "0.21.0-beta.2",
|
|
|
|
"typedoc-plugin-markdown": "^3.9.0",
|
2021-06-18 21:57:52 +03:00
|
|
|
"typeface-roboto": "^1.1.13",
|
2021-05-28 15:41:27 +03:00
|
|
|
"typescript": "^4.3.2",
|
2021-05-23 15:15:42 +03:00
|
|
|
"typescript-plugin-css-modules": "^3.2.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"url-loader": "^4.1.0",
|
2020-11-09 16:04:41 +03:00
|
|
|
"webpack": "^4.44.2",
|
2020-06-30 14:35:16 +03:00
|
|
|
"webpack-cli": "^3.3.11",
|
2020-11-09 16:04:41 +03:00
|
|
|
"webpack-dev-server": "^3.11.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"webpack-node-externals": "^1.7.2",
|
2020-11-10 12:36:06 +03:00
|
|
|
"what-input": "^5.2.10",
|
2021-05-28 16:12:25 +03:00
|
|
|
"xterm": "^4.12.0",
|
2020-06-30 14:35:16 +03:00
|
|
|
"xterm-addon-fit": "^0.4.0"
|
2020-03-15 10:52:02 +03:00
|
|
|
}
|
|
|
|
}
|