Skip to content

Commit

Permalink
feat(MaterialDesign): add TableAdvancedSort icon (#2238)
Browse files Browse the repository at this point in the history
* doc: 重构代码

* feat: 增加 TableAdvancedSortButtonIcon 图标

* chore: bump version 7.4.1-beta01

* refactor: 重构代码逻辑

* doc: 更新示例

* chore: 更新依赖包版本

* chore: 更新组件包版本
  • Loading branch information
ArgoZhang authored Oct 7, 2023
1 parent 15b2c2d commit 623e2a0
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
12 changes: 10 additions & 2 deletions src/BootstrapBlazor.Server/AIChat/Chats.razor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,21 @@ public partial class Chats
[Inject]
[NotNull]
private NavigationManager? NavigationManager { get; set; }

private string? Context { get; set; }

private List<AzureOpenAIChatMessage> Messages { get; } = new();

[NotNull]
private string? DisplayName { get; set; }

[NotNull]
private string? UserName { get; set; }

private string? AvatarUrl { get; set; }

private static string? GetStackClass(ChatRole role) => CssBuilder.Default("msg-stack").AddClass("msg-stack-assistant", role == ChatRole.Assistant).Build();
///<inheritdoc/>
protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id);

/// <summary>
/// <inheritdoc/>
/// </summary>
Expand Down Expand Up @@ -75,6 +77,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
}
}

/// <summary>
/// <inheritdoc/>
/// </summary>
/// <returns></returns>
protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id);

private bool IsValid => OAuthHelper.Validate(UserName);

private async Task GetCompletionsAsync()
Expand Down
6 changes: 3 additions & 3 deletions src/BootstrapBlazor.Shared/BootstrapBlazor.Shared.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<PackageReference Include="BootstrapBlazor.BaiduSpeech" Version="7.1.0" />
<PackageReference Include="BootstrapBlazor.BaiduOcr" Version="7.1.1" />
<PackageReference Include="BootstrapBlazor.BarCode" Version="7.1.5" />
<PackageReference Include="BootstrapBlazor.Bluetooth" Version="7.0.1" />
<PackageReference Include="BootstrapBlazor.Bluetooth" Version="7.1.0" />
<PackageReference Include="BootstrapBlazor.Chart" Version="7.6.0" />
<PackageReference Include="BootstrapBlazor.CherryMarkdown" Version="7.2.1" />
<PackageReference Include="BootstrapBlazor.Dock" Version="7.0.12" />
Expand All @@ -38,7 +38,7 @@
<PackageReference Include="BootstrapBlazor.Live2DDisplay" Version="7.0.1" />
<PackageReference Include="BootstrapBlazor.Markdown" Version="7.2.1" />
<PackageReference Include="BootstrapBlazor.MaterialDesign" Version="7.0.0" />
<PackageReference Include="BootstrapBlazor.MaterialDesign.Extensions" Version="7.4.0" />
<PackageReference Include="BootstrapBlazor.MaterialDesign.Extensions" Version="7.4.1-beta01" />
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="7.0.1" />
<PackageReference Include="BootstrapBlazor.PdfReader" Version="7.2.0" />
<PackageReference Include="BootstrapBlazor.SignaturePad" Version="7.0.3" />
Expand All @@ -48,7 +48,7 @@
<PackageReference Include="BootstrapBlazor.Topology" Version="7.4.5" />
<PackageReference Include="BootstrapBlazor.VideoPlayer" Version="7.0.4" />
<PackageReference Include="BootstrapBlazor.MouseFollower" Version="7.0.0" />
<PackageReference Include="BootstrapBlazor.WebAPI" Version="7.4.4" />
<PackageReference Include="BootstrapBlazor.WebAPI" Version="7.5.0" />
<PackageReference Include="BootstrapBlazor.MindMap" Version="7.0.1" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Razor">

<PropertyGroup>
<Version>7.4.0</Version>
<Version>7.4.1-beta01</Version>
</PropertyGroup>

<PropertyGroup>
Expand All @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BootstrapBlazor" Version="7.10.4" />
<PackageReference Include="BootstrapBlazor" Version="7.11.1-beta02" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ internal class DefaultIcon
{ ComponentIcons.TableCancelButtonIcon, "mdi mdi-close" },
{ ComponentIcons.TableSaveButtonIcon, "mdi mdi-content-save" },
{ ComponentIcons.TableAdvanceButtonIcon, "mdi mdi-magnify-plus-outline" },
{ ComponentIcons.TableAdvancedSortButtonIcon, "mdi mdi-sort-alphabetical-descending" },

{ ComponentIcons.TableTreeIcon, "mdi mdi-menu-right" },
{ ComponentIcons.TableTreeExpandIcon, "mdi mdi-menu-right mdi-rotate-90" },
Expand Down

0 comments on commit 623e2a0

Please sign in to comment.