-
Notifications
You must be signed in to change notification settings - Fork 3
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
Thomas Junk
committed
Sep 13, 2023
1 parent
e8ab41e
commit ee89080
Showing
4 changed files
with
57 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,5 @@ | |
} | ||
p { | ||
margin-left: 4rem; | ||
font-size: small; | ||
font-family: monospace; | ||
} | ||
</style> |
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 |
---|---|---|
|
@@ -26,7 +26,5 @@ | |
} | ||
p { | ||
margin-left: 4rem; | ||
font-size: small; | ||
font-family: monospace; | ||
} | ||
</style> |
53 changes: 53 additions & 0 deletions
53
src/lib/singleview/vulnerabilities/vulnerability/Threats.svelte
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,53 @@ | ||
<script lang="ts"> | ||
import Collapsible from "$lib/Collapsible.svelte"; | ||
export let vulnerability: any; | ||
</script> | ||
|
||
<Collapsible header="Threats" level="4"> | ||
{#each vulnerability.threats as threat} | ||
<div class="note"> | ||
<h6>Category</h6> | ||
<p>{threat.category}</p> | ||
</div> | ||
{#if threat.date} | ||
<div class=""> | ||
<h6>Date</h6> | ||
<p>{threat.date}</p> | ||
</div> | ||
{/if} | ||
<div class="note"> | ||
<h6>Details</h6> | ||
<p>{threat.details}</p> | ||
</div> | ||
{#if threat.group_ids} | ||
<div class=""> | ||
<h6>Group IDs</h6> | ||
<ul> | ||
{#each threat.group_ids as gid} | ||
<li>{gid}</li> | ||
{/each} | ||
</ul> | ||
</div> | ||
{/if} | ||
{#if threat.product_ids} | ||
<div class=""> | ||
<h6>Product IDs</h6> | ||
<ul> | ||
{#each threat.product_ids as pid} | ||
<li>{pid}</li> | ||
{/each} | ||
</ul> | ||
</div> | ||
{/if} | ||
{/each} | ||
</Collapsible> | ||
|
||
<style> | ||
.note { | ||
text-align: justify; | ||
} | ||
h6 { | ||
line-height: 0.3em; | ||
font-size: large; | ||
} | ||
</style> |