From 9ce65149d66df3ae7d1baa8bafe6c6eb8f2b3256 Mon Sep 17 00:00:00 2001 From: Mahmoud Emad Date: Thu, 18 Apr 2024 09:39:34 +0200 Subject: [PATCH] Enhanced the 'SSH-Keys' page with the following: - The validation rule was modified to accept keys without names - Take the key name when importing an 'SSH key' if exists or generate a new one - Migrating the old ssh key after activating the 'profile manager' - Created a class named 'SSHKeyData' that holds all 'SSH' functionality, to avoid code duplication since there are some functions that need to be imported into other places - Disable the 'Import', 'Generate', and 'Export' buttons while 'Deleteing', 'Creating', and 'Updating' keys to avoid errors - Wait on the chain to finish the task then update the table of 'ssh keys' --- .../src/components/ssh_keys/SshFormDialog.vue | 48 +- .../src/components/ssh_keys/SshTable.vue | 79 ++-- packages/playground/src/utils/date.ts | 4 - packages/playground/src/utils/ssh.ts | 174 ++++++++ packages/playground/src/utils/strings.ts | 29 -- packages/playground/src/utils/validators.ts | 10 - packages/playground/src/views/sshkey_view.vue | 422 +++++++----------- .../src/weblets/profile_manager.vue | 18 +- 8 files changed, 413 insertions(+), 371 deletions(-) create mode 100644 packages/playground/src/utils/ssh.ts diff --git a/packages/playground/src/components/ssh_keys/SshFormDialog.vue b/packages/playground/src/components/ssh_keys/SshFormDialog.vue index 094b4cb5f7..719483dc0f 100644 --- a/packages/playground/src/components/ssh_keys/SshFormDialog.vue +++ b/packages/playground/src/components/ssh_keys/SshFormDialog.vue @@ -8,8 +8,11 @@