Skip to content

Commit

Permalink
removing unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Feb 26, 2024
1 parent 39e1fe4 commit 819338d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/Pilgaard.Blog/Pilgaard.Blog.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
<PackageReference Include="Markdig" Version="0.35.0" />
<PackageReference Include="Microsoft.IO.RecyclableMemoryStream" Version="3.0.0" />
<PackageReference Include="Microsoft.SyndicationFeed.ReaderWriter" Version="1.0.2" />
<PackageReference Include="Microsoft.Azure.SignalR" Version="1.24.0" />
<PackageReference Include="MudBlazor" Version="6.16.0" />
</ItemGroup>

Expand Down
10 changes: 2 additions & 8 deletions src/Pilgaard.Blog/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using Microsoft.Azure.SignalR;
using MudBlazor.Services;
using Pilgaard.Blog;
using Pilgaard.Blog.Features.Feed;
Expand All @@ -7,14 +6,10 @@
var builder = WebApplication.CreateBuilder(args);

builder.Services.AddMudServices();
builder.Services.AddSignalR().AddAzureSignalR(options =>
options.ServerStickyMode = ServerStickyMode.Required);

builder.Services.AddScoped<ThemeProvider>();

builder.Services.AddRazorPages();
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
builder.Services.AddRazorComponents();

var app = builder.Build();

Expand All @@ -32,8 +27,7 @@

app.UseAntiforgery();

app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
app.MapRazorComponents<App>();

app.MapRssFeed();

Expand Down
2 changes: 1 addition & 1 deletion src/Pilgaard.Blog/Routes.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Router AppAssembly="@typeof(App).Assembly">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
<FocusOnNavigate RouteData="@routeData" Selector="h1" />
</Found>
<NotFound>
Expand Down

0 comments on commit 819338d

Please sign in to comment.