Skip to content

Commit

Permalink
Update Template generated projects
Browse files Browse the repository at this point in the history
Add WasmStandalone generated projects
  • Loading branch information
vnbaaij committed Jan 11, 2024
1 parent bd08636 commit 2379917
Show file tree
Hide file tree
Showing 260 changed files with 1,693 additions and 3,501 deletions.
32 changes: 32 additions & 0 deletions tests/TemplateValidation/FluentUI.TemplateValidation.sln
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README.md = README.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentUI.TemplateValidation", "WasmStandalone\NoSamplePages\FluentUI.TemplateValidation.csproj", "{749D07A6-7BF6-4EE9-843E-ED5E41EE8C69}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WasmStandAlone", "WasmStandAlone", "{EE07E63A-DE3D-4213-AD09-6C16935F08AC}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NoSamplePages", "NoSamplePages", "{F68950CB-1907-4D57-864D-0A0A8055B4C2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "IndividualAccounts", "IndividualAccounts", "{1BE55543-90FE-4C93-9648-5C64460D525B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "NoAuthentication", "NoAuthentication", "{7BDA9E17-538D-4726-A3F6-04F057139723}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentUI.TemplateValidation", "WasmStandalone\IndividualAccounts\FluentUI.TemplateValidation.csproj", "{A019121A-C0DA-49DB-BDBB-621A7A818295}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "FluentUI.TemplateValidation", "WasmStandalone\NoAuthentication\FluentUI.TemplateValidation.csproj", "{C9476F8C-B54F-4771-A991-564A266FC6E0}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -220,6 +234,18 @@ Global
{7AC6EFAE-2422-4EF3-943D-6E791D4963F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7AC6EFAE-2422-4EF3-943D-6E791D4963F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7AC6EFAE-2422-4EF3-943D-6E791D4963F9}.Release|Any CPU.Build.0 = Release|Any CPU
{749D07A6-7BF6-4EE9-843E-ED5E41EE8C69}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{749D07A6-7BF6-4EE9-843E-ED5E41EE8C69}.Debug|Any CPU.Build.0 = Debug|Any CPU
{749D07A6-7BF6-4EE9-843E-ED5E41EE8C69}.Release|Any CPU.ActiveCfg = Release|Any CPU
{749D07A6-7BF6-4EE9-843E-ED5E41EE8C69}.Release|Any CPU.Build.0 = Release|Any CPU
{A019121A-C0DA-49DB-BDBB-621A7A818295}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A019121A-C0DA-49DB-BDBB-621A7A818295}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A019121A-C0DA-49DB-BDBB-621A7A818295}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A019121A-C0DA-49DB-BDBB-621A7A818295}.Release|Any CPU.Build.0 = Release|Any CPU
{C9476F8C-B54F-4771-A991-564A266FC6E0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9476F8C-B54F-4771-A991-564A266FC6E0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9476F8C-B54F-4771-A991-564A266FC6E0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9476F8C-B54F-4771-A991-564A266FC6E0}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down Expand Up @@ -273,6 +299,12 @@ Global
{776BCC06-E449-4C0D-AED4-1054C7E86A84} = {41683801-CC1D-49D4-95AE-45A80B7DB678}
{49A5F186-7EFC-4718-9034-E0CCFC6BA29F} = {88510137-2FC0-48FD-825A-80906363C159}
{7AC6EFAE-2422-4EF3-943D-6E791D4963F9} = {88510137-2FC0-48FD-825A-80906363C159}
{749D07A6-7BF6-4EE9-843E-ED5E41EE8C69} = {F68950CB-1907-4D57-864D-0A0A8055B4C2}
{F68950CB-1907-4D57-864D-0A0A8055B4C2} = {EE07E63A-DE3D-4213-AD09-6C16935F08AC}
{1BE55543-90FE-4C93-9648-5C64460D525B} = {EE07E63A-DE3D-4213-AD09-6C16935F08AC}
{7BDA9E17-538D-4726-A3F6-04F057139723} = {EE07E63A-DE3D-4213-AD09-6C16935F08AC}
{A019121A-C0DA-49DB-BDBB-621A7A818295} = {1BE55543-90FE-4C93-9648-5C64460D525B}
{C9476F8C-B54F-4771-A991-564A266FC6E0} = {7BDA9E17-538D-4726-A3F6-04F057139723}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0F501CAF-8EFD-43E3-BD3E-C2D9FEE91C2D}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ if ($auth -eq 'individual' -or $auth -eq 'all' )
dotnet new fluentblazor -n FluentUI.TemplateValidation -o IndividualAccounts\D-Auto\NoSamplePages --interactivity auto --auth Individual --all-interactive true --empty true --force
}
}

# Wasm Standalone
dotnet new fluentblazorwasm -n FluentUI.TemplateValidation -o WasmStandalone\NoSamplePages --empty true --force
dotnet new fluentblazorwasm -n FluentUI.TemplateValidation -o WasmStandalone\IndividualAccounts --auth individual --force
dotnet new fluentblazorwasm -n FluentUI.TemplateValidation -o WasmStandalone\NoAuthentication --auth none --force
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<FluentGridItem xs="8" sm="4">
<EditForm Model="Input" OnValidSubmit="OnValidSubmitAsync" FormName="confirmation" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />
<FluentTextField Name="Input.Email" @bind-Value="Input.Email" AutoComplete="email" Placeholder="Please enter your email." Label="Email" Style="width: 100%;"/>
<FluentValidationMessage For="() => Input.Email" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Register</FluentButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<FluentGridItem xs="8" sm="4">
<EditForm Model="Input" FormName="forgot-password" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />
<FluentTextField Name="Input.Email" @bind-Value="Input.Email" AutoComplete="username" Required="true" Placeholder="[email protected]" Label="Email" Style="width: 100%;" />
<FluentValidationMesssage For="() => Input.Email" class="text-danger" />
<FluentValidationMessage For="() => Input.Email" class="text-danger" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Reset password</FluentButton>
</EditForm>
</FluentGridItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
<FluentValidationSummary class="text-danger" role="alert" />
<FluentStack Orientation="Orientation.Vertical">
<FluentTextField Name="Input.Email" @bind-Value="Input.Email" AutoComplete="username" Required="true" Placeholder="[email protected]" Label="Email" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.Email" class="text-danger" />
<FluentValidationMessage For="() => Input.Email" class="text-danger" />
<FluentTextField type="password" Name="Input.Password" @bind-Value="Input.Password" AutoComplete="current-password" Required="true" Placeholder="password" Label="Password" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.Password" class="text-danger" />
<FluentValidationMessage For="() => Input.Password" class="text-danger" />
<FluentCheckbox Name="Input.RememberMe" @bind-Value="Input.RememberMe" Label="Remember me" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%">Log in</FluentButton>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
<input type="hidden" name="ReturnUrl" value="@ReturnUrl" />
<input type="hidden" name="RememberMe" value="@RememberMe" />
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentTextField Name="Input.TwoFactorCode" @bind-Value="Input.TwoFactorCode" class="form-control" AutoComplete="off" Label="Authenticator code" Style="width: 100%;"/>
<FluentValidationMesssage For="() => Input.TwoFactorCode" class="text-danger" />
<FluentCheckbox Name="Input.RememberMachine" @bind-Value="Input.RememberMachine" Label="Remember this machine" Style="width: 100%;"/>
<FluentValidationSummary class="text-danger" role="alert" />
<FluentTextField Name="Input.TwoFactorCode" @bind-Value="Input.TwoFactorCode" class="form-control" AutoComplete="off" Label="Authenticator code" Style="width: 100%;" />
<FluentValidationMessage For="() => Input.TwoFactorCode" class="text-danger" />
<FluentCheckbox Name="Input.RememberMachine" @bind-Value="Input.RememberMachine" Label="Remember this machine" Style="width: 100%;" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Log in</FluentButton>
</EditForm>
</FluentGridItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
<FluentGridItem xs="8" sm="4">
<EditForm Model="Input" FormName="login-with-recovery-code" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />
<FluentTextField Name="Input.RecoveryCode" @bind-Value="Input.RecoveryCode" class="form-control" AutoComplete="off" Placeholder="Recovery code" Label="Recovery code" Style="width: 100%;" />
<FluentValidationMesssage For="() => Input.RecoveryCode" class="text-danger" />
<FluentValidationMessage For="() => Input.RecoveryCode" class="text-danger" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Log in</FluentButton>
</EditForm>
</FluentGridItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
<FluentGridItem xs="12" sm="6">
<EditForm Model="Input" FormName="change-password" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />
<FluentTextField type="password" Name="Input.OldPassword" @bind-Value="Input.OldPassword" class="form-control" AutoComplete="current-password" Required="true" Placeholder="Please enter your old password." Label="Old password" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.OldPassword" class="text-danger" />
<FluentValidationMessage For="() => Input.OldPassword" class="text-danger" />
<FluentTextField type="password" Name="Input.NewPassword" @bind-Value="Input.NewPassword" class="form-control" AutoComplete="new-password" Required="true" Placeholder="Please enter your new password." Label="New password" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.NewPassword" class="text-danger" />
<FluentValidationMessage For="() => Input.NewPassword" class="text-danger" />
<FluentTextField type="password" Name="Input.ConfirmPassword" @bind-Value="Input.ConfirmPassword" class="form-control" AutoComplete="new-password" Required="true" Placeholder="Please confirm your new password." Label="Confirm password" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.ConfirmPassword" class="text-danger" />
<FluentValidationMessage For="() => Input.ConfirmPassword" class="text-danger" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Update password</FluentButton>
</EditForm>
</FluentGridItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
</div>
<EditForm Model="Input" FormName="delete-user" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />
@if (requirePassword)
{
<FluentTextField type="password" Name="Input.Password" @bind-Value="Input.Password" AutoComplete="new-password" Required="true" Placeholder="Please enter your password." Label="Password" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.Password" class="text-danger" />
<FluentValidationMessage For="() => Input.Password" class="text-danger" />
}
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Delete data and close my account</FluentButton>
</EditForm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
</form>
<EditForm Model="Input" FormName="change-email" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />
@if (isEmailConfirmed)
{
<FluentTextField Value="@email" Placeholder="Please enter your email." Disabled Label="Email" Appearance=FluentInputAppearance.Filled Style="width: 100%">
Expand All @@ -37,7 +37,7 @@
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Form="send-verification-form" Style="width: 100%">Send verification email</FluentButton>
}
<FluentTextField Name="Input.NewEmail" @bind-Value="Input.NewEmail" AutoComplete="email" Required="true" Placeholder="Please enter new email." Label="New email" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.NewEmail" class="text-danger" />
<FluentValidationMessage For="() => Input.NewEmail" class="text-danger" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Change email</FluentButton>
</EditForm>
</FluentGridItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ else
<EditForm Model="Input" FormName="send-code" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<FluentTextField Name="Input.Code" @bind-Value="Input.Code" AutoComplete="off" Placeholder="Please enter the code." Style="width: 100%;" />
<FluentValidationMesssage For="() => Input.Code" class="text-danger" />
<FluentValidationMessage For="() => Input.Code" class="text-danger" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Verify</FluentButton>
<ValidationSummary class="text-danger" role="alert" />
</EditForm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<FluentGridItem xs="12" sm="6">
<EditForm Model="Input" FormName="profile" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />
<FluentTextField Value="@username" Placeholder="Please choose your username." Disabled Label="Username" Appearance=FluentInputAppearance.Filled Style="width: 100%" />
<FluentTextField Name="Input.PhoneNumber" @bind-Value="Input.PhoneNumber" Paceholder="Please enter your phone number." Label="Phone number" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.PhoneNumber" class="text-danger" />
<FluentValidationMessage For="() => Input.PhoneNumber" class="text-danger" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Save</FluentButton>
</EditForm>
</FluentGridItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
<FluentGridItem xs="12" sm="6">
<EditForm Model="Input" FormName="set-password" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />
<FluentTextField TextFieldType="TextFieldType.Password" Name="Input.NewPassword" @bind-Value="Input.NewPassword" AutoComplete="new-password" Placeholder="Please enter your new password." Label="New password" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.NewPassword" class="text-danger" />
<FluentValidationMessage For="() => Input.NewPassword" class="text-danger" />
<FluentTextField TextFieldType="TextFieldType.Password" Name="Input.ConfirmPassword" @bind-Value="Input.ConfirmPassword" AutoComplete="new-password" Placeholder="Please confirm your new password." Label="Confirm password" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.ConfirmPassword" class="text-danger" />
<FluentValidationMessage For="() => Input.ConfirmPassword" class="text-danger" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Set password</FluentButton>
</EditForm>
</FluentGridItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
<FluentValidationSummary class="text-danger" role="alert" />
<FluentStack Orientation="Orientation.Vertical">
<FluentTextField Name="Input.Email" @bind-Value="Input.Email" AutoComplete="username" Required="true" Placeholder="[email protected]" Label="Email" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.Email" class="text-danger" />
<FluentValidationMessage For="() => Input.Email" class="text-danger" />
<FluentTextField type="password" Name="Input.Password" @bind-Value="Input.Password" AutoComplete="current-password" Required="true" Placeholder="password" Label="Password" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.Password" class="text-danger" />
<FluentValidationMessage For="() => Input.Password" class="text-danger" />
<FluentTextField type="password" Name="Input.ConfirmPassword" @bind-Value="Input.ConfirmPassword" AutoComplete="new-password" Required="true" Placeholder="password" Label="Confirm Password" Style="width: 100%" />
<FluentValidationMesssage For="() => Input.ConfirmPassword" class="text-danger" />
<FluentValidationMessage For="() => Input.ConfirmPassword" class="text-danger" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%">Log in</FluentButton>
</FluentStack>
</EditForm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<FluentGridItem xs="8" sm="4">
<EditForm Model="Input" FormName="resend-email-confirmation" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />
<FluentTextField Name="Input.Email" @bind-Value="Input.Email" class="form-control" Required="true" Placeholder="[email protected]" Label="Email" Style="width: 100%;" />
<FluentValidationMessage For="() => Input.Email" class="text-danger" />
<FluentButton Type="ButtonType.Submit" Appearance="Appearance.Accent" Style="width: 100%;">Resend</FluentButton>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<StatusMessage Message="@Message" />
<EditForm Model="Input" FormName="reset-password" OnValidSubmit="OnValidSubmitAsync" method="post">
<DataAnnotationsValidator />
<ValidationSummary class="text-danger" role="alert" />
<FluentValidationSummary class="text-danger" role="alert" />

<input type="hidden" name="Input.Code" value="@Input.Code" />
<FluentTextField Name="Input.Email" @bind-Value="Input.Email" AutoComplete="username" Required="true" Placeholder="[email protected]" Label="Email" Style="width: 100%;" />
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>aspnet-FluentUI.TemplateValidation-83bd4ed1-07d0-4df0-9ff1-9f99373ce2e6</UserSecretsId>
<UserSecretsId>aspnet-FluentUI.TemplateValidation-8bdcf50f-e070-4463-8cf2-f28ec08e8eeb</UserSecretsId>
</PropertyGroup>

<ItemGroup>
Expand Down
Loading

0 comments on commit 2379917

Please sign in to comment.