From f1cd3d9a6c0e40d96f1c064eb870aa6260f7c876 Mon Sep 17 00:00:00 2001 From: ktutak1337 Date: Sat, 9 Mar 2024 07:31:01 +0100 Subject: [PATCH] Setup(UI::MudBlazor): Integrate MudBlazor into the project --- src/Client/StellarChat.Client.Web/Layout/MainLayout.razor | 4 ++++ src/Client/StellarChat.Client.Web/Pages/Home.razor | 6 ++++++ src/Client/StellarChat.Client.Web/Program.cs | 2 ++ .../StellarChat.Client.Web/StellarChat.Client.Web.csproj | 1 + src/Client/StellarChat.Client.Web/_Imports.razor | 1 + src/Client/StellarChat.Client.Web/wwwroot/index.html | 3 +++ 6 files changed, 17 insertions(+) diff --git a/src/Client/StellarChat.Client.Web/Layout/MainLayout.razor b/src/Client/StellarChat.Client.Web/Layout/MainLayout.razor index b378b5f..ccba949 100644 --- a/src/Client/StellarChat.Client.Web/Layout/MainLayout.razor +++ b/src/Client/StellarChat.Client.Web/Layout/MainLayout.razor @@ -1,3 +1,7 @@ @inherits LayoutComponentBase + + + + @Body diff --git a/src/Client/StellarChat.Client.Web/Pages/Home.razor b/src/Client/StellarChat.Client.Web/Pages/Home.razor index df05023..f452af6 100644 --- a/src/Client/StellarChat.Client.Web/Pages/Home.razor +++ b/src/Client/StellarChat.Client.Web/Pages/Home.razor @@ -5,3 +5,9 @@

Hello, world!

Welcome to your new app. + + + +@code { + public string TextValue { get; set; } = string.Empty; +} diff --git a/src/Client/StellarChat.Client.Web/Program.cs b/src/Client/StellarChat.Client.Web/Program.cs index 8b1b6d3..0545558 100644 --- a/src/Client/StellarChat.Client.Web/Program.cs +++ b/src/Client/StellarChat.Client.Web/Program.cs @@ -1,5 +1,6 @@ using Microsoft.AspNetCore.Components.Web; using Microsoft.AspNetCore.Components.WebAssembly.Hosting; +using MudBlazor.Services; using StellarChat.Client.Web; var builder = WebAssemblyHostBuilder.CreateDefault(args); @@ -7,5 +8,6 @@ builder.RootComponents.Add("head::after"); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) }); +builder.Services.AddMudServices(); await builder.Build().RunAsync(); diff --git a/src/Client/StellarChat.Client.Web/StellarChat.Client.Web.csproj b/src/Client/StellarChat.Client.Web/StellarChat.Client.Web.csproj index 9e3db76..270e087 100644 --- a/src/Client/StellarChat.Client.Web/StellarChat.Client.Web.csproj +++ b/src/Client/StellarChat.Client.Web/StellarChat.Client.Web.csproj @@ -9,6 +9,7 @@ + diff --git a/src/Client/StellarChat.Client.Web/_Imports.razor b/src/Client/StellarChat.Client.Web/_Imports.razor index c42ff06..f44e132 100644 --- a/src/Client/StellarChat.Client.Web/_Imports.razor +++ b/src/Client/StellarChat.Client.Web/_Imports.razor @@ -8,3 +8,4 @@ @using Microsoft.JSInterop @using StellarChat.Client.Web @using StellarChat.Client.Web.Layout +@using MudBlazor diff --git a/src/Client/StellarChat.Client.Web/wwwroot/index.html b/src/Client/StellarChat.Client.Web/wwwroot/index.html index a670ab5..e885f9e 100644 --- a/src/Client/StellarChat.Client.Web/wwwroot/index.html +++ b/src/Client/StellarChat.Client.Web/wwwroot/index.html @@ -9,6 +9,8 @@ + + @@ -26,6 +28,7 @@ 🗙 +