mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-30 02:23:47 +00:00
feat: add menu editor tab with drag-and-drop rows, custom URL buttons, and button configuration
- Add menuLayout.ts API client with normalizeConfig and type definitions - Add MenuEditorTab.tsx with DnD rows, button CRUD, style/emoji/label editors - Replace ButtonsTab with MenuEditorTab on admin settings page - Add menu editor translations for ru, en, zh, fa locales - Loading/error states, useMemo optimizations, proper ref patterns
This commit is contained in:
@@ -1748,7 +1748,8 @@
|
||||
"referral": "Referrals",
|
||||
"support": "Support",
|
||||
"info": "Info",
|
||||
"admin": "Admin Panel"
|
||||
"admin": "Admin Panel",
|
||||
"language": "Language"
|
||||
},
|
||||
"descriptions": {
|
||||
"home": "Personal cabinet button",
|
||||
@@ -1757,7 +1758,8 @@
|
||||
"referral": "Referral program",
|
||||
"support": "Support tickets",
|
||||
"info": "Information section",
|
||||
"admin": "Web admin panel"
|
||||
"admin": "Web admin panel",
|
||||
"language": "Language selection"
|
||||
},
|
||||
"styles": {
|
||||
"default": "No color",
|
||||
@@ -1766,6 +1768,19 @@
|
||||
"danger": "Red"
|
||||
}
|
||||
},
|
||||
"menuEditor": {
|
||||
"dragHint": "Drag rows to reorder them",
|
||||
"dragToReorder": "Drag to reorder",
|
||||
"row": "Row",
|
||||
"addRow": "Add row",
|
||||
"addButton": "Add button",
|
||||
"addUrlButton": "URL button (link)",
|
||||
"builtinButtons": "Built-in buttons",
|
||||
"resetConfirm": "Reset menu layout to defaults?",
|
||||
"buttonTextPlaceholder": "Custom button text",
|
||||
"customLabelsHint": "Empty = default label",
|
||||
"invalidUrl": "Please provide a valid URL (http:// or https://) for all custom buttons"
|
||||
},
|
||||
"apps": {
|
||||
"title": "App Management",
|
||||
"addApp": "Add App",
|
||||
|
||||
Reference in New Issue
Block a user