diff --git a/src/lib/components/ConfigRow.svelte b/src/lib/components/ConfigRow.svelte new file mode 100644 index 0000000..907e115 --- /dev/null +++ b/src/lib/components/ConfigRow.svelte @@ -0,0 +1,332 @@ + + +
+
+
+
+

{config.name}

+ {config.visibility} +
+ {#if dna.length > 0} + + {/if} + {#if config.description} +

{config.description}

+ {/if} +
+ +
+ + + {config.install_count ?? 0} + + {cli} cli · {apps} apps + updated {formatDate(config.updated_at)} +
+
+ +
+ + + onaction(action, config.slug)} /> +
+
+ + diff --git a/src/lib/components/ContextMenu.svelte b/src/lib/components/ContextMenu.svelte index 0b97f22..36dc812 100644 --- a/src/lib/components/ContextMenu.svelte +++ b/src/lib/components/ContextMenu.svelte @@ -5,9 +5,10 @@ danger?: boolean; } - let { items, onselect }: { + let { items, onselect, square = false }: { items: MenuItem[]; onselect: (action: string) => void; + square?: boolean; } = $props(); let open = $state(false); @@ -36,7 +37,7 @@
- + {#if open} {:else} -
- {#each configs as config, i} +
+ {#each configs as config, i (config.id)}
-