From d4f02c606fcf78aa02d460f8d1f0714597fc5bf9 Mon Sep 17 00:00:00 2001 From: Sam Foo Date: Mon, 12 Jul 2021 13:05:49 -0700 Subject: [PATCH] Bump prettier to 2.3.2 Signed-off-by: Sam Foo --- web/package-lock.json | 218 ++++++++++++++---- web/package.json | 2 +- .../abstract-view/abstract-view.component.ts | 7 +- .../form-view-container.component.spec.ts | 12 +- .../accordion/accordion.component.ts | 3 +- .../content-filter.component.ts | 3 +- .../content-text-filter.component.ts | 9 +- .../datagrid/datagrid.component.ts | 3 +- .../json-editor/json-editor.component.ts | 3 +- .../presentation/modal/modal.component.ts | 3 +- .../overflow-labels.component.spec.ts | 5 +- .../pod-status/pod-status.component.ts | 14 +- .../presentation/ports/ports.component.ts | 3 +- .../resource-viewer/octant.style.ts | 9 +- .../resource-viewer.component.spec.ts | 7 +- .../resource-viewer.component.ts | 3 +- .../select-file/select-file.component.ts | 3 +- .../stepper/stepper.component.spec.ts | 10 +- .../presentation/stepper/stepper.component.ts | 3 +- .../presentation/text/text.component.ts | 3 +- .../timeline/timeline.component.ts | 3 +- .../timestamp/timestamp.component.ts | 3 +- .../smart/editor/editor.component.ts | 3 +- .../smart/logs/logs.component.spec.ts | 10 +- .../components/smart/logs/logs.component.ts | 10 +- .../slider-view/slider-view.component.ts | 3 +- .../smart/terminal/terminal.component.ts | 3 +- .../view/view-container.component.ts | 10 +- .../kube-context/kube-context.service.ts | 5 +- .../navigation/navigation.service.spec.ts | 3 +- .../navigation/navigation.test.data.ts | 33 ++- .../preferences/preferences.service.ts | 5 +- .../smart/container/container.component.ts | 7 +- .../input-filter.component.spec.ts | 15 +- .../smart/namespace/namespace.component.ts | 20 +- .../smart/navigation/navigation.component.ts | 7 +- .../smart/notifier/notifier.component.ts | 7 +- .../quick-switcher.component.ts | 12 +- .../theme-switch-button.component.spec.ts | 5 +- web/src/app/util/timestamp-comparator.ts | 3 +- web/src/stories/graph/graph.real.data.ts | 192 +++++---------- web/src/stories/overview.data.ts | 42 ++-- 42 files changed, 390 insertions(+), 334 deletions(-) diff --git a/web/package-lock.json b/web/package-lock.json index 5bbcbafadb..de0f7a3ffa 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -1,6 +1,6 @@ { "name": "octant", - "version": "0.21.0", + "version": "0.22.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5556,6 +5556,19 @@ "semver": "^6.3.0" }, "dependencies": { + "browserslist": { + "version": "4.16.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz", + "integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001219", + "colorette": "^1.2.2", + "electron-to-chromium": "^1.3.723", + "escalade": "^3.1.1", + "node-releases": "^1.1.71" + } + }, "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", @@ -6372,6 +6385,12 @@ "picomatch": "^2.0.4" } }, + "caniuse-lite": { + "version": "1.0.30001245", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001245.tgz", + "integrity": "sha512-768fM9j1PKXpOCKws6eTo3RHmvTUsG9UrpT4WoREFeZgJBTi4/X9g565azS/rVUGtqb8nt7FjLeF5u4kukERnA==", + "dev": true + }, "chalk": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", @@ -6433,6 +6452,12 @@ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, + "colorette": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", + "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", + "dev": true + }, "colors": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/colors/-/colors-1.4.0.tgz", @@ -6455,6 +6480,19 @@ "semver": "7.0.0" }, "dependencies": { + "browserslist": { + "version": "4.16.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz", + "integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001219", + "colorette": "^1.2.2", + "electron-to-chromium": "^1.3.723", + "escalade": "^3.1.1", + "node-releases": "^1.1.71" + } + }, "semver": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/semver/-/semver-7.0.0.tgz", @@ -8501,6 +8539,12 @@ "yocto-queue": "^0.1.0" } }, + "prettier": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz", + "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", + "dev": true + }, "regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", @@ -8624,6 +8668,35 @@ "num2fraction": "^1.2.2", "postcss": "^7.0.32", "postcss-value-parser": "^4.1.0" + }, + "dependencies": { + "browserslist": { + "version": "4.16.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz", + "integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001219", + "colorette": "^1.2.2", + "electron-to-chromium": "^1.3.723", + "escalade": "^3.1.1", + "node-releases": "^1.1.71" + }, + "dependencies": { + "caniuse-lite": { + "version": "1.0.30001245", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001245.tgz", + "integrity": "sha512-768fM9j1PKXpOCKws6eTo3RHmvTUsG9UrpT4WoREFeZgJBTi4/X9g565azS/rVUGtqb8nt7FjLeF5u4kukERnA==", + "dev": true + }, + "colorette": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", + "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", + "dev": true + } + } + } } }, "postcss": { @@ -9049,6 +9122,35 @@ "num2fraction": "^1.2.2", "postcss": "^7.0.32", "postcss-value-parser": "^4.1.0" + }, + "dependencies": { + "browserslist": { + "version": "4.16.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz", + "integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001219", + "colorette": "^1.2.2", + "electron-to-chromium": "^1.3.723", + "escalade": "^3.1.1", + "node-releases": "^1.1.71" + }, + "dependencies": { + "caniuse-lite": { + "version": "1.0.30001245", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001245.tgz", + "integrity": "sha512-768fM9j1PKXpOCKws6eTo3RHmvTUsG9UrpT4WoREFeZgJBTi4/X9g565azS/rVUGtqb8nt7FjLeF5u4kukERnA==", + "dev": true + }, + "colorette": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", + "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", + "dev": true + } + } + } } }, "babel-plugin-polyfill-corejs3": { @@ -9536,6 +9638,12 @@ "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true }, + "prettier": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz", + "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", + "dev": true + }, "regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", @@ -10692,6 +10800,12 @@ "universalify": "^2.0.0" } }, + "prettier": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz", + "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", + "dev": true + }, "regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", @@ -11255,6 +11369,12 @@ "integrity": "sha512-BxbNGGNm0RyRYvUdHpIwv9IWzeM9XClbOxwoATuFdOE7ZE6wHL+HQ5T8hoPM+zHvmKzzsEqhgy0GrQ5X13afiQ==", "dev": true }, + "prettier": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz", + "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", + "dev": true + }, "regenerator-runtime": { "version": "0.13.7", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.7.tgz", @@ -13746,6 +13866,18 @@ "core-js-compat": "^3.14.0" }, "dependencies": { + "caniuse-lite": { + "version": "1.0.30001245", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001245.tgz", + "integrity": "sha512-768fM9j1PKXpOCKws6eTo3RHmvTUsG9UrpT4WoREFeZgJBTi4/X9g565azS/rVUGtqb8nt7FjLeF5u4kukERnA==", + "dev": true + }, + "colorette": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", + "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", + "dev": true + }, "core-js-compat": { "version": "3.15.2", "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.15.2.tgz", @@ -13754,6 +13886,21 @@ "requires": { "browserslist": "^4.16.6", "semver": "7.0.0" + }, + "dependencies": { + "browserslist": { + "version": "4.16.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz", + "integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001219", + "colorette": "^1.2.2", + "electron-to-chromium": "^1.3.723", + "escalade": "^3.1.1", + "node-releases": "^1.1.71" + } + } } }, "semver": { @@ -14363,33 +14510,6 @@ "pako": "~1.0.5" } }, - "browserslist": { - "version": "4.16.6", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz", - "integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001219", - "colorette": "^1.2.2", - "electron-to-chromium": "^1.3.723", - "escalade": "^3.1.1", - "node-releases": "^1.1.71" - }, - "dependencies": { - "caniuse-lite": { - "version": "1.0.30001244", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001244.tgz", - "integrity": "sha512-Wb4UFZPkPoJoKKVfELPWytRzpemjP/s0pe22NriANru1NoI+5bGNxzKtk7edYL8rmCWTfQO8eRiF0pn1Dqzx7Q==", - "dev": true - }, - "colorette": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", - "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", - "dev": true - } - } - }, "browserstack": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/browserstack/-/browserstack-1.6.0.tgz", @@ -20339,12 +20459,6 @@ "react-is": "^16.7.0" } }, - "hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, "hpack.js": { "version": "2.1.6", "resolved": "https://registry.npmjs.org/hpack.js/-/hpack.js-2.1.6.tgz", @@ -24407,6 +24521,15 @@ "validate-npm-package-license": "^3.0.1" }, "dependencies": { + "hosted-git-info": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-3.0.8.tgz", + "integrity": "sha512-aXpmwoOhRBrw6X3j0h5RloK4x1OzsxMPyxqIHyNfSe2pypkVTZFpEiRoSipPEPlMrh0HW/XsjkJ5WgnCirpNUw==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, "semver": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", @@ -26509,9 +26632,9 @@ "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=" }, "prettier": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz", - "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz", + "integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==", "dev": true }, "pretty-bytes": { @@ -27246,17 +27369,24 @@ "dev": true }, "browserslist": { - "version": "4.14.2", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.14.2.tgz", - "integrity": "sha512-HI4lPveGKUR0x2StIz+2FXfDk9SfVMrxn6PLh1JeGUwcuoDkdKZebWiyLRJ68iIPDpMI4JLVDf7S7XzslgWOhw==", + "version": "4.16.6", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz", + "integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==", "dev": true, "requires": { - "caniuse-lite": "^1.0.30001125", - "electron-to-chromium": "^1.3.564", - "escalade": "^3.0.2", - "node-releases": "^1.1.61" + "caniuse-lite": "^1.0.30001219", + "colorette": "^1.2.2", + "electron-to-chromium": "^1.3.723", + "escalade": "^3.1.1", + "node-releases": "^1.1.71" } }, + "colorette": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz", + "integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==", + "dev": true + }, "cross-spawn": { "version": "7.0.3", "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", diff --git a/web/package.json b/web/package.json index 548a3da53c..d13121b152 100644 --- a/web/package.json +++ b/web/package.json @@ -134,7 +134,7 @@ "karma-spec-reporter": "0.0.32", "marked": "^2.0.1", "npm-force-resolutions": "0.0.10", - "prettier": "~2.2.1", + "prettier": "^2.3.2", "protractor": "~7.0.0", "react": "^17.0.2", "react-dom": "^17.0.2", diff --git a/web/src/app/modules/shared/components/abstract-view/abstract-view.component.ts b/web/src/app/modules/shared/components/abstract-view/abstract-view.component.ts index 84e744f037..39ee60daf8 100644 --- a/web/src/app/modules/shared/components/abstract-view/abstract-view.component.ts +++ b/web/src/app/modules/shared/components/abstract-view/abstract-view.component.ts @@ -11,16 +11,17 @@ import { View } from '../../models/content'; @Directive() // tslint:disable-next-line:directive-class-suffix export abstract class AbstractViewComponent - implements OnInit, AfterViewInit { + implements OnInit, AfterViewInit +{ v: T; @Input() set view(v: View) { - this.v = (v as unknown) as T; + this.v = v as unknown as T; this.update(); } get view() { - return (this.v as unknown) as View; + return this.v as unknown as View; } @Output() viewInit: EventEmitter = new EventEmitter(); diff --git a/web/src/app/modules/shared/components/form-view-container/form-view-container.component.spec.ts b/web/src/app/modules/shared/components/form-view-container/form-view-container.component.spec.ts index f39ef803fd..c8f43b1c1c 100644 --- a/web/src/app/modules/shared/components/form-view-container/form-view-container.component.spec.ts +++ b/web/src/app/modules/shared/components/form-view-container/form-view-container.component.spec.ts @@ -117,9 +117,9 @@ describe('FormViewContainerComponent', () => { ); fixture.detectChanges(); - const selected = (component.formGroup.get( - name - ) as FormArray).getRawValue(); + const selected = ( + component.formGroup.get(name) as FormArray + ).getRawValue(); expect(selected[0]).toEqual('a'); expect(element.querySelector('cds-select')).not.toBeNull(); }); @@ -155,9 +155,9 @@ describe('FormViewContainerComponent', () => { ); fixture.detectChanges(); - const selected = (component.formGroup.get( - name - ) as FormArray).getRawValue(); + const selected = ( + component.formGroup.get(name) as FormArray + ).getRawValue(); expect(selected[0]).toEqual(undefined); expect(element.querySelector('cds-select')).not.toBeNull(); }); diff --git a/web/src/app/modules/shared/components/presentation/accordion/accordion.component.ts b/web/src/app/modules/shared/components/presentation/accordion/accordion.component.ts index ec7c7fafa7..476e4496d4 100644 --- a/web/src/app/modules/shared/components/presentation/accordion/accordion.component.ts +++ b/web/src/app/modules/shared/components/presentation/accordion/accordion.component.ts @@ -15,7 +15,8 @@ import { ViewService } from '../../../services/view/view.service'; }) export class AccordionComponent extends AbstractViewComponent - implements OnInit { + implements OnInit +{ rows: AccordionRow[]; title: string; allowMultipleExpanded: boolean; diff --git a/web/src/app/modules/shared/components/presentation/content-filter/content-filter.component.ts b/web/src/app/modules/shared/components/presentation/content-filter/content-filter.component.ts index 1cb153a3d5..97ed977562 100644 --- a/web/src/app/modules/shared/components/presentation/content-filter/content-filter.component.ts +++ b/web/src/app/modules/shared/components/presentation/content-filter/content-filter.component.ts @@ -10,7 +10,8 @@ import trackByIdentity from 'src/app/util/trackBy/trackByIdentity'; styleUrls: ['./content-filter.component.scss'], }) export class ContentFilterComponent - implements ClrDatagridFilterInterface, OnInit { + implements ClrDatagridFilterInterface, OnInit +{ @Input() filter: TableFilter; @Input() column: string; diff --git a/web/src/app/modules/shared/components/presentation/content-text-filter/content-text-filter.component.ts b/web/src/app/modules/shared/components/presentation/content-text-filter/content-text-filter.component.ts index 2435d826fb..c117ab0092 100644 --- a/web/src/app/modules/shared/components/presentation/content-text-filter/content-text-filter.component.ts +++ b/web/src/app/modules/shared/components/presentation/content-text-filter/content-text-filter.component.ts @@ -18,7 +18,8 @@ import { RelativePipe } from '../../../pipes/relative/relative.pipe'; styleUrls: ['./content-text-filter.component.scss'], }) export class ContentTextFilterComponent - implements ClrDatagridFilterInterface, OnInit { + implements ClrDatagridFilterInterface, OnInit +{ @Input() column: string; @ViewChild('search') search: ElementRef; @@ -67,9 +68,9 @@ export class ContentTextFilterComponent container => container.name ); case 'labels': - return Object.entries( - row.data[column].config.labels - ).map((labels: any[]) => labels.join(':')); + return Object.entries(row.data[column].config.labels).map( + (labels: any[]) => labels.join(':') + ); case 'selectors': return row.data[column].config.selectors.map( selector => selector.config.key + ':' + selector.config.value diff --git a/web/src/app/modules/shared/components/presentation/datagrid/datagrid.component.ts b/web/src/app/modules/shared/components/presentation/datagrid/datagrid.component.ts index f0f67e235a..cfe3c677a4 100644 --- a/web/src/app/modules/shared/components/presentation/datagrid/datagrid.component.ts +++ b/web/src/app/modules/shared/components/presentation/datagrid/datagrid.component.ts @@ -45,7 +45,8 @@ import { Subscription } from 'rxjs'; }) export class DatagridComponent extends AbstractViewComponent - implements OnDestroy { + implements OnDestroy +{ timeStampComparator = new TimestampComparator(); sortOrder: ClrDatagridSortOrder = ClrDatagridSortOrder.UNSORTED; diff --git a/web/src/app/modules/shared/components/presentation/json-editor/json-editor.component.ts b/web/src/app/modules/shared/components/presentation/json-editor/json-editor.component.ts index 87f9ce9516..fe8d8db8c4 100644 --- a/web/src/app/modules/shared/components/presentation/json-editor/json-editor.component.ts +++ b/web/src/app/modules/shared/components/presentation/json-editor/json-editor.component.ts @@ -22,7 +22,8 @@ import { JSONEditorView } from '../../../models/content'; }) export class JSONEditorComponent extends AbstractViewComponent - implements AfterViewChecked { + implements AfterViewChecked +{ container: HTMLElement; id: string; options = { diff --git a/web/src/app/modules/shared/components/presentation/modal/modal.component.ts b/web/src/app/modules/shared/components/presentation/modal/modal.component.ts index 0f85faa1d9..7d4363ee00 100644 --- a/web/src/app/modules/shared/components/presentation/modal/modal.component.ts +++ b/web/src/app/modules/shared/components/presentation/modal/modal.component.ts @@ -28,7 +28,8 @@ interface Choice { }) export class ModalComponent extends AbstractViewComponent - implements OnInit, OnDestroy { + implements OnInit, OnDestroy +{ @ViewChild('modalAppForm') modalAppForm: FormComponent; title: TitleView[]; diff --git a/web/src/app/modules/shared/components/presentation/overflow-labels/overflow-labels.component.spec.ts b/web/src/app/modules/shared/components/presentation/overflow-labels/overflow-labels.component.spec.ts index 3ed6bdd29c..dd53e73bd6 100644 --- a/web/src/app/modules/shared/components/presentation/overflow-labels/overflow-labels.component.spec.ts +++ b/web/src/app/modules/shared/components/presentation/overflow-labels/overflow-labels.component.spec.ts @@ -68,8 +68,9 @@ describe('OverflowLabelsComponent', () => { ['keyOne']: 'valueOne', }; fixture.detectChanges(); - const firstLabel = fixture.debugElement.query(By.css('.label')) - .nativeElement; + const firstLabel = fixture.debugElement.query( + By.css('.label') + ).nativeElement; firstLabel.click(); expect(component.filterLabel).toHaveBeenCalledWith('keyOne', 'valueOne'); diff --git a/web/src/app/modules/shared/components/presentation/pod-status/pod-status.component.ts b/web/src/app/modules/shared/components/presentation/pod-status/pod-status.component.ts index 84fd7fa722..27dac5e98b 100644 --- a/web/src/app/modules/shared/components/presentation/pod-status/pod-status.component.ts +++ b/web/src/app/modules/shared/components/presentation/pod-status/pod-status.component.ts @@ -35,14 +35,12 @@ export class PodStatusComponent extends AbstractViewComponent { if (pods) { this.podStatuses = Object.keys(pods) .sort() - .map( - (podName: string): PodStatus => { - return { - name: podName, - status: pods[podName].status, - }; - } - ); + .map((podName: string): PodStatus => { + return { + name: podName, + status: pods[podName].status, + }; + }); } } } diff --git a/web/src/app/modules/shared/components/presentation/ports/ports.component.ts b/web/src/app/modules/shared/components/presentation/ports/ports.component.ts index 5084c74858..5d03f0330c 100644 --- a/web/src/app/modules/shared/components/presentation/ports/ports.component.ts +++ b/web/src/app/modules/shared/components/presentation/ports/ports.component.ts @@ -22,7 +22,8 @@ import { AbstractViewComponent } from '../../abstract-view/abstract-view.compone }) export class PortsComponent extends AbstractViewComponent - implements OnDestroy { + implements OnDestroy +{ private previousView: PortsView; @Output() portLoad: EventEmitter = new EventEmitter(true); diff --git a/web/src/app/modules/shared/components/presentation/resource-viewer/octant.style.ts b/web/src/app/modules/shared/components/presentation/resource-viewer/octant.style.ts index 068668e9e3..171e4d377e 100644 --- a/web/src/app/modules/shared/components/presentation/resource-viewer/octant.style.ts +++ b/web/src/app/modules/shared/components/presentation/resource-viewer/octant.style.ts @@ -1,16 +1,19 @@ import { Stylesheet } from 'cytoscape'; -const svgHealthy = color => ` +const svgHealthy = + color => ` check-circle-solid `; -const svgWarning = color => ` +const svgWarning = + color => ` exclamation-triangle-solid `; -const svgError = color => ` +const svgError = + color => ` exclamation-circle-solid `; diff --git a/web/src/app/modules/shared/components/presentation/resource-viewer/resource-viewer.component.spec.ts b/web/src/app/modules/shared/components/presentation/resource-viewer/resource-viewer.component.spec.ts index 84a5447e2b..302a7a1470 100644 --- a/web/src/app/modules/shared/components/presentation/resource-viewer/resource-viewer.component.spec.ts +++ b/web/src/app/modules/shared/components/presentation/resource-viewer/resource-viewer.component.spec.ts @@ -34,7 +34,7 @@ describe('ResourceViewerComponent', () => { }); it('should show node labels', done => { - component.view = ({ + component.view = { config: { nodes: { '16428c94-a848-47d5-b1e3-c8245b57959b': { @@ -55,15 +55,14 @@ describe('ResourceViewerComponent', () => { }, config: { value: 'metadata-proxy-v0.1', - ref: - '/overview/namespace/kube-system/workloads/daemon-sets/metadata-proxy-v0.1', + ref: '/overview/namespace/kube-system/workloads/daemon-sets/metadata-proxy-v0.1', }, }, hasChildren: false, }, }, }, - } as unknown) as ResourceViewerView; + } as unknown as ResourceViewerView; fixture.detectChanges(); diff --git a/web/src/app/modules/shared/components/presentation/resource-viewer/resource-viewer.component.ts b/web/src/app/modules/shared/components/presentation/resource-viewer/resource-viewer.component.ts index b561103bc7..5abb3c26bf 100644 --- a/web/src/app/modules/shared/components/presentation/resource-viewer/resource-viewer.component.ts +++ b/web/src/app/modules/shared/components/presentation/resource-viewer/resource-viewer.component.ts @@ -46,7 +46,8 @@ const defaultZoom = { }) export class ResourceViewerComponent extends AbstractViewComponent - implements OnInit, OnDestroy { + implements OnInit, OnDestroy +{ selectedNodeId: string; private subscriptionTheme: Subscription; resizeEdges = { left: true, right: true }; diff --git a/web/src/app/modules/shared/components/presentation/select-file/select-file.component.ts b/web/src/app/modules/shared/components/presentation/select-file/select-file.component.ts index feb3cad36e..3ab49168e8 100644 --- a/web/src/app/modules/shared/components/presentation/select-file/select-file.component.ts +++ b/web/src/app/modules/shared/components/presentation/select-file/select-file.component.ts @@ -30,7 +30,8 @@ type File = { }) export class SelectFileComponent extends AbstractViewComponent - implements OnInit { + implements OnInit +{ label: string; multiple: boolean; layout: string; diff --git a/web/src/app/modules/shared/components/presentation/stepper/stepper.component.spec.ts b/web/src/app/modules/shared/components/presentation/stepper/stepper.component.spec.ts index 395527e9f4..b29fe4df62 100644 --- a/web/src/app/modules/shared/components/presentation/stepper/stepper.component.spec.ts +++ b/web/src/app/modules/shared/components/presentation/stepper/stepper.component.spec.ts @@ -78,15 +78,13 @@ describe('StepperComponent', () => { 'should submit form after completing each step', waitForAsync(() => { fixture.whenStable().then(() => { - let nextButton = fixture.debugElement.nativeElement.querySelector( - '.next' - ); + let nextButton = + fixture.debugElement.nativeElement.querySelector('.next'); nextButton.click(); fixture.detectChanges(); - nextButton = fixture.debugElement.nativeElement.querySelector( - '.submit' - ); + nextButton = + fixture.debugElement.nativeElement.querySelector('.submit'); nextButton.click(); fixture.detectChanges(); diff --git a/web/src/app/modules/shared/components/presentation/stepper/stepper.component.ts b/web/src/app/modules/shared/components/presentation/stepper/stepper.component.ts index 2f00f47902..fe18ad5f0e 100644 --- a/web/src/app/modules/shared/components/presentation/stepper/stepper.component.ts +++ b/web/src/app/modules/shared/components/presentation/stepper/stepper.component.ts @@ -18,7 +18,8 @@ interface Choice { }) export class StepperComponent extends AbstractViewComponent - implements OnInit { + implements OnInit +{ @Output() submit: EventEmitter = new EventEmitter(true); diff --git a/web/src/app/modules/shared/components/presentation/text/text.component.ts b/web/src/app/modules/shared/components/presentation/text/text.component.ts index 8eb3884d2f..259590f3de 100644 --- a/web/src/app/modules/shared/components/presentation/text/text.component.ts +++ b/web/src/app/modules/shared/components/presentation/text/text.component.ts @@ -21,7 +21,8 @@ import { parse } from 'marked'; }) export class TextComponent extends AbstractViewComponent - implements OnInit { + implements OnInit +{ value: string | SafeHtml; clipboardValue: string; copied: boolean; diff --git a/web/src/app/modules/shared/components/presentation/timeline/timeline.component.ts b/web/src/app/modules/shared/components/presentation/timeline/timeline.component.ts index 3ee3acbe25..ac0353d6ef 100644 --- a/web/src/app/modules/shared/components/presentation/timeline/timeline.component.ts +++ b/web/src/app/modules/shared/components/presentation/timeline/timeline.component.ts @@ -14,7 +14,8 @@ import { TimelineStep, TimelineView } from '../../../models/content'; }) export class TimelineComponent extends AbstractViewComponent - implements OnInit { + implements OnInit +{ vertical: boolean; steps: TimelineStep[]; constructor() { diff --git a/web/src/app/modules/shared/components/presentation/timestamp/timestamp.component.ts b/web/src/app/modules/shared/components/presentation/timestamp/timestamp.component.ts index 686b651f04..15983619c6 100644 --- a/web/src/app/modules/shared/components/presentation/timestamp/timestamp.component.ts +++ b/web/src/app/modules/shared/components/presentation/timestamp/timestamp.component.ts @@ -16,7 +16,8 @@ import { AbstractViewComponent } from '../../abstract-view/abstract-view.compone }) export class TimestampComponent extends AbstractViewComponent - implements OnDestroy { + implements OnDestroy +{ timestamp: number; humanReadable: string; diff --git a/web/src/app/modules/shared/components/smart/editor/editor.component.ts b/web/src/app/modules/shared/components/smart/editor/editor.component.ts index d51fffc97d..c559bca2c8 100644 --- a/web/src/app/modules/shared/components/smart/editor/editor.component.ts +++ b/web/src/app/modules/shared/components/smart/editor/editor.component.ts @@ -25,7 +25,8 @@ interface Options { }) export class EditorComponent extends AbstractViewComponent - implements OnInit, OnDestroy { + implements OnInit, OnDestroy +{ set value(v: string) { if (v !== this.editorValue) { this.isModified = true; diff --git a/web/src/app/modules/shared/components/smart/logs/logs.component.spec.ts b/web/src/app/modules/shared/components/smart/logs/logs.component.spec.ts index b737191d9e..d0fad5392f 100644 --- a/web/src/app/modules/shared/components/smart/logs/logs.component.spec.ts +++ b/web/src/app/modules/shared/components/smart/logs/logs.component.spec.ts @@ -157,12 +157,10 @@ describe('LogsComponent', () => { component.filterText = 'Test log'; fixture.detectChanges(); - const prevButton = fixture.debugElement.nativeElement.querySelector( - '#button-prev' - ); - const nextButton = fixture.debugElement.nativeElement.querySelector( - '#button-next' - ); + const prevButton = + fixture.debugElement.nativeElement.querySelector('#button-prev'); + const nextButton = + fixture.debugElement.nativeElement.querySelector('#button-next'); const badgeElement: HTMLDivElement = fixture.debugElement.query( By.css('.clr-filter-summary') ).nativeElement; diff --git a/web/src/app/modules/shared/components/smart/logs/logs.component.ts b/web/src/app/modules/shared/components/smart/logs/logs.component.ts index 30b66f09ea..0a81255e39 100644 --- a/web/src/app/modules/shared/components/smart/logs/logs.component.ts +++ b/web/src/app/modules/shared/components/smart/logs/logs.component.ts @@ -35,7 +35,8 @@ import { AbstractViewComponent } from '../../abstract-view/abstract-view.compone }) export class LogsComponent extends AbstractViewComponent - implements OnInit, OnDestroy, AfterContentChecked, AfterViewChecked { + implements OnInit, OnDestroy, AfterContentChecked, AfterViewChecked +{ private logStream: PodLogsStreamer; private containerLogsDiffer: IterableDiffer; @@ -228,11 +229,8 @@ export class LogsComponent const nextSelection: HTMLElement = this.getHighlightedElement( this.currentSelection ); - const { - clientHeight, - offsetTop, - scrollTop, - } = this.scrollTarget.nativeElement; + const { clientHeight, offsetTop, scrollTop } = + this.scrollTarget.nativeElement; const top = nextSelection.offsetTop - offsetTop; if (top > clientHeight + scrollTop || top < scrollTop) { diff --git a/web/src/app/modules/shared/components/smart/slider-view/slider-view.component.ts b/web/src/app/modules/shared/components/smart/slider-view/slider-view.component.ts index 92476a6e0d..11c5a3e926 100644 --- a/web/src/app/modules/shared/components/smart/slider-view/slider-view.component.ts +++ b/web/src/app/modules/shared/components/smart/slider-view/slider-view.component.ts @@ -18,7 +18,8 @@ import { AbstractViewComponent } from '../../abstract-view/abstract-view.compone }) export class SliderViewComponent extends AbstractViewComponent - implements OnChanges { + implements OnChanges +{ style: object = {}; contentStyle: object = {}; animationState = 'out'; diff --git a/web/src/app/modules/shared/components/smart/terminal/terminal.component.ts b/web/src/app/modules/shared/components/smart/terminal/terminal.component.ts index a386f81029..07dcf754ce 100644 --- a/web/src/app/modules/shared/components/smart/terminal/terminal.component.ts +++ b/web/src/app/modules/shared/components/smart/terminal/terminal.component.ts @@ -30,7 +30,8 @@ import { AbstractViewComponent } from '../../abstract-view/abstract-view.compone }) export class TerminalComponent extends AbstractViewComponent - implements OnDestroy, AfterViewInit { + implements OnDestroy, AfterViewInit +{ @ViewChild('terminal', { static: true }) terminalDiv: ElementRef; selectedContainer = ''; diff --git a/web/src/app/modules/shared/components/view/view-container.component.ts b/web/src/app/modules/shared/components/view/view-container.component.ts index 4a1ee766ca..5d372bf408 100644 --- a/web/src/app/modules/shared/components/view/view-container.component.ts +++ b/web/src/app/modules/shared/components/view/view-container.component.ts @@ -90,15 +90,13 @@ export class ViewContainerComponent implements OnInit, AfterViewInit { component = MissingComponentComponent; } - const componentFactory = this.componentFactoryResolver.resolveComponentFactory( - component - ); + const componentFactory = + this.componentFactoryResolver.resolveComponentFactory(component); const viewContainerRef = this.appView.viewContainerRef; viewContainerRef.clear(); - this.componentRef = viewContainerRef.createComponent( - componentFactory - ); + this.componentRef = + viewContainerRef.createComponent(componentFactory); } this.componentRef.instance.view = view; this.componentRef.instance.viewInit.subscribe(_ => this.viewInit.emit()); diff --git a/web/src/app/modules/shared/services/kube-context/kube-context.service.ts b/web/src/app/modules/shared/services/kube-context/kube-context.service.ts index b97450a580..4a3f25df63 100644 --- a/web/src/app/modules/shared/services/kube-context/kube-context.service.ts +++ b/web/src/app/modules/shared/services/kube-context/kube-context.service.ts @@ -27,9 +27,8 @@ const emptyKubeContext: KubeContextResponse = { providedIn: 'root', }) export class KubeContextService { - private contextsSource: BehaviorSubject< - ContextDescription[] - > = new BehaviorSubject([]); + private contextsSource: BehaviorSubject = + new BehaviorSubject([]); private selectedSource = new BehaviorSubject(''); constructor(private websocketService: WebsocketService) { diff --git a/web/src/app/modules/shared/services/navigation/navigation.service.spec.ts b/web/src/app/modules/shared/services/navigation/navigation.service.spec.ts index 1a9921205f..d55e2b1f7a 100644 --- a/web/src/app/modules/shared/services/navigation/navigation.service.spec.ts +++ b/web/src/app/modules/shared/services/navigation/navigation.service.spec.ts @@ -179,8 +179,7 @@ describe('NavigationService', () => { result: '/overview/namespace/test/workloads/deployments', }, { - url: - '/overview/namespace/default/workloads/deployments/nginx-deployment', + url: '/overview/namespace/default/workloads/deployments/nginx-deployment', namespace: 'test', result: '/overview/namespace/test', }, diff --git a/web/src/app/modules/shared/services/navigation/navigation.test.data.ts b/web/src/app/modules/shared/services/navigation/navigation.test.data.ts index 30ee79c14d..b6e65d0bf9 100644 --- a/web/src/app/modules/shared/services/navigation/navigation.test.data.ts +++ b/web/src/app/modules/shared/services/navigation/navigation.test.data.ts @@ -83,20 +83,17 @@ export const NAVIGATION_MOCK_DATA: NavigationChild[] = [ }, { title: 'Horizontal Pod Autoscalers', - path: - 'overview/namespace/default/discovery-and-load-balancing/horizontal-pod-autoscalers', + path: 'overview/namespace/default/discovery-and-load-balancing/horizontal-pod-autoscalers', isLoading: false, }, { title: 'Ingresses', - path: - 'overview/namespace/default/discovery-and-load-balancing/ingresses', + path: 'overview/namespace/default/discovery-and-load-balancing/ingresses', isLoading: false, }, { title: 'Services', - path: - 'overview/namespace/default/discovery-and-load-balancing/services', + path: 'overview/namespace/default/discovery-and-load-balancing/services', isLoading: false, }, ], @@ -119,8 +116,7 @@ export const NAVIGATION_MOCK_DATA: NavigationChild[] = [ }, { title: 'Persistent Volume Claims', - path: - 'overview/namespace/default/config-and-storage/persistent-volume-claims', + path: 'overview/namespace/default/config-and-storage/persistent-volume-claims', isLoading: false, }, { @@ -222,8 +218,7 @@ export const NAVIGATION_MOCK_DATA: NavigationChild[] = [ { title: 'antreacontrollerinfos.clusterinformation.antrea.tanzu.vmware.com', - path: - 'cluster-overview/custom-resources/antreacontrollerinfos.clusterinformation.antrea.tanzu.vmware.com', + path: 'cluster-overview/custom-resources/antreacontrollerinfos.clusterinformation.antrea.tanzu.vmware.com', iconName: 'internal:crd', isLoading: false, }, @@ -373,10 +368,11 @@ export const expectedSelection = { module: 1, index: 2, }, - 'overview/namespace/default/discovery-and-load-balancing/horizontal-pod-autoscalers': { - module: 1, - index: 2, - }, + 'overview/namespace/default/discovery-and-load-balancing/horizontal-pod-autoscalers': + { + module: 1, + index: 2, + }, 'overview/namespace/default/discovery-and-load-balancing/ingresses': { module: 1, index: 2, @@ -419,10 +415,11 @@ export const expectedSelection = { module: 2, index: 2, }, - 'cluster-overview/custom-resources/antreacontrollerinfos.clusterinformation.antrea.tanzu.vmware.com': { - module: 2, - index: 2, - }, + 'cluster-overview/custom-resources/antreacontrollerinfos.clusterinformation.antrea.tanzu.vmware.com': + { + module: 2, + index: 2, + }, 'cluster-overview/rbac': { module: 2, index: 3 }, 'cluster-overview/rbac/cluster-roles': { module: 2, index: 3 }, 'cluster-overview/rbac/cluster-role-bindings': { module: 2, index: 3 }, diff --git a/web/src/app/modules/shared/services/preferences/preferences.service.ts b/web/src/app/modules/shared/services/preferences/preferences.service.ts index e917862d4b..ec893534e8 100644 --- a/web/src/app/modules/shared/services/preferences/preferences.service.ts +++ b/web/src/app/modules/shared/services/preferences/preferences.service.ts @@ -22,9 +22,8 @@ export class PreferencesService implements OnDestroy { private kubeConfigFullPath: string; public preferences: Map> = new Map(); - public preferencesOpened: BehaviorSubject = new BehaviorSubject( - false - ); + public preferencesOpened: BehaviorSubject = + new BehaviorSubject(false); constructor(private themeService: ThemeService) { if (this.isElectron()) { diff --git a/web/src/app/modules/sugarloaf/components/smart/container/container.component.ts b/web/src/app/modules/sugarloaf/components/smart/container/container.component.ts index c5618c58ab..46d792997f 100644 --- a/web/src/app/modules/sugarloaf/components/smart/container/container.component.ts +++ b/web/src/app/modules/sugarloaf/components/smart/container/container.component.ts @@ -56,12 +56,11 @@ export class ContainerComponent implements OnInit, OnDestroy { } ngOnInit(): void { - this.subscriptionPreferencesOpened = this.preferencesService.preferencesOpened.subscribe( - opened => { + this.subscriptionPreferencesOpened = + this.preferencesService.preferencesOpened.subscribe(opened => { this.preferences = this.preferencesService.getPreferences(); // TODO: merge with server side prefs (currently broken) this.preferencesOpened = opened; - } - ); + }); this.websocketService.open(); this.localKubeConfigPath = this.helperService diff --git a/web/src/app/modules/sugarloaf/components/smart/input-filter/input-filter.component.spec.ts b/web/src/app/modules/sugarloaf/components/smart/input-filter/input-filter.component.spec.ts index 069342498b..ca2f21eae8 100644 --- a/web/src/app/modules/sugarloaf/components/smart/input-filter/input-filter.component.spec.ts +++ b/web/src/app/modules/sugarloaf/components/smart/input-filter/input-filter.component.spec.ts @@ -122,14 +122,16 @@ describe('InputFilterComponent', () => { { key: 'test3', value: 'filter3' }, ]); fixture.detectChanges(); - inputElement = fixture.debugElement.query(By.css('.text-input')) - .nativeElement; + inputElement = fixture.debugElement.query( + By.css('.text-input') + ).nativeElement; expect(inputElement.placeholder).toMatch(/Filter by labels \(3 applied\)/i); labelFilterService.filters.next([{ key: 'test1', value: 'filter1' }]); fixture.detectChanges(); - inputElement = fixture.debugElement.query(By.css('.text-input')) - .nativeElement; + inputElement = fixture.debugElement.query( + By.css('.text-input') + ).nativeElement; expect(inputElement.placeholder).toMatch(/Filter by labels \(1 applied\)/i); }); @@ -155,8 +157,9 @@ describe('InputFilterComponent', () => { fixture.whenStable().then(() => { fixture.detectChanges(); - inputNativeElement = fixture.debugElement.query(By.css('.text-input')) - .nativeElement; + inputNativeElement = fixture.debugElement.query( + By.css('.text-input') + ).nativeElement; expect(inputNativeElement.value).toBe(''); }); }); diff --git a/web/src/app/modules/sugarloaf/components/smart/namespace/namespace.component.ts b/web/src/app/modules/sugarloaf/components/smart/namespace/namespace.component.ts index 0bd5f9eb42..6887667b43 100644 --- a/web/src/app/modules/sugarloaf/components/smart/namespace/namespace.component.ts +++ b/web/src/app/modules/sugarloaf/components/smart/namespace/namespace.component.ts @@ -44,19 +44,19 @@ export class NamespaceComponent implements OnInit, OnDestroy { ) {} ngOnInit() { - this.namespaceSubscription = this.namespaceService.activeNamespace.subscribe( - (namespace: string) => { + this.namespaceSubscription = + this.namespaceService.activeNamespace.subscribe((namespace: string) => { this.currentNamespace = namespace; this.cdr.detectChanges(); - } - ); + }); - this.namespaceSubscription = this.namespaceService.availableNamespaces.subscribe( - (namespaces: string[]) => { - this.namespaces = namespaces; - this.cdr.detectChanges(); - } - ); + this.namespaceSubscription = + this.namespaceService.availableNamespaces.subscribe( + (namespaces: string[]) => { + this.namespaces = namespaces; + this.cdr.detectChanges(); + } + ); this.navigationService.modules.subscribe(modules => { this.modules = modules; diff --git a/web/src/app/modules/sugarloaf/components/smart/navigation/navigation.component.ts b/web/src/app/modules/sugarloaf/components/smart/navigation/navigation.component.ts index a0cbef62d2..76ba232838 100644 --- a/web/src/app/modules/sugarloaf/components/smart/navigation/navigation.component.ts +++ b/web/src/app/modules/sugarloaf/components/smart/navigation/navigation.component.ts @@ -64,8 +64,8 @@ export class NavigationComponent implements OnInit, OnDestroy { } ); - this.subscriptionSelectedItem = this.navigationService.selectedItem.subscribe( - selection => { + this.subscriptionSelectedItem = + this.navigationService.selectedItem.subscribe(selection => { if ( this.selectedItem.index !== selection.index || this.selectedItem.module !== selection.module @@ -74,8 +74,7 @@ export class NavigationComponent implements OnInit, OnDestroy { this.currentModule = this.modules[this.selectedItem.module]; this.cd.markForCheck(); } - } - ); + }); this.subscriptionCollapsed = this.preferencesService.preferences .get('navigation.collapsed') diff --git a/web/src/app/modules/sugarloaf/components/smart/notifier/notifier.component.ts b/web/src/app/modules/sugarloaf/components/smart/notifier/notifier.component.ts index 348af232fe..66338c9ac4 100644 --- a/web/src/app/modules/sugarloaf/components/smart/notifier/notifier.component.ts +++ b/web/src/app/modules/sugarloaf/components/smart/notifier/notifier.component.ts @@ -28,8 +28,8 @@ export class NotifierComponent implements OnInit, OnDestroy { constructor(private notifierService: NotifierService) {} ngOnInit() { - this.signalSubscription = this.notifierService.globalSignalsStream.subscribe( - currentSignals => { + this.signalSubscription = + this.notifierService.globalSignalsStream.subscribe(currentSignals => { const lastLoadingSignal = findLast(currentSignals, { type: NotifierSignalType.LOADING, }); @@ -60,8 +60,7 @@ export class NotifierComponent implements OnInit, OnDestroy { : ''; this.setAlert(); - } - ); + }); } ngOnDestroy(): void { diff --git a/web/src/app/modules/sugarloaf/components/smart/quick-switcher/quick-switcher.component.ts b/web/src/app/modules/sugarloaf/components/smart/quick-switcher/quick-switcher.component.ts index 2dabafb549..6fce4c8438 100644 --- a/web/src/app/modules/sugarloaf/components/smart/quick-switcher/quick-switcher.component.ts +++ b/web/src/app/modules/sugarloaf/components/smart/quick-switcher/quick-switcher.component.ts @@ -68,13 +68,11 @@ export class QuickSwitcherComponent implements OnInit, OnDestroy { } ngOnInit() { - this.namespaceSubscription = this.namespaceService.availableNamespaces.subscribe( - namespaces => { - this.namespaceDestinations = this.buildNamespaceDestinations( - namespaces - ); - } - ); + this.namespaceSubscription = + this.namespaceService.availableNamespaces.subscribe(namespaces => { + this.namespaceDestinations = + this.buildNamespaceDestinations(namespaces); + }); this.navigationSubscription = this.navigationService.current.subscribe( navigation => { this.navigation = navigation; diff --git a/web/src/app/modules/sugarloaf/components/smart/theme-switch/theme-switch-button.component.spec.ts b/web/src/app/modules/sugarloaf/components/smart/theme-switch/theme-switch-button.component.spec.ts index 8643c3ba8b..b45cfdfc6d 100644 --- a/web/src/app/modules/sugarloaf/components/smart/theme-switch/theme-switch-button.component.spec.ts +++ b/web/src/app/modules/sugarloaf/components/smart/theme-switch/theme-switch-button.component.spec.ts @@ -43,8 +43,9 @@ describe('ThemeSwitchButtonComponent', () => { it('should render the right button', () => { component.lightThemeEnabled = true; fixture.detectChanges(); - const switchButton = fixture.debugElement.query(By.css('#switchButton')) - .nativeElement; + const switchButton = fixture.debugElement.query( + By.css('#switchButton') + ).nativeElement; expect(switchButton.innerHTML).toContain('dark'); }); diff --git a/web/src/app/util/timestamp-comparator.ts b/web/src/app/util/timestamp-comparator.ts index 144a4b7876..5c3225f0eb 100644 --- a/web/src/app/util/timestamp-comparator.ts +++ b/web/src/app/util/timestamp-comparator.ts @@ -8,7 +8,8 @@ import { } from '../modules/shared/models/content'; export class TimestampComparator - implements ClrDatagridComparatorInterface { + implements ClrDatagridComparatorInterface +{ compare(a: TableRowWithMetadata, b: TableRowWithMetadata) { const rowA = a.data.Age as TimestampView; const rowB = b.data.Age as TimestampView; diff --git a/web/src/stories/graph/graph.real.data.ts b/web/src/stories/graph/graph.real.data.ts index 027a0b933a..acd7c24682 100644 --- a/web/src/stories/graph/graph.real.data.ts +++ b/web/src/stories/graph/graph.real.data.ts @@ -25,8 +25,7 @@ export const REAL_DATA_STATEFUL_SET: NodeDataDef = { path: { config: { value: 'kafka-config', - ref: - '/overview/namespace/milan/config-and-storage/config-maps/kafka-config', + ref: '/overview/namespace/milan/config-and-storage/config-maps/kafka-config', }, metadata: { type: 'link', @@ -45,8 +44,7 @@ export const REAL_DATA_STATEFUL_SET: NodeDataDef = { path: { config: { value: 'kafka-headless', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/kafka-headless', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/kafka-headless', }, metadata: { type: 'link', @@ -65,8 +63,7 @@ export const REAL_DATA_STATEFUL_SET: NodeDataDef = { path: { config: { value: 'default-token-4dln7', - ref: - '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', + ref: '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', }, metadata: { type: 'link', @@ -107,8 +104,7 @@ export const REAL_DATA_STATEFUL_SET: NodeDataDef = { path: { config: { value: 'default', - ref: - '/overview/namespace/milan/config-and-storage/service-accounts/default', + ref: '/overview/namespace/milan/config-and-storage/service-accounts/default', }, metadata: { type: 'link', @@ -180,8 +176,7 @@ export const REAL_DATA_DAEMON_SET: NodeDataDef = { path: { config: { value: 'hubble-token-smc5q', - ref: - '/overview/namespace/kube-system/config-and-storage/secrets/hubble-token-smc5q', + ref: '/overview/namespace/kube-system/config-and-storage/secrets/hubble-token-smc5q', }, metadata: { type: 'link', @@ -203,8 +198,7 @@ export const REAL_DATA_DAEMON_SET: NodeDataDef = { path: { config: { value: 'hubble-grpc', - ref: - '/overview/namespace/kube-system/discovery-and-load-balancing/services/hubble-grpc', + ref: '/overview/namespace/kube-system/discovery-and-load-balancing/services/hubble-grpc', }, metadata: { type: 'link', @@ -226,8 +220,7 @@ export const REAL_DATA_DAEMON_SET: NodeDataDef = { path: { config: { value: 'hubble', - ref: - '/overview/namespace/kube-system/config-and-storage/service-accounts/hubble', + ref: '/overview/namespace/kube-system/config-and-storage/service-accounts/hubble', }, metadata: { type: 'link', @@ -330,8 +323,7 @@ export const REAL_DATA_DAEMON_SET2: NodeDataDef = { }, config: { value: 'metadata-proxy-v0.1', - ref: - '/overview/namespace/kube-system/workloads/daemon-sets/metadata-proxy-v0.1', + ref: '/overview/namespace/kube-system/workloads/daemon-sets/metadata-proxy-v0.1', }, }, hasChildren: false, @@ -365,8 +357,7 @@ export const REAL_DATA_DEPLOYMENT: NodeDataDef = { path: { config: { value: 'default-token-4dln7', - ref: - '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', + ref: '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', }, metadata: { type: 'link', @@ -385,8 +376,7 @@ export const REAL_DATA_DEPLOYMENT: NodeDataDef = { path: { config: { value: 'echo1-56b7744b6c', - ref: - '/overview/namespace/milan/workloads/replica-sets/echo1-56b7744b6c', + ref: '/overview/namespace/milan/workloads/replica-sets/echo1-56b7744b6c', }, metadata: { type: 'link', @@ -408,8 +398,7 @@ export const REAL_DATA_DEPLOYMENT: NodeDataDef = { path: { config: { value: 'default', - ref: - '/overview/namespace/milan/config-and-storage/service-accounts/default', + ref: '/overview/namespace/milan/config-and-storage/service-accounts/default', }, metadata: { type: 'link', @@ -428,8 +417,7 @@ export const REAL_DATA_DEPLOYMENT: NodeDataDef = { path: { config: { value: 'echo1', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/echo1', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/echo1', }, metadata: { type: 'link', @@ -519,8 +507,7 @@ export const REAL_DATA_TWO_REPLICAS: NodeDataDef = { path: { config: { value: 'elasticsearch-dbf4fc4df', - ref: - '/overview/namespace/milan/workloads/replica-sets/elasticsearch-dbf4fc4df', + ref: '/overview/namespace/milan/workloads/replica-sets/elasticsearch-dbf4fc4df', }, metadata: { type: 'link', @@ -542,8 +529,7 @@ export const REAL_DATA_TWO_REPLICAS: NodeDataDef = { path: { config: { value: 'elasticsearch-569cc48595', - ref: - '/overview/namespace/milan/workloads/replica-sets/elasticsearch-569cc48595', + ref: '/overview/namespace/milan/workloads/replica-sets/elasticsearch-569cc48595', }, metadata: { type: 'link', @@ -562,8 +548,7 @@ export const REAL_DATA_TWO_REPLICAS: NodeDataDef = { path: { config: { value: 'default-token-4dln7', - ref: - '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', + ref: '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', }, metadata: { type: 'link', @@ -604,8 +589,7 @@ export const REAL_DATA_TWO_REPLICAS: NodeDataDef = { path: { config: { value: 'elasticsearch', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/elasticsearch', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/elasticsearch', }, metadata: { type: 'link', @@ -627,8 +611,7 @@ export const REAL_DATA_TWO_REPLICAS: NodeDataDef = { path: { config: { value: 'default', - ref: - '/overview/namespace/milan/config-and-storage/service-accounts/default', + ref: '/overview/namespace/milan/config-and-storage/service-accounts/default', }, metadata: { type: 'link', @@ -708,8 +691,7 @@ export const REAL_DATA_JOB: NodeDataDef = { path: { config: { value: 'contour-certgen-v1.12.0', - ref: - '/overview/namespace/contour-internal/workloads/jobs/contour-certgen-v1.12.0', + ref: '/overview/namespace/contour-internal/workloads/jobs/contour-certgen-v1.12.0', }, metadata: { type: 'link', @@ -728,8 +710,7 @@ export const REAL_DATA_JOB: NodeDataDef = { path: { config: { value: 'contour-certgen-token-5ggj6', - ref: - '/overview/namespace/contour-internal/config-and-storage/secrets/contour-certgen-token-5ggj6', + ref: '/overview/namespace/contour-internal/config-and-storage/secrets/contour-certgen-token-5ggj6', }, metadata: { type: 'link', @@ -751,8 +732,7 @@ export const REAL_DATA_JOB: NodeDataDef = { path: { config: { value: 'contour-certgen', - ref: - '/overview/namespace/contour-internal/config-and-storage/service-accounts/contour-certgen', + ref: '/overview/namespace/contour-internal/config-and-storage/service-accounts/contour-certgen', }, metadata: { type: 'link', @@ -831,8 +811,7 @@ export const REAL_DATA_INGRESS: NodeDataDef = { path: { config: { value: 'web-79d88c97d6', - ref: - '/overview/namespace/milan/workloads/replica-sets/web-79d88c97d6', + ref: '/overview/namespace/milan/workloads/replica-sets/web-79d88c97d6', }, metadata: { type: 'link', @@ -851,8 +830,7 @@ export const REAL_DATA_INGRESS: NodeDataDef = { path: { config: { value: 'default-token-4dln7', - ref: - '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', + ref: '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', }, metadata: { type: 'link', @@ -871,8 +849,7 @@ export const REAL_DATA_INGRESS: NodeDataDef = { path: { config: { value: 'web', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/web', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/web', }, metadata: { type: 'link', @@ -894,8 +871,7 @@ export const REAL_DATA_INGRESS: NodeDataDef = { path: { config: { value: 'web2', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/web2', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/web2', }, metadata: { type: 'link', @@ -917,8 +893,7 @@ export const REAL_DATA_INGRESS: NodeDataDef = { path: { config: { value: 'default', - ref: - '/overview/namespace/milan/config-and-storage/service-accounts/default', + ref: '/overview/namespace/milan/config-and-storage/service-accounts/default', }, metadata: { type: 'link', @@ -937,8 +912,7 @@ export const REAL_DATA_INGRESS: NodeDataDef = { path: { config: { value: 'example-ingress', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/ingresses/example-ingress', + ref: '/overview/namespace/milan/discovery-and-load-balancing/ingresses/example-ingress', }, metadata: { type: 'link', @@ -1015,8 +989,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-54w8c', - ref: - '/overview/namespace/milan/custom-resources/gcpmachines.infrastructure.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-54w8c', + ref: '/overview/namespace/milan/custom-resources/gcpmachines.infrastructure.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-54w8c', }, metadata: { type: 'link', @@ -1040,8 +1013,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-hswzw', - ref: - '/overview/namespace/milan/custom-resources/gcpmachines.infrastructure.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-hswzw', + ref: '/overview/namespace/milan/custom-resources/gcpmachines.infrastructure.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-hswzw', }, metadata: { type: 'link', @@ -1063,8 +1035,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-996bb7685-kgwqk', - ref: - '/overview/namespace/milan/custom-resources/machines.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-996bb7685-kgwqk', + ref: '/overview/namespace/milan/custom-resources/machines.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-996bb7685-kgwqk', }, metadata: { type: 'link', @@ -1088,8 +1059,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-pc6tv', - ref: - '/overview/namespace/milan/custom-resources/gcpmachines.infrastructure.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-pc6tv', + ref: '/overview/namespace/milan/custom-resources/gcpmachines.infrastructure.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-pc6tv', }, metadata: { type: 'link', @@ -1111,8 +1081,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-996bb7685-lq985', - ref: - '/overview/namespace/milan/custom-resources/machines.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-996bb7685-lq985', + ref: '/overview/namespace/milan/custom-resources/machines.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-996bb7685-lq985', }, metadata: { type: 'link', @@ -1136,8 +1105,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-vvklf', - ref: - '/overview/namespace/milan/custom-resources/kubeadmconfigs.bootstrap.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-vvklf', + ref: '/overview/namespace/milan/custom-resources/kubeadmconfigs.bootstrap.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-vvklf', }, metadata: { type: 'link', @@ -1161,8 +1129,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0', - ref: - '/overview/namespace/milan/custom-resources/machinedeployments.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0', + ref: '/overview/namespace/milan/custom-resources/machinedeployments.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0', }, metadata: { type: 'link', @@ -1184,8 +1151,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-996bb7685', - ref: - '/overview/namespace/milan/custom-resources/machinesets.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-996bb7685', + ref: '/overview/namespace/milan/custom-resources/machinesets.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-996bb7685', }, metadata: { type: 'link', @@ -1207,8 +1173,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart', - ref: - '/overview/namespace/milan/custom-resources/clusters.cluster.x-k8s.io/v1alpha3/capi-quickstart', + ref: '/overview/namespace/milan/custom-resources/clusters.cluster.x-k8s.io/v1alpha3/capi-quickstart', }, metadata: { type: 'link', @@ -1232,8 +1197,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-4rqgc', - ref: - '/overview/namespace/milan/custom-resources/kubeadmconfigs.bootstrap.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-4rqgc', + ref: '/overview/namespace/milan/custom-resources/kubeadmconfigs.bootstrap.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-4rqgc', }, metadata: { type: 'link', @@ -1255,8 +1219,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-996bb7685-wh2tx', - ref: - '/overview/namespace/milan/custom-resources/machines.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-996bb7685-wh2tx', + ref: '/overview/namespace/milan/custom-resources/machines.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-996bb7685-wh2tx', }, metadata: { type: 'link', @@ -1280,8 +1243,7 @@ export const REAL_DATA_CRDS: NodeDataDef = { path: { config: { value: 'capi-quickstart-md-0-8rwp6', - ref: - '/overview/namespace/milan/custom-resources/kubeadmconfigs.bootstrap.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-8rwp6', + ref: '/overview/namespace/milan/custom-resources/kubeadmconfigs.bootstrap.cluster.x-k8s.io/v1alpha3/capi-quickstart-md-0-8rwp6', }, metadata: { type: 'link', @@ -1429,8 +1391,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'loader', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/loader', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/loader', }, metadata: { type: 'link', @@ -1449,8 +1410,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'elasticsearch-dbf4fc4df', - ref: - '/overview/namespace/milan/workloads/replica-sets/elasticsearch-dbf4fc4df', + ref: '/overview/namespace/milan/workloads/replica-sets/elasticsearch-dbf4fc4df', }, metadata: { type: 'link', @@ -1469,8 +1429,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'kafka-config', - ref: - '/overview/namespace/milan/config-and-storage/config-maps/kafka-config', + ref: '/overview/namespace/milan/config-and-storage/config-maps/kafka-config', }, metadata: { type: 'link', @@ -1508,8 +1467,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'jobposting-57bd4c8596', - ref: - '/overview/namespace/milan/workloads/replica-sets/jobposting-57bd4c8596', + ref: '/overview/namespace/milan/workloads/replica-sets/jobposting-57bd4c8596', }, metadata: { type: 'link', @@ -1528,8 +1486,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'kafka-headless', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/kafka-headless', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/kafka-headless', }, metadata: { type: 'link', @@ -1570,8 +1527,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'elasticsearch-569cc48595', - ref: - '/overview/namespace/milan/workloads/replica-sets/elasticsearch-569cc48595', + ref: '/overview/namespace/milan/workloads/replica-sets/elasticsearch-569cc48595', }, metadata: { type: 'link', @@ -1609,8 +1565,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'web-79d88c97d6', - ref: - '/overview/namespace/milan/workloads/replica-sets/web-79d88c97d6', + ref: '/overview/namespace/milan/workloads/replica-sets/web-79d88c97d6', }, metadata: { type: 'link', @@ -1632,8 +1587,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'default', - ref: - '/overview/namespace/milan/custom-resources/brokers.eventing.knative.dev/v1/default', + ref: '/overview/namespace/milan/custom-resources/brokers.eventing.knative.dev/v1/default', }, metadata: { type: 'link', @@ -1652,8 +1606,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'zookeeper-66b5f99f97', - ref: - '/overview/namespace/milan/workloads/replica-sets/zookeeper-66b5f99f97', + ref: '/overview/namespace/milan/workloads/replica-sets/zookeeper-66b5f99f97', }, metadata: { type: 'link', @@ -1672,8 +1625,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'default-token-4dln7', - ref: - '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', + ref: '/overview/namespace/milan/config-and-storage/secrets/default-token-4dln7', }, metadata: { type: 'link', @@ -1733,8 +1685,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'recruiter-54f94f7b87', - ref: - '/overview/namespace/milan/workloads/replica-sets/recruiter-54f94f7b87', + ref: '/overview/namespace/milan/workloads/replica-sets/recruiter-54f94f7b87', }, metadata: { type: 'link', @@ -1753,8 +1704,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'web', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/web', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/web', }, metadata: { type: 'link', @@ -1776,8 +1726,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'default-kne-trigger', - ref: - '/overview/namespace/milan/custom-resources/inmemorychannels.messaging.knative.dev/v1/default-kne-trigger', + ref: '/overview/namespace/milan/custom-resources/inmemorychannels.messaging.knative.dev/v1/default-kne-trigger', }, metadata: { type: 'link', @@ -1796,8 +1745,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'jobposting', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/jobposting', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/jobposting', }, metadata: { type: 'link', @@ -1816,8 +1764,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'recruiter', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/recruiter', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/recruiter', }, metadata: { type: 'link', @@ -1836,8 +1783,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'zk-headless', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/zk-headless', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/zk-headless', }, metadata: { type: 'link', @@ -1859,8 +1805,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'web2', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/web2', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/web2', }, metadata: { type: 'link', @@ -1879,8 +1824,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'default-kne-trigger-kn-channel', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/default-kne-trigger-kn-channel', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/default-kne-trigger-kn-channel', }, metadata: { type: 'link', @@ -1899,8 +1843,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'elasticsearch', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/elasticsearch', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/elasticsearch', }, metadata: { type: 'link', @@ -1919,8 +1862,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'echo1-56b7744b6c', - ref: - '/overview/namespace/milan/workloads/replica-sets/echo1-56b7744b6c', + ref: '/overview/namespace/milan/workloads/replica-sets/echo1-56b7744b6c', }, metadata: { type: 'link', @@ -1961,8 +1903,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'default', - ref: - '/overview/namespace/milan/config-and-storage/service-accounts/default', + ref: '/overview/namespace/milan/config-and-storage/service-accounts/default', }, metadata: { type: 'link', @@ -1981,8 +1922,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'loader-69fb98c8b5', - ref: - '/overview/namespace/milan/workloads/replica-sets/loader-69fb98c8b5', + ref: '/overview/namespace/milan/workloads/replica-sets/loader-69fb98c8b5', }, metadata: { type: 'link', @@ -2001,8 +1941,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'rolling-test-574b87c764', - ref: - '/overview/namespace/milan/workloads/replica-sets/rolling-test-574b87c764', + ref: '/overview/namespace/milan/workloads/replica-sets/rolling-test-574b87c764', }, metadata: { type: 'link', @@ -2083,8 +2022,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'echo1', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/services/echo1', + ref: '/overview/namespace/milan/discovery-and-load-balancing/services/echo1', }, metadata: { type: 'link', @@ -2213,8 +2151,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'crawler-67cf8bbcdd', - ref: - '/overview/namespace/milan/workloads/replica-sets/crawler-67cf8bbcdd', + ref: '/overview/namespace/milan/workloads/replica-sets/crawler-67cf8bbcdd', }, metadata: { type: 'link', @@ -2233,8 +2170,7 @@ export const REAL_DATA_CRDS2: NodeDataDef = { path: { config: { value: 'example-ingress', - ref: - '/overview/namespace/milan/discovery-and-load-balancing/ingresses/example-ingress', + ref: '/overview/namespace/milan/discovery-and-load-balancing/ingresses/example-ingress', }, metadata: { type: 'link', diff --git a/web/src/stories/overview.data.ts b/web/src/stories/overview.data.ts index c8cb8aa3fb..9c3ea54c46 100644 --- a/web/src/stories/overview.data.ts +++ b/web/src/stories/overview.data.ts @@ -66,8 +66,7 @@ export const big_data = { }, config: { value: 'kubernetes', - ref: - '/overview/namespace/default/discovery-and-load-balancing/services/kubernetes', + ref: '/overview/namespace/default/discovery-and-load-balancing/services/kubernetes', status: 1, statusDetail: { metadata: { type: 'list' }, @@ -109,8 +108,7 @@ export const big_data = { }, confirmation: { title: 'Delete Service', - body: - 'Are you sure you want to delete *Service* **kubernetes**? This action is permanent and cannot be recovered.', + body: 'Are you sure you want to delete *Service* **kubernetes**? This action is permanent and cannot be recovered.', }, type: 'danger', }, @@ -160,8 +158,7 @@ export const big_data = { }, config: { value: 'default-token-k4mp4', - ref: - '/overview/namespace/default/config-and-storage/secrets/default-token-k4mp4', + ref: '/overview/namespace/default/config-and-storage/secrets/default-token-k4mp4', status: 1, statusDetail: { metadata: { type: 'list' }, @@ -195,8 +192,7 @@ export const big_data = { }, confirmation: { title: 'Delete Secret', - body: - 'Are you sure you want to delete *Secret* **default-token-k4mp4**? This action is permanent and cannot be recovered.', + body: 'Are you sure you want to delete *Secret* **default-token-k4mp4**? This action is permanent and cannot be recovered.', }, type: 'danger', }, @@ -246,8 +242,7 @@ export const big_data = { }, config: { value: 'default', - ref: - '/overview/namespace/default/config-and-storage/service-accounts/default', + ref: '/overview/namespace/default/config-and-storage/service-accounts/default', status: 1, statusDetail: { metadata: { type: 'list' }, @@ -278,8 +273,7 @@ export const big_data = { }, confirmation: { title: 'Delete ServiceAccount', - body: - 'Are you sure you want to delete *ServiceAccount* **default**? This action is permanent and cannot be recovered.', + body: 'Are you sure you want to delete *ServiceAccount* **default**? This action is permanent and cannot be recovered.', }, type: 'danger', }, @@ -337,8 +331,7 @@ export const big_data = { config: { value: 'Node minikube event: Registered Node minikube in Controller', - ref: - '/overview/namespace/default/events/minikube.1619233ef88b9048', + ref: '/overview/namespace/default/events/minikube.1619233ef88b9048', }, }, Reason: { @@ -369,8 +362,7 @@ export const big_data = { }, config: { value: 'Starting kube-proxy.', - ref: - '/overview/namespace/default/events/minikube.1619233b5373d195', + ref: '/overview/namespace/default/events/minikube.1619233b5373d195', }, }, Reason: { @@ -401,8 +393,7 @@ export const big_data = { }, config: { value: 'Node minikube status is now: NodeHasSufficientPID', - ref: - '/overview/namespace/default/events/minikube.16192335109a3bee', + ref: '/overview/namespace/default/events/minikube.16192335109a3bee', }, }, Reason: { @@ -433,8 +424,7 @@ export const big_data = { }, config: { value: 'Node minikube status is now: NodeHasNoDiskPressure', - ref: - '/overview/namespace/default/events/minikube.1619233510993cda', + ref: '/overview/namespace/default/events/minikube.1619233510993cda', }, }, Reason: { @@ -465,8 +455,7 @@ export const big_data = { }, config: { value: 'Node minikube status is now: NodeHasSufficientMemory', - ref: - '/overview/namespace/default/events/minikube.161923351097f4ba', + ref: '/overview/namespace/default/events/minikube.161923351097f4ba', }, }, Reason: { @@ -497,8 +486,7 @@ export const big_data = { }, config: { value: 'Updated Node Allocatable limit across pods', - ref: - '/overview/namespace/default/events/minikube.161923352af5316a', + ref: '/overview/namespace/default/events/minikube.161923352af5316a', }, }, Reason: { @@ -529,8 +517,7 @@ export const big_data = { }, config: { value: 'Starting kubelet.', - ref: - '/overview/namespace/default/events/minikube.16192334f653ead2', + ref: '/overview/namespace/default/events/minikube.16192334f653ead2', }, }, Reason: { @@ -562,8 +549,7 @@ export const big_data = { config: { value: 'Node minikube event: Registered Node minikube in Controller', - ref: - '/overview/namespace/default/events/minikube.1618e3199521f52d', + ref: '/overview/namespace/default/events/minikube.1618e3199521f52d', }, }, Reason: {