Spaces:
Running
Running
axeronis commited on
Commit ·
ae13130
1
Parent(s): 2d9bccd
feat: complete i18n for Partners page with partners section (RU/EN/KY) - 68 keys
Browse files
frontend/app/partners/page.tsx
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
| 14 |
} from 'lucide-react'
|
| 15 |
import { motion, AnimatePresence } from 'framer-motion'
|
| 16 |
import { cn } from '@/lib/utils'
|
|
|
|
| 17 |
|
| 18 |
interface PartnerData {
|
| 19 |
id: string
|
|
@@ -42,6 +43,7 @@ export default function PartnersPage() {
|
|
| 42 |
const { user } = useAuth()
|
| 43 |
const toast = useToast()
|
| 44 |
const queryClient = useQueryClient()
|
|
|
|
| 45 |
const [isJoining, setIsJoining] = useState(false)
|
| 46 |
const [showPayoutModal, setShowPayoutModal] = useState(false)
|
| 47 |
const [payoutAmount, setPayoutAmount] = useState('')
|
|
@@ -76,7 +78,7 @@ export default function PartnersPage() {
|
|
| 76 |
const loading = partnerLoading
|
| 77 |
|
| 78 |
const handleJoin = async () => {
|
| 79 |
-
const companyName = prompt('
|
| 80 |
if (!companyName) return
|
| 81 |
|
| 82 |
setIsJoining(true)
|
|
@@ -85,11 +87,11 @@ export default function PartnersPage() {
|
|
| 85 |
if (res.data.checkout_url) {
|
| 86 |
window.location.href = res.data.checkout_url
|
| 87 |
} else {
|
| 88 |
-
toast.success('
|
| 89 |
queryClient.invalidateQueries({ queryKey: ['partner-data'] })
|
| 90 |
}
|
| 91 |
} catch (error: any) {
|
| 92 |
-
toast.error(
|
| 93 |
} finally {
|
| 94 |
setIsJoining(false)
|
| 95 |
}
|
|
@@ -98,18 +100,18 @@ export default function PartnersPage() {
|
|
| 98 |
const copyLink = () => {
|
| 99 |
if (partner?.referral_link) {
|
| 100 |
navigator.clipboard.writeText(partner.referral_link)
|
| 101 |
-
toast.success('
|
| 102 |
}
|
| 103 |
}
|
| 104 |
|
| 105 |
const handlePayout = async () => {
|
| 106 |
const amount = parseFloat(payoutAmount)
|
| 107 |
if (isNaN(amount) || amount < 50) {
|
| 108 |
-
toast.error('
|
| 109 |
return
|
| 110 |
}
|
| 111 |
if (amount > (partner?.balance_usd || 0)) {
|
| 112 |
-
toast.error('
|
| 113 |
return
|
| 114 |
}
|
| 115 |
|
|
@@ -119,11 +121,11 @@ export default function PartnersPage() {
|
|
| 119 |
payout_method: payoutMethod,
|
| 120 |
payout_details: { [payoutMethod === 'paypal' ? 'email' : 'address']: payoutDetails }
|
| 121 |
})
|
| 122 |
-
toast.success('
|
| 123 |
setShowPayoutModal(false)
|
| 124 |
queryClient.invalidateQueries({ queryKey: ['partner-data'] })
|
| 125 |
} catch (error: any) {
|
| 126 |
-
toast.error(
|
| 127 |
}
|
| 128 |
}
|
| 129 |
|
|
@@ -150,17 +152,16 @@ export default function PartnersPage() {
|
|
| 150 |
<div className="w-20 h-20 bg-indigo-500/20 rounded-full flex items-center justify-center mx-auto mb-6">
|
| 151 |
<Shield className="w-10 h-10 text-indigo-400" />
|
| 152 |
</div>
|
| 153 |
-
<h1 className="text-3xl font-bold text-white mb-4">
|
| 154 |
<p className="text-slate-400 mb-8 max-w-md mx-auto">
|
| 155 |
-
|
| 156 |
-
Там вы можете активировать партнёров, просматривать статистику и выплаты.
|
| 157 |
</p>
|
| 158 |
<Link
|
| 159 |
href="/admin"
|
| 160 |
className="inline-flex items-center gap-3 px-8 py-4 bg-gradient-to-r from-indigo-600 to-purple-600 text-white font-bold text-lg rounded-xl hover:opacity-90 transition shadow-xl"
|
| 161 |
>
|
| 162 |
<Shield className="w-5 h-5" />
|
| 163 |
-
|
| 164 |
<ArrowRight className="w-5 h-5" />
|
| 165 |
</Link>
|
| 166 |
</motion.div>
|
|
@@ -188,17 +189,16 @@ export default function PartnersPage() {
|
|
| 188 |
>
|
| 189 |
<div className="inline-flex items-center gap-2 px-4 py-2 bg-indigo-500/20 border border-indigo-500/30 rounded-full text-indigo-300 text-sm font-medium mb-4">
|
| 190 |
<Sparkles className="w-4 h-4" />
|
| 191 |
-
|
| 192 |
</div>
|
| 193 |
|
| 194 |
<h1 className="text-5xl md:text-7xl font-bold text-white leading-tight">
|
| 195 |
-
|
| 196 |
-
<br />
|
| 197 |
</h1>
|
| 198 |
|
| 199 |
<p className="text-xl text-slate-400 max-w-2xl mx-auto">
|
| 200 |
-
|
| 201 |
-
с каждой ежемесячной подписки приведённых клиентов. Навсегда.
|
| 202 |
</p>
|
| 203 |
|
| 204 |
<div className="flex flex-wrap justify-center gap-6 pt-6">
|
|
@@ -209,7 +209,7 @@ export default function PartnersPage() {
|
|
| 209 |
className="px-6 py-4 bg-white/5 border border-white/10 rounded-2xl backdrop-blur"
|
| 210 |
>
|
| 211 |
<p className="text-4xl font-bold text-emerald-400">50%</p>
|
| 212 |
-
<p className="text-sm text-slate-500 mt-1">
|
| 213 |
</motion.div>
|
| 214 |
|
| 215 |
<motion.div
|
|
@@ -219,7 +219,7 @@ export default function PartnersPage() {
|
|
| 219 |
className="px-6 py-4 bg-white/5 border border-white/10 rounded-2xl backdrop-blur"
|
| 220 |
>
|
| 221 |
<p className="text-4xl font-bold text-blue-400">$500</p>
|
| 222 |
-
<p className="text-sm text-slate-500 mt-1">
|
| 223 |
</motion.div>
|
| 224 |
|
| 225 |
<motion.div
|
|
@@ -229,7 +229,7 @@ export default function PartnersPage() {
|
|
| 229 |
className="px-6 py-4 bg-white/5 border border-white/10 rounded-2xl backdrop-blur"
|
| 230 |
>
|
| 231 |
<p className="text-4xl font-bold text-purple-400">∞</p>
|
| 232 |
-
<p className="text-sm text-slate-500 mt-1">
|
| 233 |
</motion.div>
|
| 234 |
</div>
|
| 235 |
|
|
@@ -242,13 +242,13 @@ export default function PartnersPage() {
|
|
| 242 |
className="mt-8 px-12 py-5 bg-gradient-to-r from-indigo-600 via-purple-600 to-pink-600 text-white rounded-2xl font-bold text-xl hover:opacity-90 transition shadow-2xl shadow-indigo-500/30 flex items-center gap-3 mx-auto disabled:opacity-50"
|
| 243 |
>
|
| 244 |
{isJoining ? (
|
| 245 |
-
<><Loader2 className="w-6 h-6 animate-spin" />
|
| 246 |
) : !user ? (
|
| 247 |
-
<>
|
| 248 |
) : isPending ? (
|
| 249 |
-
<><CreditCard className="w-6 h-6" />
|
| 250 |
) : (
|
| 251 |
-
<>
|
| 252 |
)}
|
| 253 |
</motion.button>
|
| 254 |
|
|
@@ -260,7 +260,7 @@ export default function PartnersPage() {
|
|
| 260 |
className="mt-4 text-amber-400 text-sm flex items-center justify-center gap-2"
|
| 261 |
>
|
| 262 |
<AlertCircle className="w-4 h-4" />
|
| 263 |
-
|
| 264 |
</motion.p>
|
| 265 |
)}
|
| 266 |
</motion.div>
|
|
@@ -274,7 +274,7 @@ export default function PartnersPage() {
|
|
| 274 |
whileInView={{ opacity: 1 }}
|
| 275 |
className="text-3xl font-bold text-white text-center mb-12"
|
| 276 |
>
|
| 277 |
-
|
| 278 |
</motion.h2>
|
| 279 |
|
| 280 |
<div className="grid md:grid-cols-3 gap-6">
|
|
@@ -286,10 +286,9 @@ export default function PartnersPage() {
|
|
| 286 |
<div className="w-16 h-16 bg-emerald-500/20 rounded-2xl flex items-center justify-center mb-6">
|
| 287 |
<DollarSign className="w-8 h-8 text-emerald-400" />
|
| 288 |
</div>
|
| 289 |
-
<h3 className="text-2xl font-bold text-white mb-3">
|
| 290 |
<p className="text-slate-400 leading-relaxed">
|
| 291 |
-
|
| 292 |
-
При тарифе $199/мес вы получаете $100 каждый месяц.
|
| 293 |
</p>
|
| 294 |
</motion.div>
|
| 295 |
|
|
@@ -302,10 +301,9 @@ export default function PartnersPage() {
|
|
| 302 |
<div className="w-16 h-16 bg-blue-500/20 rounded-2xl flex items-center justify-center mb-6">
|
| 303 |
<TrendingUp className="w-8 h-8 text-blue-400" />
|
| 304 |
</div>
|
| 305 |
-
<h3 className="text-2xl font-bold text-white mb-3">
|
| 306 |
<p className="text-slate-400 leading-relaxed">
|
| 307 |
-
|
| 308 |
-
Привлекайте один раз — зарабатывайте всегда.
|
| 309 |
</p>
|
| 310 |
</motion.div>
|
| 311 |
|
|
@@ -318,10 +316,9 @@ export default function PartnersPage() {
|
|
| 318 |
<div className="w-16 h-16 bg-purple-500/20 rounded-2xl flex items-center justify-center mb-6">
|
| 319 |
<Shield className="w-8 h-8 text-purple-400" />
|
| 320 |
</div>
|
| 321 |
-
<h3 className="text-2xl font-bold text-white mb-3">
|
| 322 |
<p className="text-slate-400 leading-relaxed">
|
| 323 |
-
|
| 324 |
-
выплаты — всё под контролем.
|
| 325 |
</p>
|
| 326 |
</motion.div>
|
| 327 |
</div>
|
|
@@ -335,8 +332,8 @@ export default function PartnersPage() {
|
|
| 335 |
whileInView={{ opacity: 1, y: 0 }}
|
| 336 |
className="text-center mb-12"
|
| 337 |
>
|
| 338 |
-
<h2 className="text-3xl font-bold text-white mb-4">
|
| 339 |
-
<p className="text-slate-400">
|
| 340 |
</motion.div>
|
| 341 |
|
| 342 |
<div className="grid md:grid-cols-3 gap-6">
|
|
@@ -348,9 +345,9 @@ export default function PartnersPage() {
|
|
| 348 |
<div className="w-14 h-14 bg-indigo-500/20 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 349 |
<Users className="w-7 h-7 text-indigo-400" />
|
| 350 |
</div>
|
| 351 |
-
<p className="text-slate-500 mb-2">
|
| 352 |
<p className="text-4xl font-bold text-white">$1,000</p>
|
| 353 |
-
<p className="text-emerald-400 text-sm mt-2">
|
| 354 |
</motion.div>
|
| 355 |
|
| 356 |
<motion.div
|
|
@@ -360,14 +357,14 @@ export default function PartnersPage() {
|
|
| 360 |
className="p-8 bg-gradient-to-br from-indigo-600/20 to-purple-600/20 rounded-3xl border border-indigo-500/30 text-center relative"
|
| 361 |
>
|
| 362 |
<div className="absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-indigo-600 rounded-full text-xs font-bold text-white">
|
| 363 |
-
|
| 364 |
</div>
|
| 365 |
<div className="w-14 h-14 bg-purple-500/20 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 366 |
<Target className="w-7 h-7 text-purple-400" />
|
| 367 |
</div>
|
| 368 |
-
<p className="text-slate-400 mb-2">
|
| 369 |
<p className="text-5xl font-bold text-white">$5,000</p>
|
| 370 |
-
<p className="text-emerald-400 text-sm mt-2">
|
| 371 |
</motion.div>
|
| 372 |
|
| 373 |
<motion.div
|
|
@@ -379,9 +376,9 @@ export default function PartnersPage() {
|
|
| 379 |
<div className="w-14 h-14 bg-pink-500/20 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 380 |
<Star className="w-7 h-7 text-pink-400" />
|
| 381 |
</div>
|
| 382 |
-
<p className="text-slate-500 mb-2">
|
| 383 |
<p className="text-4xl font-bold text-white">$10,000</p>
|
| 384 |
-
<p className="text-emerald-400 text-sm mt-2">
|
| 385 |
</motion.div>
|
| 386 |
</div>
|
| 387 |
</div>
|
|
@@ -398,11 +395,10 @@ export default function PartnersPage() {
|
|
| 398 |
<div className="relative z-10">
|
| 399 |
<Handshake className="w-16 h-16 text-white/80 mx-auto mb-6" />
|
| 400 |
<h2 className="text-3xl md:text-4xl font-bold text-white mb-4">
|
| 401 |
-
|
| 402 |
</h2>
|
| 403 |
<p className="text-xl text-white/80 mb-8 max-w-xl mx-auto">
|
| 404 |
-
|
| 405 |
-
доходу навсегда
|
| 406 |
</p>
|
| 407 |
<button
|
| 408 |
onClick={handleJoin}
|
|
@@ -410,11 +406,11 @@ export default function PartnersPage() {
|
|
| 410 |
className="px-10 py-5 bg-white text-indigo-700 rounded-2xl font-bold text-xl hover:bg-indigo-50 transition shadow-2xl flex items-center gap-3 mx-auto disabled:opacity-50"
|
| 411 |
>
|
| 412 |
{isJoining ? (
|
| 413 |
-
<><Loader2 className="w-6 h-6 animate-spin" />
|
| 414 |
) : !user ? (
|
| 415 |
-
<>
|
| 416 |
) : (
|
| 417 |
-
<>
|
| 418 |
)}
|
| 419 |
</button>
|
| 420 |
</div>
|
|
@@ -435,10 +431,10 @@ export default function PartnersPage() {
|
|
| 435 |
animate={{ opacity: 1, y: 0 }}
|
| 436 |
className="mb-8"
|
| 437 |
>
|
| 438 |
-
<h1 className="text-3xl font-bold text-white mb-2">
|
| 439 |
<p className="text-slate-400 flex items-center gap-2">
|
| 440 |
<CheckCircle2 className="w-4 h-4 text-emerald-400" />
|
| 441 |
-
|
| 442 |
</p>
|
| 443 |
</motion.div>
|
| 444 |
|
|
@@ -450,7 +446,7 @@ export default function PartnersPage() {
|
|
| 450 |
className="bg-gradient-to-br from-emerald-500/20 to-emerald-600/10 p-5 rounded-xl border border-emerald-500/20"
|
| 451 |
>
|
| 452 |
<div className="flex items-center justify-between mb-3">
|
| 453 |
-
<span className="text-sm text-emerald-400">
|
| 454 |
<Wallet className="w-5 h-5 text-emerald-400" />
|
| 455 |
</div>
|
| 456 |
<p className="text-3xl font-bold text-white">${partner.balance_usd?.toFixed(0) || 0}</p>
|
|
@@ -463,7 +459,7 @@ export default function PartnersPage() {
|
|
| 463 |
className="bg-gradient-to-br from-blue-500/20 to-blue-600/10 p-5 rounded-xl border border-blue-500/20"
|
| 464 |
>
|
| 465 |
<div className="flex items-center justify-between mb-3">
|
| 466 |
-
<span className="text-sm text-blue-400">
|
| 467 |
<TrendingUp className="w-5 h-5 text-blue-400" />
|
| 468 |
</div>
|
| 469 |
<p className="text-3xl font-bold text-white">${partner.total_earned?.toFixed(0) || 0}</p>
|
|
@@ -476,7 +472,7 @@ export default function PartnersPage() {
|
|
| 476 |
className="bg-gradient-to-br from-purple-500/20 to-purple-600/10 p-5 rounded-xl border border-purple-500/20"
|
| 477 |
>
|
| 478 |
<div className="flex items-center justify-between mb-3">
|
| 479 |
-
<span className="text-sm text-purple-400">
|
| 480 |
<Users className="w-5 h-5 text-purple-400" />
|
| 481 |
</div>
|
| 482 |
<p className="text-3xl font-bold text-white">{partner.referrals_count || 0}</p>
|
|
@@ -489,7 +485,7 @@ export default function PartnersPage() {
|
|
| 489 |
className="bg-gradient-to-br from-orange-500/20 to-orange-600/10 p-5 rounded-xl border border-orange-500/20"
|
| 490 |
>
|
| 491 |
<div className="flex items-center justify-between mb-3">
|
| 492 |
-
<span className="text-sm text-orange-400">
|
| 493 |
<CheckCircle2 className="w-5 h-5 text-orange-400" />
|
| 494 |
</div>
|
| 495 |
<p className="text-3xl font-bold text-white">{partner.active_referrals || 0}</p>
|
|
@@ -503,7 +499,7 @@ export default function PartnersPage() {
|
|
| 503 |
transition={{ delay: 0.4 }}
|
| 504 |
className="bg-[#1E1F2E] rounded-xl border border-white/10 p-6 mb-6"
|
| 505 |
>
|
| 506 |
-
<h3 className="text-lg font-semibold text-white mb-4">
|
| 507 |
<div className="flex gap-4">
|
| 508 |
<input
|
| 509 |
type="text"
|
|
@@ -516,11 +512,11 @@ export default function PartnersPage() {
|
|
| 516 |
className="px-6 py-3 bg-indigo-600 hover:bg-indigo-500 text-white font-semibold rounded-xl transition flex items-center gap-2"
|
| 517 |
>
|
| 518 |
<Copy className="w-5 h-5" />
|
| 519 |
-
|
| 520 |
</button>
|
| 521 |
</div>
|
| 522 |
<p className="text-sm text-slate-500 mt-3">
|
| 523 |
-
|
| 524 |
</p>
|
| 525 |
</motion.div>
|
| 526 |
|
|
@@ -535,8 +531,8 @@ export default function PartnersPage() {
|
|
| 535 |
<DollarSign className="w-6 h-6 text-emerald-400" />
|
| 536 |
</div>
|
| 537 |
<div className="text-left">
|
| 538 |
-
<h4 className="font-semibold text-white">
|
| 539 |
-
<p className="text-sm text-slate-500">
|
| 540 |
</div>
|
| 541 |
</button>
|
| 542 |
|
|
@@ -548,8 +544,8 @@ export default function PartnersPage() {
|
|
| 548 |
<History className="w-6 h-6 text-blue-400" />
|
| 549 |
</div>
|
| 550 |
<div className="text-left">
|
| 551 |
-
<h4 className="font-semibold text-white">
|
| 552 |
-
<p className="text-sm text-slate-500">
|
| 553 |
</div>
|
| 554 |
</button>
|
| 555 |
</div>
|
|
@@ -562,25 +558,25 @@ export default function PartnersPage() {
|
|
| 562 |
className="bg-[#1E1F2E] rounded-xl border border-white/10 overflow-hidden"
|
| 563 |
>
|
| 564 |
<div className="px-6 py-4 border-b border-white/10">
|
| 565 |
-
<h3 className="text-lg font-semibold text-white">
|
| 566 |
</div>
|
| 567 |
|
| 568 |
{referrals.length === 0 ? (
|
| 569 |
<div className="p-12 text-center">
|
| 570 |
<Users className="w-12 h-12 text-slate-600 mx-auto mb-4" />
|
| 571 |
-
<h3 className="text-lg font-medium text-white">
|
| 572 |
-
<p className="text-slate-500 mt-2">
|
| 573 |
</div>
|
| 574 |
) : (
|
| 575 |
<div className="overflow-x-auto">
|
| 576 |
<table className="min-w-full">
|
| 577 |
<thead>
|
| 578 |
<tr className="text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-white/5">
|
| 579 |
-
<th className="px-6 py-3 text-left">
|
| 580 |
-
<th className="px-6 py-3 text-left">
|
| 581 |
-
<th className="px-6 py-3 text-left">
|
| 582 |
-
<th className="px-6 py-3 text-left">
|
| 583 |
-
<th className="px-6 py-3 text-left">
|
| 584 |
</tr>
|
| 585 |
</thead>
|
| 586 |
<tbody className="divide-y divide-white/5">
|
|
@@ -601,7 +597,7 @@ export default function PartnersPage() {
|
|
| 601 |
? "bg-emerald-500/20 text-emerald-400"
|
| 602 |
: "bg-red-500/20 text-red-400"
|
| 603 |
)}>
|
| 604 |
-
{ref.is_active ? '
|
| 605 |
</span>
|
| 606 |
</td>
|
| 607 |
</tr>
|
|
@@ -628,17 +624,17 @@ export default function PartnersPage() {
|
|
| 628 |
exit={{ scale: 0.95, opacity: 0 }}
|
| 629 |
className="bg-[#1E1F2E] rounded-2xl border border-white/10 max-w-md w-full p-6"
|
| 630 |
>
|
| 631 |
-
<h2 className="text-xl font-bold text-white mb-4">
|
| 632 |
-
<p className="text-slate-400 mb-6">
|
| 633 |
|
| 634 |
<div className="space-y-4">
|
| 635 |
<div>
|
| 636 |
-
<label className="block text-sm font-medium text-slate-400 mb-2">
|
| 637 |
<input
|
| 638 |
type="number"
|
| 639 |
value={payoutAmount}
|
| 640 |
onChange={(e) => setPayoutAmount(e.target.value)}
|
| 641 |
-
placeholder=
|
| 642 |
min="50"
|
| 643 |
max={partner.balance_usd || 0}
|
| 644 |
className="w-full px-4 py-3 bg-white/5 border border-white/10 rounded-xl text-white focus:border-indigo-500 outline-none"
|
|
@@ -646,7 +642,7 @@ export default function PartnersPage() {
|
|
| 646 |
</div>
|
| 647 |
|
| 648 |
<div>
|
| 649 |
-
<label className="block text-sm font-medium text-slate-400 mb-2">
|
| 650 |
<div className="grid grid-cols-2 gap-3">
|
| 651 |
<button
|
| 652 |
onClick={() => setPayoutMethod('paypal')}
|
|
@@ -675,7 +671,7 @@ export default function PartnersPage() {
|
|
| 675 |
|
| 676 |
<div>
|
| 677 |
<label className="block text-sm font-medium text-slate-400 mb-2">
|
| 678 |
-
{payoutMethod === 'paypal' ? 'PayPal Email' :
|
| 679 |
</label>
|
| 680 |
<input
|
| 681 |
type="text"
|
|
@@ -692,13 +688,13 @@ export default function PartnersPage() {
|
|
| 692 |
onClick={() => setShowPayoutModal(false)}
|
| 693 |
className="flex-1 py-3 border border-white/10 text-slate-400 hover:text-white rounded-xl transition"
|
| 694 |
>
|
| 695 |
-
|
| 696 |
</button>
|
| 697 |
<button
|
| 698 |
onClick={handlePayout}
|
| 699 |
className="flex-1 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-bold rounded-xl transition"
|
| 700 |
>
|
| 701 |
-
|
| 702 |
</button>
|
| 703 |
</div>
|
| 704 |
</motion.div>
|
|
|
|
| 14 |
} from 'lucide-react'
|
| 15 |
import { motion, AnimatePresence } from 'framer-motion'
|
| 16 |
import { cn } from '@/lib/utils'
|
| 17 |
+
import { useTranslation } from '@/lib/i18n'
|
| 18 |
|
| 19 |
interface PartnerData {
|
| 20 |
id: string
|
|
|
|
| 43 |
const { user } = useAuth()
|
| 44 |
const toast = useToast()
|
| 45 |
const queryClient = useQueryClient()
|
| 46 |
+
const { t } = useTranslation()
|
| 47 |
const [isJoining, setIsJoining] = useState(false)
|
| 48 |
const [showPayoutModal, setShowPayoutModal] = useState(false)
|
| 49 |
const [payoutAmount, setPayoutAmount] = useState('')
|
|
|
|
| 78 |
const loading = partnerLoading
|
| 79 |
|
| 80 |
const handleJoin = async () => {
|
| 81 |
+
const companyName = prompt(t('partners.enterCompanyName'))
|
| 82 |
if (!companyName) return
|
| 83 |
|
| 84 |
setIsJoining(true)
|
|
|
|
| 87 |
if (res.data.checkout_url) {
|
| 88 |
window.location.href = res.data.checkout_url
|
| 89 |
} else {
|
| 90 |
+
toast.success(t('partners.applicationCreated'))
|
| 91 |
queryClient.invalidateQueries({ queryKey: ['partner-data'] })
|
| 92 |
}
|
| 93 |
} catch (error: any) {
|
| 94 |
+
toast.error(error.response?.data?.detail || t('partners.registrationFailed'))
|
| 95 |
} finally {
|
| 96 |
setIsJoining(false)
|
| 97 |
}
|
|
|
|
| 100 |
const copyLink = () => {
|
| 101 |
if (partner?.referral_link) {
|
| 102 |
navigator.clipboard.writeText(partner.referral_link)
|
| 103 |
+
toast.success(t('partners.linkCopied'))
|
| 104 |
}
|
| 105 |
}
|
| 106 |
|
| 107 |
const handlePayout = async () => {
|
| 108 |
const amount = parseFloat(payoutAmount)
|
| 109 |
if (isNaN(amount) || amount < 50) {
|
| 110 |
+
toast.error(t('partners.minPayoutError'))
|
| 111 |
return
|
| 112 |
}
|
| 113 |
if (amount > (partner?.balance_usd || 0)) {
|
| 114 |
+
toast.error(t('partners.insufficientFunds'))
|
| 115 |
return
|
| 116 |
}
|
| 117 |
|
|
|
|
| 121 |
payout_method: payoutMethod,
|
| 122 |
payout_details: { [payoutMethod === 'paypal' ? 'email' : 'address']: payoutDetails }
|
| 123 |
})
|
| 124 |
+
toast.success(t('partners.payoutRequested'))
|
| 125 |
setShowPayoutModal(false)
|
| 126 |
queryClient.invalidateQueries({ queryKey: ['partner-data'] })
|
| 127 |
} catch (error: any) {
|
| 128 |
+
toast.error(error.response?.data?.detail || t('partners.payoutFailed'))
|
| 129 |
}
|
| 130 |
}
|
| 131 |
|
|
|
|
| 152 |
<div className="w-20 h-20 bg-indigo-500/20 rounded-full flex items-center justify-center mx-auto mb-6">
|
| 153 |
<Shield className="w-10 h-10 text-indigo-400" />
|
| 154 |
</div>
|
| 155 |
+
<h1 className="text-3xl font-bold text-white mb-4">{t('partners.administrator')}</h1>
|
| 156 |
<p className="text-slate-400 mb-8 max-w-md mx-auto">
|
| 157 |
+
{t('partners.adminDescription')}
|
|
|
|
| 158 |
</p>
|
| 159 |
<Link
|
| 160 |
href="/admin"
|
| 161 |
className="inline-flex items-center gap-3 px-8 py-4 bg-gradient-to-r from-indigo-600 to-purple-600 text-white font-bold text-lg rounded-xl hover:opacity-90 transition shadow-xl"
|
| 162 |
>
|
| 163 |
<Shield className="w-5 h-5" />
|
| 164 |
+
{t('partners.goToAdmin')}
|
| 165 |
<ArrowRight className="w-5 h-5" />
|
| 166 |
</Link>
|
| 167 |
</motion.div>
|
|
|
|
| 189 |
>
|
| 190 |
<div className="inline-flex items-center gap-2 px-4 py-2 bg-indigo-500/20 border border-indigo-500/30 rounded-full text-indigo-300 text-sm font-medium mb-4">
|
| 191 |
<Sparkles className="w-4 h-4" />
|
| 192 |
+
{t('partners.partnerProgram')}
|
| 193 |
</div>
|
| 194 |
|
| 195 |
<h1 className="text-5xl md:text-7xl font-bold text-white leading-tight">
|
| 196 |
+
{t('partners.earn')} <span className="bg-gradient-to-r from-emerald-400 to-cyan-400 bg-clip-text text-transparent">50%</span>
|
| 197 |
+
<br />{t('partners.fromEachClient')}
|
| 198 |
</h1>
|
| 199 |
|
| 200 |
<p className="text-xl text-slate-400 max-w-2xl mx-auto">
|
| 201 |
+
{t('partners.becomePartner')}
|
|
|
|
| 202 |
</p>
|
| 203 |
|
| 204 |
<div className="flex flex-wrap justify-center gap-6 pt-6">
|
|
|
|
| 209 |
className="px-6 py-4 bg-white/5 border border-white/10 rounded-2xl backdrop-blur"
|
| 210 |
>
|
| 211 |
<p className="text-4xl font-bold text-emerald-400">50%</p>
|
| 212 |
+
<p className="text-sm text-slate-500 mt-1">{t('partners.commissionForever')}</p>
|
| 213 |
</motion.div>
|
| 214 |
|
| 215 |
<motion.div
|
|
|
|
| 219 |
className="px-6 py-4 bg-white/5 border border-white/10 rounded-2xl backdrop-blur"
|
| 220 |
>
|
| 221 |
<p className="text-4xl font-bold text-blue-400">$500</p>
|
| 222 |
+
<p className="text-sm text-slate-500 mt-1">{t('partners.oneTimeFee')}</p>
|
| 223 |
</motion.div>
|
| 224 |
|
| 225 |
<motion.div
|
|
|
|
| 229 |
className="px-6 py-4 bg-white/5 border border-white/10 rounded-2xl backdrop-blur"
|
| 230 |
>
|
| 231 |
<p className="text-4xl font-bold text-purple-400">∞</p>
|
| 232 |
+
<p className="text-sm text-slate-500 mt-1">{t('partners.noLimits')}</p>
|
| 233 |
</motion.div>
|
| 234 |
</div>
|
| 235 |
|
|
|
|
| 242 |
className="mt-8 px-12 py-5 bg-gradient-to-r from-indigo-600 via-purple-600 to-pink-600 text-white rounded-2xl font-bold text-xl hover:opacity-90 transition shadow-2xl shadow-indigo-500/30 flex items-center gap-3 mx-auto disabled:opacity-50"
|
| 243 |
>
|
| 244 |
{isJoining ? (
|
| 245 |
+
<><Loader2 className="w-6 h-6 animate-spin" /> {t('common.loading')}</>
|
| 246 |
) : !user ? (
|
| 247 |
+
<>{t('partners.loginToBecome')}</>
|
| 248 |
) : isPending ? (
|
| 249 |
+
<><CreditCard className="w-6 h-6" /> {t('partners.payAndActivate')}</>
|
| 250 |
) : (
|
| 251 |
+
<>{t('partners.becomePartnerFor')} <ArrowRight className="w-6 h-6" /></>
|
| 252 |
)}
|
| 253 |
</motion.button>
|
| 254 |
|
|
|
|
| 260 |
className="mt-4 text-amber-400 text-sm flex items-center justify-center gap-2"
|
| 261 |
>
|
| 262 |
<AlertCircle className="w-4 h-4" />
|
| 263 |
+
{t('partners.pendingPayment')}
|
| 264 |
</motion.p>
|
| 265 |
)}
|
| 266 |
</motion.div>
|
|
|
|
| 274 |
whileInView={{ opacity: 1 }}
|
| 275 |
className="text-3xl font-bold text-white text-center mb-12"
|
| 276 |
>
|
| 277 |
+
{t('partners.whyPartners')}
|
| 278 |
</motion.h2>
|
| 279 |
|
| 280 |
<div className="grid md:grid-cols-3 gap-6">
|
|
|
|
| 286 |
<div className="w-16 h-16 bg-emerald-500/20 rounded-2xl flex items-center justify-center mb-6">
|
| 287 |
<DollarSign className="w-8 h-8 text-emerald-400" />
|
| 288 |
</div>
|
| 289 |
+
<h3 className="text-2xl font-bold text-white mb-3">{t('partners.fiftyPercent')}</h3>
|
| 290 |
<p className="text-slate-400 leading-relaxed">
|
| 291 |
+
{t('partners.fiftyPercentDesc')}
|
|
|
|
| 292 |
</p>
|
| 293 |
</motion.div>
|
| 294 |
|
|
|
|
| 301 |
<div className="w-16 h-16 bg-blue-500/20 rounded-2xl flex items-center justify-center mb-6">
|
| 302 |
<TrendingUp className="w-8 h-8 text-blue-400" />
|
| 303 |
</div>
|
| 304 |
+
<h3 className="text-2xl font-bold text-white mb-3">{t('partners.recurringIncome')}</h3>
|
| 305 |
<p className="text-slate-400 leading-relaxed">
|
| 306 |
+
{t('partners.recurringIncomeDesc')}
|
|
|
|
| 307 |
</p>
|
| 308 |
</motion.div>
|
| 309 |
|
|
|
|
| 316 |
<div className="w-16 h-16 bg-purple-500/20 rounded-2xl flex items-center justify-center mb-6">
|
| 317 |
<Shield className="w-8 h-8 text-purple-400" />
|
| 318 |
</div>
|
| 319 |
+
<h3 className="text-2xl font-bold text-white mb-3">{t('partners.transparency')}</h3>
|
| 320 |
<p className="text-slate-400 leading-relaxed">
|
| 321 |
+
{t('partners.transparencyDesc')}
|
|
|
|
| 322 |
</p>
|
| 323 |
</motion.div>
|
| 324 |
</div>
|
|
|
|
| 332 |
whileInView={{ opacity: 1, y: 0 }}
|
| 333 |
className="text-center mb-12"
|
| 334 |
>
|
| 335 |
+
<h2 className="text-3xl font-bold text-white mb-4">{t('partners.calculateIncome')}</h2>
|
| 336 |
+
<p className="text-slate-400">{t('partners.atAverageCheck')}</p>
|
| 337 |
</motion.div>
|
| 338 |
|
| 339 |
<div className="grid md:grid-cols-3 gap-6">
|
|
|
|
| 345 |
<div className="w-14 h-14 bg-indigo-500/20 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 346 |
<Users className="w-7 h-7 text-indigo-400" />
|
| 347 |
</div>
|
| 348 |
+
<p className="text-slate-500 mb-2">{t('partners.clients10')}</p>
|
| 349 |
<p className="text-4xl font-bold text-white">$1,000</p>
|
| 350 |
+
<p className="text-emerald-400 text-sm mt-2">{t('partners.perMonth')}</p>
|
| 351 |
</motion.div>
|
| 352 |
|
| 353 |
<motion.div
|
|
|
|
| 357 |
className="p-8 bg-gradient-to-br from-indigo-600/20 to-purple-600/20 rounded-3xl border border-indigo-500/30 text-center relative"
|
| 358 |
>
|
| 359 |
<div className="absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 bg-indigo-600 rounded-full text-xs font-bold text-white">
|
| 360 |
+
{t('partners.popular')}
|
| 361 |
</div>
|
| 362 |
<div className="w-14 h-14 bg-purple-500/20 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 363 |
<Target className="w-7 h-7 text-purple-400" />
|
| 364 |
</div>
|
| 365 |
+
<p className="text-slate-400 mb-2">{t('partners.clients50')}</p>
|
| 366 |
<p className="text-5xl font-bold text-white">$5,000</p>
|
| 367 |
+
<p className="text-emerald-400 text-sm mt-2">{t('partners.perMonth')}</p>
|
| 368 |
</motion.div>
|
| 369 |
|
| 370 |
<motion.div
|
|
|
|
| 376 |
<div className="w-14 h-14 bg-pink-500/20 rounded-full flex items-center justify-center mx-auto mb-4">
|
| 377 |
<Star className="w-7 h-7 text-pink-400" />
|
| 378 |
</div>
|
| 379 |
+
<p className="text-slate-500 mb-2">{t('partners.clients100')}</p>
|
| 380 |
<p className="text-4xl font-bold text-white">$10,000</p>
|
| 381 |
+
<p className="text-emerald-400 text-sm mt-2">{t('partners.perMonth')}</p>
|
| 382 |
</motion.div>
|
| 383 |
</div>
|
| 384 |
</div>
|
|
|
|
| 395 |
<div className="relative z-10">
|
| 396 |
<Handshake className="w-16 h-16 text-white/80 mx-auto mb-6" />
|
| 397 |
<h2 className="text-3xl md:text-4xl font-bold text-white mb-4">
|
| 398 |
+
{t('partners.readyToEarn')}
|
| 399 |
</h2>
|
| 400 |
<p className="text-xl text-white/80 mb-8 max-w-xl mx-auto">
|
| 401 |
+
{t('partners.oneTimePayment')}
|
|
|
|
| 402 |
</p>
|
| 403 |
<button
|
| 404 |
onClick={handleJoin}
|
|
|
|
| 406 |
className="px-10 py-5 bg-white text-indigo-700 rounded-2xl font-bold text-xl hover:bg-indigo-50 transition shadow-2xl flex items-center gap-3 mx-auto disabled:opacity-50"
|
| 407 |
>
|
| 408 |
{isJoining ? (
|
| 409 |
+
<><Loader2 className="w-6 h-6 animate-spin" /> {t('common.loading')}</>
|
| 410 |
) : !user ? (
|
| 411 |
+
<>{t('partners.loginToAccount')}</>
|
| 412 |
) : (
|
| 413 |
+
<>{t('partners.becomePartnerShort')} <ArrowRight className="w-6 h-6" /></>
|
| 414 |
)}
|
| 415 |
</button>
|
| 416 |
</div>
|
|
|
|
| 431 |
animate={{ opacity: 1, y: 0 }}
|
| 432 |
className="mb-8"
|
| 433 |
>
|
| 434 |
+
<h1 className="text-3xl font-bold text-white mb-2">{t('partners.partnerPanel')}</h1>
|
| 435 |
<p className="text-slate-400 flex items-center gap-2">
|
| 436 |
<CheckCircle2 className="w-4 h-4 text-emerald-400" />
|
| 437 |
+
{t('partners.status')}: <span className="text-emerald-400 font-medium">{t('common.active')}</span>
|
| 438 |
</p>
|
| 439 |
</motion.div>
|
| 440 |
|
|
|
|
| 446 |
className="bg-gradient-to-br from-emerald-500/20 to-emerald-600/10 p-5 rounded-xl border border-emerald-500/20"
|
| 447 |
>
|
| 448 |
<div className="flex items-center justify-between mb-3">
|
| 449 |
+
<span className="text-sm text-emerald-400">{t('partners.balance')}</span>
|
| 450 |
<Wallet className="w-5 h-5 text-emerald-400" />
|
| 451 |
</div>
|
| 452 |
<p className="text-3xl font-bold text-white">${partner.balance_usd?.toFixed(0) || 0}</p>
|
|
|
|
| 459 |
className="bg-gradient-to-br from-blue-500/20 to-blue-600/10 p-5 rounded-xl border border-blue-500/20"
|
| 460 |
>
|
| 461 |
<div className="flex items-center justify-between mb-3">
|
| 462 |
+
<span className="text-sm text-blue-400">{t('partners.totalEarned')}</span>
|
| 463 |
<TrendingUp className="w-5 h-5 text-blue-400" />
|
| 464 |
</div>
|
| 465 |
<p className="text-3xl font-bold text-white">${partner.total_earned?.toFixed(0) || 0}</p>
|
|
|
|
| 472 |
className="bg-gradient-to-br from-purple-500/20 to-purple-600/10 p-5 rounded-xl border border-purple-500/20"
|
| 473 |
>
|
| 474 |
<div className="flex items-center justify-between mb-3">
|
| 475 |
+
<span className="text-sm text-purple-400">{t('partners.clients')}</span>
|
| 476 |
<Users className="w-5 h-5 text-purple-400" />
|
| 477 |
</div>
|
| 478 |
<p className="text-3xl font-bold text-white">{partner.referrals_count || 0}</p>
|
|
|
|
| 485 |
className="bg-gradient-to-br from-orange-500/20 to-orange-600/10 p-5 rounded-xl border border-orange-500/20"
|
| 486 |
>
|
| 487 |
<div className="flex items-center justify-between mb-3">
|
| 488 |
+
<span className="text-sm text-orange-400">{t('partners.activeClients')}</span>
|
| 489 |
<CheckCircle2 className="w-5 h-5 text-orange-400" />
|
| 490 |
</div>
|
| 491 |
<p className="text-3xl font-bold text-white">{partner.active_referrals || 0}</p>
|
|
|
|
| 499 |
transition={{ delay: 0.4 }}
|
| 500 |
className="bg-[#1E1F2E] rounded-xl border border-white/10 p-6 mb-6"
|
| 501 |
>
|
| 502 |
+
<h3 className="text-lg font-semibold text-white mb-4">{t('partners.yourReferralLink')}</h3>
|
| 503 |
<div className="flex gap-4">
|
| 504 |
<input
|
| 505 |
type="text"
|
|
|
|
| 512 |
className="px-6 py-3 bg-indigo-600 hover:bg-indigo-500 text-white font-semibold rounded-xl transition flex items-center gap-2"
|
| 513 |
>
|
| 514 |
<Copy className="w-5 h-5" />
|
| 515 |
+
{t('common.copy')}
|
| 516 |
</button>
|
| 517 |
</div>
|
| 518 |
<p className="text-sm text-slate-500 mt-3">
|
| 519 |
+
{t('partners.earnFromLink')}
|
| 520 |
</p>
|
| 521 |
</motion.div>
|
| 522 |
|
|
|
|
| 531 |
<DollarSign className="w-6 h-6 text-emerald-400" />
|
| 532 |
</div>
|
| 533 |
<div className="text-left">
|
| 534 |
+
<h4 className="font-semibold text-white">{t('partners.withdraw')}</h4>
|
| 535 |
+
<p className="text-sm text-slate-500">{t('partners.minWithdraw')}</p>
|
| 536 |
</div>
|
| 537 |
</button>
|
| 538 |
|
|
|
|
| 544 |
<History className="w-6 h-6 text-blue-400" />
|
| 545 |
</div>
|
| 546 |
<div className="text-left">
|
| 547 |
+
<h4 className="font-semibold text-white">{t('partners.payoutHistory')}</h4>
|
| 548 |
+
<p className="text-sm text-slate-500">{t('partners.allTransactions')}</p>
|
| 549 |
</div>
|
| 550 |
</button>
|
| 551 |
</div>
|
|
|
|
| 558 |
className="bg-[#1E1F2E] rounded-xl border border-white/10 overflow-hidden"
|
| 559 |
>
|
| 560 |
<div className="px-6 py-4 border-b border-white/10">
|
| 561 |
+
<h3 className="text-lg font-semibold text-white">{t('partners.yourClients')}</h3>
|
| 562 |
</div>
|
| 563 |
|
| 564 |
{referrals.length === 0 ? (
|
| 565 |
<div className="p-12 text-center">
|
| 566 |
<Users className="w-12 h-12 text-slate-600 mx-auto mb-4" />
|
| 567 |
+
<h3 className="text-lg font-medium text-white">{t('partners.noClientsYet')}</h3>
|
| 568 |
+
<p className="text-slate-500 mt-2">{t('partners.shareToEarn')}</p>
|
| 569 |
</div>
|
| 570 |
) : (
|
| 571 |
<div className="overflow-x-auto">
|
| 572 |
<table className="min-w-full">
|
| 573 |
<thead>
|
| 574 |
<tr className="text-xs font-semibold text-slate-500 uppercase tracking-wider border-b border-white/5">
|
| 575 |
+
<th className="px-6 py-3 text-left">{t('partners.client')}</th>
|
| 576 |
+
<th className="px-6 py-3 text-left">{t('partners.plan')}</th>
|
| 577 |
+
<th className="px-6 py-3 text-left">{t('partners.paid')}</th>
|
| 578 |
+
<th className="px-6 py-3 text-left">{t('partners.yourIncome')}</th>
|
| 579 |
+
<th className="px-6 py-3 text-left">{t('partners.statusLabel')}</th>
|
| 580 |
</tr>
|
| 581 |
</thead>
|
| 582 |
<tbody className="divide-y divide-white/5">
|
|
|
|
| 597 |
? "bg-emerald-500/20 text-emerald-400"
|
| 598 |
: "bg-red-500/20 text-red-400"
|
| 599 |
)}>
|
| 600 |
+
{ref.is_active ? t('common.active') : t('common.inactive')}
|
| 601 |
</span>
|
| 602 |
</td>
|
| 603 |
</tr>
|
|
|
|
| 624 |
exit={{ scale: 0.95, opacity: 0 }}
|
| 625 |
className="bg-[#1E1F2E] rounded-2xl border border-white/10 max-w-md w-full p-6"
|
| 626 |
>
|
| 627 |
+
<h2 className="text-xl font-bold text-white mb-4">{t('partners.withdrawFunds')}</h2>
|
| 628 |
+
<p className="text-slate-400 mb-6">{t('partners.available')}: <span className="text-emerald-400 font-bold">${partner.balance_usd?.toFixed(2) || 0}</span></p>
|
| 629 |
|
| 630 |
<div className="space-y-4">
|
| 631 |
<div>
|
| 632 |
+
<label className="block text-sm font-medium text-slate-400 mb-2">{t('partners.amountUsd')}</label>
|
| 633 |
<input
|
| 634 |
type="number"
|
| 635 |
value={payoutAmount}
|
| 636 |
onChange={(e) => setPayoutAmount(e.target.value)}
|
| 637 |
+
placeholder={t('partners.minPlaceholder')}
|
| 638 |
min="50"
|
| 639 |
max={partner.balance_usd || 0}
|
| 640 |
className="w-full px-4 py-3 bg-white/5 border border-white/10 rounded-xl text-white focus:border-indigo-500 outline-none"
|
|
|
|
| 642 |
</div>
|
| 643 |
|
| 644 |
<div>
|
| 645 |
+
<label className="block text-sm font-medium text-slate-400 mb-2">{t('partners.method')}</label>
|
| 646 |
<div className="grid grid-cols-2 gap-3">
|
| 647 |
<button
|
| 648 |
onClick={() => setPayoutMethod('paypal')}
|
|
|
|
| 671 |
|
| 672 |
<div>
|
| 673 |
<label className="block text-sm font-medium text-slate-400 mb-2">
|
| 674 |
+
{payoutMethod === 'paypal' ? 'PayPal Email' : t('partners.usdtAddress')}
|
| 675 |
</label>
|
| 676 |
<input
|
| 677 |
type="text"
|
|
|
|
| 688 |
onClick={() => setShowPayoutModal(false)}
|
| 689 |
className="flex-1 py-3 border border-white/10 text-slate-400 hover:text-white rounded-xl transition"
|
| 690 |
>
|
| 691 |
+
{t('common.cancel')}
|
| 692 |
</button>
|
| 693 |
<button
|
| 694 |
onClick={handlePayout}
|
| 695 |
className="flex-1 py-3 bg-emerald-600 hover:bg-emerald-500 text-white font-bold rounded-xl transition"
|
| 696 |
>
|
| 697 |
+
{t('partners.withdrawBtn')}
|
| 698 |
</button>
|
| 699 |
</div>
|
| 700 |
</motion.div>
|
frontend/lib/i18n/translations/en.ts
CHANGED
|
@@ -43,6 +43,10 @@ export const en = {
|
|
| 43 |
warning: 'Warning',
|
| 44 |
optional: 'optional',
|
| 45 |
creating: 'Creating...',
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
},
|
| 47 |
|
| 48 |
// Header
|
|
@@ -571,4 +575,75 @@ export const en = {
|
|
| 571 |
settingsSaved: 'Settings saved',
|
| 572 |
failedToSave: 'Failed to save',
|
| 573 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 574 |
}
|
|
|
|
| 43 |
warning: 'Warning',
|
| 44 |
optional: 'optional',
|
| 45 |
creating: 'Creating...',
|
| 46 |
+
loading: 'Loading...',
|
| 47 |
+
active: 'Active',
|
| 48 |
+
inactive: 'Inactive',
|
| 49 |
+
copy: 'Copy',
|
| 50 |
},
|
| 51 |
|
| 52 |
// Header
|
|
|
|
| 575 |
settingsSaved: 'Settings saved',
|
| 576 |
failedToSave: 'Failed to save',
|
| 577 |
},
|
| 578 |
+
|
| 579 |
+
// Partners Program
|
| 580 |
+
partners: {
|
| 581 |
+
enterCompanyName: 'Enter your company name:',
|
| 582 |
+
applicationCreated: 'Application created',
|
| 583 |
+
registrationFailed: 'Registration failed',
|
| 584 |
+
linkCopied: 'Link copied',
|
| 585 |
+
minPayoutError: 'Minimum withdrawal amount is $50',
|
| 586 |
+
insufficientFunds: 'Insufficient funds',
|
| 587 |
+
payoutRequested: 'Payout request submitted',
|
| 588 |
+
payoutFailed: 'Failed to create request',
|
| 589 |
+
administrator: 'Administrator',
|
| 590 |
+
adminDescription: 'As an administrator, you manage partners via the admin panel. There you can activate partners, view statistics and payouts.',
|
| 591 |
+
goToAdmin: 'Go to Admin Panel',
|
| 592 |
+
partnerProgram: 'MicroFunnel Partner Program',
|
| 593 |
+
earn: 'Earn',
|
| 594 |
+
fromEachClient: 'from each client',
|
| 595 |
+
becomePartner: 'Become a MicroFunnel partner and earn passive income from every monthly subscription of referred clients. Forever.',
|
| 596 |
+
commissionForever: 'commission forever',
|
| 597 |
+
oneTimeFee: 'one-time fee',
|
| 598 |
+
noLimits: 'no limits',
|
| 599 |
+
loginToBecome: 'Login to become a partner',
|
| 600 |
+
payAndActivate: 'Pay $500 and activate',
|
| 601 |
+
becomePartnerFor: 'Become a partner for $500',
|
| 602 |
+
pendingPayment: 'Your application is pending payment',
|
| 603 |
+
whyPartners: 'Why partners choose us',
|
| 604 |
+
fiftyPercent: '50% Commission',
|
| 605 |
+
fiftyPercentDesc: 'Half of every payment from your client is yours. At $199/month rate you get $100 every month.',
|
| 606 |
+
recurringIncome: 'Recurring Income',
|
| 607 |
+
recurringIncomeDesc: 'Get commission every month while the client is subscribed. Attract once — earn always.',
|
| 608 |
+
transparency: 'Transparency',
|
| 609 |
+
transparencyDesc: 'Full statistics in your dashboard: clients, payments, payouts — everything under control.',
|
| 610 |
+
calculateIncome: 'Calculate your income',
|
| 611 |
+
atAverageCheck: 'At an average check of $199/month and 50% commission',
|
| 612 |
+
clients10: '10 clients',
|
| 613 |
+
clients50: '50 clients',
|
| 614 |
+
clients100: '100 clients',
|
| 615 |
+
perMonth: 'per month',
|
| 616 |
+
popular: 'Popular',
|
| 617 |
+
readyToEarn: 'Ready to start earning?',
|
| 618 |
+
oneTimePayment: 'One-time payment — and you get access to passive income forever',
|
| 619 |
+
loginToAccount: 'Login to your account',
|
| 620 |
+
becomePartnerShort: 'Become a partner',
|
| 621 |
+
partnerPanel: 'Partner Panel',
|
| 622 |
+
status: 'Status',
|
| 623 |
+
balance: 'Balance',
|
| 624 |
+
totalEarned: 'Total Earned',
|
| 625 |
+
clients: 'Clients',
|
| 626 |
+
activeClients: 'Active',
|
| 627 |
+
yourReferralLink: 'Your referral link',
|
| 628 |
+
earnFromLink: 'Earn 50% from all subscriptions of clients registered via this link',
|
| 629 |
+
withdraw: 'Withdraw Funds',
|
| 630 |
+
minWithdraw: 'Minimum $50',
|
| 631 |
+
payoutHistory: 'Payout History',
|
| 632 |
+
allTransactions: 'All transactions',
|
| 633 |
+
yourClients: 'Your Clients',
|
| 634 |
+
noClientsYet: 'No clients yet',
|
| 635 |
+
shareToEarn: 'Share the link to start earning',
|
| 636 |
+
client: 'Client',
|
| 637 |
+
plan: 'Plan',
|
| 638 |
+
paid: 'Paid',
|
| 639 |
+
yourIncome: 'Your Income',
|
| 640 |
+
statusLabel: 'Status',
|
| 641 |
+
withdrawFunds: 'Withdraw Funds',
|
| 642 |
+
available: 'Available',
|
| 643 |
+
amountUsd: 'Amount (USD)',
|
| 644 |
+
minPlaceholder: 'Minimum 50',
|
| 645 |
+
method: 'Method',
|
| 646 |
+
usdtAddress: 'USDT (TRC20) address',
|
| 647 |
+
withdrawBtn: 'Withdraw',
|
| 648 |
+
},
|
| 649 |
}
|
frontend/lib/i18n/translations/ky.ts
CHANGED
|
@@ -43,6 +43,10 @@ export const ky = {
|
|
| 43 |
warning: 'Эскертүү',
|
| 44 |
optional: 'кошумча',
|
| 45 |
creating: 'Түзүлүүдө...',
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
},
|
| 47 |
|
| 48 |
// Header
|
|
@@ -571,4 +575,75 @@ export const ky = {
|
|
| 571 |
settingsSaved: 'Жөндөөлөр сакталды',
|
| 572 |
failedToSave: 'Сактоо мүмкүн эмес',
|
| 573 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 574 |
}
|
|
|
|
| 43 |
warning: 'Эскертүү',
|
| 44 |
optional: 'кошумча',
|
| 45 |
creating: 'Түзүлүүдө...',
|
| 46 |
+
loading: 'Жүктөлүүдө...',
|
| 47 |
+
active: 'Активдүү',
|
| 48 |
+
inactive: 'Активдүү эмес',
|
| 49 |
+
copy: 'Көчүрүү',
|
| 50 |
},
|
| 51 |
|
| 52 |
// Header
|
|
|
|
| 575 |
settingsSaved: 'Жөндөөлөр сакталды',
|
| 576 |
failedToSave: 'Сактоо мүмкүн эмес',
|
| 577 |
},
|
| 578 |
+
|
| 579 |
+
// Partners Program
|
| 580 |
+
partners: {
|
| 581 |
+
enterCompanyName: 'Компанияңыздын атын киргизиңиз:',
|
| 582 |
+
applicationCreated: 'Арыз түзүлдү',
|
| 583 |
+
registrationFailed: 'Каттоо мүмкүн эмес',
|
| 584 |
+
linkCopied: 'Шилтеме көчүрүлдү',
|
| 585 |
+
minPayoutError: 'Минималдуу чыгаруу суммасы $50',
|
| 586 |
+
insufficientFunds: 'Жетишсиз каражат',
|
| 587 |
+
payoutRequested: 'Чыгаруу арызы жөнөтүлдү',
|
| 588 |
+
payoutFailed: 'Арыз түзүү мүмкүн эмес',
|
| 589 |
+
administrator: 'Администратор',
|
| 590 |
+
adminDescription: 'Администратор катары, сиз өнөктөштөрдү админ панели аркылуу башкарасыз. Анда өнөктөштөрдү активдештирип, статистиканы жана төлөмдөрдү көрө аласыз.',
|
| 591 |
+
goToAdmin: 'Админ панелине өтүү',
|
| 592 |
+
partnerProgram: 'MicroFunnel Өнөктөш программасы',
|
| 593 |
+
earn: 'Табыңыз',
|
| 594 |
+
fromEachClient: 'әр клиенттен',
|
| 595 |
+
becomePartner: 'MicroFunnel өнөктөшү болуңуз жана тартылган клиенттердин әр айлык жазылуусунан пассивдүү киреше алыңыз. Түбөлүккө.',
|
| 596 |
+
commissionForever: 'комиссия түбөлүктө',
|
| 597 |
+
oneTimeFee: 'бир жолку төлөм',
|
| 598 |
+
noLimits: 'чектөөлөрсүз',
|
| 599 |
+
loginToBecome: 'Өнөктөш болуу үчүн кириңиз',
|
| 600 |
+
payAndActivate: '$500 төлөп активдештирүү',
|
| 601 |
+
becomePartnerFor: '$500 үчүн өнөктөш болуу',
|
| 602 |
+
pendingPayment: 'Сиздин арызыңыз төлөмдү күтүүдө',
|
| 603 |
+
whyPartners: 'Неге өнөктөштөр бизди тандайт',
|
| 604 |
+
fiftyPercent: '50% Комиссия',
|
| 605 |
+
fiftyPercentDesc: 'Клиентиңиздин әр төлөмүнөн жарымы сиздики. $199/ай тарифинде әр ай $100 аласыз.',
|
| 606 |
+
recurringIncome: 'Кайталануучу киреше',
|
| 607 |
+
recurringIncomeDesc: 'Клиент жазылганда әр ай комиссия алыңыз. Бир жолу тартыңыз — дайыма табыңыз.',
|
| 608 |
+
transparency: 'Айкындык',
|
| 609 |
+
transparencyDesc: 'Жеке кабинетте толук статистика: клиенттер, төлөмдөр, чыгаруулар — бардыгы көзөмөлдө.',
|
| 610 |
+
calculateIncome: 'Кирешеңизди эсептеңиз',
|
| 611 |
+
atAverageCheck: 'Орточо $199/ай жана 50% комиссияда',
|
| 612 |
+
clients10: '10 клиент',
|
| 613 |
+
clients50: '50 клиент',
|
| 614 |
+
clients100: '100 клиент',
|
| 615 |
+
perMonth: 'айына',
|
| 616 |
+
popular: 'Популярдуу',
|
| 617 |
+
readyToEarn: 'Табууга даярсызбы?',
|
| 618 |
+
oneTimePayment: 'Бир жолку төлөм — жана түбөлүктө пассивдүү кирешеге жетки аласыз',
|
| 619 |
+
loginToAccount: 'Аккаунтуңузга кириңиз',
|
| 620 |
+
becomePartnerShort: 'Өнөктөш болуу',
|
| 621 |
+
partnerPanel: 'Өнөктөш панели',
|
| 622 |
+
status: 'Статус',
|
| 623 |
+
balance: 'Баланс',
|
| 624 |
+
totalEarned: 'Бардыгы табылды',
|
| 625 |
+
clients: 'Клиенттер',
|
| 626 |
+
activeClients: 'Активдүү',
|
| 627 |
+
yourReferralLink: 'Сиздин рефералдык шилтемеңиз',
|
| 628 |
+
earnFromLink: 'Бул шилтеме аркылуу катталган клиенттердин бардык жазылууларынан 50% алыңыз',
|
| 629 |
+
withdraw: 'Каражат чыгаруу',
|
| 630 |
+
minWithdraw: 'Минимум $50',
|
| 631 |
+
payoutHistory: 'Төлөм тарыхы',
|
| 632 |
+
allTransactions: 'Бардык транзакциялар',
|
| 633 |
+
yourClients: 'Сиздин клиенттериңиз',
|
| 634 |
+
noClientsYet: 'Азырча клиенттер жок',
|
| 635 |
+
shareToEarn: 'Табууну баштоо үчүн шилтемени бөлүшүңүз',
|
| 636 |
+
client: 'Клиент',
|
| 637 |
+
plan: 'Тариф',
|
| 638 |
+
paid: 'Төлөндү',
|
| 639 |
+
yourIncome: 'Сиздин кирешеңиз',
|
| 640 |
+
statusLabel: 'Статус',
|
| 641 |
+
withdrawFunds: 'Каражат чыгаруу',
|
| 642 |
+
available: 'Жетимдүү',
|
| 643 |
+
amountUsd: 'Сумма (USD)',
|
| 644 |
+
minPlaceholder: 'Минимум 50',
|
| 645 |
+
method: 'Усул',
|
| 646 |
+
usdtAddress: 'USDT (TRC20) дарек',
|
| 647 |
+
withdrawBtn: 'Чыгаруу',
|
| 648 |
+
},
|
| 649 |
}
|
frontend/lib/i18n/translations/ru.ts
CHANGED
|
@@ -43,6 +43,10 @@ export const ru = {
|
|
| 43 |
warning: 'Внимание',
|
| 44 |
optional: 'опционально',
|
| 45 |
creating: 'Создание...',
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
},
|
| 47 |
|
| 48 |
// Header
|
|
@@ -571,4 +575,75 @@ export const ru = {
|
|
| 571 |
settingsSaved: 'Настройки сохранены',
|
| 572 |
failedToSave: 'Не удалось сохранить',
|
| 573 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 574 |
}
|
|
|
|
| 43 |
warning: 'Внимание',
|
| 44 |
optional: 'опционально',
|
| 45 |
creating: 'Создание...',
|
| 46 |
+
loading: 'Загрузка...',
|
| 47 |
+
active: 'Активен',
|
| 48 |
+
inactive: 'Неактивен',
|
| 49 |
+
copy: 'Копировать',
|
| 50 |
},
|
| 51 |
|
| 52 |
// Header
|
|
|
|
| 575 |
settingsSaved: 'Настройки сохранены',
|
| 576 |
failedToSave: 'Не удалось сохранить',
|
| 577 |
},
|
| 578 |
+
|
| 579 |
+
// Partners Program
|
| 580 |
+
partners: {
|
| 581 |
+
enterCompanyName: 'Введите название вашей компании:',
|
| 582 |
+
applicationCreated: 'Заявка создана',
|
| 583 |
+
registrationFailed: 'Не удалось зарегистрироваться',
|
| 584 |
+
linkCopied: 'Ссылка скопирована',
|
| 585 |
+
minPayoutError: 'Минимальная сумма вывода $50',
|
| 586 |
+
insufficientFunds: 'Недостаточно средств',
|
| 587 |
+
payoutRequested: 'Заявка на вывод отправлена',
|
| 588 |
+
payoutFailed: 'Не удалось создать заявку',
|
| 589 |
+
administrator: 'Администратор',
|
| 590 |
+
adminDescription: 'Как администратор, вы управляете партнёрами через админ-панель. Там вы можете активировать партнёров, просматривать статистику и выплаты.',
|
| 591 |
+
goToAdmin: 'Перейти в админ-панель',
|
| 592 |
+
partnerProgram: 'Партнёрская программа MicroFunnel',
|
| 593 |
+
earn: 'Зарабатывайте',
|
| 594 |
+
fromEachClient: 'с каждого клиента',
|
| 595 |
+
becomePartner: 'Станьте партнёром MicroFunnel и получайте пассивный доход с каждой ежемесячной подписки приведённых клиентов. Навсегда.',
|
| 596 |
+
commissionForever: 'комиссия навсегда',
|
| 597 |
+
oneTimeFee: 'разовый взнос',
|
| 598 |
+
noLimits: 'без лимитов',
|
| 599 |
+
loginToBecome: 'Войдите чтобы стать партнёром',
|
| 600 |
+
payAndActivate: 'Оплатить $500 и активировать',
|
| 601 |
+
becomePartnerFor: 'Стать партнёром за $500',
|
| 602 |
+
pendingPayment: 'Ваша заявка ожидает оплаты',
|
| 603 |
+
whyPartners: 'Почему партнёры выбирают нас',
|
| 604 |
+
fiftyPercent: '50% Комиссия',
|
| 605 |
+
fiftyPercentDesc: 'С каждого платежа вашего клиента — половина ваша. При тарифе $199/мес вы получаете $100 каждый месяц.',
|
| 606 |
+
recurringIncome: 'Рекуррентный доход',
|
| 607 |
+
recurringIncomeDesc: 'Получайте комиссию каждый месяц, пока клиент подписан. Привлекайте один раз — зарабатывайте всегда.',
|
| 608 |
+
transparency: 'Прозрачность',
|
| 609 |
+
transparencyDesc: 'Полная статистика в личном кабинете: клиенты, платежи, выплаты — всё под контролем.',
|
| 610 |
+
calculateIncome: 'Рассчитайте свой доход',
|
| 611 |
+
atAverageCheck: 'При среднем чеке $199/месяц и комиссии 50%',
|
| 612 |
+
clients10: '10 клиентов',
|
| 613 |
+
clients50: '50 клиентов',
|
| 614 |
+
clients100: '100 клиентов',
|
| 615 |
+
perMonth: 'в месяц',
|
| 616 |
+
popular: 'Популярно',
|
| 617 |
+
readyToEarn: 'Готовы начать зарабатывать?',
|
| 618 |
+
oneTimePayment: 'Один разовый платёж — и вы получаете доступ к пассивному доходу навсегда',
|
| 619 |
+
loginToAccount: 'Войдите в аккаунт',
|
| 620 |
+
becomePartnerShort: 'Стать партнёром',
|
| 621 |
+
partnerPanel: 'Партнёрская панель',
|
| 622 |
+
status: 'Статус',
|
| 623 |
+
balance: 'Баланс',
|
| 624 |
+
totalEarned: 'Всего заработано',
|
| 625 |
+
clients: 'Клиентов',
|
| 626 |
+
activeClients: 'Активных',
|
| 627 |
+
yourReferralLink: 'Ваша реферальная ссылка',
|
| 628 |
+
earnFromLink: 'Получайте 50% от всех подписок клиентов, зарегистрированных по этой ссылке',
|
| 629 |
+
withdraw: 'Вывести средства',
|
| 630 |
+
minWithdraw: 'Минимум $50',
|
| 631 |
+
payoutHistory: 'История выплат',
|
| 632 |
+
allTransactions: 'Все транзакции',
|
| 633 |
+
yourClients: 'Ваши клиенты',
|
| 634 |
+
noClientsYet: 'Пока нет клиентов',
|
| 635 |
+
shareToEarn: 'Поделитесь ссылкой чтобы начать зарабатывать',
|
| 636 |
+
client: 'Клиент',
|
| 637 |
+
plan: 'Тариф',
|
| 638 |
+
paid: 'Оплачено',
|
| 639 |
+
yourIncome: 'Ва�� доход',
|
| 640 |
+
statusLabel: 'Статус',
|
| 641 |
+
withdrawFunds: 'Вывод средств',
|
| 642 |
+
available: 'Доступно',
|
| 643 |
+
amountUsd: 'Сумма (USD)',
|
| 644 |
+
minPlaceholder: 'Минимум 50',
|
| 645 |
+
method: 'Способ',
|
| 646 |
+
usdtAddress: 'USDT (TRC20) адрес',
|
| 647 |
+
withdrawBtn: 'Вывести',
|
| 648 |
+
},
|
| 649 |
}
|