Commit Graph

181 Commits

Author SHA1 Message Date
Hao Kung 06f1340f2a
[2.1] Update initial identity migration (#313) 2018-02-08 12:37:40 -08:00
Peter Blazejewicz 3d118de0d5 Pass properties to super in derived classes. Fixes #289
Thanks!
2018-02-08 11:17:15 +00:00
Peter Blazejewicz 6b44610079 Align class event handler creation with React docs
This is small change to align example React app with current advised way of assigning
event handlers that are declared as ES6 class methods:
https://reactjs.org/docs/handling-events.html

Thanks!
2018-02-08 11:17:09 +00:00
Steve Sanderson c000f6af2d Update Angular template to match @angular/cli@1.6.8 output 2018-02-08 11:03:00 +00:00
Jass Bagga acc2147ac5
Merge pull request #315 from aspnet/release/2.1
Remove hard coded copyright year
2018-02-07 14:28:39 -08:00
Jass Bagga 6b490836b1 Remove hard coded copyright year 2018-02-07 14:13:02 -08:00
Jass Bagga b177f5a145
Merge pull request #304 from aspnet/release/2.1
Remove F# web app VS host file
2018-02-05 10:42:02 -08:00
Jass Bagga cc14da18eb Remove F# web app hosts file 2018-02-05 10:14:14 -08:00
Eilon Lipton 062f6b4d31
Merge pull request #284 from peterblazejewicz/fix/279
Add empty TypeScript starter template file. Closes #279
2018-02-02 16:35:37 -08:00
Javier Calvarro Nelson 216e9f62c4 Fix kestrel urls in launchSettings.json 2018-02-02 16:10:15 -08:00
Javier Calvarro Nelson a4427f5263 Fix kestrel urls in launchSettings.json 2018-02-02 16:07:02 -08:00
Jass Bagga 66750bb20a
Merge pull request #285 from aspnet/release/2.1
Adding host configurations for F# templates (#281)
2018-02-02 12:19:37 -08:00
Jonathon Marolf 8079ab8b58 Adding host configurations for F# templates (#281) 2018-02-02 12:18:50 -08:00
Peter Blazejewicz ebeb7b93f9 Add empty TypeScript starter template file. Closes #279
No content, the header with the same CTA as in site.js

And no BOM, there is no policy to enforce it in the repo.

Thanks!
2018-02-02 21:14:20 +01:00
Javier Calvarro Nelson fe3d4f0d8b Merge branch 'release/2.1' into dev 2018-02-02 10:33:03 -08:00
Javier Calvarro Nelson 1ea32bd569
[Fixes #283] Updates vs-2017.3.host.json to include the HTTP port 2018-02-02 10:32:19 -08:00
John Luo bd9e53015d Merge branch 'release/2.1' into dev 2018-02-01 14:48:34 -08:00
John Luo 94cfac8ec6 Use Microsoft.AspNetCore.App in templates
- Add BrowserLink and Sqlite for Razor and StarterWeb templates when required
- Add tests for LocalDB scenarios
2018-02-01 12:52:05 -08:00
Jass Bagga ba0abd2285
Add missing bootstrap and js min files to RazorPages template (#269)
Addresses #217
2018-01-30 14:09:03 -08:00
Jass Bagga e8816350ef
Add namespace for SignedOut.cshtml.cs (#266)
Addresses #205
2018-01-29 14:03:14 -08:00
Jass Bagga c15cd757cf Set ASPNETCORE_URLS 2018-01-26 15:59:54 -08:00
Nate McMaster 04dfc5cc6b Remove RuntimeFrameworkVersion from the templates
This property is no longer needed because the Microsoft.AspNetCore.All and .App packages set the shared framework version. RuntimeFrameworkVersion is inferred by Microsoft.NET.Sdk
2018-01-25 12:25:34 -08:00
Pranav K a6eb93cfdd Merge branch 'release/2.0' into release/2.1
# Conflicts:
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Account/AccessDenied.cshtml
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Account/Manage/EnableAuthenticator.cshtml
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Account/Manage/EnableAuthenticator.cshtml.cs
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Account/Manage/GenerateRecoveryCodes.cshtml
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/RazorPagesWeb-CSharp/Pages/Account/Manage/GenerateRecoveryCodes.cshtml.cs
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Controllers/ManageController.cs
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Models/ManageViewModels/EnableAuthenticatorViewModel.cs
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Models/ManageViewModels/ShowRecoveryCodesViewModel.cs
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Manage/EnableAuthenticator.cshtml
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Manage/GenerateRecoveryCodes.cshtml
#	src/Microsoft.DotNet.Web.ProjectTemplates/content/StarterWeb-CSharp/Views/Manage/TwoFactorAuthentication.cshtml
2018-01-25 11:12:48 -08:00
Jass Bagga d978b0da6c
Revert "Update jQuery" (#257)
This reverts commit 78f4c7342b.
2018-01-24 17:17:57 -08:00
Steve Sanderson b1ccc31ccf Update SPA template identifiers to end with ".2.1". Fixes #230 2018-01-24 23:02:22 +00:00
Javier Calvarro Nelson 2269a31983 [Fixes #245] Update Identity to use the default layout from the application.
Added /Areas/Identity/Pages/_ViewStart.cshtml and set the layout to the
applications layout.
2018-01-23 17:40:57 -08:00
Jass Bagga 78f4c7342b
Update jQuery (#250)
Addresses #248
2018-01-23 16:11:41 -08:00
Javier Calvarro Nelson d159cb9b00 Add application DbContext 2018-01-22 13:24:54 -08:00
Jass Bagga a177c557c5
[2.0.x PATCH] Add app.config to net 4.x templates (#231)
Addresses #170
2018-01-18 18:19:18 -08:00
Jass Bagga 767a857635
Set CompatibilityVersion for templates (#240)
Addresses #235
2018-01-18 16:11:09 -08:00
Hao Kung 5d2f598c80 Update initial migrations 2018-01-16 14:44:29 -08:00
Chris Ross (ASP.NET) eabde9fe9e Add CookiePolicy and consent UI 2018-01-09 12:42:07 -08:00
Jass Bagga 8ebe0a2d29
Derive Web API templates from ControllerBase (#220)
Addresses #45
2018-01-08 15:08:43 -08:00
Jass Bagga da3a49a9b0
Add HttpsPort settings to Empty F# template (#219) 2018-01-05 11:08:47 -08:00
Phillip Carter 5b34474502 Update F# templates (#190) 2018-01-04 10:56:54 -08:00
Steve Sanderson 22da82ff8a Sync remaining Angular-CSharp changes from OOB release into dev branch 2018-01-04 11:10:35 +00:00
Steve Sanderson 0d9f17211f Fix @angular/platform-server version in package-lock.json 2018-01-04 11:01:28 +00:00
Steve Sanderson c637130f88 In React and ReactRedux templates, switch from npm-shrinkwrap.json to package-lock.json 2018-01-04 11:01:19 +00:00
Steve Sanderson 27878265bc Update Angular template to Angular CLI 1.6.3, plus switch it from npm-shrinkwrap.json to package-lock.json 2018-01-04 11:01:01 +00:00
Scott Addie 323453129d Remove yarn.lock file entry from .gitignore files 2018-01-02 16:16:47 +00:00
Steve Sanderson fa386c458b Remove bogus BuildServerSideRenderer property from React-Redux csproj. #1457 2018-01-02 12:14:30 +00:00
Jass Bagga 9ad731bc33
Remove max-width from site.css for F# Starter Web template (#214) 2017-12-29 15:52:30 -08:00
Nate McMaster 26833a02b1
Remove DotNetCliToolReference to dotnet-user-secrets (#212) 2017-12-29 14:27:31 -08:00
Javier Calvarro Nelson 5325c65b88 Replace identity code with built-in version on the templates 2017-12-29 11:45:10 -08:00
Javier Calvarro Nelson 8c94d27d6a [Fixes #181] Go back to server selected listening ports. 2017-12-28 19:00:29 -08:00
Jass Bagga 886a985726 Target netcoreapp2.1 2017-12-28 17:01:30 -08:00
Jass Bagga e7749b9ccc
return ReturnUrl when ExternalLogin fails (#186)
Addresses #97
2017-12-14 10:29:36 -08:00
Jass Bagga eb74ea32f1
Add app.config to net 4.x templates (#191)
Addresses #73
2017-12-13 11:12:12 -08:00
Jass Bagga 6eaf1219f6
Use nameof() when returning Views (#196) 2017-12-13 11:11:32 -08:00
Biarity 13e4025dac Using nameof() instead of hard-coded string. (#188) 2017-12-12 12:05:06 -08:00
Jass Bagga 26ea920fa6
Set LoginProvider when ExternalLoginConfirmation fails (#187)
Addresses #98
2017-12-12 11:27:11 -08:00
Javier Calvarro Nelson 4d2e642b94 Add launchSettings.json by default to our templates
* Adds launchSettings.json to all of our templates.
* Provides an alternative flag to exclude it.
* Adds HTTPS support in launchSettings.json.
* Re-adds HTTPS redirect and HSTS middleware for C# templates.
* Improves some infrastructure aspects:
    * Prefix all our test projects with AspNet.Template to allow easy
      killing of orphaned processes.
    * Setup an HTTPS certificate automatically for use with tests in the
      same way our tooling does it on customers machines.
    * Switch from OS selected ports to randomly selected ports. This is
      required as we need to know the port to use for HTTPS.
    * Allow disabling browser automation through an environment variable.
    * Setup Firefox to allow untrusted certificates when using Selenium.
    * Allow running Selenium tests on firefox by setting an environment
      variable.
2017-12-08 13:08:36 -08:00
Pranav K 16c23b846e Split showing and generating recovery codes 2017-12-07 15:47:00 -08:00
Pranav K e4ecd070eb Use AuthenticatorUrl generated on the server in EnableAuthenticator pages
* Update prerelease package versions
* Install the right CLI version
2017-12-07 15:45:54 -08:00
Jass Bagga bc95a4a6c1
Add missing @ (#184)
Addresses #183
2017-12-07 15:45:34 -08:00
Jass Bagga ed9e34caab
Set ErrorViewModel in ConfirmEmail (#180)
Addresses #80
2017-12-07 12:44:48 -08:00
Jass Bagga 88e05f71a5
Add no-cache header to error pages (#182)
Addresses #123
2017-12-07 12:11:44 -08:00
Jass Bagga aba10e768b
Remove user.Id from ResetPasswordCallbackLink (#173)
Addresses #71
2017-12-05 12:44:37 -08:00
Jass Bagga f5dcdfd8de
Encode ForgotPassword email link (#179) 2017-12-05 12:38:19 -08:00
Jass Bagga 269cff5bf5
Change parameter name to htmlMessage (#178)
Addresses #79
2017-12-04 13:00:57 -08:00
Jass Bagga 5819301f7e
Change Web API to API (#169)
Addresses #92
2017-11-30 16:15:04 -08:00
Steve Sanderson 599d5ed73d Minor stylistic tweaks in Aurelia template 2017-11-24 13:30:35 +00:00
Max 9e82629c1f Add AureliaPlugin to the vendor bundle
This will put aurelia modules into the bundle from the correct distribution folder
2017-11-24 13:26:51 +00:00
Scott Addie 3a4c81dcc9 Change order of UseBrowserLink method invocation 2017-11-24 10:31:39 +00:00
Scott Addie af23185c06 Change order of UseBrowserLink method invocation 2017-11-24 10:30:48 +00:00
Scott Addie a68c7241b5 Invoke a simpler UseMvc overload in Razor Pages templates 2017-11-24 10:22:24 +00:00
Scott Addie 529ef02290 Invoke a simpler UseMvc overload in Razor Pages templates 2017-11-24 10:18:56 +00:00
Steve Sanderson 5d7e31d16f Minor simplifications to Vue fetchdata logic 2017-11-24 10:07:49 +00:00
Murat Girgin 5e752169d6 Vue.js template: Use async/await 2017-11-24 09:58:53 +00:00
Steve Sanderson 40603f1566 In Angular template, make nav button collapsing work (without importing all bootstrap.js scripts) 2017-11-23 12:22:58 +00:00
Steve Sanderson 77afab3b58 In Angular template, add --output-hashing=media to build:ssr as it's needed for 1.5.4 prod builds 2017-11-23 11:49:04 +00:00
Steve Sanderson 98f29207a2 Support running "dotnet restore" directly in template source folders 2017-11-23 11:49:04 +00:00
Steve Sanderson bf6942e616 For Angular CLI 1.5.4 compatibility, build SPA to ClientApp/dist and serve its static files from there 2017-11-23 11:49:01 +00:00
Steve Sanderson c517ad3f65 For Angular template, update to @angular/cli 1.5.4 equivalent output 2017-11-23 10:38:31 +00:00
Steve Sanderson 7fe5fe2393 Remove "--output-hashing=media" from Angular package.json as it's no longer needed 2017-11-22 17:28:13 +00:00
Steve Sanderson 505ebcf1e6 Update to newer Angular SSR APIs to support AoT-enabled builds 2017-11-22 15:18:52 +00:00
Steve Sanderson 7f6abdfcdd Remove remaining Bower references. Fixes #161. 2017-11-20 16:54:25 +00:00
Steve Sanderson f79fa6e110 Remove remaining references to HttpsPolicy until it's ready 2017-11-20 10:13:24 +00:00
Javier Calvarro Nelson 2dc3e36421 Fix F# Program.fs 2017-11-17 11:27:57 -08:00
Justin Kotalik 9d9daa8db7
Removes Https middlewares from templates (#157) 2017-11-17 11:02:10 -08:00
Steve Sanderson 2623b50695 Update info on SPA template home components 2017-11-17 16:43:38 +00:00
Steve Sanderson 993655a7af Remove SPA templates' instruction to run "npm install" manually, since that's now automatic 2017-11-17 16:22:35 +00:00
Luke Latham 30acb48dfc
Add blank lines 2017-11-16 12:47:11 -06:00
Steve Sanderson 1d9585b69d Replace Angular, React, ReactRedux templates with new CLI based ones 2017-11-16 13:48:17 +00:00
Justin Kotalik 726da0f11f
Fix HttpsPolicy dependency for full framework (#151) 2017-11-14 11:59:41 -08:00
Nate McMaster aee0d26d67 Merge build infrastructure changes from rel/2.0.3
Changes:
- Replaces PackageLineup with the dependencies.props approach to manage package versions.
- Generate the csproj/fsproj files that go into template packages
- Remove the DependencyUpdater and PullRequestSubmitter tasks
- Remove bower.json and bowerrc from Microsoft.DotNet.Web.ProjectTemplates
- Set MyGet feeds via MSBuild instead of NuGet.config
- Upgrades to the functional tests
- Update Selenium
- Make it possible to run tests on macOS/linux
- Disable test parallelization
2017-11-06 16:06:24 -08:00
Nate McMaster 18feba377f Rename Microsoft.DotNet.Web.ProjectTemplates.2.0.nuspec -> Microsoft.DotNet.Web.ProjectTemplates.nuspec 2017-11-06 16:00:13 -08:00
Nate McMaster 09161305bb Reorganize repo branch and project folder structure
When the code lived in dotnet/templating, the 1.x, 2.0, and 2.1 templates all needed to sit side-by-side.
Now that this code builds from aspnet/templating, we're reorganizing the folder and branch structure to
match the aspnetcore runtime repos.

Branches:

rel/1.1.5 = Microsoft.DotNet.Web.ProjectTemplates.1.x
rel/2.0.3 = Microsoft.DotNet.Web.ProjectTemplates.2.0
dev = Microsoft.DotNet.Web.ProjectTemplates.2.1

Changes:
Remove the 2.0 and 1.x templates projects from this branch
2017-11-06 15:54:02 -08:00
Nate McMaster 1ffcf2c009 Reorganize repo branch and project folder structure
When the code lived in dotnet/templating, the 1.x, 2.0, and 2.1 templates all needed to sit side-by-side.
Now that this code builds from aspnet/templating, we're reorganizing the folder and branch structure to
match the aspnetcore runtime repos.

Branches:

rel/1.1.5 = Microsoft.DotNet.Web.ProjectTemplates.1.x
rel/2.0.3 = Microsoft.DotNet.Web.ProjectTemplates.2.0
dev = Microsoft.DotNet.Web.ProjectTemplates.2.1
2017-11-06 10:19:59 -08:00
Justin Kotalik 06bff32f4e
Fix missed reorder of HttpsRedirection calls in spa templates (#140) 2017-11-01 12:52:10 -07:00
Justin Kotalik 36fe9b40ef
Adds Hsts and HttpsRedirection to spa templates (#137) 2017-11-01 11:00:13 -07:00
Justin Kotalik 509f791f10
[WIP] Adds Hsts and HttpsRedirection to templates (#128) 2017-10-31 16:15:13 -07:00
Nate McMaster f0991b4e6d
Revert changes to the 2.0 templates that were unintentionally copied from dotnet/templating (#135) 2017-10-30 15:49:46 -07:00
Javier Calvarro Nelson f005434e87 Update templates to support the new pattern used for integration tests 2017-10-27 08:56:46 -07:00
Nate McMaster 4984b2da89 Generate the MSBuild files instead of the template.json files to workaround localization issues in the tempalting engine 2017-10-26 16:13:01 -07:00
Scott Addie 1df37f8060 Fix spelling mistake in constant name 2017-10-26 11:27:39 +01:00
Scott Addie 4172d62aa5 Add missing @ symbol to AccessDenied.cshtml 2017-10-26 11:21:43 +01:00
Nate McMaster eb67f8bcef Update package reference versions in more 1.x templates (#72) 2017-10-17 16:28:37 -07:00
Javier Calvarro Nelson a80061f42b Move Identity to an Area for 2.1 2017-10-16 10:54:17 -07:00
Nate McMaster 38be05d442 Update the 1.x templates for the latest patch 2017-10-13 10:08:31 -07:00