Normalise trailing whitespace and line endings everywhere

This commit is contained in:
SteveSandersonMS
2016-03-01 01:10:43 +00:00
parent c425137423
commit 74cac774f8
174 changed files with 782 additions and 783 deletions

View File

@@ -16,14 +16,14 @@ namespace ReactExample.Controllers
}
}
}
public class PersonDto {
public string name { get; set; }
public string city { get; set; }
public string state { get; set; }
public string country { get; set; }
public string company { get; set; }
[Range(1, 10)]
public int favoriteNumber { get; set; }
}

View File

@@ -16,7 +16,7 @@ export default function renderApp (params) {
const app = <RouterContext {...renderProps} />;
// Render it as an HTML string which can be injected into the response
const html = renderToString(app);
const html = renderToString(app);
resolve({ html });
});
});

View File

@@ -5,7 +5,7 @@ export class CustomPager extends React.Component {
pageChange(event) {
this.props.setPage(parseInt(event.target.getAttribute("data-value")));
}
render() {
var previous = null;
var next = null;
@@ -47,4 +47,4 @@ CustomPager.defaultProps = {
nextText: '',
previousText: '',
currentPage: 0
};
};

View File

@@ -8,11 +8,11 @@ export class PersonEditor extends React.Component {
super();
this.state = { savedChanges: false };
}
onChange() {
this.setState({ savedChanges: false });
}
submit(model, reset, setErrors) {
PersonEditor.sendJson('put', `/api/people/${ this.props.params.personId }`, model).then(response => {
if (response.ok) {
@@ -23,7 +23,7 @@ export class PersonEditor extends React.Component {
}
});
}
render() {
var personId = parseInt(this.props.params.personId);
var person = fakeData.filter(p => p.id === personId)[0];
@@ -46,12 +46,12 @@ export class PersonEditor extends React.Component {
</Formsy.Form>
</div>;
}
static sendJson(method, url, object) {
return fetch(url, {
method: method,
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(object)
body: JSON.stringify(object)
});
}
}

View File

@@ -6,7 +6,7 @@ import { PersonEditor } from './PersonEditor.jsx';
export const routes = <Route>
<Route path="/" component={ PeopleGrid } />
<Route path="/:pageIndex" component={ PeopleGrid } />
<Route path="/edit/:personId" component={ PersonEditor } />
<Route path="/edit/:personId" component={ PersonEditor } />
</Route>;
export class ReactApp extends React.Component {

View File

@@ -16,4 +16,4 @@
<DevelopmentServerPort>2311</DevelopmentServerPort>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" />
</Project>
</Project>

View File

@@ -52,7 +52,7 @@ namespace ReactExample
// send the request to the following path or controller action.
app.UseExceptionHandler("/Home/Error");
}
// In dev mode, the JS/TS/etc is compiled and served dynamically and supports hot replacement.
// In production, we assume you've used webpack to emit the prebuilt content to disk.
if (env.IsDevelopment()) {

View File

@@ -1,6 +1,6 @@
<div id="react-app" asp-prerender-module="ReactApp/boot-server.jsx"
asp-prerender-webpack-config="webpack.config.js"></div>
@section scripts {
<script src="/dist/main.js"></script>
}
<div id="react-app" asp-prerender-module="ReactApp/boot-server.jsx"
asp-prerender-webpack-config="webpack.config.js"></div>
@section scripts {
<script src="/dist/main.js"></script>
}

View File

@@ -1,6 +1,6 @@
@{
ViewData["Title"] = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>
@{
ViewData["Title"] = "Error";
}
<h1 class="text-danger">Error.</h1>
<h2 class="text-danger">An error occurred while processing your request.</h2>

View File

@@ -1,14 +1,14 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>ReactExample</title>
<link rel="stylesheet" href="/dist/main.css" />
</head>
<body>
<div class="container">
@RenderBody()
</div>
@RenderSection("scripts", required: false)
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>ReactExample</title>
<link rel="stylesheet" href="/dist/main.css" />
</head>
<body>
<div class="container">
@RenderBody()
</div>
@RenderSection("scripts", required: false)
</body>
</html>

View File

@@ -1,3 +1,3 @@
@using ReactExample
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
@addTagHelper "*, Microsoft.AspNet.SpaServices"
@using ReactExample
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
@addTagHelper "*, Microsoft.AspNet.SpaServices"

View File

@@ -1,3 +1,3 @@
@{
Layout = "_Layout";
}
@{
Layout = "_Layout";
}

View File

@@ -40,4 +40,4 @@
"npm install"
]
}
}
}

View File

@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
</handlers>
<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false"/>
</system.webServer>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<handlers>
<add name="httpPlatformHandler" path="*" verb="*" modules="httpPlatformHandler" resourceType="Unspecified"/>
</handlers>
<httpPlatform processPath="%DNX_PATH%" arguments="%DNX_ARGS%" stdoutLogEnabled="false"/>
</system.webServer>
</configuration>