Commit Graph

40221 Commits

Author SHA1 Message Date
Ryouko Konpaku ef3db51bbf Text Area Bind Fix for issue #434 (#439)
* Text Area Bind Fix for issue #434

* Correct Typo/Mispelling on test method name.
2018-03-30 10:10:23 +01:00
Stephen Roe cda3692d0b Added SVG support (#366) (#435)
* Added SVG support (#366)

* Added E2E tests for SVG
2018-03-30 10:07:10 +01:00
David Fowler b5a2fcb96a
Dispose the http client in DisposeAsync (#1780)
- This layer of the stack is no longer reusable and
this disposable was removed (I assume by mistake) in the big refactoring
2018-03-30 01:57:14 -07:00
David Fowler a26e6f5a30
Make shutdown logic for SSE and LongPolling more similar to WebSockets (#1779)
- Cancel reading from the application when initiating a transport stop
- Complete each side of the pipe in the place where the pipe is being consumed
- Errors from sending end up getting sent to the application
- The Running task never throws
- Removes ContinueWith
2018-03-30 01:50:30 -07:00
Pranav K 7d39ec2621
Merge pull request #1016 from aspnet/prkrishn/merge21
Prkrishn/merge21
2018-03-29 22:28:45 -07:00
Pranav K b77a963755
Merge remote-tracking branch 'origin/release/2.1' into dev 2018-03-29 22:21:44 -07:00
Pranav K 7b8778beb9
Merge commit '3475f5676249bef8803a534b066dbcd41c0e61ec' into dev 2018-03-29 22:19:58 -07:00
Ryan Nowak 5b658c80a1 Replace @bind with bind-...
This change introduces a 'tag helper' that replaces @bind with custom
code generation that accomplishes roughly the same thing.

This feature lights up by dynamically generating tag helpers that are
visible to tooling and affect the code generation based on:
- pattern recognition of component properties
- attributes that create definitions for elements
- a 'fallback' case for elements

'bind' also supports format strings (currently only for DateTime) via
a separate attribute.

This change introduces the basic framework for bind and tooling support.
We know that we'll have to do more work to define the set of default
'bind' cases for the DOM and to flesh out the conversion/formatting
infrastructure.

This change gets us far enough to replace all of the cases we currently
have tests for :) with the new features. The old @bind technique still
works for now.

Examples:

@* bind an input element to an expression *@
<input bind="@SelectedDate" format="mm/dd/yyyy" />
@functions {
    public DateTime SelectedDate { get; set; }
}

@* bind an arbitrary expression to an arbitrary set of attributes *@
<div bind-myvalue-myevent="@SomeExpression">...</div>

@* write a component that supports bind *@

@* in Counter.cshtml *@
<div>...html omitted for brevity...</div>
@functions {
    public int Value { get; set; } = 1;
    public Action<int> ValueChanged { get; set; }
}

@* in another file *@
<Counter bind-Value="@CurrentValue" />
@functions {
    public int CurrentValue { get; set; }
}
2018-03-29 22:04:24 -07:00
Pranav K 577c2745d5
Merge remote-tracking branch 'origin/release/2.1' into dev 2018-03-29 21:51:45 -07:00
Pranav K 21d0475cf2 Add Microsoft.AspNetCore.Analyzers.Experimental package 2018-03-29 21:49:55 -07:00
Ryan Nowak f20bf9ea02 Fix #7503 change to model name for IValidableObject
This change undoes a breaking change introduced by the 2.1 model
validation changes. Now an implementation of IValidableObject on a
top-level model will be called correctly with the 'empty' prefix instead
of the parameter name.

When fixing this we undid a workaround for another issue.

When validating a parameter that didn't bind we didn't correctly compute
the model name for 'fallback to empty prefix' cases.

(cherry picked from commit 7a1096a72b)
2018-03-29 21:35:59 -07:00
Ryan Nowak 7a1096a72b Fix #7503 change to model name for IValidableObject
This change undoes a breaking change introduced by the 2.1 model
validation changes. Now an implementation of IValidableObject on a
top-level model will be called correctly with the 'empty' prefix instead
of the parameter name.

When fixing this we undid a workaround for another issue.

When validating a parameter that didn't bind we didn't correctly compute
the model name for 'fallback to empty prefix' cases.
2018-03-29 21:35:03 -07:00
Ryan Nowak 96f29c5696 Use latest compat version in MvcSandbox 2018-03-29 21:35:03 -07:00
Pranav K 4b15ad60b1
Merge pull request #7575 from aspnet/release/2.1
Add an analyzer to warn against the use of IHtmlHelper.Partial and IH…
2018-03-29 21:26:17 -07:00
Pranav K 264f9c871e Add an analyzer to warn against the use of IHtmlHelper.Partial and IHtmlHelper.RenderPartial
Fixes https://github.com/aspnet/Mvc/issues/7417
2018-03-29 21:25:54 -07:00
ASP.NET CI f568d5af77 Updating submodule(s)
SignalR => 389817c682

[auto-updated: submodules]
2018-03-29 20:30:25 -07:00
ASP.NET CI 3475f56762 Updating submodule(s)
SignalR => 51fb15d6cf

[auto-updated: submodules]
2018-03-29 20:29:27 -07:00
Pavel Krymets 7b3491e11e
Prepare to 0 byte flush change (#2442) 2018-03-29 20:27:54 -07:00
James Newton-King 389817c682
Merge pull request #1776 from aspnet/release/2.1
Client logging fixes and improvements (#1773)
2018-03-30 16:25:13 +13:00
James Newton-King 51fb15d6cf
Client logging fixes and improvements (#1773) 2018-03-30 16:24:38 +13:00
ASP.NET CI 67f15d2911 Updating submodule(s)
EntityFrameworkCore => 6d16214c2e606252109949d2940cbaca8c377181

[auto-updated: submodules]
2018-03-29 19:08:17 -07:00
ASP.NET CI 597bd70517 Updating submodule(s)
EntityFrameworkCore => 730b63b7253cf88d6a5e33ce83ed8a76c6bee595

[auto-updated: submodules]
2018-03-29 18:59:57 -07:00
ASP.NET CI 5b6489825f Updating submodule(s)
MvcPrecompilation => 83ebebcabc

[auto-updated: submodules]
2018-03-29 18:16:43 -07:00
ASP.NET CI c7f04f0106 Updating submodule(s)
MvcPrecompilation => bfd630cc8e
SignalR => 5cfc03ffe9

[auto-updated: submodules]
2018-03-29 17:30:00 -07:00
Ajay Bhargav Baaskaran bfd630cc8e Merge branch 'release/2.1' into dev 2018-03-29 17:08:21 -07:00
Ajay Bhargav Baaskaran 83ebebcabc Removed unnecessary flaky tests 2018-03-29 17:05:33 -07:00
ASP.NET CI ca166683cc Updating submodule(s)
IISIntegration => df6471f462
SignalR => 46f27cdd0b

[auto-updated: submodules]
2018-03-29 23:48:23 +00:00
= 1a1bdd43a5 Merge branch 'release/2.1' into dev 2018-03-29 16:40:17 -07:00
BrennanConroy 5cfc03ffe9
Merge pull request #1775 from aspnet/release/2.1
Fix internal HubConnection state when handshake fails (#1774)
2018-03-29 16:35:55 -07:00
BrennanConroy 46f27cdd0b
Fix internal HubConnection state when handshake fails (#1774) 2018-03-29 16:35:31 -07:00
= 365e255c9b Add authentication UI packages to the LZMA 2018-03-29 16:30:42 -07:00
Pavel Krymets df6471f462
Add startup filter to detect overriden server (#740) 2018-03-29 16:23:17 -07:00
ASP.NET CI 4b6fb44ecd Updating submodule(s)
Razor => 13d19845c4
SignalR => ba1d4b771c
Templating => c0c28fb9f1

[auto-updated: submodules]
2018-03-29 22:14:44 +00:00
BrennanConroy ba1d4b771c
Merge pull request #1771 from aspnet/release/2.1
Move Cpp Client to main repo (#1703)
2018-03-29 14:59:20 -07:00
BrennanConroy 476d337989
Move Cpp Client to main repo (#1703) 2018-03-29 14:58:54 -07:00
ASP.NET CI 18c33f8742 Updating submodule(s)
Microsoft.Data.Sqlite => 2b9f77f914c70f37add0a5cdea641bce4ec42db7
Razor => a2a920dde5
Templating => 2f9ce959ea

[auto-updated: submodules]
2018-03-29 21:46:19 +00:00
Jass Bagga c0c28fb9f1 Merge branch 'release/2.1' into dev 2018-03-29 14:40:40 -07:00
Jass Bagga 2f9ce959ea
Target net461 for all tests (#420) 2018-03-29 14:38:47 -07:00
Ajay Bhargav Baaskaran 13d19845c4 Merge branch 'release/2.1' into dev 2018-03-29 14:37:28 -07:00
Jass Bagga cf135a2e03 Merge branch 'release/2.1' into dev 2018-03-29 14:11:05 -07:00
Pranav K effdc47246
Update dependencies.props 2018-03-29 14:07:02 -07:00
ASP.NET CI 1d048f2708 Updating submodule(s)
EntityFrameworkCore => 27a3761b53b81033d7ab2f5e5710bd8a4476b020
Microsoft.Data.Sqlite => fe42de6d85df921a4609663ea95d00785b4729c6
Templating => 79cc52d903

[auto-updated: submodules]
2018-03-29 21:05:43 +00:00
Jass Bagga cb7942abe4
Add no-https option for all templates (#413)
Addresses #322
2018-03-29 13:59:47 -07:00
Jass Bagga 79cc52d903
Merge pull request #418 from aspnet/release/2.1
--no-https option for RazorPagesWeb-CSharp template (#362)
2018-03-29 13:49:46 -07:00
Jass Bagga aca30fe8a2
--no-https option for RazorPagesWeb-CSharp template (#362) 2018-03-29 13:49:20 -07:00
ASP.NET CI bcd2c2800c Updating submodule(s)
EntityFrameworkCore => 410d43d7a75c3f5b98052361abc27ab60063cb4c
Microsoft.Data.Sqlite => 79153c93481a1980ea027b01e14617525f98e25b
Templating => 5ae68a012c

[auto-updated: submodules]
2018-03-29 13:36:01 -07:00
ASP.NET CI d52eda32d0 Updating submodule(s)
EntityFrameworkCore => c4e8182112bc6623c4e567a5e24a29f7511bf76e

[auto-updated: submodules]
2018-03-29 13:23:28 -07:00
Ajay Bhargav Baaskaran a2a920dde5 Normalize the tool assembly path before using it as the base for pipe name 2018-03-29 12:50:51 -07:00
ASP.NET CI 53fea0db6c Updating submodule(s)
EntityFrameworkCore => 7dfd88f858c852de326bcf6aa19b7aa50e8999ac
Templating => f166d0b8a8

[auto-updated: submodules]
2018-03-29 19:34:10 +00:00
ASP.NET CI 68c01d4ccd Updating submodule(s)
EntityFrameworkCore => 05ef882dd8677c248ec0a95254f0f0d9d746fb82
IISIntegration => 199c70b72e

[auto-updated: submodules]
2018-03-29 12:25:17 -07:00