From c0328c5cdb1edc1c3dca368d65b84e640ef4df3c Mon Sep 17 00:00:00 2001 From: Philipp Dormann Date: Sat, 9 Jan 2021 13:57:11 +0100 Subject: [PATCH] AboutPage - read license text modal ref #17 --- src/components/About.svelte | 94 ++++++++++++++++++++++++++++++++++++- 1 file changed, 92 insertions(+), 2 deletions(-) diff --git a/src/components/About.svelte b/src/components/About.svelte index 11d24f2e..caee3b35 100644 --- a/src/components/About.svelte +++ b/src/components/About.svelte @@ -1,7 +1,20 @@ +{#if modal_open} +
{ + modal_open = false; + }}> +
+ +
+{/if} +

{l.name} - {l.license || '?'} - {(l.repo?.url || l.repo).replace('git+', '')} + + {l.license || '?'}
{ + modal_open = true; + currentlicense = l.name + '@' + l.version; + licensetext = l.licensetext || 'No license text could be found 😢'; + }}>read license + + + {(l.repo?.url || l.repo) + .replace('git+', '') + .replace('git://', '')} + {l.version || '?'} {l.author?.name || l.author || '?'}