Reclutamiento: página de usuario para reclamar recompensas (recruit-a-friend)
Portado de home/views/recruit.py: - lib/recruit-claim.ts: getRecruitRewards (con marca de reclamadas), getRecruitedLevel80Count, y claimRecruitReward con las mismas validaciones que Django (recompensa existe, no reclamada, amigos reclutados a nivel 80 suficientes, anti-abuso por IP compartida), entrega por SOAP `.send items` (éxito si "Mail sent to") y registro en home_claimedreward. Extra de seguridad: valida que el personaje sea de la cuenta. - API POST /api/recruit/claim (401 sin sesión). - UI /recruit (pública): rejilla de recompensas con estado reclamada/elegible/bloqueada, selector de personaje y contador de amigos a nivel 80. Enlace en el footer. - i18n es/en: namespace RecruitClaim + Nav.recruit. Verificado: build OK, /recruit 200, claim 401 sin sesión. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,8 @@
|
||||
"logout": "Log out",
|
||||
"language": "Language",
|
||||
"forum": "Forums",
|
||||
"vote": "Vote"
|
||||
"vote": "Vote",
|
||||
"recruit": "Recruit"
|
||||
},
|
||||
"Home": {
|
||||
"brand": "Nova WoW",
|
||||
@@ -374,5 +375,29 @@
|
||||
"prev": "Previous",
|
||||
"next": "Next",
|
||||
"page": "Page"
|
||||
},
|
||||
"RecruitClaim": {
|
||||
"title": "Recruit a friend",
|
||||
"intro": "Invite your friends: when they reach level 80, claim rewards.",
|
||||
"loginToClaim": "Log in to claim rewards",
|
||||
"level80Friends": "Recruited friends at level 80",
|
||||
"deliverTo": "Deliver to",
|
||||
"noCharacters": "You have no characters.",
|
||||
"noRewards": "No rewards available.",
|
||||
"requires": "Requires {n} friend(s)",
|
||||
"claimed": "Claimed",
|
||||
"claiming": "Claiming…",
|
||||
"claim": "Claim",
|
||||
"locked": "Locked",
|
||||
"notEnoughFriends": "You don’t have enough level-80 friends.",
|
||||
"notAuthenticated": "You must be logged in.",
|
||||
"invalidRequest": "Invalid request.",
|
||||
"selectRewardAndCharacter": "Select a reward and a character.",
|
||||
"rewardNotFound": "Reward not found.",
|
||||
"invalidCharacter": "That character is not yours.",
|
||||
"alreadyClaimed": "You already claimed this reward.",
|
||||
"requirementsNotMet": "Requirements not met (or friends share your IP).",
|
||||
"deliveryError": "Error delivering the reward.",
|
||||
"claimSuccess": "Reward “{reward}” delivered to {character}."
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user