Update filesystem structure

This commit is contained in:
2023-04-11 23:44:50 +02:00
parent 9b451b37ea
commit 971a0fe539
8 changed files with 58 additions and 48 deletions

View File

@@ -53,7 +53,7 @@ onMount(() => {
<audio
bind:this={player}
class="player"
src={fs_get_file_url(state.bucket.id, state.base.path)}
src={fs_get_file_url(state.root.id, state.base.path)}
autoplay="autoplay"
controls="controls"
on:pause={() => playing = false }

View File

@@ -51,7 +51,7 @@ const mouseup = (e) => {
on:doubletap={() => {zoom = !zoom}}
on:mousedown={mousedown}
class="image" class:zoom
src={fs_get_file_url(state.bucket.id, state.base.path)}
src={fs_get_file_url(state.root.id, state.base.path)}
alt="no description available" />
</div>

View File

@@ -5,7 +5,7 @@ export let state
<iframe
class="container"
src={"/res/misc/pdf-viewer/web/viewer.html?file="+encodeURIComponent(fs_get_file_url(state.bucket.id, state.base.path))}
src={"/res/misc/pdf-viewer/web/viewer.html?file="+encodeURIComponent(fs_get_file_url(state.root.id, state.base.path))}
title="PDF viewer">
</iframe>

View File

@@ -38,7 +38,7 @@ onMount(() => {
<video
bind:this={player}
class="player"
src={fs_get_file_url(state.bucket.id, state.base.path)}
src={fs_get_file_url(state.root.id, state.base.path)}
autoplay="autoplay"
controls="controls"
on:ended={() => { dispatch("open_sibling", 1) }}>