Implemented a basic way to queue games using DownloadService. Games will download and extract without blocking UI, but more needs to be done to reflect the game in UI and database.
22 lines
No EOL
594 B
Text
22 lines
No EOL
594 B
Text
@inject IJSRuntime JS
|
|
|
|
<CascadingValue Value="this" IsFixed="@true">
|
|
<div id="split-pane-@(PaneId.ToString())" class="split-pane @Class">
|
|
@ChildContent
|
|
</div>
|
|
</CascadingValue>
|
|
|
|
@code {
|
|
[Parameter] public RenderFragment ChildContent { get; set; }
|
|
[Parameter] public string Class { get; set; } = "";
|
|
|
|
private IList<Pane> Panes = new List<Pane>();
|
|
|
|
private Guid PaneId = Guid.NewGuid();
|
|
|
|
protected override async Task OnAfterRenderAsync(bool firstRender)
|
|
{
|
|
if (firstRender)
|
|
await JS.InvokeVoidAsync("SplitPane.Init", PaneId);
|
|
}
|
|
} |