From 1831c9144d8a9e6192511a4eb797d80dd5ee87ef Mon Sep 17 00:00:00 2001 From: Sunwuyuan Date: Sat, 6 Dec 2025 21:32:22 +0800 Subject: [PATCH] feat: Refactor data migration functionality and introduce cloud migration dialog - Removed the DataMigration.vue component and integrated its functionality into KvDatabaseCard.vue. - Added a new CloudMigrationDialog.vue component for handling cloud data migration. - Updated KvDatabaseCard.vue to include a button for initiating local migration and to manage the visibility of the new CloudMigrationDialog. - Cleaned up the DataProviderSettingsCard.vue by removing old data migration UI elements. - Enhanced user experience by providing a more streamlined migration process with clear category selection and progress indication. --- index.html | 2 +- src/components/FloatingICP.vue | 5 +- src/components/MigrationTool.vue | 1030 ----------------- .../settings/CloudMigrationDialog.vue | 283 +++++ .../cards/DataProviderSettingsCard.vue | 28 +- .../settings/cards/KvDatabaseCard.vue | 11 +- src/pages/DataMigration.vue | 233 ---- 7 files changed, 298 insertions(+), 1294 deletions(-) delete mode 100644 src/components/MigrationTool.vue create mode 100644 src/components/settings/CloudMigrationDialog.vue delete mode 100644 src/pages/DataMigration.vue diff --git a/index.html b/index.html index f959a6a..b26e9e6 100644 --- a/index.html +++ b/index.html @@ -79,6 +79,6 @@
- 浙ICP备2024068645号-4 + xICP备x号-4 diff --git a/src/components/FloatingICP.vue b/src/components/FloatingICP.vue index 5aea0bc..95c4956 100644 --- a/src/components/FloatingICP.vue +++ b/src/components/FloatingICP.vue @@ -1,12 +1,13 @@ diff --git a/src/components/MigrationTool.vue b/src/components/MigrationTool.vue deleted file mode 100644 index d573a53..0000000 --- a/src/components/MigrationTool.vue +++ /dev/null @@ -1,1030 +0,0 @@ - - - diff --git a/src/components/settings/CloudMigrationDialog.vue b/src/components/settings/CloudMigrationDialog.vue new file mode 100644 index 0000000..c821b51 --- /dev/null +++ b/src/components/settings/CloudMigrationDialog.vue @@ -0,0 +1,283 @@ + + + diff --git a/src/components/settings/cards/DataProviderSettingsCard.vue b/src/components/settings/cards/DataProviderSettingsCard.vue index 211d5bb..d21e6bc 100644 --- a/src/components/settings/cards/DataProviderSettingsCard.vue +++ b/src/components/settings/cards/DataProviderSettingsCard.vue @@ -53,33 +53,7 @@ - - - 迁移旧数据 - 将旧的存储格式数据转移到新的KV存储 - - - - - - 本机唯一标识符 - {{ - machineId - }} - - 正在加载... - + @@ -361,11 +365,14 @@ + +