Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
AURA
dashboard-clock
Commits
cf935d10
Commit
cf935d10
authored
Mar 12, 2020
by
david
Browse files
Change for valid, exported props.
parent
8e267fd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/StudioClock.svelte
View file @
cf935d10
<svelte:options
tag=
"aura-clock"
/>
<script>
import
{
onMount
}
from
'
svelte
'
;
export
let
api
Url
=
"
http://localhost:3333/api/v1
"
;
export
let
stationN
ame
=
"
Studio Clock
"
;
export
let
stationL
ogo
=
"
https://gitlab.servus.at/aura/meta/-/raw/master/images/aura-logo.png
"
;
export
let
stationL
ogo
S
ize
=
"
100px
"
;
export
let
api
=
"
http://localhost:3333/api/v1
"
;
export
let
n
ame
=
"
Studio Clock
"
;
export
let
l
ogo
=
"
https://gitlab.servus.at/aura/meta/-/raw/master/images/aura-logo.png
"
;
export
let
l
ogo
s
ize
=
"
100px
"
;
export
let
noScheduleMessage
=
"
Nothing scheduled!
"
;
let
time
=
new
Date
();
...
...
@@ -47,7 +48,7 @@
let
data
;
try
{
response
=
await
fetch
(
api
Url
+
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=
"{
stationL
ogo}"
style=
"width:{
stationL
ogo
S
ize}"
alt=
"Radio Station"
align=
"left"
/>
<h1
id=
"station-name"
>
{
stationN
ame}
</h1>
<img
id=
"station-logo"
src=
"{
l
ogo}"
style=
"width:{
l
ogo
s
ize}"
alt=
"Radio Station"
align=
"left"
/>
<h1
id=
"station-name"
>
{
n
ame}
</h1>
</div>
<div
id=
"studio-clock"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment