mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
- Added type annotations and class definitions in the dashboard layout, stats, and data table modules for improved type safety and documentation. - Introduced new classes for UI components, props, and configuration in the form builder, navigation menu, notification center, and UI dialogs packages. - Implemented detailed type definitions for actions, fields, and pagination components to streamline usage and enhance clarity. - Updated initialization functions in multiple packages to include versioning and installation context. - Improved structure and readability of the codebase by organizing and documenting component properties and methods.
29 lines
696 B
Lua
29 lines
696 B
Lua
-- Admin settings security section
|
|
|
|
---@class SettingsSection
|
|
---@field type string
|
|
---@field id string
|
|
---@field title string
|
|
---@field fields SettingsField[]
|
|
|
|
---@class SettingsField
|
|
---@field id string
|
|
---@field type string
|
|
---@field label string
|
|
|
|
---@return SettingsSection
|
|
local function security_settings()
|
|
return {
|
|
type = "settings_section",
|
|
id = "security",
|
|
title = "Security Settings",
|
|
fields = {
|
|
{ id = "twoFactor", type = "switch", label = "Require 2FA" },
|
|
{ id = "sessionTimeout", type = "number", label = "Session Timeout (min)" },
|
|
{ id = "maxLoginAttempts", type = "number", label = "Max Login Attempts" }
|
|
}
|
|
}
|
|
end
|
|
|
|
return security_settings
|