[Blazor] Custom JS initializers (#34798)
* Users can create an ES6 module with `<packageName>.lib.module.js` and declare a beforeStart and afterStarted function to integrate into the blazor start process. * In WebAssembly beforeStart receives the BlazorWebAssemblyStartOptions object and any publish extension as part of the method arguments. * In Server beforeStart receives the CircuitStartOptions object and can configure any necessary details. * In Desktop beforeStart does not receive any argument for the time being. * afterStarted receives the Blazor object as argument in all cases. * Callbacks in beforeStart and afterStarted are not invoked in any defined order and are invoked in parallel.
显示
- src/Components/Authorization/src/AuthorizeRouteView.cs 5 个添加, 0 个删除src/Components/Authorization/src/AuthorizeRouteView.cs
- src/Components/Server/src/Builder/ComponentEndpointConventionBuilder.cs 4 个添加, 1 个删除.../Server/src/Builder/ComponentEndpointConventionBuilder.cs
- src/Components/Server/src/Builder/ComponentEndpointRouteBuilderExtensions.cs 9 个添加, 1 个删除...er/src/Builder/ComponentEndpointRouteBuilderExtensions.cs
- src/Components/Server/src/CircuitJavaScriptInitializationMiddleware.cs 26 个添加, 0 个删除...s/Server/src/CircuitJavaScriptInitializationMiddleware.cs
- src/Components/Server/src/CircuitOptions.cs 3 个添加, 2 个删除src/Components/Server/src/CircuitOptions.cs
- src/Components/Server/src/Circuits/CircuitOptionsJavaScriptInitializersConfiguration.cs 33 个添加, 0 个删除...uits/CircuitOptionsJavaScriptInitializersConfiguration.cs
- src/Components/Server/src/ComponentHub.cs 1 个添加, 0 个删除src/Components/Server/src/ComponentHub.cs
- src/Components/Server/src/DependencyInjection/ComponentServiceCollectionExtensions.cs 1 个添加, 0 个删除...pendencyInjection/ComponentServiceCollectionExtensions.cs
- src/Components/Server/test/ComponentEndpointRouteBuilderExtensionsTest.cs 6 个添加, 1 个删除...erver/test/ComponentEndpointRouteBuilderExtensionsTest.cs
- src/Components/Web.JS/dist/Release/blazor.server.js 0 个添加, 0 个删除src/Components/Web.JS/dist/Release/blazor.server.js
- src/Components/Web.JS/dist/Release/blazor.webview.js 0 个添加, 0 个删除src/Components/Web.JS/dist/Release/blazor.webview.js
- src/Components/Web.JS/src/Boot.Server.ts 5 个添加, 1 个删除src/Components/Web.JS/src/Boot.Server.ts
- src/Components/Web.JS/src/Boot.WebAssembly.ts 14 个添加, 5 个删除src/Components/Web.JS/src/Boot.WebAssembly.ts
- src/Components/Web.JS/src/Boot.WebView.ts 4 个添加, 0 个删除src/Components/Web.JS/src/Boot.WebView.ts
- src/Components/Web.JS/src/JSInitializers/JSInitializers.Server.ts 16 个添加, 0 个删除...onents/Web.JS/src/JSInitializers/JSInitializers.Server.ts
- src/Components/Web.JS/src/JSInitializers/JSInitializers.WebAssembly.ts 15 个添加, 0 个删除...s/Web.JS/src/JSInitializers/JSInitializers.WebAssembly.ts
- src/Components/Web.JS/src/JSInitializers/JSInitializers.WebView.ts 14 个添加, 0 个删除...nents/Web.JS/src/JSInitializers/JSInitializers.WebView.ts
- src/Components/Web.JS/src/JSInitializers/JSInitializers.ts 40 个添加, 0 个删除src/Components/Web.JS/src/JSInitializers/JSInitializers.ts
- src/Components/Web.JS/src/Platform/BootConfig.ts 27 个添加, 7 个删除src/Components/Web.JS/src/Platform/BootConfig.ts
- src/Components/Web.JS/src/Platform/WebAssemblyStartOptions.ts 1 个添加, 1 个删除...Components/Web.JS/src/Platform/WebAssemblyStartOptions.ts
加载中
想要评论请 注册 或 登录