mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-30 08:44:57 +00:00
- Implemented App Header with lifecycle and rendering scripts. - Created Intro Section with rendering logic. - Developed User Dashboard with profile, comments, and chat functionalities. - Added Admin Panel for user and content management. - Introduced Application Builder with schemas and workflows. - Established Super God panel for tenant management. - Updated metadata and tests for all new components and functionalities. - Enhanced UI Pages Bundle to include dependencies for all levels. - Improved permission checks and constants in the permissions package.
25 lines
700 B
Lua
25 lines
700 B
Lua
local M = {}
|
|
|
|
function M.render(ctx)
|
|
return {
|
|
type = "Card",
|
|
children = {
|
|
{ type = "CardHeader", children = { { type = "CardTitle", props = { text = "Your Profile" } } } },
|
|
{
|
|
type = "CardContent",
|
|
children = {
|
|
{ type = "Input", props = { label = "Username", value = ctx.user.username, disabled = true } },
|
|
{ type = "Input", props = { label = "Email", name = "email", value = ctx.user.email or "" } },
|
|
{ type = "Button", props = { text = "Save Changes", onClick = "saveProfile" } }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
end
|
|
|
|
function M.saveProfile(form)
|
|
return { success = true, action = "update_profile", email = form.email }
|
|
end
|
|
|
|
return M
|