mirror of
https://github.com/lantean-code/qbtmud.git
synced 2025-10-23 04:52:22 +00:00
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using Lantean.QBitTorrentClient;
|
|
using Lantean.QBTMud.Models;
|
|
using Microsoft.AspNetCore.Components;
|
|
using MudBlazor;
|
|
|
|
namespace Lantean.QBTMud.Pages
|
|
{
|
|
public partial class Statistics
|
|
{
|
|
[Inject]
|
|
protected IApiClient ApiClient { get; set; } = default!;
|
|
|
|
[Inject]
|
|
protected IDialogService DialogService { get; set; } = default!;
|
|
|
|
[Inject]
|
|
protected NavigationManager NavigationManager { get; set; } = default!;
|
|
|
|
[CascadingParameter]
|
|
public MainData? MainData { get; set; }
|
|
|
|
[CascadingParameter(Name = "DrawerOpen")]
|
|
public bool DrawerOpen { get; set; }
|
|
|
|
[CascadingParameter(Name = "RefreshInterval")]
|
|
public int RefreshInterval { get; set; }
|
|
|
|
[Parameter]
|
|
public string? Hash { get; set; }
|
|
|
|
protected int ActiveTab { get; set; } = 0;
|
|
|
|
protected ServerState? ServerState => MainData?.ServerState;
|
|
|
|
protected void NavigateBack()
|
|
{
|
|
NavigationManager.NavigateTo("/");
|
|
}
|
|
}
|
|
} |