refactor(core): split the billing component into a separate file (#10924)

refactor(core): split the billing component into a separate file
feat(core): show subscription status in billing settings
![CleanShot 2025-03-17 at 17 02 59@2x](https://github.com/user-attachments/assets/4b3ee6e7-45ad-4d50-b9a5-55d658611e07)
![CleanShot 2025-03-17 at 17 00 33@2x](https://github.com/user-attachments/assets/995fd1d6-de1c-4df2-b66e-4823721adf14)
This commit is contained in:
JimmFly
2025-03-18 10:05:44 +00:00
parent 4fc3e92205
commit 0cb06668cd
19 changed files with 1280 additions and 847 deletions

View File

@@ -811,6 +811,7 @@
"com.affine.payment.ai.benefit.g3-3": "Open source & Privacy ensured",
"com.affine.payment.ai.billing-tip.end-at": "You have purchased AFFiNE AI. The expiration date is {{end}}.",
"com.affine.payment.ai.billing-tip.next-bill-at": "You have purchased AFFiNE AI. The next payment date is {{due}}.",
"com.affine.payment.billing-tip.past-due": "Your recent payment failed, the next payment date is {{due}}.",
"com.affine.payment.ai.pricing-plan.caption-free": "You are currently on the Free plan.",
"com.affine.payment.ai.pricing-plan.caption-purchased": "You have purchased AFFiNE AI",
"com.affine.payment.ai.pricing-plan.learn": "Learn about AFFiNE AI",
@@ -824,6 +825,9 @@
"com.affine.payment.ai.usage.purchase-button-label": "Purchase",
"com.affine.payment.ai.usage.used-caption": "Times used",
"com.affine.payment.ai.usage.used-detail": "{{used}}/{{limit}} times",
"com.affine.payment.subscription-status.active": "Active",
"com.affine.payment.subscription-status.past-due": "Past-due bill",
"com.affine.payment.subscription-status.trialing": "Trialing",
"com.affine.payment.benefit-1": "Unlimited local workspaces",
"com.affine.payment.benefit-2": "Unlimited login devices",
"com.affine.payment.benefit-3": "Unlimited blocks",