Split filesystem up in components

Also thumbnails work now
This commit is contained in:
2023-05-17 15:34:56 +02:00
parent c4cd2e1ee5
commit 277637511c
18 changed files with 711 additions and 595 deletions

View File

@@ -1,6 +1,6 @@
<script>
import { fs_get_file_url } from "../FilesystemAPI.js";
import { createEventDispatcher, onMount } from 'svelte'
import { fs_file_url } from "../FilesystemUtil.js";
let dispatch = createEventDispatcher()
export let state
@@ -53,7 +53,7 @@ onMount(() => {
<audio
bind:this={player}
class="player"
src={fs_get_file_url(state.root.id, state.base.path)}
src={fs_file_url(state.root.id, state.base.path)}
autoplay="autoplay"
controls="controls"
on:pause={() => playing = false }