From: Jérôme Benoit Date: Sat, 27 Aug 2022 12:44:20 +0000 (+0200) Subject: Web UI: add one UT X-Git-Tag: v1.1.68~21 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=258a5c7f1cbdda8951d33aeedddaf5d4138dd0b8;p=e-mobility-charging-stations-simulator.git Web UI: add one UT Signed-off-by: Jérôme Benoit --- diff --git a/src/ui/web/package-lock.json b/src/ui/web/package-lock.json index 0a6d10b9..aa46a36c 100644 --- a/src/ui/web/package-lock.json +++ b/src/ui/web/package-lock.json @@ -39,7 +39,7 @@ "eslint-plugin-vue": "^9.4.0", "lint-staged": "^13.0.3", "prettier": "^2.7.1", - "typescript": "^4.8.2" + "typescript": "~4.8.2" } }, "node_modules/@achrinza/node-ipc": { diff --git a/src/ui/web/package.json b/src/ui/web/package.json index 3c790ec0..00367636 100644 --- a/src/ui/web/package.json +++ b/src/ui/web/package.json @@ -2,12 +2,12 @@ "name": "webui", "version": "0.1.0", "scripts": { - "start": "npm run build && node start.js", "serve": "vue-cli-service serve", "build": "vue-cli-service build", - "test": "vue-cli-service test:unit", "lint": "vue-cli-service lint", - "lint:fix": "vue-cli-service lint --fix" + "lint:fix": "vue-cli-service lint --fix", + "start": "npm run build && node start.js", + "test": "vue-cli-service test:unit" }, "dependencies": { "core-js": "^3.25.0", @@ -41,7 +41,7 @@ "eslint-plugin-vue": "^9.4.0", "lint-staged": "^13.0.3", "prettier": "^2.7.1", - "typescript": "^4.8.2" + "typescript": "~4.8.2" }, "_id": "webui@0.1.0", "gitHooks": { diff --git a/src/ui/web/src/components/charging-stations/CSConnector.vue b/src/ui/web/src/components/charging-stations/CSConnector.vue index c0dd4c44..81e955d0 100644 --- a/src/ui/web/src/components/charging-stations/CSConnector.vue +++ b/src/ui/web/src/components/charging-stations/CSConnector.vue @@ -26,7 +26,7 @@ import Button from '../buttons/Button.vue'; // import { reactive } from 'vue'; import UIClient from '@/composable/UIClient'; -import { ConnectorStatus } from '@/type/ChargingStationType'; +import type { ConnectorStatus } from '@/type/ChargingStationType'; // import Utils from '@/composable/Utils'; const props = defineProps<{ diff --git a/src/ui/web/src/components/charging-stations/CSData.vue b/src/ui/web/src/components/charging-stations/CSData.vue index 661ea289..08a72d5e 100644 --- a/src/ui/web/src/components/charging-stations/CSData.vue +++ b/src/ui/web/src/components/charging-stations/CSData.vue @@ -21,7 +21,7 @@ import CSConnector from './CSConnector.vue'; // import { reactive } from 'vue'; import Utils from '@/composable/Utils'; -import { +import type { ChargingStationData, ChargingStationInfo, ConnectorStatus, diff --git a/src/ui/web/src/components/charging-stations/CSInfoModal.vue b/src/ui/web/src/components/charging-stations/CSInfoModal.vue index dd7835fd..f4505b7d 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 @@