From f67e089ff39aa885983c063b82b60ba0ea432b69 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Wed, 17 Mar 2021 13:29:52 +0100 Subject: [PATCH] Added basic files for scans ref #92 --- src/components/scans/Scans.svelte | 29 +++++++++++++++++++++ src/components/scans/ScansEmptyState.svelte | 12 +++++++++ src/components/scans/scans.svg | 1 + 3 files changed, 42 insertions(+) create mode 100644 src/components/scans/Scans.svelte create mode 100644 src/components/scans/ScansEmptyState.svelte create mode 100644 src/components/scans/scans.svg diff --git a/src/components/scans/Scans.svelte b/src/components/scans/Scans.svelte new file mode 100644 index 00000000..d8e7d983 --- /dev/null +++ b/src/components/scans/Scans.svelte @@ -0,0 +1,29 @@ + + +
+ + Scans + {#if store.state.jwtinfo.userdetails.permissions.includes('SCAN:CREATE')} + + {/if} + + +
+ +{#if store.state.jwtinfo.userdetails.permissions.includes('SCAN:CREATE')} + +{/if} diff --git a/src/components/scans/ScansEmptyState.svelte b/src/components/scans/ScansEmptyState.svelte new file mode 100644 index 00000000..6afaa185 --- /dev/null +++ b/src/components/scans/ScansEmptyState.svelte @@ -0,0 +1,12 @@ + + +
+

+ + There are no scans yet
+ Add your fist scan +

+
diff --git a/src/components/scans/scans.svg b/src/components/scans/scans.svg new file mode 100644 index 00000000..13a97190 --- /dev/null +++ b/src/components/scans/scans.svg @@ -0,0 +1 @@ + \ No newline at end of file