新增了UI节点

This commit is contained in:
fengjiayi
2025-03-14 16:04:06 +08:00
parent 8f8644f595
commit ef11edf7f1
45 changed files with 1032 additions and 41 deletions

View File

@@ -0,0 +1,39 @@
using Serein.CloudWorkbench.Components;
using Serein.CloudWorkbench.Services;
namespace Serein.CloudWorkbench
{
public class Program
{
public static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorComponents()
.AddInteractiveServerComponents();
// ×¢²á CounterService ×÷Ϊµ¥Àý
builder.Services.AddSingleton<CounterService>();
var app = builder.Build();
if (!app.Environment.IsDevelopment())
{
app.UseExceptionHandler("/Error");
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseAntiforgery();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
app.Run();
}
}
}