From 42bb5228d50e212208a610a7dbf8b8726a17d2ed Mon Sep 17 00:00:00 2001 From: Frankie B Date: Mon, 22 Jan 2024 01:18:12 +0000 Subject: Remove unused HLJS code and unnecessary components --- resources/views/components/lastfm.blade.php | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 resources/views/components/lastfm.blade.php (limited to 'resources/views/components/lastfm.blade.php') diff --git a/resources/views/components/lastfm.blade.php b/resources/views/components/lastfm.blade.php deleted file mode 100644 index 83312e1..0000000 --- a/resources/views/components/lastfm.blade.php +++ /dev/null @@ -1,21 +0,0 @@ -@php - -$cfg = app('config')->get('services')['lastfm']; -$api_root = app('config')->get('app')['api_root']; - -$current_track = json_decode(file_get_contents($api_root.'/lastfm/current')); -$toptracks = json_decode(file_get_contents($api_root.'/lastfm/top')); -$count = 0; -@endphp - -

Last.fm (Profile)

- Last/Current Track: {{ $current_track->name }} • {{ $current_track->artist }} -

Top {{ $cfg['toptracks'] }} Tracks (Last 7 days)

-@foreach ($toptracks as $track) - @if ($count >= $cfg['toptracks']) - @break - @endif - {{ str_pad($count+1, 2, '0', STR_PAD_LEFT) }}] {{ $track->name }} • {{ $track->artist }} - ({{ $track->plays }} plays)
-@php $count++ @endphp -@endforeach -- cgit v1.2.3-54-g00ecf