mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
- Implemented notification center initialization and rendering utilities. - Added toast notification types: success, error, warning, and info. - Created notification list rendering with badge support. - Included SVG icons for notification center. - Added tests for notification center functionalities. feat: introduce schema editor package for database management - Developed schema editor initialization and field type definitions. - Implemented table management and relationships handling. - Added SVG icons for schema editor. - Included tests for schema editor functionalities. feat: create user manager package for user management operations - Implemented user management actions: create, update, delete, change level, and toggle active. - Developed user list rendering with sortable columns. - Added SVG icons for user manager. - Included tests for user manager functionalities. feat: add workflow editor package for workflow management - Developed workflow editor rendering and step management utilities. - Implemented workflow run status display and progress rendering. - Added SVG icons for workflow editor. - Included tests for workflow editor functionalities. chore: add static SVG icons for various packages
36 lines
1.0 KiB
Lua
36 lines
1.0 KiB
Lua
-- Admin settings dialog
|
|
local M = {}
|
|
|
|
function M.render_general()
|
|
return {
|
|
type = "dialog",
|
|
props = {
|
|
title = "General Settings",
|
|
size = "large"
|
|
},
|
|
children = {
|
|
{ type = "text_field", props = { label = "Site Name", name = "site_name" } },
|
|
{ type = "text_field", props = { label = "Admin Email", name = "admin_email", type = "email" } },
|
|
{ type = "switch", props = { label = "Maintenance Mode", name = "maintenance" } },
|
|
{ type = "switch", props = { label = "Allow Registration", name = "allow_registration" } }
|
|
}
|
|
}
|
|
end
|
|
|
|
function M.render_security()
|
|
return {
|
|
type = "dialog",
|
|
props = {
|
|
title = "Security Settings",
|
|
size = "medium"
|
|
},
|
|
children = {
|
|
{ type = "number_field", props = { label = "Session Timeout (min)", name = "session_timeout", min = 5 } },
|
|
{ type = "number_field", props = { label = "Max Login Attempts", name = "max_attempts", min = 1 } },
|
|
{ type = "switch", props = { label = "Require 2FA", name = "require_2fa" } }
|
|
}
|
|
}
|
|
end
|
|
|
|
return M
|