Commit Graph

396 Commits

Author SHA1 Message Date
Steve Sanderson 4339397eb0
Shrink icon-512.png (#19999) 2020-03-19 16:40:51 +00:00
Safia Abdalla 49bf3bb738
Resolve issues in Blazor PWA template (#19898) 2020-03-16 16:55:21 -07:00
Safia Abdalla 0582767e67
Fix Blazor icon for PWAs on iOS (#19897)
- Add link reference to Blazor icon in index.html to support icons on iOS
 - Make Blazor icon background white instead of transparent
- Remove deleted projects from solution file

Addresses #19883
2020-03-16 14:20:01 -07:00
Artak 0006fdf093
Revert "Remove inspectUri launch setting (#19672)" (#19786)
* Revert "Remove inspectUri launch setting (#19672)"

This reverts commit 9f4904886e.

* React to review feedback
2020-03-12 11:35:44 -07:00
Pranav K 064f1562fa
Remove WebAssembly.JSInterop 2020-03-10 13:57:32 -07:00
Daniel Roth 810a9fad0f
Update SurveyPrompt.razor (#19712) 2020-03-09 13:02:50 -07:00
Artak 9f4904886e
Remove inspectUri launch setting (#19672)
* Remove inspectUri launch setting

* Removed inspectUri from launchSettings
2020-03-07 09:50:22 -08:00
Steve Sanderson 0216ca2086
Stop service worker interfering with Identity UI (#19400) 2020-02-27 22:42:44 -08:00
Steve Sanderson d9ed5166ff Cache authentication configuration in IndividualLocalAuth && Hosted case 2020-02-26 17:43:03 +00:00
Steve Sanderson 90d7d0b368 Include favicon in service worker cache 2020-02-26 17:43:03 +00:00
Javier Calvarro Nelson a52e708e55
[Blazor] Add instructions to configure the authority when it is missing
* For individual auth cases, when creating the template from Visual Studio there is no way to provide parameters.
* This change adds a message in the index.html to indicate the steps that need to be followed.
2020-02-26 07:39:28 -08:00
Artak 20a5d7a086
Include `inspectUri` in the launch profiles (#19308) 2020-02-25 10:33:47 -08:00
Javier Calvarro Nelson 226f461806
[Blazor] Remove compression middleware from the template (#19285)
Remove response compression from the template
2020-02-24 11:03:00 -08:00
Pranav K 7ba8d06717
BlazorWASM: API review (#19219)
Fixes https://github.com/dotnet/aspnetcore/issues/13174
2020-02-21 12:58:02 -08:00
Javier Calvarro Nelson 0541e19ac2
[Blazor][Wasm] Adds support for AAD and AADB2C using msal.js (#19190)
* Adds a new library Microsoft.Authentication.WebAssembly.Msal that handles authentication for Blazor Webassembly applications using msal.js
2020-02-21 09:12:36 -08:00
Javier Calvarro Nelson 9ded8e17d4
Change MapBlazorWebAssemblyApplication to UseBlazorFrameworkFiles (#19198) 2020-02-21 04:20:41 -08:00
Marlon Regenhardt 6a85855fbb
[Blazor][Wasm] Move HttpClient from default services to Program.Main (#19119)
* [Blazor][Wasm] Move HttpClient from default services to extension method (#16929)

* Apply suggestions from code review

Co-authored-by: Steve Sanderson <SteveSandersonMS@users.noreply.github.com>
2020-02-20 10:47:49 -08:00
Steve Sanderson e9ccd7fe08 Only the PWA template should produce ServiceWorkerAssetsManifest 2020-02-20 12:16:27 +00:00
Javier Calvarro Nelson c39bc6a6bd
[Blazor] Move to MapBlazorWebAssemblyApplication (#19147)
Move to MapBlazorWebAssemblyApplication as the way to map blazor files into a hosted application.
2020-02-19 23:56:43 -08:00
Artak 6342a812f3
Update launchSettings.json for BlazorWASM (#19136)
* Update launchSettings.json for BlazorWASM

* Remove the `useWebAssemblyDebugging` setting as its no longer needed
2020-02-19 13:25:21 -08:00
Steve Sanderson 38f3267208 Fix token in PWA manifest 2020-02-19 16:17:02 +00:00
Javier Calvarro Nelson 0e155fd7ca
[Fixes #12588][Blazor] Move Blazor to use Static Web Assets (#18409)
* [Blazor] Move Blazor to use Static Web Assets
* Plugs-in Blazor wasm through the static web assets infrastructure.
* Avoids the need for a custom Blazor.config file.
* Removes broken auto-rebuild and debug support.
* Removes unnecessary server-side Blazor helpers.
2020-02-19 04:05:03 -08:00
Pranav K c935e9aa2d
Blazor WebAssembly package renames (#19026)
Fixes https://github.com/dotnet/aspnetcore/issues/18384
2020-02-18 10:54:28 -08:00
Javier Calvarro Nelson 07098b3d97
[Blazor][Wasm] Template changes to support auth in Blazor wasm (#18933)
* [Blazor] Adds a project template option for individual auth
* Handles hosted scenarios with Identity Server.
* Handles non-hosted scenarios with oidc-client.js.
* Handles AAD and B2C scenarios with an MSAL library (disabled for now).
2020-02-17 17:27:21 -08:00
Steve Sanderson 04b4602c2b
PWA template (#18878)
* Add service worker

* Add manifest

* Bring back BaselineTest.cs

* Add baselines for blazorwasm templates

* Add publishing test for PWA template

* Baseline fixes

* Fix baseline test logic to allow for multi-project outputs

* Remove non-blazorwasm baselines, since this branch now only covers blazorwasm

* Add test for PWA publish output

* Beginning generation of assets manifest

* Generate assets manifest including blazor outputs

* Tweaks

* Write assets manifest in JSON form

* Publish service worker

* Better API

* More resilience

* Better API again

* Make ComputeBlazorAssetsManifestItems public as people will need to customize the list

* Exclude service worker files from assets manifest

* Use web standard format for hash

* Update project template

* In assets manifest, only include items being published

* Renames

* Compute default assets manifest version by combining hashes

* Emit sw manifest in .js form

* Update service worker in project

* Actually isolate browser instances when requested during E2E tests

* E2E test for published PWA operating offline

* Fix SWAM path in template

* Clarify targets
2020-02-14 15:52:23 +00:00
William Godbe cae6a9cfb3
Use non-stable versioning in blazor-wasm (#18894)
* Use stable versioning in blazor-wasm

* This branch never builds the targeting pack

* Update eng/Versions.props

* Undo changes to patchconfig.props

Co-authored-by: Pranav K <prkrishn@hotmail.com>
2020-02-10 14:05:36 -08:00
Artak d39ed09c29 Auto-generate random port and proper project settings for the server project (#18842) 2020-02-09 12:21:47 -08:00
Pranav K aa2d1057cf
Workaround analyzer 2020-02-05 14:56:36 -08:00
Pranav K 58fd885ffe
Undo changes to baseline 2020-02-05 10:23:40 -08:00
Pranav K af8aa0fe6e
Fixup error on SDK restore 2020-02-04 11:45:29 -08:00
Pranav K f54902f169
Purge the blazor-wasm branch 2020-02-03 17:49:41 -08:00
Daniel Roth 5f43e7a8a8
Update survey link for 3.2.0-preview1 (#18513) 2020-01-23 09:01:15 -08:00
Javier Calvarro Nelson ffac687091
Revert "[Fixes #17014] Add an auth-enabled template for Blazor WASM projects (#18354)" (#18516)
This reverts commit e64b8a91ad.
2020-01-22 14:00:39 -08:00
Ryan Nowak 3111032dc0 Rework of Blazor startup experience
Fixes: #16874

This is a significant simplication of our startup code model for Blazor
wasm with the goal of removing concepts that don't make much sense here.
Previously in this area we've tried to be consistent with ASP.NET Core
on the server, but it's not helping up much in WASM.

We're still leveraging some of the lessons from server-size ASP.NET
(hello CreateDefaultBuilder) but consistency is no longer a goal.

This change actually makes a bunch of scenarios better (rather than
removing features) - it's now possible to access services from the
application's DI scope and initialize them before the UI is shown
`RunAsync`.

This change also adds configuration in a central way. There's nothing in
this change that populates configuration in an automatic way, that will
come next.
2020-01-21 15:48:49 -08:00
Ajay Bhargav B 0f2e88a334
Added launchSettings.json for Blazor wasm templates (#18368)
* Added launchSettings.json for Blazor wasm templates

* Updated launchSettings

* removed windows auth option
2020-01-21 12:45:25 -08:00
Javier Calvarro Nelson e64b8a91ad
[Fixes #17014] Add an auth-enabled template for Blazor WASM projects (#18354)
* [Fixes #17014] Add an auth-enabled template for Blazor WASM projects
* The template enables auth using cookies.
* Includes a UserController to return the user claims/data to the user
* Includes an IdentityAuthenticationStateProvider that fetches the
  claims data from the application.
* It requires a hosted project.
2020-01-17 12:44:30 -08:00
Pranav K d4ada348fb
Use Blazor version for WASM templates (#18174) 2020-01-07 13:42:25 -08:00
Pranav K 1c3ae1549e Add publish test for BlazorStandalone 2020-01-03 15:05:53 -08:00
Pranav K 7fc46862ea
Run build and publish tests for Blazor templates (#17410)
* Add build and publish tests for Blazor hosted
*  Add build tests for Blazor standalone
* Cleanup project template

Fixes https://github.com/aspnet/AspNetCore/issues/14866
Fixes https://github.com/aspnet/AspNetCore/issues/10269
Fixes https://github.com/aspnet/AspNetCore/issues/9168
2019-12-03 14:29:05 -08:00
Pranav K 76ae0a2e21
Build fewer things in blazor-wasm (#17533) 2019-12-03 13:47:33 -08:00
Javier Calvarro Nelson e3dcd41304
[Blazor] Pins the SDK version to 3.1 and forces Blazor projects to compile against it (#17479) 2019-11-28 23:12:44 +01:00
Artak 5171fd2bb5
Disable webpack build progress reporting for Angular projects
Addresses https://github.com/aspnet/AspNetCore-ManualTests/issues/43
2019-11-07 12:35:12 -08:00
Ryan Brandenburg 41e15c3d90
Prevent VS warning for empty attribute (#16719) 2019-11-01 10:57:00 -07:00
Ryan Brandenburg 0540ec259d
Don't re-use requests (#15389) 2019-10-30 09:50:07 -07:00
Artak 8e3075d391
Update outdated npm dependencies (#15318)
* Updated npm packages
* Taking explicit dependency on the previous version of `svgo` npm package, as it breaks the npm build.
2019-10-30 07:05:36 -07:00
Javier Calvarro Nelson f19a4523ed
[Blazor][Fixes #16569] Updates _Host.cshtml to avoid rendering the Identity layout (#16605)
When Identity gets scaffolded into the project, it's layout gets applied to the `_Host.cshtml` which results in 2 layouts being applied.
Adding `Layout = null` to `_Host.cshtml` fixes the issue.
2019-10-29 12:28:29 +01:00
Javier Calvarro Nelson 60cb7001ec
[Templating][Fixes #15349] Update SPA templates to use generic host (#15365) 2019-10-24 18:44:44 +02:00
hermanho 5776542508 [ApiAuth] Fix subscription callbacks when unsubscribe (#15194)
re-assigned the callback array to itself after running splice on it when a client unsubscribed from notifications.
2019-10-24 11:14:09 +02:00
dotnet-maestro[bot] c82a95e009
[release/3.1] Update dependencies from 3 repositories (#15218)
* Update dependencies from https://github.com/dotnet/arcade build 20191017.3

- Microsoft.DotNet.Arcade.Sdk - 1.0.0-beta.19517.3
- Microsoft.DotNet.GenAPI - 1.0.0-beta.19517.3
- Microsoft.DotNet.Helix.Sdk - 2.0.0-beta.19517.3

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.2

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.2
- dotnet-ef - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.2
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.2

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.4

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.4
- dotnet-ef - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.4
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.4

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.5

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.5
- dotnet-ef - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.5
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.5

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.7

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.7
- dotnet-ef - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.7
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.7

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.8

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.8
- dotnet-ef - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.8
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.8

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.9

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.9
- dotnet-ef - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.9
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.9

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.11

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.11
- dotnet-ef - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.11
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.11

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.12

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.12
- dotnet-ef - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.12
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.12

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191021.13

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19521.13
- dotnet-ef - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19521.13
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19521.13

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191022.1

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19522.1
- dotnet-ef - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19522.1
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19522.1

* Update dependencies from https://github.com/aspnet/EntityFrameworkCore build 20191022.3

- Microsoft.EntityFrameworkCore.Tools - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore.SqlServer - 3.1.0-preview2.19522.3
- dotnet-ef - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore.InMemory - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore.Relational - 3.1.0-preview2.19522.3
- Microsoft.EntityFrameworkCore.Sqlite - 3.1.0-preview2.19522.3

* Remove duplicate icon url

* Remove more duplicate icon elements

* Remove more package icons

* Remove packageIcon

* Update dependencies from https://github.com/aspnet/Blazor build 20191023.1

- Microsoft.AspNetCore.Blazor.Mono - 3.1.0-preview2.19523.1

* Undo bad deletion of eng/common file
2019-10-24 00:07:47 +00:00
Javier Calvarro Nelson 19718f6011 [Blazor][Fixes #15155] Clarifies the message to turn on detailed erro… (#15156)
Fixes https://github.com/aspnet/AspNetCore/issues/15155
2019-10-18 13:03:52 -07:00