
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
@pubinfo-pr/module-rbac
Advanced tools
Pubinfo 的权限与后台管理模块。它既提供 RBAC 相关页面和组件,也负责根据配置注册权限管理路由、初始化路由视图数据,并建立模块内部的 WebSocket 同步能力。
Pubinfo 的权限与后台管理模块。它既提供 RBAC 相关页面和组件,也负责根据配置注册权限管理路由、初始化路由视图数据,并建立模块内部的 WebSocket 同步能力。
rbac() 模块注册函数dynamic 资源管理驱动的动态页面import { rbac } from '@pubinfo/module-rbac';
export function setupRbac() {
return rbac({
request: basic,
id: 'RBAC',
pages: 'dynamic',
});
}
如果使用本地注册路由:
rbac({
request: basic,
sort: 100,
pages: {
AuthorityManage: {
Resource: true,
Role: true,
},
},
});
从路由定义看,模块默认覆盖这些后台域:
AuthorityManage: 资源、角色、角色组、数据权限、组织、用户、租户SystemManage: 字典、岗位、区域、分组SettingManage: 主题、布局、页面动画、分页、菜单、Tabbar、工具栏、面包屑、其他设置SafeManage: 黑白名单、安全设置、水印设置LogManage: 登录历史、操作历史rbacResourceSelectorOrgUserSelector 相关导出useWebSocketManageruseViewStoreRbacOptions / RbacPagespages !== 'dynamic',模块会调用 defineAsyncRoutes() 注入过滤后的本地路由viewStore.initializeRouteData()useWebSocketManager(),用于模块内部实时同步routeSystem 完成路由系统初始化适合需要完整后台权限管理能力的 Pubinfo 项目,而不只是简单的按钮鉴权。这个模块本质上是“权限系统 + 后台管理页面集合”。
FAQs
Pubinfo 的权限与后台管理模块。它既提供 RBAC 相关页面和组件,也负责根据配置注册权限管理路由、初始化路由视图数据,并建立模块内部的 WebSocket 同步能力。
The npm package @pubinfo-pr/module-rbac receives a total of 304 weekly downloads. As such, @pubinfo-pr/module-rbac popularity was classified as not popular.
We found that @pubinfo-pr/module-rbac demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.