From a8a82c63e5a3ed951494e4758eaf6c659248fdce Mon Sep 17 00:00:00 2001 From: Juan Sensio Date: Wed, 9 Oct 2024 10:30:04 +0200 Subject: [PATCH] add thumbnails --- ui/src/routes/datasets/[name]/+page.svelte | 368 +++++++++++---------- ui/src/routes/models/[name]/+page.svelte | 309 ++++++++--------- 2 files changed, 350 insertions(+), 327 deletions(-) diff --git a/ui/src/routes/datasets/[name]/+page.svelte b/ui/src/routes/datasets/[name]/+page.svelte index 1ba901de..1d1d5894 100755 --- a/ui/src/routes/datasets/[name]/+page.svelte +++ b/ui/src/routes/datasets/[name]/+page.svelte @@ -1,194 +1,204 @@ - EOTDL | {data.name} + EOTDL | {data.name} {#if dataset} -
-
-
- - - - - -

{dataset.name}

-
- {#each dataset.tags as tag} -

- {tag} -

- {/each} -
- -
- -
- - {#if dataset.quality < 2} - Upgrade - {/if} - {#if $user} - {#if $user.uid == dataset.uid} - - {/if} - {/if} - -
-
-
-
-
- {#if description} - {@html description} - {:else} -

No description.

- {/if} -
- {#if dataset.quality > 0} -
{JSON.stringify(
-								dataset.catalog,
-								null,
-								4,
-							)}
- {/if} -
-
-
-

Download the dataset with the CLI:

-
-
- {#if message} - {message} - {/if} -
- {#if dataset.quality == 0} -
- - -
- {:else if dataset.items?.features?.length > 0} -
-

Total items: {dataset.items?.features.length}

- -
- {/if} -
-
-
-
+
+
+
+ + + + + +

{dataset.name}

+
+ {#each dataset.tags as tag} +

+ {tag} +

+ {/each} +
+ +
+
+ + {#if dataset.quality < 2} + Upgrade + {/if} + {#if $user} + {#if $user.uid == dataset.uid} + + {/if} + {/if} + +
+
+
+
+
+ {#if description} + {@html description} + {:else} +

No description.

+ {/if} +
+ {#if dataset.quality > 0} +
{JSON.stringify(
+                dataset.catalog,
+                null,
+                4
+              )}
+ {/if} +
+
+
+

Download the dataset with the CLI:

+
+
+ {#if message} + {message} + {/if} +
+ {#if dataset.quality == 0} +
+ + +
+ {:else if dataset.items?.features?.length > 0} +
+

Total items: {dataset.items?.features.length}

+ +
+ {/if} +
+
+
+
{/if} diff --git a/ui/src/routes/models/[name]/+page.svelte b/ui/src/routes/models/[name]/+page.svelte index e4073bc2..82b0063d 100755 --- a/ui/src/routes/models/[name]/+page.svelte +++ b/ui/src/routes/models/[name]/+page.svelte @@ -1,138 +1,151 @@ - EOTDL | {data.name} + EOTDL | {data.name} {#if model} -
-
-
- - - - - -

{model.name}

-
- {#each model.tags as tag} -

- {tag} -

- {/each} -
- -
-
+
+
+
+ + + + + +

{model.name}

+
+ {#each model.tags as tag} +

+ {tag} +

+ {/each} +
+ +
+
- {#if $user} - - - {#if $user.uid == model.uid} - - {/if} - - {/if} -
+ {#if $user.uid == model.uid} + + {/if} + + {/if} +
-
-
-
- {#if description} - {@html description} - {:else} -

No description.

- {/if} -
- -
-
-

Download the model with the CLI:

-
-
- {#if message} - {message} - {/if} -
- {#if model.quality == 0} -
- - -
- {/if} -
-
-
-
+
+
+

Download the model with the CLI:

+
+
+ {#if message} + {message} + {/if} +
+ {#if model.quality == 0} +
+ + +
+ {/if} +
+
+ + {/if}