Files
YouTube-Manager/Manager.App/Components/Pages/Library.razor

52 lines
1.8 KiB
Plaintext

@page "/Library"
@inject ISnackbar Snackbar
@inject ILibraryService LibraryService
<PageTitle>Library information</PageTitle>
<ForcedLoadingOverlay Visible="_loading" CancellationTokenSource="@_cancellationTokenSource"/>
@if (_libraryInformation != null)
{
<MudSimpleTable Bordered Dense Elevation="0" Outlined Square Hover>
<tbody>
<tr>
<td>Library path:</td>
<td>@_libraryInformation.LibraryPath</td>
</tr>
<tr>
<td>Created at (UTC):</td>
<td>@_libraryInformation.CreatedAtUtc</td>
</tr>
<tr>
<td>Last modified (UTC):</td>
<td>@_libraryInformation.LastModifiedUtc</td>
</tr>
<tr>
<td>Library size:</td>
<td>@($"{Suffix.BytesToSizeSuffix(_libraryInformation.TotalSizeBytes)} ({_libraryInformation.TotalSizeBytes} bytes)")</td>
</tr>
<tr>
<td>Drive total size:</td>
<td>@($"{Suffix.BytesToSizeSuffix(_libraryInformation.DriveTotalSpaceBytes)} ({_libraryInformation.DriveTotalSpaceBytes} bytes)")</td>
</tr>
<tr>
<td>Drive used space:</td>
<td>@($"{Suffix.BytesToSizeSuffix(_libraryInformation.DriveUsedSpaceBytes)} ({_libraryInformation.DriveUsedSpaceBytes} bytes)")</td>
</tr>
<tr>
<td>Drive free space available:</td>
<td>@($"{Suffix.BytesToSizeSuffix(_libraryInformation.DriveFreeSpaceBytes)} ({_libraryInformation.DriveFreeSpaceBytes} bytes)")</td>
</tr>
<tr>
<td>Total media:</td>
<td>@_libraryInformation.TotalMedia</td>
</tr>
<tr>
<td>Total channels:</td>
<td>@_libraryInformation.TotalChannels</td>
</tr>
</tbody>
</MudSimpleTable>
}