basic file sharing

This commit is contained in:
2025-08-29 15:32:23 +02:00
parent c8b52a5b3b
commit 284d805590
84 changed files with 3969 additions and 375 deletions

View File

@@ -2,8 +2,9 @@
import type { DirectoryEntry } from '~/shared/types';
const { entry } = defineProps<{ entry: DirectoryEntry }>();
const warrenStore = useWarrenStore();
const emit = defineEmits<{
back: [];
}>();
const onDrop = onDirectoryEntryDrop(entry, true);
</script>
@@ -12,7 +13,7 @@ const onDrop = onDirectoryEntryDrop(entry, true);
<button
class="bg-accent/30 border-border flex w-52 translate-0 flex-row gap-4 overflow-hidden rounded-md border-1 px-4 py-2 select-none"
@contextmenu.prevent
@click="() => warrenStore.backCurrentPath()"
@click="() => emit('back')"
@drop="onDrop"
>
<div class="flex flex-row items-center">