mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
parent
296bbeb2fc
commit
f69ce6ad8a
11 changed files with 135 additions and 159 deletions
|
|
@ -0,0 +1,17 @@
|
|||
<script lang="ts">
|
||||
import Tree from '$lib/components/shared-components/tree/tree.svelte';
|
||||
import type { RecursiveObject } from '$lib/utils/tree-utils';
|
||||
|
||||
export let items: RecursiveObject;
|
||||
export let parent = '';
|
||||
export let active = '';
|
||||
export let getLink: (path: string) => string;
|
||||
</script>
|
||||
|
||||
<ul class="list-none ml-2">
|
||||
{#each Object.entries(items) as [path, tree], index (index)}
|
||||
<li>
|
||||
<Tree {parent} value={path} {tree} {active} {getLink} />
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
Loading…
Add table
Add a link
Reference in a new issue