mirror of
https://github.com/sveltejs/svelte.git
synced 2024-12-01 17:30:59 +01:00
41 lines
835 B
Svelte
41 lines
835 B
Svelte
<script>
|
|
import Folder from './Folder.svelte';
|
|
|
|
let root = [
|
|
{
|
|
type: 'folder',
|
|
name: 'Important work stuff',
|
|
files: [
|
|
{ type: 'file', name: 'quarterly-results.xlsx' }
|
|
]
|
|
},
|
|
{
|
|
type: 'folder',
|
|
name: 'Animal GIFs',
|
|
files: [
|
|
{
|
|
type: 'folder',
|
|
name: 'Dogs',
|
|
files: [
|
|
{ type: 'file', name: 'treadmill.gif' },
|
|
{ type: 'file', name: 'rope-jumping.gif' }
|
|
]
|
|
},
|
|
{
|
|
type: 'folder',
|
|
name: 'Goats',
|
|
files: [
|
|
{ type: 'file', name: 'parkour.gif' },
|
|
{ type: 'file', name: 'rampage.gif' }
|
|
]
|
|
},
|
|
{ type: 'file', name: 'cat-roomba.gif' },
|
|
{ type: 'file', name: 'duck-shuffle.gif' },
|
|
{ type: 'file', name: 'monkey-on-a-pig.gif' }
|
|
]
|
|
},
|
|
{ type: 'file', name: 'TODO.md' }
|
|
];
|
|
</script>
|
|
|
|
<Folder name="Home" files={root} expanded/> |