mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 23:04:57 +00:00
27 lines
815 B
Lua
27 lines
815 B
Lua
-- Comments module facade
|
|
-- Re-exports all comment functions for backward compatibility
|
|
-- Each function is defined in its own file following 1-function-per-file pattern
|
|
|
|
require("comments.types")
|
|
|
|
---@class Comments
|
|
---@field render fun(ctx: RenderContext): UIComponent
|
|
---@field composer fun(): UIComponent
|
|
---@field list fun(comments: Comment[]): UIComponent
|
|
---@field postComment fun(form: PostForm): PostResult
|
|
local M = {}
|
|
|
|
-- Import all single-function modules
|
|
local render = require("comments.render")
|
|
local composer = require("comments.composer")
|
|
local list = require("comments.list")
|
|
local postComment = require("comments.post_comment")
|
|
|
|
-- Re-export all functions
|
|
M.render = render.render
|
|
M.composer = composer.composer
|
|
M.list = list.list
|
|
M.postComment = postComment.postComment
|
|
|
|
return M
|