From 82a472f368012fc4ee9229a698ef4c9b0d232a89 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Tue, 22 Oct 2024 12:28:51 +0800 Subject: [PATCH] Delete configuration, restore configuration --- .../backupRestoreComponents/backup.vue | 33 +++++++-- .../deleteConfiguration.vue | 69 +++++++++++++++++++ .../editConfiguration.vue | 4 +- .../configurationComponents/peerList.vue | 12 +++- .../configurationComponents/peerSearch.vue | 48 +++++++------ .../app/src/components/configurationList.vue | 24 +++++-- src/static/app/src/router/index.js | 9 +++ 7 files changed, 160 insertions(+), 39 deletions(-) create mode 100644 src/static/app/src/components/configurationComponents/deleteConfiguration.vue diff --git a/src/static/app/src/components/configurationComponents/backupRestoreComponents/backup.vue b/src/static/app/src/components/configurationComponents/backupRestoreComponents/backup.vue index 1029763c..5f5329ae 100644 --- a/src/static/app/src/components/configurationComponents/backupRestoreComponents/backup.vue +++ b/src/static/app/src/components/configurationComponents/backupRestoreComponents/backup.vue @@ -47,6 +47,8 @@ const restoreBackup = () => { const delaySeconds = computed(() => { return props.delay + 's' }) + +const showContent = ref(false); diff --git a/src/static/app/src/components/configurationComponents/deleteConfiguration.vue b/src/static/app/src/components/configurationComponents/deleteConfiguration.vue new file mode 100644 index 00000000..68e1d55e --- /dev/null +++ b/src/static/app/src/components/configurationComponents/deleteConfiguration.vue @@ -0,0 +1,69 @@ + + + + + \ No newline at end of file diff --git a/src/static/app/src/components/configurationComponents/editConfiguration.vue b/src/static/app/src/components/configurationComponents/editConfiguration.vue index 9184131a..6448d966 100644 --- a/src/static/app/src/components/configurationComponents/editConfiguration.vue +++ b/src/static/app/src/components/configurationComponents/editConfiguration.vue @@ -172,12 +172,12 @@ const openBackupRestore = ref(false) id="configuration_postdown">
- -
+ +
+

+ +

+ +

@@ -197,31 +217,9 @@ export default { @click="this.$emit('backupRestore')"> -

-
-
-

- -

-
- - - -
-
-
-

- -

-
diff --git a/src/static/app/src/components/configurationList.vue b/src/static/app/src/components/configurationList.vue index 441029c8..58db8229 100644 --- a/src/static/app/src/components/configurationList.vue +++ b/src/static/app/src/components/configurationList.vue @@ -34,16 +34,19 @@ export default {
-
-

- +
+

-

- - - + +

+ +

+ +

+