logger)
+ {
+ _logger = logger;
+ }
+
+ public void OnGet()
+ {
+ RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
+ }
}
}
\ No newline at end of file
diff --git a/SharpRSS.Blazor/Pages/FetchData.razor b/SharpRSS.Blazor/Pages/FetchData.razor
deleted file mode 100644
index aa89775..0000000
--- a/SharpRSS.Blazor/Pages/FetchData.razor
+++ /dev/null
@@ -1,50 +0,0 @@
-@page "/fetchdata"
-@using SharpRSS.Blazor.Data
-@inject WeatherForecastService ForecastService
-
-Weather forecast
-
-Weather forecast
-
-This component demonstrates fetching data from a service.
-
-@if (forecasts == null)
-{
-
- Loading...
-
-}
-else
-{
-
-
-
- Date |
- Temp. (C) |
- Temp. (F) |
- Summary |
-
-
-
- @foreach (var forecast in forecasts)
- {
-
- @forecast.Date.ToShortDateString() |
- @forecast.TemperatureC |
- @forecast.TemperatureF |
- @forecast.Summary |
-
- }
-
-
-}
-
-@code {
- private WeatherForecast[]? forecasts;
-
- protected override async Task OnInitializedAsync()
- {
- forecasts = await ForecastService.GetForecastAsync(DateOnly.FromDateTime(DateTime.Now));
- }
-
-}
\ No newline at end of file
diff --git a/SharpRSS.Blazor/Program.cs b/SharpRSS.Blazor/Program.cs
index fc9943e..40fda78 100644
--- a/SharpRSS.Blazor/Program.cs
+++ b/SharpRSS.Blazor/Program.cs
@@ -4,7 +4,6 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using MudBlazor.Services;
-using SharpRSS.Blazor.Data;
using Serilog;
using Serilog.Formatting.Compact;
using ToolQit;
@@ -17,7 +16,6 @@ builder.Logging.AddSerilog();
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddMudServices();
-builder.Services.AddSingleton();
var app = builder.Build();
diff --git a/SharpRSS.Blazor/Shared/MainLayout.razor b/SharpRSS.Blazor/Shared/MainLayout.razor
index 4948a0c..3925542 100644
--- a/SharpRSS.Blazor/Shared/MainLayout.razor
+++ b/SharpRSS.Blazor/Shared/MainLayout.razor
@@ -1,24 +1,32 @@
@inherits LayoutComponentBase
-
+
SharpRSS.Blazor
-
-
+
+
+
+ SharpRSS
+
+
+
+
+ Home
+
+
+ @Body
+
+
-
-
+@code
+{
+ readonly MudTheme _theme = new MudTheme();
+ bool _drawerOpen = true;
+ bool _isDarkTheme = true;
-
- @Body
-
-
-
\ No newline at end of file
+ void ToggleDrawer() => _drawerOpen = !_drawerOpen;
+}
diff --git a/SharpRSS.Blazor/SharpRSS.Blazor.csproj b/SharpRSS.Blazor/SharpRSS.Blazor.csproj
index 7699707..6b88525 100644
--- a/SharpRSS.Blazor/SharpRSS.Blazor.csproj
+++ b/SharpRSS.Blazor/SharpRSS.Blazor.csproj
@@ -21,4 +21,8 @@
+
+
+
+