# Editor directories and files
.idea
-.vscode
+.vscode/*
+!.vscode/launch.json
*.suo
*.ntvs*
*.njsproj
--- /dev/null
+{
+ // Use IntelliSense to learn about possible attributes.
+ // Hover to view descriptions of existing attributes.
+ // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "type": "chrome",
+ "request": "launch",
+ "name": "vuejs: chrome",
+ "url": "http://localhost:8081",
+ "webRoot": "${workspaceFolder}/src",
+ "sourceMapPathOverrides": {
+ "webpack:///src/*": "${webRoot}/*"
+ }
+ }
+ ]
+}
<template>
<Modal :visibility="props.isVisible">
- <div class="card-info">vendor: {{ props.info.chargePointVendor }}</div>
+ <div class="card-info">vendor: {{ props.stationInfo.chargePointVendor }}</div>
</Modal>
</template>
import type { ChargingStationInfo } from '@/types/ChargingStationType';
const props = defineProps<{
+ stationInfo: ChargingStationInfo;
isVisible: boolean;
- info: ChargingStationInfo;
}>();
</script>
<tbody id="cs-table__body">
<CSData
v-for="chargingStation in chargingStations"
- :key="chargingStation.stationInfo.hashId"
+ :key="chargingStation.stationInfo?.hashId"
:charging-station="chargingStation"
:idTag="props.idTag"
/>
describe('CSTable.vue', () => {
it('renders CS table columns name', () => {
const chargingStations: Record<string, ChargingStationData> = {
- '0': {
- stationInfo: {
- hashId: '0',
- },
- } as unknown as ChargingStationData,
+ '0': {} as unknown as ChargingStationData,
};
const wrapper = shallowMount(CSTable, {
props: { chargingStations, idTag: '0' },
module.exports = defineConfig({
transpileDependencies: true,
lintOnSave: false,
+ configureWebpack: {
+ devtool: 'source-map',
+ },
});