[ADD] Simple views for accounts and channels
This commit is contained in:
48
Manager.App/Components/Pages/Accounts.razor
Normal file
48
Manager.App/Components/Pages/Accounts.razor
Normal file
@@ -0,0 +1,48 @@
|
||||
@page "/Accounts"
|
||||
@using Manager.App.Models.Settings
|
||||
@using Manager.App.Services.System
|
||||
@using Microsoft.Extensions.Options
|
||||
|
||||
@inject ILibraryService LibraryService
|
||||
@inject IDialogService DialogService
|
||||
@inject IOptions<LibrarySettings> LibraryOptions
|
||||
@inject ClientService ClientService
|
||||
@inject ISnackbar Snackbar
|
||||
|
||||
<PageTitle>Accounts</PageTitle>
|
||||
|
||||
<MudStack Spacing="2">
|
||||
<MudPaper Elevation="0" Outlined>
|
||||
<MudStack Row Class="ma-2">
|
||||
<MudButton IconSize="Size.Small" StartIcon="@Icons.Material.Filled.Add" Variant="Variant.Outlined" OnClick="OnAddAccountDialogAsync">Add account</MudButton>
|
||||
</MudStack>
|
||||
</MudPaper>
|
||||
|
||||
<MudTable @ref="@_table" ServerData="ServerReload">
|
||||
<ToolBarContent>
|
||||
<MudText Typo="Typo.h6">Accounts</MudText>
|
||||
<MudSpacer />
|
||||
<MudTextField T="string" ValueChanged="@(s=>OnSearch(s))" Placeholder="Search" Adornment="Adornment.Start" DebounceInterval="300"
|
||||
AdornmentIcon="@Icons.Material.Filled.Search" IconSize="Size.Medium" Class="mt-0"></MudTextField>
|
||||
</ToolBarContent>
|
||||
<HeaderContent>
|
||||
<MudTh>Name</MudTh>
|
||||
<MudTh>Handle</MudTh>
|
||||
<MudTh>ID</MudTh>
|
||||
</HeaderContent>
|
||||
<RowTemplate>
|
||||
<MudTd>@context.Channel?.Name</MudTd>
|
||||
<MudTd>@context.Channel?.Handle</MudTd>
|
||||
<MudTd>@context.Id</MudTd>
|
||||
</RowTemplate>
|
||||
<NoRecordsContent>
|
||||
<MudText>No channels found</MudText>
|
||||
</NoRecordsContent>
|
||||
<LoadingContent>
|
||||
<MudText>Loading...</MudText>
|
||||
</LoadingContent>
|
||||
<PagerContent>
|
||||
<MudTablePager/>
|
||||
</PagerContent>
|
||||
</MudTable>
|
||||
</MudStack>
|
||||
Reference in New Issue
Block a user