Skip to content

Made the encodings of .razor and .cshtml files in the repo consistent #23502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ indent_size = 4
[*.sh]
indent_size = 4
end_of_line = lf

[*.{razor,cshtml}]
charset = utf-8-bom
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model AccessDeniedModel
@{
ViewData["Title"] = "Access denied";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model ErrorModel
@{
ViewData["Title"] = "Error";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model SignedOutModel
@{
ViewData["Title"] = "Signed out";
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Hosting
@using Microsoft.AspNetCore.Hosting
@using Microsoft.AspNetCore.Mvc.ViewEngines

@inject IWebHostEnvironment Environment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model AccessDeniedModel
@{
ViewData["Title"] = "Access denied";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model ErrorModel
@{
ViewData["Title"] = "Error";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model SignedOutModel
@{
ViewData["Title"] = "Signed out";
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Hosting
@using Microsoft.AspNetCore.Hosting
@using Microsoft.AspNetCore.Mvc.ViewEngines

@inject IWebHostEnvironment Environment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model AzureADB2CSample.Pages.AboutModel
@{
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Authentication.AzureADB2C.UI
@using Microsoft.AspNetCore.Authentication.AzureADB2C.UI
@using Microsoft.Extensions.Options
@inject IOptionsMonitor<AzureADB2COptions> AzureADB2COptions
@{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@namespace AzureADB2CSample.Pages
@namespace AzureADB2CSample.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
2 changes: 1 addition & 1 deletion src/Azure/AzureAD/samples/AzureADSample/Pages/Index.cshtml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if (User.Identity.IsAuthenticated)
@if (User.Identity.IsAuthenticated)
{
<ul class="nav navbar-nav navbar-right">
<li class="navbar-text">Hello @User.Identity.Name!</li>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@namespace AzureADSample.Pages
@namespace AzureADSample.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@implements IDisposable
@implements IDisposable
@inject AuthenticationStateProvider AuthenticationStateProvider

<CascadingValue TValue="Task<AuthenticationState>" Value="@_currentAuthenticationStateTask" ChildContent="@ChildContent" />
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Samples/BlazorServerApp/Pages/Index.razor
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/"
@page "/"

<h1>Hello, world!</h1>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@inherits LayoutComponentBase
@inherits LayoutComponentBase

<div class="sidebar">
<NavMenu />
Expand Down
Original file line number Diff line number Diff line change
@@ -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>
<button class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@using Microsoft.AspNetCore.Components.Web
@using Microsoft.AspNetCore.Components.Web
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Router AppAssembly=typeof(StandaloneApp.Program).Assembly>
<Router AppAssembly=typeof(StandaloneApp.Program).Assembly>
<Found Context="routeData">
<RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
</Found>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/counter"
@page "/counter"

<h1>Counter</h1>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/fetchdata"
@page "/fetchdata"
@page "/fetchdata/{StartDate:datetime}"
@inject HttpClient Http

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@inherits LayoutComponentBase
@inherits LayoutComponentBase

<div class="sidebar">
<NavMenu />
Expand Down
Original file line number Diff line number Diff line change
@@ -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>
<button class="navbar-toggler" @onclick=ToggleNavMenu>
<span class="navbar-toggler-icon"></span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using System.Net.Http
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<CascadingAuthenticationState>
<CascadingAuthenticationState>
<Router AppAssembly="@typeof(Program).Assembly">
<Found Context="routeData">
<AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/admin-settings"
@page "/admin-settings"
@attribute [Authorize(Roles = "admin")]
@inject IAccessTokenProvider TokenProvider
@inject NavigationManager Navigation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/authentication/{action}"
@page "/authentication/{action}"
@inject StateService State
@inject AuthenticationStateProvider AuthenticationStateProvider
@inject NavigationManager Navigation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/fetchdata"
@page "/fetchdata"
@using Wasm.Authentication.Shared
@implements IDisposable
@attribute [Authorize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/"
@page "/"
@inject StateService State
@inject IJSRuntime JS
<h1>Hello, world!</h1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/new-admin"
@page "/new-admin"
@attribute [Authorize]
@inject IAccessTokenProvider TokenProvider
@inject NavigationManager Navigation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/User"
@page "/User"
@attribute [Authorize]
@using System.Text.Json
@using System.Security.Claims
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/preferences"
@page "/preferences"
@attribute [Authorize]
@using System.Text.Json;
@using System.Text;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@inject NavigationManager Navigation
@inject SignOutSessionStateManager SignOutManager

Expand Down
Original file line number Diff line number Diff line change
@@ -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>
<button class="navbar-toggler" @onclick="ToggleNavMenu">
<span class="navbar-toggler-icon"></span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@inject NavigationManager Navigation
@inject NavigationManager Navigation
@using Microsoft.Extensions.Options
@inject IOptions<RemoteAuthenticationOptions<ApiAuthorizationProviderOptions>> Options
@code {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using System.Net.Http
@using System.Net.Http
@using System.Net.Http.Json
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.WebAssembly.Authentication
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page
@page
@namespace Wasm.Authentication.Server.Pages
@model ErrorModel
@{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.Identity
@using Wasm.Authentication.Server.Models
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/checkout"
@page "/checkout"
@inject OrderState OrderState

<div class="main">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/orderstatus"
@page "/orderstatus"
@using System.Threading
@using Microsoft.JSInterop
@inject IJSRuntime JSRuntime
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="form-field">
<div class="form-field">
<label>Name:</label>
<div>
<InputText @bind-Value="@Address.Name" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@foreach (var pizza in Order.Pizzas)
@foreach (var pizza in Order.Pizzas)
{
<p>
<strong>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@if (Show)
@if (Show)
{
<div class="dialog-container">
<div class="dialog">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@typeparam TItem
@typeparam TItem

@if (items == null)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using System.Net.Http
@using System.Net.Http
@using Microsoft.AspNetCore.Authorization
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Router AppAssembly=typeof(Program).Assembly>
<Router AppAssembly=typeof(Program).Assembly>
<Found Context="routeData">
<RouteView RouteData="@routeData" />
</Found>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/"
@page "/"
@inject IJSRuntime JSRuntime

Hello, world!
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/json"
@page "/json"
@using System.Text.Json
@inject IJSRuntime JSRuntime

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/orgchart"
@page "/orgchart"
@inject IJSRuntime JSRuntime

<h1>Org Chart</h1>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@inject IJSRuntime JSRuntime
@inject IJSRuntime JSRuntime

<div class="person">
<h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/renderlist"
@page "/renderlist"
@inject IJSRuntime JSRuntime

<h2>Render List</h2>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/timer"
@page "/timer"
@inject IJSRuntime JSRuntime
@using System.Threading
@implements IDisposable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@inherits LayoutComponentBase
@inherits LayoutComponentBase

<h1>E2E Performance</h1>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using System.Net.Http
@using System.Net.Http
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Web
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using System.Collections.Generic
@using System.Collections.Generic
Child components follow.
<button class="addChild" @onclick="AddChild">Add</button>
<button class="removeChild" @onclick="RemoveChild">Remove</button>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Microsoft.JSInterop
@using Microsoft.JSInterop
@inject IJSRuntime JSRuntime

<input @ref="myInput" value="Value set during render" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using System.Threading.Tasks
@using System.Threading.Tasks

<div>
<span id="state">@state</span>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@page "/AuthHome"
@page "/AuthHome"

Select an auth test below.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.Authorization
@using Microsoft.AspNetCore.Components.Routing
@inject NavigationManager NavigationManager

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@inherits LayoutComponentBase
@inherits LayoutComponentBase

@Body

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/AuthorizeViewCases"
@page "/AuthorizeViewCases"
@using Microsoft.AspNetCore.Components.Authorization

<div id="no-authorization-rule">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@page "/CascadingAuthenticationStateConsumer"
@page "/CascadingAuthenticationStateConsumer"
@using System.Security.Claims
@using Microsoft.AspNetCore.Components.Authorization

Expand Down
Loading