File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 import type { Component } from ' $lib/cyclonedx/models' ;
3- import { Tile } from ' carbon-components-svelte' ;
3+ import { CodeSnippet , Tile } from ' carbon-components-svelte' ;
44
55 const { component }: { component: Component } = $props ();
66 </script >
2727 {#if component .purl }
2828 <tr >
2929 <th >PURL</th >
30- <td >{component .purl }</td >
30+ <td ><CodeSnippet type ="inline" code ={component .purl } /></td >
31+ </tr >
32+ {/if }
33+ {#if component [' bom-ref' ]}
34+ <tr >
35+ <th >BomRef</th >
36+ <td ><CodeSnippet type ="inline" code ={component [' bom-ref' ]} /></td >
3137 </tr >
3238 {/if }
3339 </tbody >
Original file line number Diff line number Diff line change 2828 name: component .name ,
2929 group: component .group ,
3030 version: component .version ,
31- purl: component .purl
31+ purl: component .purl ,
32+ bomRef: component [' bom-ref' ]
3233 };
3334 });
3435 });
You can’t perform that action at this time.
0 commit comments