Commit cf935d10 authored by David Trattnig's avatar David Trattnig
Browse files

Change for valid, exported props.

parent 8e267fd6
<svelte:options tag="aura-clock"/>
<script>
import { onMount } from 'svelte';
export let apiUrl = "http://localhost:3333/api/v1";
export let stationName = "Studio Clock";
export let stationLogo = "https://gitlab.servus.at/aura/meta/-/raw/master/images/aura-logo.png";
export let stationLogoSize = "100px";
export let api = "http://localhost:3333/api/v1";
export let name = "Studio Clock";
export let logo = "https://gitlab.servus.at/aura/meta/-/raw/master/images/aura-logo.png";
export let logosize = "100px";
export let noScheduleMessage = "Nothing scheduled!";
let time = new Date();
......@@ -47,7 +48,7 @@
let data;
try {
response = await fetch(apiUrl+query);
response = await fetch(api+query);
} catch {
throw new Error("Cannot connect to Engine!");
}
......@@ -356,8 +357,8 @@
<div id="station-header">
<img id="station-logo" src="{stationLogo}" style="width:{stationLogoSize}" alt="Radio Station" align="left" />
<h1 id="station-name">{stationName}</h1>
<img id="station-logo" src="{logo}" style="width:{logosize}" alt="Radio Station" align="left" />
<h1 id="station-name">{name}</h1>
</div>
<div id="studio-clock">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment