diff --git a/Newsbot.Portal.Blazor.Server/Pages/Articles/Newest.razor b/Newsbot.Portal.Blazor.Server/Pages/Articles/Latest.razor
similarity index 76%
rename from Newsbot.Portal.Blazor.Server/Pages/Articles/Newest.razor
rename to Newsbot.Portal.Blazor.Server/Pages/Articles/Latest.razor
index 9dc1b50..9be58cc 100644
--- a/Newsbot.Portal.Blazor.Server/Pages/Articles/Newest.razor
+++ b/Newsbot.Portal.Blazor.Server/Pages/Articles/Latest.razor
@@ -1,7 +1,9 @@
-@page "/articles/newest"
+@page "/articles/latest"
@using Newsbot.Collector.Client
@using Newsbot.Collector.Client.Domain.Dto
-
List Articles
+
+Latest
+Latest Posts
@@ -11,7 +13,10 @@
-
@item.Title
+
+
@item.PubDate
@item.Description
View
diff --git a/Newsbot.Portal.Blazor.Server/Pages/Articles/ListBySource.razor b/Newsbot.Portal.Blazor.Server/Pages/Articles/ListBySource.razor
index b64eaed..a97de87 100644
--- a/Newsbot.Portal.Blazor.Server/Pages/Articles/ListBySource.razor
+++ b/Newsbot.Portal.Blazor.Server/Pages/Articles/ListBySource.razor
@@ -2,32 +2,42 @@
@using Newsbot.Collector.Client.Domain.Dto
@using Newsbot.Collector.Client
-
ListBySource
+
@Record?.Name
+
@Record?.Name
-
-
- Title |
- Publish Date |
-
+
+
@foreach (var item in Data ??= new List
())
{
-
-
- @item.Title
- |
- @item.PubDate |
-
+
+
+
+
+
+
@item.PubDate
+
@item.Description
+
View
+
+
+
}
-
+
+
@code {
[Parameter]
public string? Id { get; set; }
List
? Data { get; set; }
+ SourcesDto? Record { get; set; }
protected override async Task OnInitializedAsync()
{
+ var s = new SourcesClient(Global.HttpClient, Global.DefaultInstanceUri ?? "");
+ Record = await s.GetAsync(Guid.Parse(Id ?? ""));
+
var c = new ArticlesClient(Global.HttpClient, Global.DefaultInstanceUri ?? "");
var items = await c.ListBySourceAsync(Guid.Parse(Id ?? ""));
Data = items;
diff --git a/Newsbot.Portal.Blazor.Server/Pages/Articles/Sources.razor b/Newsbot.Portal.Blazor.Server/Pages/Articles/Sources.razor
deleted file mode 100644
index 2d73d3b..0000000
--- a/Newsbot.Portal.Blazor.Server/Pages/Articles/Sources.razor
+++ /dev/null
@@ -1,33 +0,0 @@
-@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();
-
- }
-}
\ No newline at end of file