Upload folder using huggingface_hub
Browse files
6.23.0/paramviewer/Example.svelte
CHANGED
|
@@ -1,7 +1,13 @@
|
|
| 1 |
<script lang="ts">
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
</script>
|
| 6 |
|
| 7 |
<div
|
|
|
|
| 1 |
<script lang="ts">
|
| 2 |
+
let {
|
| 3 |
+
value,
|
| 4 |
+
type,
|
| 5 |
+
selected = false
|
| 6 |
+
}: {
|
| 7 |
+
value: string;
|
| 8 |
+
type: "gallery" | "table";
|
| 9 |
+
selected?: boolean;
|
| 10 |
+
} = $props();
|
| 11 |
</script>
|
| 12 |
|
| 13 |
<div
|
6.23.0/paramviewer/ParamViewer.svelte
CHANGED
|
@@ -52,10 +52,10 @@
|
|
| 52 |
max_height
|
| 53 |
}: {
|
| 54 |
docs: Record<string, Param>;
|
| 55 |
-
linkify: string[];
|
| 56 |
header: string | null;
|
| 57 |
anchor_links: string | boolean;
|
| 58 |
-
max_height: number | string | undefined;
|
| 59 |
} = $props();
|
| 60 |
|
| 61 |
let component_root: HTMLElement;
|
|
@@ -192,7 +192,7 @@
|
|
| 192 |
{/if}
|
| 193 |
<button
|
| 194 |
class="toggle-all"
|
| 195 |
-
|
| 196 |
title={all_open ? "Close All" : "Open All"}
|
| 197 |
>
|
| 198 |
{all_open ? "▲" : "▼"}
|
|
|
|
| 52 |
max_height
|
| 53 |
}: {
|
| 54 |
docs: Record<string, Param>;
|
| 55 |
+
linkify?: string[];
|
| 56 |
header: string | null;
|
| 57 |
anchor_links: string | boolean;
|
| 58 |
+
max_height?: number | string | undefined;
|
| 59 |
} = $props();
|
| 60 |
|
| 61 |
let component_root: HTMLElement;
|
|
|
|
| 192 |
{/if}
|
| 193 |
<button
|
| 194 |
class="toggle-all"
|
| 195 |
+
onclick={toggle_all}
|
| 196 |
title={all_open ? "Close All" : "Open All"}
|
| 197 |
>
|
| 198 |
{all_open ? "▲" : "▼"}
|