mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
feat: migrate Telegram Login Widget to v23 with admin-configurable settings
- Upgrade telegram-widget.js from v22 to v23 (TelegramLoginButton + ConnectedAccounts) - TelegramLoginButton fetches widget config from API instead of hardcoded values - Add TelegramWidgetConfig type and API method with fallback to env defaults - Remove botUsername prop — now sourced from backend API - Add useEffect cleanup to prevent orphaned iframes on unmount - Add TELEGRAM_WIDGET category to admin interface settings menu - Add i18n translations for widget settings (ru, en, zh, fa)
This commit is contained in:
@@ -1341,7 +1341,16 @@
|
||||
"projectName": "نام پروژه",
|
||||
"quickPresets": "پیشتنظیمهای سریع",
|
||||
"resetAllColors": "بازنشانی همه رنگها",
|
||||
"statusColors": "رنگهای وضعیت"
|
||||
"statusColors": "رنگهای وضعیت",
|
||||
"categories": {
|
||||
"TELEGRAM_WIDGET": "Telegram Login Widget"
|
||||
},
|
||||
"settingNames": {
|
||||
"Telegram Widget Size": "اندازه ویجت",
|
||||
"Telegram Widget Radius": "شعاع گوشه",
|
||||
"Telegram Widget Userpic": "نمایش تصویر کاربر",
|
||||
"Telegram Widget Request Access": "درخواست دسترسی"
|
||||
}
|
||||
},
|
||||
"buttons": {
|
||||
"color": "رنگ دکمه",
|
||||
|
||||
Reference in New Issue
Block a user