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.
148 lines
3.7 KiB
JSON
148 lines
3.7 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
|
|
"schemaVersion": "2.2.0",
|
|
"package": "quick_guide",
|
|
"description": "Quick guide step management and media handling functions",
|
|
"functions": [
|
|
{
|
|
"id": "init",
|
|
"name": "init",
|
|
"exported": true,
|
|
"description": "Initialize the quick guide module",
|
|
"category": "lifecycle",
|
|
"luaScript": "init.lua"
|
|
},
|
|
{
|
|
"id": "steps_generate_id",
|
|
"name": "generateStepId",
|
|
"exported": true,
|
|
"description": "Generate a unique step identifier",
|
|
"category": "steps",
|
|
"luaScript": "steps.lua"
|
|
},
|
|
{
|
|
"id": "steps_create",
|
|
"name": "createStep",
|
|
"exported": true,
|
|
"description": "Create a new empty step with default values",
|
|
"category": "steps",
|
|
"luaScript": "steps.lua"
|
|
},
|
|
{
|
|
"id": "steps_add",
|
|
"name": "addStep",
|
|
"exported": true,
|
|
"description": "Add a new step to the steps array",
|
|
"category": "steps",
|
|
"luaScript": "steps.lua"
|
|
},
|
|
{
|
|
"id": "steps_update",
|
|
"name": "updateStep",
|
|
"exported": true,
|
|
"description": "Update a step in the steps array",
|
|
"category": "steps",
|
|
"luaScript": "steps.lua"
|
|
},
|
|
{
|
|
"id": "steps_remove",
|
|
"name": "removeStep",
|
|
"exported": true,
|
|
"description": "Remove a step from the steps array",
|
|
"category": "steps",
|
|
"luaScript": "steps.lua"
|
|
},
|
|
{
|
|
"id": "steps_reset_ordering",
|
|
"name": "resetOrdering",
|
|
"exported": true,
|
|
"description": "Reset step IDs to sequential order",
|
|
"category": "steps",
|
|
"luaScript": "steps.lua"
|
|
},
|
|
{
|
|
"id": "steps_validate",
|
|
"name": "validateStep",
|
|
"exported": true,
|
|
"description": "Validate a single step",
|
|
"category": "steps",
|
|
"luaScript": "steps.lua"
|
|
},
|
|
{
|
|
"id": "steps_validate_all",
|
|
"name": "validateAllSteps",
|
|
"exported": true,
|
|
"description": "Validate all steps in the array",
|
|
"category": "steps",
|
|
"luaScript": "steps.lua"
|
|
},
|
|
{
|
|
"id": "media_is_valid_url",
|
|
"name": "isValidUrl",
|
|
"exported": true,
|
|
"description": "Validate a URL (basic check)",
|
|
"category": "media",
|
|
"luaScript": "media.lua"
|
|
},
|
|
{
|
|
"id": "media_is_image_url",
|
|
"name": "isImageUrl",
|
|
"exported": true,
|
|
"description": "Check if URL points to an image",
|
|
"category": "media",
|
|
"luaScript": "media.lua"
|
|
},
|
|
{
|
|
"id": "media_is_video_url",
|
|
"name": "isVideoUrl",
|
|
"exported": true,
|
|
"description": "Check if URL points to a video",
|
|
"category": "media",
|
|
"luaScript": "media.lua"
|
|
},
|
|
{
|
|
"id": "media_prepare_state",
|
|
"name": "prepareMediaState",
|
|
"exported": true,
|
|
"description": "Prepare media state from props",
|
|
"category": "media",
|
|
"luaScript": "media.lua"
|
|
},
|
|
{
|
|
"id": "media_handle_thumbnail",
|
|
"name": "handleThumbnailChange",
|
|
"exported": true,
|
|
"description": "Handle thumbnail URL change",
|
|
"category": "media",
|
|
"luaScript": "media.lua"
|
|
},
|
|
{
|
|
"id": "media_handle_video",
|
|
"name": "handleVideoChange",
|
|
"exported": true,
|
|
"description": "Handle video URL change",
|
|
"category": "media",
|
|
"luaScript": "media.lua"
|
|
}
|
|
],
|
|
"exports": {
|
|
"functions": [
|
|
"init",
|
|
"generateStepId",
|
|
"createStep",
|
|
"addStep",
|
|
"updateStep",
|
|
"removeStep",
|
|
"resetOrdering",
|
|
"validateStep",
|
|
"validateAllSteps",
|
|
"isValidUrl",
|
|
"isImageUrl",
|
|
"isVideoUrl",
|
|
"prepareMediaState",
|
|
"handleThumbnailChange",
|
|
"handleVideoChange"
|
|
]
|
|
}
|
|
}
|