simplify component exports

This commit is contained in:
Ollie Taylor
2023-02-23 00:48:21 +00:00
parent 8d4afbd7ff
commit 69346b6c19
3 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -18,7 +18,7 @@
$: __internal_audio_metadata.update((x) => ({ ...x, muted }));
</script>
{#if src}
{#key src}
<audio
bind:this={element}
{src}
@@ -73,4 +73,4 @@
}}
/>
<!-- <AudioA11yProgress {currentTime} {paused} {duration} /> -->
{/if}
{/key}
+2
View File
@@ -0,0 +1,2 @@
export { default as AudioManager } from './audio.svelte';
export { audio } from './store';
+2 -3
View File
@@ -1,6 +1,5 @@
<script lang="ts">
import Audio from '$lib/components/audio/audio.svelte';
import { audio } from '$lib/components/audio/store';
import { audio, AudioManager } from '$lib/components/audio';
const sources = {
syntax: '/example-syntax.mp3',
@@ -12,7 +11,7 @@
<h1>Demo</h1>
<Audio on:progress={(e) => console.log(e.detail)} />
<AudioManager on:progress={(e) => console.log(e.detail)} />
<!-- <progress
style="width: 960px; max-width:100%"
data-paused={$_paused ? 'true' : 'false'}