Spaces:
Running
Running
feat(tools): click on space to open
Browse files
src/routes/tools/[toolId]/+page.svelte
CHANGED
@@ -59,9 +59,19 @@
|
|
59 |
</div>
|
60 |
|
61 |
{#if data.tool?.baseUrl}
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
{/if}
|
66 |
|
67 |
{#if data.tool.type === "community"}
|
|
|
59 |
</div>
|
60 |
|
61 |
{#if data.tool?.baseUrl}
|
62 |
+
{#if data.tool.baseUrl.startsWith("https://")}
|
63 |
+
<p class="mb-2 line-clamp-2 font-mono text-gray-500">
|
64 |
+
{data.tool.baseUrl}
|
65 |
+
</p>
|
66 |
+
{:else}
|
67 |
+
<a
|
68 |
+
href="https://huggingface.co/spaces/{data.tool.baseUrl}"
|
69 |
+
target="_blank"
|
70 |
+
class="mb-2 line-clamp-2 font-mono text-gray-500 hover:underline"
|
71 |
+
>
|
72 |
+
{data.tool.baseUrl}
|
73 |
+
</a>
|
74 |
+
{/if}
|
75 |
{/if}
|
76 |
|
77 |
{#if data.tool.type === "community"}
|