Integration of MudBlazor

This commit is contained in:
tsommer committed 2024-04-05 16:16:33 +02:00
1 parent 668c85dac8
commit 5b54cd60a0
11 files changed
+69 -77

No files matched your search

+14 -15
View File
@@ -1,26 +1,25 @@
using MindWork_AI_Studio.Components;
using MudBlazor;
using MudBlazor.Services;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
.AddInteractiveServerComponents()
.AddHubOptions(x =>
{
x.MaximumReceiveMessageSize = null;
});
builder.WebHost.UseKestrel();
builder.WebHost.UseWebRoot("wwwroot");
builder.WebHost.UseStaticWebAssets();
builder.WebHost.UseUrls("http://localhost:5000");
builder.Services.AddMudServices();
builder.Services.AddMudMarkdownServices();
var app = builder.Build();
// Configure the HTTP request pipeline.
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error", createScopeForErrors: true);
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseAntiforgery();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();