mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-28 07:44:56 +00:00
code: storybook,src,tsx (2 files)
This commit is contained in:
@@ -1144,6 +1144,9 @@ export const componentRegistry: Record<string, AnyComponent> = {
|
||||
AppHeader,
|
||||
AppFooter,
|
||||
Sidebar,
|
||||
|
||||
// Script viewer
|
||||
LuaScriptViewer,
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -102,7 +102,8 @@ function createTemplateVars(ctx: LuaRenderContext): TemplateVariables {
|
||||
*/
|
||||
function componentsToRenders(
|
||||
components: PackageComponent[],
|
||||
scripts: Array<{ file: string; name: string; description?: string; category?: string }> = []
|
||||
scripts: Array<{ file: string; name: string; description?: string; category?: string }> = [],
|
||||
packageId?: string
|
||||
): Record<string, (ctx: LuaRenderContext) => LuaUIComponent> {
|
||||
const renders: Record<string, (ctx: LuaRenderContext) => LuaUIComponent> = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user