From 73fb9a6257db70e05ca40da9d99435b9a6cf671b Mon Sep 17 00:00:00 2001 From: capdiem Date: Fri, 29 Mar 2024 13:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=95=20feat:=20Change=20rendermode=20fr?= =?UTF-8?q?om=20Server=20to=20Auto=20(#208)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Masa.Blazor.Pro.Client/Program.cs | 5 ++--- Masa.Blazor.Pro/Components/App.razor | 4 ++-- Masa.Blazor.Pro/Masa.Blazor.Pro.csproj | 9 --------- Masa.Blazor.Pro/Program.cs | 4 ++-- 4 files changed, 6 insertions(+), 16 deletions(-) diff --git a/Masa.Blazor.Pro.Client/Program.cs b/Masa.Blazor.Pro.Client/Program.cs index ce2ffef..3403126 100644 --- a/Masa.Blazor.Pro.Client/Program.cs +++ b/Masa.Blazor.Pro.Client/Program.cs @@ -2,15 +2,14 @@ var builder = WebAssemblyHostBuilder.CreateDefault(args); -builder.Services.AddMasaBlazor(options => +await builder.Services.AddMasaBlazor(options => { options.ConfigureTheme(theme => { theme.Themes.Light.Primary = "#4318FF"; theme.Themes.Light.Accent = "#4318FF"; }); -}); - // .AddI18nForWasmAsync($"{builder.HostEnvironment.BaseAddress}/i18n"); +}).AddI18nForWasmAsync($"{builder.HostEnvironment.BaseAddress}/i18n"); await builder.Services.AddGlobalForWasmAsync(builder.HostEnvironment.BaseAddress); diff --git a/Masa.Blazor.Pro/Components/App.razor b/Masa.Blazor.Pro/Components/App.razor index ccda03a..a917b37 100644 --- a/Masa.Blazor.Pro/Components/App.razor +++ b/Masa.Blazor.Pro/Components/App.razor @@ -14,11 +14,11 @@ - + - + diff --git a/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj b/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj index 659fb86..360cede 100644 --- a/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj +++ b/Masa.Blazor.Pro/Masa.Blazor.Pro.csproj @@ -15,15 +15,6 @@ PreserveNewest - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - \ No newline at end of file diff --git a/Masa.Blazor.Pro/Program.cs b/Masa.Blazor.Pro/Program.cs index 21b0ed2..a70969f 100644 --- a/Masa.Blazor.Pro/Program.cs +++ b/Masa.Blazor.Pro/Program.cs @@ -5,7 +5,7 @@ // Add services to the container. builder.Services.AddRazorComponents() - // .AddInteractiveWebAssemblyComponents() + .AddInteractiveWebAssemblyComponents() .AddInteractiveServerComponents(); builder.Services.AddMasaBlazor(options => @@ -36,7 +36,7 @@ app.MapRazorComponents() .AddInteractiveServerRenderMode() - // .AddInteractiveWebAssemblyRenderMode() + .AddInteractiveWebAssemblyRenderMode() .AddAdditionalAssemblies(typeof(Routes).Assembly); app.Run();