Added Blazor projects. Minor API/core updates.
All checks were successful
ci / build-test (push) Successful in 1m35s
ci / publish-image (push) Has been skipped

This commit is contained in:
2025-11-07 22:18:04 -05:00
parent 4020a01682
commit 840bec72d2
77 changed files with 60692 additions and 1 deletions

View File

@@ -0,0 +1,46 @@
@page "/voiceworks"
@using JSMR.Application.VoiceWorks.Queries.Search
@inject VoiceWorksClient Client
<PageTitle>Voice Works</PageTitle>
<h3>VoiceWorks</h3>
@if (items is null)
{
<p>Loading…</p>
}
else if (items.Count == 0)
{
<p>No results.</p>
}
else
{
<ul>
@foreach (var v in items)
{
<li>@v.ProductId @v.ProductName</li>
}
</ul>
}
@code {
List<VoiceWorkSearchResult>? items;
protected override async Task OnInitializedAsync()
{
SearchVoiceWorksRequest request = new(
Options: new()
);
var result = await Client.SearchAsync(request);
// if (result.Ok)
// {
// items = result.Value!.Results.Items.ToList();
// }
//items = result.Value?.Results.Items ?? [];
items = result.Results.Items.ToList();
}
}