From 165502b0c0c93c4f4fca03d993d3465869157790 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 8 Jan 2025 13:19:14 +0800 Subject: [PATCH 1/4] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=20Smarts=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/Components/Samples/RDKits.razor | 6 ++++++ src/BootstrapBlazor.Server/Locales/en-US.json | 4 +++- src/BootstrapBlazor.Server/Locales/zh-CN.json | 4 +++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor b/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor index 956bb33422a..caab3115329 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor @@ -12,3 +12,9 @@ Name="Normal"> + + + + diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index a58a03fc616..3f12dcce9cc 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -6843,6 +6843,8 @@ "RDKitTitle": "RDKit", "RDKitDescription": "A powerful cheminformatics and molecule rendering toolbelt for Blazor, Powered by RDKit", "RDKitNormalTitle": "Basic usage", - "RDKitNormalIntro": "Set the molecular formula through Value and draw the component" + "RDKitNormalIntro": "Set the molecular formula through Value and draw the component", + "RDKitSmartsTitle": "Smarts", + "RDKitSmartsIntro": "By setting the Smarts value, parts of the molecular formula can be highlighted" } } diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index b1c25a66155..f4e9f47aee5 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -6843,6 +6843,8 @@ "RDKitTitle": "分子图组件", "RDKitDescription": "RDKit 是一个开源的化学信息学工具包,用于分子建模和化学信息学", "RDKitNormalTitle": "基础用法", - "RDKitNormalIntro": "通过 Value 设置分子式,组件画图" + "RDKitNormalIntro": "通过 Value 设置分子式,组件画图", + "RDKitSmartsTitle": "Smarts", + "RDKitSmartsIntro": "通过设置 Smarts 值,高亮显示部分分子式" } } From 89d99dcdcfc130ddd4d06c6bfba7393b60544ace Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 8 Jan 2025 13:59:06 +0800 Subject: [PATCH 2/4] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=20Smarts=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/RDKits.razor | 12 +++++++++++- .../Components/Samples/RDKits.razor.cs | 2 ++ src/BootstrapBlazor.Server/Locales/en-US.json | 3 ++- src/BootstrapBlazor.Server/Locales/zh-CN.json | 3 ++- 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor b/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor index caab3115329..01b1fdacdc9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor @@ -16,5 +16,15 @@ - +
+
+
+ + + + +
+
+
+
diff --git a/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor.cs index 4bdf6105241..05abdf3297c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor.cs @@ -10,5 +10,7 @@ namespace BootstrapBlazor.Server.Components.Samples; /// public partial class RDKits { + private string? Smarts => _showSmarts ? "Oc1[c,n]cccc1" : ""; + private bool _showSmarts; } diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index 3f12dcce9cc..cb4ecf77914 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -6845,6 +6845,7 @@ "RDKitNormalTitle": "Basic usage", "RDKitNormalIntro": "Set the molecular formula through Value and draw the component", "RDKitSmartsTitle": "Smarts", - "RDKitSmartsIntro": "By setting the Smarts value, parts of the molecular formula can be highlighted" + "RDKitSmartsIntro": "By setting the Smarts value, parts of the molecular formula can be highlighted", + "RDKitSmartsLabel": "Show Smarts" } } diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index f4e9f47aee5..c40ff36c26e 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -6845,6 +6845,7 @@ "RDKitNormalTitle": "基础用法", "RDKitNormalIntro": "通过 Value 设置分子式,组件画图", "RDKitSmartsTitle": "Smarts", - "RDKitSmartsIntro": "通过设置 Smarts 值,高亮显示部分分子式" + "RDKitSmartsIntro": "通过设置 Smarts 值,高亮显示部分分子式", + "RDKitSmartsLabel": "显示 Smarts" } } From 188d1257ded5d6b3b5ddf01988d79c4cf7dabeaf Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 8 Jan 2025 13:59:16 +0800 Subject: [PATCH 3/4] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=8C=85=E5=88=B0=E6=9C=80=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj index 55f8b1f0991..875d4257869 100644 --- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj +++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj @@ -53,7 +53,7 @@ - + From 383852f3c88b0e6ebd33e004f146106fc1420944 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 8 Jan 2025 14:47:52 +0800 Subject: [PATCH 4/4] doc(RDKit): add Size parameter document --- src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj | 2 +- src/BootstrapBlazor.Server/Components/Samples/RDKits.razor | 6 ++++++ src/BootstrapBlazor.Server/Locales/en-US.json | 4 +++- src/BootstrapBlazor.Server/Locales/zh-CN.json | 4 +++- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj index 875d4257869..b6cc61809cf 100644 --- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj +++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj @@ -53,7 +53,7 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor b/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor index 01b1fdacdc9..263706283f1 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/RDKits.razor @@ -13,6 +13,12 @@ + + + + diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index cb4ecf77914..ea3d4ac85da 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -6846,6 +6846,8 @@ "RDKitNormalIntro": "Set the molecular formula through Value and draw the component", "RDKitSmartsTitle": "Smarts", "RDKitSmartsIntro": "By setting the Smarts value, parts of the molecular formula can be highlighted", - "RDKitSmartsLabel": "Show Smarts" + "RDKitSmartsLabel": "Show Smarts", + "RDKitSizeTitle": "Size", + "RDKitSizeIntro": "Set the width and height of the molecular formula by setting the Width and Height values" } } diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index c40ff36c26e..d578b8cc7db 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -6846,6 +6846,8 @@ "RDKitNormalIntro": "通过 Value 设置分子式,组件画图", "RDKitSmartsTitle": "Smarts", "RDKitSmartsIntro": "通过设置 Smarts 值,高亮显示部分分子式", - "RDKitSmartsLabel": "显示 Smarts" + "RDKitSmartsLabel": "显示 Smarts", + "RDKitSizeTitle": "尺寸", + "RDKitSizeIntro": "通过设置 Width Height 值设置分子式宽高" } }