From: Jérôme Benoit Date: Mon, 1 May 2023 12:13:11 +0000 (+0200) Subject: refactor: cleanup imports X-Git-Tag: v1.2.12~29 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0f71040c472ecc24460c7bf791c35a9e9fbef27c;p=e-mobility-charging-stations-simulator.git refactor: cleanup imports Signed-off-by: Jérôme Benoit --- diff --git a/ui/web/src/composables/UIClient.ts b/ui/web/src/composables/UIClient.ts index e78836fd..22435d49 100644 --- a/ui/web/src/composables/UIClient.ts +++ b/ui/web/src/composables/UIClient.ts @@ -1,5 +1,10 @@ -import { ProcedureName, ResponseStatus, type RequestPayload } from '@/types/UIProtocol'; -import type { ProtocolResponse, ResponsePayload } from '@/types/UIProtocol'; +import { + ProcedureName, + type RequestPayload, + type ResponsePayload, + type ProtocolResponse, + ResponseStatus, +} from '@/types/UIProtocol'; import Utils from './Utils'; import config from '@/assets/config'; diff --git a/ui/web/src/router/index.ts b/ui/web/src/router/index.ts index 869f8bdd..4a52c411 100644 --- a/ui/web/src/router/index.ts +++ b/ui/web/src/router/index.ts @@ -1,5 +1,4 @@ -import { createRouter, createWebHistory } from 'vue-router'; -import type { RouteRecordRaw } from 'vue-router'; +import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router'; import ChargingStationsView from '@/views/ChargingStationsView.vue'; const routes: RouteRecordRaw[] = [ diff --git a/ui/web/start.js b/ui/web/start.js index ed6e3e01..c73a2b32 100644 --- a/ui/web/start.js +++ b/ui/web/start.js @@ -1,6 +1,6 @@ -const path = require('path'), - finalhandler = require('finalhandler'), +const finalhandler = require('finalhandler'), http = require('http'), + path = require('path'), serveStatic = require('serve-static'); const isCFEnvironment = process.env.VCAP_APPLICATION !== undefined,