From 4147bb7ee6c183f244a10431b4dc53d71917f611 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 19 May 2023 22:35:53 +0200 Subject: [PATCH] refactor(ui): add types export control MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- ui/web/src/assets/config.ts | 2 +- .../components/charging-stations/CSConnector.vue | 2 +- ui/web/src/components/charging-stations/CSData.vue | 6 +----- .../components/charging-stations/CSInfoModal.vue | 2 +- ui/web/src/components/charging-stations/CSTable.vue | 2 +- ui/web/src/composables/UIClient.ts | 4 ++-- ui/web/src/types/index.ts | 13 +++++++++++++ ui/web/src/views/ChargingStationsView.vue | 2 +- ui/web/tests/unit/CSTable.spec.ts | 2 +- 9 files changed, 22 insertions(+), 13 deletions(-) create mode 100644 ui/web/src/types/index.ts diff --git a/ui/web/src/assets/config.ts b/ui/web/src/assets/config.ts index 44bfebde..8d40c744 100644 --- a/ui/web/src/assets/config.ts +++ b/ui/web/src/assets/config.ts @@ -1,4 +1,4 @@ -import type { BaseConfig } from '@/types/ConfigurationType'; +import type { BaseConfig } from '@/types'; const config: BaseConfig = { uiServer: { diff --git a/ui/web/src/components/charging-stations/CSConnector.vue b/ui/web/src/components/charging-stations/CSConnector.vue index 9b171125..05980e41 100644 --- a/ui/web/src/components/charging-stations/CSConnector.vue +++ b/ui/web/src/components/charging-stations/CSConnector.vue @@ -26,7 +26,7 @@ // import { reactive } from 'vue'; import Button from '../buttons/Button.vue'; // import IdTagInputModal from './IdTagInputModal.vue'; -import type { ConnectorStatus } from '@/types/ChargingStationType'; +import type { ConnectorStatus } from '@/types'; import UIClient from '@/composables/UIClient'; // import Utils from '@/composables/Utils'; diff --git a/ui/web/src/components/charging-stations/CSData.vue b/ui/web/src/components/charging-stations/CSData.vue index 23c413e9..040ba02b 100644 --- a/ui/web/src/components/charging-stations/CSData.vue +++ b/ui/web/src/components/charging-stations/CSData.vue @@ -20,11 +20,7 @@