From 8137295e4885116eaf19dcc7b3980d1e5a0b13e3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sun, 16 Jul 2023 20:22:41 +0200 Subject: [PATCH] refactor(ui): switch to named export MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/src/components/charging-stations/CSConnector.vue | 2 +- ui/web/src/composables/UIClient.ts | 2 +- ui/web/src/views/ChargingStationsView.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/web/src/components/charging-stations/CSConnector.vue b/ui/web/src/components/charging-stations/CSConnector.vue index 3cf324c9..0a9357ee 100644 --- a/ui/web/src/components/charging-stations/CSConnector.vue +++ b/ui/web/src/components/charging-stations/CSConnector.vue @@ -27,7 +27,7 @@ import Button from '../buttons/Button.vue'; // import IdTagInputModal from './IdTagInputModal.vue'; import type { ConnectorStatus } from '@/types'; -import UIClient from '@/composables/UIClient'; +import { UIClient } from '@/composables/UIClient'; // import { compose } from '@/composables/Utils'; const props = defineProps<{ diff --git a/ui/web/src/composables/UIClient.ts b/ui/web/src/composables/UIClient.ts index ccd16c21..006b60b5 100644 --- a/ui/web/src/composables/UIClient.ts +++ b/ui/web/src/composables/UIClient.ts @@ -14,7 +14,7 @@ type ResponseHandler = { reject: (reason?: unknown) => void; }; -export default class UIClient { +export class UIClient { private static instance: UIClient | null = null; private ws!: WebSocket; diff --git a/ui/web/src/views/ChargingStationsView.vue b/ui/web/src/views/ChargingStationsView.vue index b4f4c39f..19b6dfe3 100644 --- a/ui/web/src/views/ChargingStationsView.vue +++ b/ui/web/src/views/ChargingStationsView.vue @@ -22,7 +22,7 @@ import CSTable from '@/components/charging-stations/CSTable.vue'; import type { ChargingStationData } from '@/types'; import Container from '@/components/Container.vue'; import ReloadButton from '@/components/buttons/ReloadButton.vue'; -import UIClient from '@/composables/UIClient'; +import { UIClient } from '@/composables/UIClient'; const UIClientInstance = UIClient.getInstance(); -- 2.34.1