From ee89080ffb961e1d62beff0766ced3487e493f97 Mon Sep 17 00:00:00 2001 From: Thomas Junk Date: Wed, 13 Sep 2023 09:55:41 +0200 Subject: [PATCH] feat: Threads --- .../vulnerability/Acknowledgements.svelte | 2 - .../vulnerability/Flags.svelte | 6 ++- .../vulnerability/Notes.svelte | 2 - .../vulnerability/Threats.svelte | 53 +++++++++++++++++++ 4 files changed, 57 insertions(+), 6 deletions(-) create mode 100644 src/lib/singleview/vulnerabilities/vulnerability/Threats.svelte diff --git a/src/lib/singleview/vulnerabilities/vulnerability/Acknowledgements.svelte b/src/lib/singleview/vulnerabilities/vulnerability/Acknowledgements.svelte index 1bafd4e..a3b8cee 100644 --- a/src/lib/singleview/vulnerabilities/vulnerability/Acknowledgements.svelte +++ b/src/lib/singleview/vulnerabilities/vulnerability/Acknowledgements.svelte @@ -55,7 +55,5 @@ } p { margin-left: 4rem; - font-size: small; - font-family: monospace; } diff --git a/src/lib/singleview/vulnerabilities/vulnerability/Flags.svelte b/src/lib/singleview/vulnerabilities/vulnerability/Flags.svelte index 30354f4..e527808 100644 --- a/src/lib/singleview/vulnerabilities/vulnerability/Flags.svelte +++ b/src/lib/singleview/vulnerabilities/vulnerability/Flags.svelte @@ -5,6 +5,7 @@ {#each vulnerability.flags as flag} +
{#if flag.date}
Date
@@ -39,14 +40,15 @@ diff --git a/src/lib/singleview/vulnerabilities/vulnerability/Threats.svelte b/src/lib/singleview/vulnerabilities/vulnerability/Threats.svelte new file mode 100644 index 0000000..64a0190 --- /dev/null +++ b/src/lib/singleview/vulnerabilities/vulnerability/Threats.svelte @@ -0,0 +1,53 @@ + + + + {#each vulnerability.threats as threat} +
+
Category
+

{threat.category}

+
+ {#if threat.date} +
+
Date
+

{threat.date}

+
+ {/if} +
+
Details
+

{threat.details}

+
+ {#if threat.group_ids} +
+
Group IDs
+
    + {#each threat.group_ids as gid} +
  • {gid}
  • + {/each} +
+
+ {/if} + {#if threat.product_ids} +
+
Product IDs
+
    + {#each threat.product_ids as pid} +
  • {pid}
  • + {/each} +
+
+ {/if} + {/each} +
+ +