From cc8573ca7cb7aa9fec5aea1c0d05236344692701 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hornych?= Date: Tue, 15 Oct 2024 22:37:57 +0200 Subject: [PATCH] feat(#117): refactor and polish task viewer and backup viewer --- .../components/BackupCatalogButton.vue | 41 ++++ .../components/BackupCatalogDialog.vue | 104 ++++++-- .../backup-viewer/components/BackupList.vue | 140 +++++++++++ .../components/BackupListItem.vue | 52 ++++ .../backup-viewer/components/BackupTitle.vue | 43 ++++ .../backup-viewer/components/BackupViewer.vue | 222 +++--------------- .../components/DeleteBackupFileButton.vue | 47 ++++ .../components/DeleteBackupFileDialog.vue | 89 +++++++ .../components/DownloadBackupFileButton.vue | 40 ++++ ...alogDialog.vue => RestoreBackupDialog.vue} | 18 +- .../components/RestoreBackupFileButton.vue | 47 ++++ .../model/BackupViewerTabParams.ts | 8 +- .../model/BackupViewerTabParamsDto.ts | 1 - .../service/BackupViewerService.ts | 21 ++ .../service/BackupViewerTabFactory.ts | 16 +- src/modules/base/component/VConfirmDialog.vue | 4 + .../base/component/VMissingDataIndicator.vue | 1 + .../base/component/VTabMainActionButton.vue | 4 +- .../connection/driver/EvitaDBDriver.ts | 1 + .../driver/grpc/EvitaDBDriverGrpc.ts | 13 + .../explorer/component/CatalogItem.vue | 24 -- .../explorer/component/ConnectionItem.vue | 17 ++ .../explorer/model/CatalogItemType.ts | 2 - .../explorer/model/ConnectionItemType.ts | 3 +- src/modules/i18n/en.json | 42 +++- .../components/EndJfrRecordingDialog.vue | 4 +- .../jfr-viewer/components/JfrViewer.vue | 8 + .../DownloadTaskFileResultButton.vue | 1 - .../task-viewer/components/TaskList.vue | 9 +- .../task-viewer/components/TaskViewer.vue | 18 +- src/utils/number.ts | 4 + src/utils/string.ts | 30 +++ test/utils/number.test.ts | 8 + 33 files changed, 804 insertions(+), 278 deletions(-) create mode 100644 src/modules/backup-viewer/components/BackupCatalogButton.vue create mode 100644 src/modules/backup-viewer/components/BackupList.vue create mode 100644 src/modules/backup-viewer/components/BackupListItem.vue create mode 100644 src/modules/backup-viewer/components/BackupTitle.vue create mode 100644 src/modules/backup-viewer/components/DeleteBackupFileButton.vue create mode 100644 src/modules/backup-viewer/components/DeleteBackupFileDialog.vue create mode 100644 src/modules/backup-viewer/components/DownloadBackupFileButton.vue rename src/modules/backup-viewer/components/{RestoreCatalogDialog.vue => RestoreBackupDialog.vue} (89%) create mode 100644 src/modules/backup-viewer/components/RestoreBackupFileButton.vue create mode 100644 src/utils/number.ts create mode 100644 test/utils/number.test.ts diff --git a/src/modules/backup-viewer/components/BackupCatalogButton.vue b/src/modules/backup-viewer/components/BackupCatalogButton.vue new file mode 100644 index 00000000..bc9dfaec --- /dev/null +++ b/src/modules/backup-viewer/components/BackupCatalogButton.vue @@ -0,0 +1,41 @@ + + + + + diff --git a/src/modules/backup-viewer/components/BackupCatalogDialog.vue b/src/modules/backup-viewer/components/BackupCatalogDialog.vue index 349a68bf..89f6f27f 100644 --- a/src/modules/backup-viewer/components/BackupCatalogDialog.vue +++ b/src/modules/backup-viewer/components/BackupCatalogDialog.vue @@ -1,6 +1,6 @@