create dirs + delete dirs + delete files

This commit is contained in:
2025-07-13 03:18:22 +02:00
parent 18be642181
commit b4731f6f81
53 changed files with 1056 additions and 59 deletions

View File

@@ -6,17 +6,21 @@ const { entries } = defineProps<{
}>();
const { isLoading } = useLoadingIndicator();
const sortedEntries = computed(() =>
entries.toSorted((a, b) => a.name.localeCompare(b.name))
);
</script>
<template>
<ScrollArea class="w-full h-full">
<div class="flex flex-row gap-2">
<div class="flex flex-row flex-wrap gap-2">
<DirectoryEntry
v-for="entry in entries"
v-for="entry in sortedEntries"
:key="entry.name"
:name="entry.name"
:entry-type="entry.fileType"
:disabled="isLoading"
:file-type="entry.fileType"
:disabled="isLoading"
/>
</div>
</ScrollArea>