From: Jérôme Benoit Date: Sat, 27 Aug 2022 16:01:19 +0000 (+0200) Subject: Web UI: rename some directories to a sensible name X-Git-Tag: v1.1.68~17 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=f27eb751a2eb332306ecb9c5c4f0578d3bf66ee4;p=e-mobility-charging-stations-simulator.git Web UI: rename some directories to a sensible name Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ChargingStationWorkerBroadcastChannel.ts b/src/charging-station/ChargingStationWorkerBroadcastChannel.ts index 35e3fb72..6fd226fa 100644 --- a/src/charging-station/ChargingStationWorkerBroadcastChannel.ts +++ b/src/charging-station/ChargingStationWorkerBroadcastChannel.ts @@ -15,7 +15,7 @@ import { BroadcastChannelResponsePayload, MessageEvent, } from '../types/WorkerBroadcastChannel'; -import { ResponseStatus } from '../ui/web/src/type/UIProtocol'; +import { ResponseStatus } from '../ui/web/src/types/UIProtocol'; import logger from '../utils/Logger'; import type ChargingStation from './ChargingStation'; import WorkerBroadcastChannel from './WorkerBroadcastChannel'; diff --git a/src/ui/web/src/assets/config.ts b/src/ui/web/src/assets/config.ts index 43170a2c..ae8a364a 100644 --- a/src/ui/web/src/assets/config.ts +++ b/src/ui/web/src/assets/config.ts @@ -1,4 +1,4 @@ -import type { BaseConfig } from '@/type/ConfigurationType'; +import type { BaseConfig } from '@/types/ConfigurationType'; const config: BaseConfig = { emobility: { diff --git a/src/ui/web/src/components/charging-stations/CSConnector.vue b/src/ui/web/src/components/charging-stations/CSConnector.vue index 81e955d0..2fb7822e 100644 --- a/src/ui/web/src/components/charging-stations/CSConnector.vue +++ b/src/ui/web/src/components/charging-stations/CSConnector.vue @@ -25,9 +25,9 @@ import Button from '../buttons/Button.vue'; // import { reactive } from 'vue'; -import UIClient from '@/composable/UIClient'; -import type { ConnectorStatus } from '@/type/ChargingStationType'; -// import Utils from '@/composable/Utils'; +import UIClient from '@/composables/UIClient'; +import type { ConnectorStatus } from '@/types/ChargingStationType'; +// import Utils from '@/composables/Utils'; const props = defineProps<{ hashId: string; @@ -62,21 +62,21 @@ const props = defineProps<{ // } function startChargingStation(): void { - UIClient.instance.startChargingStation(props.hashId); + UIClient.getInstance().startChargingStation(props.hashId); } function stopChargingStation(): void { - UIClient.instance.stopChargingStation(props.hashId); + UIClient.getInstance().stopChargingStation(props.hashId); } function openConnection(): void { - UIClient.instance.openConnection(props.hashId); + UIClient.getInstance().openConnection(props.hashId); } function closeConnection(): void { - UIClient.instance.closeConnection(props.hashId); + UIClient.getInstance().closeConnection(props.hashId); } function startTransaction(): void { - UIClient.instance.startTransaction(props.hashId, props.connectorId, props.idTag); + UIClient.getInstance().startTransaction(props.hashId, props.connectorId, props.idTag); } function stopTransaction(): void { - UIClient.instance.stopTransaction(props.hashId, props.transactionId); + UIClient.getInstance().stopTransaction(props.hashId, props.transactionId); } diff --git a/src/ui/web/src/components/charging-stations/CSData.vue b/src/ui/web/src/components/charging-stations/CSData.vue index 08a72d5e..3de9a7d6 100644 --- a/src/ui/web/src/components/charging-stations/CSData.vue +++ b/src/ui/web/src/components/charging-stations/CSData.vue @@ -20,12 +20,12 @@ import CSConnector from './CSConnector.vue'; // import { reactive } from 'vue'; -import Utils from '@/composable/Utils'; +import Utils from '@/composables/Utils'; import type { ChargingStationData, ChargingStationInfo, ConnectorStatus, -} from '@/type/ChargingStationType'; +} from '@/types/ChargingStationType'; const props = defineProps<{ chargingStation: ChargingStationData; diff --git a/src/ui/web/src/components/charging-stations/CSInfoModal.vue b/src/ui/web/src/components/charging-stations/CSInfoModal.vue index f4505b7d..f9481b58 100644 --- a/src/ui/web/src/components/charging-stations/CSInfoModal.vue +++ b/src/ui/web/src/components/charging-stations/CSInfoModal.vue @@ -6,7 +6,7 @@