Skip to content

Commit

Permalink
adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Marlon Pina Tojal committed Nov 30, 2023
1 parent 32c8d32 commit 30eaf28
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 12 deletions.
Binary file removed src/assets/img/trivy-logo.png
Binary file not shown.
32 changes: 32 additions & 0 deletions src/assets/img/trivy-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,7 @@
"oss_index": "Sonatype OSS Index",
"vulndb": "VulnDB",
"snyk": "Snyk (Beta)",
"trivy": "Trivy",
"vuln_sources": "Vulnerability Sources",
"nvd": "NVD",
"nvd_enable_mirroring_via_api": "Enable mirroring via API",
Expand Down
10 changes: 10 additions & 0 deletions src/router/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,16 @@ function configRoutes() {
permission: 'SYSTEM_CONFIGURATION'
},
},
{
path: 'analyzers/trivy',
component: TrivyAnalyzer,
meta: {
title: i18n.t('message.administration'),
i18n: 'message.administration',
sectionPath: '/admin',
permission: 'SYSTEM_CONFIGURATION'
},
},
{
path: 'vulnerabilitySources/nvd',
alias: ['vulnerabilitySources'],
Expand Down
14 changes: 2 additions & 12 deletions src/views/administration/analyzers/TrivyAnalyzer.vue
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
<template>
<b-card no-body :header="header">
<b-card-body>
<img alt="Trivy logo" src="@/assets/img/trivy-logo.png" height="128px"/>
<img alt="Trivy logo" src="@/assets/img/trivy-logo.svg" width="125"/>
<hr/>
<c-switch
:disabled="!this.scannerEnabled && (!this.baseUrl || !this.apitoken"
:disabled="!this.scannerEnabled && (!this.baseUrl || !this.apitoken)"
id="scannerEnabled"
color="primary"
v-model="scannerEnabled"
label
v-bind="labelIcon"
/>
{{$t('admin.analyzer_trivy_enable')}}
<br/>
<c-switch
:disabled="!this.scannerEnabled"
id="aliasSyncEnabled"
color="primary"
v-model="aliasSyncEnabled"
label
v-bind="labelIcon"
:title="$t('admin.vulnsource_alias_sync_enable_tooltip')"
/>
<b-validated-input-group-form-input
id="trivy-baseUrl"
:label="$t('admin.base_url')"
Expand Down

0 comments on commit 30eaf28

Please sign in to comment.