</template>
<script setup lang="ts">
-import { type ChargingStationData, type ConnectorEntry, getWebSocketStateName, type Status } from 'ui-common'
+import {
+ type ChargingStationData,
+ type ConnectorEntry,
+ getWebSocketStateName,
+ type Status,
+} from 'ui-common'
import { computed } from 'vue'
import { useToast } from 'vue-toast-notification'
const { fetch: getSimulatorState } = useFetchData(
() => $uiClient.simulatorState(),
- (response) => {
+ response => {
simulatorState.value = response.state as unknown as SimulatorState
},
'Error at fetching simulator state'
const { fetch: getTemplates } = useFetchData(
() => $uiClient.listTemplates(),
- (response) => {
+ response => {
$templates.value = response.templates as string[]
},
'Error at fetching charging station templates',
const { fetch: getChargingStations } = useFetchData(
() => $uiClient.listChargingStations(),
- (response) => {
+ response => {
$chargingStations.value = response.chargingStations as ChargingStationData[]
},
'Error at fetching charging stations',