From d4744de194ff67d106bc8afef704d8b84313441b Mon Sep 17 00:00:00 2001 From: John Simons Date: Tue, 6 Feb 2024 15:05:19 +1000 Subject: [PATCH 1/6] Migrating composables and a few vue component Started adding typings for REST api resources --- .../vue/src/components/LicenseExpired.vue | 2 +- .../vue/src/components/PageHeader.vue | 2 +- .../vue/src/components/TimeSince.vue | 8 +- .../components/__tests__/HelloWorld.spec.js | 11 -- .../configuration/PlatformConnections.vue | 2 +- .../configuration/PlatformLicense.vue | 14 +-- .../components/failedmessages/MessageView.vue | 7 +- .../vue/src/composables/eventLogItems.js | 7 -- .../vue/src/composables/eventLogItems.ts | 8 ++ ...nloadCreator.js => fileDownloadCreator.ts} | 2 +- .../vue/src/composables/formatter.js | 62 ----------- .../vue/src/composables/formatter.ts | 6 + .../vue/src/composables/serviceEndpoints.js | 9 -- .../vue/src/composables/serviceEndpoints.ts | 9 ++ .../{serviceLicense.js => serviceLicense.ts} | 105 ++++++++++-------- .../src/composables/serviceNotifications.js | 84 -------------- .../src/composables/serviceNotifications.ts | 61 ++++++++++ ...ceProductUrls.js => serviceProductUrls.ts} | 7 +- ...olUrls.js => serviceServiceControlUrls.ts} | 56 ++++++---- .../src/composables/{toast.js => toast.ts} | 15 +-- .../vue/src/resources/EmailNotifications.ts | 10 ++ .../vue/src/resources/EventLogItem.ts | 9 ++ .../vue/src/resources/LicenseInfo.ts | 23 ++++ .../vue/src/resources/QueueAddress.ts | 4 + .../vue/src/resources/Release.ts | 5 + ...UpdateEmailNotificationsSettingsRequest.ts | 9 ++ .../vue/src/router/{index.js => index.ts} | 34 +++--- .../vue/src/views/DashboardView.vue | 2 +- .../vue/src/views/FailedMessagesView.vue | 2 +- 29 files changed, 283 insertions(+), 292 deletions(-) delete mode 100644 src/ServicePulse.Host/vue/src/components/__tests__/HelloWorld.spec.js delete mode 100644 src/ServicePulse.Host/vue/src/composables/eventLogItems.js create mode 100644 src/ServicePulse.Host/vue/src/composables/eventLogItems.ts rename src/ServicePulse.Host/vue/src/composables/{fileDownloadCreator.js => fileDownloadCreator.ts} (82%) delete mode 100644 src/ServicePulse.Host/vue/src/composables/formatter.js create mode 100644 src/ServicePulse.Host/vue/src/composables/formatter.ts delete mode 100644 src/ServicePulse.Host/vue/src/composables/serviceEndpoints.js create mode 100644 src/ServicePulse.Host/vue/src/composables/serviceEndpoints.ts rename src/ServicePulse.Host/vue/src/composables/{serviceLicense.js => serviceLicense.ts} (64%) delete mode 100644 src/ServicePulse.Host/vue/src/composables/serviceNotifications.js create mode 100644 src/ServicePulse.Host/vue/src/composables/serviceNotifications.ts rename src/ServicePulse.Host/vue/src/composables/{serviceProductUrls.js => serviceProductUrls.ts} (76%) rename src/ServicePulse.Host/vue/src/composables/{serviceServiceControlUrls.js => serviceServiceControlUrls.ts} (72%) rename src/ServicePulse.Host/vue/src/composables/{toast.js => toast.ts} (58%) create mode 100644 src/ServicePulse.Host/vue/src/resources/EmailNotifications.ts create mode 100644 src/ServicePulse.Host/vue/src/resources/EventLogItem.ts create mode 100644 src/ServicePulse.Host/vue/src/resources/LicenseInfo.ts create mode 100644 src/ServicePulse.Host/vue/src/resources/QueueAddress.ts create mode 100644 src/ServicePulse.Host/vue/src/resources/Release.ts create mode 100644 src/ServicePulse.Host/vue/src/resources/UpdateEmailNotificationsSettingsRequest.ts rename src/ServicePulse.Host/vue/src/router/{index.js => index.ts} (61%) diff --git a/src/ServicePulse.Host/vue/src/components/LicenseExpired.vue b/src/ServicePulse.Host/vue/src/components/LicenseExpired.vue index 3d66ce3c03..79e3a59fa8 100644 --- a/src/ServicePulse.Host/vue/src/components/LicenseExpired.vue +++ b/src/ServicePulse.Host/vue/src/components/LicenseExpired.vue @@ -1,5 +1,5 @@