Skip to content

Commit

Permalink
feat(blazorui): improve TS implementations of BlazorUI #7374 (#7379)
Browse files Browse the repository at this point in the history
  • Loading branch information
msynk authored Apr 16, 2024
1 parent ee079e7 commit aae9e06
Show file tree
Hide file tree
Showing 62 changed files with 1,486 additions and 1,440 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -262,5 +262,7 @@ _book
/src/Butil/Bit.Butil/Scripts/**/*.js
/src/Butil/Bit.Butil/wwwroot/**/*.js

custom.aprof
/src/BlazorUI/Demo/Bit.BlazorUI.Demo.Server/BitFileUploaderFiles/*.*
/src/BlazorUI/Demo/Client/Bit.BlazorUI.Demo.Client.Core/wwwroot/scripts/app.js

custom.aprof
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ internal static class BitChartJsInterop
Converters = { new IsoDateTimeConverter() }
};

public static async ValueTask InitChartJs(this IJSRuntime jsRuntime, IEnumerable<string> scripts)
public static ValueTask InitChartJs(this IJSRuntime jsRuntime, IEnumerable<string> scripts)
{
await jsRuntime.InvokeVoidAsync($"BitChart.initChartJs", scripts);
return jsRuntime.InvokeVoidAsync("BitBlazorUI.BitChart.initChartJs", scripts);
}

public static async ValueTask RemoveChart(this IJSRuntime jsRuntime, string canvasId)
public static ValueTask RemoveChart(this IJSRuntime jsRuntime, string canvasId)
{
await jsRuntime.InvokeVoidAsync($"BitChart.removeChart", canvasId);
return jsRuntime.InvokeVoidAsync("BitBlazorUI.BitChart.removeChart", canvasId);
}

/// <summary>
Expand All @@ -40,7 +40,7 @@ public static ValueTask<bool> SetupChart(this IJSRuntime jsRuntime, BitChartConf
{
dynamic dynParam = StripNulls(chartConfig);
Dictionary<string, object> param = ConvertExpandoObjectToDictionary(dynParam);
return jsRuntime.InvokeAsync<bool>($"BitChart.setupChart", param);
return jsRuntime.InvokeAsync<bool>("BitBlazorUI.BitChart.setupChart", param);
}

/// <summary>
Expand Down Expand Up @@ -95,7 +95,7 @@ public static ValueTask<bool> UpdateChart(this IJSRuntime jsRuntime, BitChartCon
{
dynamic dynParam = StripNulls(chartConfig);
Dictionary<string, object> param = ConvertExpandoObjectToDictionary(dynParam);
return jsRuntime.InvokeAsync<bool>($"BitChart.updateChart", param);
return jsRuntime.InvokeAsync<bool>("BitBlazorUI.BitChart.updateChart", param);
}

/// <summary>
Expand Down

Large diffs are not rendered by default.

Loading

0 comments on commit aae9e06

Please sign in to comment.