mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-08 16:09:40 +00:00
Integration of MudBlazor
This commit is contained in:
11 files changed
+69
-77
No files matched your search
@@ -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();
|
||||
|
||||
|
||||
Reference in new issue
Block a user