diff --git a/pkg/sbombastic-image-vulnerability-scanner/components/CveDetails.vue b/pkg/sbombastic-image-vulnerability-scanner/components/CveDetails.vue index 001c027..5e66464 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/components/CveDetails.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/components/CveDetails.vue @@ -112,7 +112,7 @@ export default {
- {{ t('imageScanner.vulnerabilities.title') }}: + {{ t('imageScanner.vulnerabilities.title') }}: {{ $route.params.id }}
- Image: {{ imageName }} + + {{ t('imageScanner.images.title') }}: + {{ $route.params.id }} +
- {{ vulnerability.metadata.name }} + {{ vulnerability.metadata.name }}
@@ -21,6 +21,10 @@ import BlockPercentageBar from './BlockPercentageBar.vue'; import ScoreBadge from './ScoreBadge.vue'; import debounce from 'lodash/debounce'; + import { + PRODUCT_NAME, + PAGE, +} from "@pkg/types"; export default { name: 'severeVulnerabilitiesItem', @@ -35,7 +39,10 @@ }, }, data() { - return { }; + return { + PRODUCT_NAME, + PAGE, + }; }, methods: { resize(fn) { diff --git a/pkg/sbombastic-image-vulnerability-scanner/config/sbombastic-image-vulnerability-scanner.ts b/pkg/sbombastic-image-vulnerability-scanner/config/sbombastic-image-vulnerability-scanner.ts index 8a56d77..e1ca271 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/config/sbombastic-image-vulnerability-scanner.ts +++ b/pkg/sbombastic-image-vulnerability-scanner/config/sbombastic-image-vulnerability-scanner.ts @@ -10,9 +10,6 @@ export function init($plugin: any, store: any) { product({ icon: "pod_security", inStore: "cluster", - inExplorer: true, - removeable: false, - showNamespaceFilter: true }); virtualType({ @@ -23,8 +20,8 @@ export function init($plugin: any, store: any) { name: `c-cluster-${PRODUCT_NAME}-${PAGE.DASHBOARD}`, params: { product: PRODUCT_NAME - }, - meta: { pkg: PRODUCT_NAME, product: PRODUCT_NAME } + }, + meta: { pkg: PRODUCT_NAME, product: PRODUCT_NAME } }, overview: true }); @@ -81,19 +78,6 @@ export function init($plugin: any, store: any) { }, }); - virtualType({ - label: "Components Demo", - name: "demo", - namespaced: false, - route: { - name: `c-cluster-${PRODUCT_NAME}-demo`, - params: { - product: PRODUCT_NAME, - }, - meta: { pkg: PRODUCT_NAME, product: PRODUCT_NAME }, - }, - }); - weightType(PAGE.DASHBOARD, 98, true); weightType(PAGE.IMAGES, 97, true); weightType(PAGE.VULNERABILITIES, 96, true); diff --git a/pkg/sbombastic-image-vulnerability-scanner/formatters/CveNameLink.vue b/pkg/sbombastic-image-vulnerability-scanner/formatters/CveNameLink.vue index c682be2..82a9cc4 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/formatters/CveNameLink.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/formatters/CveNameLink.vue @@ -25,5 +25,5 @@ export default { \ No newline at end of file diff --git a/pkg/sbombastic-image-vulnerability-scanner/models/VexHub.js b/pkg/sbombastic-image-vulnerability-scanner/models/VexHub.js deleted file mode 100644 index 0519ecb..0000000 --- a/pkg/sbombastic-image-vulnerability-scanner/models/VexHub.js +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.vexhub.js b/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.vexhub.js index bff9e30..62cf0bb 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.vexhub.js +++ b/pkg/sbombastic-image-vulnerability-scanner/models/sbombastic.rancher.io.vexhub.js @@ -1,4 +1,5 @@ import SteveModel from '@shell/plugins/steve/steve-class'; +import { PRODUCT_NAME, PAGE } from "@pkg/types"; export default class SbombasticRancherIoVexhub extends SteveModel { get _availableActions() { @@ -123,4 +124,18 @@ export default class SbombasticRancherIoVexhub extends SteveModel { } }; } + get listLocation() { + // if (this.$rootState.targetRoute.params.resource === "sbombastic.rancher.io.vexhub") { + // return this._listLocation; + // } + return { name: `c-cluster-${PRODUCT_NAME}-${PAGE.VEX_MANAGEMENT}` }; + } + + get doneOverride() { + return this.listLocation; + } + + get parentLocationOverride() { + return this.listLocation; + } } \ No newline at end of file diff --git a/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Dashboard.vue b/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Dashboard.vue index 94cfbdb..364e158 100644 --- a/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Dashboard.vue +++ b/pkg/sbombastic-image-vulnerability-scanner/pages/c/_cluster/sbombastic-image-vulnerability-scanner/Dashboard.vue @@ -82,14 +82,15 @@ CVE ID, Score, Affected images
-
+
-
@@ -106,9 +107,10 @@
-
@@ -117,7 +119,7 @@