Skip to content

Commit

Permalink
Repositories: Make username optional - cleanup unrelated
Browse files Browse the repository at this point in the history
  • Loading branch information
valentijnscholten committed Jan 4, 2025
1 parent a1229ed commit e7e2fc9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 22 deletions.
2 changes: 1 addition & 1 deletion src/containers/DefaultContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export default {
},
mounted() {
if (this.$dtrack && this.$dtrack.version.includes('SNAPSHOT')) {
// this.$root.$emit('bv::show::modal', 'snapshotModal');
this.$root.$emit('bv::show::modal', 'snapshotModal');
}
this.isSidebarMinimized =
Expand Down
14 changes: 0 additions & 14 deletions src/shared/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,10 +225,6 @@ $common.resolveSourceVulnInfo = function resolveSourceVulnInfo(
sourceInfo.name = 'Global Security Database';
sourceInfo.url = 'https://github.com/cloudsecurityalliance/gsd-database';
break;
case 'COMPOSER':
sourceInfo.name = 'Composer';
sourceInfo.url = 'https://packagist.org/apidoc';
break;
case 'VULNDB':
sourceInfo.name = 'VulnDB';
sourceInfo.url =
Expand Down Expand Up @@ -282,16 +278,6 @@ $common.resolveVulnAliases = function resolveVulnAliases(vulnSource, aliases) {
$common.resolveSourceVulnInfo('VULNDB', alias.vulnDbId),
);
}
if (vulnSource !== 'DRUPAL' && alias.drupalId) {
_resolvedAliases.push(
$common.resolveSourceVulnInfo('DRUPAL', alias.drupalId),
);
}
if (vulnSource !== 'COMPOSER' && alias.composerId) {
_resolvedAliases.push(
$common.resolveSourceVulnInfo('COMPOSER', alias.composerId),
);
}
return _resolvedAliases;
});

Expand Down
5 changes: 0 additions & 5 deletions src/views/portfolio/vulnerabilities/AffectedProjects.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export default {
this.$refs.table.hideLoading();
},
},
watch: {
showInactiveProjects() {
if (localStorage) {
Expand All @@ -153,10 +152,6 @@ export default {
this.currentPage = 1;
this.refreshTable();
},
vulnId() {
// update url when vulnId changes, will trigger table refresh
this.$refs.table.refreshOptions({...this.options, url: this.apiUrl()});
}
},
};
</script>
2 changes: 0 additions & 2 deletions src/views/portfolio/vulnerabilities/Vulnerability.vue
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,6 @@ export default {
return 'Snyk';
case 'TRIVY':
return 'Trivy';
case 'COMPOSER':
return 'Composer';
default:
return 'UNKNOWN';
}
Expand Down

0 comments on commit e7e2fc9

Please sign in to comment.