From b8a7771edfb0f61236c53353fc6c301c968edccb Mon Sep 17 00:00:00 2001 From: Matthew Raymer Date: Mon, 7 Apr 2025 08:50:09 +0000 Subject: [PATCH] feat(export): adapt DataExportSection for platform-specific file handling Integrate PlatformServiceFactory to provide platform-specific data export: - Add platform-specific file saving for Capacitor and other platforms - Use web download mechanism only in web platform - Conditionally show platform-specific save instructions - Add iOS/Android detection for targeted guidance - Update success messages based on platform context - Improve download link visibility logic for web platform This change ensures proper file handling across web, mobile, and desktop platforms while maintaining a consistent user experience. --- src/components/DataExportSection.vue | 118 +++++++++++++++++++++++---- 1 file changed, 104 insertions(+), 14 deletions(-) diff --git a/src/components/DataExportSection.vue b/src/components/DataExportSection.vue index 8a195918..0c14b570 100644 --- a/src/components/DataExportSection.vue +++ b/src/components/DataExportSection.vue @@ -1,3 +1,17 @@ +/** + * Data Export Section Component + * + * Provides UI and functionality for exporting user data and backing up identifier seeds. + * Includes buttons for seed backup and database export, with platform-specific download instructions. + * + * @component + * @displayName DataExportSection + * @example + * ```vue + * + * ``` + */ +