From 06ebc0c7d2fdd266a00bc53c1487b14309666a78 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 1 Dec 2025 10:59:41 +0800 Subject: [PATCH 1/4] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/CherryMarkdown/CherryMarkdown.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs index b6ad6096..74bfcfcc 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs +++ b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs @@ -1,4 +1,4 @@ -// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. +// Copyright (c) BootstrapBlazor & Argo Zhang (argo@live.ca). All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ From b0856fa92a9be93ee2f3646a5b4f7d9538122331 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 1 Dec 2025 10:59:58 +0800 Subject: [PATCH 2/4] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=BF=87=E5=A4=A7=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/CherryMarkdown/CherryMarkdown.razor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs index 74bfcfcc..8ede08d4 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs +++ b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs @@ -121,7 +121,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// [JSInvokable] - public async Task Upload(CherryMarkdownUploadFile uploadFile) + public async Task Upload(CherryMarkdownUploadFile uploadFile, CancellationToken token = default) { var ret = ""; if (Module != null) @@ -129,7 +129,7 @@ public async Task Upload(CherryMarkdownUploadFile uploadFile) var stream = await InvokeAsync("fetch", Id); if (stream != null) { - using var data = await stream.OpenReadStreamAsync(); + using var data = await stream.OpenReadStreamAsync(stream.Length, token); uploadFile.UploadStream = data; if (OnFileUpload != null) { From abea91f1481664a658f37cd9dbe6341881c8ef2b Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 1 Dec 2025 11:02:41 +0800 Subject: [PATCH 3/4] =?UTF-8?q?revert:=20=E7=A7=BB=E9=99=A4=20Token=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/CherryMarkdown/CherryMarkdown.razor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs index 8ede08d4..259df74b 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs +++ b/src/components/BootstrapBlazor.CherryMarkdown/Components/CherryMarkdown/CherryMarkdown.razor.cs @@ -121,7 +121,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// [JSInvokable] - public async Task Upload(CherryMarkdownUploadFile uploadFile, CancellationToken token = default) + public async Task Upload(CherryMarkdownUploadFile uploadFile) { var ret = ""; if (Module != null) @@ -129,7 +129,7 @@ public async Task Upload(CherryMarkdownUploadFile uploadFile, Cancellati var stream = await InvokeAsync("fetch", Id); if (stream != null) { - using var data = await stream.OpenReadStreamAsync(stream.Length, token); + using var data = await stream.OpenReadStreamAsync(stream.Length); uploadFile.UploadStream = data; if (OnFileUpload != null) { From 0dfc65984e1c083e296236a9d6522528c83c8a2f Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Mon, 1 Dec 2025 11:02:50 +0800 Subject: [PATCH 4/4] chore: bump version 10.0.1 --- .../BootstrapBlazor.CherryMarkdown.csproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj b/src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj index 87617189..3f343c14 100644 --- a/src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj +++ b/src/components/BootstrapBlazor.CherryMarkdown/BootstrapBlazor.CherryMarkdown.csproj @@ -1,5 +1,9 @@ + + 10.0.1 + + Bootstrap Blazor WebAssembly wasm UI Components Icon Bootstrap UI components extensions of Cherry Markdown