2022-01-11 03:00:54 +00:00
|
|
|
@namespace Wabbajack.App.Blazor.Components
|
2022-01-11 15:05:48 +00:00
|
|
|
@using Wabbajack.App.Blazor.Store
|
2022-01-11 16:26:47 +00:00
|
|
|
@using Wabbajack.RateLimiter
|
2022-01-11 15:05:48 +00:00
|
|
|
@inherits Fluxor.Blazor.Web.Components.FluxorComponent
|
2022-01-11 03:00:54 +00:00
|
|
|
|
|
|
|
<div class="item">
|
|
|
|
<div class="display">
|
2022-01-12 08:45:30 +00:00
|
|
|
<img src="@Metadata.Links.ImageUri" loading="lazy" class="image" alt="@Metadata.Title Image">
|
2022-01-11 03:00:54 +00:00
|
|
|
<div class="interaction">
|
2022-01-11 16:26:47 +00:00
|
|
|
@if (_downloadState.Value.CurrentDownloadState == DownloadState.DownloadStateEnum.Downloading)
|
2022-01-11 15:05:48 +00:00
|
|
|
{
|
|
|
|
<img src="images/icons/install.svg" class="install hidden" alt="Install">
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
<img src="images/icons/install.svg" class="install" alt="Install" @onclick="Download">
|
|
|
|
}
|
2022-01-11 03:00:54 +00:00
|
|
|
<img src="images/icons/info.svg" class="more" alt="Information">
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-01-11 16:26:47 +00:00
|
|
|
@if (DownloadProgress != Percent.Zero)
|
2022-01-11 03:00:54 +00:00
|
|
|
{
|
2022-01-11 16:26:47 +00:00
|
|
|
<ProgressBar Percentage=@DownloadProgress></ProgressBar>
|
2022-01-11 03:00:54 +00:00
|
|
|
}
|
2022-01-09 13:33:22 +00:00
|
|
|
<div class="info">
|
2022-01-11 03:00:54 +00:00
|
|
|
<div class="title">@Metadata.Title</div>
|
|
|
|
<div class="author">@Metadata.Author</div>
|
|
|
|
<div class="description">@Metadata.Description</div>
|
2022-01-09 13:33:22 +00:00
|
|
|
</div>
|
2022-01-11 03:00:54 +00:00
|
|
|
<div class="tags"></div>
|
2022-01-17 16:46:54 +00:00
|
|
|
</div>
|