Files
jsmr/JSMR.UI.Blazor/Pages/VoiceWorks.razor
Brian Bicknell 634050c06f
All checks were successful
ci / build-test (push) Successful in 2m16s
ci / publish-image (push) Has been skipped
Updated CI for Blazor WebAssembly. Added styles for product cards.
2025-11-15 02:34:15 -05:00

26 lines
588 B
Plaintext

@page "/voiceworks"
@using JSMR.Application.VoiceWorks.Queries.Search
@using JSMR.UI.Blazor.Components
@using JSMR.UI.Blazor.Services
@inject VoiceWorksClient Client
<PageTitle>Voice Works</PageTitle>
<h3>VoiceWorks</h3>
<JProductCollection Products="items"></JProductCollection>
@code {
VoiceWorkSearchResult[]? items;
protected override async Task OnInitializedAsync()
{
SearchVoiceWorksRequest request = new(
Options: new()
);
var result = await Client.SearchAsync(request);
items = result?.Results.Items ?? [];
}
}