mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 14:54:55 +00:00
- 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.
27 lines
783 B
Lua
27 lines
783 B
Lua
--- Steps editor logic facade for quick guides
|
|
--- Re-exports step functions for backward compatibility
|
|
---@module steps
|
|
|
|
local generate_step_id = require("generate_step_id")
|
|
local create_step = require("create_step")
|
|
local update_step = require("update_step")
|
|
local remove_step = require("remove_step")
|
|
local add_step = require("add_step")
|
|
local reset_ordering = require("reset_ordering")
|
|
local validate_step = require("validate_step")
|
|
local validate_all_steps = require("validate_all_steps")
|
|
|
|
---@class StepsModule
|
|
local M = {}
|
|
|
|
M.generateStepId = generate_step_id
|
|
M.createStep = create_step
|
|
M.updateStep = update_step
|
|
M.removeStep = remove_step
|
|
M.addStep = add_step
|
|
M.resetOrdering = reset_ordering
|
|
M.validateStep = validate_step
|
|
M.validateAllSteps = validate_all_steps
|
|
|
|
return M
|