Skip to content

Commit

Permalink
Fix double words (#19621)
Browse files Browse the repository at this point in the history
  • Loading branch information
guardrex authored Aug 22, 2020
1 parent 6462012 commit 5325c10
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 18 deletions.
2 changes: 1 addition & 1 deletion aspnetcore/blazor/host-and-deploy/webassembly.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Blazor relies on the host to the serve the appropriate compressed files. When us
* When hosting on static hosting solutions that don't support statically-compressed file content negotiation, such as GitHub Pages, consider configuring the app to fetch and decode Brotli compressed files:

* Obtain the JavaScript Brotli decoder from the [google/brotli GitHub repository](https://github.com/google/brotli). As of July 2020, the decoder file is named `decode.min.js` and found in the repository's [`js` folder](https://github.com/google/brotli/tree/master/js).
* Update the app to use the decoder. Change the markup inside the the closing `<body>` tag in `wwwroot/index.html` to the following:
* Update the app to use the decoder. Change the markup inside the closing `<body>` tag in `wwwroot/index.html` to the following:

```html
<script src="decode.min.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions aspnetcore/blazor/progressive-web-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Optionally, PWA can be configured for an app created from the ASP.NET Core Hoste

When visiting an app created using the PWA template, users have the option of installing the app into their OS's start menu, dock, or home screen. The way this option is presented depends on the user's browser. When using desktop Chromium-based browsers, such as Edge or Chrome, an **Add** button appears within the URL bar. After the user selects the **Add** button, they receive a confirmation dialog:

![The confirmation diaglog in Google Chrome presents an Install button button to the user for the 'MyBlazorPwa' app.](progressive-web-app/_static/image2.png)
![The confirmation dialog in Google Chrome presents an Install button to the user for the 'MyBlazorPwa' app.](progressive-web-app/_static/image2.png)

On iOS, visitors can install the PWA using Safari's **Share** button and its **Add to Homescreen** option. On Chrome for Android, users should select the **Menu** button in the upper-right corner, followed by **Add to Home screen**.

Expand Down Expand Up @@ -276,7 +276,7 @@ To create an offline PWA app that interacts with authentication:
* Queue operations while the app is offline and apply them when the app returns online.
* During sign out, clear the stored user.

The [`CarChecker`](https://github.com/SteveSandersonMS/CarChecker) sample app demonstrates the the preceding approaches. See the following parts of the app:
The [`CarChecker`](https://github.com/SteveSandersonMS/CarChecker) sample app demonstrates the preceding approaches. See the following parts of the app:

* `OfflineAccountClaimsPrincipalFactory` (`Client/Data/OfflineAccountClaimsPrincipalFactory.cs`)
* `LocalVehiclesStore` (`Client/Data/LocalVehiclesStore.cs`)
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/blazor/security/server/additional-scenarios.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ If tacking on a segment to the authority isn't appropriate for the app's OIDC pr
### Code changes

* The list of claims in the ID token changes for v2.0 endpoints. For more information, see [Why update to Microsoft identity platform (v2.0)?](/azure/active-directory/azuread-dev/azure-ad-endpoint-comparison) in the Azure documentation.
* Since resources are specified in scope URIs for v2.0 endpoints, remove the the <xref:Microsoft.AspNetCore.Builder.OpenIdConnectOptions.Resource?displayProperty=nameWithType> property setting in <xref:Microsoft.AspNetCore.Builder.OpenIdConnectOptions>:
* Since resources are specified in scope URIs for v2.0 endpoints, remove the <xref:Microsoft.AspNetCore.Builder.OpenIdConnectOptions.Resource?displayProperty=nameWithType> property setting in <xref:Microsoft.AspNetCore.Builder.OpenIdConnectOptions>:

```csharp
services.Configure<OpenIdConnectOptions>(AzureADDefaults.OpenIdScheme, options =>
Expand Down
6 changes: 3 additions & 3 deletions aspnetcore/host-and-deploy/proxy-load-balancer.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Configure the middleware with <xref:Microsoft.AspNetCore.Builder.ForwardedHeader

### Forwarded Headers Middleware order

Forwarded Headers Middleware should run before other middleware. This ordering ensures that the middleware relying on forwarded headers information can consume the header values for processing. Forwarded Headers Middleware can run after diagnostics and error handling, but it must be be run before calling `UseHsts`:
Forwarded Headers Middleware should run before other middleware. This ordering ensures that the middleware relying on forwarded headers information can consume the header values for processing. Forwarded Headers Middleware can run after diagnostics and error handling, but it must be run before calling `UseHsts`:

[!code-csharp[](~/host-and-deploy/proxy-load-balancer/3.1samples/Startup.cs?name=snippet&highlight=13-17,25,30)]

Expand Down Expand Up @@ -192,7 +192,7 @@ You can also supply the address in hexadecimal format (`10.11.12.1` represented

```csharp
// To access IPNetwork and IPAddress, add the following namespaces:
// using using System.Net;
// using System.Net;
// using Microsoft.AspNetCore.HttpOverrides;
services.Configure<ForwardedHeadersOptions>(options =>
{
Expand Down Expand Up @@ -570,7 +570,7 @@ You can also supply the address in hexadecimal format (`10.11.12.1` represented

```csharp
// To access IPNetwork and IPAddress, add the following namespaces:
// using using System.Net;
// using System.Net;
// using Microsoft.AspNetCore.HttpOverrides;
services.Configure<ForwardedHeadersOptions>(options =>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The Index page (`wwwroot/index.html`) page includes a script that defines the `AuthenticationService` in JavaScript. `AuthenticationService` handles the low-level details of the the OIDC protocol. The app internally calls methods defined in the script to perform the authentication operations.
The Index page (`wwwroot/index.html`) page includes a script that defines the `AuthenticationService` in JavaScript. `AuthenticationService` handles the low-level details of the OIDC protocol. The app internally calls methods defined in the script to perform the authentication operations.

```html
<script src="_content/Microsoft.AspNetCore.Components.WebAssembly.Authentication/
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/includes/blazor-security/index-page-msal.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
The Index page (`wwwroot/index.html`) page includes a script that defines the `AuthenticationService` in JavaScript. `AuthenticationService` handles the low-level details of the the OIDC protocol. The app internally calls methods defined in the script to perform the authentication operations.
The Index page (`wwwroot/index.html`) page includes a script that defines the `AuthenticationService` in JavaScript. `AuthenticationService` handles the low-level details of the OIDC protocol. The app internally calls methods defined in the script to perform the authentication operations.

```html
<script src="_content/Microsoft.Authentication.WebAssembly.Msal/
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/migration/identity.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ In the previous article, we [migrated configuration from an ASP.NET MVC project

In ASP.NET MVC, authentication and identity features are configured using ASP.NET Identity in *Startup.Auth.cs* and *IdentityConfig.cs*, located in the *App_Start* folder. In ASP.NET Core MVC, these features are configured in *Startup.cs*.

Install the the following NuGet packages:
Install the following NuGet packages:

* `Microsoft.AspNetCore.Identity.EntityFrameworkCore`
* `Microsoft.AspNetCore.Authentication.Cookies`
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/mvc/views/razor.md
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ If the *EvenMorePages* folder in the preceding example has an imports file with

The `@page` directive has different effects depending on the type of the file where it appears. The directive:

* In in a *.cshtml* file indicates that the file is a Razor Page. For more information, see [Custom routes](xref:razor-pages/index#custom-routes) and <xref:razor-pages/index>.
* In a *.cshtml* file indicates that the file is a Razor Page. For more information, see [Custom routes](xref:razor-pages/index#custom-routes) and <xref:razor-pages/index>.
* Specifies that a Razor component should handle requests directly. For more information, see <xref:blazor/fundamentals/routing>.

::: moniker-end
Expand Down
2 changes: 1 addition & 1 deletion aspnetcore/security/authentication/cookie.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ await HttpContext.SignInAsync(

::: moniker range="< aspnetcore-3.0"

ASP.NET Core Identity is a complete, full-featured authentication provider for creating and maintaining logins. However, a cookie-based authentication authentication provider without ASP.NET Core Identity can be used. For more information, see <xref:security/authentication/identity>.
ASP.NET Core Identity is a complete, full-featured authentication provider for creating and maintaining logins. However, a cookie-based authentication provider without ASP.NET Core Identity can be used. For more information, see <xref:security/authentication/identity>.

[View or download sample code](https://github.com/dotnet/AspNetCore.Docs/tree/master/aspnetcore/security/authentication/cookie/samples) ([how to download](xref:index#how-to-download-a-sample))

Expand Down
10 changes: 4 additions & 6 deletions aspnetcore/tutorials/razor-pages/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ The `PageModel` base class contains a `ViewData` dictionary property that can be

The `"Title"` property is used in the *Pages/Shared/_Layout.cshtml* file. The following markup shows the first few lines of the *_Layout.cshtml* file.

<!-- we need a snapshot copy of layout because we are
changing in in the next step.
-->
<!-- We need a snapshot copy of layout because we are changing in the next step. -->

[!code-cshtml[](razor-pages-start/snapshot_sample/RazorPagesMovie/Pages/NU/_Layout.cshtml?highlight=6)]

The line `@*Markup removed for brevity.*@` is a Razor comment. Unlike HTML comments (`<!-- -->`), Razor comments are not sent to the client.
Expand Down Expand Up @@ -271,9 +270,8 @@ The `PageModel` base class has a `ViewData` dictionary property that can be used

The "Title" property is used in the *Pages/Shared/_Layout.cshtml* file. The following markup shows the first few lines of the *_Layout.cshtml* file.

<!-- we need a snapshot copy of layout because we are
changing in in the next step.
-->
<!-- We need a snapshot copy of layout because we are changing in the next step. -->

[!code-cshtml[](razor-pages-start/snapshot_sample/RazorPagesMovie/Pages/NU/_Layout.cshtml?highlight=6-99)]

The line `@*Markup removed for brevity.*@` is a Razor comment which doesn't appear in your layout file. Unlike HTML comments (`<!-- -->`), Razor comments are not sent to the client.
Expand Down

0 comments on commit 5325c10

Please sign in to comment.