@page "/articles/sources"
@using Newsbot.Collector.Client
@using Newsbot.Collector.Client.Domain.Dto
Select Source
Source |
Name |
Type |
@foreach (var item in Items ??= new List())
{
@item.Source |
@item.Name
|
@item.Type |
}
@code {
private List? Items { get; set; }
protected override async Task OnInitializedAsync()
{
var c = new SourcesClient(Global.HttpClient, Global.DefaultInstanceUri ?? "");
Items = await c.ListAsync();
}
}