Skip to content

Commit d973969

Browse files
945108: Staging Failure Resolved
1 parent bf035f2 commit d973969

File tree

4 files changed

+34
-33
lines changed

4 files changed

+34
-33
lines changed

blazor/rich-text-editor/mail-merge.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ When the user selects an item from the dropdown:
9797
if (args.Item.Text != null)
9898
{
9999
var value = _mergeData.FirstOrDefault(md => md.Text == args.Item.Text)?.Value;
100-
string htmlContent = $"<span contenteditable=\"false\" class=\"e-mention-chip\"><span>{{{{{value}}}}}</span></span> ";
100+
string htmlContent = $"<span contenteditable=\"false\" class=\"e-mention-chip\"><span>{{\"{{' + value + '}}\"}}</span></span> ";
101101
var undoOption = new ExecuteCommandOption { Undo = true };
102102
this._mailMergeEditor.ExecuteCommandAsync(CommandName.InsertHTML, htmlContent, undoOption);
103103
await this._mailMergeEditor.SaveSelectionAsync();
@@ -118,7 +118,7 @@ Mention control enhances usability by enabling inline field suggestions:
118118

119119
<SfMention DataSource="_mergeData" TItem="MergeData" Target="#_mailMergeEditor" MentionChar="_mentionChar" AllowSpaces="true" PopupWidth='250px' PopupHeight='200px' @ref="mentionObj">
120120
<DisplayTemplate>
121-
<span>{{@((context as MergeData).Value)}}</span>
121+
<span>{{ "{% raw %}{{@((context as MergeData).Value)}}{% endraw %}" }}</span>
122122
</DisplayTemplate>
123123
<ChildContent>
124124
<MentionFieldSettings Text="Text"></MentionFieldSettings>
@@ -202,9 +202,10 @@ When the `Merge Data` button is clicked:
202202
_rteValue = mergedContent;
203203
}
204204
}
205-
public static string ReplacePlaceholders(string template, Dictionary<string, string> data)
205+
206+
public static string ReplacePlaceholders(string template, Dictionary<string, string> data)
206207
{
207-
return Regex.Replace(template, @"{{\s*(\w+)\s*}}", match =>
208+
return Regex.Replace(template, @"{{{{\s*(\w+)\s*}}}}", match =>
208209
{
209210
string key = match.Groups[1].Value.Trim();
210211
return data.TryGetValue(key, out var value) ? value : match.Value;

blazor/smart-ai-solutions/ai-samples/kanban/sentiment-analysis.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ensure the following NuGet packages are installed based on your chosen AI servic
3030
- **OllamaSharp**
3131

3232
{% tabs %}
33-
{% highlight C# tabtitle="Package Manager" %}
33+
{% highlight csharp tabtitle="Package Manager" %}
3434

3535
Install-Package Syncfusion.Blazor.Kanban -Version {{ site.releaseversion }}
3636
Install-Package Syncfusion.Blazor.Themes -Version {{ site.releaseversion }}
@@ -77,7 +77,7 @@ Generate an API key from OpenAI and set `openAIApiKey`. Specify the desired mode
7777
- Install the required NuGet packages:
7878

7979
{% tabs %}
80-
{% highlight C# tabtitle="Package Manager" %}
80+
{% highlight csharp tabtitle="Package Manager" %}
8181

8282
Install-Package Microsoft.Extensions.AI
8383
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -88,7 +88,7 @@ Install-Package Microsoft.Extensions.AI.OpenAI
8888
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
8989

9090
{% tabs %}
91-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
91+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
9292

9393
using Syncfusion.Blazor.AI;
9494
using Microsoft.Extensions.AI;
@@ -115,7 +115,7 @@ Deploy an Azure OpenAI Service resource and model as described in [Microsoft's d
115115
- Install the required NuGet packages:
116116

117117
{% tabs %}
118-
{% highlight C# tabtitle="Package Manager" %}
118+
{% highlight csharp tabtitle="Package Manager" %}
119119

120120
Install-Package Microsoft.Extensions.AI
121121
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -127,7 +127,7 @@ Install-Package Azure.AI.OpenAI
127127
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
128128

129129
{% tabs %}
130-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
130+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
131131

132132
using Syncfusion.Blazor.AI;
133133
using Azure.AI.OpenAI;
@@ -163,7 +163,7 @@ To use Ollama for self-hosted AI models:
163163
- Install the required NuGet packages:
164164

165165
{% tabs %}
166-
{% highlight C# tabtitle="Package Manager" %}
166+
{% highlight csharp tabtitle="Package Manager" %}
167167

168168
Install-Package Microsoft.Extensions.AI
169169
Install-Package OllamaSharp
@@ -174,7 +174,7 @@ Install-Package OllamaSharp
174174
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
175175

176176
{% tabs %}
177-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
177+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
178178

179179
using Syncfusion.Blazor.AI;
180180
using Microsoft.Extensions.AI;
@@ -202,7 +202,7 @@ Add the Syncfusion Blazor service to your **~/Program.cs** file. The configurati
202202
- **WebAssembly or Auto Mode**: Register the service in both the server-side **~/Program.cs** and client-side **~/Program.cs** files.
203203

204204
{% tabs %}
205-
{% highlight C# tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
205+
{% highlight csharp tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
206206

207207
using Syncfusion.Blazor;
208208

@@ -216,7 +216,7 @@ builder.Services.AddSyncfusionBlazor();
216216
var app = builder.Build();
217217

218218
{% endhighlight %}
219-
{% highlight C# tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
219+
{% highlight csharp tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
220220

221221
using Syncfusion.Blazor;
222222

@@ -240,7 +240,7 @@ The Kanban sentiment analysis interface starts with a Progress Button labeled **
240240
- **Kanban Board:** Displays pizza orders grouped by Category (Menu, Order, Ready to Serve, Delivered). Each card shows pizza details and later displays sentiment emoji for delivered items.
241241

242242
{% tabs %}
243-
{% highlight %}
243+
{% highlight razor%}
244244

245245
<SfProgressButton Content="@Content" OnClick="@GetScore" EnableProgress="false">
246246
<ProgressButtonEvents OnBegin="Begin" OnEnd="End"></ProgressButtonEvents>
@@ -424,7 +424,7 @@ Once the AI response is processed and `ShowScore` is set to `true`, the Kanban b
424424
This is handled in the Kanban card template using conditional rendering:
425425

426426
{% tabs %}
427-
{% highlight %}
427+
{% highlight razor%}
428428

429429
if (card.Category == "Delivered" || card.Category == "Served")
430430
{

blazor/smart-ai-solutions/ai-samples/kanban/smart-task-suggestion.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ensure the following NuGet packages are installed based on your chosen AI servic
3030
- **OllamaSharp**
3131

3232
{% tabs %}
33-
{% highlight C# tabtitle="Package Manager" %}
33+
{% highlight csharp tabtitle="Package Manager" %}
3434

3535
Install-Package Syncfusion.Blazor.Kanban -Version {{ site.releaseversion }}
3636
Install-Package Syncfusion.Blazor.Themes -Version {{ site.releaseversion }}
@@ -77,7 +77,7 @@ Generate an API key from OpenAI and set `openAIApiKey`. Specify the desired mode
7777
- Install the required NuGet packages:
7878

7979
{% tabs %}
80-
{% highlight C# tabtitle="Package Manager" %}
80+
{% highlight csharp tabtitle="Package Manager" %}
8181

8282
Install-Package Microsoft.Extensions.AI
8383
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -88,7 +88,7 @@ Install-Package Microsoft.Extensions.AI.OpenAI
8888
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
8989

9090
{% tabs %}
91-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
91+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
9292

9393
using Syncfusion.Blazor.AI;
9494
using Microsoft.Extensions.AI;
@@ -115,7 +115,7 @@ Deploy an Azure OpenAI Service resource and model as described in [Microsoft's d
115115
- Install the required NuGet packages:
116116

117117
{% tabs %}
118-
{% highlight C# tabtitle="Package Manager" %}
118+
{% highlight csharp tabtitle="Package Manager" %}
119119

120120
Install-Package Microsoft.Extensions.AI
121121
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -127,7 +127,7 @@ Install-Package Azure.AI.OpenAI
127127
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
128128

129129
{% tabs %}
130-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
130+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
131131

132132
using Syncfusion.Blazor.AI;
133133
using Azure.AI.OpenAI;
@@ -163,7 +163,7 @@ To use Ollama for self-hosted AI models:
163163
- Install the required NuGet packages:
164164

165165
{% tabs %}
166-
{% highlight C# tabtitle="Package Manager" %}
166+
{% highlight csharp tabtitle="Package Manager" %}
167167

168168
Install-Package Microsoft.Extensions.AI
169169
Install-Package OllamaSharp
@@ -174,7 +174,7 @@ Install-Package OllamaSharp
174174
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
175175

176176
{% tabs %}
177-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
177+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
178178

179179
using Syncfusion.Blazor.AI;
180180
using Microsoft.Extensions.AI;
@@ -202,7 +202,7 @@ Add the Syncfusion Blazor service to your **~/Program.cs** file. The configurati
202202
- **WebAssembly or Auto Mode**: Register the service in both the server-side **~/Program.cs** and client-side **~/Program.cs** files.
203203

204204
{% tabs %}
205-
{% highlight C# tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
205+
{% highlight csharp tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
206206

207207
using Syncfusion.Blazor;
208208

@@ -216,7 +216,7 @@ builder.Services.AddSyncfusionBlazor();
216216
var app = builder.Build();
217217

218218
{% endhighlight %}
219-
{% highlight C# tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
219+
{% highlight csharp tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
220220

221221
using Syncfusion.Blazor;
222222

blazor/smart-ai-solutions/ai-samples/rich-text-editor/writting-assistance.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Ensure the following NuGet packages are installed based on your chosen AI servic
3030
- **OllamaSharp**
3131

3232
{% tabs %}
33-
{% highlight C# tabtitle="Package Manager" %}
33+
{% highlight csharp tabtitle="Package Manager" %}
3434

3535
Install-Package Syncfusion.Blazor.RichTextEditor -Version {{ site.releaseversion }}
3636
Install-Package Syncfusion.Blazor.Themes -Version {{ site.releaseversion }}
@@ -77,7 +77,7 @@ Generate an API key from OpenAI and set `openAIApiKey`. Specify the desired mode
7777
- Install the required NuGet packages:
7878

7979
{% tabs %}
80-
{% highlight C# tabtitle="Package Manager" %}
80+
{% highlight csharp tabtitle="Package Manager" %}
8181

8282
Install-Package Microsoft.Extensions.AI
8383
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -88,7 +88,7 @@ Install-Package Microsoft.Extensions.AI.OpenAI
8888
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
8989

9090
{% tabs %}
91-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
91+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
9292

9393
using Syncfusion.Blazor.AI;
9494
using Microsoft.Extensions.AI;
@@ -115,7 +115,7 @@ Deploy an Azure OpenAI Service resource and model as described in [Microsoft's d
115115
- Install the required NuGet packages:
116116

117117
{% tabs %}
118-
{% highlight C# tabtitle="Package Manager" %}
118+
{% highlight csharp tabtitle="Package Manager" %}
119119

120120
Install-Package Microsoft.Extensions.AI
121121
Install-Package Microsoft.Extensions.AI.OpenAI
@@ -127,7 +127,7 @@ Install-Package Azure.AI.OpenAI
127127
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
128128

129129
{% tabs %}
130-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
130+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
131131

132132
using Syncfusion.Blazor.AI;
133133
using Azure.AI.OpenAI;
@@ -163,7 +163,7 @@ To use Ollama for self-hosted AI models:
163163
- Install the required NuGet packages:
164164

165165
{% tabs %}
166-
{% highlight C# tabtitle="Package Manager" %}
166+
{% highlight csharp tabtitle="Package Manager" %}
167167

168168
Install-Package Microsoft.Extensions.AI
169169
Install-Package OllamaSharp
@@ -174,7 +174,7 @@ Install-Package OllamaSharp
174174
- Add the following to the **~/Program.cs** file in your Blazor WebApp:
175175

176176
{% tabs %}
177-
{% highlight C# tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
177+
{% highlight csharp tabtitle="Blazor WebApp" hl_lines="7 8 9 11 12 13" %}
178178

179179
using Syncfusion.Blazor.AI;
180180
using Microsoft.Extensions.AI;
@@ -202,7 +202,7 @@ Add the Syncfusion Blazor service to your **~/Program.cs** file. The configurati
202202
- **WebAssembly or Auto Mode**: Register the service in both the server-side **~/Program.cs** and client-side **~/Program.cs** files.
203203

204204
{% tabs %}
205-
{% highlight C# tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
205+
{% highlight csharp tabtitle="Server (~/_Program.cs)" hl_lines="3 11" %}
206206

207207
using Syncfusion.Blazor;
208208

@@ -216,7 +216,7 @@ builder.Services.AddSyncfusionBlazor();
216216
var app = builder.Build();
217217

218218
{% endhighlight %}
219-
{% highlight C# tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
219+
{% highlight csharp tabtitle="Client (~/_Program.cs)" hl_lines="2 5" %}
220220

221221
using Syncfusion.Blazor;
222222

0 commit comments

Comments
 (0)