feat(mobile): add delete account function (#12688)

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
  - Introduced a "Delete my account" option in mobile settings with role-based warnings and confirmation modals.
- **Enhancements**
  - Added flexible row and reverse row layout options for modal footers and action buttons on mobile.
- **Localization**
  - Added English translation for the "Delete my account" setting.
- **Style**
  - Updated styles for modal footers and action buttons on mobile.
  - Added styling for account deletion dialog descriptions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
JimmFly
2025-06-03 10:17:45 +00:00
parent ee931d546e
commit 23ff398994
7 changed files with 225 additions and 3 deletions

View File

@@ -2747,6 +2747,10 @@ export function useAFFiNEI18N(): {
* `Official website`
*/
["com.affine.mobile.setting.others.website"](): string;
/**
* `Delete my account`
*/
["com.affine.mobile.setting.others.delete-account"](): string;
/**
* `Want to keep data local?`
*/

View File

@@ -685,6 +685,7 @@
"com.affine.mobile.setting.others.terms": "Terms of use",
"com.affine.mobile.setting.others.title": "Privacy & others",
"com.affine.mobile.setting.others.website": "Official website",
"com.affine.mobile.setting.others.delete-account": "Delete my account",
"com.affine.mobile.sign-in.skip.hint": "Want to keep data local?",
"com.affine.mobile.sign-in.skip.link": "Start AFFiNE without an account",
"com.affine.moreThan30Days": "Older than a month",