-
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 7, 2023
1 parent
5722caa
commit 1f7ea63
Showing
2 changed files
with
89 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,83 @@ | ||
<script lang="ts"> | ||
export let vulnerability: any; | ||
</script> | ||
|
||
<div class="status"> | ||
{#if vulnerability.product_status?.fist_affected} | ||
<h6>- Fist affected</h6> | ||
<ul> | ||
{#each vulnerability.product_status?.fist_affected as elem} | ||
<li>{elem}</li> | ||
{/each} | ||
</ul> | ||
{/if} | ||
{#if vulnerability.product_status?.first_fixed} | ||
<h6>First fixed</h6> | ||
<ul> | ||
{#each vulnerability.product_status?.first_fixed as elem} | ||
<li>{elem}</li> | ||
{/each} | ||
</ul> | ||
{/if} | ||
{#if vulnerability.product_status?.fixed} | ||
<h6>Fixed</h6> | ||
<ul> | ||
{#each vulnerability.product_status?.fixed as elem} | ||
<li>{elem}</li> | ||
{/each} | ||
</ul> | ||
{/if} | ||
{#if vulnerability.product_status?.under_invenstigation} | ||
<h6>Under investigation</h6> | ||
<ul> | ||
{#each vulnerability.product_status?.under_invenstigation as elem} | ||
<li>{elem}</li> | ||
{/each} | ||
</ul> | ||
{/if} | ||
{#if vulnerability.product_status?.known_affected} | ||
<h6>Known affected</h6> | ||
<ul> | ||
{#each vulnerability.product_status?.known_affected as elem} | ||
<li>{elem}</li> | ||
{/each} | ||
</ul> | ||
{/if} | ||
{#if vulnerability.product_status?.known_not_affected} | ||
<h6>Known not affected</h6> | ||
<ul> | ||
{#each vulnerability.product_status?.known_not_affected as elem} | ||
<li>{elem}</li> | ||
{/each} | ||
</ul> | ||
{/if} | ||
{#if vulnerability.product_status?.last_affected} | ||
<h6>Last affected</h6> | ||
<ul> | ||
{#each vulnerability.product_status?.last_affected as elem} | ||
<li>{elem}</li> | ||
{/each} | ||
</ul> | ||
{/if} | ||
{#if vulnerability.product_status?.recommended} | ||
<h6>Recommended</h6> | ||
<ul> | ||
{#each vulnerability.product_status?.recommended as elem} | ||
<li>{elem}</li> | ||
{/each} | ||
</ul> | ||
{/if} | ||
</div> | ||
|
||
<style> | ||
.status { | ||
margin-top: 1.5rem; | ||
} | ||
h6 { | ||
line-height: 0.3em; | ||
font-size: large; | ||
} | ||
ul { | ||
list-style-type: none; | ||
} | ||
</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