From ad4f4dbccc53d7afafba02717c624d7563fcb391 Mon Sep 17 00:00:00 2001 From: DanConwayDev Date: Tue, 20 Aug 2024 10:29:23 +0100 Subject: [PATCH] feat(repo): add clone btn which links to downloads and shows nostr clone url --- src/lib/components/InstallNgit.svelte | 15 ++- src/lib/components/repo/RepoDetails.svelte | 112 +++++++++++++++++++-- 2 files changed, 114 insertions(+), 13 deletions(-) diff --git a/src/lib/components/InstallNgit.svelte b/src/lib/components/InstallNgit.svelte index 6e7080d..adcf9cf 100644 --- a/src/lib/components/InstallNgit.svelte +++ b/src/lib/components/InstallNgit.svelte @@ -1,4 +1,8 @@ -
+ + +

download binaries and add them to a directory from which they can be run globally: @@ -6,15 +10,18 @@

LinuxLinux MacMac WindowsWindows v1.3.1

diff --git a/src/lib/components/repo/RepoDetails.svelte b/src/lib/components/repo/RepoDetails.svelte index fdc9ac6..fe3005f 100644 --- a/src/lib/components/repo/RepoDetails.svelte +++ b/src/lib/components/repo/RepoDetails.svelte @@ -1,7 +1,9 @@
+ {#if !loading} +
+ +
+ {/if} {#if event_not_found} -

identifier

-

{identifier}

+

identifier

+

{identifier}

{:else} {#if name == identifier} {#if loading} @@ -43,10 +136,10 @@
{:else if !name || name.length == 0} -

name / identifier

+

name / identifier

none
{:else} -

name / identifier

+

name / identifier

{name}

{/if} {:else} @@ -102,7 +195,9 @@
{:else}

- clone {#if git_url_copied} + git servers {#if git_url_copied} (copied to clipboard){/if}

@@ -173,9 +268,8 @@
{:else}

- {#if event_not_found}author{:else}maintainers{/if} {#if maintainer_copied} + {#if event_not_found}author{:else}maintainers{/if} + {#if maintainer_copied} (copied to clipboard){/if}

@@ -260,7 +354,7 @@ {#if event_not_found}
-
missing repository details
+
missing repository details
cannot find referenced repository event