Merge pull request #112 from mrquatsch/runeaudio

enhanced runeaudio app - displays artist and song
This commit is contained in:
KodeStar
2018-02-25 16:39:20 +00:00
committed by GitHub
7 changed files with 189 additions and 1 deletions

15
resources/assets/sass/_rune.scss vendored Normal file
View File

@@ -0,0 +1,15 @@
.title-marquee {
width: 125px;
overflow: hidden;
span {
white-space: nowrap;
transform: translate(0, 0);
animation: marquee 8s linear;
}
@keyframes marquee {
0% { transform: translate(0, 0); }
20% { transform: translate(0, 0); }
95% { transform: translate(-200%, 0); }
100% { transform: translate(-200%, 0); }
}
}

View File

@@ -10,6 +10,7 @@
// Bootstrap
@import "app";
@import "rune";
// Huebee
@import "huebee";

View File

@@ -0,0 +1,21 @@
<h2>{{ __('app.apps.config') }} ({{ __('app.optional') }})</h2>
<div class="items">
<input type="hidden" data-config="type" class="config-item" name="config[type]" value="\App\SupportedApps\Runeaudio" />
<input type="hidden" data-config="dataonly" class="config-item" name="config[dataonly]" value="1" />
<div class="input">
<label>{{ __('app.apps.enable') }}</label>
{!! Form::hidden('config[enabled]', '0') !!}
<label class="switch">
<?php
$checked = false;
if(isset($item->config->enabled) && (bool)$item->config->enabled === true) $checked = true;
$set_checked = ($checked) ? ' checked="checked"' : '';
?>
<input type="checkbox" name="config[enabled]" value="1"<?php echo $set_checked;?> />
<span class="slider round"></span>
</label>
</div>
<div class="input">
<button style="margin-top: 32px;" class="btn test" id="test_config">Test</button>
</div>
</div>