From e1cd62caf57b4d44bcb1b19c6acbba4cb9ff0341 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Mon, 2 Dec 2024 08:37:46 +0800 Subject: [PATCH 1/6] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=E5=8F=AF?= =?UTF-8?q?=E4=B8=BA=E7=A9=BA=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/Collapses.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Shared/Components/Samples/Collapses.razor.cs b/src/BootstrapBlazor.Shared/Components/Samples/Collapses.razor.cs index 2b072dc9f23..2dc821caf5d 100644 --- a/src/BootstrapBlazor.Shared/Components/Samples/Collapses.razor.cs +++ b/src/BootstrapBlazor.Shared/Components/Samples/Collapses.razor.cs @@ -26,7 +26,7 @@ private void OnToggle() State = !State; } - private string Value { get; set; } + private string? Value { get; set; } private IEnumerable Items { get; set; } = new[] { From 038f21f9a74904455e081621ea9788f245af3d41 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Mon, 2 Dec 2024 08:37:53 +0800 Subject: [PATCH 2/6] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=94=B9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/IntersectionObservers.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Shared/Components/Samples/IntersectionObservers.razor.cs b/src/BootstrapBlazor.Shared/Components/Samples/IntersectionObservers.razor.cs index cbcfad3b428..9b37c5a0dc5 100644 --- a/src/BootstrapBlazor.Shared/Components/Samples/IntersectionObservers.razor.cs +++ b/src/BootstrapBlazor.Shared/Components/Samples/IntersectionObservers.razor.cs @@ -23,7 +23,7 @@ protected override void OnInitialized() { base.OnInitialized(); - _images = Enumerable.Range(1, 100).Select(i => "../../images/default.jpeg").ToList(); + _images = Enumerable.Range(1, 100).Select(i => "./_content/BootstrapBlazor.Shared/images/default.jpeg").ToList(); _items = Enumerable.Range(1, 20).Select(i => $"https://picsum.photos/160/160?random={i}").ToList(); } From 340382b100a3089856b0499eb5d4ce0febacce53 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Mon, 2 Dec 2024 08:38:03 +0800 Subject: [PATCH 3/6] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E5=9B=BE=E7=89=87=E8=B5=84=E6=BA=90=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/MouseFollowers.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor.Shared/Components/Samples/MouseFollowers.razor b/src/BootstrapBlazor.Shared/Components/Samples/MouseFollowers.razor index 9e816b8dc37..897a4f05f23 100644 --- a/src/BootstrapBlazor.Shared/Components/Samples/MouseFollowers.razor +++ b/src/BootstrapBlazor.Shared/Components/Samples/MouseFollowers.razor @@ -44,7 +44,7 @@ Introduction="@Localizer["MouseFollowerIconIntro"]" Name="MouseFollowerIcon"> + Content="./_content/BootstrapBlazor.Shared/images/performance.svg">
@@ -54,7 +54,7 @@ Name="MouseFollowerImage"> + Content="./_content/BootstrapBlazor.Shared/images/mousefollower/cat.gif">
From 8ff504586e90e24f022a89a125becfd63f2f03b9 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Mon, 2 Dec 2024 08:50:18 +0800 Subject: [PATCH 4/6] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E7=94=BB?= =?UTF-8?q?=E7=AC=94=E5=BA=94=E7=94=A8=E8=B5=84=E6=BA=90=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/Tutorials/DrawingApp.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Shared/Components/Samples/Tutorials/DrawingApp.razor b/src/BootstrapBlazor.Shared/Components/Samples/Tutorials/DrawingApp.razor index ce572ea8a66..94874259839 100644 --- a/src/BootstrapBlazor.Shared/Components/Samples/Tutorials/DrawingApp.razor +++ b/src/BootstrapBlazor.Shared/Components/Samples/Tutorials/DrawingApp.razor @@ -2,7 +2,7 @@ @inject MessageService MessageService @inject DownloadService DownloadService @inherits BootstrapModuleComponentBase -@attribute [JSModuleAutoLoader("../../_content/BootstrapBlazor.Shared/Components/Components/Samples/Tutorials/DrawingApp.razor.js")] +@attribute [JSModuleAutoLoader("../../_content/BootstrapBlazor.Shared/Components/Samples/Tutorials/DrawingApp.razor.js")]
From 919d00d1b9caeac97d7a0a9a38307f804f163076 Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Mon, 2 Dec 2024 09:24:15 +0800 Subject: [PATCH 5/6] =?UTF-8?q?refactor:=20=E7=80=91=E5=B8=83=E6=B5=81=20a?= =?UTF-8?q?pi=20=E6=94=AF=E6=8C=81=E9=83=A8=E7=BD=B2=E4=B8=8E=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/WaterfallController.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Server/Controllers/WaterfallController.cs b/src/BootstrapBlazor.Server/Controllers/WaterfallController.cs index 9ad81bacdaf..2b1c3255b53 100644 --- a/src/BootstrapBlazor.Server/Controllers/WaterfallController.cs +++ b/src/BootstrapBlazor.Server/Controllers/WaterfallController.cs @@ -22,7 +22,12 @@ public async Task Index([FromServices] IWebHostEnvironment env, [ { var interval = Random.Shared.Next(1, 2000); await Task.Delay(interval); - var fileName = Path.Combine(env.WebRootPath, "images/waterfall", $"{id}.jpeg"); +#if DEBUG + var fileName = Path.Combine(env.WebRootPath, "../../"); +#else + var fileName = Path.Combine(AppContext.BaseDirectory, "_content"); +#endif + fileName = Path.Combine(fileName, "BootstrapBlazor.Shared/wwwroot/images/waterfall", $"{id}.jpeg"); return new PhysicalFileResult(fileName, "images/jpeg"); } } From 76ca807406768bf7a35da192be21bc10fe0361bb Mon Sep 17 00:00:00 2001 From: Argo-AsicoTech Date: Mon, 2 Dec 2024 09:33:54 +0800 Subject: [PATCH 6/6] chore: bump version 9.1.0 --- src/BootstrapBlazor/BootstrapBlazor.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj index acb069f3c5a..eabc92208a5 100644 --- a/src/BootstrapBlazor/BootstrapBlazor.csproj +++ b/src/BootstrapBlazor/BootstrapBlazor.csproj @@ -1,7 +1,7 @@  - 9.0.2 + 9.1.0