mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2025-01-18 21:04:21 +01:00
Reworking the feed fetching
This commit is contained in:
parent
cfd955187b
commit
b6867d2ece
|
@ -5,14 +5,14 @@
|
||||||
@using WebSharpRSS.Models;
|
@using WebSharpRSS.Models;
|
||||||
@using ToolQit.Extensions;
|
@using ToolQit.Extensions;
|
||||||
|
|
||||||
|
@inject NavigationManager _navManager;
|
||||||
@inject RssService _rssService
|
@inject RssService _rssService
|
||||||
|
|
||||||
<MudStack Spacing="2">
|
<MudStack Spacing="2">
|
||||||
<MudNavMenu>
|
@*<MudNavMenu>
|
||||||
<MudNavLink Href="/" Icon="@Icons.Material.Filled.Home">Home</MudNavLink>
|
<MudNavLink Href="/" Icon="@Icons.Material.Filled.Home">Home</MudNavLink>
|
||||||
</MudNavMenu>
|
</MudNavMenu>
|
||||||
<MudDivider DividerType="DividerType.FullWidth"/>
|
<MudDivider DividerType="DividerType.FullWidth"/>*@
|
||||||
<MudText Typo="Typo.h5" Class="ml-5">Feeds</MudText>
|
|
||||||
<MudTreeView Items="Categories" @bind-SelectedValue="SelectedItem" @bind-ActivatedItem="ActivatedItem" Hover="true">
|
<MudTreeView Items="Categories" @bind-SelectedValue="SelectedItem" @bind-ActivatedItem="ActivatedItem" Hover="true">
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<MudTreeViewItem @bind-Expanded="@context.IsExpanded" Items="@context.Feeds">
|
<MudTreeViewItem @bind-Expanded="@context.IsExpanded" Items="@context.Feeds">
|
||||||
|
@ -50,7 +50,7 @@
|
||||||
|
|
||||||
HashSet<CategoryModel> cats = await _rssService.GetCategories();
|
HashSet<CategoryModel> cats = await _rssService.GetCategories();
|
||||||
await Task.Run(() => Categories.UnionWith(cats.Select(x => new TreeItemData(x)).ToHashSet()));
|
await Task.Run(() => Categories.UnionWith(cats.Select(x => new TreeItemData(x)).ToHashSet()));
|
||||||
|
|
||||||
Log.Verbose(" Guide initialized!");
|
Log.Verbose(" Guide initialized!");
|
||||||
//await Task.Run(() => Categories = cats.Select(x => new TreeItemData(x)).ToHashSet());
|
//await Task.Run(() => Categories = cats.Select(x => new TreeItemData(x)).ToHashSet());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user