mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-27 23:34:56 +00:00
- Created package.json for ui_pages with dependencies and exports. - Added roles.json for access permissions related to UI pages. - Implemented functions.json for managing UI pages and routing. - Developed stories.json for Storybook showcasing UI pages components. - Defined styles tokens for UI pages including colors, spacing, and typography. feat(ui_permissions): Introduce UI Permissions package for access control - Created package.json for ui_permissions with permission utilities. - Added roles.json defining permissions for a 6-level access control system. - Implemented functions.json for permission checking and level management. - Developed stories.json for Storybook showcasing permission-related components. - Defined styles tokens for UI permissions including colors and spacing.
94 lines
2.2 KiB
JSON
94 lines
2.2 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
|
|
"schemaVersion": "2.2.0",
|
|
"package": "ui_pages",
|
|
"description": "UI pages management and routing functions",
|
|
"functions": [
|
|
{
|
|
"id": "pages_register",
|
|
"name": "register",
|
|
"exported": true,
|
|
"description": "Register a page definition",
|
|
"category": "pages",
|
|
"luaScript": "pages.lua"
|
|
},
|
|
{
|
|
"id": "pages_unregister",
|
|
"name": "unregister",
|
|
"exported": true,
|
|
"description": "Unregister a page by ID",
|
|
"category": "pages",
|
|
"luaScript": "pages.lua"
|
|
},
|
|
{
|
|
"id": "pages_get",
|
|
"name": "get",
|
|
"exported": true,
|
|
"description": "Get page definition by ID",
|
|
"category": "pages",
|
|
"luaScript": "pages.lua"
|
|
},
|
|
{
|
|
"id": "pages_get_by_path",
|
|
"name": "getByPath",
|
|
"exported": true,
|
|
"description": "Get page definition by route path",
|
|
"category": "pages",
|
|
"luaScript": "pages.lua"
|
|
},
|
|
{
|
|
"id": "pages_list",
|
|
"name": "list",
|
|
"exported": true,
|
|
"description": "List all pages with optional filter",
|
|
"category": "pages",
|
|
"luaScript": "pages.lua"
|
|
},
|
|
{
|
|
"id": "pages_render",
|
|
"name": "render",
|
|
"exported": true,
|
|
"description": "Render a page by ID with options",
|
|
"category": "pages",
|
|
"luaScript": "pages.lua"
|
|
},
|
|
{
|
|
"id": "pages_check_access",
|
|
"name": "checkAccess",
|
|
"exported": true,
|
|
"description": "Check if user has access to a page",
|
|
"category": "pages",
|
|
"luaScript": "pages.lua"
|
|
},
|
|
{
|
|
"id": "pages_navigate",
|
|
"name": "navigate",
|
|
"exported": true,
|
|
"description": "Navigate to a page by path or ID",
|
|
"category": "navigation",
|
|
"luaScript": "navigation.lua"
|
|
},
|
|
{
|
|
"id": "pages_get_routes",
|
|
"name": "getRoutes",
|
|
"exported": true,
|
|
"description": "Get all registered routes",
|
|
"category": "navigation",
|
|
"luaScript": "navigation.lua"
|
|
}
|
|
],
|
|
"exports": {
|
|
"functions": [
|
|
"register",
|
|
"unregister",
|
|
"get",
|
|
"getByPath",
|
|
"list",
|
|
"render",
|
|
"checkAccess",
|
|
"navigate",
|
|
"getRoutes"
|
|
]
|
|
}
|
|
}
|