ui: Use $lib instead of ../../../../ mess
This commit is contained in:
parent
3cf92b4798
commit
3a6daa3d04
48 changed files with 81 additions and 81 deletions
|
|
@ -1,20 +0,0 @@
|
|||
<script>
|
||||
import { base } from '$app/paths';
|
||||
|
||||
import {
|
||||
CardBody,
|
||||
Icon,
|
||||
} from 'sveltestrap';
|
||||
|
||||
export let uri = "";
|
||||
</script>
|
||||
|
||||
<CardBody class="text-indent ratio ratio-16x9">
|
||||
{#if uri.length > 0 && uri[0] === '/'}
|
||||
<video controls src={uri} />
|
||||
{:else}
|
||||
<iframe type="text/html" src="{uri.replace('$RFILES$', base+'/resolution')}" class="embed-responsive-item" title="Vidéo de résolution">
|
||||
Regardez la vidéo de résolution de ce défi : <a href="{uri.replace('$RFILES$',base+'/resolution')}">{uri.replace('$RFILES$',base+'/resolution')}</a>.
|
||||
</iframe>
|
||||
{/if}
|
||||
</CardBody>
|
||||
Reference in a new issue