|
@@ -25,12 +25,13 @@
|
|
}
|
|
}
|
|
</button>
|
|
</button>
|
|
</td>
|
|
</td>
|
|
- <td class="text-left w-100 align-middle" @onclick="()=>{IsExpand=!IsExpand;}" colspan="2">
|
|
|
|
- @Playlist.Value.Value
|
|
|
|
- </td>
|
|
|
|
- <td class=" align-middle">
|
|
|
|
- <div class="text-nowrap">@DataSet.AllTracks.Where(p=>arr.Contains(p.Path)).Sum(p=>p.Tag?.Duration??0).SecondToDur()</div>
|
|
|
|
- <div class="text-nowrap text-muted">@DataSet.AllTracks.Where(p=>arr.Contains(p.Path)).Sum(p=>p.Tag?.Length??0).BytesToFileSize()</div>
|
|
|
|
|
|
+ <td class="text-left w-100 align-middle" @onclick="()=>{IsExpand=!IsExpand;}" colspan="1">
|
|
|
|
+ <div class="text-nowrap">@Playlist.Value.Value</div>
|
|
|
|
+ <div class="text-nowrap text-muted">
|
|
|
|
+ (@arr.Count)
|
|
|
|
+ @arr.Sum(p=>DataSet.AllTracks.Where(q=>q.Path==p).Select(q=>q.Tag?.Duration??0).FirstOrDefault()).SecondToDur()
|
|
|
|
+ @arr.Sum(p=>DataSet.AllTracks.Where(q=>q.Path==p).Select(q=>q.Tag?.Length??0).FirstOrDefault()).BytesToFileSize()
|
|
|
|
+ </div>
|
|
</td>
|
|
</td>
|
|
<td>
|
|
<td>
|
|
<button type="button" class="btn btn-primary p-2" @onclick="()=>DownloadPlaylist(Playlist.Value.Key)">
|
|
<button type="button" class="btn btn-primary p-2" @onclick="()=>DownloadPlaylist(Playlist.Value.Key)">
|
|
@@ -42,7 +43,6 @@
|
|
<i class="bi bi-pencil-square"></i>
|
|
<i class="bi bi-pencil-square"></i>
|
|
</button>
|
|
</button>
|
|
</td>
|
|
</td>
|
|
- <td class="align-middle text-center">(@arr.Count)</td>
|
|
|
|
<td class="align-middle text-nowrap">
|
|
<td class="align-middle text-nowrap">
|
|
<button type="button" class="btn btn-primary p-2" @onclick="()=>DeletePlaylist.InvokeAsync(Playlist.Value.Key)">
|
|
<button type="button" class="btn btn-primary p-2" @onclick="()=>DeletePlaylist.InvokeAsync(Playlist.Value.Key)">
|
|
<i class="bi bi-trash"></i>
|
|
<i class="bi bi-trash"></i>
|
|
@@ -60,27 +60,23 @@
|
|
if (track != null)
|
|
if (track != null)
|
|
{
|
|
{
|
|
<tr>
|
|
<tr>
|
|
- <td></td>
|
|
|
|
<td><img src="@track.Disc.CoverPath" style="height:50px" /></td>
|
|
<td><img src="@track.Disc.CoverPath" style="height:50px" /></td>
|
|
- <td class="align-middle w-100 ">
|
|
|
|
|
|
+ <td class="align-middle w-100">
|
|
<div class="text-nowrap">
|
|
<div class="text-nowrap">
|
|
<FileIcon FileName="@track.Name"></FileIcon>
|
|
<FileIcon FileName="@track.Name"></FileIcon>
|
|
@((track.Tag?.Title).NullOrEmptyEscape(track.Name))
|
|
@((track.Tag?.Title).NullOrEmptyEscape(track.Name))
|
|
</div>
|
|
</div>
|
|
<div class="text-nowrap text-muted"> @track.Tag?.Artist</div>
|
|
<div class="text-nowrap text-muted"> @track.Tag?.Artist</div>
|
|
</td>
|
|
</td>
|
|
- <td>
|
|
|
|
|
|
+ <td class="text-center" colspan="2">
|
|
<div class="text-nowrap">@track.Tag?.Duration.SecondToDur()</div>
|
|
<div class="text-nowrap">@track.Tag?.Duration.SecondToDur()</div>
|
|
<div class="text-nowrap text-muted"> @track.Tag?.Length.BytesToFileSize()</div>
|
|
<div class="text-nowrap text-muted"> @track.Tag?.Length.BytesToFileSize()</div>
|
|
</td>
|
|
</td>
|
|
- <td></td>
|
|
|
|
<td>
|
|
<td>
|
|
<button type="button" class="btn btn-primary p-2" @onclick="()=>Remove(Playlist.Value.Key, item.index,item.item)">
|
|
<button type="button" class="btn btn-primary p-2" @onclick="()=>Remove(Playlist.Value.Key, item.index,item.item)">
|
|
- <i class="bi bi-trash"></i>
|
|
|
|
|
|
+ <i class="bi bi-folder-minus"></i>
|
|
</button>
|
|
</button>
|
|
</td>
|
|
</td>
|
|
- <td></td>
|
|
|
|
- <td></td>
|
|
|
|
</tr>
|
|
</tr>
|
|
}
|
|
}
|
|
else
|
|
else
|