feat: add ButtonsTab for per-section button style customization

Visual editor in admin settings for configuring Telegram button colors
and custom emoji IDs per menu section. Includes API client, draft state
management, save/reset, and translations for ru/en/fa/zh locales.
This commit is contained in:
Fringg
2026-02-12 23:16:08 +03:00
parent aa5113b8e3
commit b2898730b9
9 changed files with 413 additions and 0 deletions

View File

@@ -1217,6 +1217,7 @@
"noSearchResults": "Nothing found",
"example": "Example",
"analytics": "Analytics",
"buttons": "Buttons",
"notConfigured": "Not configured",
"counterActive": "Active",
"counterInactive": "Inactive",
@@ -1286,6 +1287,35 @@
"quickPresets": "Quick presets",
"saturation": "Saturation"
},
"buttons": {
"color": "Button color",
"emojiId": "Custom Emoji ID",
"emojiPlaceholder": "Custom emoji ID (optional)",
"resetAll": "Reset all styles",
"sections": {
"home": "Home",
"subscription": "Subscription",
"balance": "Balance",
"referral": "Referrals",
"support": "Support",
"info": "Info",
"admin": "Admin Panel"
},
"descriptions": {
"home": "Personal cabinet button",
"subscription": "Subscription management",
"balance": "Top-up and balance",
"referral": "Referral program",
"support": "Support tickets",
"info": "Information section",
"admin": "Web admin panel"
},
"styles": {
"primary": "Blue",
"success": "Green",
"danger": "Red"
}
},
"apps": {
"title": "App Management",
"addApp": "Add App",