From 472e8eadec95dfb517b92e22a80340f33d843528 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Tue, 20 Jan 2026 14:44:06 -0500 Subject: [PATCH 1/2] update azuredeploy.json --- Oqtane.Client/Modules/HtmlText/Index.razor | 45 +++++++++++++++++++++- azuredeploy.json | 2 +- 2 files changed, 45 insertions(+), 2 deletions(-) diff --git a/Oqtane.Client/Modules/HtmlText/Index.razor b/Oqtane.Client/Modules/HtmlText/Index.razor index c3fa8b39..7cc2e946 100644 --- a/Oqtane.Client/Modules/HtmlText/Index.razor +++ b/Oqtane.Client/Modules/HtmlText/Index.razor @@ -5,6 +5,15 @@ @inject ISettingService SettingService @inject IStringLocalizer Localizer +@for (int i = 1; i < 6; i++) +{ + string product = $"product{i}"; +
+ + +
+} + @if (PageState.EditMode) {
@@ -24,7 +33,41 @@ @code { private string content = ""; - public override string RenderMode => RenderModes.Static; + //public override string RenderMode => RenderModes.Static; + + Dictionary _labels = new Dictionary { + { ":product1", "成为顾问 (FIA)"}, + { ":product2", "Market Shield Savings Plan (MS)"}, + { ":product3", "Global Term Life Insurance"}, + { ":product4", "Protection Advantage Universal Life Insurance"}, + { ":product5", "Summit Indexed Universal Life Insurance"} + }; + + private List _products = new List(); + + private void ProductChanged(string product) + { + if (_products.Contains(product)) + { + _products.Remove(product); + } + else + { + _products.Add(product); + } + } + + private string GetLabel(string key) + { + if (_labels.ContainsKey($"{PageState.Alias.Path}:{key}")) + { + return _labels[$"{PageState.Alias.Path}:{key}"]; + } + else + { + return ""; + } + } protected override async Task OnParametersSetAsync() { diff --git a/azuredeploy.json b/azuredeploy.json index 1aa722fa..72478428 100644 --- a/azuredeploy.json +++ b/azuredeploy.json @@ -220,7 +220,7 @@ "apiVersion": "2024-04-01", "name": "[concat(parameters('BlazorWebsiteName'), '/ZipDeploy')]", "properties": { - "packageUri": "https://github.com/oqtane/oqtane.framework/releases/download/v10.0.3/Oqtane.Framework.10.0.3.Install.zip" + "packageUri": "https://github.com/oqtane/oqtane.framework/releases/download/v10.0.4/Oqtane.Framework.10.0.4.Install.zip" }, "dependsOn": [ "[resourceId('Microsoft.Web/sites', parameters('BlazorWebsiteName'))]" From 0a3f60c00778ad39455d2c87921aa8e42658a21d Mon Sep 17 00:00:00 2001 From: sbwalker Date: Tue, 20 Jan 2026 14:50:51 -0500 Subject: [PATCH 2/2] undo previous commit --- Oqtane.Client/Modules/HtmlText/Index.razor | 45 +--------------------- 1 file changed, 1 insertion(+), 44 deletions(-) diff --git a/Oqtane.Client/Modules/HtmlText/Index.razor b/Oqtane.Client/Modules/HtmlText/Index.razor index 7cc2e946..c3fa8b39 100644 --- a/Oqtane.Client/Modules/HtmlText/Index.razor +++ b/Oqtane.Client/Modules/HtmlText/Index.razor @@ -5,15 +5,6 @@ @inject ISettingService SettingService @inject IStringLocalizer Localizer -@for (int i = 1; i < 6; i++) -{ - string product = $"product{i}"; -
- - -
-} - @if (PageState.EditMode) {
@@ -33,41 +24,7 @@ @code { private string content = ""; - //public override string RenderMode => RenderModes.Static; - - Dictionary _labels = new Dictionary { - { ":product1", "成为顾问 (FIA)"}, - { ":product2", "Market Shield Savings Plan (MS)"}, - { ":product3", "Global Term Life Insurance"}, - { ":product4", "Protection Advantage Universal Life Insurance"}, - { ":product5", "Summit Indexed Universal Life Insurance"} - }; - - private List _products = new List(); - - private void ProductChanged(string product) - { - if (_products.Contains(product)) - { - _products.Remove(product); - } - else - { - _products.Add(product); - } - } - - private string GetLabel(string key) - { - if (_labels.ContainsKey($"{PageState.Alias.Path}:{key}")) - { - return _labels[$"{PageState.Alias.Path}:{key}"]; - } - else - { - return ""; - } - } + public override string RenderMode => RenderModes.Static; protected override async Task OnParametersSetAsync() {