2021-11-03 22:27:50 +00:00
|
|
|
@page
|
|
|
|
@model NowModel
|
|
|
|
@{
|
2022-06-22 21:51:38 +01:00
|
|
|
ViewData["Title"] = "Now - Selector";
|
2021-11-03 22:27:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
<div class="text-center">
|
|
|
|
<h1 class="display-4">Now</h1>
|
2021-11-11 19:54:28 +00:00
|
|
|
<div id="app" class="app col-12">
|
2022-06-18 10:56:34 +01:00
|
|
|
<now-playing-card :track="currentlyPlaying.track" v-if="currentlyPlaying !== null && currentlyPlaying !== undefined"></now-playing-card>
|
|
|
|
<now-playing-card v-else></now-playing-card>
|
2021-11-10 01:46:30 +00:00
|
|
|
|
2022-06-18 10:56:34 +01:00
|
|
|
<popularity :track="currentlyPlaying.track"
|
|
|
|
v-if="currentlyPlaying !== null && currentlyPlaying !== undefined && currentlyPlaying.track != null && currentlyPlaying.track != undefined"></popularity>
|
|
|
|
|
|
|
|
<audio-feature-card :feature="trackFeatures"
|
|
|
|
v-if="trackFeatures !== null && trackFeatures !== undefined"></audio-feature-card>
|
|
|
|
<audio-feature-chart-card :feature="trackFeatures"
|
|
|
|
v-if="trackFeatures !== null && trackFeatures !== undefined"></audio-feature-chart-card>
|
|
|
|
|
|
|
|
<play-count-card :count="playCount"
|
|
|
|
:track="lastfmTrack"
|
|
|
|
:username="playCount.username"
|
|
|
|
v-if="playCount !== null && playCount !== undefined"></play-count-card>
|
2022-06-23 19:26:36 +01:00
|
|
|
|
|
|
|
<info-card v-for="card in cards" :html="card.content"></info-card>
|
|
|
|
|
|
|
|
<artist-breakdown :play_count="playCount"
|
2022-06-28 07:25:24 +01:00
|
|
|
v-if="showArtistBreakdown"></artist-breakdown>
|
2022-06-23 19:26:36 +01:00
|
|
|
|
|
|
|
<play-count-chart-card-comb :data_points="combinedData"
|
|
|
|
:chart_id="'combined'"
|
|
|
|
:earliest_date="earliestDate"
|
2022-06-23 19:44:38 +01:00
|
|
|
v-if="showAlbumChart"></play-count-chart-card-comb>
|
2022-06-18 10:56:34 +01:00
|
|
|
<play-count-chart-card :data_points="playCount.trackCountData"
|
2022-06-23 19:26:36 +01:00
|
|
|
:title="trackGraphTitle"
|
2022-06-18 10:56:34 +01:00
|
|
|
:chart_id="'track'"
|
2022-06-23 19:26:36 +01:00
|
|
|
:earliest_date="earliestDate"
|
|
|
|
:latest_date="latestDate"
|
|
|
|
:colour="'#7a99c2'"
|
2022-06-18 10:56:34 +01:00
|
|
|
v-if="showTrackChart"></play-count-chart-card>
|
|
|
|
<play-count-chart-card :data_points="playCount.albumCountData"
|
2022-06-23 19:26:36 +01:00
|
|
|
:title="albumGraphTitle"
|
2022-06-18 10:56:34 +01:00
|
|
|
:chart_id="'album'"
|
2022-06-23 19:26:36 +01:00
|
|
|
:earliest_date="earliestDate"
|
|
|
|
:latest_date="latestDate"
|
|
|
|
:colour="'#a34c77'"
|
2022-06-18 10:56:34 +01:00
|
|
|
v-if="showAlbumChart"></play-count-chart-card>
|
|
|
|
<play-count-chart-card :data_points="playCount.artistCountData"
|
2022-06-23 19:26:36 +01:00
|
|
|
:title="artistGraphTitle"
|
2022-06-18 10:56:34 +01:00
|
|
|
:chart_id="'artist'"
|
2022-06-23 19:26:36 +01:00
|
|
|
:earliest_date="earliestDate"
|
|
|
|
:latest_date="latestDate"
|
|
|
|
:colour="'#598556'"
|
2022-06-18 10:56:34 +01:00
|
|
|
v-if="showArtistChart"></play-count-chart-card>
|
2021-11-09 18:17:22 +00:00
|
|
|
</div>
|
2021-11-03 22:27:50 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@section Scripts {
|
|
|
|
<script type="module" src="~/js/now.bundle.js"></script>
|
|
|
|
}
|