Merge remote-tracking branch 'origin/release/5.0-preview7'

This commit is contained in:
Pranav K 2020-07-02 11:42:14 -07:00
commit 9a4e6cf97c
No known key found for this signature in database
GPG Key ID: F748807460A27E91
592 changed files with 2203 additions and 788 deletions

View File

@ -35,3 +35,6 @@ indent_size = 4
[*.sh] [*.sh]
indent_size = 4 indent_size = 4
end_of_line = lf end_of_line = lf
[*.{razor,cshtml}]
charset = utf-8-bom

View File

@ -1,9 +1,9 @@
{ {
"sdk": { "sdk": {
"version": "5.0.100-preview.6.20310.4" "version": "5.0.100-preview.7.20330.3"
}, },
"tools": { "tools": {
"dotnet": "5.0.100-preview.6.20310.4", "dotnet": "5.0.100-preview.7.20330.3",
"runtimes": { "runtimes": {
"dotnet/x64": [ "dotnet/x64": [
"2.1.18", "2.1.18",

View File

@ -1,4 +1,4 @@
@page @page
@model AccessDeniedModel @model AccessDeniedModel
@{ @{
ViewData["Title"] = "Access denied"; ViewData["Title"] = "Access denied";

View File

@ -1,4 +1,4 @@
@page @page
@model ErrorModel @model ErrorModel
@{ @{
ViewData["Title"] = "Error"; ViewData["Title"] = "Error";

View File

@ -1,4 +1,4 @@
@page @page
@model SignedOutModel @model SignedOutModel
@{ @{
ViewData["Title"] = "Signed out"; ViewData["Title"] = "Signed out";

View File

@ -1,2 +1,2 @@
@using Microsoft.AspNetCore.Authentication.AzureAD.UI.Internal @using Microsoft.AspNetCore.Authentication.AzureAD.UI.Internal
@namespace Microsoft.AspNetCore.Authentication.AzureAD.UI.Pages.Internal @namespace Microsoft.AspNetCore.Authentication.AzureAD.UI.Pages.Internal

View File

@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Hosting @using Microsoft.AspNetCore.Hosting
@using Microsoft.AspNetCore.Mvc.ViewEngines @using Microsoft.AspNetCore.Mvc.ViewEngines
@inject IWebHostEnvironment Environment @inject IWebHostEnvironment Environment

View File

@ -1,4 +1,4 @@
@page @page
@model AccessDeniedModel @model AccessDeniedModel
@{ @{
ViewData["Title"] = "Access denied"; ViewData["Title"] = "Access denied";

View File

@ -1,4 +1,4 @@
@page @page
@model ErrorModel @model ErrorModel
@{ @{
ViewData["Title"] = "Error"; ViewData["Title"] = "Error";

View File

@ -1,4 +1,4 @@
@page @page
@model SignedOutModel @model SignedOutModel
@{ @{
ViewData["Title"] = "Signed out"; ViewData["Title"] = "Signed out";

View File

@ -1,2 +1,2 @@
@using Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Internal @using Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Internal
@namespace Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Pages.Internal @namespace Microsoft.AspNetCore.Authentication.AzureADB2C.UI.Pages.Internal

View File

@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Hosting @using Microsoft.AspNetCore.Hosting
@using Microsoft.AspNetCore.Mvc.ViewEngines @using Microsoft.AspNetCore.Mvc.ViewEngines
@inject IWebHostEnvironment Environment @inject IWebHostEnvironment Environment

View File

@ -1,4 +1,4 @@
@page @page
@model AzureADB2CSample.Pages.AboutModel @model AzureADB2CSample.Pages.AboutModel
@{ @{
} }

View File

@ -1,4 +1,4 @@
@page @page
@model IndexModel @model IndexModel
@{ @{
ViewData["Title"] = "Home page"; ViewData["Title"] = "Home page";

View File

@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Authentication.AzureADB2C.UI @using Microsoft.AspNetCore.Authentication.AzureADB2C.UI
@using Microsoft.Extensions.Options @using Microsoft.Extensions.Options
@inject IOptionsMonitor<AzureADB2COptions> AzureADB2COptions @inject IOptionsMonitor<AzureADB2COptions> AzureADB2COptions
@{ @{

View File

@ -1,2 +1,2 @@
@namespace AzureADB2CSample.Pages @namespace AzureADB2CSample.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -1,4 +1,4 @@
@page @page
@model IndexModel @model IndexModel
@{ @{
ViewData["Title"] = "Home page"; ViewData["Title"] = "Home page";

View File

@ -1,4 +1,4 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8" /> <meta charset="utf-8" />

View File

@ -1,4 +1,4 @@
@if (User.Identity.IsAuthenticated) @if (User.Identity.IsAuthenticated)
{ {
<ul class="nav navbar-nav navbar-right"> <ul class="nav navbar-nav navbar-right">
<li class="navbar-text">Hello @User.Identity.Name!</li> <li class="navbar-text">Hello @User.Identity.Name!</li>

View File

@ -1,2 +1,2 @@
@namespace AzureADSample.Pages @namespace AzureADSample.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -1,4 +1,4 @@
@implements IDisposable @implements IDisposable
@inject AuthenticationStateProvider AuthenticationStateProvider @inject AuthenticationStateProvider AuthenticationStateProvider
<CascadingValue TValue="Task<AuthenticationState>" Value="@_currentAuthenticationStateTask" ChildContent="@ChildContent" /> <CascadingValue TValue="Task<AuthenticationState>" Value="@_currentAuthenticationStateTask" ChildContent="@ChildContent" />

View File

@ -1,4 +1,4 @@
@page "/" @page "/"
<h1>Hello, world!</h1> <h1>Hello, world!</h1>

View File

@ -1,4 +1,4 @@
@inherits LayoutComponentBase @inherits LayoutComponentBase
<div class="sidebar"> <div class="sidebar">
<NavMenu /> <NavMenu />

View File

@ -1,4 +1,4 @@
<div class="top-row pl-4 navbar navbar-dark"> <div class="top-row pl-4 navbar navbar-dark">
<a class="navbar-brand" href="">BlazorServerApp</a> <a class="navbar-brand" href="">BlazorServerApp</a>
<button class="navbar-toggler" @onclick="ToggleNavMenu"> <button class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>

View File

@ -1 +1 @@
@using Microsoft.AspNetCore.Components.Web @using Microsoft.AspNetCore.Components.Web

View File

@ -1,4 +1,4 @@
<Router AppAssembly=typeof(StandaloneApp.Program).Assembly> <Router AppAssembly=typeof(StandaloneApp.Program).Assembly>
<Found Context="routeData"> <Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" /> <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
</Found> </Found>

View File

@ -1,4 +1,4 @@
@page "/counter" @page "/counter"
<h1>Counter</h1> <h1>Counter</h1>

View File

@ -1,4 +1,4 @@
@page "/fetchdata" @page "/fetchdata"
@page "/fetchdata/{StartDate:datetime}" @page "/fetchdata/{StartDate:datetime}"
@inject HttpClient Http @inject HttpClient Http

View File

@ -1,4 +1,4 @@
@inherits LayoutComponentBase @inherits LayoutComponentBase
<div class="sidebar"> <div class="sidebar">
<NavMenu /> <NavMenu />

View File

@ -1,4 +1,4 @@
<div class="top-row pl-4 navbar navbar-dark"> <div class="top-row pl-4 navbar navbar-dark">
<a class="navbar-brand" href="">Blazor app</a> <a class="navbar-brand" href="">Blazor app</a>
<button class="navbar-toggler" @onclick=ToggleNavMenu> <button class="navbar-toggler" @onclick=ToggleNavMenu>
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>

View File

@ -1,4 +1,4 @@
@using System.Net.Http @using System.Net.Http
@using System.Net.Http.Json @using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Routing @using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web @using Microsoft.AspNetCore.Components.Web

View File

@ -1,4 +1,4 @@
<CascadingAuthenticationState> <CascadingAuthenticationState>
<Router AppAssembly="@typeof(Program).Assembly"> <Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData"> <Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"> <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">

View File

@ -1,4 +1,4 @@
@page "/admin-settings" @page "/admin-settings"
@attribute [Authorize(Roles = "admin")] @attribute [Authorize(Roles = "admin")]
@inject IAccessTokenProvider TokenProvider @inject IAccessTokenProvider TokenProvider
@inject NavigationManager Navigation @inject NavigationManager Navigation

View File

@ -1,4 +1,4 @@
@page "/authentication/{action}" @page "/authentication/{action}"
@inject StateService State @inject StateService State
@inject AuthenticationStateProvider AuthenticationStateProvider @inject AuthenticationStateProvider AuthenticationStateProvider
@inject NavigationManager Navigation @inject NavigationManager Navigation

View File

@ -1,4 +1,4 @@
@page "/fetchdata" @page "/fetchdata"
@using Wasm.Authentication.Shared @using Wasm.Authentication.Shared
@implements IDisposable @implements IDisposable
@attribute [Authorize] @attribute [Authorize]

View File

@ -1,4 +1,4 @@
@page "/" @page "/"
@inject StateService State @inject StateService State
@inject IJSRuntime JS @inject IJSRuntime JS
<h1>Hello, world!</h1> <h1>Hello, world!</h1>

View File

@ -1,4 +1,4 @@
@page "/new-admin" @page "/new-admin"
@attribute [Authorize] @attribute [Authorize]
@inject IAccessTokenProvider TokenProvider @inject IAccessTokenProvider TokenProvider
@inject NavigationManager Navigation @inject NavigationManager Navigation

View File

@ -1,4 +1,4 @@
@page "/User" @page "/User"
@attribute [Authorize] @attribute [Authorize]
@using System.Text.Json @using System.Text.Json
@using System.Security.Claims @using System.Security.Claims

View File

@ -1,4 +1,4 @@
@page "/preferences" @page "/preferences"
@attribute [Authorize] @attribute [Authorize]
@using System.Text.Json; @using System.Text.Json;
@using System.Text; @using System.Text;

View File

@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Components.Authorization @using Microsoft.AspNetCore.Components.Authorization
@inject NavigationManager Navigation @inject NavigationManager Navigation
@inject SignOutSessionStateManager SignOutManager @inject SignOutSessionStateManager SignOutManager

View File

@ -1,4 +1,4 @@
<div class="top-row pl-4 navbar navbar-dark"> <div class="top-row pl-4 navbar navbar-dark">
<a class="navbar-brand" href="">Wasm.Authentication.Client</a> <a class="navbar-brand" href="">Wasm.Authentication.Client</a>
<button class="navbar-toggler" @onclick="ToggleNavMenu"> <button class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span> <span class="navbar-toggler-icon"></span>

View File

@ -1,4 +1,4 @@
@inject NavigationManager Navigation @inject NavigationManager Navigation
@using Microsoft.Extensions.Options @using Microsoft.Extensions.Options
@inject IOptions<RemoteAuthenticationOptions<ApiAuthorizationProviderOptions>> Options @inject IOptions<RemoteAuthenticationOptions<ApiAuthorizationProviderOptions>> Options
@code { @code {

View File

@ -1,4 +1,4 @@
@using System.Net.Http @using System.Net.Http
@using System.Net.Http.Json @using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Authorization @using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication @using Microsoft.AspNetCore.Components.WebAssembly.Authentication

View File

@ -1,4 +1,4 @@
@page @page
@namespace Wasm.Authentication.Server.Pages @namespace Wasm.Authentication.Server.Pages
@model ErrorModel @model ErrorModel
@{ @{

View File

@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Identity @using Microsoft.AspNetCore.Identity
@using Wasm.Authentication.Server.Models @using Wasm.Authentication.Server.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

View File

@ -1,4 +1,4 @@
@page "/checkout" @page "/checkout"
@inject OrderState OrderState @inject OrderState OrderState
<div class="main"> <div class="main">

View File

@ -1,4 +1,4 @@
@page "/orderstatus" @page "/orderstatus"
@using System.Threading @using System.Threading
@using Microsoft.JSInterop @using Microsoft.JSInterop
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime

View File

@ -1,4 +1,4 @@
<div class="form-field"> <div class="form-field">
<label>Name:</label> <label>Name:</label>
<div> <div>
<InputText @bind-Value="@Address.Name" /> <InputText @bind-Value="@Address.Name" />

View File

@ -1,4 +1,4 @@
@foreach (var pizza in Order.Pizzas) @foreach (var pizza in Order.Pizzas)
{ {
<p> <p>
<strong> <strong>

View File

@ -1,4 +1,4 @@
@if (Show) @if (Show)
{ {
<div class="dialog-container"> <div class="dialog-container">
<div class="dialog"> <div class="dialog">

View File

@ -1,4 +1,4 @@
@typeparam TItem @typeparam TItem
@if (items == null) @if (items == null)
{ {

View File

@ -1,4 +1,4 @@
@using System.Net.Http @using System.Net.Http
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Forms @using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing @using Microsoft.AspNetCore.Components.Routing

View File

@ -1,4 +1,4 @@
<Router AppAssembly=typeof(Program).Assembly> <Router AppAssembly=typeof(Program).Assembly>
<Found Context="routeData"> <Found Context="routeData">
<RouteView RouteData="@routeData" /> <RouteView RouteData="@routeData" />
</Found> </Found>

View File

@ -1,4 +1,4 @@
@page "/" @page "/"
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime
Hello, world! Hello, world!

View File

@ -1,4 +1,4 @@
@page "/json" @page "/json"
@using System.Text.Json @using System.Text.Json
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime

View File

@ -1,4 +1,4 @@
@page "/orgchart" @page "/orgchart"
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime
<h1>Org Chart</h1> <h1>Org Chart</h1>

View File

@ -1,4 +1,4 @@
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime
<div class="person"> <div class="person">
<h2> <h2>

View File

@ -1,4 +1,4 @@
@page "/renderlist" @page "/renderlist"
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime
<h2>Render List</h2> <h2>Render List</h2>

View File

@ -1,4 +1,4 @@
@page "/timer" @page "/timer"
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime
@using System.Threading @using System.Threading
@implements IDisposable @implements IDisposable

View File

@ -1,4 +1,4 @@
@inherits LayoutComponentBase @inherits LayoutComponentBase
<h1>E2E Performance</h1> <h1>E2E Performance</h1>

View File

@ -1,4 +1,4 @@
@using System.Net.Http @using System.Net.Http
@using Microsoft.AspNetCore.Components.Routing @using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Forms @using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Web @using Microsoft.AspNetCore.Components.Web

View File

@ -1,4 +1,4 @@
@using System.Collections.Generic @using System.Collections.Generic
Child components follow. Child components follow.
<button class="addChild" @onclick="AddChild">Add</button> <button class="addChild" @onclick="AddChild">Add</button>
<button class="removeChild" @onclick="RemoveChild">Remove</button> <button class="removeChild" @onclick="RemoveChild">Remove</button>

View File

@ -1,4 +1,4 @@
@using Microsoft.JSInterop @using Microsoft.JSInterop
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime
<input @ref="myInput" value="Value set during render" /> <input @ref="myInput" value="Value set during render" />

View File

@ -1,4 +1,4 @@
@using System.Threading.Tasks @using System.Threading.Tasks
<div> <div>
<span id="state">@state</span> <span id="state">@state</span>

View File

@ -1,3 +1,3 @@
@page "/AuthHome" @page "/AuthHome"
Select an auth test below. Select an auth test below.

View File

@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Components.Authorization @using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.Routing @using Microsoft.AspNetCore.Components.Routing
@inject NavigationManager NavigationManager @inject NavigationManager NavigationManager

View File

@ -1,4 +1,4 @@
@inherits LayoutComponentBase @inherits LayoutComponentBase
@Body @Body

View File

@ -1,4 +1,4 @@
@page "/AuthorizeViewCases" @page "/AuthorizeViewCases"
@using Microsoft.AspNetCore.Components.Authorization @using Microsoft.AspNetCore.Components.Authorization
<div id="no-authorization-rule"> <div id="no-authorization-rule">

View File

@ -1,4 +1,4 @@
@page "/CascadingAuthenticationStateConsumer" @page "/CascadingAuthenticationStateConsumer"
@using System.Security.Claims @using System.Security.Claims
@using Microsoft.AspNetCore.Components.Authorization @using Microsoft.AspNetCore.Components.Authorization

View File

@ -1,4 +1,4 @@
@page "/PageAllowingAnonymous" @page "/PageAllowingAnonymous"
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "NobodyIsInThisRole")] @attribute [Authorize(Roles = "NobodyIsInThisRole")]
@attribute [AllowAnonymous] @attribute [AllowAnonymous]

View File

@ -1,4 +1,4 @@
@page "/PageRequiringAuthorization" @page "/PageRequiringAuthorization"
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@attribute [Authorize] @attribute [Authorize]
<div id="auth-success">Welcome to PageRequiringAuthorization!</div> <div id="auth-success">Welcome to PageRequiringAuthorization!</div>

View File

@ -1,4 +1,4 @@
@page "/PageRequiringPolicy" @page "/PageRequiringPolicy"
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Policy = "NameMustStartWithB")] @attribute [Authorize(Policy = "NameMustStartWithB")]
<div id="auth-success">Welcome to PageRequiringPolicy!</div> <div id="auth-success">Welcome to PageRequiringPolicy!</div>

View File

@ -1,4 +1,4 @@
@page "/PageRequiringRole" @page "/PageRequiringRole"
@using Microsoft.AspNetCore.Authorization @using Microsoft.AspNetCore.Authorization
@attribute [Authorize(Roles = "TestRole")] @attribute [Authorize(Roles = "TestRole")]
<div id="auth-success">Welcome to PageRequiringRole!</div> <div id="auth-success">Welcome to PageRequiringRole!</div>

View File

@ -1,4 +1,4 @@
<h3 id="bind-cases">Bind cases</h3> <h3 id="bind-cases">Bind cases</h3>
@* There are a mix of cases here using bind and bind-value for coverage *@ @* There are a mix of cases here using bind and bind-value for coverage *@

View File

@ -1,4 +1,4 @@
@typeparam TValue @typeparam TValue
<input id="@Id" type="text" value="@Value" @onchange="@(EventCallback.Factory.CreateBinder<TValue>(this, _ => ValueChanged.InvokeAsync(_), Value))" /> <input id="@Id" type="text" value="@Value" @onchange="@(EventCallback.Factory.CreateBinder<TValue>(this, _ => ValueChanged.InvokeAsync(_), Value))" />

View File

@ -1,4 +1,4 @@
@* @*
The only purpose of this component is to validate that cascaded value updates The only purpose of this component is to validate that cascaded value updates
can pass through entirely unrelated components that wouldn't normally rerender can pass through entirely unrelated components that wouldn't normally rerender
their children when they themselves are being rerendered. their children when they themselves are being rerendered.

View File

@ -1,4 +1,4 @@
@* @*
This component is to show that we can differentiate cascaded values This component is to show that we can differentiate cascaded values
by name if they are of the same type. by name if they are of the same type.
*@ *@

View File

@ -1,4 +1,4 @@
<p> <p>
Current count: Current count:
<strong id="current-count">@CurrentCounter.NumClicks</strong> <strong id="current-count">@CurrentCounter.NumClicks</strong>
</p> </p>

View File

@ -1,4 +1,4 @@
@* @*
This component is to show that: This component is to show that:
1. We can match a cascading parameter based on interface 1. We can match a cascading parameter based on interface

View File

@ -1,4 +1,4 @@
@implements ICanDecrement @implements ICanDecrement
@* @*
While it looks somewhat ridiculous to nest so many CascadingValue components, While it looks somewhat ridiculous to nest so many CascadingValue components,

View File

@ -1,4 +1,4 @@
<h1>Component capture</h1> <h1>Component capture</h1>
<p> <p>
This shows how a component reference may be captured as a field value using 'ref' syntax. This shows how a component reference may be captured as a field value using 'ref' syntax.

View File

@ -1,4 +1,4 @@
<h3 class="interactive">Component With Parameters</h3> <h3 class="interactive">Component With Parameters</h3>
<ul class="Param1"> <ul class="Param1">
@foreach (var value in Param1) @foreach (var value in Param1)

View File

@ -1,4 +1,4 @@
<span>@(isAfterDelay ? "😊" :"WAITING")</span> <span>@(isAfterDelay ? "😊" :"WAITING")</span>
@code @code
{ {
protected bool isAfterDelay; protected bool isAfterDelay;

View File

@ -1,4 +1,4 @@
<p> <p>
After a 1 second delay, the output should be 100x😊, with no remaining "WAITING" markers. After a 1 second delay, the output should be 100x😊, with no remaining "WAITING" markers.
</p> </p>

View File

@ -1,4 +1,4 @@
@inject Microsoft.Extensions.Configuration.IConfiguration Config @inject Microsoft.Extensions.Configuration.IConfiguration Config
@inject Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment HostEnvironment @inject Microsoft.AspNetCore.Components.WebAssembly.Hosting.IWebAssemblyHostEnvironment HostEnvironment
<ul> <ul>

View File

@ -1,4 +1,4 @@
<h1>Counter</h1> <h1>Counter</h1>
<p>Current count: @currentCount</p> <p>Current count: @currentCount</p>
<p><button id="counter" @onclick="@(handleClicks ? (Action)IncrementCount : null)">Click me</button></p> <p><button id="counter" @onclick="@(handleClicks ? (Action)IncrementCount : null)">Click me</button></p>

View File

@ -1,4 +1,4 @@
<h1>Counter</h1> <h1>Counter</h1>
<!-- Note: passing 'Message' parameter with lowercase name to show it's case insensitive --> <!-- Note: passing 'Message' parameter with lowercase name to show it's case insensitive -->
<p>Current count: <MessageComponent message=@currentCount.ToString() /></p> <p>Current count: <MessageComponent message=@currentCount.ToString() /></p>

View File

@ -1,4 +1,4 @@
@inject NavigationManager NavigationManager @inject NavigationManager NavigationManager
<h3>Select your language</h3> <h3>Select your language</h3>
<select @onchange="@OnSelected" id="culture-selector"> <select @onchange="@OnSelected" id="culture-selector">

View File

@ -1,4 +1,4 @@
<div id="cool_beans" data-tab="@TabId">@TabId</div> <div id="cool_beans" data-tab="@TabId">@TabId</div>
@code { @code {
string TabId = "17"; string TabId = "17";

View File

@ -1,4 +1,4 @@
<h1>Dispatching</h1> <h1>Dispatching</h1>
<p> <p>
Sometimes, renders need to be triggered in response to non-lifecyle events. Sometimes, renders need to be triggered in response to non-lifecyle events.

View File

@ -1,4 +1,4 @@
<div id="duplicate-on-element"> <div id="duplicate-on-element">
<DuplicateAttributesOnElementChildComponent <DuplicateAttributesOnElementChildComponent
BoolAttributeBefore="true" BoolAttributeBefore="true"
StringAttributeBefore="original-text" StringAttributeBefore="original-text"

View File

@ -1,4 +1,4 @@
@if (StringAttributeBefore != null) @if (StringAttributeBefore != null)
{ {
<div string="@StringAttributeBefore" <div string="@StringAttributeBefore"
bool="@BoolAttributeBefore" bool="@BoolAttributeBefore"

View File

@ -1,4 +1,4 @@
@using Microsoft.JSInterop @using Microsoft.JSInterop
@inject IJSRuntime JSRuntime @inject IJSRuntime JSRuntime
<h1>Element capture</h1> <h1>Element capture</h1>

View File

@ -1,4 +1,4 @@
<div> <div>
<h2>Error throwing buttons</h2> <h2>Error throwing buttons</h2>
<p> <p>
<button id="throw-simple-exception" @onclick="@(ThrowSimple)">Throw simple exception</button> <button id="throw-simple-exception" @onclick="@(ThrowSimple)">Throw simple exception</button>

View File

@ -1,4 +1,4 @@
<h3 id="event-bubbling">Bubbling standard event</h3> <h3 id="event-bubbling">Bubbling standard event</h3>
@* Temporarily hard-coding the internal names - this will be replaced once the Razor compiler supports @onevent:stopPropagation and @onevent:preventDefault *@ @* Temporarily hard-coding the internal names - this will be replaced once the Razor compiler supports @onevent:stopPropagation and @onevent:preventDefault *@
<div @onclick="@(() => LogEvent("parent onclick"))"> <div @onclick="@(() => LogEvent("parent onclick"))">

View File

@ -1,4 +1,4 @@

<button @onclick="OnClick">@Text</button> <button @onclick="OnClick">@Text</button>
@code { @code {

View File

@ -1,4 +1,4 @@
@* @*
Test cases for using EventCallback with various delegate scenarios that used to be troublesome. Test cases for using EventCallback with various delegate scenarios that used to be troublesome.
Currently these cases are **VERBOSE** because we haven't yet landed the compiler support for EventCallback. Currently these cases are **VERBOSE** because we haven't yet landed the compiler support for EventCallback.

View File

@ -1,4 +1,4 @@

<button @onclick="OnClick">@Text</button> <button @onclick="OnClick">@Text</button>
@code { @code {

View File

@ -1,4 +1,4 @@

<InnerButton OnClick="@OnClick" Text="@Text"/> <InnerButton OnClick="@OnClick" Text="@Text"/>
@code { @code {

View File

@ -1,4 +1,4 @@

<button @onclick="OnClick">@Text</button> <button @onclick="OnClick">@Text</button>
@code { @code {

Some files were not shown because too many files have changed in this diff Show More