This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @page "/Testing" | |
| <label class="fileInputZone" for="inputFile" title="Upload files"> | |
| Upload | |
| </label> | |
| <InputFile id="inputFile" OnChange="LoadFiles" multiple accept="@(String.Join(','))"/> | |
| @foreach (var uploadInfo in _queuedFileUploads) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <A> | |
| <B @bind-xyzInB = "@_xyzInA"><B> | |
| </A> | |
| @code { | |
| private FipsDetail? _xyzInA { get; set; } | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <MyFancyReusableBusinessLogic> | |
| <MyOtherComponent /> | |
| </MyFancyReusableBusinessLogic> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Target Name="CollectMudBlazorStaticAssets" DependsOnTargets="ResolveStaticWebAssetsInputs" AfterTargets="Build" Condition=" '$(Configuration)' == 'Debug' "> | |
| <Copy SourceFiles="%(StaticWebAsset.Identity)" DestinationFolder="wwwroot/temp" Condition="$([System.String]::Copy(%(StaticWebAsset.Identity)).Contains('mudblazor'))" /> | |
| </Target> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="rounded-md bg-white p-2 flex shadow"> | |
| <div> | |
| <span class="block mb-4">@Text</span> | |
| </div> | |
| @if (!string.IsNullOrEmpty(Initials)) | |
| { | |
| <div class="flex-none ml-2 w-8 h-8 rounded-full flex justify-center items-center bg-purple-400"> | |
| <span class="text-sm text-white">@Initials</span> | |
| </div> | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace MessagingTestApp.Features.Mesgs | |
| { | |
| public class List | |
| { | |
| public class Query : IRequest<Model> | |
| { | |
| } | |
| public class Model | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @page | |
| @using PracticalAspNet.UI.Client.Pages | |
| @model IndexModel | |
| @{ | |
| ViewData["Title"] = "Home page"; | |
| } | |
| <div class="text-center"> | |
| <script src="_framework/blazor.webassembly.js"></script> | |
| <component type="typeof(Counter)" render-mode="WebAssemblyPrerendered"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| protected async Task HandleValidSubmit() | |
| { | |
| var response = await Http.PostAsJsonAsync("api/post", Command); | |
| if (response.StatusCode == HttpStatusCode.BadRequest) | |
| { | |
| var result = await response.Content.ReadFromJsonAsync<CommandResult>(); | |
| CustomValidator?.DisplayErrors(result.Errors); | |
| } | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CommandValidator : AbstractValidator<Command> | |
| { | |
| private ApplicationDbContext _dbContext; | |
| public CommandValidator(ApplicationDbContext dbContext) | |
| { | |
| _dbContext = dbContext; | |
| RuleFor(c => c.Body).NotEmpty(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Data.SqlClient; | |
| using System.Linq; | |
| using System.Net.Mail; | |
| using System.Threading.Tasks; | |
| using Dapper; | |
| using Donatello.Controllers.Api; | |
| using Donatello.Infrastructure; | |
| using Donatello.Models; |
NewerOlder