mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-01 19:48:17 +08:00
6c624ec06c
* Add the "BlazorWasmPreRendering.Build" package reference * Cut out the service configuration to static method - it is required for static pre-rendering * Specify locale for pre-rendering to 'en-US' explicitly - otherwise, an exception, "JsonException: '<' is an invalid start of a value" will happen. - because there aren't "*.en.json" files, there are "*.en-US.json" files. * Avoid doing "NavigateTo" during pre-rendering - otherwise, the "NavigationException" will happen. * Move caches of the DemoService to an individual singleton service. - otherwise, a disposed HttpClient object will cause the "ObjectDisposedException" on a Blazor Server - because a static field of a scoped service captures the HttpClient object that will disposed of after that scoped service has expired. * Make it to be pre-rendered the zh-CN locale contents too * Fix the invalid URL in the FAQ document - both en-US and zh-CN. - this caused 404 Not Found and a crash during the pre-rendering process. * Change the pre-rendering output style to '{path}/{to}.html'. - from the '{path}/{to}/index.html' style. * Make the description part of the component pages be included in the static pre-rendering. - To achieve that, load a DemoComponent object in the `OnIntializedAsync` life cycle method. - and make sure to avoid invoking `NavigationTo` in the `OnIntializedAsync` life cycle method. |
||
---|---|---|
.. | ||
CompilerService.cs | ||
ConcurrentCache.cs | ||
DemoService.cs | ||
DemoServiceCache.cs | ||
IconListService.cs | ||
MoreProps.cs | ||
Product.cs | ||
Recommend.cs | ||
Sponsor.cs |