From ae377a6c3c8bd4dce252c95a767ee2d3b2d69aee Mon Sep 17 00:00:00 2001 From: Fabio Di Stasio Date: Tue, 10 May 2022 13:02:01 +0200 Subject: [PATCH] refactor: ts and composition api for base components --- src/renderer/components/BaseConfirmModal.vue | 99 ++++------ src/renderer/components/BaseContextMenu.vue | 99 +++++----- src/renderer/components/BaseLoader.vue | 5 - src/renderer/components/BaseMap.vue | 154 +++++++-------- src/renderer/components/BaseNotification.vue | 100 +++++----- src/renderer/components/BaseTextEditor.vue | 185 +++++++++--------- src/renderer/components/BaseToast.vue | 109 +++++------ src/renderer/components/BaseUploadInput.vue | 62 +++--- src/renderer/components/BaseVirtualScroll.vue | 136 +++++++------ src/renderer/components/FakerSelect.vue | 2 +- .../components/ModalProcessesList.vue | 2 +- src/renderer/components/ModalSettings.vue | 2 +- .../WorkspaceAddConnectionPanel.vue | 10 +- .../WorkspaceEditConnectionPanel.vue | 10 +- .../components/WorkspaceTabPropsTableRow.vue | 4 +- .../components/WorkspaceTabQueryTable.vue | 2 +- src/renderer/i18n/{index.js => index.ts} | 0 ...ported-locales.js => supported-locales.ts} | 2 +- src/renderer/{index.js => index.ts} | 4 +- src/renderer/stores/workspaces.js | 29 +-- src/renderer/untyped.d.ts | 2 + 21 files changed, 489 insertions(+), 529 deletions(-) rename src/renderer/i18n/{index.js => index.ts} (100%) rename src/renderer/i18n/{supported-locales.js => supported-locales.ts} (90%) rename src/renderer/{index.js => index.ts} (95%) create mode 100644 src/renderer/untyped.d.ts diff --git a/src/renderer/components/BaseConfirmModal.vue b/src/renderer/components/BaseConfirmModal.vue index 4a505ca5..cd568a64 100644 --- a/src/renderer/components/BaseConfirmModal.vue +++ b/src/renderer/components/BaseConfirmModal.vue @@ -46,70 +46,57 @@ - diff --git a/src/renderer/components/BaseContextMenu.vue b/src/renderer/components/BaseContextMenu.vue index feee059e..05b51474 100644 --- a/src/renderer/components/BaseContextMenu.vue +++ b/src/renderer/components/BaseContextMenu.vue @@ -15,67 +15,60 @@ -