Files
metabuilder/packages/theme_editor/scripts/functions.json
johndoe6345789 9284b9a67b Refactor function definitions across multiple packages to remove luaScript references
- Updated functions.json files in theme_editor, ui_auth, ui_footer, ui_header, ui_home, ui_intro, ui_level2, ui_level3, ui_level4, ui_level5, ui_level6, ui_login, ui_pages, ui_permissions, user_manager, and workflow_editor packages.
- Removed luaScript entries from function definitions, retaining only category and other relevant metadata.
- Adjusted documentation in prisma/README.md to remove LuaScript entity reference.
2026-01-07 14:54:33 +00:00

109 lines
2.5 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
"schemaVersion": "2.2.0",
"package": "theme_editor",
"description": "Theme management functions for saving, loading, and applying themes",
"functions": [
{
"id": "theme_save",
"name": "saveTheme",
"exported": true,
"description": "Save current theme configuration",
"category": "theme"
},
{
"id": "theme_load",
"name": "loadTheme",
"exported": true,
"description": "Load a saved theme",
"category": "theme"
},
{
"id": "theme_apply",
"name": "applyTheme",
"exported": true,
"description": "Apply theme to the current session",
"category": "theme"
},
{
"id": "theme_export",
"name": "exportTheme",
"exported": true,
"description": "Export theme as JSON file",
"category": "theme"
},
{
"id": "theme_import",
"name": "importTheme",
"exported": true,
"description": "Import theme from JSON file",
"category": "theme"
},
{
"id": "theme_reset",
"name": "resetTheme",
"exported": true,
"description": "Reset theme to defaults",
"category": "theme"
},
{
"id": "color_hex_to_rgb",
"name": "hexToRgb",
"exported": true,
"description": "Convert hex color to RGB",
"category": "colors"
},
{
"id": "color_rgb_to_hex",
"name": "rgbToHex",
"exported": true,
"description": "Convert RGB to hex color",
"category": "colors"
},
{
"id": "color_lighten",
"name": "lightenColor",
"exported": true,
"description": "Lighten a color by percentage",
"category": "colors"
},
{
"id": "color_darken",
"name": "darkenColor",
"exported": true,
"description": "Darken a color by percentage",
"category": "colors"
},
{
"id": "color_contrast",
"name": "getContrastColor",
"exported": true,
"description": "Get contrasting text color (black or white)",
"category": "colors"
},
{
"id": "color_validate",
"name": "validateColor",
"exported": true,
"description": "Validate a color value",
"category": "colors"
}
],
"exports": {
"functions": [
"saveTheme",
"loadTheme",
"applyTheme",
"exportTheme",
"importTheme",
"resetTheme",
"hexToRgb",
"rgbToHex",
"lightenColor",
"darkenColor",
"getContrastColor",
"validateColor"
]
}
}