From 53a0f22f2e21c4d924b3f0628b56d4cc839c3bfe Mon Sep 17 00:00:00 2001 From: Oscar Veldman Date: Mon, 1 Apr 2024 15:31:36 +0200 Subject: [PATCH] Add Radzen --- sources/Clients.Admin.Web/Clients.Admin.Web.csproj | 1 + sources/Clients.Admin.Web/Layout/MainLayout.razor | 1 + sources/Clients.Admin.Web/Program.cs | 3 +++ sources/Clients.Admin.Web/_Imports.razor | 7 ++++++- sources/Clients.Admin.Web/wwwroot/index.html | 2 ++ .../Clients.Identity.Blazor.Shared.csproj | 1 + sources/Clients.Identity.Blazor.Shared/_Imports.razor | 5 ++++- 7 files changed, 18 insertions(+), 2 deletions(-) diff --git a/sources/Clients.Admin.Web/Clients.Admin.Web.csproj b/sources/Clients.Admin.Web/Clients.Admin.Web.csproj index 2bb1d05..ecaffb6 100644 --- a/sources/Clients.Admin.Web/Clients.Admin.Web.csproj +++ b/sources/Clients.Admin.Web/Clients.Admin.Web.csproj @@ -8,6 +8,7 @@ + diff --git a/sources/Clients.Admin.Web/Layout/MainLayout.razor b/sources/Clients.Admin.Web/Layout/MainLayout.razor index 62041c1..0fcaba5 100644 --- a/sources/Clients.Admin.Web/Layout/MainLayout.razor +++ b/sources/Clients.Admin.Web/Layout/MainLayout.razor @@ -6,6 +6,7 @@
+ Login diff --git a/sources/Clients.Admin.Web/Program.cs b/sources/Clients.Admin.Web/Program.cs index 2262d8a..4c9cdca 100644 --- a/sources/Clients.Admin.Web/Program.cs +++ b/sources/Clients.Admin.Web/Program.cs @@ -2,11 +2,14 @@ using Microsoft.AspNetCore.Components.WebAssembly.Hosting; using MadWorldNL.Clients.Admin.Web; using MadWorldNL.Clients.Identity.Blazor.Shared.Extensions; +using Radzen; var builder = WebAssemblyHostBuilder.CreateDefault(args); builder.RootComponents.Add("#app"); builder.RootComponents.Add("head::after"); +builder.Services.AddRadzenComponents(); + builder.AddIdentity(); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); diff --git a/sources/Clients.Admin.Web/_Imports.razor b/sources/Clients.Admin.Web/_Imports.razor index 3b23c4a..213766d 100644 --- a/sources/Clients.Admin.Web/_Imports.razor +++ b/sources/Clients.Admin.Web/_Imports.razor @@ -6,5 +6,10 @@ @using Microsoft.AspNetCore.Components.Web.Virtualization @using Microsoft.AspNetCore.Components.WebAssembly.Http @using Microsoft.JSInterop + +@using Radzen +@using Radzen.Blazor + @using Clients.Admin.Web -@using Clients.Admin.Web.Layout \ No newline at end of file +@using Clients.Admin.Web.Layout + diff --git a/sources/Clients.Admin.Web/wwwroot/index.html b/sources/Clients.Admin.Web/wwwroot/index.html index 8060007..2c67f91 100644 --- a/sources/Clients.Admin.Web/wwwroot/index.html +++ b/sources/Clients.Admin.Web/wwwroot/index.html @@ -10,6 +10,7 @@ + @@ -27,6 +28,7 @@ 🗙
+ diff --git a/sources/Clients.Identity.Blazor.Shared/Clients.Identity.Blazor.Shared.csproj b/sources/Clients.Identity.Blazor.Shared/Clients.Identity.Blazor.Shared.csproj index a38bc9a..c9237eb 100644 --- a/sources/Clients.Identity.Blazor.Shared/Clients.Identity.Blazor.Shared.csproj +++ b/sources/Clients.Identity.Blazor.Shared/Clients.Identity.Blazor.Shared.csproj @@ -13,6 +13,7 @@ + diff --git a/sources/Clients.Identity.Blazor.Shared/_Imports.razor b/sources/Clients.Identity.Blazor.Shared/_Imports.razor index c3615ef..95e27d7 100644 --- a/sources/Clients.Identity.Blazor.Shared/_Imports.razor +++ b/sources/Clients.Identity.Blazor.Shared/_Imports.razor @@ -1 +1,4 @@ -@using Microsoft.AspNetCore.Components.Web \ No newline at end of file +@using Microsoft.AspNetCore.Components.Web + +@using Radzen +@using Radzen.Blazor \ No newline at end of file