Closed Athozus closed 1 year ago
For now didn't really go through code but for formatting use spaces instead of tabs if you want specific alignment. Basically tabs for indentation and spaces for alignment.
edit: reasoning: tab width isn't defined anywhere and can be anything which in turn breaks alignment if done with tabs.
Committed your suggestions. Good for you ?
This PR contains all from the new settings management. Let's explain a bit how it works :
init.lua
: here you defines the settingsmail.settings
: the whole list of settings withsetting = { -- data }
structuremail.settings_groups
: the list of groups of settings (for settings page)selected_idxs
sub-tables for each settingssettings.lua
: the redesigned ui pagex
andy
valuesindex
value (for the selected group)selected_idxs
the temporary valueInfo for settings definition :
type
(supported :string
,index
(for dropdowns),bool
(for checkboxes)),default
,group
,label
index
(recommended) : used to defines the order of the settings in the group on the UItooltip
: additional info at hoveringdataset
:index
types (dropdown), for example default sorting field (From/To, ...)format
: fordataset
, preview predefined values (for example format current date with%X ...
)Hope there's not too much bugs, I fixed all those I noticed. I'm surprised that it not contains too much new lines, and new settings implementation is now much easier.
And, as usual, a small screenshot :