📂 Updates filessystem view
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import FileSystem from './FileSystem.svelte';
|
import FileSystem from './FileSystem.svelte'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="mx-0 my-1 flex flex-col space-y-4 sm:mx-8 sm:my-8">
|
<div class="mx-0 my-1 flex flex-col space-y-4 sm:mx-8 sm:my-8">
|
||||||
<FileSystem />
|
<FileSystem />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import type { PageLoad } from './$types';
|
import type { PageLoad } from './$types'
|
||||||
|
|
||||||
export const load = (async () => {
|
export const load = (async () => {
|
||||||
return { title: 'File System' };
|
return { title: 'File System' }
|
||||||
}) satisfies PageLoad;
|
}) satisfies PageLoad
|
||||||
|
|||||||
@@ -1,19 +1,11 @@
|
|||||||
<script>
|
<script>
|
||||||
import { FileIcon } from '$lib/components/icons';
|
import { FileIcon } from '$lib/components/icons'
|
||||||
import { createEventDispatcher } from 'svelte';
|
|
||||||
|
|
||||||
/** @type {{name: any}} */
|
let { name, selected } = $props()
|
||||||
let { name } = $props();
|
|
||||||
|
|
||||||
const dispatch = createEventDispatcher();
|
|
||||||
|
|
||||||
const updateSelected = async () => {
|
|
||||||
dispatch('selected', { name });
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- svelte-ignore a11y_interactive_supports_focus -->
|
<!-- svelte-ignore a11y_interactive_supports_focus -->
|
||||||
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
<!-- svelte-ignore a11y_click_events_have_key_events -->
|
||||||
<span role="button" class="flex pl-4 gap-2 items-center" onclick={updateSelected}>
|
<span role="button" class="flex pl-4 gap-2 items-center" onclick={selected}>
|
||||||
<FileIcon/>{name}
|
<FileIcon />{name}
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user