feat(workspace): add blob and storage limit (#5535)
close TOV-343 AFF-508 TOV-461 TOV-460 TOV-419 Add `isOverCapacity ` status to detect if blob usage exceeds limits. Add `onCapacityChange` and `onBlobSet` to monitor if the storage or blob exceeds the capacity limit. Global modals `LocalQuotaModal` and `CloudQuotaModal` have been added, with the upload size of the blob being limited within the modal components. The notification component has been adjusted, now you can pass in `action` click events and `actionLabel` .
This commit is contained in:
@@ -354,7 +354,7 @@
|
||||
"com.affine.aboutAFFiNE.checkUpdate.subtitle.checking": "Checking for updates...",
|
||||
"com.affine.aboutAFFiNE.checkUpdate.subtitle.update-available": "New update available ({{version}})",
|
||||
"com.affine.aboutAFFiNE.checkUpdate.subtitle.downloading": "Downloading the latest version...",
|
||||
"com.affine.aboutAFFiNE.checkUpdate.subtitle.restart": "Restart tot apply update.",
|
||||
"com.affine.aboutAFFiNE.checkUpdate.subtitle.restart": "Restart ot apply update.",
|
||||
"com.affine.aboutAFFiNE.checkUpdate.subtitle.latest": "You’ve got the latest version of AFFiNE.",
|
||||
"com.affine.aboutAFFiNE.checkUpdate.subtitle.error": "Unable to connect to the update server.",
|
||||
"com.affine.aboutAFFiNE.community.title": "Communities",
|
||||
@@ -724,6 +724,7 @@
|
||||
"com.affine.payment.benefit-4": "{{capacity}} of Cloud Storage",
|
||||
"com.affine.payment.benefit-5": "{{capacity}} of maximum file size",
|
||||
"com.affine.payment.benefit-6": "Number of members per Workspace ≤ {{capacity}}",
|
||||
"com.affine.payment.benefit-7": "{{capacity}}-days version history",
|
||||
"com.affine.payment.billing-setting.cancel-subscription": "Cancel Subscription",
|
||||
"com.affine.payment.billing-setting.cancel-subscription.description": "Subscription cancelled, your pro account will expire on {{cancelDate}}",
|
||||
"com.affine.payment.billing-setting.change-plan": "Change Plan",
|
||||
@@ -805,6 +806,15 @@
|
||||
"com.affine.payment.member-limit.pro.description": "Each {{planName}} user can invite up to {{quota}} members to join their workspace. If you want to continue adding collaboration members, you can create a new workspace.",
|
||||
"com.affine.payment.member-limit.free.confirm": "Upgrade",
|
||||
"com.affine.payment.member-limit.pro.confirm": "Got it",
|
||||
"com.affine.payment.blob-limit.title": "You have reached the limit",
|
||||
"com.affine.payment.blob-limit.description.local": "The maximum file upload size for local workspaces is {{quota}}.",
|
||||
"com.affine.payment.blob-limit.description.owner.free": "{{planName}} users can upload files with a maximum size of {{currentQuota}}. You can upgrade your account to unlock a maximum file size of {{upgradeQuota}}.",
|
||||
"com.affine.payment.blob-limit.description.owner.pro": "{{planName}} users can upload files with a maximum size of {{quota}}.",
|
||||
"com.affine.payment.blob-limit.description.member": "The maximum file upload size for this joined workspace is {{quota}}. You can contact the owner of this workspace.",
|
||||
"com.affine.payment.storage-limit.title": "Sync failed",
|
||||
"com.affine.payment.storage-limit.description.owner": "Cloud storage is insufficient. You can upgrade your account to unlock more cloud storage.",
|
||||
"com.affine.payment.storage-limit.description.member": "Cloud storage is insufficient. Please contact the owner of that workspace.",
|
||||
"com.affine.payment.storage-limit.view": "View",
|
||||
"com.affine.publicLinkDisableModal.button.cancel": "Cancel",
|
||||
"com.affine.publicLinkDisableModal.button.disable": "Disable",
|
||||
"com.affine.publicLinkDisableModal.description": "Disabling this public link will prevent anyone with the link from accessing this page.",
|
||||
@@ -1029,8 +1039,8 @@
|
||||
"com.affine.history.confirm-restore-modal.load-more": "Load More",
|
||||
"com.affine.history.confirm-restore-modal.plan-prompt.title": "HELP INFO",
|
||||
"com.affine.history.confirm-restore-modal.plan-prompt.limited-title": "LIMITED PAGE HISTORY",
|
||||
"com.affine.history.confirm-restore-modal.free-plan-prompt.description": "Free users can view up to the <1>last 7 days<1> of page history.",
|
||||
"com.affine.history.confirm-restore-modal.pro-plan-prompt.description": "Pro users can view up to the <1>last 30 days<1> of page history.",
|
||||
"com.affine.history.confirm-restore-modal.free-plan-prompt.description": "With the workspace creator's Free account, every member can access up to <1>7 days<1> of version history.",
|
||||
"com.affine.history.confirm-restore-modal.pro-plan-prompt.description": "With the workspace creator's Pro account, every member enjoys the privilege of accessing up to <1>30 days<1> of version history.",
|
||||
"com.affine.history.confirm-restore-modal.pro-plan-prompt.upgrade": "Upgrade",
|
||||
"com.affine.share-page.header.present": "Present",
|
||||
"com.affine.page-operation.add-linked-page": "Add linked page",
|
||||
|
||||
Reference in New Issue
Block a user