Implemented user-customizable, persistent grid and band layouts for CatalogsGrid and MassDataGrid. Added backend API, database entity, and repository for storing layouts per user. Refactored grids to support dynamic band/column rendering, layout management UI, and per-user storage via localStorage and the new API. Registered all necessary services and updated data context. Enables flexible, user-specific grid experiences with saved layouts.
25 lines
914 B
C#
25 lines
914 B
C#
/* Initialisiert die Blazor WebAssembly-Anwendung.
|
|
Registriert Root-Komponenten
|
|
Konfiguriert Abhängigkeiten */
|
|
|
|
using Microsoft.AspNetCore.Components.Web;
|
|
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
|
using DbFirst.BlazorWasm;
|
|
using DbFirst.BlazorWasm.Services;
|
|
using DevExpress.Blazor;
|
|
|
|
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
|
builder.RootComponents.Add<App>("#app");
|
|
builder.RootComponents.Add<HeadOutlet>("head::after");
|
|
|
|
builder.Services.AddDevExpressBlazor();
|
|
|
|
var apiBaseUrl = builder.Configuration["ApiBaseUrl"] ?? builder.HostEnvironment.BaseAddress;
|
|
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(apiBaseUrl) });
|
|
builder.Services.AddScoped<CatalogApiClient>();
|
|
builder.Services.AddScoped<DashboardApiClient>();
|
|
builder.Services.AddScoped<MassDataApiClient>();
|
|
builder.Services.AddScoped<LayoutApiClient>();
|
|
|
|
await builder.Build().RunAsync();
|