From: Jérôme Benoit Date: Sun, 16 Jul 2023 18:22:41 +0000 (+0200) Subject: refactor(ui): switch to named export X-Git-Tag: v1.2.18~22 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=8137295e4885116eaf19dcc7b3980d1e5a0b13e3;p=e-mobility-charging-stations-simulator.git refactor(ui): switch to named export Signed-off-by: Jérôme Benoit --- 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();