mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
feat: add web campaign links — capture, auth integration, bonus UI
- Add campaign.ts utility (capture from URL, localStorage with TTL, validation) - Pass campaign_slug in all auth API methods (telegram, widget, email, oauth) - Consume slug in auth store login methods, set pendingCampaignBonus state - Add CampaignBonusNotifier component (toast on bonus, mounted in AppShell) - Show web_link alongside bot deep_link in AdminCampaignStats - Add CampaignBonusInfo type with union bonus_type - Fix VerifyEmail: ref guard against StrictMode double-fire, setTimeout cleanup - Fix AdminCampaignStats: setTimeout refs with cleanup, i18n-aware locale - Wrap all localStorage access in try/catch (Safari private browsing safety) - Add campaignBonus translations (ru/en/fa/zh)
This commit is contained in:
@@ -64,6 +64,12 @@
|
||||
"newUserReply": "用户回复了工单:{{title}}",
|
||||
"newUserReplyTitle": "用户回复"
|
||||
},
|
||||
"campaignBonus": {
|
||||
"title": "奖励已激活!",
|
||||
"balance": "您从活动「{{name}}」获得了 {{amount}} 卢布",
|
||||
"subscription": "您从活动「{{name}}」获得了 {{days}} 天订阅",
|
||||
"tariff": "您从活动「{{name}}」获得了套餐「{{tariff}}」"
|
||||
},
|
||||
"wsNotifications": {
|
||||
"balance": {
|
||||
"topupTitle": "余额已充值",
|
||||
@@ -1420,6 +1426,8 @@
|
||||
"inactive": "未激活",
|
||||
"copy": "复制",
|
||||
"copied": "已复制!",
|
||||
"botLink": "机器人链接",
|
||||
"webLink": "网页链接",
|
||||
"users": "用户",
|
||||
"noUsers": "没有注册用户",
|
||||
"paid": "已付费",
|
||||
|
||||
Reference in New Issue
Block a user