mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2024-11-13 00:54:20 +01:00
45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
@using WebSharpRSS.Models
|
|
@using MudBlazor.Utilities
|
|
@using CodeHollow.FeedReader
|
|
@using Serilog
|
|
|
|
@inject RssService _rssService
|
|
|
|
<MudStack Spacing="2">
|
|
<MudNavMenu>
|
|
<MudNavLink Href="/" Icon="@Icons.Material.Filled.Home">Home</MudNavLink>
|
|
</MudNavMenu>
|
|
<CategoryGuide Categories="Categories" CatItemClicked="CategoryClicked" FeedItemClicked="FeedClicked"/>
|
|
</MudStack>
|
|
|
|
@code {
|
|
public HashSet<CategoryGuideItem> Categories = new HashSet<CategoryGuideItem>();
|
|
protected override void OnInitialized()
|
|
{
|
|
Log.Verbose("Setting up test data");
|
|
Categories.Add(new CategoryGuideItem() { CategoryTitle = "Social", CategoryIcon = Icons.Material.Filled.People });
|
|
Categories.Add(new CategoryGuideItem() { CategoryTitle = "Blogs", CategoryIcon = Icons.Material.Filled.RssFeed, CategoryHexColor = Colors.Green.Accent1 });
|
|
Categories.Add(new CategoryGuideItem() { CategoryTitle = "Tech", CategoryIcon = Icons.Material.Filled.Computer, CategoryHexColor = Colors.Brown.Lighten1 });
|
|
Categories.Add(new CategoryGuideItem() { CategoryTitle = "News", CategoryIcon = Icons.Material.Filled.Newspaper, CategoryHexColor = Colors.Red.Accent1 });
|
|
}
|
|
|
|
private void Callback(MudListItem obj)
|
|
{
|
|
switch (obj.Value)
|
|
{
|
|
case CategoryGuideItem catTreeItem:
|
|
break;
|
|
case Feed feed:
|
|
break;
|
|
}
|
|
}
|
|
|
|
private void CategoryClicked(CategoryGuideItem catItem)
|
|
{
|
|
}
|
|
|
|
private void FeedClicked(FeedGuideItem feedItem)
|
|
{
|
|
}
|
|
|
|
} |