Skip to content

Commit c93c24f

Browse files
committed
fix
1 parent e4344fc commit c93c24f

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

src/Templates/Boilerplate/Bit.Boilerplate/.docs/01- Entity Framework Core.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ dotnet ef migrations add YourMigrationName --context AppOfflineDbContext --outpu
453453
`SyncService` uses `CommunityToolkit.DataSync` to synchronize data between the client-side offline database and the server database.
454454
Conventions:
455455

456-
- Entity must inhert from `BaseEntityTableData` Example: [`/src/Server/Boilerplate.Server.Api/Models/Todo/TodoItem.cs`](/src/Server/Boilerplate.Server.Api/Models/Todo/TodoItem.cs)
456+
- Entity must inherit from `BaseEntityTableData` Example: [`/src/Server/Boilerplate.Server.Api/Models/Todo/TodoItem.cs`](/src/Server/Boilerplate.Server.Api/Models/Todo/TodoItem.cs)
457457
- DTO must have the following properties: Example: [`/src/Shared/Dtos/Todo/TodoItemDto.cs`](/src/Shared/Dtos/Todo/TodoItemDto.cs)
458458
```csharp
459459
public bool Deleted { get; set; }

src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Services/SyncService.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Boilerplate.Client.Core.Services;
66

77
/// <summary>
8-
/// Syncronize client offline database changes with the server,
8+
/// Synchronize client offline database changes with the server,
99
/// and pull server changes to the client offline database.
1010
/// </summary>
1111
public partial class SyncService : IAsyncDisposable
@@ -82,6 +82,7 @@ public async Task Sync(AppOfflineDbContext dbContext, bool pullRecentChanges, Ca
8282

8383
public async ValueTask DisposeAsync()
8484
{
85-
await cts.TryCancel();
85+
using var currentCts = cts;
86+
await currentCts.TryCancel();
8687
}
8788
}

src/Templates/Boilerplate/Bit.Boilerplate/src/Server/Boilerplate.Server.Api/Data/Configurations/Chatbot/SystemPromptConfiguration.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ private static string GetInitialSystemPromptMarkdown()
9292
9393
These are the primary functional areas of the application beyond account management.
9494
" +
95-
//#if (module == 'Admin')
95+
//#if (module == 'Admin')
9696
@"### 3.1. Dashboard
9797
* **Description:** Provides a high-level overview and analytics of key application data, such as categories and products.
9898
* **How to Use:**
@@ -113,34 +113,34 @@ These are the primary functional areas of the application beyond account managem
113113
* **How to Use:**
114114
- Navigate to the [Add/Edit Products page](/add-edit-product).
115115
" +
116-
//#endif
117-
//#if (module == 'Sales')
116+
//#endif
117+
//#if (module == 'Sales')
118118
@"### 3.5. View Product
119119
* **Description:** Displays the details of a single product in a read-only view.
120120
* **How to Use:**
121121
- Navigate to the [View Products page](/).
122122
" +
123-
//#endif
124-
//#if (offlineDb == true)
123+
//#endif
124+
//#if (offlineDb == true)
125125
@"### 3.6. Offline Todo List
126126
* **Description:** A simple task management feature to keep track of personal tasks.
127127
* **How to Use:**
128128
- Navigate to the [Offline Todo page](/offline-todo).
129129
" +
130-
//#elseif (sample == true)
130+
//#elseif (sample == true)
131131
@"### 3.6. Todo List
132132
* **Description:** A simple task management feature to keep track of personal tasks.
133133
* **How to Use:**
134134
- Navigate to the [Todo page](/todo).
135135
" +
136-
//#endif
137-
//#if (ads == true)
136+
//#endif
137+
//#if (ads == true)
138138
@"### 3.7. Upgrade account
139139
* **Description:** A page where the user can upgrade her account.
140140
* **How to Use:**
141141
- Navigate to the [Upgrade account page](/settings/upgradeaccount).
142142
" +
143-
//#endif
143+
//#endif
144144
@"## 4. Informational Pages
145145
146146
### 4.1. About Page
@@ -199,8 +199,8 @@ 1. Acknowledge the issue with empathy (e.g., ""I see you're having trouble with.
199199
- If the user asks multiple questions, list them back to the user to confirm understanding, then address each one separately with clear headings. If needed, ask them to prioritize: ""I see you have multiple questions. Which issue would you like me to address first?""
200200
201201
- Never request sensitive information (e.g., passwords, PINs). If a user shares such data unsolicited, respond: ""For your security, please don't share sensitive information like passwords. Rest assured, your data is safe with us."" " +
202-
//#if (module == "Sales")
203-
//#if (database == "PostgreSQL" || database == "SqlServer")
202+
//#if (module == "Sales")
203+
//#if (database == "PostgreSQL" || database == "SqlServer")
204204
@"### Handling Car Recommendation Requests:
205205
**[[[CAR_RECOMMENDATION_RULES_BEGIN]]]**
206206
* **If a user asks for help choosing a car, for recommendations, or expresses purchase intent (e.g., ""looking for an SUV"", ""recommend a car for me"", ""what sedans do you have under $50k?""):**
@@ -221,9 +221,9 @@ 1. Acknowledge the issue with empathy (e.g., ""I see you're having trouble with.
221221
**[[[CAR_RECOMMENDATION_RULES_END]]]**
222222
223223
" +
224-
//#endif
225-
//#endif
226-
//#if (ads == true)
224+
//#endif
225+
//#endif
226+
//#if (ads == true)
227227
@"### Handling advertisement trouble requests:
228228
**[[[ADS_TROUBLE_RULES_BEGIN]]]""
229229
* **If a user asks about having trouble watching ad (e.g., ""ad not showing"", ""ad is blocked"", ""upgrade is not happening"") :**
@@ -232,7 +232,7 @@ 1. Acknowledge the issue with empathy (e.g., ""I see you're having trouble with.
232232
**[[[ADS_TROUBLE_RULES_END]]]**
233233
234234
" +
235-
//#endif
235+
//#endif
236236
@"- ### User Feedback and Suggestions:
237237
- If a user provides feedback or suggests a feature, respond: ""Thank you for your feedback! It's valuable to us, and I'll pass it on to the product team."" If the feedback is unclear, ask for clarification: ""Could you please provide more details about your suggestion?""
238238

0 commit comments

Comments
 (0)