-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
39 changed files
with
1,902 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,30 @@ | ||
<div class='py-1' data-test-sbomComponentDetails-container> | ||
<AkStack class='mb-3' @direction='column' @spacing='0.5'> | ||
<AkTypography data-test-sbomComponentDetails-title @variant='h5'> | ||
{{t 'sbomModule.componentDetails'}} | ||
<AkStack local-class='summary-header-root' @direction='column' class='p-2'> | ||
<AkTypography | ||
data-test-sbomComponentDetails-headerTitleLabel | ||
@color='textSecondary' | ||
> | ||
{{t 'sbomModule.componentName'}} | ||
</AkTypography> | ||
|
||
<AkTypography | ||
data-test-sbomComponentDetails-description | ||
@variant='body2' | ||
@color='textSecondary' | ||
data-test-sbomComponentDetails-headerTitleValue | ||
@variant='h5' | ||
local-class='summary-header-value' | ||
> | ||
{{t 'sbomModule.componentDetailsDescription'}} | ||
{{this.componentName}} | ||
</AkTypography> | ||
</AkStack> | ||
|
||
<Sbom::SummaryHeader> | ||
<:summary> | ||
<AkStack class='p-1'> | ||
<AkTypography | ||
data-test-sbomComponentDetails-headerTitleLabel | ||
{{style width='160px'}} | ||
@color='textSecondary' | ||
> | ||
{{t 'sbomModule.componentName'}} | ||
</AkTypography> | ||
|
||
<AkTypography | ||
data-test-sbomComponentDetails-headerTitleValue | ||
@variant='h6' | ||
> | ||
{{@sbomComponent.name}} | ||
</AkTypography> | ||
</AkStack> | ||
</:summary> | ||
|
||
<:collapsibleContent> | ||
<Sbom::ComponentDetails::Summary @sbomComponent={{@sbomComponent}} /> | ||
</:collapsibleContent> | ||
</Sbom::SummaryHeader> | ||
|
||
<Sbom::ComponentDetails::Vulnerabilities | ||
class='mt-3' | ||
@sbomComponent={{@sbomComponent}} | ||
/> | ||
<AkTabs class='mt-3' as |Akt|> | ||
{{#each this.tabs as |item|}} | ||
<Akt.tabItem | ||
@id={{item.id}} | ||
@route={{item.route}} | ||
@currentWhen={{item.activeRoutes}} | ||
> | ||
{{item.label}} | ||
</Akt.tabItem> | ||
{{/each}} | ||
</AkTabs> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.summary-header-root { | ||
border-radius: var(--sbom-summary-header-border-radius); | ||
border: 1px solid var(--sbom-summary-header-border-color); | ||
box-sizing: border-box; | ||
} | ||
|
||
.summary-header-value { | ||
font-family: monospace; | ||
margin-top: 0.3em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<AkStack local-class='section-container' @direction='column'> | ||
<AkStack @width='full' local-class='header-container'> | ||
<AkTypography @variant='h6' @fontWeight='medium'> | ||
{{t 'sbomModule.componentDetails'}} | ||
</AkTypography> | ||
</AkStack> | ||
|
||
<AkStack class='p-1' @width='full'> | ||
<Sbom::ComponentDetails::Summary | ||
local-class='component-details' | ||
@sbomComponent={{@sbomComponent}} | ||
/> | ||
</AkStack> | ||
</AkStack> | ||
|
||
{{#if this.isNotOutdated}} | ||
<AkStack @direction='column'> | ||
<AkStack @width='full' local-class='header-container full-border'> | ||
<AkTypography @variant='h6' @fontWeight='medium'> | ||
{{t 'dependencyTree'}} | ||
</AkTypography> | ||
</AkStack> | ||
|
||
<Sbom::ScanDetails::ComponentTree | ||
@sbomProject={{this.sbomProject}} | ||
@sbomFile={{this.sbomFile}} | ||
@packageName={{this.packageName}} | ||
@updateExpandedNodes={{this.updateExpandedNodes}} | ||
@expandedNodes={{this.expandedNodes}} | ||
@treeNodes={{this.treeNodes}} | ||
@updateTreeNodes={{this.updateTreeNodes}} | ||
@parentId={{this.parentId}} | ||
@componentId={{this.componentId}} | ||
/> | ||
</AkStack> | ||
{{/if}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
.section-container { | ||
border: 1px solid var(--sbom-component-details-overview-border-color); | ||
border-radius: var(--sbom-component-details-overview-border-radius); | ||
margin-top: 1em; | ||
} | ||
|
||
.header-container { | ||
background-color: var(--sbom-component-details-overview-background-color); | ||
border-bottom: 1px solid var(--sbom-component-details-overview-border-color); | ||
padding: 0.5em 1em; | ||
|
||
&.full-border { | ||
border-color: var(--sbom-component-details-overview-border-color); | ||
border-width: 1px 1px 0px 1px; | ||
border-top-left-radius: var(--sbom-component-details-overview-border-radius); | ||
border-top-right-radius: var(--sbom-component-details-overview-border-radius); | ||
border-style: solid; | ||
margin-top: 1em; | ||
} | ||
} | ||
|
||
.component-details { | ||
width: 100%; | ||
} |
Oops, something went wrong.