mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +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.
111 lines
2.7 KiB
JSON
111 lines
2.7 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
|
|
"schemaVersion": "2.2.0",
|
|
"package": "ui_auth",
|
|
"description": "Authentication UI functions for access control and gate management",
|
|
"functions": [
|
|
{
|
|
"id": "denied_initialize",
|
|
"name": "initialize",
|
|
"exported": true,
|
|
"description": "Initialize access denied component",
|
|
"category": "lifecycle",
|
|
"luaScript": "denied.lua"
|
|
},
|
|
{
|
|
"id": "denied_redirect_to_login",
|
|
"name": "redirectToLogin",
|
|
"exported": true,
|
|
"description": "Redirect user to login page",
|
|
"category": "navigation",
|
|
"luaScript": "denied.lua"
|
|
},
|
|
{
|
|
"id": "denied_go_back",
|
|
"name": "goBack",
|
|
"exported": true,
|
|
"description": "Navigate back to previous page",
|
|
"category": "navigation",
|
|
"luaScript": "denied.lua"
|
|
},
|
|
{
|
|
"id": "denied_render",
|
|
"name": "render",
|
|
"exported": true,
|
|
"description": "Render access denied view",
|
|
"category": "ui",
|
|
"luaScript": "denied.lua"
|
|
},
|
|
{
|
|
"id": "gate_initialize",
|
|
"name": "initialize",
|
|
"exported": true,
|
|
"description": "Initialize auth gate",
|
|
"category": "lifecycle",
|
|
"luaScript": "gate/init.lua"
|
|
},
|
|
{
|
|
"id": "gate_check",
|
|
"name": "check",
|
|
"exported": true,
|
|
"description": "Check user access permissions",
|
|
"category": "security",
|
|
"luaScript": "gate/check.lua"
|
|
},
|
|
{
|
|
"id": "gate_wrap",
|
|
"name": "wrap",
|
|
"exported": true,
|
|
"description": "Wrap content with authentication gate",
|
|
"category": "security",
|
|
"luaScript": "gate/wrap.lua"
|
|
},
|
|
{
|
|
"id": "loader_initialize",
|
|
"name": "initializeLoader",
|
|
"exported": true,
|
|
"description": "Initialize page loader",
|
|
"category": "lifecycle",
|
|
"luaScript": "loader.lua"
|
|
},
|
|
{
|
|
"id": "loader_show",
|
|
"name": "showLoader",
|
|
"exported": true,
|
|
"description": "Show the page loader",
|
|
"category": "ui",
|
|
"luaScript": "loader.lua"
|
|
},
|
|
{
|
|
"id": "loader_hide",
|
|
"name": "hideLoader",
|
|
"exported": true,
|
|
"description": "Hide the page loader",
|
|
"category": "ui",
|
|
"luaScript": "loader.lua"
|
|
},
|
|
{
|
|
"id": "loader_update_text",
|
|
"name": "updateLoaderText",
|
|
"exported": true,
|
|
"description": "Update loader message text",
|
|
"category": "ui",
|
|
"luaScript": "loader.lua"
|
|
}
|
|
],
|
|
"exports": {
|
|
"functions": [
|
|
"initialize",
|
|
"redirectToLogin",
|
|
"goBack",
|
|
"render",
|
|
"check",
|
|
"wrap",
|
|
"initializeLoader",
|
|
"showLoader",
|
|
"hideLoader",
|
|
"updateLoaderText"
|
|
]
|
|
}
|
|
}
|