Commit Graph

102 Commits

Author SHA1 Message Date
Steve Sanderson a03cb48c7a When compiling Razor components, take base namespace from host project 2018-01-14 14:40:57 +00:00
Steve Sanderson a32b857d96 When compiling Razor files, generate namespace based on directory path 2018-01-14 14:35:13 +00:00
Steve Sanderson 654c16fb44 Begin unit tests for RazorCompiler 2018-01-12 15:08:10 +00:00
Steve Sanderson f8cbed2326 Update unit tests to reflect updated Mono BCL. Much of this will disappear once we start optimizing the BCL. 2018-01-12 14:16:41 +00:00
Steve Sanderson 42a79ba8e6 Fix tests affected by recent refactoring 2018-01-12 13:07:16 +00:00
Steve Sanderson 5b3f05bdc1 Begin emitting C# classes for Razor components 2018-01-11 11:51:27 +00:00
Steve Sanderson 3f522ab216 Begin ability to have .cshtml files in Blazor apps 2018-01-11 11:11:47 +00:00
Steve Sanderson 8d4491d4b8 Begin Razor build command 2018-01-11 10:31:49 +00:00
Steve Sanderson 863826ab9d Begin on compilation infrastructure for Razor components 2018-01-10 16:34:37 +00:00
Steve Sanderson 247015fabb Move interop-related TS code into its own directory 2018-01-10 12:36:37 +00:00
Steve Sanderson 111e83c976 Clean up usage of RenderComponentArgs in TS by explicitly defining accessors 2018-01-10 12:31:25 +00:00
Steve Sanderson 950250d1f7 Improve naming for direct memory access APIs in Platform interface 2018-01-10 12:15:26 +00:00
Steve Sanderson 0187384638 Clean up how JS functions are registered and located for invocation from .NET 2018-01-10 11:55:52 +00:00
Steve Sanderson 7bbf2b54aa Enable TypeScript strict mode 2018-01-10 10:42:08 +00:00
Steve Sanderson 34d3eb5b72 Unit tests for Renderer 2018-01-09 17:21:50 +00:00
Steve Sanderson a729a8d5c5 Improve XML docs on BrowserRenderer 2018-01-09 15:23:27 +00:00
Steve Sanderson 07e31c6318 Unit tests relating to Renderer GC behavior 2018-01-09 15:08:27 +00:00
Steve Sanderson c95747af3e Remove some implementation code that isn't strictly needed (so far, at least) 2018-01-09 13:52:56 +00:00
Steve Sanderson 04f9c476a8 Update StandaloneApp to render a component. Remove some redundant code. 2018-01-09 13:45:15 +00:00
Steve Sanderson 6585667ce6 Refactor most of the rendering logic into Microsoft.Blazor, keeping only browser-specific parts in Microsoft.Blazor.Browser 2018-01-09 13:33:49 +00:00
Steve Sanderson 674024ed61 Rename UITree -> RenderTree, UIEventInfo -> UIEventArgs 2018-01-09 09:55:14 +00:00
Steve Sanderson 5793bf700a Add ability to render child components 2018-01-08 14:21:48 +00:00
Steve Sanderson 04c582647a Add support for passing parameters to UI event handlers (e.g., which key was pressed) 2018-01-08 11:31:10 +00:00
Steve Sanderson 23f7120b75 Basic parameterless events support (e.g., button click) 2018-01-05 22:16:29 +00:00
Steve Sanderson f7cb54121b Add DOM rendering capability for attributes 2018-01-05 17:50:03 +00:00
Steve Sanderson 0db6f5cc5d Add concept of "attributes" to UITree. So far the values are only allowed to be strings, but this will have to change later. 2018-01-05 17:28:26 +00:00
Steve Sanderson f0a78d13bf Begin tracking association between components and DOM elements so that components can be refresh their own display 2018-01-05 14:31:06 +00:00
Steve Sanderson dfd6c4a1c2 Begin E2E testing for BasicTestApp and component rendering in browser 2018-01-04 17:35:58 +00:00
Steve Sanderson ce04fde7bd Begin adding BasicTestApp for more E2E tests 2018-01-04 15:37:32 +00:00
Steve Sanderson 5e25ab16a2 Add unit tests for UITreeBuilder 2018-01-04 15:25:14 +00:00
Steve Sanderson 5238dd9bc4 Allow NPM to reorder the package-lock.json file 2018-01-04 14:28:18 +00:00
Steve Sanderson a24fee4690 Set some projects back to netcoreapp until there's a way of referencing netcoreapp build tools from netstandard projects 2018-01-04 14:28:03 +00:00
Steve Sanderson 5453b58f31 Initial basic component rendering. Does not yet do any tree diffing. APIs will change. 2018-01-04 14:11:37 +00:00
Steve Sanderson 29e0d4629b Add note about TFM for client apps 2018-01-03 15:40:35 +00:00
Steve Sanderson d3092dd787 Change libraries from netcoreapp2.0 to netstandard2.0 where possible 2018-01-03 15:37:31 +00:00
Steve Sanderson 78d12da33e Implement simplified RegisteredFunction.Invoke that uses JSON for marshalling 2018-01-03 14:13:04 +00:00
Steve Sanderson 54c2431e88 Rename Invoke to InvokeUnmarshalled 2018-01-03 12:01:20 +00:00
Steve Sanderson 7daec15a8e Add TS part of RegisteredFunction API 2017-12-15 20:01:23 +00:00
Steve Sanderson 9e92c21a2f Simplify code by not inlining quite so much 2017-12-15 19:50:36 +00:00
Steve Sanderson 04064f983c Add test to more explicitly cover both 'params array' and 'generics'-style interop APIs 2017-12-15 19:41:20 +00:00
Steve Sanderson 09eccb52c5 Remove old marshalled-interop API and update MonoSanity sample to use newer API 2017-12-15 19:16:15 +00:00
Steve Sanderson 99a08da321 Add API for unmarshalled .NET -> JS invocations (passing and returning .NET heap object pointers) 2017-12-15 14:26:40 +00:00
Steve Sanderson 748903c62f Rebuild client apps when any source file changes 2017-12-15 13:28:40 +00:00
Steve Sanderson fe6105a902 Support JS invocations that return undefined 2017-12-15 11:40:43 +00:00
Steve Sanderson d1069e2d1e Begin on Microsoft.Blazor.Browser project 2017-12-15 11:31:05 +00:00
Steve Sanderson 809528676b Rename Microsoft.Blazor.Browser project to Microsoft.Blazor.Browser.JS 2017-12-15 11:24:03 +00:00
Steve Sanderson 67f7559950 On exception when calling JS from .NET, return JS stack trace to .NET invoker 2017-12-15 11:05:28 +00:00
Steve Sanderson 6eede7b109 Low-level MonoSanity tests for invoking JS from .NET code 2017-12-15 10:57:44 +00:00
Steve Sanderson 4135f04901 Improve incremental build support 2017-12-14 19:54:00 +00:00
Steve Sanderson c72f9a1977 Simplify in-memory file provider usage by initializing with byte[], not Stream 2017-12-14 15:48:01 +00:00