Permalink
Browse files

Normalise trailing whitespace and line endings everywhere

  • Loading branch information...
1 parent c425137 commit 74cac774f8800f59da9aaf98950b7da9e2297d72 @SteveSandersonMS SteveSandersonMS committed Mar 1, 2016
Showing with 782 additions and 783 deletions.
  1. +2 −2 .gitattributes
  2. +1 −1 .travis.yml
  3. +1 −1 NuGet.master.config
  4. +1 −1 README.md
  5. +1 −1 appveyor.yml
  6. +1 −1 samples/angular/MusicStore/Apis/ArtistsApiController.cs
  7. +1 −1 samples/angular/MusicStore/Apis/GenresApiController.cs
  8. +1 −1 samples/angular/MusicStore/Apis/Models/AccountViewModels.cs
  9. +2 −2 samples/angular/MusicStore/Apis/Models/Album.cs
  10. +1 −1 samples/angular/MusicStore/Apis/Models/Artist.cs
  11. +1 −1 samples/angular/MusicStore/Apis/Models/CartItem.cs
  12. +1 −1 samples/angular/MusicStore/Apis/Models/Genre.cs
  13. +1 −1 samples/angular/MusicStore/Apis/Models/MusicStoreContext.cs
  14. +1 −1 samples/angular/MusicStore/Apis/Models/Order.cs
  15. +1 −1 samples/angular/MusicStore/Apis/Models/OrderDetail.cs
  16. +5 −5 samples/angular/MusicStore/Apis/Models/SampleData.cs
  17. +3 −3 samples/angular/MusicStore/Apis/Models/SentimentAnalysis.cs
  18. +3 −3 samples/angular/MusicStore/Apis/Models/ShoppingCart.cs
  19. +1 −1 samples/angular/MusicStore/Infrastructure/NoCacheAttribute.cs
  20. +1 −1 samples/angular/MusicStore/Infrastructure/PagedList.cs
  21. +1 −1 samples/angular/MusicStore/MusicStore.xproj
  22. +4 −4 samples/angular/MusicStore/Startup.cs
  23. +26 −26 samples/angular/MusicStore/Views/Home/Index.cshtml
  24. +6 −6 samples/angular/MusicStore/Views/Shared/Error.cshtml
  25. +40 −40 samples/angular/MusicStore/Views/Shared/_Layout.cshtml
  26. +4 −4 samples/angular/MusicStore/Views/_ViewImports.cshtml
  27. +3 −3 samples/angular/MusicStore/Views/_ViewStart.cshtml
  28. +1 −1 samples/angular/MusicStore/project.json
  29. +1 −1 samples/angular/MusicStore/wwwroot/ng-app/components/admin/admin-home/admin-home.ts
  30. +3 −3 ...les/angular/MusicStore/wwwroot/ng-app/components/admin/album-delete-prompt/album-delete-prompt.ts
  31. +1 −1 samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-details/album-details.html
  32. +1 −1 samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-details/album-details.ts
  33. +5 −5 samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-edit/album-edit.html
  34. +4 −4 samples/angular/MusicStore/wwwroot/ng-app/components/admin/album-edit/album-edit.ts
  35. +1 −1 samples/angular/MusicStore/wwwroot/ng-app/components/admin/albums-list/albums-list.html
  36. +7 −7 samples/angular/MusicStore/wwwroot/ng-app/components/admin/albums-list/albums-list.ts
  37. +1 −1 samples/angular/MusicStore/wwwroot/ng-app/components/admin/form-field/form-field.ts
  38. +3 −3 samples/angular/MusicStore/wwwroot/ng-app/components/public/album-details/album-details.html
  39. +1 −1 samples/angular/MusicStore/wwwroot/ng-app/components/public/album-details/album-details.ts
  40. +1 −1 samples/angular/MusicStore/wwwroot/ng-app/components/public/genre-contents/genre-contents.ts
  41. +1 −1 samples/angular/MusicStore/wwwroot/ng-app/components/public/genres-list/genres-list.ts
  42. +2 −2 samples/angular/MusicStore/wwwroot/ng-app/components/public/home/home.ts
  43. +9 −9 samples/angular/MusicStore/wwwroot/web.config
  44. +1 −1 samples/misc/ES2015Transpilation/ES2015Transpilation.xproj
  45. +4 −4 samples/misc/ES2015Transpilation/Startup.cs
  46. +6 −6 samples/misc/ES2015Transpilation/Views/Home/Index.cshtml
  47. +6 −6 samples/misc/ES2015Transpilation/Views/Shared/Error.cshtml
  48. +11 −11 samples/misc/ES2015Transpilation/Views/Shared/_Layout.cshtml
  49. +2 −2 samples/misc/ES2015Transpilation/Views/_ViewImports.cshtml
  50. +3 −3 samples/misc/ES2015Transpilation/Views/_ViewStart.cshtml
  51. +1 −1 samples/misc/ES2015Transpilation/project.json
  52. +1 −1 samples/misc/ES2015Transpilation/transpilation.js
  53. +9 −9 samples/misc/ES2015Transpilation/wwwroot/web.config
  54. +1 −1 samples/misc/Webpack/Startup.cs
  55. +10 −10 samples/misc/Webpack/Views/Home/Index.cshtml
  56. +6 −6 samples/misc/Webpack/Views/Shared/Error.cshtml
  57. +14 −14 samples/misc/Webpack/Views/Shared/_Layout.cshtml
  58. +2 −2 samples/misc/Webpack/Views/_ViewImports.cshtml
  59. +3 −3 samples/misc/Webpack/Views/_ViewStart.cshtml
  60. +1 −1 samples/misc/Webpack/webpack.config.js
  61. +1 −1 samples/misc/Webpack/webpack.config.prod.js
  62. +9 −9 samples/misc/Webpack/wwwroot/web.config
  63. +1 −1 samples/react/MusicStore/Apis/ArtistsApiController.cs
  64. +1 −1 samples/react/MusicStore/Apis/GenresApiController.cs
  65. +1 −1 samples/react/MusicStore/Apis/Models/AccountViewModels.cs
  66. +2 −2 samples/react/MusicStore/Apis/Models/Album.cs
  67. +1 −1 samples/react/MusicStore/Apis/Models/Artist.cs
  68. +1 −1 samples/react/MusicStore/Apis/Models/CartItem.cs
  69. +1 −1 samples/react/MusicStore/Apis/Models/Genre.cs
  70. +1 −1 samples/react/MusicStore/Apis/Models/MusicStoreContext.cs
  71. +1 −1 samples/react/MusicStore/Apis/Models/Order.cs
  72. +1 −1 samples/react/MusicStore/Apis/Models/OrderDetail.cs
  73. +5 −5 samples/react/MusicStore/Apis/Models/SampleData.cs
  74. +3 −3 samples/react/MusicStore/Apis/Models/ShoppingCart.cs
  75. +1 −1 samples/react/MusicStore/Infrastructure/NoCacheAttribute.cs
  76. +1 −1 samples/react/MusicStore/Infrastructure/PagedList.cs
  77. +1 −1 samples/react/MusicStore/ReactApp/boot-server.tsx
  78. +3 −3 samples/react/MusicStore/ReactApp/components/NavMenu.tsx
  79. +2 −2 samples/react/MusicStore/ReactApp/components/public/AlbumDetails.tsx
  80. +1 −1 samples/react/MusicStore/ReactApp/components/public/AlbumTile.tsx
  81. +1 −1 samples/react/MusicStore/ReactApp/components/public/GenreDetails.tsx
  82. +3 −3 samples/react/MusicStore/ReactApp/configureStore.ts
  83. +2 −2 samples/react/MusicStore/ReactApp/store/AlbumDetails.ts
  84. +1 −1 samples/react/MusicStore/ReactApp/store/FeaturedAlbums.ts
  85. +3 −3 samples/react/MusicStore/ReactApp/store/GenreDetails.ts
  86. +1 −1 samples/react/MusicStore/ReactApp/store/GenreList.ts
  87. +1 −1 samples/react/MusicStore/ReactApp/store/index.ts
  88. +4 −4 samples/react/MusicStore/Startup.cs
  89. +11 −11 samples/react/MusicStore/Views/Home/Index.cshtml
  90. +6 −6 samples/react/MusicStore/Views/Shared/Error.cshtml
  91. +12 −12 samples/react/MusicStore/Views/Shared/_Layout.cshtml
  92. +3 −3 samples/react/MusicStore/Views/_ViewImports.cshtml
  93. +3 −3 samples/react/MusicStore/Views/_ViewStart.cshtml
  94. +9 −9 samples/react/MusicStore/wwwroot/web.config
  95. +2 −2 samples/react/ReactGrid/Controllers/PeopleApiController.cs
  96. +1 −1 samples/react/ReactGrid/ReactApp/boot-server.jsx
  97. +2 −2 samples/react/ReactGrid/ReactApp/components/CustomPager.jsx
  98. +5 −5 samples/react/ReactGrid/ReactApp/components/PersonEditor.jsx
  99. +1 −1 samples/react/ReactGrid/ReactApp/components/ReactApp.jsx
  100. +1 −1 samples/react/ReactGrid/ReactGrid.xproj
  101. +1 −1 samples/react/ReactGrid/Startup.cs
  102. +6 −6 samples/react/ReactGrid/Views/Home/Index.cshtml
  103. +6 −6 samples/react/ReactGrid/Views/Shared/Error.cshtml
  104. +14 −14 samples/react/ReactGrid/Views/Shared/_Layout.cshtml
  105. +3 −3 samples/react/ReactGrid/Views/_ViewImports.cshtml
  106. +3 −3 samples/react/ReactGrid/Views/_ViewStart.cshtml
  107. +1 −1 samples/react/ReactGrid/project.json
  108. +9 −9 samples/react/ReactGrid/wwwroot/web.config
  109. +4 −4 src/Microsoft.AspNet.AngularServices/AngularPrerenderTagHelper.cs
  110. +2 −2 src/Microsoft.AspNet.AngularServices/AngularRenderer.cs
  111. +1 −1 src/Microsoft.AspNet.AngularServices/Content/Node/angular-rendering.js
  112. +1 −1 src/Microsoft.AspNet.AngularServices/Microsoft.AspNet.AngularServices.xproj
  113. +2 −2 src/Microsoft.AspNet.AngularServices/PrimeCacheHelper.cs
  114. +1 −1 src/Microsoft.AspNet.AngularServices/npm/build.js
  115. +10 −10 src/Microsoft.AspNet.AngularServices/npm/readme.md
  116. +3 −3 src/Microsoft.AspNet.AngularServices/npm/src/CachePrimedHttp.ts
  117. +4 −4 src/Microsoft.AspNet.AngularServices/npm/src/Validation.ts
  118. +3 −3 src/Microsoft.AspNet.NodeServices/Configuration.cs
  119. +4 −4 src/Microsoft.AspNet.NodeServices/Content/Node/entrypoint-http.js
  120. +1 −1 src/Microsoft.AspNet.NodeServices/Content/Node/entrypoint-stream.js
  121. +13 −13 src/Microsoft.AspNet.NodeServices/HostingModels/HttpNodeInstance.cs
  122. +7 −7 src/Microsoft.AspNet.NodeServices/HostingModels/InputOutputStreamNodeInstance.cs
  123. +6 −6 src/Microsoft.AspNet.NodeServices/HostingModels/OutOfProcessNodeInstance.cs
  124. +2 −2 src/Microsoft.AspNet.NodeServices/INodeInstance.cs
  125. +1 −1 src/Microsoft.AspNet.NodeServices/Microsoft.AspNet.NodeServices.xproj
  126. +1 −1 src/Microsoft.AspNet.NodeServices/NodeHostingModel.cs
  127. +3 −3 src/Microsoft.AspNet.NodeServices/Util/EmbeddedResourceReader.cs
  128. +1 −1 src/Microsoft.AspNet.NodeServices/Util/StringAsTempFile.cs
  129. +1 −1 src/Microsoft.AspNet.ReactServices/Microsoft.AspNet.ReactServices.xproj
  130. +1 −1 src/Microsoft.AspNet.ReactServices/npm/redux-typed/src/ObjectAssignPolyfill.ts
  131. +4 −4 src/Microsoft.AspNet.ReactServices/npm/redux-typed/src/StrongProvide.ts
  132. +9 −9 src/Microsoft.AspNet.SpaServices/Content/Node/prerenderer.js
  133. +7 −7 src/Microsoft.AspNet.SpaServices/Content/Node/webpack-dev-middleware.js
  134. +1 −1 src/Microsoft.AspNet.SpaServices/Microsoft.AspNet.SpaServices.xproj
  135. +6 −6 src/Microsoft.AspNet.SpaServices/Prerendering/PrerenderTagHelper.cs
  136. +6 −6 src/Microsoft.AspNet.SpaServices/Prerendering/Prerenderer.cs
  137. +4 −4 src/Microsoft.AspNet.SpaServices/Routing/SpaRouteConstraint.cs
  138. +3 −3 src/Microsoft.AspNet.SpaServices/Routing/SpaRouteExtensions.cs
  139. +4 −4 src/Microsoft.AspNet.SpaServices/Webpack/WebpackDevMiddleware.cs
  140. +3 −3 src/Microsoft.AspNet.SpaServices/npm/domain-task/src/fetch.ts
  141. +2 −2 src/Microsoft.AspNet.SpaServices/npm/domain-task/src/main.ts
  142. +1 −1 templates/Angular2Spa/ClientApp/components/app/app.html
  143. +1 −1 templates/Angular2Spa/ClientApp/components/counter/counter.ts
  144. +2 −2 templates/Angular2Spa/ClientApp/components/fetch-data/fetch-data.ts
  145. +1 −1 templates/Angular2Spa/ClientApp/components/home/home.html
  146. +1 −1 templates/Angular2Spa/ClientApp/components/nav-menu/nav-menu.html
  147. +3 −3 templates/Angular2Spa/Controllers/SampleDataController.cs
  148. +2 −2 templates/Angular2Spa/Startup.cs
  149. +6 −6 templates/Angular2Spa/Views/Shared/Error.cshtml
  150. +3 −3 templates/Angular2Spa/Views/_ViewImports.cshtml
  151. +3 −3 templates/Angular2Spa/Views/_ViewStart.cshtml
  152. +9 −9 templates/Angular2Spa/wwwroot/web.config
  153. +4 −4 templates/ReactSpa/ClientApp/components/Counter.tsx
  154. +2 −2 templates/ReactSpa/ClientApp/components/FetchData.tsx
  155. +1 −1 templates/ReactSpa/ClientApp/components/Home.tsx
  156. +1 −1 templates/ReactSpa/ClientApp/components/Layout.tsx
  157. +1 −1 templates/ReactSpa/ClientApp/components/NavMenu.tsx
  158. +0 −1 templates/ReactSpa/ClientApp/css/site.css
  159. +3 −3 templates/ReactSpa/Controllers/SampleDataController.cs
  160. +2 −2 templates/ReactSpa/Startup.cs
  161. +6 −6 templates/ReactSpa/Views/Shared/Error.cshtml
  162. +3 −3 templates/ReactSpa/Views/_ViewImports.cshtml
  163. +3 −3 templates/ReactSpa/Views/_ViewStart.cshtml
  164. +1 −1 templates/ReactSpa/webpack.config.prod.js
  165. +9 −9 templates/ReactSpa/wwwroot/web.config
  166. +7 −7 templates/WebApplicationBasic/Views/Home/About.cshtml
  167. +17 −17 templates/WebApplicationBasic/Views/Home/Contact.cshtml
  168. +114 −114 templates/WebApplicationBasic/Views/Home/Index.cshtml
  169. +6 −6 templates/WebApplicationBasic/Views/Shared/Error.cshtml
  170. +44 −44 templates/WebApplicationBasic/Views/Shared/_Layout.cshtml
  171. +2 −2 templates/WebApplicationBasic/Views/_ViewImports.cshtml
  172. +3 −3 templates/WebApplicationBasic/Views/_ViewStart.cshtml
  173. +1 −1 templates/WebApplicationBasic/webpack.config.prod.js
  174. +9 −9 templates/WebApplicationBasic/wwwroot/web.config
View
@@ -13,7 +13,7 @@
*.png binary
*.gif binary
-*.cs text=auto diff=csharp
+*.cs text=auto diff=csharp
*.vb text=auto
*.resx text=auto
*.c text=auto
@@ -48,4 +48,4 @@
*.fsproj text=auto
*.dbproj text=auto
*.sln text=auto eol=crlf
-*.sh eol=lf
+*.sh eol=lf
View
@@ -17,4 +17,4 @@ os:
- osx
osx_image: xcode7.1
script:
- - ./build.sh verify
+ - ./build.sh verify
View
@@ -5,4 +5,4 @@
<add key="AspNetVNext" value="https://www.myget.org/f/aspnetmaster/api/v3/index.json" />
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
</packageSources>
-</configuration>
+</configuration>
View
@@ -91,7 +91,7 @@ Note that to run the React example, you'll also need to run `webpack` from the `
```
4. Where applicable, build the project. For example, the Angular example uses Gulp, so you'll need to execute `gulp`, whereas the React example uses Webpack, so you'll need to execute `webpack`. The ES2015 example does not need to be built.
-
+
If you don't already have it, install the applicable build tool first (e.g., `npm install -g webpack`).
5. Run the project (and wait until it displays the message `Application started`)
View
@@ -4,4 +4,4 @@ build_script:
- build.cmd verify
clone_depth: 1
test: off
-deploy: off
+deploy: off
@@ -27,4 +27,4 @@ public ArtistsApiController(MusicStoreContext storeContext)
return Json(artists);
}
}
-}
+}
@@ -67,4 +67,4 @@ public GenresApiController(MusicStoreContext storeContext)
return Json(albums);
}
}
-}
+}
@@ -60,4 +60,4 @@ public class RegisterViewModel
[Compare("Password", ErrorMessage = "The password and confirmation password do not match.")]
public string ConfirmPassword { get; set; }
}
-}
+}
@@ -7,7 +7,7 @@ public class Album
{
public Album()
{
- // TODO: Temporary hack to populate the orderdetails until EF does this automatically.
+ // TODO: Temporary hack to populate the orderdetails until EF does this automatically.
OrderDetails = new List<OrderDetail>();
}
@@ -37,4 +37,4 @@ public Album()
public virtual ICollection<OrderDetail> OrderDetails { get; set; }
}
-}
+}
@@ -9,4 +9,4 @@ public class Artist
[Required]
public string Name { get; set; }
}
-}
+}
@@ -18,4 +18,4 @@ public class CartItem
public virtual Album Album { get; set; }
}
-}
+}
@@ -21,4 +21,4 @@ public Genre()
[JsonIgnore]
public virtual ICollection<Album> Albums { get; set; }
}
-}
+}
@@ -31,4 +31,4 @@ protected override void OnModelCreating(ModelBuilder builder)
base.OnModelCreating(builder);
}
}
-}
+}
@@ -70,4 +70,4 @@ public Order()
public ICollection<OrderDetail> OrderDetails { get; set; }
}
-}
+}
@@ -11,4 +11,4 @@ public class OrderDetail
public virtual Album Album { get; set; }
public virtual Order Order { get; set; }
}
-}
+}
@@ -42,13 +42,13 @@ public static class SampleData
{
// Query in a separate context so that we can attach existing entities as modified
List<TEntity> existingData;
-
+
using (var scope = serviceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope())
using (var db = scope.ServiceProvider.GetService<MusicStoreContext>())
{
existingData = db.Set<TEntity>().ToList();
}
-
+
using (var scope = serviceProvider.GetRequiredService<IServiceScopeFactory>().CreateScope())
using (var db = scope.ServiceProvider.GetService<MusicStoreContext>())
{
@@ -65,8 +65,8 @@ public static class SampleData
private static Album[] GetAlbums(string imgUrl, Dictionary<string, Genre> genres, Dictionary<string, Artist> artists)
{
- var albums = new Album[]
- {
+ var albums = new Album[]
+ {
new Album { Title = "The Best Of The Men At Work", Genre = genres["Pop"], Price = 8.99M, Artist = artists["Men At Work"], AlbumArtUrl = imgUrl },
new Album { Title = "...And Justice For All", Genre = genres["Metal"], Price = 8.99M, Artist = artists["Metallica"], AlbumArtUrl = imgUrl },
new Album { Title = "עד גבול האור", Genre = genres["World"], Price = 8.99M, Artist = artists["אריק אינשטיין"], AlbumArtUrl = imgUrl },
@@ -912,4 +912,4 @@ private static Album[] GetAlbums(string imgUrl, Dictionary<string, Genre> genres
}
}
}
-}
+}
@@ -8,9 +8,9 @@ namespace MusicStore.Models
public static class SentimentAnalysis
{
private static string[] positiveSentimentWords = new[] { "happy", "fun", "joy", "love", "delight", "bunny", "bunnies", "asp.net" };
-
+
private static string[] negativeSentimentWords = new[] { "sad", "pain", "despair", "hate", "scorn", "death", "package management" };
-
+
public static SentimentResult GetSentiment(string text) {
var numPositiveWords = CountWordOccurrences(text, positiveSentimentWords);
var numNegativeWords = CountWordOccurrences(text, negativeSentimentWords);
@@ -35,4 +35,4 @@ public enum SentimentResult {
Positive,
}
}
-}
+}
@@ -123,7 +123,7 @@ public int GetCount()
public decimal GetTotal()
{
- // Multiply album price by count of that album to get
+ // Multiply album price by count of that album to get
// the current price for each of those albums in the cart
// sum all album price totals to get the cart total
@@ -190,7 +190,7 @@ public string GetCartId(HttpContext context)
if (string.IsNullOrWhiteSpace(sessionCookie))
{
- //A GUID to hold the cartId.
+ //A GUID to hold the cartId.
cartId = Guid.NewGuid().ToString();
// Send cart Id as a cookie to the client.
@@ -204,4 +204,4 @@ public string GetCartId(HttpContext context)
return cartId;
}
}
-}
+}
@@ -16,4 +16,4 @@ public override void OnResultExecuting(ResultExecutingContext context)
base.OnResultExecuting(context);
}
}
-}
+}
@@ -147,4 +147,4 @@ public PagingConfig(int page, int pageSize)
public int PageSize { get; set; }
}
}
-}
+}
@@ -16,4 +16,4 @@
<DevelopmentServerPort>5068</DevelopmentServerPort>
</PropertyGroup>
<Import Project="$(VSToolsPath)\DNX\Microsoft.DNX.targets" Condition="'$(VSToolsPath)' != ''" />
-</Project>
+</Project>
@@ -44,7 +44,7 @@ public void ConfigureServices(IServiceCollection services)
// Uncomment the following line to add Web API services which makes it easier to port Web API 2 controllers.
// You will also need to add the Microsoft.AspNet.Mvc.WebApiCompatShim package to the 'dependencies' section of project.json.
// services.AddWebApiConventions();
-
+
// Add EF services to the service container
services.AddEntityFramework()
.AddSqlite()
@@ -82,7 +82,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
{
// Initialize the sample data
SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait();
-
+
loggerFactory.MinimumLevel = LogLevel.Warning;
loggerFactory.AddConsole();
loggerFactory.AddDebug();
@@ -103,7 +103,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
// send the request to the following path or controller action.
app.UseExceptionHandler("/Home/Error");
}
-
+
// Add static files to the request pipeline.
app.UseStaticFiles();
@@ -112,7 +112,7 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
{
// Matches requests that correspond to an existent controller/action pair
routes.MapRoute("default", "{controller}/{action}/{id:int?}");
-
+
// Matches any other request that doesn't appear to have a filename extension (defined as 'having a dot in the last URI segment').
// This means you'll correctly get 404s for /some/dir/non-existent-image.png instead of returning the SPA HTML.
// However, it means requests like /customers/isaac.newton will *not* be mapped into the SPA, so if you need to accept
@@ -1,26 +1,26 @@
-@{
- ViewData["Title"] = "Home Page";
-}
-
-<cache vary-by="@Context.Request.Path">
- <app asp-ng2-prerender-module="wwwroot/ng-app/components/app/app">
- Loading...
- </app>
-</cache>
-
-@section scripts {
- @await Html.PrimeCache(Url.Action("GenreMenuList", "GenresApi"))
- @await Html.PrimeCache(Url.Action("MostPopular", "AlbumsApi"))
-
- <script src="~/lib/angular2/bundles/angular2-polyfills.js"></script>
- <script src="~/lib/traceur/bin/traceur-runtime.js"></script>
- <script src="~/lib/es6-module-loader/dist/es6-module-loader-sans-promises.js"></script>
- <script src="~/lib/systemjs/dist/system.src.js"></script>
- <script src="~/system.config.js"></script>
- <script src="~/lib/rxjs/bundles/Rx.js"></script>
- <script src="~/lib/angular2/bundles/angular2.dev.js"></script>
- <script src="~/lib/angular2/bundles/router.dev.js"></script>
- <script src="~/lib/angular2/bundles/http.dev.js"></script>
- <script src="~/lib/angular2-aspnet/bundles/angular2-aspnet.js"></script>
- <script>System.import('./ng-app/components/app/bootstrap');</script>
-}
+@{
+ ViewData["Title"] = "Home Page";
+}
+
+<cache vary-by="@Context.Request.Path">
+ <app asp-ng2-prerender-module="wwwroot/ng-app/components/app/app">
+ Loading...
+ </app>
+</cache>
+
+@section scripts {
+ @await Html.PrimeCache(Url.Action("GenreMenuList", "GenresApi"))
+ @await Html.PrimeCache(Url.Action("MostPopular", "AlbumsApi"))
+
+ <script src="~/lib/angular2/bundles/angular2-polyfills.js"></script>
+ <script src="~/lib/traceur/bin/traceur-runtime.js"></script>
+ <script src="~/lib/es6-module-loader/dist/es6-module-loader-sans-promises.js"></script>
+ <script src="~/lib/systemjs/dist/system.src.js"></script>
+ <script src="~/system.config.js"></script>
+ <script src="~/lib/rxjs/bundles/Rx.js"></script>
+ <script src="~/lib/angular2/bundles/angular2.dev.js"></script>
+ <script src="~/lib/angular2/bundles/router.dev.js"></script>
+ <script src="~/lib/angular2/bundles/http.dev.js"></script>
+ <script src="~/lib/angular2-aspnet/bundles/angular2-aspnet.js"></script>
+ <script>System.import('./ng-app/components/app/bootstrap');</script>
+}
@@ -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>
Oops, something went wrong.

0 comments on commit 74cac77

Please sign in to comment.