Skip to content

Commit

Permalink
doc(RDKit): update sample code (#5072)
Browse files Browse the repository at this point in the history
* doc: 更改参数 Value 为 Smiles

* chore: bump version 9.0.2

* doc: 更新文档

Co-Authored-By: jin momiji <[email protected]>

---------

Co-authored-by: jin momiji <[email protected]>
  • Loading branch information
ArgoZhang and momijijin authored Jan 9, 2025
1 parent d5a6e70 commit 28b3d4a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<PackageReference Include="BootstrapBlazor.OnScreenKeyboard" Version="9.0.1" />
<PackageReference Include="BootstrapBlazor.PdfReader" Version="9.0.0" />
<PackageReference Include="BootstrapBlazor.Player" Version="9.0.0" />
<PackageReference Include="BootstrapBlazor.RDKit" Version="9.0.1" />
<PackageReference Include="BootstrapBlazor.RDKit" Version="9.0.2" />
<PackageReference Include="BootstrapBlazor.SignaturePad" Version="9.0.0" />
<PackageReference Include="BootstrapBlazor.Sortable" Version="9.0.1" />
<PackageReference Include="BootstrapBlazor.Splitting" Version="9.0.1" />
Expand Down
6 changes: 3 additions & 3 deletions src/BootstrapBlazor.Server/Components/Samples/RDKits.razor
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<DemoBlock Title="@Localizer["RDKitNormalTitle"]"
Introduction="@Localizer["RDKitNormalIntro"]"
Name="Normal">
<RDKit Value="CC(=O)Oc1ccccc1C(=O)O"></RDKit>
<RDKit Smiles="CC(=O)Oc1ccccc1C(=O)O"></RDKit>
</DemoBlock>

<DemoBlock Title="@Localizer["RDKitSizeTitle"]"
Introduction="@Localizer["RDKitSizeIntro"]"
Name="Size">
<RDKit Value="CC(=O)Oc1ccccc1C(=O)O" Width="200" Height="100"></RDKit>
<RDKit Smiles="CC(=O)Oc1ccccc1C(=O)O" Width="200" Height="100"></RDKit>
</DemoBlock>

<DemoBlock Title="@Localizer["RDKitSmartsTitle"]"
Expand All @@ -32,5 +32,5 @@
</div>
</div>
</section>
<RDKit Value="CC(=O)Oc1ccccc1C(=O)O" Smarts="@Smarts"></RDKit>
<RDKit Smiles="CC(=O)Oc1ccccc1C(=O)O" Smarts="@Smarts"></RDKit>
</DemoBlock>
2 changes: 1 addition & 1 deletion src/BootstrapBlazor.Server/Locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -6843,7 +6843,7 @@
"RDKitTitle": "RDKit",
"RDKitDescription": "A powerful cheminformatics and molecule rendering toolbelt for Blazor, Powered by RDKit",
"RDKitNormalTitle": "Basic usage",
"RDKitNormalIntro": "Set the molecular formula through <code>Value</code> and draw the component",
"RDKitNormalIntro": "Set the molecular formula through <code>Smiles</code> and draw the component",
"RDKitSmartsTitle": "Smarts",
"RDKitSmartsIntro": "By setting the <code>Smarts</code> value, parts of the molecular formula can be highlighted",
"RDKitSmartsLabel": "Show Smarts",
Expand Down
4 changes: 2 additions & 2 deletions src/BootstrapBlazor.Server/Locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -6840,10 +6840,10 @@
"AttributeOnPostDataAsync": "Frame 加载页面传递过来的数据"
},
"BootstrapBlazor.Server.Components.Samples.RDKits": {
"RDKitTitle": "分子图组件",
"RDKitTitle": "RDKit 分子式组件",
"RDKitDescription": "RDKit 是一个开源的化学信息学工具包,用于分子建模和化学信息学",
"RDKitNormalTitle": "基础用法",
"RDKitNormalIntro": "通过 <code>Value</code> 设置分子式,组件画图",
"RDKitNormalIntro": "通过 <code>Smiles</code> 设置分子式,组件画图",
"RDKitSmartsTitle": "Smarts",
"RDKitSmartsIntro": "通过设置 <code>Smarts</code> 值,高亮显示部分分子式",
"RDKitSmartsLabel": "显示 Smarts",
Expand Down

0 comments on commit 28b3d4a

Please sign in to comment.