From 7b1566f4ac67c2be83e4f999735a5ee4746483c6 Mon Sep 17 00:00:00 2001
From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com>
Date: Tue, 29 Aug 2023 22:24:13 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E5=88=A0=E9=99=A4?=
=?UTF-8?q?=E6=96=87=E4=BB=B6=E7=9A=84=E6=8F=90=E7=A4=BA=20(#2111)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Refs https://github.com/1Panel-dev/1Panel/issues/2086
---
frontend/src/lang/modules/en.ts | 1 +
frontend/src/lang/modules/tw.ts | 1 +
frontend/src/lang/modules/zh.ts | 1 +
.../host/file-management/delete/index.vue | 86 +++++++++++++++++++
.../src/views/host/file-management/index.vue | 31 ++-----
5 files changed, 96 insertions(+), 24 deletions(-)
create mode 100644 frontend/src/views/host/file-management/delete/index.vue
diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts
index 3b81a20fd..829d4f8ad 100644
--- a/frontend/src/lang/modules/en.ts
+++ b/frontend/src/lang/modules/en.ts
@@ -911,6 +911,7 @@ const message = {
fileUploadStart: 'Uploading [{0}]....',
currentSelect: 'Current Select: ',
unsupportType: 'Unsupported file type',
+ deleteHelper: 'The following resources will be deleted, this operation cannot be rolled back, continue? ',
},
ssh: {
sshAlert:
diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts
index 02b906350..df03ed5ff 100644
--- a/frontend/src/lang/modules/tw.ts
+++ b/frontend/src/lang/modules/tw.ts
@@ -878,6 +878,7 @@ const message = {
fileUploadStart: '正在上傳【{0}】....',
currentSelect: '當前選中: ',
unsupportType: '不支持的文件類型',
+ deleteHelper: '以下資源將被刪除,此操作不可回滾,是否繼續?',
},
ssh: {
sshAlert: '列表數據根據登錄時間排序,但請註意,切換時區或其他操作可能導致登錄日誌的時間出現偏差。',
diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts
index 0eadb2787..2092ab623 100644
--- a/frontend/src/lang/modules/zh.ts
+++ b/frontend/src/lang/modules/zh.ts
@@ -878,6 +878,7 @@ const message = {
fileUploadStart: '正在上传【{0}】....',
currentSelect: '当前选中: ',
unsupportType: '不支持的文件类型',
+ deleteHelper: '以下资源将被删除,此操作不可回滚,是否继续?',
},
ssh: {
sshAlert: '列表数据根据登录时间排序,但请注意,切换时区或其他操作可能导致登录日志的时间出现偏差。',
diff --git a/frontend/src/views/host/file-management/delete/index.vue b/frontend/src/views/host/file-management/delete/index.vue
new file mode 100644
index 000000000..24960cda6
--- /dev/null
+++ b/frontend/src/views/host/file-management/delete/index.vue
@@ -0,0 +1,86 @@
+
+
+
+
+
+
+
+
+ |
+
+
+ {{ row.name }}
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/views/host/file-management/index.vue b/frontend/src/views/host/file-management/index.vue
index 5c39d08b8..aca67108c 100644
--- a/frontend/src/views/host/file-management/index.vue
+++ b/frontend/src/views/host/file-management/index.vue
@@ -176,16 +176,16 @@
+