1 /* eslint-disable @typescript-eslint/no-unsafe-assignment */
2 import AddChargingStations from
'@/components/actions/AddChargingStations.vue'
3 import SetSupervisionUrl from
'@/components/actions/SetSupervisionUrl.vue'
4 import StartTransaction from
'@/components/actions/StartTransaction.vue'
5 import ChargingStationsView from
'@/views/ChargingStationsView.vue'
6 import NotFoundView from
'@/views/NotFoundView.vue'
7 import { createRouter
, createWebHistory
} from
'vue-router'
9 export const router
= createRouter({
10 history
: createWebHistory(),
14 default: ChargingStationsView
,
16 name
: 'charging-stations',
21 action
: AddChargingStations
,
22 default: ChargingStationsView
,
24 name
: 'add-charging-stations',
25 path
: '/add-charging-stations',
29 action
: SetSupervisionUrl
,
30 default: ChargingStationsView
,
32 name
: 'set-supervision-url',
33 path
: '/set-supervision-url/:hashId/:chargingStationId',
34 props
: { action
: true, default: false },
38 action
: StartTransaction
,
39 default: ChargingStationsView
,
41 name
: 'start-transaction',
42 path
: '/start-transaction/:hashId/:chargingStationId/:connectorId',
43 props
: { action
: true, default: false },
47 default: NotFoundView
,
50 path
: '/:pathMatch(.*)*',