Commit cf935d10 authored by david's avatar david
Browse files

Change for valid, exported props.

parent 8e267fd6
<svelte:options tag="aura-clock"/>
<script> <script>
import { onMount } from 'svelte'; import { onMount } from 'svelte';
export let apiUrl = "http://localhost:3333/api/v1"; export let api = "http://localhost:3333/api/v1";
export let stationName = "Studio Clock"; export let name = "Studio Clock";
export let stationLogo = "https://gitlab.servus.at/aura/meta/-/raw/master/images/aura-logo.png"; export let logo = "https://gitlab.servus.at/aura/meta/-/raw/master/images/aura-logo.png";
export let stationLogoSize = "100px"; export let logosize = "100px";
export let noScheduleMessage = "Nothing scheduled!"; export let noScheduleMessage = "Nothing scheduled!";
let time = new Date(); let time = new Date();
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
let data; let data;
try { try {
response = await fetch(apiUrl+query); response = await fetch(api+query);
} catch { } catch {
throw new Error("Cannot connect to Engine!"); throw new Error("Cannot connect to Engine!");
} }
...@@ -356,8 +357,8 @@ ...@@ -356,8 +357,8 @@
<div id="station-header"> <div id="station-header">
<img id="station-logo" src="{stationLogo}" style="width:{stationLogoSize}" alt="Radio Station" align="left" /> <img id="station-logo" src="{logo}" style="width:{logosize}" alt="Radio Station" align="left" />
<h1 id="station-name">{stationName}</h1> <h1 id="station-name">{name}</h1>
</div> </div>
<div id="studio-clock"> <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