Files
metabuilder/packages/schema_editor/seed/scripts/init.lua
T
git 9d27207fbc Refactor package validation and quick guide modules
- Simplified structure validation by re-exporting functions from structure_config and validate_structure modules for better maintainability.
- Consolidated validation logic in validate.lua, delegating to validate_package module for clearer orchestration.
- Introduced new quick guide functionalities including step management (add, remove, update, reset ordering) and media handling (thumbnail and video URL validation).
- Added utility functions for URL validation and step creation, enhancing the quick guide's usability.
- Established type definitions for steps and media states to improve code clarity and type safety.
- Enhanced schema editor with new field and relation definitions, providing a more robust structure for database schema management.
2025-12-30 11:17:40 +00:00

28 lines
589 B
Lua

-- Schema Editor initialization
---@class SchemaEditorModule
---@field name string Package name
---@field version string Package version
---@field init fun(): SchemaEditorInfo Initialize the module
local M = {}
M.name = "schema_editor"
M.version = "1.0.0"
---@class SchemaEditorInfo
---@field name string Package name
---@field version string Package version
---@field loaded boolean Whether module is loaded
---Initialize the schema editor module
---@return SchemaEditorInfo
function M.init()
return {
name = M.name,
version = M.version,
loaded = true
}
end
return M