AdminBlazor 1.0.6
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package AdminBlazor --version 1.0.6
NuGet\Install-Package AdminBlazor -Version 1.0.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AdminBlazor" Version="1.0.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AdminBlazor --version 1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AdminBlazor, 1.0.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AdminBlazor as a Cake Addin #addin nuget:?package=AdminBlazor&version=1.0.6 // Install AdminBlazor as a Cake Tool #tool nuget:?package=AdminBlazor&version=1.0.6
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AdminBlazor
AdminBlazor 是一款 Blazor SSR 后台管理项目,支持 RABC 权限菜单/按钮,支持一对一、一对多、多对多代码生成 .razor 界面。
集成功能
- 菜单管理
- 角色管理
- 用户管理
- 定时任务
- 字典管理
依赖组件
- BootstrapBlazor
- FreeSql
- FreeScheduler
- Rougamo
快速开始
1. 安装模板
dotnet new install AdminBlazor.Template
2. 新建项目
dotnet new admin
3. 运行访问
http://localhost:5231/Admin
用户名:admin 密码:freesql
4. 新建菜单,类型选择增删改查
5. 生成代码,在实体类型维护注释、导航属性
- 实体上的注释,会生成 HTML Label
- 实体上的导航属性,会生成丰富的 UI
- 创建实体类型,建议继承 Entity/EntityCreated/EntityModifed
权限
- UserEntity 对多对 RoleEntity
- RoleEntity 对多对 MenuEntity
提示:AdminLoginInfo 类型已设置成 [CascadeParameter]
class AdminLoginInfo
{
public IServiceProvider Service { get; internal set; }
public UserEntity User { get; set; }
public List<RoleEntity> Roles { get; private set; }
public List<MenuEntity> RoleMenus { get; private set; }
//路由、按钮权限验证
public Task<bool> AuthPath(string path);
public Task<bool> AuthButton(string path)
}
按钮权限,在 razor 中设置特性:
[AdminButton("name")]
void ButtonClick()
{
}
之后菜单管理,会出现对应的按钮项,勾选设置角色是否有按钮的权限。
组件
== AdminTable2
== AllocTable2
== InputTable2
== SelectEntity
== SelectEnum
== SelectTable2
== AdminModal
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- BootstrapBlazor (>= 8.1.7)
- BootstrapBlazor.FontAwesome (>= 8.0.1)
- FreeScheduler (>= 2.0.28)
- FreeSql.Extensions.AggregateRoot (>= 3.2.811)
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
- Microsoft.AspNetCore.Http (>= 2.2.2)
- NCrontab (>= 3.3.3)
- Newtonsoft.Json (>= 13.0.3)
- Rougamo.Fody (>= 2.2.0)
- Yitter.IdGenerator (>= 1.0.14)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.1.17 | 92 | 11/3/2024 |
1.1.15 | 142 | 7/15/2024 |
1.1.14 | 139 | 5/17/2024 |
1.1.13 | 119 | 4/19/2024 |
1.1.12 | 120 | 3/26/2024 |
1.1.11 | 132 | 2/26/2024 |
1.1.10 | 154 | 2/8/2024 |
1.1.9 | 138 | 2/6/2024 |
1.0.11 | 139 | 2/2/2024 |
1.0.10 | 121 | 2/2/2024 |
1.0.8 | 132 | 2/1/2024 |
1.0.6 | 123 | 1/31/2024 |
1.0.5 | 122 | 1/31/2024 |
1.0.3 | 91 | 1/31/2024 |
1.0.2 | 123 | 1/31/2024 |
1.0.1 | 123 | 1/31/2024 |