mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-27 15:24:56 +00:00
feat: add notification center package with toast and list functionalities
- Implemented notification center initialization and rendering utilities. - Added toast notification types: success, error, warning, and info. - Created notification list rendering with badge support. - Included SVG icons for notification center. - Added tests for notification center functionalities. feat: introduce schema editor package for database management - Developed schema editor initialization and field type definitions. - Implemented table management and relationships handling. - Added SVG icons for schema editor. - Included tests for schema editor functionalities. feat: create user manager package for user management operations - Implemented user management actions: create, update, delete, change level, and toggle active. - Developed user list rendering with sortable columns. - Added SVG icons for user manager. - Included tests for user manager functionalities. feat: add workflow editor package for workflow management - Developed workflow editor rendering and step management utilities. - Implemented workflow run status display and progress rendering. - Added SVG icons for workflow editor. - Included tests for workflow editor functionalities. chore: add static SVG icons for various packages
This commit is contained in:
33
packages/code_editor/seed/scripts/lua.lua
Normal file
33
packages/code_editor/seed/scripts/lua.lua
Normal file
@@ -0,0 +1,33 @@
|
||||
-- Lua Editor utilities
|
||||
local M = {}
|
||||
|
||||
function M.render(value, options)
|
||||
return {
|
||||
type = "code_editor",
|
||||
props = {
|
||||
language = "lua",
|
||||
value = value or "",
|
||||
read_only = options and options.read_only or false,
|
||||
line_numbers = true,
|
||||
show_snippets = true
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
function M.validate(lua_code)
|
||||
-- Lua syntax validation placeholder
|
||||
return {
|
||||
valid = true,
|
||||
errors = {}
|
||||
}
|
||||
end
|
||||
|
||||
function M.run_sandbox(lua_code, context)
|
||||
return {
|
||||
action = "execute",
|
||||
sandbox = true,
|
||||
context = context or {}
|
||||
}
|
||||
end
|
||||
|
||||
return M
|
||||
Reference in New Issue
Block a user