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,5 +1,5 @@
<script>
import { fs_get_file_url } from "../FilesystemAPI.js";
import { fs_file_url } from "../FilesystemUtil.js";
import { createEventDispatcher, onMount } from 'svelte'
let dispatch = createEventDispatcher()
@@ -38,7 +38,7 @@ onMount(() => {
<video
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:ended={() => { dispatch("open_sibling", 1) }}>