Skip to content

Commit 1bf94ec

Browse files
committed
doc: 更新文档
1 parent 9e0a304 commit 1bf94ec

File tree

7 files changed

+43
-27
lines changed

7 files changed

+43
-27
lines changed

src/BootstrapBlazor.Server/Components/Samples/SmileDrawers.razor

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
@page "/smiles-drawer"
2+
@inject IStringLocalizer<SmilesDrawers> Localizer
3+
4+
<h3>@Localizer["SmilesDrawerTitle"]</h3>
5+
6+
<h4>@Localizer["SmilesDrawerDescription"]</h4>
7+
8+
<PackageTips Name="BootstrapBlazor.SmilesDrawer" />
9+
10+
<DemoBlock Title="@Localizer["SmilesDrawerNormalTitle"]"
11+
Introduction="@Localizer["SmilesDrawerNormalIntro"]"
12+
Name="Normal">
13+
<SmilesDrawer SmilesValue="CC(=O)Oc1ccccc1C(=O)O"></SmilesDrawer>
14+
</DemoBlock>
15+
16+
<DemoBlock Title="@Localizer["SmilesDrawerSizeTitle"]"
17+
Introduction="@Localizer["SmilesDrawerSizeIntro"]"
18+
Name="Size">
19+
<SmilesDrawer SmilesValue="CC(=O)Oc1ccccc1C(=O)O" Theme="light" Width="120" Height="120"></SmilesDrawer>
20+
</DemoBlock>

src/BootstrapBlazor.Server/Components/Samples/SmileDrawers.razor.cs renamed to src/BootstrapBlazor.Server/Components/Samples/SmilesDrawers.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace BootstrapBlazor.Server.Components.Samples;
88
/// <summary>
99
/// SmileDrawer 组件示例
1010
/// </summary>
11-
public partial class SmileDrawers
11+
public partial class SmilesDrawers
1212
{
1313

1414
}

src/BootstrapBlazor.Server/Extensions/MenusLocalizerExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,8 @@ void AddData(DemoMenuItem item)
709709
},
710710
new()
711711
{
712-
Text = Localizer["SmileDrawer"],
713-
Url = "smile-drawer"
712+
Text = Localizer["SmilesDrawer"],
713+
Url = "smiles-drawer"
714714
},
715715
new()
716716
{

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6844,11 +6844,19 @@
68446844
"RDKitTitle": "RDKit",
68456845
"RDKitDescription": "A powerful cheminformatics and molecule rendering toolbelt for Blazor, Powered by RDKit",
68466846
"RDKitNormalTitle": "Basic usage",
6847-
"RDKitNormalIntro": "Set the molecular formula through <code>Value</code> and draw the component",
6847+
"RDKitNormalIntro": "Set the molecular formula through <code>Smiles</code> and draw the component",
68486848
"RDKitSmartsTitle": "Smarts",
68496849
"RDKitSmartsIntro": "By setting the <code>Smarts</code> value, parts of the molecular formula can be highlighted",
68506850
"RDKitSmartsLabel": "Show Smarts",
68516851
"RDKitSizeTitle": "Size",
68526852
"RDKitSizeIntro": "Set the width and height of the molecular formula by setting the <code>Width</code> and <code>Height</code> values"
6853+
},
6854+
"BootstrapBlazor.Server.Components.Samples.SmilesDrawers": {
6855+
"SmilesDrawerTitle": "SmilesDrawer",
6856+
"SmilesDrawerDescription": "A small, highly performant JavaScript component for parsing and drawing SMILES strings",
6857+
"SmilesDrawerNormalTitle": "Basic usage",
6858+
"SmilesDrawerNormalIntro": "Set the molecular formula through <code>Smiles</code> and draw the component",
6859+
"SmilesDrawerSizeTitle": "Size",
6860+
"SmilesDrawerSizeIntro": "Set the width and height of the molecular formula by setting the <code>Width</code> and <code>Height</code> values"
68536861
}
68546862
}

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6841,14 +6841,22 @@
68416841
"AttributeOnPostDataAsync": "Frame 加载页面传递过来的数据"
68426842
},
68436843
"BootstrapBlazor.Server.Components.Samples.RDKits": {
6844-
"RDKitTitle": "分子图组件",
6844+
"RDKitTitle": "RDKit.js 分子图组件",
68456845
"RDKitDescription": "RDKit 是一个开源的化学信息学工具包,用于分子建模和化学信息学",
68466846
"RDKitNormalTitle": "基础用法",
6847-
"RDKitNormalIntro": "通过 <code>Value</code> 设置分子式,组件画图",
6847+
"RDKitNormalIntro": "通过 <code>Smiles</code> 设置分子式,组件画图",
68486848
"RDKitSmartsTitle": "Smarts",
68496849
"RDKitSmartsIntro": "通过设置 <code>Smarts</code> 值,高亮显示部分分子式",
68506850
"RDKitSmartsLabel": "显示 Smarts",
68516851
"RDKitSizeTitle": "尺寸",
68526852
"RDKitSizeIntro": "通过设置 <code>Width</code> <code>Height</code> 值设置分子式宽高"
6853+
},
6854+
"BootstrapBlazor.Server.Components.Samples.SmilesDrawers": {
6855+
"SmilesDrawerTitle": "SmilesDrawer 分子图组件",
6856+
"SmilesDrawerDescription": "SmilesDrawer 是一个开源的化学信息学工具包,用于分子建模和化学信息学",
6857+
"SmilesDrawerNormalTitle": "基础用法",
6858+
"SmilesDrawerNormalIntro": "通过 <code>Smiles</code> 设置分子式,组件画图",
6859+
"SmilesDrawerSizeTitle": "尺寸",
6860+
"SmilesDrawerSizeIntro": "通过设置 <code>Width</code> <code>Height</code> 值设置分子式宽高"
68536861
}
68546862
}

src/BootstrapBlazor.Server/docs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"win-box": "WinBoxes",
223223
"player": "Players",
224224
"rdkit": "Rdkits",
225-
"smile-drawer": "SmileDrawers"
225+
"smiles-drawer": "SmilesDrawers"
226226
},
227227
"video": {
228228
"table": "BV1ap4y1x7Qn?p=1",

0 commit comments

Comments
 (0)