mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-11-29 18:48:50 +08:00
docs: update document content
docs: update document content
This commit is contained in:
parent
aca3bb4d2a
commit
69cb9e015e
2
.github/workflows/pull-request.yml
vendored
2
.github/workflows/pull-request.yml
vendored
@ -36,7 +36,7 @@ jobs:
|
||||
run: |
|
||||
npm install
|
||||
dotnet build
|
||||
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net5 -o cargo
|
||||
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net6 -o cargo
|
||||
|
||||
- name: Test 📝
|
||||
run: |
|
||||
|
3
.github/workflows/release-AOT.yml
vendored
3
.github/workflows/release-AOT.yml
vendored
@ -52,8 +52,7 @@ jobs:
|
||||
sed -i s/{version}/$VERSION/g ./site/AntDesign.Docs.Wasm/wwwroot/index.html
|
||||
sed -i s/{version}/$VERSION/g ./site/AntDesign.Docs.Wasm/wwwroot/service-worker.published.js
|
||||
dotnet build
|
||||
# dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net6 -o cargo -p:EnableAOT=true
|
||||
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net6 -o cargo
|
||||
dotnet publish ./site/AntDesign.Docs.Wasm -c Release -f net6 -o cargo -p:EnableAOT=true
|
||||
cp -rf cargo/staticwebapp.config.json cargo/wwwroot
|
||||
|
||||
- name: Deploy to Azure 🚀
|
||||
|
@ -1,6 +1,6 @@
|
||||
<p align="center">
|
||||
<a href="https://yangshunjie.com/ant-design-blazor/">
|
||||
<img src="https://cdn.jsdelivr.net/gh/ant-design-blazor/ant-design-blazor/logo.svg?sanitize=true">
|
||||
<img src="https://raw.githubusercontent.com/ant-design-blazor/ant-design-blazor/logo.svg?sanitize=true">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@ -34,24 +34,25 @@
|
||||
- 🛡 使用 C# 构建,多范式静态语言带来高效的开发体验。
|
||||
- ⚙️ 基于 .NET Standard 2.1 / .NET 5 / .NET 6,可直接引用丰富的 .NET 类库。
|
||||
- 🎁 可与已有的 ASP.NET Core MVC、Razor Pages 项目无缝集成。
|
||||
- 💴 基于 MIT 开源协议,.NET 基金会项目,商业应用免费。
|
||||
|
||||
## 🌈 在线示例
|
||||
|
||||
WebAssembly 静态托管页面示例
|
||||
|
||||
- [GitHub](https://ant-design-blazor.github.io)
|
||||
- [Gitee](https://ant-design-blazor.gitee.io/)
|
||||
- [Azure Static WebApp](https://antblazor.com/)
|
||||
|
||||
## 🖥 支持环境
|
||||
|
||||
- .NET Core 3.1 / .NET 5 / .NET 6。
|
||||
- 兼容 .NET Core 3.1 / .NET 5 / .NET 6。
|
||||
- Blazor WebAssembly 3.2 /.NET 5 /.NET 6 正式版。
|
||||
- 支持服务端双向绑定。
|
||||
- 支持 WebAssembly 静态文件部署。
|
||||
- 主流 4 款现代浏览器,以及 Internet Explorer 11+(限 [Blazor Server](https://docs.microsoft.com/en-us/aspnet/core/blazor/supported-platforms?view=aspnetcore-3.1&WT.mc_id=DT-MVP-5003987))。
|
||||
- 可直接运行在 [.NET MAUI](https://dotnet.microsoft.com/zh-cn/apps/maui?WT.mc_id=DT-MVP-5003987)、[WPF](https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/wpf?view=aspnetcore-6.0&WT.mc_id=DT-MVP-5003987)、[Windows Forms](https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/windows-forms?view=aspnetcore-6.0) 等 Blazor 混合客户端环境中。
|
||||
- 可直接运行在 [Electron](http://electron.atom.io/) 等基于 Web 标准的环境上。
|
||||
|
||||
| [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br> Edge / IE | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
|
||||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br> Edge / IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
|
||||
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
||||
| Edge 16 / IE 11† | 522 | 57 | 11 | 44 | Chromium 57 |
|
||||
|
||||
@ -174,6 +175,7 @@ WebAssembly 静态托管页面示例
|
||||
## 🔗 链接
|
||||
|
||||
- [文档主页](https://ant-design-blazor.gitee.io)
|
||||
- [Ant Design Blazor 商业应用调查](https://wj.qq.com/s2/10306537/c332/)
|
||||
- [Blazor 官方文档](https://docs.microsoft.com/zh-cn/aspnet/core/blazor/?WT.mc_id=DT-MVP-5003987)
|
||||
- [MS Learn 平台 Blazor 教程](https://docs.microsoft.com/zh-cn/learn/modules/build-blazor-webassembly-visual-studio-code/?WT.mc_id=DT-MVP-5003987)
|
||||
|
||||
@ -213,7 +215,7 @@ WebAssembly 静态托管页面示例
|
||||
|
||||
- [![钉钉群](https://img.shields.io/badge/钉钉-AntBlazor-blue.svg?style=flat-square&logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSIjZmZmZmZmIj4NCiAgPHBhdGggZD0iTTU3My43IDI1Mi41QzQyMi41IDE5Ny40IDIwMS4zIDk2LjcgMjAxLjMgOTYuN2MtMTUuNy00LjEtMTcuOSAxMS4xLTE3LjkgMTEuMS01IDYxLjEgMzMuNiAxNjAuNSA1My42IDE4Mi44IDE5LjkgMjIuMyAzMTkuMSAxMTMuNyAzMTkuMSAxMTMuN1MzMjYgMzU3LjkgMjcwLjUgMzQxLjljLTU1LjYtMTYtMzcuOSAxNy44LTM3LjkgMTcuOCAxMS40IDYxLjcgNjQuOSAxMzEuOCAxMDcuMiAxMzguNCA0Mi4yIDYuNiAyMjAuMSA0IDIyMC4xIDRzLTM1LjUgNC4xLTkzLjIgMTEuOWMtNDIuNyA1LjgtOTcgMTIuNS0xMTEuMSAxNy44LTMzLjEgMTIuNSAyNCA2Mi42IDI0IDYyLjYgODQuNyA3Ni44IDEyOS43IDUwLjUgMTI5LjcgNTAuNSAzMy4zLTEwLjcgNjEuNC0xOC41IDg1LjItMjQuMkw1NjUgNzQzLjFoODQuNkw2MDMgOTI4bDIwNS4zLTI3MS45SDcwMC44bDIyLjMtMzguN2MuMy41LjQuOC40LjhTNzk5LjggNDk2LjEgODI5IDQzMy44bC42LTFoLS4xYzUtMTAuOCA4LjYtMTkuNyAxMC0yNS44IDE3LTcxLjMtMTE0LjUtOTkuNC0yNjUuOC0xNTQuNXoiLz4NCjwvc3ZnPg0K)](https://h5.dingtalk.com/circle/healthCheckin.html?corpId=dingf3df1949a4aa48627b0128d9a44ecb79&c5df5865-4f41-=be1b34c7-397b-&cbdbhh=qwertyuiop&origin=11) (中文)
|
||||
|
||||
<img src="https://cdn.jsdelivr.net/gh/ant-design-blazor/ant-design-blazor/docs/assets/dingtalk.jpg" width="200">
|
||||
<img src="/docs/assets/dingtalk.jpg" width="200">
|
||||
|
||||
- 另外,我还创立了面向中文开发者的 Blazor 中文社区,高手如云,只讨论技术,无卖课广告。可以加我微信(JamesYeungMVP)拉进微信群,另外也有一个 QQ 群 1012762441。广告勿扰。
|
||||
|
||||
|
22
README.md
22
README.md
@ -1,6 +1,6 @@
|
||||
<p align="center">
|
||||
<a href="https://yangshunjie.com/ant-design-blazor/">
|
||||
<img src="https://cdn.jsdelivr.net/gh/ant-design-blazor/ant-design-blazor/logo.svg?sanitize=true">
|
||||
<img src="https://raw.githubusercontent.com/ant-design-blazor/ant-design-blazor/logo.svg?sanitize=true">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@ -39,19 +39,19 @@ English | [简体中文](README-zh_CN.md)
|
||||
|
||||
WebAssembly static hosting examples:
|
||||
|
||||
- [GitHub](https://ant-design-blazor.github.io/)
|
||||
- [Gitee](https://ant-design-blazor.gitee.io/)
|
||||
- [Azure Static WebApp](https://antblazor.com/)
|
||||
|
||||
## 🖥 Environment Support
|
||||
|
||||
- Compatible with .NET Core 3.1 / .NET 5 / .NET 6。
|
||||
- Blazor WebAssembly 3.2/.NET 5 Release
|
||||
- Supports two-way binding on the server side
|
||||
- Supports WebAssembly static file deployment
|
||||
- Support 4 major browsers engines, and Internet Explorer 11+ ([Blazor Server](https://docs.microsoft.com/en-us/aspnet/core/blazor/supported-platforms?view=aspnetcore-3.1&WT.mc_id=DT-MVP-5003987) only)
|
||||
- Run directly on [Electron](http://electron.atom.io/) and other Web standards-based environments
|
||||
- Compatible with .NET Core 3.1 / .NET 5 / .NET 6.
|
||||
- Blazor WebAssembly 3.2 / .NET 5 / .NET 6 Release.
|
||||
- Supports two-way binding on the server side.
|
||||
- Supports WebAssembly static file deployment.
|
||||
- Support 4 major browsers engines, and Internet Explorer 11+ ([Blazor Server](https://docs.microsoft.com/en-us/aspnet/core/blazor/supported-platforms?view=aspnetcore-6.0&WT.mc_id=DT-MVP-5003987) only)
|
||||
- Run directly on [.NET MAUI](https://dotnet.microsoft.com/zh-cn/apps/maui?WT.mc_id=DT-MVP-5003987) / [WPF](https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/wpf?view=aspnetcore-6.0&WT.mc_id=DT-MVP-5003987) / [Windows Forms](https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/windows-forms?view=aspnetcore-6.0) and other Blazor Hybrid workloads.
|
||||
- Run directly on [Electron](http://electron.atom.io/) and other Web standards-based environments.
|
||||
|
||||
| [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br> Edge / IE | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
|
||||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br> Edge / IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
|
||||
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
||||
| Edge 16 / IE 11† | 522 | 57 | 11 | 44 | Chromium 57 |
|
||||
|
||||
@ -221,7 +221,7 @@ If you encounter any problems in the process, feel free to ask for help via foll
|
||||
|
||||
<details>
|
||||
<summary>Scan QR Code with DingTalk</summary>
|
||||
<img src="https://cdn.jsdelivr.net/gh/ant-design-blazor/ant-design-blazor/docs/assets/dingtalk.jpg" width="300">
|
||||
<img src="https://raw.githubusercontent.com/ant-design-blazor/ant-design-blazor/docs/assets/dingtalk.jpg" width="300">
|
||||
</details>
|
||||
|
||||
## Code of Conduct
|
||||
|
@ -1,8 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.1;net5</TargetFrameworks>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<TargetFrameworks>netstandard2.1;net5;net6</TargetFrameworks>
|
||||
<LangVersion>10.0</LangVersion>
|
||||
<OutputType>Library</OutputType>
|
||||
<IsPackable>true</IsPackable>
|
||||
<RazorLangVersion>3.0</RazorLangVersion>
|
||||
@ -51,14 +51,22 @@
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework) == 'net5'">
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.DataAnnotations.Validation" Version="3.2.0-rc1.20223.4" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="5.0.3">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework) == 'net6'">
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.CodeAnalysis.NetAnalyzers" Version="6.0.0">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.DataAnnotations.Validation" Version="3.2.0-rc1.20223.4" />
|
||||
<PackageReference Include="OneOf" Version="2.1.155" />
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
|
||||
</ItemGroup>
|
||||
|
BIN
docs/assets/links/who-is-using-ant-design-blazor.png
Normal file
BIN
docs/assets/links/who-is-using-ant-design-blazor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 KiB |
BIN
docs/assets/news/AzureDesignStudio.gif
Normal file
BIN
docs/assets/news/AzureDesignStudio.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 MiB |
@ -8,7 +8,7 @@ Following the Ant Design specification, we developed a Blazor Components library
|
||||
<div class="pic-plus">
|
||||
<img width="150" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg">
|
||||
<span>+</span>
|
||||
<img height="150" src="https://cdn.jsdelivr.net/gh/ant-design-blazor/ant-design-blazor/docs/assets/blazor.svg">
|
||||
<img height="150" src="https://raw.githubusercontent.com/ant-design-blazor/ant-design-blazor/docs/assets/blazor.svg">
|
||||
</div>
|
||||
|
||||
<style>
|
||||
@ -37,19 +37,19 @@ Following the Ant Design specification, we developed a Blazor Components library
|
||||
|
||||
WebAssembly static hosting examples:
|
||||
|
||||
- [Gitee](https://ant-design-blazor.gitee.io/)
|
||||
- [GitHub](https://ant-design-blazor.github.io/)
|
||||
- [Azure Static WebApp](https://antblazor.com/)
|
||||
|
||||
## 🖥 Environment Support
|
||||
|
||||
- .NET Core 3.1 / .NET 5
|
||||
- Blazor WebAssembly 3.2 Release
|
||||
- .NET Core 3.1 / .NET 5 / .NET 6
|
||||
- Blazor WebAssembly 3.2 / .NET 5 / .NET 6 Release
|
||||
- Supports two-way binding on the server side
|
||||
- Supports WebAssembly static file deployment
|
||||
- Support 4 major browsers engines, and Internet Explorer 11+ ([Blazor Server](https://docs.microsoft.com/en-us/aspnet/core/blazor/supported-platforms?view=aspnetcore-3.1&WT.mc_id=DT-MVP-5003987) only)
|
||||
- Run directly on [Electron](http://electron.atom.io/) and other Web standards-based environments
|
||||
- Support 4 major browsers engines, and Internet Explorer 11+ ([Blazor Server](https://docs.microsoft.com/en-us/aspnet/core/blazor/supported-platforms?view=aspnetcore-6.0&WT.mc_id=DT-MVP-5003987) only)
|
||||
- Run directly on [.NET MAUI](https://dotnet.microsoft.com/zh-cn/apps/maui?WT.mc_id=DT-MVP-5003987) / [WPF](https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/wpf?view=aspnetcore-6.0&WT.mc_id=DT-MVP-5003987) / [Windows Forms](https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/windows-forms?view=aspnetcore-6.0) and other Blazor Hybrid workloads.
|
||||
- Run directly on [Electron](http://electron.atom.io/) and other Web standards-based environments.
|
||||
|
||||
| [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br> Edge / IE | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
|
||||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br> Edge / IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
|
||||
| :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
||||
| Edge 16 / IE 11† | 522 | 57 | 11 | 44 | Chromium 57 |
|
||||
|
||||
|
@ -8,7 +8,7 @@ title: Ant Design of Blazor
|
||||
<div class="pic-plus">
|
||||
<img width="150" src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg">
|
||||
<span>+</span>
|
||||
<img height="150" src="https://cdn.jsdelivr.net/gh/ant-design-blazor/ant-design-blazor/docs/assets/blazor.svg">
|
||||
<img height="150" src="https://raw.githubusercontent.com/ant-design-blazor/ant-design-blazor/docs/assets/blazor.svg">
|
||||
</div>
|
||||
|
||||
<style>
|
||||
@ -30,23 +30,25 @@ title: Ant Design of Blazor
|
||||
- 💕 支持基于 WebAssembly 的客户端和基于 SignalR 的服务端 UI 事件交互。
|
||||
- 🎨 支持渐进式 Web 应用(PWA)
|
||||
- 🛡 使用 C# 构建,多范式静态语言带来高效的开发体验。
|
||||
- ⚙️ 基于 .NET Standard 2.1/.NET 5,可直接引用丰富的 .NET 类库。
|
||||
- ⚙️ 基于 .NET Standard 2.1/.NET 5/.NET 6,可直接引用丰富的 .NET 类库。
|
||||
- 🎁 可与已有的 ASP.NET Core MVC、Razor Pages 项目无缝集成。
|
||||
- 💴 基于 MIT 开源协议,.NET 基金会项目,商业应用免费。
|
||||
|
||||
## 🌈 在线示例
|
||||
|
||||
由 WebAssembly 构建,托管在 Gitee Pages http://ant-design-blazor.gitee.io/
|
||||
由 WebAssembly 构建,托管在 Azure Static WebApp https://antblazor.com/
|
||||
|
||||
## 🖥 支持环境
|
||||
|
||||
- .NET Core 3.1
|
||||
- Blazor WebAssembly 3.2 正式版
|
||||
- 兼容 .NET Core 3.1 / .NET 5 / .NET 6
|
||||
- 最新支持 Blazor WebAssembly 6.0 正式版
|
||||
- 支持服务端双向绑定
|
||||
- 支持 WebAssembly 静态文件部署
|
||||
- 主流 4 款现代浏览器,以及 Internet Explorer 11+ (使用 [Blazor Server](https://docs.microsoft.com/zh-cn/aspnet/core/blazor/supported-platforms?view=aspnetcore-3.1&WT.mc_id=DT-MVP-5003987))
|
||||
- 主流 4 款现代浏览器,以及 Internet Explorer 11+ (使用 [Blazor Server](https://docs.microsoft.com/zh-cn/aspnet/core/blazor/supported-platforms?view=aspnetcore-6.0&WT.mc_id=DT-MVP-5003987))
|
||||
- 可直接运行在 [.NET MAUI](https://dotnet.microsoft.com/zh-cn/apps/maui?WT.mc_id=DT-MVP-5003987)、[WPF](https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/wpf?view=aspnetcore-6.0&WT.mc_id=DT-MVP-5003987)、[Windows Forms](https://docs.microsoft.com/en-us/aspnet/core/blazor/hybrid/tutorials/windows-forms?view=aspnetcore-6.0) 等 Blazor 混合客户端环境中。
|
||||
- 可直接运行在 [Electron](http://electron.atom.io/) 等基于 Web 标准的环境上
|
||||
|
||||
| [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br> Edge / IE | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://cdn.jsdelivr.net/gh/alrra/browser-logos/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
|
||||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br> Edge / IE | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/opera/opera_48x48.png" alt="Opera" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Opera | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/src/electron/electron_48x48.png" alt="Electron" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)</br>Electron |
|
||||
| :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|
||||
| Edge 16 / IE 11† | 522 | 57 | 11 | 44 | Chromium 57 |
|
||||
|
||||
@ -180,7 +182,7 @@ title: Ant Design of Blazor
|
||||
|
||||
- [![钉钉群](https://img.shields.io/badge/钉钉-AntBlazor-blue.svg?style=flat-square&logo=data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/Pg0KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGNsYXNzPSJpY29uIiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSIjZmZmZmZmIj4NCiAgPHBhdGggZD0iTTU3My43IDI1Mi41QzQyMi41IDE5Ny40IDIwMS4zIDk2LjcgMjAxLjMgOTYuN2MtMTUuNy00LjEtMTcuOSAxMS4xLTE3LjkgMTEuMS01IDYxLjEgMzMuNiAxNjAuNSA1My42IDE4Mi44IDE5LjkgMjIuMyAzMTkuMSAxMTMuNyAzMTkuMSAxMTMuN1MzMjYgMzU3LjkgMjcwLjUgMzQxLjljLTU1LjYtMTYtMzcuOSAxNy44LTM3LjkgMTcuOCAxMS40IDYxLjcgNjQuOSAxMzEuOCAxMDcuMiAxMzguNCA0Mi4yIDYuNiAyMjAuMSA0IDIyMC4xIDRzLTM1LjUgNC4xLTkzLjIgMTEuOWMtNDIuNyA1LjgtOTcgMTIuNS0xMTEuMSAxNy44LTMzLjEgMTIuNSAyNCA2Mi42IDI0IDYyLjYgODQuNyA3Ni44IDEyOS43IDUwLjUgMTI5LjcgNTAuNSAzMy4zLTEwLjcgNjEuNC0xOC41IDg1LjItMjQuMkw1NjUgNzQzLjFoODQuNkw2MDMgOTI4bDIwNS4zLTI3MS45SDcwMC44bDIyLjMtMzguN2MuMy41LjQuOC40LjhTNzk5LjggNDk2LjEgODI5IDQzMy44bC42LTFoLS4xYzUtMTAuOCA4LjYtMTkuNyAxMC0yNS44IDE3LTcxLjMtMTE0LjUtOTkuNC0yNjUuOC0xNTQuNXoiLz4NCjwvc3ZnPg0K)](https://h5.dingtalk.com/circle/healthCheckin.html?corpId=dingf3df1949a4aa48627b0128d9a44ecb79&c5df5865-4f41-=be1b34c7-397b-&cbdbhh=qwertyuiop&origin=11) (中文)
|
||||
|
||||
<img src="https://cdn.jsdelivr.net/gh/ant-design-blazor/ant-design-blazor/docs/assets/dingtalk.jpg" width="300">
|
||||
<img src="https://raw.githubusercontent.com/ant-design-blazor/ant-design-blazor/docs/assets/dingtalk.jpg" width="300">
|
||||
|
||||
- 另外,我还创立了面向中文开发者的 Blazor 中文社区,高手如云,只讨论技术,无卖课广告。可以加我微信(JamesYeungMVP)拉进微信群,另外也有一个 QQ 群 1012762441。广告勿扰。
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
||||
"fs-extra": "^9.0.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-clean-css": "^4.3.0",
|
||||
"gulp-less": "^4.0.1",
|
||||
"gulp-less": "^5.0.0",
|
||||
"gulp-rename": "^2.0.0",
|
||||
"gulp-sourcemaps": "^2.6.5",
|
||||
"gulp-typescript": "^6.0.0-alpha.1",
|
||||
|
@ -5,8 +5,9 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
|
||||
<title>Ant Design Blazor - 🌈A set of enterprise-class UI components based on Ant Design and Blazor WebAssembly.
|
||||
</title>
|
||||
<title>Ant Design Blazor</title>
|
||||
<meta name="author" content="Chris Mills">
|
||||
<meta name="description" content="🌈A set of enterprise-class UI components based on Ant Design and Blazor WebAssembly.">
|
||||
<base href="/" />
|
||||
<link rel="icon" href="logo.png" type="image/x-icon" />
|
||||
<link rel="preconnect" href="https://C9UTAZSOWW-dsn.algolia.net" crossorigin />
|
||||
|
@ -1,25 +0,0 @@
|
||||
#! /bin/bash
|
||||
|
||||
ignoreDir=(
|
||||
less
|
||||
)
|
||||
|
||||
|
||||
read_dir(){
|
||||
for file in `ls $1`
|
||||
do
|
||||
if [ -d $1"/"$file ]; then
|
||||
if [[ ! "${ignoreDir[@]}" =~ "${file}" ]]; then
|
||||
read_dir $1"/"$file $2
|
||||
fi
|
||||
else
|
||||
filePath=$1"/"$file
|
||||
filePath=${filePath/$2\//}
|
||||
echo ''
|
||||
echo 'purging '${filePath}'...'
|
||||
curl -s https://purge.jsdelivr.net/gh/$3/$filePath
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
read_dir $1 $1 $2
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5</TargetFrameworks>
|
||||
<TargetFrameworks>net6</TargetFrameworks>
|
||||
<OutputType>Exe</OutputType>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -38,15 +38,15 @@ namespace AntDesign.Docs.Build.CLI.Command
|
||||
["其他"] = 7,
|
||||
["Charts"] = 8,
|
||||
["图表"] = 8,
|
||||
["Experimental"] = 9,
|
||||
["实验性功能"] = 9,
|
||||
//["Experimental"] = 9,
|
||||
//["实验性功能"] = 9,
|
||||
};
|
||||
|
||||
private static readonly Dictionary<string, string> _demoCategoryMap = new Dictionary<string, string>()
|
||||
{
|
||||
["Components"] = "组件",
|
||||
["Charts"] = "图表",
|
||||
["Experimental"] = "实验性功能"
|
||||
//["Experimental"] = "实验性功能"
|
||||
};
|
||||
|
||||
public void Execute(CommandLineApplication command)
|
||||
@ -176,6 +176,10 @@ namespace AntDesign.Docs.Build.CLI.Command
|
||||
|
||||
foreach (var component in categoryComponent)
|
||||
{
|
||||
if (!_demoCategoryMap.ContainsKey(component.Key))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
menu.Add(new DemoMenuItem()
|
||||
{
|
||||
Order = Array.IndexOf(_demoCategoryMap.Select(x => x.Key).ToArray(), component.Key) + 1,
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<Target Name="DebugEnsureNodeEnv" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug' And !Exists('$(SolutionDir)node_modules') ">
|
||||
@ -38,8 +38,8 @@
|
||||
|
||||
<Target Name="RunCli" BeforeTargets="Build" Condition=" '$(Configuration)' == 'Debug'">
|
||||
<Copy SourceFiles="@(DocFiles)" DestinationFolder="$(ProjectDir)\wwwroot\docs\%(RecursiveDir)" ContinueOnError="true" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet run -f net5 --project $(CLIPath) demo2json $(ProjectDir)/Demos $(ProjectDir)/wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet run -f net5 --project $(CLIPath) menu2json $(ProjectDir)/Demos $(ProjectDir)/wwwroot/docs $(ProjectDir)/wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet run -f net5 --project $(CLIPath) docs2html $(ProjectDir)/wwwroot/docs ./site/AntDesign.Docs/wwwroot/docs" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet run -f net6 --project $(CLIPath) demo2json $(ProjectDir)/Demos $(ProjectDir)/wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet run -f net6 --project $(CLIPath) menu2json $(ProjectDir)/Demos $(ProjectDir)/wwwroot/docs $(ProjectDir)/wwwroot/meta" />
|
||||
<Exec WorkingDirectory="$(SolutionDir)" Command="dotnet run -f net6 --project $(CLIPath) docs2html $(ProjectDir)/wwwroot/docs ./site/AntDesign.Docs/wwwroot/docs" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
@ -10,7 +10,6 @@
|
||||
<title>Ant Design of Blazor</title>
|
||||
<base href="~/" />
|
||||
<link rel="icon" href="logo.png" type="image/x-icon">
|
||||
@*<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet">*@
|
||||
<link rel="preconnect" href="https://C9UTAZSOWW-dsn.algolia.net" crossorigin />
|
||||
<link rel="stylesheet" href="@("https://unpkg.com/@docsearch/css@3.0.0/dist/style.css")" />
|
||||
<link href="_content/AntDesign.Docs/css/docs.default.css" rel="stylesheet">
|
||||
@ -23,7 +22,7 @@
|
||||
#if NET5_0_OR_GREATER
|
||||
var polyfillPath = "_framework/blazor.polyfill.min.js";
|
||||
#else
|
||||
var polyfillPath = "https://cdn.jsdelivr.net/gh/Daddoon/Blazor.Polyfill@3.0.8/Publish/Blazor.Polyfill.Publish/blazor.polyfill.min.js";
|
||||
var polyfillPath = "https://raw.githubusercontent.com/Daddoon/Blazor.Polyfill@3.0.8/Publish/Blazor.Polyfill.Publish/blazor.polyfill.min.js";
|
||||
#endif
|
||||
#if NET6_0
|
||||
var isNET6 = true;
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>net5;net6</TargetFrameworks>
|
||||
<TargetFrameworks>net6</TargetFrameworks>
|
||||
<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
|
||||
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
|
||||
</PropertyGroup>
|
||||
@ -10,17 +10,10 @@
|
||||
<RunAOTCompilation>true</RunAOTCompilation>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework) == 'net5'">
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="5.0.0" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="$(TargetFramework) == 'net6'">
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0-rc.1.*" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0-rc.1.*" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="6.0.0-rc.1.*" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0" PrivateAssets="all" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Authentication" Version="6.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Web.Extensions" Version="5.0.0-preview9.20513.1" />
|
||||
</ItemGroup>
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
@ -12,6 +13,7 @@ namespace AntDesign.Docs.Wasm
|
||||
{
|
||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||
builder.RootComponents.Add<App>("app");
|
||||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
|
||||
builder.Services.AddTransient(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });
|
||||
|
||||
|
@ -197,10 +197,6 @@
|
||||
<script src="_content/AntDesign.Charts/ant-design-charts-blazor.js"></script>
|
||||
<script src="_content/AntDesign/js/ant-design-blazor.js"></script>
|
||||
<script src="_content/AntDesign.Docs/js/prism.js"></script>
|
||||
|
||||
<!-- use compression via https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-5.0#compression -->
|
||||
<script src="decode.js"></script>
|
||||
|
||||
<script>
|
||||
window.AntDesign.Prism = {};
|
||||
window.AntDesign.Prism.highlight = function (code, language) {
|
||||
@ -219,29 +215,7 @@
|
||||
}
|
||||
</script>
|
||||
|
||||
<script src="_framework/blazor.webassembly.js" autostart="false"></script>
|
||||
<script>
|
||||
Blazor.start({
|
||||
loadBootResource: function (type, name, defaultUri, integrity) {
|
||||
if (type !== 'dotnetjs' && location.hostname !== 'localhost') {
|
||||
return (async function () {
|
||||
const response = await fetch(defaultUri + '.br', { cache: 'no-cache' });
|
||||
if (!response.ok) {
|
||||
throw new Error(response.statusText);
|
||||
}
|
||||
const originalResponseBuffer = await response.arrayBuffer();
|
||||
const originalResponseArray = new Int8Array(originalResponseBuffer);
|
||||
const decompressedResponseArray = BrotliDecode(originalResponseArray);
|
||||
const contentType = type ===
|
||||
'dotnetwasm' ? 'application/wasm' : 'application/octet-stream';
|
||||
return new Response(decompressedResponseArray,
|
||||
{ headers: { 'content-type': contentType } });
|
||||
})();
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<script src="_framework/blazor.webassembly.js"></script>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/2.7.2/less.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
|
||||
<script src="https://unpkg.com/@docsearch/js@3.0.0/dist/umd/index.js"></script>
|
||||
<script src="_content/AntDesign.Docs/js/docsearch.js"></script>
|
||||
|
@ -1,11 +1,11 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net5</TargetFramework>
|
||||
<TargetFramework>net6</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="5.0.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
@ -10,10 +10,8 @@
|
||||
<title>Ant Design of Blazor</title>
|
||||
<base href="~/" />
|
||||
<link rel="icon" href="logo.png" type="image/x-icon">
|
||||
@*<link href="_content/AntDesign/css/ant-design-blazor.css" rel="stylesheet">*@
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2.6.3/dist/cdn/docsearch.min.css" />
|
||||
<link rel="stylesheet" href="@("https://unpkg.com/@docsearch/css@3.0.0/dist/style.css")" />
|
||||
<link href="_content/AntDesign.Docs/css/docs.default.css" rel="stylesheet">
|
||||
|
||||
<script src="@("https://unpkg.com/@antv/g2plot@latest/dist/g2plot.js")"></script>
|
||||
<script src="_content/AntDesign.Charts/ant-design-charts-blazor.js"></script>
|
||||
</head>
|
||||
@ -35,7 +33,7 @@
|
||||
Prism.highlightAll();
|
||||
}
|
||||
</script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2.6.3/dist/cdn/docsearch.min.js" integrity="sha256-qybEsgf0PGiQS22AmoozPs09oRnSC7Gu7eBu4fbS2Ac=" crossorigin="anonymous"></script>
|
||||
<script src=@("https://unpkg.com/@docsearch/js@3.0.0/dist/umd/index.js")></script>
|
||||
<script src="_content/AntDesign.Docs/js/docsearch.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Razor">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netcoreapp3.1;net5</TargetFrameworks>
|
||||
<TargetFrameworks>net6</TargetFrameworks>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
@ -15,7 +15,11 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="wwwroot\docs\assets\links\**" />
|
||||
<Content Remove="wwwroot\docs\assets\links\**" />
|
||||
<EmbeddedResource Remove="wwwroot\docs\assets\links\**" />
|
||||
<None Remove="Resources\*.json" />
|
||||
<None Remove="wwwroot\docs\assets\links\**" />
|
||||
<EmbeddedResource Include="Resources\*.json" />
|
||||
</ItemGroup>
|
||||
|
||||
@ -28,5 +32,9 @@
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\components\AntDesign.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="wwwroot\assets\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
@ -7,6 +7,6 @@ cover:
|
||||
---
|
||||
|
||||
<blockquote style="border-color: #faad14;">
|
||||
<p>NG-ZORRO experiments are features that are released but not yet considered stable or production ready</p>
|
||||
<p>Ant Design Blazor experiments are features that are released but not yet considered stable or production ready</p>
|
||||
<p>Developers and users can opt-in into these features before they are fully released. But <strong>breaking changes</strong> may occur with any release.</p>
|
||||
</blockquote>
|
@ -8,6 +8,6 @@ cover:
|
||||
---
|
||||
|
||||
<blockquote style="border-color: #faad14;">
|
||||
<p>NG-ZORRO 实验性功能是指已发布但不稳定或者还未准备好用于生产环境的功能。</p>
|
||||
<p>Ant Design Blazor 实验性功能是指已发布但不稳定或者还未准备好用于生产环境的功能。</p>
|
||||
<p>开发者或用户可以选择在正式发布前使用这些功能,但是每次发布版本时都可能存在 <strong>breaking changes</strong>。</p>
|
||||
</blockquote>
|
@ -1,6 +1,8 @@
|
||||
@layout BlankLayout
|
||||
@page "/"
|
||||
|
||||
<PageTitle>Ant Design of Blazor</PageTitle>
|
||||
|
||||
<div id="react-content">
|
||||
<MainHeader IsHome />
|
||||
<div class="home-container">
|
||||
@ -36,7 +38,7 @@
|
||||
<Button Type="primary" Shape="round">@Language.Resources["app.home.getting-started"]</Button>
|
||||
</a>
|
||||
<a href="/@Language.CurrentCulture.Name/components">
|
||||
<Button Shape="round">@Language.Resources["app.home.components"]</Button>
|
||||
<Button Shape="round" Icon="github">@Language.Resources["app.home.star-on-github"]</Button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -51,6 +51,7 @@
|
||||
"app.home.qr": "4.0 is out",
|
||||
"app.home.qr.desc": "4.0 is out",
|
||||
"app.home.getting-started": "Getting Started",
|
||||
"app.home.star-on-github": "Star on Github",
|
||||
"app.home.design-language": "Design Language",
|
||||
"app.home.products": "Products",
|
||||
"app.home.product-antv-slogan": "A new way to do data visualization",
|
||||
@ -62,6 +63,7 @@
|
||||
"app.home.product-hitu-slogan": "A new generation of graphical solutions",
|
||||
"app.home.product-kitchen-slogan": "A Sketch plugin to enhance designers",
|
||||
"app.home.product-icons-slogan": "A set of premium icons",
|
||||
"app.home.product-caviar-blazor": "An out-of-the-box administrative backend template that includes permissions and code generation",
|
||||
"app.home.view-more": "More",
|
||||
"app.footer.repo": "GitHub Repository",
|
||||
"app.footer.awesome": "Awesome Ant Design",
|
||||
|
@ -51,6 +51,7 @@
|
||||
"app.home.qr": "4.0 正式版发布",
|
||||
"app.home.qr.desc": "扫描上方二维码查看",
|
||||
"app.home.getting-started": "开始使用",
|
||||
"app.home.star-on-github": "去 Github Star 一下",
|
||||
"app.home.design-language": "设计语言",
|
||||
"app.home.products": "相关生态产品",
|
||||
"app.home.product-antv-slogan": "全新一代数据可视化解决方案",
|
||||
@ -62,6 +63,7 @@
|
||||
"app.home.product-hitu-slogan": "全新一代图形化解决方案",
|
||||
"app.home.product-kitchen-slogan": "一款为设计者提升工作效率的 Sketch 工具集",
|
||||
"app.home.product-icons-slogan": "一整套优质的图标集",
|
||||
"app.home.product-caviar-blazor": "一套开箱即用、包含权限和代码生成的管理后台模板",
|
||||
"app.home.view-more": "查看全部",
|
||||
"app.footer.repo": "GitHub 仓库",
|
||||
"app.footer.awesome": "Awesome Ant Design",
|
||||
|
@ -1,7 +1,18 @@
|
||||
@inherits LayoutComponentBase
|
||||
@inherits LayoutComponentBase
|
||||
|
||||
<div id="react-content">
|
||||
<MainHeader OnMobileModeChanged="isMobile=> _isMobile=isMobile" />
|
||||
@if (LanguageService.CurrentCulture.Name == "zh-CN")
|
||||
{
|
||||
<Alert Banner Type="@AlertType.Warning">
|
||||
<Icon>
|
||||
<Icon Type="notification" Theme="outline"/>
|
||||
</Icon>
|
||||
<MessageTemplate>
|
||||
为了能更好地了解您的商业使用需求,请参与 <a href="https://wj.qq.com/s2/10306537/c332/">Ant Design Blazor 商业应用调查</a>,一起建设商业应用社区,为企业系统研发赋能!
|
||||
</MessageTemplate>
|
||||
</Alert>
|
||||
}
|
||||
<div class="main-wrapper">
|
||||
@if (_isMobile)
|
||||
{
|
||||
|
@ -1,18 +0,0 @@
|
||||
@inject IJSRuntime JS
|
||||
|
||||
<title @ref="_titleRef">@ChildContent</title>
|
||||
|
||||
@code {
|
||||
private ElementReference _titleRef;
|
||||
|
||||
[Parameter]
|
||||
public RenderFragment ChildContent { get; set; }
|
||||
|
||||
protected override async Task OnAfterRenderAsync(bool firstRender)
|
||||
{
|
||||
if (firstRender)
|
||||
{
|
||||
await JS.InvokeVoidAsync(JSInteropConstants.AddElementTo, _titleRef, "head", true);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,4 +1,12 @@
|
||||
[
|
||||
{
|
||||
"title": "谁在使用 Ant Design Blazor?",
|
||||
"description": "来看看众多使用 Ant Design Blazor 的商业项目应用案例,也欢迎在这里提交你的作品!",
|
||||
"img": "/docs/assets/links/who-is-using-ant-design-blazor.png",
|
||||
"date": "2020-07-09",
|
||||
"source": "github",
|
||||
"href": "https://github.com/ant-design-blazor/ant-design-blazor/discussions/1693"
|
||||
},
|
||||
{
|
||||
"title": ".NET Blazor Development - Drag & Drop",
|
||||
"description": "拖拽(Drag & Drop)操作几乎可以说是每一个UI平台的必备功能,今天就来了解一下在 Blazor 框架下要如何实现这一功能呢?",
|
||||
|
@ -1,4 +1,10 @@
|
||||
[
|
||||
{
|
||||
"img": "https://github.com/BeiYinZhiNian/Caviar-Blazor/raw/master/docs/images/home.png",
|
||||
"title": "Caviar-Blazor",
|
||||
"description": "app.home.product-caviar-blazor",
|
||||
"href": "https://github.com/BeiYinZhiNian/Caviar-Blazor"
|
||||
},
|
||||
{
|
||||
"img": "https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*ZhzDQLMyYlYAAAAAAAAAAABkARQnAQ",
|
||||
"title": "Ant Design Charts Blazor",
|
||||
|
@ -1,4 +1,11 @@
|
||||
[
|
||||
{
|
||||
"title": "Show case highlight - Azure Design Studio",
|
||||
"description": "A web app which helps you create the architecture design diagram for your Azure solutions and automatically generate IaC code from it.",
|
||||
"img": "/docs/assets/news/AzureDesignStudio.gif",
|
||||
"href": "https://github.com/chunliu/AzureDesignStudio",
|
||||
"popularize": false
|
||||
},
|
||||
{
|
||||
"title": "Blast off with Blazor! 🚀 - Supercharged Enterprise UIs using AntDesign with Luke Parker",
|
||||
"description": "In this talk, Luke demonstrates how the popular open-source component libraries work, with insightful comparisons and demonstrations.AntBlazor is fully supported by the .NET Foundation and boasts an impressive following. The best part is the awesome documentation and code samples to get you up and running in no time!",
|
||||
@ -11,11 +18,5 @@
|
||||
"description": "The Blazor community has been clamouring for multiple tabs for over a year now, and it's been quite an achievement to finally implement a ReuseTabs component based on the Tabs component in conjunction with Blazor's built-in routing component in the last few days.",
|
||||
"img": "/docs/assets/news/reuse-tabs-demo.gif",
|
||||
"href": "https://github.com/ant-design-blazor/demo-reuse-tabs"
|
||||
},
|
||||
{
|
||||
"title": "Ant Design Pro V5 has Supported Preview!",
|
||||
"description": "📈 After a long time of preparation, Pro V5 has been basically completed. In this new version, we have done a lot of presets, and have made radical improvements to the data flow and layouts.",
|
||||
"img": "https://gw.alipayobjects.com/mdn/rms_08e378/afts/img/A*oY1sTrR5FswAAAAAAAAAAABkARQnAQ",
|
||||
"href": "https://zhuanlan.zhihu.com/p/141740103"
|
||||
}
|
||||
]
|
@ -1,10 +1,4 @@
|
||||
[ {
|
||||
"title": "跟Luke一起体验强大的企业级UI框架 - Ant Design Blazor",
|
||||
"description": "在这次演讲中,Luke展示了流行的开源组件库是如何工作的,并进行了有见地的比较和演示。AntBlazor 得到了 .NET 基金会的完全支持,并拥有令人印象深刻的追捧。最重要的是,它有很棒的文档和代码示例,可以让你很快上手并运行起来",
|
||||
"img": "https://img.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F146529479%2F55525066651%2F1%2Foriginal.20210903-062701?w=800&auto=format%2Ccompress&q=75&sharp=10&rect=0%2C0%2C2160%2C1080&s=01e8a457183827b661d145dbaded77a8",
|
||||
"href": "https://www.bilibili.com/video/BV1gU4y1F7WA/",
|
||||
"popularize": false
|
||||
},
|
||||
[
|
||||
{
|
||||
"title": "Ant Design Blazor 路由复用多标签页介绍",
|
||||
"description": "Blazor 社区中对多标签页的呼声有一年多了,这几天终于结合 Blazor 内置路由组件实现了基于 Tabs 组件的 ReuseTabs 组件,国内外的社区都一片欢腾,也是颇有成就感的。",
|
||||
@ -12,6 +6,13 @@
|
||||
"href": "https://mp.weixin.qq.com/s/J1vQv_YHUDx6ignlvVVDXA",
|
||||
"popularize": false
|
||||
},
|
||||
{
|
||||
"title": "跟Luke一起体验强大的企业级UI框架 - Ant Design Blazor",
|
||||
"description": "在这次演讲中,Luke展示了流行的开源组件库是如何工作的,并进行了有见地的比较和演示。AntBlazor 得到了 .NET 基金会的完全支持,并拥有令人印象深刻的追捧。最重要的是,它有很棒的文档和代码示例,可以让你很快上手并运行起来",
|
||||
"img": "https://img.evbuc.com/https%3A%2F%2Fcdn.evbuc.com%2Fimages%2F146529479%2F55525066651%2F1%2Foriginal.20210903-062701?w=800&auto=format%2Ccompress&q=75&sharp=10&rect=0%2C0%2C2160%2C1080&s=01e8a457183827b661d145dbaded77a8",
|
||||
"href": "https://www.bilibili.com/video/BV1gU4y1F7WA/",
|
||||
"popularize": false
|
||||
},
|
||||
{
|
||||
"title": "【入门系列教程】进击吧!Blazor",
|
||||
"description": "从去年 9 月份开始,Ant Design Blazor 团队携手微软 MVP 张善友,在 Reactor 上海举办了一系列的 Blazor 入门教程,一共 7 期,带领大家掌握 Blazor!。主讲人是张善友和 Ant Design Blazor 贡献者陈超超,主持人是董斌。",
|
||||
|
@ -1,8 +1,8 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFrameworks>netstandard2.1;net5</TargetFrameworks>
|
||||
<LangVersion>9.0</LangVersion>
|
||||
<TargetFrameworks>netstandard2.1;net5;net6</TargetFrameworks>
|
||||
<LangVersion>10.0</LangVersion>
|
||||
<OutputType>Library</OutputType>
|
||||
<IsPackable>true</IsPackable>
|
||||
<RazorLangVersion>3.0</RazorLangVersion>
|
||||
@ -32,6 +32,10 @@
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="5.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net6'">
|
||||
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="6.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\..\components\logo.png" Pack="true" PackagePath="" />
|
||||
<None Include="..\..\README.md" Pack="true" PackagePath="" />
|
||||
|
Loading…
Reference in New Issue
Block a user