You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
4 years ago | |
|---|---|---|
| img | 4 years ago | |
| modules | 4 years ago | |
| nuget | 4 years ago | |
| samples/BookStore | 4 years ago | |
| src/Lsw.Abp.AntDesignUI | 4 years ago | |
| .gitattributes | 4 years ago | |
| .gitignore | 4 years ago | |
| LICENSE | 4 years ago | |
| README.md | 4 years ago | |
| common.props | 4 years ago | |
| configureawait.props | 4 years ago | |
| lsw.Abp.AntDesignUI.sln | 4 years ago | |
README.md
Lsw.Abp.AntDesignUI
An Abp Blazor Theme based Ant-Design-Blazor !
Samples
Check the samples
Quick Start
The first step is to use ABP CLI to create a new project.
abp new BookStore -u blazor
See the ABP official documentation to learn ABP framework.
Open BookStore.Blazor.csproj and replace with the following:
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<Import Project="..\..\common.props" />
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<BlazorWebAssemblyLoadAllGlobalizationData>true</BlazorWebAssemblyLoadAllGlobalizationData>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.0" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Volo.Abp.Autofac.WebAssembly" Version="5.1.4" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Lsw.Abp.IdentityManagement.Blazor.WebAssembly.AntDesignUI" Version="0.1.0" />
<PackageReference Include="Lsw.Abp.SettingManagement.Blazor.WebAssembly.AntDesignUI" Version="0.1.0" />
<PackageReference Include="Lsw.Abp.TenantManagement.Blazor.WebAssembly.AntDesignUI" Version="0.1.0" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\BookStore.HttpApi.Client\BookStore.HttpApi.Client.csproj" />
</ItemGroup>
</Project>
Open _Imports.razor and add with the following:
@using AntDesign
@using Lsw.Abp.AntDesignUI
@using Lsw.Abp.AntDesignUI.Components
@using Lsw.Abp.AspnetCore.Components.Web.AntDesignTheme.Layout
Open BookStoreBlazorModule make the following changes:
- Remove the
ConfigureBlazorisemethod - Fix wrong using namespace
- Update module dependencies
- For example, replace
AbpIdentityBlazorWebAssemblyModulewithAbpIdentityBlazorWebAssemblyAntDesignModule
- For example, replace
Open BookStoreMenuContributor to update icon:
"fas fa-home"toIconType.Outline.Home"fa fa-cog"toIconType.Outline.Setting
Open Index.razor and replace with the following:
@page "/"
@inherits BookStoreComponentBase
<AbpPageHeader Title="Index"></AbpPageHeader>
<div class="page-content">
<div style="text-align: center">
<Alert Type="@AlertType.Success"
Message="Success"
Description=" Congratulations, BookStore is successfully running!"
ShowIcon="true"/>
<Divider/>
</div>
</div>
Run the dotnet build & abp bundle command in the BookStore.Blazor folder.
That's all, enjoy your code :).
Road map
Updating...


