From d582f30b441cfaf4756221d0aaf24d51b008c7ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hornych?= Date: Wed, 16 Oct 2024 00:05:44 +0200 Subject: [PATCH] feat(#117): refactor and polish jfr viewer --- .../backup-viewer/components/BackupList.vue | 73 +++---- .../components/BackupListItem.vue | 52 ----- .../backup-viewer/components/BackupViewer.vue | 4 +- .../service/BackupViewerService.ts | 10 - src/modules/base/component/VFormDialog.vue | 2 + .../base/component/VTabMainActionButton.vue | 7 +- .../component/VDownloadServerFileButton.vue | 2 +- src/modules/i18n/en.json | 45 ++-- .../components/EndRecordingButton.vue | 47 ++++ ...rdingDialog.vue => EndRecordingDialog.vue} | 4 + .../jfr-viewer/components/JfrViewer.vue | 202 ++++-------------- .../jfr-viewer/components/RecordingList.vue | 121 +++++++++++ .../jfr-viewer/components/RecordingTitle.vue | 43 ++++ .../components/StartRecordingButton.vue | 48 +++++ ...ingDialog.vue => StartRecordingDialog.vue} | 5 + .../jfr-viewer/service/JfrViewerService.ts | 5 - src/modules/modules.ts | 2 + .../ServerFileViewerModuleRegistrar.ts | 16 ++ .../component/DeleteServerFileButton.vue} | 12 +- .../component/DeleteServerFileDialog.vue} | 35 +-- .../component/DownloadServerFileButton.vue} | 10 +- .../component/ServerFileList.vue | 66 ++++++ .../component/ServerFileListItem.vue | 47 ++++ .../component/ServerFileTitle.vue} | 12 +- .../service/ServerFileViewerService.ts | 25 +++ .../task-viewer/components/TaskList.vue | 5 +- 26 files changed, 579 insertions(+), 321 deletions(-) delete mode 100644 src/modules/backup-viewer/components/BackupListItem.vue create mode 100644 src/modules/jfr-viewer/components/EndRecordingButton.vue rename src/modules/jfr-viewer/components/{EndJfrRecordingDialog.vue => EndRecordingDialog.vue} (94%) create mode 100644 src/modules/jfr-viewer/components/RecordingList.vue create mode 100644 src/modules/jfr-viewer/components/RecordingTitle.vue create mode 100644 src/modules/jfr-viewer/components/StartRecordingButton.vue rename src/modules/jfr-viewer/components/{StartJfrRecordingDialog.vue => StartRecordingDialog.vue} (95%) create mode 100644 src/modules/server-file-viewer/ServerFileViewerModuleRegistrar.ts rename src/modules/{backup-viewer/components/DeleteBackupFileButton.vue => server-file-viewer/component/DeleteServerFileButton.vue} (75%) rename src/modules/{backup-viewer/components/DeleteBackupFileDialog.vue => server-file-viewer/component/DeleteServerFileDialog.vue} (64%) rename src/modules/{backup-viewer/components/DownloadBackupFileButton.vue => server-file-viewer/component/DownloadServerFileButton.vue} (78%) create mode 100644 src/modules/server-file-viewer/component/ServerFileList.vue create mode 100644 src/modules/server-file-viewer/component/ServerFileListItem.vue rename src/modules/{backup-viewer/components/BackupTitle.vue => server-file-viewer/component/ServerFileTitle.vue} (76%) create mode 100644 src/modules/server-file-viewer/service/ServerFileViewerService.ts diff --git a/src/modules/backup-viewer/components/BackupList.vue b/src/modules/backup-viewer/components/BackupList.vue index fcda3656..ad9e3920 100644 --- a/src/modules/backup-viewer/components/BackupList.vue +++ b/src/modules/backup-viewer/components/BackupList.vue @@ -1,7 +1,5 @@