From 12388b2c535301d2ec053288cdd4e4557f21b203 Mon Sep 17 00:00:00 2001 From: iTob Date: Mon, 9 Sep 2024 21:54:51 +0200 Subject: [PATCH] show last update --- RBLNews.Maui/MauiProgram.cs | 6 +- .../Components/Layout/MainLayout.razor | 8 +-- .../Components/Layout/NavMenu.razor | 24 ++++++-- RBLNews.Shared/Components/Pages/Feeds.razor | 55 ++++++++++++------- RBLNews.Shared/Models/FeedGroupVM.cs | 8 ++- RBLNews.Shared/Models/RssVM.cs | 10 ++-- RBLNews.Shared/Services/FeedDataService.cs | 30 ++++++++++ RBLNews.Shared/wwwroot/css/app.css | 7 ++- RBLNews.Web/Program.cs | 3 + 9 files changed, 113 insertions(+), 38 deletions(-) create mode 100644 RBLNews.Shared/Services/FeedDataService.cs diff --git a/RBLNews.Maui/MauiProgram.cs b/RBLNews.Maui/MauiProgram.cs index 0656f53..ad070f6 100644 --- a/RBLNews.Maui/MauiProgram.cs +++ b/RBLNews.Maui/MauiProgram.cs @@ -1,4 +1,6 @@ -using Microsoft.Extensions.Logging; +using Microsoft.Extensions.DependencyInjection.Extensions; +using Microsoft.Extensions.Logging; +using RBLNews.Shared.Services; namespace RBLNews.Maui { @@ -17,6 +19,8 @@ namespace RBLNews.Maui builder.Services.AddMauiBlazorWebView(); builder.Services.AddBlazorBootstrap(); + builder.Services.AddSingleton(); + #if DEBUG builder.Services.AddBlazorWebViewDeveloperTools(); builder.Logging.AddDebug(); diff --git a/RBLNews.Shared/Components/Layout/MainLayout.razor b/RBLNews.Shared/Components/Layout/MainLayout.razor index 077613b..f5f946b 100644 --- a/RBLNews.Shared/Components/Layout/MainLayout.razor +++ b/RBLNews.Shared/Components/Layout/MainLayout.razor @@ -1,17 +1,15 @@ @inherits LayoutComponentBase -
- - @*