From 057d8164f5fec48ecf622e5c199a17638d9db99d Mon Sep 17 00:00:00 2001 From: jingrow Date: Tue, 21 Oct 2025 05:01:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=E7=8E=B0=E6=9C=89=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E6=81=A2=E5=A4=8D=E9=87=8D=E5=91=BD=E5=90=8D=E4=B8=BA=E4=BB=8E?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=AB=99=E7=82=B9=E6=81=A2=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dashboard/src2/components/SiteActionCell.vue | 2 +- .../site/SiteDatabaseRestoreFromURLDialog.vue | 342 ++++++++++-------- jcloud/jcloud/pagetype/site/site.py | 4 +- 3 files changed, 190 insertions(+), 158 deletions(-) diff --git a/dashboard/src2/components/SiteActionCell.vue b/dashboard/src2/components/SiteActionCell.vue index a70e44e..68a835f 100644 --- a/dashboard/src2/components/SiteActionCell.vue +++ b/dashboard/src2/components/SiteActionCell.vue @@ -45,7 +45,7 @@ function getSiteActionHandler(action) { '使用文件恢复': defineAsyncComponent(() => import('./SiteDatabaseRestoreDialog.vue') ), - '从现有站点恢复': defineAsyncComponent(() => + '从指定站点恢复': defineAsyncComponent(() => import('./site/SiteDatabaseRestoreFromURLDialog.vue') ), '管理数据库用户': defineAsyncComponent(() => diff --git a/dashboard/src2/components/site/SiteDatabaseRestoreFromURLDialog.vue b/dashboard/src2/components/site/SiteDatabaseRestoreFromURLDialog.vue index ac7948b..2a74e40 100644 --- a/dashboard/src2/components/site/SiteDatabaseRestoreFromURLDialog.vue +++ b/dashboard/src2/components/site/SiteDatabaseRestoreFromURLDialog.vue @@ -1,156 +1,188 @@ - - \ No newline at end of file diff --git a/jcloud/jcloud/pagetype/site/site.py b/jcloud/jcloud/pagetype/site/site.py index e6f8ab8..ec4999f 100644 --- a/jcloud/jcloud/pagetype/site/site.py +++ b/jcloud/jcloud/pagetype/site/site.py @@ -2783,8 +2783,8 @@ class Site(Page, TagHelpers): "group": "危险操作", }, { - "action": "从现有站点恢复", - "description": "从另一个站点恢复数据库、公共和私有文件", + "action": "从指定站点恢复", + "description": "从指定站点的备份文件恢复数据库、公共和私有文件", "button_label": "恢复", "pg_method": "restore_site_from_files", "group": "危险操作",