AdminBlazor 1.0.6

There is a newer version of this package available.
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
#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

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. 新建菜单,类型选择增删改查

image

5. 生成代码,在实体类型维护注释、导航属性

  • 实体上的注释,会生成 HTML Label
  • 实体上的导航属性,会生成丰富的 UI
  • 创建实体类型,建议继承 Entity/EntityCreated/EntityModifed

image

权限

  • 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()
{
}

之后菜单管理,会出现对应的按钮项,勾选设置角色是否有按钮的权限。

image

组件

== AdminTable2

== AllocTable2

== InputTable2

== SelectEntity

== SelectEnum

== SelectTable2

== AdminModal

Product 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.

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.13 88 4/19/2024
1.1.12 90 3/26/2024
1.1.11 88 2/26/2024
1.1.10 101 2/8/2024
1.1.9 89 2/6/2024
1.0.11 105 2/2/2024
1.0.10 85 2/2/2024
1.0.8 108 2/1/2024
1.0.6 94 1/31/2024
1.0.5 94 1/31/2024
1.0.3 69 1/31/2024
1.0.2 77 1/31/2024
1.0.1 78 1/31/2024